/* 联泽日用百货 · Bento 便当盒 + 票根美学 */
:root {
  --bg: #F6F5F2;
  --card: #ffffff;
  --ink: #141413;
  --ink-70: rgba(20, 20, 19, .72);
  --muted: #6f6f6b;
  --line: rgba(20, 20, 19, .10);
  --line-strong: rgba(20, 20, 19, .20);
  --dash: #e4e4e7;
  --blue: #2563EB;
  --green: #059669;
  --yellow: #FACC15;
  --orange: #FF5533;
  --r: 24px;
  --shadow-hover: 0 16px 40px -12px rgba(20, 20, 19, .12);
  --shadow-pop: 0 30px 80px -30px rgba(20, 20, 19, .5);
  --accent: var(--blue);
  --accent-soft: #e3ebfd;
}
.accent-blue { --accent: var(--blue); --accent-soft: #e3ebfd; }
.accent-green { --accent: var(--green); --accent-soft: #dcf4ea; }
.accent-orange { --accent: var(--orange); --accent-soft: #ffe6df; }
.accent-yellow { --accent: var(--yellow); --accent-soft: #fff4c2; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
body.locked { overflow: hidden; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 28px; height: 28px; }

.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.lede { color: var(--ink-70); font-size: 16px; line-height: 1.65; margin-top: 8px; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.center { text-align: center; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.page { max-width: 1240px; margin: 0 auto; padding: 108px 20px 56px; }
.page-head { margin: 8px 0 28px; max-width: 720px; }
.page-head h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.04em; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.flash { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; display: inline-block; margin: 0 0 16px; font-weight: 600; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(20, 20, 19, .55); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.secondary { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn .ic { width: 16px; height: 16px; }
.round {
  width: 42px; height: 42px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer;
  color: var(--ink); transition: transform .18s, border-color .18s; text-decoration: none; padding: 0;
}
.round:hover { border-color: var(--ink); transform: translateY(-1px); }
.round.ghost { border-color: transparent; background: transparent; }
.round kbd { position: absolute; bottom: -7px; right: -8px; font: 700 9px/1 ui-monospace, Menlo, monospace; background: var(--ink); color: #fff; padding: 3px 4px; border-radius: 6px; }
.round.bag { z-index: 2; margin-right: 10px; }
.badge {
  position: absolute; top: -9px; right: -8px; z-index: 2;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; border: 2px solid #fff;
  font-size: 11px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.bag-ring {
  position: absolute; inset: 1px; z-index: 0; border-radius: 999px; pointer-events: none;
  background: conic-gradient(var(--green) var(--p, 0%), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  transition: background .4s;
}
.inline-form { display: contents; }

/* 贴纸 */
.sticker {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .02em; border: 1.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink); background: #fff; color: var(--ink); white-space: nowrap; line-height: 1.2;
}
.sticker .ic { width: 13px; height: 13px; stroke-width: 3; }
.sticker.yellow { background: var(--yellow); }
.sticker.green { background: var(--green); color: #fff; }
.sticker.blue { background: var(--blue); color: #fff; }
.sticker.tilt { position: absolute; top: 12px; left: 12px; transform: rotate(-6deg); z-index: 2; }
.sticker.tilt-r { position: absolute; right: 12px; bottom: 12px; transform: rotate(4deg); z-index: 2; }

.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-70); text-decoration: none; cursor: pointer; transition: .18s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.hot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* 悬浮胶囊导航 */
.pill-wrap { position: fixed; top: 16px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.pill {
  pointer-events: auto; position: relative; display: flex; align-items: center; gap: 12px;
  width: min(1200px, 100%); height: 66px; padding: 0 12px 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--line); box-shadow: 0 1px 2px rgba(20, 20, 19, .05), 0 12px 32px -20px rgba(20, 20, 19, .3);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand-name { display: flex; flex-direction: column; font-weight: 800; letter-spacing: -.01em; line-height: 1.05; font-size: 16px; }
.brand-name small { font-size: 9.5px; font-weight: 700; letter-spacing: .2em; color: var(--muted); margin-top: 2px; }
.pill-links { display: flex; gap: 2px; margin-left: 6px; }
.pill-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-70); text-decoration: none; transition: .18s; white-space: nowrap; }
.pill-links a:hover { background: var(--ink); color: #fff; }
.pill-links a .ic { width: 16px; height: 16px; }
.pill-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }

/* Bento 首屏 */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin: 0 0 40px; }
.bento-main {
  grid-column: 1 / 5; grid-row: 1 / 3; position: relative; overflow: hidden;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 44px 44px 40px;
}
.bento-main::before { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--yellow); }
.bento-main::after { content: ""; position: absolute; right: 110px; bottom: -70px; width: 170px; height: 170px; border-radius: 44px; background: var(--blue); opacity: .12; transform: rotate(18deg); }
.bento-main > * { position: relative; z-index: 1; }
.bento-main h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: .98; letter-spacing: -.045em; margin: 14px 0 18px; font-weight: 900; }
.bento-main .dot { color: var(--orange); }
.bento-main .lede { max-width: 560px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 18px; margin-top: 26px; max-width: 580px; transition: .2s; }
.hero-search:focus-within { border-color: var(--ink); background: #fff; }
.hero-search input { flex: 1; border: 0; background: transparent; font-size: 16px; outline: none; min-width: 0; }
.proof { display: flex; gap: 32px; list-style: none; padding: 0; margin: 34px 0 0; }
.proof b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.proof span { font-size: 13px; color: var(--muted); }
.bento-combo { grid-column: 5 / 7; grid-row: 1; background: var(--accent-soft); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.bento-combo h2 { font-size: 24px; }
.combo-stack { display: flex; margin: 10px 0 6px; }
.combo-stack img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; border: 3px solid #fff; margin-left: -16px; box-shadow: 0 10px 20px -10px rgba(20, 20, 19, .5); transform: rotate(-5deg); }
.combo-stack img:first-child { margin-left: 0; }
.combo-stack img:nth-child(2) { transform: rotate(4deg); }
.combo-stack img:nth-child(3) { transform: rotate(-2deg); }
.combo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.combo-foot > div { display: flex; align-items: center; gap: 10px; }
.bento-small { grid-row: 2; border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; border: 1.5px solid var(--line); background: var(--card); transition: transform .25s, box-shadow .25s; }
.bento-small:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.bento-small strong { font-size: 18px; letter-spacing: -.01em; margin-top: 4px; }
.bento-small span { font-size: 13px; line-height: 1.55; opacity: .8; }
.bento-small.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.bento-small.blue { background: var(--blue); color: #fff; border-color: var(--blue); }

/* 左控制台 + 右画廊 */
.shop { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 56px; scroll-margin-top: 100px; }
.console { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.console-box { background: var(--card); border: 1.5px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.console-box .kicker { padding: 8px 12px 6px; }
.console-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-70); font-weight: 600; font-size: 14px; transition: .18s; }
.console-link em { margin-left: auto; font-style: normal; font-size: 12px; background: var(--bg); border-radius: 999px; padding: 2px 8px; color: var(--muted); white-space: nowrap; }
.console-link:hover, .console-link.active { background: var(--ink); color: #fff; }
.console-link:hover em, .console-link.active em { background: rgba(255, 255, 255, .16); color: #fff; }
.console-link.tier span { font-weight: 800; letter-spacing: -.01em; }
.gallery { min-width: 0; }
.gallery-head { margin: 0 0 18px; }
.gallery-head .lede { margin-top: 4px; font-size: 15px; }
.bundle-bar { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 9px 9px 18px; margin: 0 0 20px; transition: border-color .3s; }
.bundle-bar.reached { border-color: var(--green); }
.bundle-text { display: flex; flex-direction: column; min-width: 0; }
.bundle-text strong { font-size: 14px; }
.bundle-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ship-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; min-width: 80px; }
.ship-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.reached .ship-bar i { background: var(--green); }

/* 票根卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.ticket {
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1.5px solid var(--line); border-radius: var(--r);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.ticket:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.ticket-top { padding: 14px 14px 12px; }
.ticket-top.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 12px;
  background:
    radial-gradient(circle at 86% 16%, var(--accent) 0 26px, transparent 27px),
    repeating-linear-gradient(135deg, transparent 0 10px, rgba(20, 20, 19, .05) 10px 11px),
    var(--accent-soft);
}
.stage img { position: absolute; left: 8%; top: 9%; width: 84%; height: 82%; object-fit: cover; border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 14px 28px -14px rgba(20, 20, 19, .45); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ticket:hover .stage img { transform: rotate(0deg) scale(1.03); }
.ticket-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.ticket h3 { font-size: 18px; margin: 4px 0 4px; }
.ticket h3 a { text-decoration: none; }
.ticket h3 a:hover { color: var(--accent); }
.ticket-point { font-size: 13px; color: var(--ink-70); }
.perf { position: relative; height: 0; border-top: 2px dashed var(--dash); margin: 0 14px; }
.perf i { position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); }
.perf i:first-child { left: -27px; clip-path: inset(0 0 0 50%); }
.perf i:last-child { right: -27px; clip-path: inset(0 50% 0 0); }
.ticket-bottom { padding: 14px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.ticket-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.price { font-weight: 900; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.price-lg { font-size: 42px; }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.ticket-actions { display: grid; gap: 8px; }
.ticket-actions > .btn.small { background: var(--accent); border-color: var(--accent); color: #fff; }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-actions form { display: contents; }
.add-btn .tick { display: none; }
.add-btn.in-bag { border-color: var(--green); color: var(--green); background: #e8f7f0; }
.add-btn.in-bag .plus { display: none; }
.add-btn.in-bag .tick { display: block; }

/* 组合 */
.combo-row { margin: 0 0 56px; }
.combo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.combo-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; border-top: 8px solid var(--accent); transition: transform .25s, box-shadow .25s; }
.combo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.combo-list { list-style: none; margin: 8px 0 0; padding: 0; }
.combo-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--dash); font-size: 14px; }
.combo-list em { font-style: normal; font-weight: 700; }
.tier-block { margin: 0 0 56px; scroll-margin-top: 100px; }

/* 商品详情 */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: start; margin: 0 0 56px; }
.detail-stage {
  position: relative; border-radius: var(--r); aspect-ratio: 1 / 1; overflow: hidden; border: 1.5px solid var(--line);
  background:
    radial-gradient(circle at 88% 12%, var(--accent) 0 56px, transparent 57px),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(20, 20, 19, .05) 14px 15px),
    var(--accent-soft);
}
.detail-stage img { position: absolute; left: 9%; top: 9%; width: 82%; height: 82%; object-fit: cover; border-radius: 22px; transform: rotate(-2deg); box-shadow: 0 30px 50px -28px rgba(20, 20, 19, .55); }
.detail-copy { display: flex; flex-direction: column; gap: 14px; }
.detail-copy h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.04em; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.points li { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.points .ic { color: var(--green); stroke-width: 3; width: 16px; height: 16px; }
.detail-ticket:hover { transform: none; box-shadow: none; }
.detail-ticket .ticket-bottom { gap: 10px; }
.buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty { width: 64px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line); text-align: center; font-weight: 700; background: #fff; }
.qv-spec { display: grid; gap: 0; margin: 4px 0; }
.qv-spec div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--dash); font-size: 14px; }
.qv-spec dt { color: var(--muted); flex: none; }
.qv-spec dd { margin: 0; font-weight: 600; text-align: right; }
.link-row { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-row:hover { text-decoration: underline; }

/* 保障与资质 */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 56px; }
.cert { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cert-head { display: flex; align-items: center; gap: 12px; }
.cert h2 { font-size: 26px; }
.promise { border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; border: 1.5px solid var(--line); background: var(--card); }
.promise p { font-size: 13px; line-height: 1.55; opacity: .85; }
.promise.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.promise.blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.promise.green { background: var(--green); color: #fff; border-color: var(--green); }
.promise.orange { background: var(--orange); color: #fff; border-color: var(--orange); }

/* 购物袋页 / 结算 / 订单 */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin: 0 0 56px; }
.panel { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 22px; }
.panel.ticket { padding: 0; }
.panel.ticket .ticket-top { padding: 22px 22px 14px; }
.panel.ticket .perf { margin: 0 22px; }
.panel.ticket .ticket-bottom { padding: 16px 22px 22px; }
.line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--dash); }
.line:last-child { border-bottom: 0; }
.line > div { flex: 1; min-width: 0; }
.line .spec { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.line a { text-decoration: none; }
.thumb { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex: none; }
.summary { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.total > span:first-child { color: var(--muted); font-size: 14px; }
.order-list { display: grid; gap: 16px; margin: 0 0 56px; }
.order .ticket-top { padding: 22px; }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.order .ticket-bottom { padding: 12px 22px 18px; }
.empty { text-align: center; padding: 64px 20px; background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 12px; justify-items: center; margin: 0 0 56px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-70); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 500; color: var(--ink); outline: none; transition: .18s; }
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink); background: #fff; }
.code { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.code input { min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-size: 15px; outline: none; }
.code input:focus { border-color: var(--ink); background: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-70); }
.check input { margin-top: 3px; accent-color: var(--ink); }
.msg { font-size: 13px; color: var(--orange); font-weight: 600; min-height: 1em; }
.notice { background: #fff6c7; border: 1.5px solid var(--yellow); border-radius: 14px; padding: 10px 14px; font-size: 13px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 0 56px; }
.auth-aside { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; background: var(--ink); color: #fff; display: flex; align-items: flex-end; padding: 28px; }
.auth-aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth-aside > div { position: relative; }
.auth-aside .kicker { color: rgba(255, 255, 255, .7); }
.auth-aside h1 { font-size: clamp(30px, 4vw, 44px); margin-top: 6px; }
.auth-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 32px; }

/* 文章 */
.prose { max-width: 760px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); padding: 36px; margin: 0 0 56px; line-height: 1.8; }
.prose h1 { font-size: 32px; margin: 6px 0 16px; }
.prose h2 { font-size: 20px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--ink-70); }

/* 支付测试 / 柜台 */
.pay-wrap { display: flex; justify-content: center; margin: 0 0 56px; }
.pay-card { width: min(480px, 100%); background: var(--card); border: 1.5px solid var(--line); border-radius: 28px; padding: 28px 24px; }
.pay-card h1 { margin: 0 0 8px; font-size: 30px; }
.amount-field input { font-size: 30px; min-height: 68px; font-weight: 800; }
.methods { display: grid; gap: 8px; }
.method { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; background: #fff; cursor: pointer; }
.method:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.method input { accent-color: var(--ink); }
.method small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.slip { display: grid; gap: 6px; }

/* 遮罩 / 抽屉 / 弹窗 / 搜索 */
.scrim { position: fixed; inset: 0; background: rgba(20, 20, 19, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); z-index: 80; opacity: 0; transition: opacity .25s; }
.scrim.show { opacity: 1; }
.drawer {
  position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100% - 24px));
  background: var(--card); border-radius: 28px; z-index: 90; display: flex; flex-direction: column; overflow: hidden;
  transform: translateX(calc(100% + 24px)); transition: transform .38s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-pop);
}
.drawer.wide { width: min(920px, calc(100% - 24px)); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 22px 12px; }
.drawer-head h2 { font-size: 22px; margin-top: 2px; }
.drawer-body { flex: 1; overflow: auto; padding: 4px 22px; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.drawer-foot.row { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.drawer-foot.row > div:first-child { margin-right: auto; }
.ship-meter { padding: 0 22px 10px; }
.ship-meter p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--dash); }
.cart-line img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.cart-line strong { font-size: 14px; display: block; }
.cart-line .spec { font-size: 12px; color: var(--muted); margin: 2px 0 6px; }
.cart-line .price { font-size: 18px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--bg); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; }
.qv-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); overflow: auto; }
.qv-outline { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.qv-outline h3 { margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.qv-outline ul { margin: 0; padding-left: 18px; line-height: 1.9; font-size: 15px; }
.qv-badge { align-self: flex-start; }
.qv-stage { background: var(--bg); padding: 16px; min-height: 0; }
.pdf-frame { width: 100%; height: 100%; min-height: 520px; border: 0; border-radius: 18px; background: #fff; }
.reader { margin: 0 0 56px; }
.reader-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: stretch; }
.reader-side { align-self: start; }
.chapter-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.pager { display: flex; gap: 12px; align-items: center; margin: 8px 0 40px; }
.qv-stage img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.honor-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0 0 56px; }
.cert-card { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.cert-card img { width: 100%; height: 180px; object-fit: cover; }
.cert-card div { padding: 16px; display: grid; gap: 6px; }
.cert-card .pdf-frame { min-height: 220px; border-radius: 0; }
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transform: scale(.985); transition: opacity .22s, transform .22s; }
.modal.show { opacity: 1; transform: none; }
.modal-box { position: relative; width: min(440px, 100%); background: var(--card); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-pop); max-height: calc(100vh - 40px); overflow: auto; }
.modal-x { position: absolute; top: 12px; right: 12px; }
.tabs { display: inline-flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tab { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tab.active { background: var(--ink); color: #fff; }
.palette { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 20px 20px; opacity: 0; transition: opacity .2s; }
.palette.show { opacity: 1; }
.palette-box { width: min(640px, 100%); background: var(--card); border-radius: 28px; padding: 14px; box-shadow: var(--shadow-pop); }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border: 1.5px solid var(--line); border-radius: 999px; }
.palette-input input { flex: 1; border: 0; outline: 0; font-size: 17px; background: transparent; min-width: 0; }
.palette .hot { padding: 12px 6px 4px; margin: 0; }
.palette-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; text-decoration: none; }
.palette-list a:hover { background: var(--bg); }
.palette-list img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.palette-list .spec { font-size: 12px; color: var(--muted); }
.palette-list .price { margin-left: auto; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; z-index: 100; opacity: 0; transition: .25s; box-shadow: 0 16px 40px -12px rgba(20, 20, 19, .5); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ic { color: var(--yellow); }

/* 页脚 */
.footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 48px 20px 40px; margin-top: 24px; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; font-size: 14px; line-height: 1.9; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer strong { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 18px; margin-bottom: 10px; }
.footer-brand img { border-radius: 8px; }

/* 响应式 */
@media (max-width: 1080px) {
  .honor-grid { grid-template-columns: 1fr 1fr; }
  .cert { grid-column: 1 / 3; grid-row: auto; }
}
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-main { grid-column: 1 / 3; grid-row: auto; padding: 32px 26px; }
  .bento-combo { grid-column: 1 / 3; grid-row: auto; }
  .bento-small { grid-row: auto; }
  .shop { grid-template-columns: 1fr; }
  .console { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .console::-webkit-scrollbar { display: none; }
  .console-box { flex-direction: row; flex: none; padding: 6px; gap: 4px; }
  .console-box .kicker { display: none; }
  .console-link { padding: 8px 12px; white-space: nowrap; }
  .console-link em { display: none; }
  .combo-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .reader-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .summary { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-aside { min-height: 240px; }
  .footer-grid { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-stage { order: -1; max-height: 40vh; }
}
@media (max-width: 900px) {
  .pill { height: 60px; padding: 0 8px 0 10px; }
  .pill-links { display: none; }
  .pill.open .pill-links { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 24px; padding: 10px; box-shadow: var(--shadow-hover); gap: 2px; }
  .pill.open .pill-links a { padding: 12px 14px; }
  .menu-btn { display: inline-flex; }
  .brand-name small, .round kbd { display: none; }
  .round { width: 40px; height: 40px; }
  .page { padding-top: 96px; }
  .toast { bottom: 118px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-main, .bento-combo { grid-column: auto; }
  .proof { gap: 18px; flex-wrap: wrap; }
  .hero-search .btn { padding: 10px 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .bundle-bar .ship-bar { display: none; }
  .honor-grid { grid-template-columns: 1fr; }
  .cert { grid-column: auto; }
  .brand-name { font-size: 15px; }
  .btn.small { padding: 9px 12px; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: 1fr; }
  .mini-actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}