/* ============================================================================
   川晒 · PC 官网样式（静态站，无构建）
   - 设计令牌来源：web-mobile/src/styles/tokens.scss + web/public/logo.svg 取样
   - 页面里只用 var(--x)，十六进制只允许出现在本文件 :root
   - 断点：1080 / 860 / 640，PC 优先，移动端可读降级
   ========================================================================== */

/* ---------------------------------- 令牌 --------------------------------- */
:root {
  /* 纸与墨 */
  --paper: #F9F8F6;
  --paper-2: #F4EFE7;
  --card: #FFFFFF;
  --ink: #1B1512;
  --ink-2: #4A4038;
  --ink-3: #6B5E54;
  --muted: #8A7F72;
  --muted-2: #A99C8C;

  /* 线 */
  --line: #EDE6DC;
  --line-2: #E3D8C9;
  --line-soft: #F3ECE3;

  /* 品牌 */
  --brand: #EE8F3B;
  --brand-d: #D9782A;
  --brand-dd: #A8571B;
  --brand-50: #FDF1E3;
  --brand-100: #FBE3CC;
  --gold: #B8892F;
  --gold-50: #F7EFDC;
  --green: #2F5D45;
  --green-d: #1F4030;
  --green-50: #E8F0E9;
  --red: #C3132B;
  --red-50: #FBEDEC;

  /* 深色区块（页脚 / 透明度声明） */
  --night: #191411;
  --night-2: #221B16;
  --night-line: #33291F;
  --night-ink: #EFE7DB;
  --night-muted: #A79684;

  /* 形状与阴影 */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(58, 42, 33, .05), 0 10px 30px -18px rgba(58, 42, 33, .28);
  --shadow-2: 0 2px 8px rgba(58, 42, 33, .06), 0 28px 64px -32px rgba(58, 42, 33, .42);

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    "Source Han Serif CN", "SimSun", serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* 版心 */
  --wrap: 1180px;
  --gutter: 32px;
  --header-h: 72px;
}

