/* Token Harbor · 墨色双模设计语言 —— 默认变体:近黑(dark)
   ------------------------------------------------------------------
   单文件即可用:一份 :root 暗色 token + 全部基础 chrome(重置 / 排版刻度 / 按钮 / tag / chip /
   announce 条 / 吸顶 header / 导航 / 语言与主题按钮 / hero / 分区头 / 作品卡 / 服务卡 / 定价卡 /
   附加项 / 维护包 / 流程 / why 卡 / FAQ / 案例卡 / 联系表单 / 页脚 / 响应式 / 减少动效 / 法务页)。
   深浅同页可切:再引一份 css/themes.css(那份只出 [data-theme] 作用域的 token 覆盖)。
   主张:无色相 —— 唯一强调色就是墨色本身,靠墨/纸互换与一条细线制造层次;无渐变;标题不外挂衬线。
   真值源:tokens/semantic/dark.json;本文件的 token 值由 scripts/assert_tokens.py 逐条比对。
   字号 / 圆角 / 布局刻度见 docs/usage.md §刻度。 */

/* ── 1 · token(暗色 = 默认) ─────────────────────────────────────────── */

:root {
  color-scheme: dark;

  /* 底与面 */
  --bg: #141413;
  --surface: #1b1b19;
  --surface-raised: #232320;

  /* 墨与灰字 */
  --ink: #e8e6e1;
  --muted: #9a9793;
  --muted-soft: #6f6c68;

  /* 四级透明墨线 */
  --line: rgba(255, 255, 255, 0.0902);
  --line-hairline: rgba(255, 255, 255, 0.0510);
  --line-field: rgba(255, 255, 255, 0.1608);
  --line-control: rgba(255, 255, 255, 0.3608);

  /* 交互洗色 */
  --surface-hover: rgba(255, 255, 255, 0.0392);
  --surface-pressed: rgba(255, 255, 255, 0.0784);

  /* 强调 = 墨本身;压在它上面的字用 on-accent */
  --accent: #e8e6e1;
  --on-accent: #141413;

  /* 反色块:announce 条与定价主推卡 */
  --promo-bg: #e8e6e1;
  --promo-fg: #141413;
  --promo-muted: rgba(20, 20, 19, 0.7);
  --promo-tag-bg: rgba(20, 20, 19, 0.12);

  /* 页脚:两模共用同一套深色 token */
  --footer-bg: #0c0d09;
  --footer-fg: #fafaf9;
  --footer-strong: rgba(250, 250, 249, 0.9);
  --footer-link: rgba(250, 250, 249, 0.6);
  --footer-muted: rgba(250, 250, 249, 0.55);
  --footer-faint: rgba(250, 250, 249, 0.45);
  --footer-line: rgba(250, 250, 249, 0.12);
  --footer-line-strong: rgba(250, 250, 249, 0.18);

  /* 图上叠加:与主题无关 */
  --overlay-bg: rgba(20, 20, 19, 0.72);
  --overlay-fg: #f7f6f2;
  --overlay-line: rgba(255, 255, 255, 0.14);

  /* 影:三档,只给浮起元素 */
  --shadow-btn: 0 1px rgba(0, 0, 0, 0.1020), 0 2px 4px rgba(0, 0, 0, 0.2000), 0 8px 22px -4px rgba(0, 0, 0, 0.3490);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.1333), 0 8px 24px -12px rgba(0, 0, 0, 0.2667);
  --shadow-pill: 0 1px rgba(0, 0, 0, 0.1490), 0 2px 4px rgba(0, 0, 0, 0.2000), 0 12px 28px -8px rgba(0, 0, 0, 0.3333);

  /* 字族:包内不引 webfont(零外部子资源),用系统栈回退 */
  --font-sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* 字阶:12 档;组件局部的 11.5 / 12.5 / 13.5 是子档,直接写字面值 */
  --fs-display: 64px;
  --fs-section: 40px;
  --fs-case: 20px;
  --fs-sub: 18px;
  --fs-card: 17px;
  --fs-lede: 16px;
  --fs-body: 14px;
  --fs-small: 13px;
  --fs-meta: 12px;
  --fs-caption: 11px;
  --fs-eyebrow: 10.5px;

  /* 圆角:按钮 4 / 菜单 6 / chip 10 / 卡 14 / 胶囊 */
  --radius-btn: 4px;
  --radius-menu: 6px;
  --radius-chip: 10px;
  --radius-card: 14px;
  --radius-pill: 999px;

  /* 布局 */
  --maxw: 1240px;
  --maxw-narrow: 880px;
  --wrap-x: 24px;
  --sec-y: 80px;
  --anchor-offset: 96px;
  --hit: 44px;

  /* 动效:0.16 快互动 / 0.2 主题与影 / 0.18 常态 / 0.4 图像 */
  --dur-fast: 0.16s;
  --dur-base: 0.18s;
  --dur-mid: 0.2s;
  --dur-slow: 0.4s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* 跨包共存别名:项目里已占用 --bg 这类短名时,改用 --theme-* 引用 */
  --theme-bg: var(--bg);
  --theme-surface: var(--surface);
  --theme-surface-raised: var(--surface-raised);
  --theme-ink: var(--ink);
  --theme-muted: var(--muted);
  --theme-muted-soft: var(--muted-soft);
  --theme-line: var(--line);
  --theme-line-hairline: var(--line-hairline);
  --theme-accent: var(--accent);
  --theme-on-accent: var(--on-accent);
  --theme-promo-bg: var(--promo-bg);
  --theme-promo-fg: var(--promo-fg);
  --theme-footer-bg: var(--footer-bg);
  --theme-footer-fg: var(--footer-fg);
}

