html { scroll-padding-top: 84px; }
/* ============================================================
   TEMPLATE 02 — Swiss Index
   瑞士现代主义:纯白、黑、单一橙 #ff4d00、网格线、超大序号。
   适用:设计/创作工具、面向从业者的 niche。
   字体:Space Grotesk(标题/数字)+ IBM Plex Sans(正文)。
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --faint: #767676;
  --accent: #ff4d00;
  --accent-soft: #fff0ea;
  --line: #111111;
  --line-soft: #e2e2e2;
  --font-head: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16.5px; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
h1, h2, h3 {
  text-wrap: balance; font-family: var(--font-head); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶栏:细线框架,无底色 ---------- */
.topbar { border-bottom: 2px solid var(--line); }
.topbar-inner { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand .dot { color: var(--accent); }
.topnav { display: flex; gap: 26px; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.topnav a, .brand { text-decoration: none; }
@media (max-width: 720px) { .topnav { display: none; } }

/* ---------- Hero:巨大标题 + 编号元数据 ---------- */
.hero { border-bottom: 2px solid var(--line); padding: 64px 0 48px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); text-transform: uppercase; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1::after {
  content: "";
  display: inline-block;
  width: 0.14em; height: 0.14em;
  background: var(--accent);
  margin-left: 0.08em;
}
.hero .lede { max-width: 58ch; color: var(--muted); font-size: 1.08rem; }
.hero-meta { margin-top: 24px; font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--faint); display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- 排名:表格化行,无卡片 ---------- */
.index-list { border-bottom: 2px solid var(--line); }
.index-row {
  display: grid; grid-template-columns: 130px 1fr 150px 170px;
  border-bottom: 1px solid var(--line-soft); padding: 26px 0; gap: 20px;
  transition: background 0.15s ease;
}
.index-row { position: relative; }
.index-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.18s ease; }
.index-row:hover { background: var(--accent-soft); }
.index-row:hover::before { transform: scaleY(1); }
@media (max-width: 860px) { .index-row { grid-template-columns: 80px 1fr; } .index-row .col-score, .index-row .col-link { display: none; } }
.idx-no { font-family: var(--font-head); font-weight: 700; font-size: 3.4rem; line-height: 0.9; letter-spacing: -0.05em; }
.index-row:first-child .idx-no { color: var(--accent); }
.idx-body h3 { font-size: 1.35rem; margin-bottom: 6px; text-transform: uppercase; }
.idx-body p { color: var(--muted); font-size: 0.95rem; max-width: 62ch; }
.idx-tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; list-style: none; }
.idx-tags li { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--line); padding: 2px 9px; }
.col-score { text-align: right; }
.col-score .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; }
.col-score .num::after { content: ""; display: block; width: 28px; height: 5px; background: var(--accent); margin: 8px 0 0 auto; }
.col-score .lbl { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; color: var(--faint); letter-spacing: 0.08em; }
.col-link { align-self: center; font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.col-link a::after { content: " →"; color: var(--accent); }

/* ---------- 表格 ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 24px 0; }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.compare-table th { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; background: #f5f5f5; }
.compare-table tr td:first-child { font-family: var(--font-mono); font-size: 0.8rem; }

/* ---------- 正文 ---------- */
.prose { padding: 56px 0 72px; max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; text-transform: uppercase; margin: 40px 0 14px; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.prose p { margin-bottom: 16px; color: #222; }
.verdict-block { border: 2px solid var(--line); padding: 20px 22px; margin: 28px 0; }
.verdict-block .v-label { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 8px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.footer { border-top: 2px solid var(--line); padding: 32px 0 48px; font-size: 0.85rem; color: var(--muted); }
.footer-inner { display: grid; gap: 12px; }
.related-note { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---- R7 micro-interactions ---- */
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(255, 77, 0, 0.14); }
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 rule draws in */
.col-score .num::after { transform: scaleX(0); transform-origin: right; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s; }
.index-row.in .col-score .num::after { 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 .dot { display: inline-block; animation: dotpulse 2.4s ease-in-out infinite; }
@keyframes dotpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* R9b: index numerals ink-in */
.index-row .idx-no { transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: inherit; }
.index-row[data-animate]:not(.in) .idx-no { opacity: 0; transform: translateX(-10px); }

/* 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; }

/* R3 mono numerals */
[class*="mono"], .term-body, .t-output, .idx-tags, .hero-meta { font-variant-numeric: slashed-zero; }

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

/* R5 hover inner response */
.index-row:hover .idx-no { transform: translateX(4px); } .idx-no { transition: transform 0.25s cubic-bezier(0.22,1,0.36,1); }

/* 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: #ff4d0055; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #ff4d00; border: 2px solid transparent; background-clip: content-box; }

/* R8 touch feedback */
.index-row: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; } }

/* 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: var(--accent); }