/* --------------------------------- 基础 ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; }

p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.28; letter-spacing: .015em; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-100); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--brand-d);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------- 工具类 -------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: 50%;
  top: -60px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: 14px;
  transition: top .18s ease;
}

.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--brand);
}

.section { padding-block: clamp(52px, 6vw, 88px); position: relative; }

.section--paper2 { background: var(--paper-2); }

.section--night { background: var(--night); color: var(--night-ink); }

.section-head { max-width: 800px; margin-bottom: clamp(32px, 4vw, 52px); }

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.section-head p { color: var(--ink-3); font-size: 16px; }

.lede { font-size: 17px; line-height: 1.95; color: var(--ink-3); }

/* --------------------------------- 按钮 ---------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(242, 106, 10, .8);
}

.btn--primary:hover { background: var(--brand-d); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn--ghost:hover { border-color: var(--ink-3); background: #fff; }

.btn--quiet {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.btn--quiet:hover { border-color: var(--brand); color: var(--brand-dd); }

.btn--small { min-height: 38px; padding: 0 16px; font-size: 14px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand-dd);
  letter-spacing: .03em;
}

.link-arrow span { transition: transform .16s ease; }

.link-arrow:hover span { transform: translateX(4px); }

/* --------------------------------- 顶栏 ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(249, 248, 246, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex: none; }

.brand__mark { width: 36px; height: 36px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.2; }

.brand__name { font-size: 17px; font-weight: 600; letter-spacing: .16em; }

.brand__sub { font-size: 10.5px; color: var(--muted); letter-spacing: .18em; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  color: var(--ink-3);
  letter-spacing: .06em;
  transition: background-color .15s ease, color .15s ease;
}

.nav a:hover { background: var(--card); color: var(--ink); }

.nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-dd); font-weight: 600; }

.header-cta { margin-left: 10px; flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; }

/* --------------------------------- 首屏 ---------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 6vw, 92px) clamp(48px, 7vw, 108px);
  background:
    radial-gradient(1100px 520px at 82% -8%, #FCEDDB 0%, rgba(252, 237, 219, 0) 62%),
    radial-gradient(760px 420px at 4% 6%, #F6F0E6 0%, rgba(246, 240, 230, 0) 64%),
    var(--paper);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 26px;
  border: 1px solid var(--brand-100);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .7);
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--brand-dd);
}

.hero__kicker i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(195, 19, 43, .12);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.22;
  letter-spacing: .02em;
  margin-bottom: 22px;
}

.hero h1 em { font-style: normal; color: var(--brand-dd); }

.hero__lede {
  max-width: 33em;
  font-size: 16.5px;
  line-height: 2;
  color: var(--ink-3);
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; margin-left: auto; }

.hero__art svg { width: 100%; height: 100%; }

.hero__art .spin { transform-origin: 260px 260px; animation: spin 90s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__art .spin { animation: none; }
  * { transition-duration: .01ms !important; }
}

.querybar__label .eyebrow { margin-bottom: 10px; }

.trace-form .btn { flex: none; height: 50px; min-height: 50px; }

.steps { display: flex; flex-wrap: wrap; gap: 8px; }

/* --------------------------------- 数字条 -------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }

.stat { padding: 10px clamp(16px, 3vw, 40px); border-left: 1px solid var(--line); }

.stat:first-child { border-left: 0; padding-left: 0; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.1;
  letter-spacing: .01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__num small { font-size: .42em; color: var(--muted); margin-left: 6px; letter-spacing: .08em; }

.stat__label { margin-top: 8px; font-size: 14px; color: var(--ink-3); letter-spacing: .06em; }

.stat__note { margin-top: 4px; font-size: 12px; color: var(--muted-2); }

/* --------------------------------- 卡片组 -------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

.card {
  position: relative;
  padding: clamp(22px, 2.6vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); border-color: var(--line-2); }

.card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--brand-d);
  margin-bottom: 18px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: .02em; }

.card p { font-size: 14.5px; color: var(--ink-3); line-height: 1.9; }

/* --------------------------------- 分栏 ---------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

.list { display: grid; gap: 0; }

.list__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.list__item:first-child { border-top: 0; padding-top: 0; }

.list__key { font-size: 13px; color: var(--muted); letter-spacing: .1em; padding-top: 2px; }

.list__val { font-size: 15px; color: var(--ink-2); }

.list__val strong { font-weight: 600; color: var(--ink); }

.panel {
  padding: clamp(24px, 3vw, 36px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

/* ------------------------------- 透明声明块 ------------------------------- */
.pledge { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.pledge h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--night-ink);
  margin-bottom: 16px;
}

.pledge p { color: var(--night-muted); font-size: 15px; }

.pledge__list { display: grid; gap: 18px; }

.pledge__item { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; padding-top: 16px; border-top: 1px solid var(--night-line); }

.pledge__item:first-child { border-top: 0; padding-top: 0; }

.pledge__no { font-family: var(--font-mono); font-size: 12px; color: var(--brand); letter-spacing: .1em; padding-top: 3px; }

.pledge__item h3 { color: var(--night-ink); font-size: 16px; margin-bottom: 4px; }

.pledge__item p { color: var(--night-muted); font-size: 14px; margin: 0; }

/* -------------------------------- 页脚 ---------------------------------- */
.site-footer { background: var(--night); color: var(--night-ink); padding-top: clamp(48px, 6vw, 76px); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr .9fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(36px, 4vw, 56px);
}

.footer-brand .brand { margin-bottom: 16px; }

.footer-brand .brand__name { color: var(--night-ink); }

.footer-brand .brand__sub { color: var(--night-muted); }

.footer-brand p { color: var(--night-muted); font-size: 13.5px; line-height: 1.9; max-width: 30em; }

.footer-col h3 {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--night-muted);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a, .footer-col p { color: var(--night-ink); font-size: 14px; opacity: .86; }

.footer-col a:hover { opacity: 1; color: var(--brand); }

.footer-col p { margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--night-line);
  font-size: 12.5px;
  color: var(--night-muted);
}

.footer-bottom a { color: var(--night-muted); }

.footer-bottom a:hover { color: var(--brand); }

.footer-bottom__spacer { margin-left: auto; }

