/* Theme 03 · Emerald Field — 茵绿 + 米白，清爽体育资讯 */
:root {
  --bg-deep: #e6f2eb;
  --bg: #f2faf5;
  --bg-card: #ffffff;
  --bg-card2: #f7fcf9;
  --panel: #e8f5ee;
  --text: #0d1f14;
  --text-soft: #1a3d2e;
  --muted: #4a6356;
  --line: rgba(4, 120, 87, 0.1);
  --line-strong: rgba(5, 150, 105, 0.38);
  --accent: #059669;
  --accent-dim: #047857;
  --accent-blue: #2563eb;
  --accent-blue-dim: #1d4ed8;
  --accent-violet: #7c3aed;
  --accent-violet-dim: #6d28d9;
  --accent-amber: #ca8a04;
  --accent-amber-dim: #a16207;
  --accent-coral: #ea580c;
  --accent-sky: #0d9488;
  --gold: #a16207;
  --gold-soft: rgba(202, 138, 4, 0.13);
  --shadow: 0 18px 48px rgba(13, 69, 45, 0.07);
  --shadow-soft: 0 10px 32px rgba(5, 150, 105, 0.06);
  --glow: 0 8px 32px rgba(5, 150, 105, 0.14);
  --glow-blue: 0 8px 32px rgba(37, 99, 235, 0.11);
  --glow-violet: 0 8px 32px rgba(124, 58, 237, 0.1);
  --radius: 14px;
  --radius-sm: 11px;
  --mesh-base: linear-gradient(180deg, #f7fdf9 0%, #ecf8f0 50%, #e0f2e8 100%);
  --mesh-side-violet: rgba(124, 58, 237, 0.1);
  --mesh-side-teal: rgba(13, 148, 136, 0.14);
  --mesh-side-blue: rgba(37, 99, 235, 0.09);
  --mesh-side-amber: rgba(202, 138, 4, 0.11);
}

html { background-color: #d4e8dc; }

body {
  background-image:
    radial-gradient(ellipse 52% 120% at -15% 50%, var(--mesh-side-teal), transparent 55%),
    radial-gradient(ellipse 40% 85% at -8% 72%, rgba(5, 150, 105, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 118% at 115% 48%, rgba(37, 99, 235, 0.09), transparent 54%),
    radial-gradient(ellipse 38% 80% at 108% 22%, rgba(124, 58, 237, 0.09), transparent 48%),
    radial-gradient(ellipse 420px 360px at 0% 0%, rgba(202, 138, 4, 0.06), transparent 55%),
    radial-gradient(ellipse 380px 300px at 100% 100%, rgba(5, 150, 105, 0.08), transparent 52%),
    radial-gradient(ellipse 900px 480px at 50% -5%, rgba(4, 120, 87, 0.06), transparent 60%),
    linear-gradient(90deg,
      rgba(5, 150, 105, 0.08) 0%,
      rgba(255, 255, 255, 0) clamp(120px, 18vw, 340px),
      rgba(255, 255, 255, 0) calc(100% - clamp(120px, 18vw, 340px)),
      rgba(37, 99, 235, 0.06) 100%),
    var(--mesh-base);
  background-attachment: fixed;
}

/* 移动端 Hero 图示在上：先展示视觉再标题 */
@media (max-width: 900px) {
  .hero-grid { display: flex; flex-direction: column-reverse; gap: 24px; }
}

.h1 {
  background: linear-gradient(125deg, #052e16 0%, var(--accent-dim) 45%, var(--accent-sky) 72%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #34d399, var(--accent-dim));
  box-shadow: 0 8px 28px rgba(5, 150, 105, 0.26);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(5, 150, 105, 0.36); }

.nav a:nth-child(1):hover {
  background: rgba(5, 150, 105, 0.13);
  color: var(--accent-dim);
}
.nav a:nth-child(2):hover {
  background: rgba(37, 99, 235, 0.09);
  color: var(--accent-blue);
}
.nav a:nth-child(3):hover {
  background: rgba(124, 58, 237, 0.09);
  color: var(--accent-violet);
}
.nav a:nth-child(n+4):hover { background: var(--gold-soft); color: var(--gold); }

.hero-side-card::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-sky), var(--accent-amber), var(--accent-blue), var(--accent-violet));
}

/* —— 版式：加高顶栏 + 信任区单列居中 + 分页靠左 —— */
.topbar-inner { min-height: 78px; }
.hero { padding-top: 2.5rem; }
.grid-trust {
  grid-template-columns: 1fr;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}
.security-grid { gap: 1.4rem; }
.pager {
  justify-content: flex-start;
}
.readmore-title {
  font-size: 1.05rem;
}
@media (min-width: 901px) {
  .readmore-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }
}

