/* ==========================================================================
   易云推 GEO 建站系统 · 基础设计系统
   所有视觉变量由各套模板的 theme.css 覆盖：--bg / --surface / --text / --accent …
   ========================================================================== */

:root {
  /* 色彩（默认浅色，模板可覆盖） */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #eef0f4;
  --text: #14161a;
  --text-2: #3d434d;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #2f6bff;
  --accent-2: #12b5a5;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --on-accent: #ffffff;

  /* 排版 */
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Source Han Serif SC", "Songti SC", "SimSun", Georgia, "Times New Roman", serif;
  /* 等宽字体只对拉丁字母与数字生效。前面几种等宽字体都没有汉字，
     不显式接上中文字体的话，Windows 会把汉字回落成宋体——
     「英文是代码风、中文是宋体」的混搭就是这么来的。所以把中文黑体接在
     通用 monospace 之前：拉丁字符走等宽，汉字走黑体。 */
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", monospace;

  /* 形状与阴影
     2026 改版：用「发丝线 + 轻微底色」区分层级，不再靠重投影。
     重投影在浅色页面上发灰、显脏；这里只保留一层很淡的落影做提示。 */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .12);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 28px 64px -30px rgba(16, 24, 40, .22);

  /* 布局 */
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 104px);
  --border-w: 1px;
  --header-h: 68px;

  /* 语义色 */
  --good: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;

  color-scheme: light;
}

/* 深色底模板的默认语义（模板可覆盖具体数值） */
body.is-dark {
  --bg: #0b0d12;
  --surface: #12151c;
  --surface-2: #171b24;
  --surface-3: #1e2330;
  --text: #f2f5f9;
  --text-2: #c8d0da;
  --muted: #94a2b3;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 32px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 40px 80px -32px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 999;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------- 通用元素 ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; flex: none;
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor; opacity: .6;
}

.ico { width: 18px; height: 18px; flex: none; }
.dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: var(--good);
  display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--btn-radius, var(--radius-sm));
  font-size: 14.5px; font-weight: 600; line-height: 1;
  border: var(--border-w) solid transparent;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn .ico { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); transform: translateY(-1px); }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost { color: var(--text-2); background: var(--surface-2); }
.btn--ghost:hover { color: var(--text); background: var(--surface-3); }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 14px 26px; font-size: 15.5px; }

.tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: var(--radius-pill);
}
.tag--lg { font-size: 12.5px; padding: 5px 12px; }
.chip {
  display: inline-flex; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 5px 12px; transition: .18s ease;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }

.geo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 12%, transparent);
  padding: 3px 8px; border-radius: var(--radius-pill);
}
.geo-badge .ico { width: 12px; height: 12px; }
.geo-badge--lg { font-size: 12.5px; padding: 5px 11px; }

.geo-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent); text-transform: uppercase;
}
.geo-pill .ico { width: 14px; height: 14px; }

/* ---------------- 头部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-size: 15px; font-weight: 800; letter-spacing: -.02em;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; font-weight: 750; letter-spacing: .01em; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative; padding: 7px 12px; font-size: 14px; font-weight: 550;
  color: var(--text-2); border-radius: var(--radius-sm); transition: .18s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px;
  height: 2px; border-radius: 2px; background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 语言切换：两个以上语言时才出现，多了就换行不挤掉主按钮 */
.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap;
  padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang-globe { display: inline-flex; padding: 0 4px 0 6px; color: var(--muted); }
