/* =============================================================================
 * core.css — 共用组件样式。每个方向的 theme.css 只改 :root 变量 + 覆盖个别组件。
 * ========================================================================== */
:root {
  --bg: #fbf8f4; --surface: #ffffff; --surface-2: #f3eee7; --ink: #26211d; --muted: #7b716a; --line: #e7dfd5;
  --accent: #26211d; --accent-ink: #fff; --gold: linear-gradient(135deg, #e9cf8e, #c69a45 55%, #f1dca6); --silver: linear-gradient(135deg, #f4f4f4, #b9bcc0 55%, #ececec);
  --sale: #b4442d; --ok: #3f7d58; --warn: #b07219;
  --radius: 14px; --radius-sm: 8px; --btn-radius: 999px;
  --font-display: Georgia, serif; --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display-weight: 400; --display-tracking: -0.01em;
  --shadow: 0 18px 50px -24px rgba(38, 33, 29, .28);
  --max: 1320px; --gutter: clamp(16px, 4vw, 40px); --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); } h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip:focus { left: 8px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.center { text-align: center; } .narrow { max-width: 720px; margin-inline: auto; }
.fine { font-size: .82rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--muted); margin-bottom: .6em; }
.empty { color: var(--muted); padding: 24px 0; }
#view { outline: none; min-height: 60vh; }

