:root {
  --bg: #F6F7FB;
  --card: #fff;
  --text: #0F172A;
  --muted: #64748B;
  --line: #E8ECF3;
  --brand: #4F46E5;
  --price: #FF4D2E;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; }
.icon { width: 18px; height: 18px; }

/* 页面与布局 */
.page { min-height: 60vh; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 34px 0; }
.section + .section { padding-top: 0; }

/* header */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(15,23,42,.06); }
.topbar.scrolled { box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg,#6366F1,#A855F7 60%,#EC4899); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(99,102,241,.35); position: relative; }
.brand-mark i { width: 14px; height: 14px; border: 3.5px solid #fff; border-radius: 50%; display: block; }
.brand-text { display: flex; align-items: baseline; gap: 5px; font-weight: 800; letter-spacing: -.3px; font-size: 19px; color: var(--text); }
.brand-text em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--muted); letter-spacing: .5px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; color: #475569; text-decoration: none; font-weight: 500; }
.main-nav a:hover { background: #F1F5F9; color: var(--text); }
.main-nav a.on { color: var(--brand); background: #EEF2FF; font-weight: 600; }
.top-search { margin-left: auto; flex: 1; max-width: 360px; position: relative; display: flex; align-items: center; }
.top-search .icon { position: absolute; left: 12px; width: 18px; height: 18px; color: #94A3B8; }
.top-search input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid #E2E8F0; background: #F8FAFC; padding: 0 14px 0 38px; font-size: 14px; outline: none; transition: .2s; }
.top-search input:focus { background: #fff; border-color: #C7D2FE; box-shadow: 0 0 0 4px rgba(99,102,241,.10); }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 12px; font-weight: 650; font-size: 14.5px; padding: 0 18px; height: 44px; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; font-family: inherit; }
.btn .icon { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg,#5B5BF0,#7C3AED); color: #fff; box-shadow: 0 8px 20px rgba(99,102,241,.28); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(99,102,241,.36); }
.btn-ghost { background: #fff; color: #334155; border: 1px solid #E2E8F0; }
.btn-ghost:hover { border-color: #CBD5E1; background: #F8FAFC; }
.btn-soft { background: #EEF2FF; color: var(--brand); }
.btn-soft:hover { background: #E0E7FF; }
.btn-mint { background: linear-gradient(135deg,#10B981,#059669); color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,.24); }
.btn-danger { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* hero */
.hero { background: #0B1020; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(800px 380px at 12% -10%, rgba(99,102,241,.55), transparent 60%),
  radial-gradient(760px 360px at 92% 8%, rgba(168,85,247,.42), transparent 62%),
  radial-gradient(500px 300px at 70% 120%, rgba(34,211,238,.20), transparent 65%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 1; padding: 58px 0 66px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #C7D2FE; letter-spacing: .4px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.16; margin: 18px 0 14px; letter-spacing: -1.2px; font-weight: 800; }
.hero h1 span { background: linear-gradient(100deg,#A5B4FC,#C4B5FD 40%,#F0ABFC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #94A3B8; font-size: 16px; line-height: 1.8; max-width: 540px; }
.hero-search { margin-top: 26px; display: flex; gap: 10px; max-width: 560px; }
.hero-search .field { flex: 1; position: relative; margin: 0; }
.hero-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: #94A3B8; }
.hero-search input { width: 100%; height: 54px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.07); color: #fff; padding: 0 18px 0 46px; font-size: 15px; outline: none; }
.hero-search input::placeholder { color: #64748B; }
.hero-search input:focus { background: rgba(255,255,255,.11); border-color: rgba(165,180,252,.6); box-shadow: 0 0 0 4px rgba(99,102,241,.18); }
.hero-search .btn { height: 54px; border-radius: 14px; padding: 0 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-tags a { font-size: 13px; color: #CBD5E1; text-decoration: none; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hero-tags a:hover { background: rgba(255,255,255,.11); color: #fff; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; }
.hero-stats b { display: block; font-size: 24px; letter-spacing: -.5px; }
.hero-stats span { font-size: 12.5px; color: #7C8AA5; }
.hero-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 22px; backdrop-filter: blur(12px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.hero-card h3 { font-size: 15px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #E2E8F0; font-weight: 600; }
.hero-card h3 .icon { color: #A5B4FC; width: 18px; height: 18px; }
.flow { display: grid; gap: 12px; }
.flow-step { display: flex; gap: 12px; align-items: flex-start; }
.flow-num { width: 28px; height: 28px; border-radius: 9px; background: rgba(99,102,241,.22); color: #C7D2FE; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; flex: none; border: 1px solid rgba(165,180,252,.25); }
.flow-step b { display: block; font-size: 14px; color: #E2E8F0; font-weight: 600; }
.flow-step span { font-size: 12.5px; color: #8494AD; }
.hero-card .mini-note { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,.12); font-size: 12px; color: #7C8AA5; display: flex; align-items: center; gap: 7px; }
.hero-card .mini-note .icon { width: 15px; height: 15px; color: #34D399; }

/* section head */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: 22px; letter-spacing: -.4px; display: flex; align-items: center; gap: 9px; }
.sec-head h2 .bar { width: 4px; height: 20px; border-radius: 4px; background: linear-gradient(180deg,#6366F1,#A855F7); display: inline-block; }
.sec-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.sec-more { font-size: 13.5px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sec-more:hover { color: var(--brand); }
.sec-more .icon { width: 15px; height: 15px; }

/* categories */
.cat-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-pill { flex: none; display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: #334155; font-size: 14px; font-weight: 550; transition: .18s; }
.cat-pill .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: #EEF2FF; color: var(--brand); }
.cat-pill .ic .icon { width: 15px; height: 15px; }
.cat-pill small { color: #94A3B8; font-size: 11.5px; font-weight: 500; }
.cat-pill:hover { border-color: #C7D2FE; background: #F8FAFF; transform: translateY(-1px); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: .2s; position: relative; overflow: hidden; }
.cat-card::after { content: ""; position: absolute; right: -18px; top: -18px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.12), transparent 70%); }
.cat-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg,#EEF2FF,#F5F3FF); color: var(--brand); margin-bottom: 4px; }
.cat-card .ic .icon { width: 20px; height: 20px; }
.cat-card b { font-size: 14.5px; color: var(--text); font-weight: 650; }
.cat-card span { font-size: 12px; color: #94A3B8; }
.cat-card:hover { border-color: #C7D2FE; box-shadow: 0 12px 28px rgba(79,70,229,.10); transform: translateY(-2px); }

/* product grid */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(15,23,42,.09); border-color: #DBE3F0; }
.pcover { aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.09) 0 1px, transparent 1px 16px); opacity: .6; }
.pcover .glyph { font-size: 40px; font-weight: 800; color: rgba(255,255,255,.92); letter-spacing: -1px; text-shadow: 0 4px 18px rgba(0,0,0,.18); position: relative; z-index: 1; }
.pcover .tag { position: absolute; left: 10px; top: 10px; z-index: 1; font-size: 11px; padding: 4px 8px; border-radius: 7px; background: rgba(0,0,0,.22); color: #fff; backdrop-filter: blur(6px); }
.pbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pname { font-size: 14.5px; line-height: 1.45; color: var(--text); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.pmeta { font-size: 12px; color: #94A3B8; display: flex; align-items: center; gap: 6px; }
.pmeta .dotsep { width: 3px; height: 3px; border-radius: 50%; background: #CBD5E1; }
.pprice { margin-top: auto; display: flex; align-items: baseline; gap: 4px; color: var(--price); }
.pprice .cny { font-size: 12px; font-weight: 700; }
.pprice .num { font-size: 22px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.pprice .unit { font-size: 11.5px; color: #94A3B8; font-weight: 500; margin-left: 2px; }

/* empty */
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .icon { width: 46px; height: 46px; color: #CBD5E1; margin-bottom: 12px; }
.empty h3 { font-size: 17px; color: #334155; margin-bottom: 6px; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-trust { grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini-trust .trust-item, .flow-grid .trust-item { border: 0; padding: 10px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.trust-item .ic { width: 38px; height: 38px; border-radius: 12px; background: #ECFDF5; color: #059669; display: grid; place-items: center; flex: none; }
.trust-item:nth-child(2) .ic { background: #EEF2FF; color: #4F46E5; }
.trust-item:nth-child(3) .ic { background: #FFF7ED; color: #EA580C; }
.trust-item:nth-child(4) .ic { background: #F5F3FF; color: #7C3AED; }
.trust-item b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.trust-item span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #94A3B8; font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }

/* footer */
.footer { margin-top: 48px; background: #0B1020; color: #94A3B8; padding: 44px 0 84px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .brand-text { color: #fff; }
.footer .brand-text em { color: #94A3B8; }
.footer-brand p { margin: 12px 0 14px; font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-badges { display: flex; gap: 14px; font-size: 12px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 5px; color: #64748B; }
.footer-badges .icon { width: 14px; height: 14px; color: #34D399; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { color: #E2E8F0; font-size: 13px; font-weight: 600; margin-bottom: 2px; letter-spacing: .3px; }
.footer-col a, .footer-col span { color: #8494AD; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer .muted { color: #64748B; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #64748B; flex-wrap: wrap; }
.footer-bottom a { color: #64748B; text-decoration: none; }

/* mobile tab */
.mobile-search { display: none; }
.mobile-tab { display: none; }

@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 30px; }
  .hero-card { display: none; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
  .top-search { max-width: none; }
}
@media (max-width: 760px) {
  .container { padding: 0 14px; }
  .topbar-inner { height: 58px; gap: 10px; }
  .top-actions { display: none; }
  .brand-text { font-size: 17px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
  .top-search { display: none; }
  .hero-inner { padding: 36px 0 40px; }
  .hero p.lead { font-size: 14px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }
  .hero-stats { gap: 18px; }
  .hero-stats b { font-size: 19px; }
  .section { padding: 24px 0; }
  .sec-head h2 { font-size: 18px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcover { aspect-ratio: 4/3; }
  .pcover .glyph { font-size: 30px; }
  .pbody { padding: 10px 11px 12px; gap: 6px; }
  .pname { font-size: 13px; min-height: 38px; }
  .pprice .num { font-size: 18px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 13px; }
  .trust { grid-template-columns: 1fr; }
  .flow-grid, .mini-trust { grid-template-columns: 1fr; }
  .flow-grid .trust-item, .mini-trust .trust-item { padding: 6px 0; }
  .faq { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer { padding-bottom: 88px; }
  .mobile-tab { display: grid; grid-template-columns: repeat(4,1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-top: 1px solid rgba(15,23,42,.07); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-tab a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: #94A3B8; text-decoration: none; padding: 5px 0; border-radius: 10px; }
  .mobile-tab a .icon { width: 21px; height: 21px; }
  .mobile-tab a.on { color: var(--brand); }
}

/* ===== 通用内容 ===== */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.panel + .panel { margin-top: 14px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #94A3B8; padding: 16px 0 0; flex-wrap: wrap; }
.breadcrumb a { color: #64748B; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .icon { width: 12px; height: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 9px; border-radius: 7px; background: #F1F5F9; color: #475569; font-weight: 500; }
.tag.brand { background: #EEF2FF; color: #4F46E5; }
.tag.mint { background: #ECFDF5; color: #059669; }
.tag.warn { background: #FFF7ED; color: #C2410C; }
.tag.danger { background: #FEF2F2; color: #DC2626; }
.tag.mute { background: #F1F5F9; color: #64748B; }
.badge-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.badge-status.warn { background: #FFF7ED; color: #C2410C; }
.badge-status.info { background: #EEF2FF; color: #4F46E5; }
.badge-status.ok { background: #ECFDF5; color: #047857; }
.badge-status.danger { background: #FEF2F2; color: #DC2626; }
.badge-status.mute { background: #F1F5F9; color: #64748B; }
.muted { color: #94A3B8; }
.small { font-size: 12.5px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 10px 12px; font-size: 13.5px; }
.kv dt { color: #94A3B8; }
.kv dd { color: #334155; word-break: break-all; }

/* ===== 商品详情 ===== */
.pdp { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(320px,.85fr); gap: 26px; padding: 18px 0 10px; align-items: start; }
.pdp-main { min-width: 0; }
.pdp-head { display: flex; gap: 18px; align-items: flex-start; }
.pdp-cover { width: 150px; height: 106px; border-radius: 16px; flex: none; display: grid; place-items: center; position: relative; overflow: hidden; }
.pdp-cover .glyph { font-size: 40px; font-weight: 800; color: rgba(255,255,255,.95); position: relative; z-index: 1; }
.pdp-cover::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 1px, transparent 1px 14px); }
.pdp-title h1 { font-size: 24px; line-height: 1.35; letter-spacing: -.3px; margin-bottom: 10px; }
.pdp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.pdp-price .cny { color: var(--price); font-weight: 700; font-size: 15px; }
.pdp-price .num { color: var(--price); font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1; }
.pdp-price .unit { color: #94A3B8; font-size: 12.5px; }
.pdp-price .sold { margin-left: auto; color: #94A3B8; font-size: 12.5px; }
.pdp-section { margin-top: 18px; }
.pdp-section h3 { font-size: 15.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.pdp-section h3 .icon { width: 17px; height: 17px; color: var(--brand); }
.rich { font-size: 13.5px; line-height: 1.9; color: #475569; white-space: pre-wrap; word-break: break-word; background: #F8FAFC; border: 1px solid #EEF2F6; border-radius: 12px; padding: 14px 16px; }

.buybox { position: sticky; top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: 0 18px 44px rgba(15,23,42,.07); }
.buybox h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.buybox h3 .icon { color: var(--brand); width: 18px; height: 18px; }
.buybox .hint { font-size: 12.5px; color: #94A3B8; line-height: 1.7; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12.5px; color: #475569; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: #EF4444; }
.input, textarea.input, select.input { width: 100%; height: 44px; border-radius: 11px; border: 1px solid #E2E8F0; background: #F8FAFC; padding: 0 13px; font-size: 14px; outline: none; transition: .18s; font-family: inherit; color: var(--text); }
textarea.input { height: auto; padding: 11px 13px; resize: vertical; min-height: 84px; line-height: 1.6; }
.input:focus { background: #fff; border-color: #C7D2FE; box-shadow: 0 0 0 4px rgba(99,102,241,.10); }
.field .tip { font-size: 11.5px; color: #94A3B8; margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chapters { margin-top: 14px; border-top: 1px dashed #E2E8F0; padding-top: 14px; display: none; }
.chapters.show { display: block; }
.chapters-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.chapters-head b { font-size: 13px; }
.chapters-head a { font-size: 12.5px; color: var(--brand); cursor: pointer; text-decoration: none; }
.chapter-list { max-height: 232px; overflow: auto; border: 1px solid #EEF2F6; border-radius: 12px; background: #FBFCFE; padding: 4px; }
.chapter-item { display: flex; gap: 9px; align-items: flex-start; padding: 8px 9px; border-radius: 9px; cursor: pointer; font-size: 13px; color: #334155; line-height: 1.5; }
.chapter-item:hover { background: #F1F5F9; }
.chapter-item input { margin-top: 2px; accent-color: var(--brand); width: 15px; height: 15px; flex: none; }
.chapter-empty { padding: 18px; text-align: center; color: #94A3B8; font-size: 13px; }
.total-row { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; font-size: 13px; color: #64748B; }
.total-row .amt { color: var(--price); font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.total-row .amt small { font-size: 13px; font-weight: 600; }
.paytypes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.paytype { position: relative; }
.paytype input { position: absolute; opacity: 0; }
.paytype span { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 1px solid #E2E8F0; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: #475569; cursor: pointer; transition: .16s; background: #fff; }
.paytype input:checked + span { border-color: #818CF8; background: #EEF2FF; color: #4338CA; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.paytype .ic { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; }
.paytype .ic.ali { background: #1677FF; }
.paytype .ic.wx { background: #07C160; }
.alert { display: flex; gap: 9px; padding: 11px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.7; }
.alert .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.alert.info { background: #EFF6FF; color: #1D4ED8; }
.alert.warn { background: #FFFBEB; color: #B45309; }
.alert.danger { background: #FEF2F2; color: #B91C1C; }
.alert.ok { background: #ECFDF5; color: #047857; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 16px; }
  .buybox { position: static; }
  .pdp-head { gap: 12px; }
  .pdp-cover { width: 92px; height: 92px; border-radius: 14px; }
  .pdp-cover .glyph { font-size: 28px; }
  .pdp-title h1 { font-size: 18px; }
  .pdp-price .num { font-size: 27px; }
}

/* ===== 列表页 ===== */
.list-head { padding: 20px 0 0; }
.list-head h1 { font-size: 24px; letter-spacing: -.4px; }
.list-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 18px; }
.sorts { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.sorts a { padding: 7px 13px; border-radius: 9px; font-size: 13px; color: #64748B; text-decoration: none; }
.sorts a.on { background: #EEF2FF; color: #4338CA; font-weight: 600; }
.result-count { font-size: 12.5px; color: #94A3B8; margin-left: auto; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 26px 0 8px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none; color: #475569; background: #fff; border: 1px solid var(--line); }
.pager a:hover { border-color: #C7D2FE; color: var(--brand); }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pager .gap { border: 0; background: transparent; color: #94A3B8; }

/* ===== 支付 / 订单 ===== */
.narrow { max-width: 860px; margin: 0 auto; }
.pay-wrap { padding: 26px 0; }
.pay-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: 0 20px 50px rgba(15,23,42,.06); }
.pay-head { text-align: center; padding: 6px 0 18px; }
.pay-head .pulse { width: 54px; height: 54px; border-radius: 18px; background: #EEF2FF; color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.pay-head .pulse .icon { width: 26px; height: 26px; }
.pay-head h1 { font-size: 20px; }
.pay-head p { font-size: 13px; color: var(--muted); margin-top: 5px; }
.pay-amount { text-align: center; margin: 6px 0 20px; }
.pay-amount b { font-size: 40px; font-weight: 800; letter-spacing: -1.4px; color: var(--price); }
.pay-amount b small { font-size: 18px; font-weight: 700; }
.pay-methods { display: grid; gap: 10px; max-width: 380px; margin: 0 auto; }
.pay-method { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #E2E8F0; border-radius: 14px; text-decoration: none; color: #334155; background: #fff; transition: .16s; }
.pay-method:hover { border-color: #C7D2FE; background: #F8FAFF; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(79,70,229,.08); }
.pay-method .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.pay-method .ic.ali { background: #1677FF; }
.pay-method .ic.wx { background: #07C160; }
.pay-method b { display: block; font-size: 14.5px; }
.pay-method span { font-size: 12px; color: #94A3B8; }
.pay-method .icon { margin-left: auto; color: #CBD5E1; width: 18px; height: 18px; }
.pay-tip { text-align: center; font-size: 12px; color: #94A3B8; margin-top: 16px; line-height: 1.8; }

.order-hero { background: #0B1020; color: #fff; border-radius: 20px; padding: 24px; position: relative; overflow: hidden; }
.order-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 85% 0%, rgba(99,102,241,.42), transparent 65%); }
.order-hero > * { position: relative; }
.order-hero .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-hero h1 { font-size: 20px; }
.order-hero .no { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: #A5B4FC; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.order-hero .no button { background: rgba(255,255,255,.1); border: 0; color: #C7D2FE; border-radius: 7px; padding: 4px 8px; font-size: 11.5px; cursor: pointer; }
.order-hero .amount { font-size: 30px; font-weight: 800; letter-spacing: -.8px; }
.order-hero .status { font-size: 13px; color: #94A3B8; }
.order-steps { display: flex; gap: 8px; margin-top: 18px; }
.order-step { flex: 1; }
.order-step .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.13); overflow: hidden; }
.order-step.done .bar i, .order-step.cur .bar i { display: block; height: 100%; background: linear-gradient(90deg,#818CF8,#C084FC); }
.order-step span { display: block; font-size: 11.5px; color: #64748B; margin-top: 6px; }
.order-step.done span, .order-step.cur span { color: #C7D2FE; }
.order-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.order-list { display: grid; gap: 8px; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding: 10px 0; border-bottom: 1px dashed #EEF2F6; }
.order-line:last-child { border-bottom: 0; }
.order-line span { color: #94A3B8; }
.order-line b { font-weight: 600; color: #334155; text-align: right; }
.chapter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #F1F5F9; border-radius: 7px; padding: 4px 8px; font-size: 12px; color: #475569; }
.copy-btn { border: 1px dashed #CBD5E1; background: #F8FAFC; border-radius: 8px; padding: 4px 8px; font-size: 11.5px; color: #64748B; cursor: pointer; }
.copy-btn:hover { border-color: #818CF8; color: var(--brand); }

@media (max-width: 760px) {
  .order-body { grid-template-columns: 1fr; }
  .pay-card { padding: 18px; border-radius: 16px; }
  .order-hero { padding: 18px; }
  .order-hero .amount { font-size: 24px; }
}

/* 移动端购买条 */
.buybar-mobile { display: none; }

@media (max-width: 900px) {
  .buybar-mobile { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid rgba(15,23,42,.08); padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); }
  .buybar-mobile .bm-price { flex: 1; display: flex; align-items: baseline; gap: 2px; color: var(--price); }
  .buybar-mobile .bm-price .cny { font-size: 12px; font-weight: 700; }
  .buybar-mobile .bm-price b { font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
  .buybar-mobile .bm-price em { font-style: normal; font-size: 11px; color: #94A3B8; margin-left: 4px; }
  .buybar-mobile .btn { height: 44px; padding: 0 22px; }
  body.pdp-page .mobile-tab { display: none; }
  body.pdp-page .footer { padding-bottom: 24px; }
  body.pdp-page .toast { bottom: 80px; }
  body.pdp-page { padding-bottom: 74px; }
  .mobile-search { display: block; background: #fff; padding: 8px 14px; border-bottom: 1px solid rgba(15,23,42,.06); position: sticky; top: 58px; z-index: 45; }
  .mobile-search form { position: relative; display: flex; align-items: center; }
  .mobile-search .icon { position: absolute; left: 11px; width: 16px; height: 16px; color: #94A3B8; }
  .mobile-search input { width: 100%; height: 38px; border-radius: 10px; background: #F1F5F9; border: 1px solid transparent; padding: 0 12px 0 34px; font-size: 13.5px; outline: none; }
  .mobile-search input:focus { background: #fff; border-color: #C7D2FE; }
  #buybox { scroll-margin-top: 110px; }
}

/* toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #0F172A; color: #fff; font-size: 13px; padding: 11px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 100; box-shadow: 0 14px 34px rgba(15,23,42,.25); max-width: 86vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #B91C1C; }