/* ------------------------------- 内页头部 -------------------------------- */
.page-head {
  padding-block: clamp(44px, 5vw, 76px) clamp(28px, 3vw, 40px);
  background:
    radial-gradient(900px 380px at 88% -20%, #FCEDDB 0%, rgba(252, 237, 219, 0) 62%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: .02em;
  margin-bottom: 16px;
}

.page-head .lede { max-width: 44em; }

/* -------------------------------- 正文排版 ------------------------------- */
.prose { max-width: 780px; }

.prose h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  margin: 40px 0 14px;
  letter-spacing: .02em;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 { font-size: 17px; margin: 28px 0 10px; }

.prose p, .prose li { color: var(--ink-2); font-size: 15.5px; line-height: 2; }

.prose ul { margin: 0 0 1em; padding-left: 1.2em; list-style: disc; }

.prose ol { margin: 0 0 1em; padding-left: 1.4em; list-style: decimal; }

.prose li { margin-bottom: 6px; }

.prose a { color: var(--brand-dd); text-decoration: underline; text-underline-offset: 3px; }

.prose strong { font-weight: 600; color: var(--ink); }

.prose .muted { color: var(--muted); font-size: 13.5px; }

.notice {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  margin: 28px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--ink-2);
}

.notice::before { content: ""; background: var(--brand); border-radius: 2px; }

.notice a { color: var(--brand-dd); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------- 404 ---------------------------------- */
.notfound { padding-block: clamp(80px, 12vw, 160px); text-align: center; }

.notfound__code {
  font-family: var(--font-serif);
  font-size: clamp(72px, 12vw, 132px);
  line-height: 1;
  color: var(--brand-100);
  margin-bottom: 18px;
}

.notfound h1 { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 34px); margin-bottom: 14px; }

.notfound p { color: var(--ink-3); margin-bottom: 26px; }

/* -------------------------------- 响应式 --------------------------------- */
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 320px; margin: 8px auto 0; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .pledge { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
  }
  .site-header.is-open .nav a { padding: 12px 14px; }
  .querybar { margin-top: -20px; }
  .querybar__card { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .stat { border-left: 0; padding: 0; }
  .stat + .stat { padding-top: 22px; border-top: 1px solid var(--line); }
  .trace-form { flex-direction: column; }
  .trace-form .btn { width: 100%; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .list__item, .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { font-size: 11.5px; }
  .page-head { padding-block: 36px 26px; }
}

html { scroll-padding-top: calc(var(--header-h) + 16px); }

.list__val [data-site-empty] { font-size: 13.5px; color: var(--muted); }

.list__val a[data-site] { color: var(--brand-dd); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .cards--2 { grid-template-columns: 1fr; }
  .query-split { grid-template-columns: 1fr; gap: 18px; }
}

/* ====================== 小程序码（弹框 / 内嵌） ====================== */
.qr-figure {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-1);
}

.qr-figure img { width: 190px; height: auto; border-radius: 8px; }

.qr-figure figcaption { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

.qr-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 420px);
  width: 100%;
}

.qr-dialog::backdrop { background: rgba(25, 20, 17, .55); }

.qr-modal {
  position: relative;
  padding: 34px 30px 28px;
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  text-align: center;
}

.qr-modal h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  letter-spacing: .02em;
  margin: 0 0 8px;
}

.qr-modal p { font-size: 13.5px; color: var(--ink-3); line-height: 1.85; margin: 0 0 16px; }

.qr-modal img { width: 216px; height: auto; margin: 0 auto 14px; border-radius: 10px; }

.qr-modal .qr-tip { font-size: 12px; color: var(--muted); margin: 0; }

.qr-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.qr-modal__close:hover { background: var(--paper); color: var(--ink); }

.steps-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }

.step-card { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

.step-card__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--brand-d); }

.step-card h3 { font-size: 16px; margin: 8px 0 6px; }

.step-card p { font-size: 13.5px; color: var(--ink-3); margin: 0; line-height: 1.9; }

@media (max-width: 860px) {
  .steps-three { grid-template-columns: 1fr; }
  .qr-figure img { width: 150px; }
}

.qr-figure--lg { padding: 12px; }

.qr-figure--lg img { width: 232px; }

.qr-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

@media (max-width: 640px) {
  .qr-figure--lg img { width: 200px; }
}

.panel .list__item { grid-template-columns: 96px minmax(0, 1fr); }

@media (max-width: 640px) {
  .panel .list__item { grid-template-columns: 1fr; gap: 4px; }
}
