/* ==========================================================================
   StoreCraft — storefront stylesheet
   所有颜色 / 圆角 / 字体都来自 :root 上的 CSS 变量（由服务端按主题注入）
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
s { color: var(--muted); font-weight: 500; font-size: 0.9em; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.ic { flex: none; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: calc(var(--radius) * 0.8);
  border: 1px solid transparent; font-weight: 600; font-size: 15px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { box-shadow: 0 10px 24px -12px rgba(11, 18, 32, .7); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-line { border-color: var(--line); background: transparent; color: var(--text); }
.btn-line:hover { border-color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); padding-inline: 6px; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: calc(var(--radius) * 0.6); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.dark .btn-primary { background: var(--accent); color: var(--accent-ink); }

/* ---------- 顶部公告 ---------- */

.announce {
  background: var(--ink); color: #fff; font-size: 13px;
  letter-spacing: .04em; padding: 9px 0; text-align: center;
}
.dark .announce { background: #05070a; color: var(--accent); }
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 18px; height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { display: inline-flex; color: var(--ink); }
.dark .brand-mark { color: var(--accent); }
.brand-name {
  font-weight: 700; font-size: 15px; letter-spacing: .13em; text-transform: uppercase;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: 4px; min-width: 0; }
.nav a {
  padding: 9px 9px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .15s ease, background .15s ease; white-space: nowrap;
}
.nav a:hover, .nav a.on { color: var(--text); background: var(--surface); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- 语言切换 ---------- */

.lang-switch {
  display: flex; align-items: center; gap: 1px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; flex: none;
}
.lang-switch a {
  padding: 4px 5px; border-radius: 6px; color: var(--muted); line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.lang-switch a:hover { color: var(--text); background: var(--surface); }
.lang-switch a.on { color: var(--text); background: var(--surface); }
.lang-sep { color: var(--line); font-weight: 400; }
.mobile-lang { padding: 10px 12px 4px; margin-top: 6px; border-top: 1px solid var(--line); }
.mobile-lang .lang-switch a { padding: 6px 8px; }

.search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--muted); min-width: 165px; transition: border-color .15s ease, background .15s ease;
}
.search:focus-within { border-color: var(--accent); background: var(--bg); }
.search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 14px; }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14.5px; font-weight: 600; transition: border-color .15s ease;
}
.cart-link:hover { border-color: var(--text); }
.cart-count {
  background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700;
  min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}
.mobile-nav { display: none; position: relative; }

/* ---------- 英雄区 ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 78% 8%, var(--accent-soft), transparent 62%),
    radial-gradient(50% 50% at 6% 92%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: 48px; align-items: center; padding: 76px 0 68px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); display: block; }
.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -0.035em; line-height: 1.02;
  margin-bottom: 20px;
}
.hero .lede { font-size: 17.5px; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 34px; margin-top: 44px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero-stats strong { display: block; font-size: 22px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.hero-art { position: relative; }

/* Hero：居中版式 */
.hero-centered { position: relative; overflow: hidden; }
.hero-center-bg {
  position: absolute; inset: -14% -4% 0 auto; width: 64%; max-width: 820px;
  opacity: .12; pointer-events: none; filter: saturate(.9);
}
.hero-center-bg svg, .hero-center-bg img { width: 100%; height: auto; display: block; }
.hero-center {
  position: relative; text-align: center; display: flex; flex-direction: column;
  align-items: center; padding: 84px 0 72px;
}
.hero-center h1 { font-size: clamp(38px, 4.6vw, 66px); letter-spacing: -0.035em; line-height: 1.04; margin-bottom: 20px; max-width: 18em; }
.hero-center .lede { max-width: 40em; }
.hero-center .hero-cta { justify-content: center; }
.hero-center .hero-stats { justify-content: center; gap: 46px; }
.hero-center .eyebrow { justify-content: center; }
.hero-center .eyebrow::before { display: none; }

/* 自定义图文模块 */
.richtext { display: grid; gap: 44px; align-items: center; }
.richtext.has-media { grid-template-columns: 1.1fr .9fr; }
.richtext h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 14px; }
.richtext .prose { margin-bottom: 22px; }
.richtext-media { border-radius: calc(var(--radius) * 1.2); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.richtext-media img { width: 100%; height: auto; display: block; }
.hero-art .art-frame {
  position: relative; border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--line); overflow: hidden; background: var(--surface);
  box-shadow: 0 40px 80px -50px rgba(11, 18, 32, .55);
}
.hero-art .art-frame svg, .hero-art .art-frame img { display: block; width: 100%; height: auto; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line);
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 12px 30px -18px rgba(11, 18, 32, .5); backdrop-filter: blur(8px);
}
.chip-1 { top: 18px; left: -18px; }
.chip-2 { bottom: 56px; right: -14px; }
.chip-3 { bottom: 12px; left: 26px; }
.chip b { color: var(--accent); }

