/*
Theme Name: Road Trip Location Quest
Theme URI: https://roadtriplocation.quest
Description: Road trip travel blueprints. Scenic route itineraries, rental car insurance comparisons, and essential driving gadget recommendations.
Style ID: f322ea
Version: 1.0.0
Text Domain: road-trip-location-q
*/

/* ============ 配色系统（深色） ============ */
:root {
  --bg: #131a1b;
  --bg-alt: #1f2828;
  --bg-deep: #0d1111;
  --text: #ebefef;
  --text-muted: #97a4a5;
  --accent: #51e1ec;
  --border: #313e3f;
  /* 玻璃面板 */
  --glass: rgba(31, 40, 40, 0.55);
  --glass-strong: rgba(31, 40, 40, 0.75);
  --glass-border: rgba(235, 239, 239, 0.12);
  /* 视觉密度：标准 */
  --spacing: 18px;
  --spacing-lg: 44px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ============ 基础重置 ============ */
.f322ea-body {
  margin: 0;
  background-color: var(--bg);
  /* Glassmorphism 柔和渐变光斑 */
  background-image:
    radial-gradient(ellipse 60% 45% at 12% -5%, rgba(81, 225, 236, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 40% at 95% 15%, rgba(81, 225, 236, 0.10), transparent 60%),
    radial-gradient(ellipse 65% 50% at 50% 110%, rgba(23, 90, 96, 0.20), transparent 65%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.f322ea-body *, .f322ea-body *::before, .f322ea-body *::after {
  box-sizing: border-box;
}

.f322ea-body a { color: var(--accent); text-decoration: none; }
.f322ea-body a:hover { opacity: 0.8; }
.f322ea-body img { max-width: 100%; height: auto; display: block; }

.f322ea-body h1, .f322ea-body h2, .f322ea-body h3,
.f322ea-body h4, .f322ea-body h5, .f322ea-body h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.f322ea-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ 页首 Header ============ */
.f322ea-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.f322ea-header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.f322ea-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.f322ea-logo a { color: var(--text); display: flex; align-items: center; gap: 10px; }
.f322ea-logo a:hover { opacity: 1; }

.f322ea-logo-mark {
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(81, 225, 236, 0.7);
  display: inline-block;
}

.f322ea-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  justify-content: center;
}

.f322ea-nav a {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.f322ea-nav a:hover { color: var(--accent); opacity: 1; }

.f322ea-subscribe-btn {
  justify-self: end;
  background: var(--accent);
  color: #0d1111;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.f322ea-subscribe-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(81, 225, 236, 0.4);
  opacity: 1;
}

/* ============ 文章卡片（样式 A：图片在上、文字在下） ============ */
.f322ea-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.f322ea-card:hover {
  transform: translateY(-4px);
  border-color: rgba(81, 225, 236, 0.4);
}

.f322ea-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.f322ea-card-media .f322ea-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.f322ea-card:hover .f322ea-card-bg { transform: scale(1.06); }

.f322ea-card-body {
  padding: 20px;
}

.f322ea-card-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--accent);
  margin-bottom: 10px;
}

.f322ea-card-title {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 12px;
}

.f322ea-card-title a { color: var(--text); }
.f322ea-card-title a:hover { color: var(--accent); opacity: 1; }

.f322ea-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

/* 文章元数据（作者头像 + 名字 + 日期，无阅读时长） */
.f322ea-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-muted);
}

.f322ea-meta-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.f322ea-meta-group { display: flex; align-items: center; gap: 8px; }
.f322ea-meta-name { color: var(--text); font-weight: 600; }
.f322ea-meta-sep { color: var(--border); }

/* ============ 归档/索引页 ============ */
.f322ea-page-head {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 34px;
}

.f322ea-page-head h1 { font-size: 40px; margin-bottom: 10px; }
.f322ea-page-desc { color: var(--text-muted); max-width: 640px; }

.f322ea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-bottom: 60px;
}

/* ============ 单篇文章页（标准阅读页） ============ */
.f322ea-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 0 80px;
}

.f322ea-article-header { margin-bottom: 32px; }

.f322ea-article-header h1 {
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}

.f322ea-article-featured {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--glass-border);
}

.f322ea-article-featured img { width: 100%; }

.f322ea-article-content {
  font-size: 18px;
  line-height: 1.9;
  color: var(--text);
}

.f322ea-article-content p { margin: 0 0 1.5em; }
.f322ea-article-content h2 { font-size: 26px; margin: 1.7em 0 0.7em; }
.f322ea-article-content h3 { font-size: 21px; margin: 1.4em 0 0.5em; }
.f322ea-article-content a { text-decoration: underline; text-underline-offset: 3px; }

.f322ea-article-tags {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.f322ea-article-tags a {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 13px;
}

.f322ea-article-tags a:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

/* ============ 页脚（订阅型） ============ */
.f322ea-footer {
  background: var(--glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

.f322ea-footer-subscribe {
  max-width: 1160px;
  margin: 0 auto;
  padding: 54px 24px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.f322ea-footer-subscribe h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.f322ea-footer-subscribe p { color: var(--text-muted); margin: 0 0 24px; }

.f322ea-subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.f322ea-subscribe-form input[type="email"] {
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 16px;
  font-size: 15px;
  border-radius: var(--radius-sm);
  outline: none;
}

.f322ea-subscribe-form input[type="email"]:focus { border-color: var(--accent); }

.f322ea-subscribe-form button {
  background: var(--accent);
  color: #0d1111;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.f322ea-footer-cols {
  max-width: 1160px;
  margin: 0 auto;
  padding: 46px 24px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.f322ea-footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-family: var(--font-body);
}

.f322ea-footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 10px;
  display: block;
}

.f322ea-footer-mission { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.f322ea-footer ul { list-style: none; margin: 0; padding: 0; }
.f322ea-footer ul li { margin-bottom: 10px; }
.f322ea-footer ul li a { color: var(--text-muted); font-size: 14px; }
.f322ea-footer ul li a:hover { color: var(--accent); opacity: 1; }

.f322ea-footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ 404 ============ */
.f322ea-404 { text-align: center; padding: 120px 24px; }
.f322ea-404 h1 { font-size: 96px; color: var(--accent); margin-bottom: 0; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .f322ea-grid { grid-template-columns: repeat(2, 1fr); }
  .f322ea-nav { display: none; }
  .f322ea-header-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 640px) {
  .f322ea-grid { grid-template-columns: 1fr; }
  .f322ea-article-header h1 { font-size: 30px; }
  .f322ea-footer-cols { grid-template-columns: 1fr; }
  .f322ea-page-head h1 { font-size: 28px; }
}