/* ── 2 · 重置与基础 ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-mid) ease, color var(--dur-mid) ease;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.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: absolute; left: -9999px; top: auto; }
.skip-link:focus {
  left: 8px; top: 8px; z-index: 9999;
  padding: 8px 16px;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-btn);
}

/* ── 3 · 布局工具 ───────────────────────────────────────────────────── */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--wrap-x); }
.wrap-narrow { max-width: var(--maxw-narrow); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-6 { margin-top: 40px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-3 { gap: 12px; }

/* ── 4 · 排版刻度 ───────────────────────────────────────────────────── */

.eyebrow {
  display: block;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: var(--fs-eyebrow);
  font-weight: 800;
}
.h-display {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.h-section {
  margin: 0;
  font-size: var(--fs-section);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.16;
  color: var(--ink);
  text-wrap: balance;
}
.h-card {
  margin: 0;
  font-size: var(--fs-card);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.lede {
  margin: 16px 0 0;
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.76;
  text-wrap: pretty;
}
.body-sm {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.76;
}
.muted { color: var(--muted); }
.muted-soft { color: var(--muted-soft); }

/* ── 5 · 按钮 / tag / chip ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  border: 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-mid) ease,
    opacity var(--dur-fast) ease, background var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { transform: translateY(-1px); color: var(--on-accent); opacity: 0.95; }
.btn-primary:active { transform: translateY(0); opacity: 0.9; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-field);
}
.btn-outline:hover { background: var(--surface-hover); border-color: var(--line-control); }
.btn-lg { height: 44px; padding: 0 24px; font-size: var(--fs-body); }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-meta); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  background: var(--surface-pressed);
  color: var(--ink);
  border-radius: var(--radius-pill);
  line-height: 1.2;
  white-space: nowrap;
}
.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit);
  height: var(--hit);
  background: var(--surface-pressed);
  color: var(--ink);
  border-radius: var(--radius-chip);
  flex-shrink: 0;
}
.icon-chip svg { width: 20px; height: 20px; stroke-width: 2.2; }

/* ── 6 · announce 条 ───────────────────────────────────────────────── */

.announce {
  background: var(--promo-bg);
  color: var(--promo-fg);
  font-size: var(--fs-meta);
  font-weight: 500;
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}
.announce-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--promo-fg);
  flex-shrink: 0;
}

/* ── 7 · 吸顶 header / 导航 / 语言与主题按钮 ────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: var(--fs-lede);
  font-weight: 800;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
/* 品牌标记:纯 CSS 画的方框含内芯,不引任何图片与字体;
   原站的 logo 图形是站点自有资产,本包用这个中性几何件占位(docs/usage.md §接入步骤 第 4 条)。 */
.brand-mark {
  position: relative;
  display: inline-block;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border: 1.5px solid currentColor;
  border-radius: 3px;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: currentColor;
  border-radius: 1px;
}
.brand-text { font-weight: 800; }
.brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid var(--line-hairline);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
}
.nav a { color: var(--muted); transition: color var(--dur-fast) ease; }
.nav a:hover { color: var(--ink); }
.nav-cta { display: none; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-meta);
  font-weight: 500;
}
.lang-switch a {
  padding: 6px 8px;
  border-radius: var(--radius-btn);
  color: var(--muted);
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.lang-switch a:hover { background: var(--surface-hover); color: var(--ink); }
.lang-switch a.is-active { color: var(--ink); background: var(--surface-pressed); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hit); height: var(--hit);
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}
.theme-toggle:hover { background: var(--surface-hover); color: var(--ink); }
.theme-toggle svg { width: 17px; height: 17px; stroke-width: 1.8; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  width: var(--hit); height: var(--hit);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  border-radius: var(--radius-btn);
  color: var(--ink);
}
.menu-toggle:hover { background: var(--surface-hover); }
.menu-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-base) ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ── 8 · hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 260px);
  padding: 64px var(--wrap-x) 48px;
  text-align: center;
  overflow: hidden;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 92vw;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-pill);
  margin-bottom: 28px;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