/* ---------- 认证条 ---------- */

.certs { border-bottom: 1px solid var(--line); background: var(--surface); }
.certs-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 34px; padding: 18px 0;
}
.certs-label { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.certs-list { display: flex; flex-wrap: wrap; gap: 26px; }
.certs-list span { font-size: 13.5px; font-weight: 600; color: var(--muted); letter-spacing: .05em; }

/* ---------- 区块 ---------- */

.section { padding: 78px 0; }
.section.tight { padding: 56px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px;
}
.section-head h2 { font-size: clamp(26px, 2.6vw, 36px); }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 44em; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px;
  border-bottom: 1px solid var(--line); padding-bottom: 4px; flex: none;
}
.link-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- 分类 ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  display: flex; flex-direction: column; gap: 6px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(11,18,32,.5); }
.cat-card h3 { font-size: 17px; }
.cat-card p { color: var(--muted); font-size: 14px; }
.cat-card .cat-count { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-top: 8px; }

/* ---------- 产品卡 ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-3px); box-shadow: 0 24px 44px -34px rgba(11,18,32,.55); }
.card-media { position: relative; display: block; background: var(--surface); aspect-ratio: 1 / 1; }
.card-media .art { width: 100%; height: 100%; }
.card-media .art svg, .card-media .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
}
.dark .badge { background: var(--accent); color: var(--accent-ink); }
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-cat { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.card-body h3 { font-size: 15.5px; line-height: 1.35; letter-spacing: -0.01em; }
.card-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 16px; }
.mini-add { flex: none; }

/* ---------- 特性 / 应用 / 评价 ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--line);
}
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.app { background: var(--bg); padding: 26px; }
.app h3 { font-size: 15.5px; margin-bottom: 8px; }
.app p { font-size: 13.5px; color: var(--muted); }
.app .num { font-size: 11px; letter-spacing: .14em; color: var(--accent); font-weight: 700; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.quote {
  padding: 30px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px;
}
.quote p { font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; }
.quote footer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar {
  width: 38px; height: 38px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.quote cite { font-style: normal; font-weight: 600; font-size: 14px; display: block; }
.quote small { color: var(--muted); font-size: 12.5px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--accent); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--muted); margin-top: 12px; max-width: 62em; }

/* ---------- CTA 带 ---------- */

.cta-band {
  position: relative; overflow: hidden; background: var(--ink); color: #fff;
  border-radius: calc(var(--radius) * 1.6); padding: 52px; display: flex;
  align-items: center; justify-content: space-between; gap: 34px;
}
.cta-band::after {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 460px; height: 460px;
  background: radial-gradient(circle, var(--accent), transparent 62%); opacity: .35;
}
.cta-band h2 { font-size: clamp(24px, 2.4vw, 34px); max-width: 18em; }
.cta-band p { color: rgba(255,255,255,.72); margin-top: 12px; max-width: 42em; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band .btn-line { border-color: rgba(255,255,255,.35); color: #fff; }
.cta-band .btn-line:hover { border-color: #fff; }

/* ---------- 页脚 ---------- */

.site-footer { background: var(--ink); color: rgba(255,255,255,.78); margin-top: 0; }
.dark .site-footer { background: #05070a; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding: 68px 0 44px;
}
.footer-brand .brand-invert .brand-mark { color: var(--accent); }
.footer-brand .brand-name { color: #fff; }
.footer-desc { margin-top: 14px; font-size: 14px; max-width: 26em; color: rgba(255,255,255,.62); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; font-size: 13.5px; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); }
.footer-contact a:hover { color: #fff; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255,255,255,.78); }
.footer-col a:hover { color: #fff; }
.footer-news p { font-size: 13.5px; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.news-form { display: flex; gap: 8px; }
.news-form input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px; padding: 10px 12px; color: #fff; outline: none; font-size: 13.5px;
}
.news-form input::placeholder { color: rgba(255,255,255,.4); }
.news-form input:focus { border-color: var(--accent); }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.pay-chip {
  font-size: 11px; letter-spacing: .05em; padding: 4px 8px; border-radius: 5px;
  border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.66);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0 30px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px; color: rgba(255,255,255,.5);
}

/* ---------- 列表页 / 筛选 ---------- */

.page-head { padding: 46px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.page-head p { color: var(--muted); margin-top: 12px; max-width: 46em; }
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent); }
.shop-layout { display: grid; grid-template-columns: 224px 1fr; gap: 40px; padding: 40px 0 80px; }
.filters { position: sticky; top: 96px; align-self: start; }
.filters h4 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.filter-list a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--muted); }
.filter-list a:hover, .filter-list a.on { color: var(--text); font-weight: 600; }
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; font-size: 13.5px; color: var(--muted);
}
.shop-toolbar select {
  border: 1px solid var(--line); background: var(--bg); border-radius: 8px;
  padding: 8px 10px; font-size: 13.5px;
}
.result-count b { color: var(--text); }