.lang-globe .ico { width: 14px; height: 14px; }
.lang-link {
  padding: 4px 9px; font-size: 12px; color: var(--text-2); border-radius: 999px;
  white-space: nowrap; transition: .16s ease;
}
.lang-link:hover { color: var(--text); background: var(--surface-2); }
.lang-link.is-current { color: #fff; background: var(--accent); }
.mobile-nav .lang-switch { margin: 4px var(--gutter) 14px; }
/* 文章页底部的其他语言入口 */
.article-langs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.article-langs a {
  font-size: 12.5px; padding: 4px 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; color: var(--text-2);
}
.article-langs a:hover { color: var(--accent); border-color: var(--accent); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 16px; height: 1.6px; background: var(--text); border-radius: 2px; transition: .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.mobile-nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.mobile-nav nav { display: flex; flex-direction: column; padding: 8px var(--gutter) 16px; }
.mobile-nav a { padding: 11px 4px; font-size: 15px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(44px, 6vw, 80px) 0 clamp(18px, 2.6vw, 30px); }
/* 首屏与紧随其后的区块之间保持紧凑，避免大片空白 */
.hero + .section, .hero-stats + .section { padding-top: clamp(34px, 4.4vw, 60px); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-title {
  /* 2026 改版：标题靠「大」而不是靠「粗」立住。
     中文字体没有真正的细字重（Windows 的雅黑只有常规/粗体），
     所以取 600：PingFang 落到半粗，雅黑落到粗体——比原来的 800 明显轻一档。 */
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.1; letter-spacing: -.03em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-desc {
  margin-top: 20px; font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2); max-width: 64ch; line-height: 1.72; text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--muted); }
.hero-trust strong { color: var(--text-2); font-weight: 600; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  margin: clamp(36px, 5vw, 56px) auto 0; max-width: var(--container);
  padding: 0 var(--gutter);
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
body > .hero > .hero-stats { margin-inline: auto; }
.hero-stats > div { background: var(--bg); padding: 18px 20px; }
.hero-stats dt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.hero-stats dd { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }

/* center 变体 */
.hero--center { text-align: center; overflow: hidden; }
.hero--center .hero-inner { margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero--center .hero-desc { margin-inline: auto; }
.hero--center .hero-actions { justify-content: center; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* 首屏光晕：只做氛围，不抢字。透明度按「叠加后文字对比度仍达标」取值。 */
.hero-bg span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .3;
  animation: floaty 18s ease-in-out infinite;
}
.hero-bg span:nth-child(1) { width: 420px; height: 420px; background: var(--accent); top: -160px; left: 8%; }
.hero-bg span:nth-child(2) { width: 360px; height: 360px; background: var(--accent-2); top: -80px; right: 6%; animation-delay: -6s; }
.hero-bg span:nth-child(3) { width: 300px; height: 300px; background: var(--accent); bottom: -200px; left: 42%; opacity: .28; animation-delay: -12s; }
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, 26px, 0) scale(1.08); }
}

/* split 变体 */
.hero--split .hero-split {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero--split .hero-visual { position: relative; }
.visual-card {
  position: relative; z-index: 1;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg);
}
.vc-bar { display: flex; gap: 6px; margin-bottom: 18px; }
.vc-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.vc-line { height: 9px; border-radius: 4px; background: var(--surface-3); margin-bottom: 10px; }
.vc-line.w80 { width: 80%; } .vc-line.w60 { width: 60%; } .vc-line.w90 { width: 90%; }
.vc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.vc-grid b { height: 44px; border-radius: 8px; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); }
.vc-badge {
  position: absolute; right: 16px; top: 16px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 4px 10px;
}
.visual-glow {
  position: absolute; inset: 12% -8% -12% 12%;
  background: radial-gradient(circle at 60% 40%, var(--accent), transparent 65%);
  filter: blur(60px); opacity: .35; z-index: 0;
}

/* panel 变体 */
.hero-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-panel::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px;
  background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .16;
}

/* masthead 变体 */
.hero--masthead { border-bottom: 2px solid var(--text); padding-bottom: 28px; }
.masthead-rule {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: clamp(24px, 4vw, 38px);
}
.hero--masthead .hero-title { font-size: clamp(34px, 5.6vw, 72px); letter-spacing: -.03em; }
.masthead-lead {
  display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: end;
  margin-top: 22px; padding-bottom: 26px;
}
.masthead-lead .hero-actions { margin-top: 0; justify-content: flex-end; }