.hero-title {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 980px;
  text-wrap: balance;
}
.hero-sub {
  margin: 20px 0 0;
  max-width: 720px;
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.76;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-note {
  margin: 18px 0 0;
  font-size: var(--fs-meta);
  color: var(--muted);
}
.hero-proof {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 48px;
  border-top: 1px solid var(--line-hairline);
  border-bottom: 1px solid var(--line-hairline);
}
.proof-item {
  min-width: 150px;
  padding: 18px 28px;
  text-align: center;
}
.proof-item + .proof-item { border-left: 1px solid var(--line-hairline); }
.proof-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.proof-label {
  display: block;
  margin-top: 7px;
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── 9 · 分区头 ─────────────────────────────────────────────────────── */

.section { padding: var(--sec-y) var(--wrap-x) 64px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head .lede { max-width: 640px; margin-left: auto; margin-right: auto; }
.section-head--left { text-align: left; }
.section-head--left .lede { margin-left: 0; }

/* ── 10 · 作品卡 ────────────────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease,
    border-color var(--dur-base) ease;
}
.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--line-field);
}
.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line-hairline);
}
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.work-card:hover .work-media img { transform: scale(1.025); }
.work-type {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--overlay-bg);
  color: var(--overlay-fg);
  border: 1px solid var(--overlay-line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.work-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 24px;
}
.work-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.work-title { font-size: var(--fs-lede); font-weight: 700; letter-spacing: -0.01em; }
.work-arrow { color: var(--muted); font-size: var(--fs-small); flex-shrink: 0; }
.work-desc { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.work-tags .tag { font-size: var(--fs-eyebrow); padding: 3px 8px; }
.work-all { margin-top: 32px; text-align: center; }
.work-all a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-control);
}
.work-all a:hover { text-decoration-color: var(--ink); }

/* ── 11 · 服务卡 ────────────────────────────────────────────────────── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
}
.service-card .tag { align-self: flex-start; }
.service-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.service-tags .tag { font-size: var(--fs-eyebrow); padding: 3px 8px; }

/* ── 12 · 定价卡 ────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.sku-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
  transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease,
    border-color var(--dur-base) ease;
}
.sku-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); border-color: var(--line-field); }
.sku-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--muted);
}
.sku-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.sku-price-num { font-size: 38px; font-weight: 700; letter-spacing: -0.025em; line-height: 1; color: var(--ink); }
.sku-price-unit { font-size: var(--fs-meta); color: var(--muted); }
.sku-desc { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); flex: 1; }
.sku-features {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: var(--fs-small); line-height: 1.5;
}
.sku-features li { display: flex; align-items: flex-start; gap: 8px; }
.sku-features li::before { content: "✓"; font-weight: 700; flex-shrink: 0; color: var(--ink); }

/* 主推卡:整块翻成反色(promo-*),两模共用同一套规则,不再写 html[data-theme="light"] 分支 */
.sku-card.is-featured {
  background: var(--promo-bg);
  color: var(--promo-fg);
  border-color: var(--promo-bg);
  box-shadow: var(--shadow-card);
}
.sku-card.is-featured .sku-name,
.sku-card.is-featured .sku-price-unit,
.sku-card.is-featured .sku-desc { color: var(--promo-muted); }
.sku-card.is-featured .sku-price-num { color: var(--promo-fg); }
.sku-card.is-featured .sku-features { color: var(--promo-fg); }
.sku-card.is-featured .sku-features li::before { color: var(--promo-fg); }
.sku-card.is-featured .btn-primary {
  background: var(--promo-fg);
  color: var(--promo-bg);
  box-shadow: none;
}
.sku-card.is-featured .tag { background: var(--promo-tag-bg); color: var(--promo-fg); }
.pricing-note { margin: 24px auto 0; max-width: 760px; text-align: center; font-size: var(--fs-meta); color: var(--muted); }

.extras-wrap { margin-top: 64px; }
.extras-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.extras-head h3 { margin: 0; font-size: var(--fs-sub); font-weight: 600; letter-spacing: -0.01em; }
.extras-head span { font-size: var(--fs-meta); color: var(--muted); }
.extras-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-hairline); border: 1px solid var(--line-hairline); border-radius: var(--radius-card); overflow: hidden; }
.extra-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; background: var(--surface); }
.extra-name { font-size: 13.5px; font-weight: 600; }
.extra-desc { margin: 4px 0 0; font-size: var(--fs-meta); line-height: 1.5; color: var(--muted); }
.extra-price { font-size: var(--fs-meta); font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }

.care-wrap { margin-top: 64px; }
.care-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.care-card { padding: 24px; background: var(--surface); border: 1px solid var(--line-hairline); border-radius: var(--radius-card); }
.care-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.care-name { font-size: var(--fs-body); font-weight: 700; }
.care-price { font-size: var(--fs-case); font-weight: 700; letter-spacing: -0.02em; }
.care-price span { font-size: var(--fs-caption); font-weight: 500; color: var(--muted); }
.care-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--muted); }
.care-list li { display: flex; gap: 8px; }
.care-list li::before { content: "·"; color: var(--ink); font-weight: 700; }

/* ── 13 · 流程 ──────────────────────────────────────────────────────── */

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-hairline);
}
.process-step {
  padding: 24px 20px 0 0;
  border-right: 1px solid var(--line-hairline);
}
.process-step:last-child { border-right: 0; padding-right: 0; }
.process-step + .process-step { padding-left: 20px; }
.process-num { display: block; font-size: var(--fs-caption); font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.process-title { margin: 12px 0 0; font-size: 15px; font-weight: 700; }
.process-desc { margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }

/* ── 14 · why 卡 ────────────────────────────────────────────────────── */

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why-card { padding: 28px; background: var(--surface); border: 1px solid var(--line-hairline); border-radius: var(--radius-card); }
.why-card h3 { margin: 0 0 8px; font-size: var(--fs-lede); font-weight: 700; letter-spacing: -0.01em; }
.why-card p { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--muted); }

/* ── 15 · FAQ ───────────────────────────────────────────────────────── */

.faq-list { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line-hairline); }
.faq-item { border-bottom: 1px solid var(--line-hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-body);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: var(--fs-sub);
  font-weight: 400;
  color: var(--muted);
  transition: transform var(--dur-fast) ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 22px; max-width: 720px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* ── 16 · 案例卡 ────────────────────────────────────────────────────── */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
}
.case-label {
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.case-title {
  margin: 0;
  font-size: var(--fs-case);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.case-list { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.case-list div { border-top: 1px solid var(--line-hairline); padding-top: 12px; }
.case-list dt {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.case-list dd { margin: 0; font-size: var(--fs-small); line-height: 1.55; color: var(--ink); opacity: 0.78; }
.case-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tags .tag { font-size: var(--fs-eyebrow); padding: 3px 8px; }
.case-foot > a {
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-control);
}
.case-foot > a:hover { text-decoration-color: var(--ink); }

/* ── 17 · 联系区与表单 ──────────────────────────────────────────────── */

.contact-section { padding: var(--sec-y) var(--wrap-x) 96px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
  max-width: 1080px;
}
.contact-intro { padding-top: 20px; }
.contact-note { margin: 20px 0 0; font-size: var(--fs-meta); color: var(--muted); }
.contact-checklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.contact-checklist span {
  font-size: var(--fs-caption);
  color: var(--muted);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
}
.contact-fallback { margin: 24px 0 0; font-size: var(--fs-meta); color: var(--muted); }
.contact-fallback a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line-hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.form-title { margin: 0 0 20px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: -0.01em; }
.project-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-meta); font-weight: 600; }
.field span { color: var(--ink); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font-size: var(--fs-small);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-field);
  border-radius: var(--radius-btn);
  outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--surface-pressed);
}
.field textarea { min-height: 120px; resize: vertical; }
.field small { font-size: var(--fs-caption); font-weight: 400; color: var(--muted); }

/* 校验态:这套语言里没有色相,报错靠"加粗描边 + 圆形叹号 + 文案",不靠红绿 */
.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--ink);
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 14px; height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 9px;
  line-height: 1;
  flex-shrink: 0;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--fs-meta);
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
}
.check input { margin-top: 2px; accent-color: var(--accent); }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { min-height: 20px; margin: 0; font-size: var(--fs-meta); color: var(--muted); }
.form-status.is-ok { color: var(--ink); font-weight: 600; }
.form-status.is-error { color: var(--ink); font-weight: 600; }
.form-privacy { margin: 0; font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }

/* ── 18 · 页脚 ──────────────────────────────────────────────────────── */

.site-footer { margin-top: auto; background: var(--footer-bg); color: var(--footer-fg); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer-brand .brand { color: var(--footer-fg); margin-bottom: 16px; }
.footer-brand .brand-mark { width: 26px; height: 26px; }
.footer-brand .brand-sub { color: var(--footer-faint); border-left-color: var(--footer-line-strong); }
.footer-tagline { max-width: 300px; margin: 16px 0 20px; font-size: var(--fs-small); line-height: 1.6; color: var(--footer-muted); }
.footer-company, .footer-meta { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--footer-muted); }
.footer-col h2 { margin: 0 0 16px; font-size: var(--fs-meta); font-weight: 600; color: var(--footer-strong); }
.footer-col a { display: block; margin-bottom: 10px; font-size: 12.5px; color: var(--footer-link); }
.footer-col a:hover { color: var(--footer-fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--footer-line);
  font-size: var(--fs-caption);
  color: var(--footer-muted);
}
.footer-bottom p { margin: 0; }
.footer-lang { display: flex; gap: 12px; }
.footer-lang a { color: var(--footer-link); }

/* ── 19 · 响应式 ────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid .sku-card:last-child { grid-column: 1 / -1; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line-hairline);
    padding: 12px 24px 20px;
    gap: 4px;
    margin-left: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 12px; border-radius: var(--radius-menu); }
  .nav a:hover { background: var(--surface-hover); }
  .nav a.nav-cta { color: var(--on-accent); }
  .nav a.nav-cta:hover { color: var(--on-accent); }
  .nav-cta {
    display: block;
    margin-top: 8px;
    padding: 11px 12px;
    text-align: center;
    background: var(--accent);
    color: var(--on-accent);
    border-radius: var(--radius-btn);
    font-weight: 600;
  }
  .nav-cta:hover { background: var(--accent); color: var(--on-accent); opacity: 0.95; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step { border-right: 0; padding: 24px 20px 0 0; }
  .process-step + .process-step { padding-left: 0; }
  .process-step:nth-child(even) { padding-left: 20px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-intro { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .h-display { font-size: 38px; }
  .h-section { font-size: 28px; }
  .hero { min-height: auto; padding: 56px 20px 48px; }
  .hero-title { font-size: 38px; }
  .hero-sub { font-size: var(--fs-body); }
  .hero-pill { font-size: 11.5px; padding: 8px 14px; }
  .hero-proof { margin-top: 36px; }
  .proof-item { min-width: 0; flex: 1; padding: 16px 10px; }
  .proof-value { font-size: var(--fs-case); }
  .proof-label { font-size: 10px; }
  .section { padding: 64px 20px 48px; }
  .work-grid, .services-grid, .why-grid, .extras-grid, .care-grid, .case-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .sku-card:last-child { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(even) { padding: 20px 0 0; }
  .process-step + .process-step { border-top: 1px solid var(--line-hairline); margin-top: 20px; }
  .contact-form-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand { font-size: var(--fs-body); gap: 6px; }
  .brand-mark { width: 24px; height: 24px; }
  .lang-switch { display: flex; }
  .lang-switch a { padding: 4px 5px; font-size: var(--fs-caption); }
  .header-inner { gap: 8px; }
  .header-actions { gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 20px 16px; }
}

/* ── 20 · 减少动效 ──────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .work-card:hover, .sku-card:hover { transform: none; }
  .work-card:hover .work-media img { transform: none; }
}

/* ── 21 · 法务页 ────────────────────────────────────────────────────── */

.legal { max-width: 760px; padding: 72px 0 96px; }
.legal h1 { margin: 0 0 16px; font-size: var(--fs-section); font-weight: 500; letter-spacing: -0.022em; }
.legal h2 { margin: 40px 0 12px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: -0.01em; }
.legal p, .legal li { margin: 0 0 12px; font-size: var(--fs-body); line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-back { display: inline-block; margin-bottom: 32px; font-size: var(--fs-meta); color: var(--muted); }
.legal .legal-meta { margin-top: 40px; font-size: var(--fs-caption); color: var(--muted-soft); }
.legal .legal-zh, .legal .legal-ja { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-hairline); }