/* ---------- 产品详情 ---------- */

.product-page { padding: 28px 0 84px; }
.product-main { display: grid; grid-template-columns: 1.06fr .94fr; gap: 54px; align-items: start; }
.gallery .stage {
  border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.4); overflow: hidden;
  background: var(--surface); aspect-ratio: 1 / 1;
}
.gallery .stage svg, .gallery .stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs .thumb {
  width: 74px; height: 74px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); padding: 0; cursor: pointer;
}
.thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .thumb.on { border-color: var(--accent); }

.pdp-cat { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pdp-title { font-size: clamp(26px, 2.8vw, 38px); margin-top: 8px; }
.pdp-sub { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.pdp-price strong { font-size: 30px; letter-spacing: -0.02em; }
.pdp-price span { font-size: 13px; color: var(--muted); }
.pdp-sku { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .04em; }
.stock { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-top: 14px; }
.stock .dot { width: 7px; height: 7px; border-radius: 99px; background: #10b981; }
.stock.low .dot { background: #f59e0b; }
.stock.out .dot { background: #ef4444; }

.option-group { margin-top: 22px; }
.option-group > label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: block; margin-bottom: 10px; }
.option-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.option-pills input { position: absolute; opacity: 0; pointer-events: none; }
.option-pills .pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13.5px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.option-pills .pill small { color: var(--muted); font-size: 12px; }
.option-pills input:checked + .pill { border-color: var(--text); background: var(--surface); font-weight: 600; }
.option-pills input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }

.buy-row { display: flex; gap: 10px; margin-top: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.qty button { width: 40px; height: 46px; background: transparent; border: 0; cursor: pointer; font-size: 17px; color: var(--muted); }
.qty button:hover { color: var(--text); background: var(--surface); }
.qty input {
  width: 46px; text-align: center; border: 0; background: transparent; height: 46px;
  outline: none; font-weight: 600; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row .btn { flex: 1; }
.pdp-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.pdp-note span { display: inline-flex; align-items: center; gap: 7px; }

.pdp-blocks { margin-top: 46px; border-top: 1px solid var(--line); }
.pdp-block { padding: 34px 0; border-bottom: 1px solid var(--line); }
.pdp-block h2 { font-size: 20px; margin-bottom: 16px; }
.prose { color: var(--muted); font-size: 15.5px; max-width: 62em; }
.prose p { margin-bottom: 14px; }
.prose strong { color: var(--text); }
.prose ul { list-style: none; display: grid; gap: 8px; margin: 4px 0 16px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before {
  content: ''; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px;
  border-radius: 99px; background: var(--accent);
}
.prose a { color: var(--accent); text-decoration: underline; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th {
  text-align: left; font-weight: 600; color: var(--muted); padding: 12px 18px 12px 0;
  width: 38%; vertical-align: top;
}
.spec-table td { padding: 12px 0; }
.spec-table tr:nth-child(odd) { background: color-mix(in srgb, var(--surface) 60%, transparent); }

/* ---------- 购物车 / 结算 ---------- */

.cart-page { padding: 40px 0 90px; }
.cart-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 44px; align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.line-art { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.line-art svg, .line-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-info h3 { font-size: 15.5px; }
.line-info p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.line-actions { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.qty-inline { display: flex; align-items: center; gap: 8px; }
.qty-inline .qty-input {
  width: 64px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); text-align: center; font-weight: 600; font-size: 14px;
  outline: none; -moz-appearance: textfield;
}
.qty-inline .qty-input:focus { border-color: var(--accent); }
.qty-inline .qty-input::-webkit-outer-spin-button,
.qty-inline .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.line-actions .link-btn {
  background: none; border: 0; color: var(--muted); font-size: 12.5px; cursor: pointer;
  text-decoration: underline; padding: 0;
}
.line-actions .link-btn:hover { color: #ef4444; }
.line-total { text-align: right; font-weight: 700; font-size: 16px; }
.line-total small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; }

.summary {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: var(--surface); position: sticky; top: 96px;
}
.summary h2 { font-size: 18px; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14.5px; color: var(--muted); }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 16px; font-size: 18px; color: var(--text); font-weight: 700; }
.summary .btn { margin-top: 18px; }
.summary-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }

.checkout-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 44px; align-items: start; padding: 40px 0 90px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--bg); }
.form-card + .form-card { margin-top: 18px; }
.form-card h2 { font-size: 18px; margin-bottom: 6px; }
.form-card .hint { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 7px; letter-spacing: .03em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg); outline: none; font-size: 14.5px; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .error { color: #ef4444; font-size: 12px; margin-top: 5px; }

.pay-methods { display: grid; gap: 10px; }
.pay-method {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: all .15s ease;
}
.pay-method input { margin-top: 3px; accent-color: var(--accent); }
.pay-method strong { font-size: 14.5px; display: block; }
.pay-method small { color: var(--muted); font-size: 12.5px; }
.pay-method:has(input:checked) { border-color: var(--text); background: var(--surface); }

.mini-lines { display: grid; gap: 12px; margin-bottom: 18px; }
.mini-line { display: flex; gap: 12px; align-items: center; font-size: 13.5px; }
.mini-line .mini-art { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); flex: none; }
.mini-line .mini-art svg, .mini-line .mini-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-line .grow { flex: 1; min-width: 0; }
.mini-line .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-line .muted { color: var(--muted); font-size: 12px; }

.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 10px; font-size: 13.5px;
  background: var(--accent-soft); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.notice.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---------- 订单确认 ---------- */

.order-page { padding: 44px 0 90px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.order-head h1 { font-size: clamp(28px, 3vw, 40px); }
.order-head p { color: var(--muted); margin-top: 8px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em; background: var(--accent-soft); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.order-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 34px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.panel-head { padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.panel-body { padding: 8px 22px 22px; }
.order-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-line:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.bank-box {
  margin-top: 16px; padding: 16px; border-radius: 10px; background: var(--surface);
  border: 1px dashed var(--line); font-size: 13.5px;
}
.bank-box div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.bank-box b { font-weight: 600; }

/* ---------- 内容页 ---------- */

.content-page { padding: 24px 0 90px; }
.content-grid { display: grid; grid-template-columns: 1fr 260px; gap: 60px; align-items: start; }
.content-body h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
.content-body { max-width: 46em; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.aside-card h3 { font-size: 15px; margin-bottom: 10px; }
.aside-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 90px; }
.contact-list { display: grid; gap: 18px; margin-top: 26px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci { width: 38px; height: 38px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; color: var(--accent); flex: none; }
.contact-item b { display: block; font-size: 14px; }
.contact-item span, .contact-item a { font-size: 14px; color: var(--muted); }
.contact-item a:hover { color: var(--accent); }

.empty-state { text-align: center; padding: 70px 24px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state h3 { font-size: 20px; }
.empty-state p { color: var(--muted); margin: 8px 0 20px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 60;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .search { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-news { grid-column: 1 / -1; max-width: 460px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .search { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary {
    list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 999px; font-size: 15px;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-panel {
    position: absolute; right: 0; top: 50px; width: 220px; background: var(--bg);
    border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 50;
    box-shadow: 0 24px 50px -24px rgba(11,18,32,.5);
  }
  .mobile-panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; }
  .mobile-panel a:hover { background: var(--surface); }

  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 48px 0 44px; }
  .hero-art { order: -1; }
  .chip-1 { left: 10px; } .chip-3 { left: auto; right: 10px; bottom: 10px; }
  .product-main { grid-template-columns: 1fr; gap: 30px; }
  .cart-grid, .checkout-grid, .order-grid { grid-template-columns: 1fr; gap: 26px; }
  .summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; gap: 22px; }
  .filters { position: static; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-list a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
  .filter-list a.on { border-color: var(--text); }
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .wrap { width: min(1180px, 100% - 32px); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; padding: 48px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .hero-stats { gap: 22px; }
  .card-body { padding: 12px 12px 14px; }
  .card-body h3 { font-size: 14px; }
  .card-sub { display: none; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .line-art { width: 72px; height: 72px; }
  .line-total { grid-column: 2; text-align: left; }
  .field-row { grid-template-columns: 1fr; }
  .brand-name { font-size: 13px; letter-spacing: .1em; }
  .header-inner { gap: 12px; height: 64px; }
  .cart-text { display: none; }
}