/* ---------- DEMO 条 ---------- */
.demobar { position: relative; z-index: 45; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 6px var(--gutter); background: #1d1a17; color: #eadfcf; font: 12px/1.4 system-ui, 'Microsoft YaHei', sans-serif; }
.demobar b { background: #e9cf8e; color: #1d1a17; padding: 1px 7px; border-radius: 4px; letter-spacing: .08em; }
.demobar a { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.5); }
.demobar .db-sw { display: inline-flex; gap: 6px; align-items: center; opacity: .95; } .demobar .db-sw select { font: inherit; color: #1d1a17; background: #eadfcf; border: 0; border-radius: 4px; padding: 1px 4px; max-width: 46vw; }
.demobar .db-ga { opacity: .75; margin-left: auto; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 1.5em; border-radius: var(--btn-radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 500; letter-spacing: .02em; transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-danger { background: transparent; border-color: var(--sale); color: var(--sale); }
.btn-block { width: 100%; }
.btn.loading { opacity: .7; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; } .btn-row.center { justify-content: center; }

/* ---------- 布局 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vw, 80px) var(--gutter); }
.page-head { margin-bottom: 24px; } .page-head p { color: var(--muted); max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 44vw), 1fr)); gap: clamp(14px, 2.4vw, 28px); }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- 商品卡片 ---------- */
.card { position: relative; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; }
.card-media .card-alt { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .card-alt { opacity: 1; }
.card:hover .card-media img:first-child { transform: scale(1.04); }
.card-body { padding: 12px 2px 0; }
.card-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.card-title { font-family: var(--font-body); font-size: .98rem; font-weight: 500; margin: 2px 0 4px; letter-spacing: 0; line-height: 1.3; }
.card-title a { text-decoration: none; }
.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.badge { background: var(--surface); color: var(--ink); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.badge-sale { background: var(--sale); color: #fff; } .badge-out { background: var(--ink); color: var(--bg); }
.price { font-size: .95rem; } .price-was { color: var(--muted); margin-right: .4em; font-size: .9em; } .price-now.is-sale { color: var(--sale); }
.mini-sw { display: flex; gap: 5px; margin-top: 8px; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw-gold { background: var(--gold); } .sw-silver { background: var(--silver); }

/* ---------- 商品详情 ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.pdp-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .pdp-grid { grid-template-columns: 1fr; } }
.pdp-info { position: sticky; top: 24px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery .g-item:first-child { grid-column: 1 / -1; }
.g-item { padding: 0; border: 0; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 5; }
.g-item:first-child { aspect-ratio: 1 / 1; }
.gallery .g-item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.buybox { margin: 10px 0 24px; }
.bb-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 1.35rem; margin-bottom: 18px; }
.tax-note { font-size: .78rem; color: var(--muted); }
.opt { border: 0; padding: 0; margin: 0 0 16px; }
.opt legend { font-size: .86rem; margin-bottom: 8px; display: flex; gap: 10px; width: 100%; }
.size-link { margin-left: auto; font-size: .8rem; color: var(--muted); }
.opt-values { display: flex; gap: 8px; flex-wrap: wrap; }
.pill, .swatch { min-height: 40px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--btn-radius); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: border-color .2s, box-shadow .2s; }
.pill.on, .swatch.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill.out, .swatch.out { color: var(--muted); text-decoration: line-through; opacity: .6; }
.swatch .sw { width: 18px; height: 18px; }
.stock { font-size: .86rem; margin: 4px 0 14px; display: flex; gap: 6px; align-items: center; }
.stock.ok { color: var(--ok); } .stock.low { color: var(--warn); } .stock.out { color: var(--sale); }
.bb-actions { display: flex; gap: 10px; }
.bb-actions .btn-add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); background: var(--surface); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.qty span { min-width: 22px; text-align: center; }
.qty.sm button { width: 32px; height: 32px; }
.engrave { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; background: var(--surface); }
.engrave.on { border-style: solid; }
.engrave-fields { margin-top: 12px; display: grid; gap: 10px; }
.engrave-fields input { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--bg); }
.engrave-fonts { display: flex; gap: 6px; flex-wrap: wrap; }
.engrave-preview { text-align: center; padding: 16px; border-radius: var(--radius-sm); background: var(--gold); color: #5b4217; font-size: 1.4rem; letter-spacing: .06em; min-height: 62px; }
.ef-serif { font-family: Georgia, 'Times New Roman', serif; } .ef-script { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-style: italic; } .ef-sans { font-family: var(--font-body); letter-spacing: .2em; text-transform: uppercase; font-size: .9em; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { margin-top: .25em; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.check.err { color: var(--sale); }
.pdp-notes { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.pdp-notes li { display: flex; gap: 10px; }
.pdp-details details { border-top: 1px solid var(--line); padding: 14px 0; }
.pdp-details details:last-child { border-bottom: 1px solid var(--line); }
.pdp-details summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; font-weight: 500; }
.pdp-details summary::after { content: '+'; font-weight: 300; font-size: 1.3em; line-height: 1; }
.pdp-details details[open] summary::after { content: '–'; }
.pdp-details p { margin: 10px 0 0; color: var(--muted); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; font-size: .86rem; }
.trust li { display: flex; gap: 8px; align-items: center; }

/* ---------- 商品列表工具条 ---------- */
.shop-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding: 12px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; background: var(--surface); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.shop-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.shop-filters select, .fld select { appearance: none; padding: 9px 34px 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23777' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: .88rem; cursor: pointer; }
.count { color: var(--muted); font-size: .86rem; }

/* ---------- 购物车抽屉 ---------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20, 16, 12, .36); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 80; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 81; transform: translateX(102%); transition: transform .45s var(--ease), visibility .45s; display: flex; flex-direction: column; visibility: hidden; }
.cart-open .drawer { transform: none; visibility: visible; box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); } .cart-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-title { margin: 0; font-size: 1.3rem; }
.drawer-close { border: 0; background: none; cursor: pointer; padding: 6px; }
.drawer-body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.cart-empty { padding: 40px 22px; text-align: center; }
.cart-lines { padding: 6px 22px; flex: 1; }
.freeship { padding: 14px 0 8px; font-size: .86rem; }
.freeship p { margin-bottom: 8px; }
.freeship .bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.freeship .bar i { display: block; height: 100%; background: var(--accent); transition: width .5s var(--ease); }
.cl { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-img img { width: 78px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); }
.cl-title { font-weight: 500; text-decoration: none; display: block; }
.cl-opts, .cl-engr { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cl-row { display: flex; gap: 14px; align-items: center; margin-top: 10px; font-size: .82rem; }
.cl-price { font-size: .92rem; }
.cart-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.cart-foot textarea { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--bg); resize: vertical; }
.promo { display: flex; gap: 8px; }
.promo input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: var(--bg); text-transform: uppercase; }
.promo .btn { min-height: 40px; }
.promo-msg { font-size: .8rem; margin: 0; } .promo-msg.ok { color: var(--ok); } .promo-msg.bad { color: var(--sale); }
.sums { margin: 0; display: grid; gap: 6px; font-size: .92rem; }
.sums > div { display: flex; justify-content: space-between; gap: 12px; }
.sums dt { color: var(--muted); } .sums dd { margin: 0; }
.sum-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 1.15rem; }
.sum-total dt { color: var(--ink); font-weight: 600; } .sum-total dd { font-weight: 600; } .sum-total small { font-weight: 400; color: var(--muted); font-size: .7em; margin-right: 4px; }
.sum-incl { font-size: .8rem; }
.tax-line { font-size: .78rem; color: var(--muted); margin: 0; }
.cart-page .cart-foot { border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------- 结账 ---------- */
.checkout { max-width: 1180px; }
.co-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.co-logo { text-decoration: none; }
.co-secure { font-size: .84rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.co-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-form h2 { font-size: 1.25rem; margin: 28px 0 14px; } .co-form h2:first-child { margin-top: 0; }
.co-summary { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.co-summary h2 { font-size: 1.2rem; }
.co-lines { display: grid; gap: 12px; margin-bottom: 16px; }
.co-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: .9rem; }
.co-img { position: relative; } .co-img img { width: 56px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.co-img b { position: absolute; top: -7px; right: -7px; background: var(--muted); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.co-name small { display: block; color: var(--muted); font-size: .78rem; }
.duties { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; margin: 14px 0 0; }
.fld { display: grid; gap: 5px; margin-bottom: 12px; font-size: .84rem; position: relative; }
.fld > span { color: var(--muted); }
.fld input, .fld select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; background: var(--surface); font-size: 1rem; }
.fld select { border-radius: var(--radius-sm); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0,0,0,.06); }
.fld.err input, .fld.err select { border-color: var(--sale); }
.fld em { color: var(--sale); font-style: normal; font-size: .78rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-country { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-bottom: 14px; font-size: .9rem; }
.radios { display: grid; gap: 8px; margin-bottom: 8px; }
.radio { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: .92rem; }
.radio.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio input { accent-color: var(--accent); }
.radio small { display: block; color: var(--muted); font-size: .8rem; }
.awx { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface-2); margin-bottom: 18px; }
.awx-head { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.awx-head b { color: #612fff; font-family: system-ui, sans-serif; letter-spacing: -.01em; font-size: .95rem; }
.demo-tag { font-style: normal; background: #e9cf8e; color: #1d1a17; font-size: .65rem; padding: 1px 6px; border-radius: 4px; letter-spacing: .08em; }
.awx-card { margin-top: 12px; }
.pm-logo { width: 38px; height: 24px; border-radius: 4px; background: var(--surface-2); }
.pm-card { background: linear-gradient(135deg, #1a1f71, #3c48c8); } .pm-applepay { background: #000; } .pm-googlepay { background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); border-radius: 50%; width: 22px; height: 22px; }
.pm-klarna { background: #ffb3c7; } .pm-ideal { background: #cc0066; } .pm-bancontact { background: linear-gradient(90deg, #005498 50%, #ffd800 50%); }
.demo-hint { background: #fff7df; border: 1px dashed #e0c171; color: #6a5520; border-radius: 8px; padding: 8px 10px; }
.terms { margin: 10px 0 14px; }
.form-err { background: #fbeae6; color: var(--sale); padding: 12px 14px; border-radius: var(--radius-sm); }
.btn-pay { min-height: 56px; font-size: 1.02rem; }
.tds p { margin: 14px 0; }

/* ---------- 订单完成 / 账号 ---------- */
.big-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.big-ic .ic { width: 28px; height: 28px; }
.order-ok { text-align: center; } .order-ok .ok-box { text-align: left; margin: 28px 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.ok-addr { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.ms { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); }
.ms.ok { color: var(--ok); } .ms.warn { color: var(--warn); }
.account .acc-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.account h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); word-break: break-all; }
.acc-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
@media (max-width: 860px) { .acc-grid { grid-template-columns: 1fr; } }
.acc-order { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; padding: 0 18px; }
.acc-order summary { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 16px 0; cursor: pointer; list-style: none; font-size: .92rem; }
.acc-order[open] { padding-bottom: 18px; }
.track { font-size: .86rem; display: flex; gap: 8px; }
.st { font-size: .72rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); text-transform: uppercase; letter-spacing: .06em; }
.st-shipped { background: #e6eefb; color: #2b4d8a; } .st-delivered { background: #e3f1e8; color: var(--ok); } .st-refunded { background: #fbeae6; color: var(--sale); }
.acc-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 20px; margin-bottom: 16px; }
.acc-card .btn { margin: 6px 6px 0 0; min-height: 40px; font-size: .88rem; }
.stack { display: grid; gap: 12px; }

/* ---------- 模态框 / Toast ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(20, 16, 12, .45); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(3px); }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; background: var(--bg); border-radius: var(--radius); padding: 30px 26px 26px; width: min(480px, 100%); max-height: 90vh; overflow: auto; transform: translateY(12px); transition: transform .3s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-box.wide { width: min(980px, 100%); padding: 0; background: #000; }
.modal-x { position: absolute; top: 10px; right: 10px; border: 0; background: var(--surface); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.zoom { overflow: hidden; cursor: crosshair; } .zoom img { width: 100%; max-height: 86vh; object-fit: contain; transition: transform .15s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: .9rem; z-index: 130; opacity: 0; transition: .35s var(--ease); pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.search-form .nl-row { display: flex; gap: 8px; }
.search-form input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: var(--surface); }
.search-page .search-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 24px; }
.search-sugg { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cookie ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 980px; margin: 0 auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 70px -20px rgba(0,0,0,.35); padding: 18px 20px; transform: translateY(140%); transition: transform .5s var(--ease); }
.cookie-banner { visibility: hidden; transition: transform .5s var(--ease), visibility .5s; }
.cookie-banner.show { transform: none; visibility: visible; }
.cb-inner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cb-text { display: flex; gap: 12px; flex: 1 1 420px; font-size: .88rem; }
.cb-text p { margin: 4px 0 0; color: var(--muted); }
.cb-text .ic { width: 26px; height: 26px; margin-top: 2px; }
.cb-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-btns .btn { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.cs-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cs-row small { display: block; color: var(--muted); font-size: .8rem; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; background: var(--line); border-radius: 13px; transition: .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; background: #fff; border-radius: 50%; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:disabled + i { opacity: .55; }
.locale-preview dl { margin: 6px 0 18px; display: grid; gap: 6px; font-size: .86rem; background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius-sm); }
.locale-preview dl div { display: flex; justify-content: space-between; gap: 12px; } .locale-preview dt { color: var(--muted); } .locale-preview dd { margin: 0; text-align: right; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--surface-2); padding: clamp(40px, 6vw, 72px) var(--gutter) 28px; margin-top: 40px; }
.site-footer > * { max-width: var(--max); margin-inline: auto; }
.ft-top { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.ft-brand { max-width: 340px; } .ft-brand p { color: var(--muted); margin-top: 10px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 32px 0; }
@media (max-width: 720px) { .ft-cols { grid-template-columns: 1fr 1fr; } }
.ft-cols h4 { font-family: var(--font-body); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.ft-cols a, .ft-cols .linklike { display: block; text-decoration: none; padding: 4px 0; font-size: .92rem; text-align: left; }
.ft-bottom { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.ft-copy { margin: 0; }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.pay-icons span { border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; font-size: .7rem; background: var(--bg); }
.locale-btn { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--bg); cursor: pointer; font-size: .82rem; }
.newsletter { flex: 1 1 280px; max-width: 520px; min-width: 0; }
.nl-label { font-family: var(--font-display); font-size: 1.5rem; display: block; }
.nl-sub { color: var(--muted); font-size: .9rem; margin: 6px 0 12px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; background: var(--bg); }
.nl-fine { font-size: .74rem; color: var(--muted); margin-top: 8px; }

/* ---------- 文章 / 法律页 ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.legal-flag { background: #fff7df; border: 1px dashed #e0c171; color: #6a5520; border-radius: 8px; padding: 10px 14px; font-size: .84rem; margin-bottom: 24px; }
.updated { color: var(--muted); font-size: .8rem; margin-top: 32px; }
.table-wrap { overflow-x: auto; margin: 18px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-weight: 500; color: var(--muted); }

/* ---------- 动效 ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cb-btns { width: 100%; } .cb-btns .btn { flex: 1; padding: 0 10px; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .acc-order summary { grid-template-columns: 1fr auto; }
}