/* bento 变体 */
.bento-head {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px;
  align-items: end; margin-bottom: clamp(28px, 4vw, 44px);
}
.bento-head-side .hero-actions { margin-top: 18px; }
.bento-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, minmax(130px, auto));
  gap: 12px;
}
.bento-cell {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; justify-content: flex-end;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-cell.b1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2))); color: var(--on-accent); border: 0; }
.bento-cell.b1 .bento-k { color: rgba(255, 255, 255, .8); }
.bento-cell.b2 { grid-column: span 2; }
.bento-cell.b3 { grid-column: span 1; align-items: flex-start; justify-content: center; }
.bento-cell.b4 { grid-column: span 1; }
.bento-cell.b5 { grid-column: span 2; }
.bento-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.bento-cell strong { font-size: clamp(26px, 3.4vw, 42px); font-weight: 650; letter-spacing: -.03em; line-height: 1; }
.bento-cell strong small { font-size: .4em; font-weight: 600; opacity: .6; margin-left: 2px; }
.bento-trend { font-size: 12px; color: var(--good); font-weight: 600; }
.spark-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; margin-top: auto; }
.spark-bars i { flex: 1; background: rgba(255, 255, 255, .55); border-radius: 3px 3px 2px 2px; }
.spark-bars i:nth-child(1) { height: 30%; } .spark-bars i:nth-child(2) { height: 52%; }
.spark-bars i:nth-child(3) { height: 42%; } .spark-bars i:nth-child(4) { height: 70%; }
.spark-bars i:nth-child(5) { height: 58%; } .spark-bars i:nth-child(6) { height: 84%; }
.spark-bars i:nth-child(7) { height: 100%; background: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row b {
  font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}

/* terminal 变体 */
.term-window {
  max-width: 720px; margin: 0 auto clamp(28px, 4vw, 44px);
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  font-family: var(--font-mono); font-size: 13px; text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-3);
}
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.t-dot.r { background: #ff5f57; } .t-dot.y { background: #febc2e; } .t-dot.g { background: #28c840; }
.term-bar em { margin-left: 8px; font-style: normal; font-size: 11.5px; color: var(--muted); }
.term-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.term-line { font-family: var(--font-mono); font-size: 12.8px; color: var(--text-2); }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-dim { color: var(--muted); } .t-ok { color: var(--good); } .t-warn { color: var(--warn); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* bigtype 变体 */
.hero--bigtype .hero-title { font-size: clamp(34px, 6.4vw, 84px); letter-spacing: -.045em; line-height: 1.02; }
.bigtype-foot {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px;
  align-items: end; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line);
}
.bigtype-foot .hero-actions { margin-top: 0; justify-content: flex-end; }

/* shop 变体 */
.hero-shop { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.hero-bullets { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; }
.hero-bullets li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.hero-bullets .ico { color: var(--accent); width: 16px; height: 16px; }
.hero-product { display: grid; place-items: center; }
.product-shot {
  position: relative; width: min(340px, 100%); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--surface), var(--surface-2));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.product-shot strong { font-size: clamp(48px, 8vw, 84px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.ps-label { position: absolute; top: 16%; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ps-ring { position: absolute; inset: 12%; border-radius: 50%; border: 2px dashed var(--accent); opacity: .35; animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 区块 ---------------- */
.section { padding: var(--section-y) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title {
  font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -.025em; font-weight: 750;
}
.section-sub { margin-top: 12px; color: var(--muted); font-size: 15.5px; max-width: 70ch; text-wrap: pretty; }
.section-foot { margin-top: 36px; display: flex; justify-content: center; }

.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 功能卡 */
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 4px;
}
.feature-card h3 { font-size: 17px; }
.feature-card p { font-size: 14.2px; color: var(--muted); line-height: 1.68; }
.feature-meta { margin-top: auto; font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }

/* 便当区 */
.feature-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.fb-cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.fb-cell h3 { font-size: 17px; }
.fb-cell p { font-size: 14px; color: var(--muted); }
.fb-1 { grid-column: span 4; grid-row: span 2; }
.fb-2 { grid-column: span 2; }
.fb-3 { grid-column: span 2; }
.fb-4 { grid-column: span 3; }
.fb-5 { grid-column: span 3; }

/* 统计带 */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.stat { background: var(--surface); padding: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding-top: 22px; border-top: 2px solid var(--line); }
.step-num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  font-weight: 700; letter-spacing: .1em;
}
.step h3 { margin-top: 10px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* 栏目卡 */
.cat-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  transition: .2s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-ico { color: var(--accent); }
.cat-ico .ico { width: 22px; height: 22px; }
.cat-card h3 { font-size: 16.5px; }
.cat-card p { font-size: 13.6px; color: var(--muted); }
.cat-count { margin-top: 6px; font-size: 12.5px; color: var(--accent); display: flex; align-items: center; gap: 4px; font-weight: 600; }
.cat-count .ico { width: 14px; height: 14px; }

/* ---------------- 文章卡 ---------------- */
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.cover-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .cover-img { transform: scale(1.035); }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.post-card__meta time { font-variant-numeric: tabular-nums; }
.read-time::before { content: "·"; margin-right: 8px; }
.post-card__title { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.post-card__title a { transition: color .18s ease; }
.post-card__title a:hover { color: var(--accent); }
.post-card__desc { font-size: 13.8px; color: var(--muted); line-height: 1.66; }
.post-card__foot {
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.post-card__more { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.post-card__more .ico { width: 14px; height: 14px; }

/* 列表型文章行 */
.post-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.post-row {
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 18px; align-items: start;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.post-row:hover { background: var(--surface-2); }
.post-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding-top: 4px; }
.post-row__main h3 { font-size: 18px; letter-spacing: -.01em; }
.post-row__main h3 a:hover { color: var(--accent); }
.post-row__main p { margin-top: 6px; font-size: 13.8px; color: var(--muted); }
.post-row__meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.post-row__arrow { color: var(--line-strong); padding-top: 6px; transition: .2s ease; }
.post-row:hover .post-row__arrow { color: var(--accent); transform: translateX(3px); }

/* 特色封面文章 */
.post-feature { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
.post-card--lead .post-card__media { aspect-ratio: 16 / 9; }
.post-card--lead .post-card__title { font-size: clamp(20px, 2.4vw, 26px); }
.post-feature-side { display: flex; flex-direction: column; justify-content: center; }
.post-feature-side .post-row { grid-template-columns: 1fr; }
.post-feature-side .post-row__num, .post-feature-side .post-row__arrow { display: none; }

/* ---------------- GEO 内容块 ---------------- */
.geo-summary {
  position: relative;
  background: linear-gradient(180deg, var(--accent-soft), transparent 85%);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 32px;
}
.geo-summary__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.geo-summary__hint { font-size: 12px; color: var(--muted); }
.geo-summary__list { display: flex; flex-direction: column; gap: 8px; }
.geo-summary__list li {
  position: relative; padding-left: 20px; font-size: 14.6px; color: var(--text-2); line-height: 1.7;
}
.geo-summary__list li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 6px; height: 6px; border-radius: 2px; background: var(--accent);
}
.geo-summary__take {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line));
  font-size: 14.2px; color: var(--text-2);
}
.geo-summary__take strong { color: var(--text); }

.geo-block-title { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; }
.geo-block-sub { margin-top: 8px; margin-bottom: 18px; font-size: 13.6px; color: var(--muted); }
.geo-entities, .geo-faq, .geo-sources {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line);
}

.table-wrap { margin: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.table-wrap table { font-size: 13.8px; min-width: 520px; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { background: var(--surface-2); font-size: 12.5px; letter-spacing: .03em; color: var(--muted); font-weight: 650; }
.table-wrap tbody th { font-weight: 650; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 15px 18px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15px; font-weight: 600; }
.faq-icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto; height: 1.6px; background: var(--muted);
  transition: transform .2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-a { padding: 0 18px 16px; font-size: 14.2px; color: var(--text-2); line-height: 1.75; }
.faq-list--wide { max-width: 860px; }

.source-list { display: flex; flex-direction: column; gap: 8px; }
.source-list li { font-size: 13.6px; color: var(--text-2); }
.source-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.src-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-right: 4px; }
.src-pub, .source-list time { color: var(--muted); font-size: 12.5px; }

/* ---------------- 文章页 ---------------- */
.article-head { padding: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.article-head-inner { max-width: 820px; }
.article-kicker { display: flex; align-items: center; gap: 10px; margin: 18px 0 16px; }
.article-title { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -.028em; }
.article-summary { margin-top: 16px; font-size: 16px; color: var(--text-2); line-height: 1.75; max-width: 68ch; }
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 22px; font-size: 13px; color: var(--muted);
}
.article-meta .author { font-weight: 600; color: var(--text-2); }
.meta-sep { opacity: .5; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(28px, 4vw, 56px); padding-top: clamp(28px, 4vw, 44px);
}
.article-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; }
.article-cover .cover-img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 16.4px; line-height: 1.85; color: var(--text-2); }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  margin-top: 44px; font-size: clamp(21px, 2.6vw, 27px); color: var(--text);
  letter-spacing: -.02em; scroll-margin-top: 88px;
}
.prose h3 { margin-top: 32px; font-size: 19.5px; color: var(--text); }
.prose h4 { margin-top: 26px; font-size: 17px; color: var(--text); }
.prose p { margin-top: 18px; }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { margin-top: 18px; padding-left: 4px; display: flex; flex-direction: column; gap: 9px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: .74em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7;
}
.prose ol { counter-reset: li; }
.prose ol li { position: relative; padding-left: 26px; counter-increment: li; }
.prose ol li::before {
  content: counter(li) "."; position: absolute; left: 0; top: 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 700;
}
.prose blockquote {
  margin: 26px 0; padding: 18px 22px;
  border-left: 3px solid var(--accent); background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text); font-size: 15.6px;
}
.prose blockquote p { margin: 0; }
.prose code {
  font-family: var(--font-mono); font-size: .9em;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: 5px;
}
.prose pre {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose img { border-radius: var(--radius-sm); margin: 24px 0; }
.prose .ilink { border-bottom: 1px dashed currentColor; text-decoration: none; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.article-end {
  margin-top: 28px; padding: 18px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); font-size: 13px; color: var(--muted);
}
.article-end p { margin-top: 6px; word-break: break-all; }
.article-end a { color: var(--accent); }

.article-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 86px; align-self: start; }
.article-toc {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface);
}
.toc-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.article-toc ol { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; border-left: 1px solid var(--line); }
.article-toc li { padding-left: 12px; font-size: 13.4px; }
.article-toc a { color: var(--text-2); transition: color .16s ease; }
.article-toc a:hover { color: var(--accent); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.side-card h3 { font-size: 14px; margin-bottom: 12px; }
.side-card p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.side-list { display: flex; flex-direction: column; gap: 12px; }
.side-list li { display: flex; flex-direction: column; gap: 3px; }
.side-list a { font-size: 13.6px; color: var(--text-2); line-height: 1.5; }
.side-list a:hover { color: var(--accent); }
.side-list time { font-size: 11.5px; color: var(--muted); }
.side-card--cta { background: var(--surface-2); }

/* 面包屑 */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current] { color: var(--text-2); }

/* ---------------- 列表页 / 单页 ---------------- */
.page-head { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 28px); }
.page-head .breadcrumb { margin-bottom: 18px; }
.page-title { font-size: clamp(28px, 4.2vw, 48px); letter-spacing: -.03em; line-height: 1.15; }
.page-desc { margin-top: 12px; font-size: 15.6px; color: var(--muted); max-width: 66ch; }
.cat-summary {
  margin-top: 22px; padding: 16px 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface-2); max-width: 760px;
}
.cat-summary p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.prose--page { max-width: 760px; }

