/* YoiYee 官网原型样式。类名沿用 WooCommerce / GeneratePress 模板结构，原型确认后子主题直接复用。 */

/* 版式：顶部品牌栏 + 1200px 内容区；商品页左图右"规格优先"信息栏，窄屏单列 */
:root {
  --brand: #035C6D;          /* Logo 深青：主按钮、导航、链接 */
  --brand-strong: #02404C;
  --brand-soft: #E3EFF1;
  --accent: #F15A24;         /* Logo 橙点：只用于询价与少量强调 */
  --accent-soft: #FDEBE3;
  --bg: #F5F8F8;             /* 略带青色的中性底 */
  --surface: #FFFFFF;
  --surface-2: #EEF3F4;
  --line: #D6E1E3;
  --fg: #142A2F;
  --muted: #587075;
  --ok: #1E7A4F;
  --warn: #9A5B00;
  --warn-soft: #FFF3DC;
  --logo-filter: none;

  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(1.9rem, 1.4rem + 2.2vw, 2.75rem);

  --radius: 6px;
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #4FB0C2; --brand-strong: #7CC8D6; --brand-soft: #16333A;
    --accent: #FF7A45; --accent-soft: #3A2218;
    --bg: #0E1A1D; --surface: #14252A; --surface-2: #1A2F35; --line: #2A434A;
    --fg: #E4EEF0; --muted: #9DB3B8; --ok: #5CC596; --warn: #F0B45A; --warn-soft: #33280F;
    --logo-filter: brightness(2.1) saturate(0.85);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #4FB0C2; --brand-strong: #7CC8D6; --brand-soft: #16333A;
  --accent: #FF7A45; --accent-soft: #3A2218;
  --bg: #0E1A1D; --surface: #14252A; --surface-2: #1A2F35; --line: #2A434A;
  --fg: #E4EEF0; --muted: #9DB3B8; --ok: #5CC596; --warn: #F0B45A; --warn-soft: #33280F;
  --logo-filter: brightness(2.1) saturate(0.85);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── 原型提示条（正式站没有） ─────────────────────────────── */
.proto-bar { background: var(--warn-soft); color: var(--warn); font-size: var(--step--1); border-bottom: 1px dashed var(--warn); }
.proto-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-block: 6px; align-items: center; }
.proto-bar strong { font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── 页头 ──────────────────────────────────────────────── */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .inside-header { display: flex; align-items: center; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.site-logo img { height: 30px; width: auto; filter: var(--logo-filter); }
.main-navigation { display: flex; gap: 4px 20px; flex-wrap: wrap; font-weight: 500; }
.main-navigation a { color: var(--fg); text-decoration: none; padding-block: 4px; border-bottom: 2px solid transparent; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.header-tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.search-form { display: flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.search-form input { border: 0; background: transparent; color: var(--fg); padding: 8px 10px; font: inherit; width: 14rem; min-width: 0; }
.search-form button { border: 0; background: transparent; color: var(--muted); padding: 0 10px; cursor: pointer; }
.quote-toggle {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent);
  background: transparent; border-radius: var(--radius); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.quote-toggle .count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 1.5em; padding: 0 6px; font-size: var(--step--1); text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .header-tools { width: 100%; margin-left: 0; }
  .search-form { flex: 1; }
  .search-form input { width: 100%; }
  .main-navigation { order: 3; width: 100%; font-size: var(--step--1); }
}

/* ── 按钮 ──────────────────────────────────────────────── */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.2; }
.button.primary { background: var(--brand); color: var(--surface); }
.button.primary:hover { background: var(--brand-strong); color: var(--surface); }
.button.quote { background: var(--accent); color: #fff; }
.button.quote:hover { filter: brightness(0.95); color: #fff; }
.button.ghost { border-color: var(--line); color: var(--fg); background: var(--surface); }
.button.ghost:hover { border-color: var(--brand); color: var(--brand); }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ── 首页 ──────────────────────────────────────────────── */
.home-hero { background: var(--brand); color: #fff; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: clamp(32px, 6vw, 64px); }
.home-hero h1 { font-size: var(--step-4); font-weight: 600; }
.home-hero .lede { margin-top: 14px; font-size: var(--step-1); max-width: 34em; color: #D5EAEE; }
.home-hero .actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.home-hero .button.ghost:hover { border-color: #fff; color: #fff; }
.home-hero .fine { margin-top: 14px; font-size: var(--step--1); color: #B9D8DE; }
.pack-calc { background: var(--surface); color: var(--fg); border-radius: var(--radius); padding: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.pack-calc .eyebrow { margin-bottom: 10px; }
.pack-calc table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.pack-calc th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pack-calc td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
.pack-calc td.r, .pack-calc th.r { text-align: right; }
.pack-calc tfoot td { border-bottom: 0; font-weight: 600; }
.pack-calc .note { margin-top: 10px; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 820px) { .home-hero .wrap { grid-template-columns: 1fr; } }

.section { padding-block: clamp(32px, 5vw, 56px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { font-size: var(--step-3); font-weight: 600; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.category-tile { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-decoration: none; color: var(--fg); }
.category-tile:hover { border-color: var(--brand); }
.category-tile .thumb { width: 56px; height: 56px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.category-tile strong { display: block; font-weight: 600; line-height: 1.25; }
.category-tile span { font-size: var(--step--1); color: var(--muted); }

.bulk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.bulk-steps li { list-style: none; background: var(--surface); border-top: 3px solid var(--brand); padding: 18px; border-radius: 0 0 var(--radius) var(--radius); counter-increment: step; }
.bulk-steps li::before { content: counter(step); font-family: var(--font-display); font-size: var(--step-3); color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.bulk-steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.bulk-steps p { color: var(--muted); font-size: 0.95rem; }
.bulk-steps { padding: 0; margin: 0; }
@media (max-width: 760px) { .bulk-steps { grid-template-columns: 1fr; } }
.bulk-cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.bulk-cta p { color: var(--muted); }

/* ── 产品卡片（WooCommerce ul.products） ─────────────────── */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 600px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } li.product .product-link { padding: 8px; } li.product .loop-footer { padding: 0 8px 8px; flex-direction: column; align-items: stretch; } li.product .add-quote-mini { width: 100%; } }
ul.products li.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
ul.products li.product:hover { border-color: var(--brand); }
li.product .product-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; padding: 12px; gap: 10px; }
li.product .product-image { aspect-ratio: 1 / 1; background: var(--surface-2); border-radius: 4px; display: grid; place-items: center; overflow: hidden; position: relative; }
li.product .product-image svg { width: 78%; height: 78%; }
li.product .badge { position: absolute; top: 8px; left: 8px; font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
li.product .badge.unavailable { color: var(--warn); border-color: var(--warn); }
li.product .woocommerce-loop-product__title { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
li.product .spec-line { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
li.product .pack { display: inline-block; font-size: 0.78rem; background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-weight: 600; align-self: flex-start; }
li.product .loop-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 8px; padding: 0 12px 12px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.loop-footer .price { display: block; text-align: left; min-width: 0; }
.price .amount { font-size: var(--step-1); color: var(--fg); }
.price .price-note { display: block; font-weight: 400; font-size: 0.72rem; color: var(--muted); }
.price.hidden-price { font-weight: 500; font-size: 0.85rem; color: var(--brand); }
.add-quote-mini { border: 1px solid var(--accent); background: transparent; color: var(--accent); border-radius: var(--radius); font: inherit; font-size: 0.8rem; font-weight: 600; padding: 6px 8px; cursor: pointer; white-space: nowrap; }
.add-quote-mini:hover { background: var(--accent-soft); }

/* ── 分类 / 搜索页 ───────────────────────────────────────── */
.woocommerce-breadcrumb { font-size: var(--step--1); color: var(--muted); padding-block: 16px 0; }
.woocommerce-breadcrumb a { color: var(--muted); }
.archive-head { padding-block: 8px 20px; display: grid; gap: 8px; }
.archive-head h1 { font-size: var(--step-4); font-weight: 600; }
.archive-head p { color: var(--muted); max-width: 60ch; }
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters summary { list-style: none; padding: 12px 14px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; }
.filters summary::-webkit-details-marker { display: none; }
.filters .filter-body { padding: 0 14px 14px; display: grid; gap: 16px; }
.filter-group h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.filter-group label { display: flex; gap: 8px; align-items: center; font-size: 0.92rem; padding-block: 2px; }
.filter-group label span { margin-left: auto; color: var(--muted); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.filter-group input { accent-color: var(--brand); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; font-size: 0.92rem; color: var(--muted); }
.shop-toolbar select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--fg); }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 0.8rem; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); border: 0; font: inherit; font-size: 0.8rem; cursor: pointer; }
.woocommerce-pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.woocommerce-pagination a, .woocommerce-pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); color: var(--fg); padding-inline: 10px; }
.woocommerce-pagination .current { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.no-results { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 12px; justify-items: start; }
.no-results h2 { font-size: var(--step-2); }
.no-results ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
}

/* ── 产品详情页 ─────────────────────────────────────────── */
.proto-states { background: var(--surface); border: 1px dashed var(--warn); border-radius: var(--radius); padding: 10px 12px; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: var(--step--1); }
.proto-states .label { color: var(--warn); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.proto-states button { font: inherit; border: 1px solid var(--line); background: var(--bg); color: var(--fg); padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.proto-states button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.single-product .product-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-block: 20px 32px; align-items: start; }
@media (max-width: 860px) { .single-product .product-top { grid-template-columns: 1fr; } }
.woocommerce-product-gallery { display: grid; gap: 10px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 860px) { .woocommerce-product-gallery { position: static; } }
.gallery-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.gallery-main svg { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.gallery-thumbs button { aspect-ratio: 1 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 4px; cursor: pointer; display: grid; place-items: center; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.gallery-thumbs svg { width: 100%; height: 100%; }

.summary { display: grid; gap: 18px; min-width: 0; }
.summary .product_meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); display: flex; gap: 4px 14px; flex-wrap: wrap; }
.product_title { font-size: var(--step-3); font-weight: 600; overflow-wrap: anywhere; }
.status-note { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 10px 12px; font-size: 0.92rem; }
.buy-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 14px; }
.buy-box .price-row { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.buy-box .price .amount { font-size: var(--step-3); font-family: var(--font-display); }
.pack-chip { display: inline-flex; flex-direction: column; align-items: flex-end; font-size: var(--step--1); color: var(--muted); text-align: right; }
.pack-chip strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--brand); line-height: 1.1; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .button { width: 100%; }
@media (max-width: 420px) { .buy-actions { grid-template-columns: 1fr; } }
.buy-box .fine { font-size: 0.78rem; color: var(--muted); }

/* 规格表：WooCommerce 的 shop_attributes */
.spec-block h2, .product-section h2 { font-size: var(--step-2); font-weight: 600; margin-bottom: 10px; }
.table-scroll { overflow-x: auto; }
table.shop_attributes { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.95rem; }
table.shop_attributes th { text-align: left; width: 42%; font-weight: 500; color: var(--muted); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); vertical-align: top; }
table.shop_attributes td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
table.shop_attributes tr:last-child th, table.shop_attributes tr:last-child td { border-bottom: 0; }
table.shop_attributes tr.pack-row td { color: var(--brand); font-weight: 600; }

.product-details { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-bottom: 48px; }
@media (max-width: 860px) { .product-details { grid-template-columns: 1fr; } }
.product-section { display: grid; gap: 10px; align-content: start; }
.product-section ul.features { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; max-width: 65ch; }
.product-section .description { max-width: 65ch; color: var(--fg); white-space: pre-line; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.downloads li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; text-decoration: none; color: var(--fg); }
.downloads li a:hover { border-color: var(--brand); }
.downloads .file-icon { width: 40px; height: 48px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; display: grid; place-items: center; }
.downloads strong { display: block; font-weight: 600; line-height: 1.3; }
.downloads small { color: var(--muted); font-family: var(--font-mono); font-size: 0.75rem; }
.downloads .get { font-size: var(--step--1); color: var(--brand); font-weight: 600; }
.empty-downloads { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 8px; }

/* ── 询价清单抽屉（原型模拟） ───────────────────────────── */
.quote-drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--surface); border-left: 1px solid var(--line); z-index: 50; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -20px 0 40px rgba(0,0,0,.18); }
.quote-drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.quote-drawer header h2 { font-size: var(--step-2); }
.quote-drawer .close { border: 0; background: transparent; color: var(--fg); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.quote-drawer .proto-note { margin: 12px 16px 0; font-size: var(--step--1); background: var(--warn-soft); color: var(--warn); padding: 8px 10px; border-radius: var(--radius); }
.quote-lines { list-style: none; margin: 0; padding: 8px 16px; overflow-y: auto; flex: 1; display: grid; gap: 0; align-content: start; }
.quote-line { display: grid; gap: 8px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.quote-line .t { font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.quote-line .calc { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.quote-line .calc .ro { background: var(--surface-2); padding: 4px 8px; border-radius: 4px; }
.quote-line .calc input { width: 5.5em; font: inherit; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--fg); }
.quote-line .calc output { font-weight: 600; color: var(--brand); }
.quote-line .remove { justify-self: start; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: var(--step--1); text-decoration: underline; cursor: pointer; padding: 0; }
.quote-empty { color: var(--muted); padding: 24px 16px; }
.quote-drawer footer { padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.quote-drawer footer .button { width: 100%; }
.scrim { position: fixed; inset: 0; background: rgba(5, 20, 24, .45); z-index: 40; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); z-index: 60; font-size: 0.92rem; }

/* ── 页脚 ──────────────────────────────────────────────── */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 32px; font-size: 0.92rem; color: var(--muted); }
.site-footer .footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.site-footer h3 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg); margin-bottom: 8px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--muted); }
.site-footer .copy { margin-top: 24px; font-size: var(--step--1); }
.site-footer .footer-logo img { height: 24px; width: auto; filter: var(--logo-filter); margin-bottom: 10px; }

/* ── 隐私政策 / 法律页 ─────────────────────────────────── */
.legal-head { padding-block: 20px 8px; }
.legal-head h1 { font-size: var(--step-4); font-weight: 600; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; padding-bottom: 32px; }
.legal-toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.legal-toc ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: 0.92rem; }
.legal-toc a { color: var(--fg); text-decoration: none; }
.legal-toc a:hover { color: var(--brand); text-decoration: underline; }
.legal-body { max-width: 70ch; display: grid; gap: 14px; line-height: 1.65; }
.legal-body > p:first-child { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.legal-body h2 { font-size: var(--step-2); font-weight: 600; margin-top: 14px; scroll-margin-top: 96px; }
.legal-body ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body code { font-family: var(--font-mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.legal-body a { overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