/* —— 气质Ⅱ：自然清爽 · 略疏行距 + 描边特点卡 + 全圆角交互 —— */
body {
  line-height: 1.82;
}
.sub,
.card-text,
.section-desc {
  line-height: 1.78;
}
.feature-card {
  box-shadow: none;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(5, 150, 105, 0.2);
}
.topbar:not(.ef-header) .nav a {
  border-radius: 999px;
}
.pill {
  border: 1px solid rgba(5, 150, 105, 0.22);
  background: rgba(255, 255, 255, 0.75);
}
.quote {
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, rgba(236, 253, 245, 0.96));
  border: 1px solid rgba(5, 150, 105, 0.12);
}

/* Theme shell — Emerald Field 顶栏：细轨 + 深色板 + 底栏标签（非 split / 非胶囊） */
.ef-header.topbar {
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
}

.ef-header__rail {
  border-bottom: none;
  box-shadow: inset 0 -1px 0 rgba(4, 120, 87, 0.12);
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.98) 0%, rgba(209, 250, 229, 0.55) 45%, rgba(224, 242, 231, 0.85) 100%);
}

.ef-header__rail-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ef-header__rail-tag {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  font-size: 12px;
  color: var(--text-soft);
}

.ef-header__rail-rule {
  flex: 0 0 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.45), transparent);
  opacity: 0.85;
}

.ef-header__rail-code {
  flex: 0 0 auto;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(45, 85, 63, 0.72);
  white-space: nowrap;
}

.ef-header__plate {
  overflow-x: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(52, 211, 153, 0.18), transparent 52%),
    radial-gradient(90% 70% at 100% 10%, rgba(37, 99, 235, 0.12), transparent 48%),
    linear-gradient(165deg, #022c1f 0%, #064e3b 42%, #047857 100%);
  color: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 12px 36px rgba(5, 46, 27, 0.28);
}

.ef-header__plate-main {
  min-width: 0;
}

.ef-header__plate-top {
  padding: 14px 0 8px;
}

.ef-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.ef-header__brand:hover .ef-header__site {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ef-header__logo {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.ef-header__logo--img {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.ef-header__logo--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ef-header__logo--auto {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.97);
  background: linear-gradient(145deg, var(--logo-c1, #059669) 0%, var(--logo-c2, #34d399) 48%, var(--logo-c3, #2563eb) 100%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  user-select: none;
}

.ef-header__brand-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ef-header__site {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.ef-header__site-sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.82);
}

.ef-header__lede {
  margin: 0;
  padding: 0 0 12px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(209, 250, 229, 0.88);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ef-header__nav {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ef-header__nav-shell {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

.ef-header__nav-shell::-webkit-scrollbar {
  height: 4px;
}

.ef-header__nav-shell::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.ef-header__nav-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: max-content;
  min-width: 100%;
}

.ef-header__tab {
  flex: 0 0 auto;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(236, 253, 245, 0.82);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ef-header__tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-bottom-color: rgba(52, 211, 153, 0.65);
}

.ef-header__tab:focus-visible {
  outline: 2px solid rgba(52, 211, 153, 0.95);
  outline-offset: -2px;
}

.ef-header__tab--accent {
  margin-left: auto;
  color: #ecfdf5;
  border-bottom-color: rgba(251, 191, 36, 0.55);
}

.ef-header__tab--accent:hover {
  border-bottom-color: rgba(251, 191, 36, 0.95);
}

@media (max-width: 640px) {
  .ef-header__rail-inner {
    flex-wrap: wrap;
    min-height: auto;
    padding: 8px 0;
    gap: 8px;
  }

  .ef-header__rail-rule {
    display: none;
  }

  .ef-header__rail-code {
    width: 100%;
    padding-left: 0;
    opacity: 0.85;
  }

  .ef-header__plate-top {
    padding-top: 14px;
  }

  .ef-header__tab {
    padding: 12px 14px;
    font-size: 12px;
  }

  .ef-header__tab--accent {
    margin-left: 0;
  }
}
.site-foot__tri--emerald {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: start;
}
.site-foot__tri-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}
.site-foot__tri-links a {
  color: inherit;
  text-decoration: none;
}
.site-foot__tri-links a:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .site-foot__tri--emerald {
    grid-template-columns: 1fr;
  }
}