.search-form { display: flex; gap: 10px; margin-top: 20px; max-width: 520px; }
.search-form input {
  flex: 1; padding: 11px 16px; border: 1px solid var(--line-strong);
  border-radius: var(--btn-radius, var(--radius-sm)); background: var(--surface);
  font-size: 14.5px;
}
.search-form input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 44px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-2); transition: .16s ease;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.pagination .is-disabled { opacity: .4; }

.empty-state {
  padding: 56px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius); font-size: 14px;
}

/* ---------------- CTA ---------------- */
.cta-section { padding-top: 0; }
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(21px, 2.6vw, 30px); letter-spacing: -.025em; }
.cta-band p { margin-top: 10px; font-size: 14.5px; color: var(--muted); max-width: 52ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 大引用 */
.big-quote { margin: 0; max-width: 900px; }
.big-quote p {
  font-family: var(--font-serif); font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.5; letter-spacing: -.02em;
}
.big-quote footer { margin-top: 20px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

/* ---------------- 页脚 ---------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 76px); padding-top: clamp(36px, 5vw, 56px); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 48px); padding-bottom: 40px;
}
.footer-desc { margin-top: 14px; font-size: 13.4px; color: var(--muted); max-width: 36ch; line-height: 1.7; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.footer-social a {
  font-size: 12.5px; color: var(--muted); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: var(--radius-pill); transition: .16s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-col h3 { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; font-size: 13.6px; color: var(--text-2); margin-bottom: 9px; }
.footer-col a:hover { color: var(--accent); }
.footer-contact p { color: var(--muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 18px 0 26px;
  font-size: 12.5px; color: var(--muted);
}
.footer-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-meta a { color: var(--muted); }
.footer-meta a:hover { color: var(--accent); }
.icp-link { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.icp-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.brand--footer .brand-mark { width: 30px; height: 30px; font-size: 13px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; order: 2; }
  .post-feature { grid-template-columns: 1fr; }
  .hero--split .hero-split, .hero-shop, .bento-head, .bigtype-foot, .masthead-lead { grid-template-columns: 1fr; gap: 28px; }
  .masthead-lead .hero-actions, .bigtype-foot .hero-actions { justify-content: flex-start; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.b1 { grid-column: span 2; grid-row: span 1; }
  .bento-cell.b2, .bento-cell.b5 { grid-column: span 2; }
  .feature-bento { grid-template-columns: repeat(2, 1fr); }
  .fb-1, .fb-2, .fb-3, .fb-4, .fb-5 { grid-column: span 2; grid-row: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn--ghost { display: none; }
  /* 头部空间紧，语言切换收进抽屉菜单 */
  .header-actions .lang-switch { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --header-h: 60px; }
  body { font-size: 15.5px; }
  .grid--2, .grid--3, .grid--4, .feature-bento { grid-template-columns: 1fr; }
  .fb-cell { grid-column: span 1; }
  .hero-actions .btn { flex: 1 1 100%; }
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row__num, .post-row__arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .article-title { font-size: 25px; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* 询盘提交反馈（云端提交） */
.form-note[data-tone="ok"] { color: #12703a; }
.form-note[data-tone="warn"] { color: #b42318; }
.form-note[data-tone="pending"] { color: var(--muted); }

/* 页脚多一列「平台链接」时的栅格（客户中心 / 用户登录入口） */
.footer-grid--5 { grid-template-columns: 1.6fr .9fr .9fr .9fr 1.1fr; }
@media (max-width: 1024px) {
  .footer-grid--5 { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid--5 .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-grid--5 { grid-template-columns: 1fr 1fr; }
}
