html { scroll-padding-top: 84px; }
/* ============================================================
   TEMPLATE 01 — Verdict Lab
   消费者报告风:亮底、信任蓝、红色判定徽章、评分条。
   适用:通用消费 / 工具类 / 高信任诉求 niche。
   字体:Archivo(标题)+ Inter(正文),Google Fonts。
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #101828;
  --muted: #475467;
  --faint: #667085;
  --navy: #0f2d5c;
  --navy-deep: #0a1f42;
  --blue: #2563eb;
  --blue-soft: #eff4ff;
  --red: #d92d20;
  --red-soft: #fef3f2;
  --green: #067647;
  --green-soft: #ecfdf3;
  --amber: #b54708;
  --amber-soft: #fffaeb;
  --line: #e4e9f0;
  --line-strong: #cdd5e0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  text-wrap: balance; font-family: var(--font-head); line-height: 1.22; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- 顶栏:蓝底白字,品牌感强 ---------- */
.topbar { background: var(--navy); color: #fff; border-top: 4px solid var(--red); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: var(--radius);
  background: var(--red); display: grid; place-items: center;
  font-size: 0.95rem; font-weight: 800; color: #fff;
}
.topnav { display: flex; gap: 22px; font-size: 0.92rem; font-weight: 500; }
.topnav a { color: #c7d6f0; text-decoration: none; }
.brand { text-decoration: none; }
.topnav a:hover { color: #fff; text-decoration: none; }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- 判定条(更新横幅)---------- */
.verdict-banner {
  background: var(--amber-soft); border-bottom: 1px solid #fedf89;
  color: var(--amber); font-size: 0.88rem; font-weight: 600;
  padding: 8px 0; text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
  background: var(--blue-soft); padding: 4px 12px; border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1 { margin-bottom: 12px; }
.hero p.lede { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.hero-meta { margin-top: 18px; font-size: 0.86rem; color: var(--faint); }

/* ---------- 排名卡片 ---------- */
.rank-list { padding: 40px 0 24px; display: grid; gap: 20px; }
.rank-card {
  display: grid; grid-template-columns: 88px 1fr 220px; gap: 24px;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; background: #fff; box-shadow: var(--shadow);
  position: relative;
}
.rank-card { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.rank-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 30px -12px rgba(15, 45, 92, 0.25); transform: translateY(-2px); }
@media (max-width: 860px) { .rank-card { grid-template-columns: 64px 1fr; } .rank-card .score-box { grid-column: 2; } }
.rank-no {
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem;
  color: var(--navy); line-height: 1;
}
.rank-no.top { color: var(--red); }
.rank-body h3 { margin-bottom: 6px; font-size: 1.3rem; }
.rank-body h3 .badge {
  vertical-align: middle; margin-left: 8px; font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.badge-best { background: var(--red-soft); color: var(--red); }
.badge-value { background: var(--green-soft); color: var(--green); }
.badge-edges { background: var(--amber-soft); color: var(--amber); }
.rank-body p { color: var(--muted); font-size: 0.97rem; }
.rank-pros { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.rank-pros li {
  font-size: 0.8rem; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px;
}
.score-box { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.score-head { display: flex; align-items: baseline; justify-content: space-between; }
.score-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.score-num { font-family: var(--font-head); font-weight: 800; font-size: 1.9rem; color: var(--navy); }
.score-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.score-bar span { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.score-bar span.hot { background: var(--red); }
.score-cta { font-size: 0.85rem; font-weight: 600; }

/* ---------- 表格 ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 24px 0; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.compare-table th { background: var(--bg-soft); font-family: var(--font-head); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.compare-table td:first-child { font-weight: 600; }

/* ---------- 正文页 ---------- */
.prose { padding: 48px 0 64px; }
.prose h2 { margin: 36px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; color: #1d2939; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 6px; }
.verdict-box {
  border: 2px solid var(--navy); border-radius: 12px; padding: 22px 24px;
  margin: 28px 0; background: var(--bg-soft);
}
.verdict-box .v-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--navy-deep); color: #9db1d4; margin-top: 48px; font-size: 0.88rem; }
.footer-inner { padding: 36px 0; display: grid; gap: 14px; }
.footer a { color: #c7d6f0; }
.related-note { border-top: 1px solid #1d3560; padding-top: 14px; font-size: 0.8rem; color: #6e85ad; }

/* ---- R7 micro-interactions ---- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(37, 99, 235, 0.16); }
a { text-underline-offset: 3px; }

/* ---- R8 tables ---- */
.compare-table { font-variant-numeric: tabular-nums; }
.compare-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) { .compare-table { min-width: 520px; } }

/* ---- R9 badges ---- */
[class*="badge"], [class*="pill"], [class*="tag"], .chip {
  white-space: nowrap; flex-shrink: 0;
}

/* ---- R10 nav ---- */
@media (max-width: 720px) {
  .topbar-inner, .masthead-top { flex-wrap: wrap; }
}
.topnav a[aria-current="page"] { font-weight: 700; }

/* ---- R11 footer ---- */
.related-note { line-height: 1.6; max-width: 88ch; }
.back-top { position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(20, 20, 24, 0.82); color: #fff;
  font-size: 1.05rem; text-decoration: none;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.back-top:hover { opacity: 1 !important; }
@media (prefers-reduced-motion: reduce) { .back-top { transition: none; } }

/* ---- R15 responsive ---- */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  html { scroll-padding-top: 72px; }
}

/* ---- R16 a11y ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: #fff; color: #111; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.skip-link:focus { left: 8px; }

/* ---- Motion layer (R1) : transform/opacity only ---- */
[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: inherit;
  will-change: opacity, transform;
}
[data-animate].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* R3: score bars grow */
.rank-card .score-bar span { transform: scaleX(0); transform-origin: left; transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s; }
.rank-card.in .score-bar span { transform: scaleX(1); }

/* R5: arrow nudge on hover */
.col-link a::after, .score-cta::after, .rank-more a::after { display: inline-block; transition: transform 0.2s ease; }
.col-link a:hover::after, .score-cta:hover::after, .rank-more a:hover::after { transform: translateX(4px); }
a[class*="cta"]::after, .r-score a::after { content: none; }
.r-score a::after { content: " →"; display: inline-block; transition: transform 0.2s ease; }
.r-score a:hover::after { transform: translateX(4px); }

/* R6: scrolled header shadow */
.topbar.scrolled, .masthead.scrolled { box-shadow: 0 6px 24px -10px rgba(10, 15, 30, 0.28); transition: box-shadow 0.25s ease; }
.topbar, .masthead { transition: box-shadow 0.25s ease; }

/* R7 brand signature */
.brand-mark { transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }

/* R1 typography features */
body { font-feature-settings: "kern" 1, "liga" 1, "calt" 1; -webkit-tap-highlight-color: transparent; }

/* R2 editorial measure */
.prose p { text-wrap: pretty; orphans: 3; widows: 3; }
.prose { hyphens: auto; }

/* R4 hero load sequence */
.hero .eyebrow, .hero h1, .hero p.lede, .hero-meta { animation: heroRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.hero .eyebrow, .hero h1, .hero p.lede, .hero-meta { animation-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) { .hero .eyebrow, .hero h1, .hero p.lede, .hero-meta { animation: none; } }

/* R5 hover inner response */
.rank-card:hover .rank-no { transform: translateY(-3px); } .rank-no { transition: transform 0.25s ease; }

/* R6 prose link underline grow */
.prose p a {
  background: linear-gradient(currentColor, currentColor) bottom left / 0% 1px no-repeat;
  transition: background-size 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: 2px;
}
.prose p a:hover { background-size: 100% 1px; }

/* R7 themed scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #0f2d5c55; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #0f2d5c; border: 2px solid transparent; background-clip: content-box; }

/* R8 touch feedback */
.rank-card:active { transform: scale(0.995); }

/* R9 back-top smooth elevator */
.back-top { transform: translateY(10px); transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.back-top[style*="opacity: 1"], .back-top:hover { transform: translateY(0); }
.back-top:active { transform: translateY(2px); }

/* R4b keyframes */
@keyframes heroRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* R2 metric label alignment */
.score-head { align-items: center; }

/* R3 footer two-column */
@media (min-width: 860px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-inner > div:first-child { order: 1; }
  .related-note { order: 2; max-width: 56ch; border-top: 0; padding-top: 0; text-align: right; }
}

/* R4 current page nav state */
.topnav a[aria-current='page'] { color: #fff; }
