/* ============================================================
   新游模板 · 前台样式（蓝色主题 / 深色模式 / 全端自适应）
   ============================================================ */
:root {
  --brand: #2563eb;
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  /* 主色 RGB 三元组，供 rgba(var(--p-rgb), a) 使用，随主题一起切换 */
  --p-rgb: 37, 99, 235;
  /* ---- 主题色组（v2.45.1）：默认蓝色；首页模板 E 会在头部覆盖为绿色 ---- */
  --p-soft: #60a5fa;
  --p-soft-text: #93c5fd;
  --p-soft-rgb: 96, 165, 250;
  --p-light: #3b82f6;
  --p-light-rgb: 59, 130, 246;
  --p-accent: #0ea5e9;
  --p-accent-rgb: 14, 165, 233;
  --p-accent2: #6366f1;
  --p-accent2-rgb: 99, 102, 241;
  --p-cyan: #38bdf8;
  --p-cyan-rgb: 56, 189, 248;
  --p-cyan2: #22d3ee;
  --p-cyan2-rgb: 34, 211, 238;
  --p-deep: #1e3a8a;
  --p-deep2: #1e40af;
  --p-deep3: #0b2a6b;


  --bg: #f5f8fc;
  --bg-soft: #eef3fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e3e9f2;
  --border-strong: #d3dceb;

  --text: #16233b;
  --text-soft: #4c5c78;
  --text-mute: #7b8aa3;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --radius: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 2px rgba(20,40,80,.06), 0 2px 6px rgba(20,40,80,.04);
  --shadow: 0 4px 14px rgba(20,40,80,.07), 0 12px 32px rgba(20,40,80,.06);
  --shadow-l: 0 18px 50px rgba(20,40,80,.14);
  --header-h: 66px;
  --maxw: 1200px;
}

[data-theme="dark"] {
  --brand-50: #0f1e3d;
  --brand-100: #142a54;
  --brand-200: #1c3a6b;

  --bg: #080d18;
  --bg-soft: #0c1424;
  --surface: #111a2c;
  --surface-2: #16223a;
  --border: #22304a;
  --border-strong: #2e3f5e;

  --text: #e8eefa;
  --text-soft: #a9b8d0;
  --text-mute: #7386a3;
  --shadow-s: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 6px 18px rgba(0,0,0,.45);
  --shadow-l: 0 20px 55px rgba(0,0,0,.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- 全局：点击/触摸无选中阴影与高亮 ---------- */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
html { -webkit-text-size-adjust: 100%; }
a, button, .btn, .cat-item, .card, .product-card, .icon-btn, .menu-toggle,
.tab-item, .page-item, .link, .tag, input, select, textarea, label, .switch {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
/* 鼠标点击不出现聚焦圈，键盘 Tab 仍保留可访问性焦点 */
a:focus, button:focus, .btn:focus, .icon-btn:focus, input:focus,
select:focus, textarea:focus, .cat-item:focus, .product-card:focus {
  outline: none;
  box-shadow: none;
}
a:focus-visible, button:focus-visible, .btn:focus-visible,
.icon-btn:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 8px;
}
/* 按下时不产生阴影，只做轻微缩放反馈 */
a, button, .btn, .cat-item, .product-card, .icon-btn {
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.product-card:active, .cat-item:active, .btn:active, .icon-btn:active {
  transform: scale(.985);
  box-shadow: none;
}
/* 禁止长按选中造成蓝色遮罩（保留输入框可选） */
a, button, .cat-item, .product-card, .card, .tag, .icon-btn {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  text-rendering: optimizeSpeed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; transition: background .25s, color .25s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.28; letter-spacing: -.01em; }
p { margin: 0; }
ul { list-style: none; }
::selection { background: var(--brand-600); color: #fff; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-s { width: 16px; height: 16px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(25px, 3.3vw, 33px); }
.section-head p { margin-top: 12px; color: var(--text-soft); font-size: 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; color: var(--brand-600); margin-bottom: 14px; }
[data-theme="dark"] .eyebrow { color: var(--brand-200); }
.section-title { font-size: 20px; display: flex; align-items: center; gap: 9px; margin: 34px 0 16px; }
.block-title { font-size: 19px; display: flex; align-items: center; gap: 9px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-size: 15px; font-weight: 600; transition: all .16s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  box-shadow: 0 6px 18px rgba(var(--p-rgb),.3); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(var(--p-rgb),.4); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-600); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-s); }
.card-pad { padding: 24px; }
@media (max-width: 640px) { .card-pad { padding: 18px 14px; } }
.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------- 顶栏 ---------- */
.site-header { background: rgba(255,255,255,.85); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(14px); }
[data-theme="dark"] .site-header { background: rgba(8,13,24,.85); }
.site-header.sticky { position: sticky; top: 0; z-index: 60; }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  box-shadow: 0 4px 12px rgba(var(--p-rgb),.32); }
.brand-mark .icon { width: 18px; height: 18px; }
.brand-logo { height: 32px; width: auto; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--text-mute); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 13px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--text-soft); }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav-admin { color: var(--brand-600); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text-soft); }
.icon-btn:hover { color: var(--brand-600); border-color: var(--brand-200); }
.menu-toggle { display: none; }

.mobile-nav { display: none; background: var(--bg); padding: 10px 20px 30px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px;
  font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero::before { content: ""; position: absolute; inset: -30% 0 auto; height: 700px; pointer-events: none;
  background: radial-gradient(60% 55% at 20% 10%, rgba(var(--p-light-rgb),.26), transparent 70%),
              radial-gradient(45% 45% at 85% 0%, rgba(var(--p-rgb),.18), transparent 70%); }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: clamp(31px, 5vw, 52px); line-height: 1.15; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand-700), var(--p-accent) 60%, var(--brand-600));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 680px; margin: 20px auto 0; font-size: 17px; color: var(--text-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; align-items: center;}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; align-items: center;}
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); box-shadow: var(--shadow-s); }
.tag .icon { width: 14px; height: 14px; color: var(--brand-600); }
.tags-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center;}

/* ---------- 商品 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.product-card { padding: 26px 24px; display: flex; flex-direction: column; position: relative; }
.product-card .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.product-cover {
  position: relative; width: 100%; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.product-card:hover .product-cover img { transform: scale(1.04); }
.cover-ph { display: grid; place-items: center; gap: 8px; color: var(--brand-600); padding: 20px; text-align: center; }
.cover-ph .icon { width: 34px; height: 34px; opacity: .55; }
.cover-ph span { font-size: 13.5px; font-weight: 700; color: var(--text-mute); }
[data-theme="dark"] .cover-ph { color: var(--brand-200); }
.cat-chip {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(15, 25, 45, .55); color: #fff; backdrop-filter: blur(4px);
}
.product-card h3 { font-size: 18px; }
.product-card .sub { font-size: 13.8px; color: var(--text-mute); margin-top: 6px; min-height: 40px; }
.product-card .price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.product-card .price b { font-size: 34px; letter-spacing: -.03em; color: var(--price-solid); }
[data-theme="dark"] .product-card .price b { color: var(--price-solid-dark); }
.product-card .price small { font-size: 15px; color: var(--text-mute); }
.product-card .price s { font-size: 13.5px; color: var(--text-mute); margin-left: 6px; }
.feat-list { margin: 16px 0 20px; flex: 1; }
.feat-list li { display: flex; gap: 9px; padding: 5px 0; font-size: 14.3px; color: var(--text-soft); align-items: center;}
.feat-list .icon { width: 17px; height: 17px; margin-top: 5px; color: var(--brand-600); }
[data-theme="dark"] .feat-list .icon { color: var(--brand-200); }
.card-foot { display: flex; gap: 10px; align-items: center;}
.card-foot .btn { flex: 1; }
.card-meta { display: flex; gap: 16px; margin-top: 14px; font-size: 13px; color: var(--text-mute); align-items: center;}
.card-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  font-weight: 800; margin-bottom: 14px; }
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-soft); }
.step:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 42px;
  width: 10px; height: 10px; border-top: 2px solid var(--brand-200); border-right: 2px solid var(--brand-200);
  transform: rotate(45deg); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-l); padding: 52px 34px;
  text-align: center; background: linear-gradient(135deg, var(--brand-700), var(--brand-600) 55%, var(--p-accent));
  color: #fff; box-shadow: 0 22px 50px rgba(var(--p-rgb),.28); }
.cta::after { content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.cta > * { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(23px, 3.2vw, 31px); }
.cta p { margin: 12px auto 0; max-width: 620px; opacity: .93; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; align-items: center;}
.cta .btn-primary { background: #fff; color: var(--brand-700); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.cta .btn-outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* ---------- 面包屑 / 页头 ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.4px; color: var(--text-mute);
  padding: 22px 0 0; }
.page-head { padding: 30px 0 14px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 36px); }
.page-head p { margin-top: 10px; color: var(--text-soft); font-size: 16px; max-width: 700px; }

/* ---------- 详情两栏 ---------- */
.split { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.side-card { position: sticky; top: calc(var(--header-h) + 20px); }
.side-price { display: flex; align-items: baseline; gap: 6px; }
.side-price b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--price-solid); }
[data-theme="dark"] .side-price b { color: var(--price-solid-dark); }
.side-price small { font-size: 15px; color: var(--text-mute); }
.side-price s { font-size: 14px; color: var(--text-mute); }
.side-note { font-size: 13.5px; color: var(--text-mute); margin-top: 6px; }
.mini-title { font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mini-text { font-size: 13.8px; color: var(--text-soft); margin-top: 8px; }
.mini-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-soft); margin-bottom: 8px; }
.mini-list li { display: flex; gap: 10px; padding: 6px 0; font-size: 14.2px; color: var(--text-soft); align-items: center;}
.mini-list .icon { width: 17px; height: 17px; margin-top: 5px; color: var(--brand-600); }
[data-theme="dark"] .mini-list .icon { color: var(--brand-200); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-top: 16px; }
.feat-item { display: flex; gap: 9px; font-size: 14.4px; color: var(--text-soft); align-items: center;}
.feat-item .icon { width: 17px; height: 17px; margin-top: 5px; color: var(--brand-600); }
[data-theme="dark"] .feat-item .icon { color: var(--brand-200); }
.content-text { color: var(--text-soft); font-size: 15px; line-height: 1.85; margin-top: 12px; }
.rel-item { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 14px; align-items: center;}
.rel-item:last-child { border-bottom: none; }
.rel-item b { color: var(--brand-600); }
[data-theme="dark"] .rel-item b { color: var(--brand-200); }

/* ---------- 规格表 ---------- */
.spec-wrap { border-top: 1px solid var(--border); }
.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec th, .spec td { padding: 13px 24px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: none; }
.spec th { width: 150px; color: var(--text-mute); font-weight: 600; background: var(--surface-2); }
.spec td { color: var(--text-soft); }
.link { color: var(--brand-600); font-weight: 600; }
[data-theme="dark"] .link { color: var(--brand-200); }

/* ---------- 文档 ---------- */
.docs-layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.docs-side { position: sticky; top: calc(var(--header-h) + 20px); }
.docs-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.docs-nav h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mute); padding: 8px 12px; }
.docs-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px;
  font-size: 14.3px; font-weight: 600; color: var(--text-soft); }
.docs-nav a .icon { width: 16px; height: 16px; }
.docs-nav a:hover, .docs-nav a.active { background: var(--brand-50); color: var(--brand-700); }
[data-theme="dark"] .docs-nav a:hover, [data-theme="dark"] .docs-nav a.active { color: var(--brand-200); }
.doc-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; }
.doc-block h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.doc-block h2 .icon { color: var(--brand-600); }
[data-theme="dark"] .doc-block h2 .icon { color: var(--brand-200); }
.doc-block h3 { font-size: 16px; margin: 20px 0 8px; }
.doc-block p { color: var(--text-soft); font-size: 14.8px; margin: 10px 0; }
.doc-block ol { padding-left: 20px; color: var(--text-soft); font-size: 14.8px; }
.doc-block ol li { padding: 4px 0; }
.doc-block code { background: var(--bg-soft); padding: 1px 6px; border-radius: 5px; font-size: 13.5px; }
.code { position: relative; margin: 14px 0; background: #0d1526; border: 1px solid #1c2740;
  border-radius: 12px; overflow: hidden; }
.code-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #111c31;
  border-bottom: 1px solid #1c2740; font-size: 12.5px; color: #7f9ac2; font-weight: 600; }
.code-head .copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: #9db8dd; }
.code-head .copy:hover { color: #fff; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; }
.code code { font-family: Consolas, Menlo, monospace; font-size: 13.2px; line-height: 1.75; color: #d7e3f4; background: none; }
.code .c { color: #6b83a6; }
.code .k { color: #7dd3fc; }
.code .s { color: #a5d6a7; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14.3px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--text-soft); margin: 14px 0; align-items: center;}
.note .icon { color: var(--brand-600); width: 18px; height: 18px; margin-top: 3px; }
.note.warn { background: rgba(217,119,6,.1); border-color: rgba(217,119,6,.28); }
.note.warn .icon { color: var(--warn); }
[data-theme="dark"] .note .icon { color: var(--brand-200); }

/* ---------- 政策 ---------- */
.policy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.policy { padding: 24px; display: flex; gap: 16px; align-items: center;}
.policy .pico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); }
.policy.danger .pico { background: rgba(220,38,38,.1); color: var(--danger); }
[data-theme="dark"] .policy .pico { color: var(--brand-200); }
.policy h3 { font-size: 16px; margin-bottom: 6px; }
.policy p { font-size: 14.2px; color: var(--text-soft); }
.ban-card { margin-top: 18px; border-color: rgba(220,38,38,.32); }
/* v2.39.0：关于我们页各区块之间统一留白
   此前「联系我们」紧跟在「禁止倒卖声明」后面且没有间距，两块贴在一起 */
.ab-wrap .card + .card,
.ab-wrap .card + h2.section-title,
.ab-wrap .policy-grid + .card { margin-top: 18px; }
@media (max-width: 640px) {
  .ab-wrap .card + .card,
  .ab-wrap .card + h2.section-title,
  .ab-wrap .policy-grid + .card { margin-top: 14px; }
}
.ban-card .block-title { color: var(--danger); }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.mini-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.mini-box .mini-title { color: var(--brand-600); }
[data-theme="dark"] .mini-box .mini-title { color: var(--brand-200); }
.mini-box p { font-size: 14px; color: var(--text-soft); }

/* ---------- 购买页 ---------- */
.buy-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.choose-list { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.choose-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: all .15s; }
.choose-item.active { border-color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .choose-item.active { background: rgba(var(--p-light-rgb),.12); }
.choose-item input { width: 18px; height: 18px; flex: none; accent-color: var(--brand-600); }
.choose-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.choose-body b { font-size: 15px; }
.choose-body span { font-size: 13px; color: var(--text-mute); }
.choose-price { font-weight: 800; color: var(--price-solid); font-size: 16px; }
[data-theme="dark"] .choose-price { color: var(--price-solid-dark); }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0; }
.pay-method { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px;
  border-radius: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 15px; }
.pay-method .icon { width: 22px; height: 22px; }
.pay-method.wechat .icon { color: var(--ok); }
.pay-method.alipay .icon { color: #1677ff; }
.pay-method.active { border-color: var(--brand-600); background: var(--brand-50); }
[data-theme="dark"] .pay-method.active { background: rgba(var(--p-light-rgb),.12); }
.qr-box { text-align: center; padding: 20px; }
.qr { width: 200px; height: 200px; margin: 0 auto 14px; border-radius: 14px; padding: 10px;
  background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.qr-title { font-weight: 700; }
.countdown { font-size: 14px; color: var(--text-mute); margin-top: 6px; }
.countdown b { color: var(--danger); }
.info-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; align-items: center;}
.info-row span { color: var(--text-mute); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; }
.pay-total b { font-size: 28px; font-weight: 800; color: var(--price-solid); }
[data-theme="dark"] .pay-total b { color: var(--price-solid-dark); }
.result-empty { color: var(--text-mute); font-size: 14.3px; }
.result-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 16px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.3px; align-items: center;}
.result-row code { font-family: Consolas, Menlo, monospace; color: var(--brand-700); font-weight: 700; }
[data-theme="dark"] .result-row code { color: var(--brand-200); }

/* ---------- 广告 ---------- */
.ad-banner { margin: 22px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); }
.ad-banner img { width: 100%; }
.ad-text { display: block; padding: 16px; text-align: center; font-weight: 700; color: var(--brand-600); }
.popup-ad { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(8,15,30,.55); }
.popup-box { position: relative; background: var(--surface); border-radius: var(--radius-l); padding: 14px;
  max-width: 90vw; box-shadow: var(--shadow-l); }
.popup-close { position: absolute; top: -12px; right: -12px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--danger); color: #fff; cursor: pointer; display: grid; place-items: center; }
.popup-box img { max-width: 460px; border-radius: 10px; }
.popup-text { display: block; padding: 20px 40px; font-weight: 700; color: var(--brand-600); }

/* ---------- 联系 / 空态 ---------- */
.contact-line { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  background: var(--bg-soft); font-size: 14px; font-weight: 600; margin-top: 10px; margin-right: 8px; }
.contact-line .icon { width: 16px; height: 16px; color: var(--brand-600); }
.contact-row { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px;
  color: var(--text-soft); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.pwd-box { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 12px 16px; }
.pwd-box span { font-size: 13.5px; color: var(--text-mute); }
.pwd-box code { font-family: Consolas, Menlo, monospace; font-size: 14px; color: var(--brand-700); }
[data-theme="dark"] .pwd-box code { color: var(--brand-200); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-soft); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--text-mute); }

/* ---------- 输入 ---------- */
input[type=text], textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: 10px; font-size: 14.5px; font-family: inherit; background: var(--surface-2); color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--brand-600); background: var(--surface); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h4 { font-size: 14px; margin-bottom: 12px; }
.footer-grid a { display: block; font-size: 14px; color: var(--text-soft); padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-600); }
[data-theme="dark"] .footer-grid a:hover { color: var(--brand-200); }
.footer-about p { font-size: 14px; color: var(--text-mute); margin-top: 12px; max-width: 320px; }
.footer-form { display: flex; flex-direction: column; gap: 8px; }
.footer-form textarea { resize: vertical; }
.footer-links { margin-bottom: 26px; }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center;}
.link-row a { font-size: 13.5px; color: var(--text-soft); padding: 5px 12px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--border); }
.link-row a:hover { color: var(--brand-600); border-color: var(--brand-200); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.4px; color: var(--text-mute); }
.footer-note { max-width: 760px; font-size: 13px; color: var(--text-mute); line-height: 1.8; margin-top: 10px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand-600); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(var(--p-rgb),.35); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .22s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 商品分类筛选 ---------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center;}
.cat-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  background: var(--surface); border: 1px solid var(--border); transition: all .15s;
}
.cat-item:hover { color: var(--brand-600); border-color: var(--brand-200, var(--brand-200)); }
.cat-item.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.cat-cnt { font-size: 12px; opacity: .7; font-weight: 700; }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .split, .buy-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .step:not(:last-child)::after { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .policy-grid, .three-grid, .contact-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 48px 0 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-card { padding: 18px 16px; }
  .product-card h3 { font-size: 16.5px; }
  .product-card .price b { font-size: 28px; }
  .product-card .sub { min-height: 0; font-size: 13px; }
}
@media (max-width: 560px) {
  /* 移动端保持两列网格（用户要求）：不再降为单列 */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-tabs { gap: 6px; }
  .cat-item { padding: 7px 13px; font-size: 13.5px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 38px 20px; }
  .doc-block { padding: 20px 16px; }
  .spec th { width: 110px; }
}

/* ============================================================
   自适应补丁：防溢出、触控优化、长内容处理
   ============================================================ */

/* 全局防横向溢出
   注意：不能在 html/body 上设 overflow-x:hidden —— 会让 body 成为滚动容器，
   导致 position:fixed（水印、返回顶部）与 sticky（导航）在移动端失效。
   改为让内容自身不超出：图片/表格/代码块限制最大宽度。 */
html, body { max-width: 100%; }
img, svg, video, iframe { max-width: 100%; height: auto; }
pre, code { max-width: 100%; overflow-x: auto; word-break: break-word; }
table { max-width: 100%; }
.long-text { overflow-wrap: anywhere; word-break: break-word; }

/* 表格 / 代码块 在小屏可横向滚动 */
.doc-block pre, .doc-block table,
.spec, .file-tree, .code-block {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
}

/* 触控友好的最小点击区 */
.btn, .nav a, .tab-item, .menu-toggle, .to-top { touch-action: manipulation; }

@media (max-width: 900px) {
  .container, .wrap, .section-inner { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 28px; line-height: 1.35; }
  .hero p { font-size: 15px; }
  .section-title { font-size: 22px; }
  .card, .product-card { padding: 16px; }
  .steps { gap: 14px; }
  .to-top { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container, .wrap, .section-inner { padding-left: 14px; padding-right: 14px; }
  .hero { padding: 34px 0 28px; }
  .hero h1 { font-size: 23px; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* 表单输入 16px，防止 iOS 聚焦缩放 */
  input, select, textarea { font-size: 16px !important; }

  .btn { padding: 11px 16px; font-size: 14px; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }

  .price-card, .pay-box { padding: 15px; }
  /* .side-card 是布局容器，不能加 padding，否则右侧卡片会比左侧窄 */
  .side-card { padding: 0; }
  .spec th { width: 96px; font-size: 13px; }
  .spec td, .spec th { padding: 9px 8px; font-size: 13px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .link-row a { font-size: 12.5px; padding: 4px 10px; }

  /* 预览图切换按钮 */
  .preview-tabs { flex-wrap: wrap; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 20px; }
  .stat-num { font-size: 22px; }
}

/* ============================================================
   导航栏自适应优化（v2.4.2）
   目标：窄屏不再挤压变形，元素按优先级依次精简
   ============================================================ */

/* --- 基础：允许 flex 子项收缩，文字可省略 --- */
.header-inner { min-width: 0; gap: 14px; }
/* 左右分布：品牌独占左侧，导航与操作区整体靠右 */
.brand { flex: 0 1 auto; min-width: 0; margin-right: auto; }
.brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.brand-text > .brand-name,
.brand-text > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { flex: none; }
.header-actions { flex: none; }

/* --- 移动端下拉菜单美化 --- */
.mobile-nav {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(15, 25, 45, .08);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-nav a { font-size: 15px; font-weight: 600; }
/* 移动端菜单内的购买按钮：保留蓝色胶囊 + 文字 */
.mobile-nav .mobile-buy {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-weight: 700; font-size: 15px;
}
.mobile-nav .mobile-buy .icon { width: 18px; height: 18px; }
.mobile-nav a .icon-s { width: 16px; height: 16px; opacity: .5; }

/* --- 1024：导航稍收紧，仍完整显示 --- */
@media (max-width: 1024px) {
  .header-inner { gap: 10px; }
  .nav a { padding: 7px 10px; font-size: 14px; }
  .brand { font-size: 16px; gap: 9px; }
  .header-actions { gap: 7px; }
}

/* --- 900：隐藏英文 slogan，给品牌名让位 --- */
@media (max-width: 900px) {
  .brand-text > small { display: none; }
  .brand { font-size: 16px; }
}

/* --- 860：隐藏横向导航，切到汉堡菜单 --- */
@media (max-width: 860px) {
  .header-inner { gap: 8px; }
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .header-actions { gap: 6px; }
}

/* --- 640：整体缩小，按钮更紧凑 --- */
@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .header-inner { gap: 8px; }
  .brand { font-size: 15.5px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-mark .icon { width: 17px; height: 17px; }
  .brand-logo { height: 28px; }
  .icon-btn { width: 36px; height: 36px; border-radius: 9px; }
  .header-actions .btn { padding: 8px 12px; font-size: 13.5px; gap: 5px; }
  .header-actions .btn .icon { width: 15px; height: 15px; }
  .mobile-nav { padding: 8px 16px 24px; }
  .mobile-nav a { padding: 13px 4px; font-size: 14.5px; }
}

/* --- 420：品牌文字保留（缩小显示），购买按钮保留文字+图标 --- */
@media (max-width: 420px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 5px; }
  /* 品牌名始终显示，只缩小字号 */
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .brand-mark .icon { width: 16px; height: 16px; }
  .brand-logo { height: 26px; }
  /* 购买按钮保持文字 + 购物车图标，不折叠成纯图标 */
  .header-actions .btn-primary { font-size: 13px; padding: 8px 10px; gap: 4px; }
  .header-actions .btn-primary .icon { width: 15px; height: 15px; }
  /* 主题切换按钮略收，给购买按钮留空间 */
  .icon-btn { width: 34px; height: 34px; }
}

/* --- 窄屏：确保操作区三个按钮始终吸右 ---
   只保留 .brand 的 margin-right:auto（单一 auto 会把右侧整组推到最右边），
   不要同时给 .header-actions 加 margin-left:auto，两个 auto 会平分空间导致居中。 */
@media (max-width: 860px) {
  .brand { margin-right: auto; }
}

/* ============================================================
   部署教程文档页自适应（v2.5.0）
   问题：规格表被挤出容器、代码块溢出、侧边目录与正文抢空间
   ============================================================ */

/* --- 规格表：包一层可横向滚动，单元格允许换行 --- */
.spec-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid var(--border);
}
.spec { min-width: 520px; }
.spec th, .spec td { word-break: break-word; }

/* --- 代码块：横向滚动 + 自动换行兜底 --- */
.code, .doc-block pre, .doc-block .code-block {
  max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.code pre, .doc-block pre code { white-space: pre; }

/* --- 文档正文内长串（路径 / 命令）不撑破容器 --- */
.doc-block p, .doc-block li, .doc-block td { overflow-wrap: anywhere; }
.doc-block ol, .doc-block ul { padding-left: 20px; }
.doc-block img { max-width: 100%; height: auto; border-radius: 8px; }

/* --- 侧边目录在中等屏变成横向滚动条 --- */
@media (max-width: 1040px) {
  .docs-layout { grid-template-columns: 1fr; gap: 20px; }
  .docs-side { position: static; }
  .docs-nav {
    display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; border-bottom: 1px solid var(--border);
  }
  .docs-nav h4 { display: none; }
  .docs-nav a { flex: none; white-space: nowrap; padding: 8px 14px; border-radius: 999px;
    background: var(--surface-2); border: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .doc-block { padding: 16px 14px; border-radius: 12px; }
  .doc-block h2 { font-size: 17.5px; gap: 8px; }
  .doc-block h3 { font-size: 15px; margin: 16px 0 6px; }
  .doc-block p, .doc-block ol { font-size: 14px; }
  .doc-block ol { padding-left: 18px; }

  /* 规格表：标签在上、内容在下，行铺满到边、横线分隔（不再留左右缩进） */
  .spec-wrap { overflow: visible; border: none; border-radius: 0; width: 100%; }
  .spec { min-width: 0; display: block; font-size: 13.5px; width: 100%; }
  .spec thead { display: none; }
  .spec tr {
    display: block; margin: 0 0 10px; padding: 11px 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  }
  .spec tr:last-child { margin-bottom: 0; }
  .spec th, .spec td { display: block; width: auto !important; padding: 3px 0; border: none; background: none; }
  .spec th { font-size: 12px; letter-spacing: .03em; }
  .spec td { color: var(--text); font-weight: 600; }

  /* 代码块字体调小，减少横向滚动 */
  .code pre, .doc-block pre { font-size: 12.5px; line-height: 1.65; }
  .code-head { font-size: 13px; flex-wrap: wrap; gap: 8px; }
  .page-head h1 { font-size: 22px; }
}

@media (max-width: 380px) {
  .doc-block { padding: 14px 12px; }
  .doc-block h2 { font-size: 16px; }
}

/* ============================================================
   模板中心页（v2.6.0）
   ============================================================ */

/* 分类筛选条：页面版，居中、更大点击区 */
.cat-tabs-page { justify-content: flex-start; margin-bottom: 16px; }
.cat-tabs-page .cat-item { padding: 9px 18px; font-size: 14.5px; }

/* 结果统计条 */
.result-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.result-bar .count-badge { font-size: 14px; color: var(--text-soft); }
.result-bar .count-badge b { color: var(--brand-600); font-weight: 800; }
[data-theme="dark"] .result-bar .count-badge b { color: var(--brand-200); }

/* 页面头部（面包屑 + 标题） */
.page-head { padding: 30px 0 10px; }
.page-head h1 { font-size: 28px; margin: 12px 0 8px; }
.page-head p { color: var(--text-mute); font-size: 15px; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-mute); flex-wrap: wrap; }
.crumb a { color: var(--text-mute); }
.crumb a:hover { color: var(--brand-600); }
.crumb .icon-s { width: 14px; height: 14px; opacity: .5; }

@media (max-width: 900px) {
  .page-head { padding: 22px 0 6px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 14px; }
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 20px; }
  .cat-tabs-page { gap: 7px; }
  .cat-tabs-page .cat-item { padding: 8px 14px; font-size: 13.5px; }
  .result-bar { padding: 10px 0 16px; margin-bottom: 18px; }
}

/* ============================================================
   分类网格卡片 + 整卡点击 + 详情预览（v2.7.0）
   ============================================================ */

/* ---------- 分类网格：两列卡片 ---------- */
.cat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 26px;
}
.cat-card {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); cursor: pointer; overflow: hidden;
  box-shadow: 0 1px 3px rgba(20, 40, 80, .05);
}
.cat-card:hover { border-color: var(--brand-200, var(--brand-200)); background: var(--brand-50, #eff6ff); }
.cat-card.active {
  border-color: var(--brand-600); background: var(--brand-50, #eff6ff);
  box-shadow: 0 4px 14px rgba(var(--p-rgb), .14);
}
.cat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
}
.cat-icon .icon { width: 21px; height: 21px; }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cat-body b { font-size: 15.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-body small { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }
.cat-arrow { width: 18px; height: 18px; flex: none; color: var(--text-mute); opacity: .5; }
.cat-card.active .cat-arrow { color: var(--brand-600); opacity: 1; }
[data-theme="dark"] .cat-card { background: var(--surface); }
[data-theme="dark"] .cat-body b { color: var(--text); }

@media (max-width: 640px) {
  .cat-grid { gap: 10px; }
  .cat-card { padding: 13px 14px; gap: 10px; border-radius: 12px; }
  .cat-icon { width: 38px; height: 38px; border-radius: 10px; }
  .cat-icon .icon { width: 19px; height: 19px; }
  .cat-body b { font-size: 14.5px; }
  .cat-body small { font-size: 12px; }
}


/* ---------- 商品整卡可点击（覆盖式链接，避免嵌套 a） ---------- */
.product-card { position: relative; cursor: pointer; }
.card-link { position: absolute; inset: 0; z-index: 1; display: block; }
.product-card .product-cover,
.product-card h3,
.product-card .sub,
.product-card .price,
.product-card .feat-list { position: relative; z-index: 0; }
/* 底部按钮浮在覆盖层之上，可单独点击 */
.product-card .card-foot,
.product-card .card-meta { position: relative; z-index: 2; }
.product-card:hover { border-color: var(--brand-200, var(--brand-200)); }

/* ---------- 详情页预览图切换 ---------- */
.preview-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; align-items: center;}
.preview-tab {
  padding: 7px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--text-soft); background: var(--surface-2);
  border: 1px solid var(--border); cursor: pointer;
}
.preview-tab:hover { color: var(--brand-600); border-color: var(--brand-200, var(--brand-200)); }
.preview-tab.active { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* 主图铺满：容器固定比例，图片 object-fit:cover 填满，不留背景空白 */
.preview-stage {
  position: relative; width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}
/* 不支持 aspect-ratio 的老浏览器兜底：用 padding 撑出比例 */
@supports not (aspect-ratio: 16 / 10) {
  .preview-stage { height: 0; padding-bottom: 62.5%; }
}
.preview-pane { display: none; }
.preview-pane.active { display: block; height: 100%; }
.preview-pane img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;
  background: var(--surface-2);
}

@media (max-width: 640px) {
  .preview-tabs { gap: 6px; }
  .preview-tab { padding: 6px 12px; font-size: 13px; }
}

/* ============================================================
   v2.8.0：首页重设计 / 编号搜索 / 加密说明 / 手机分类两列
   ============================================================ */

/* ---------- 首页 Hero 新版 ---------- */
.hero-v2 { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(var(--p-rgb), .16), transparent 60%),
    radial-gradient(700px 320px at 88% 8%, rgba(var(--p-accent-rgb), .13), transparent 62%);
}
.hero-v2 .hero-inner { position: relative; z-index: 1; }
.hero-v2 h1 { font-size: 40px; line-height: 1.28; letter-spacing: -.02em; }
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(900px 380px at 15% -10%, rgba(var(--p-light-rgb), .22), transparent 60%),
    radial-gradient(700px 320px at 88% 8%, rgba(var(--p-accent-rgb), .16), transparent 62%);
}

/* ---------- 编号搜索 ---------- */
.code-search {
  display: flex; align-items: center; gap: 8px; margin: 24px 0 0;
  max-width: 480px; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(20, 40, 80, .07);
}
.code-search .icon { width: 19px; height: 19px; margin-left: 8px; color: var(--text-mute); flex: none; }
.code-search input {
  flex: 1; min-width: 0; border: none; background: none; padding: 9px 4px;
  font-size: 15px; color: var(--text); outline: none;
}
.code-search button {
  flex: none; padding: 9px 18px; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-weight: 700; font-size: 14.5px;
}
.code-result {
  max-width: 480px; margin-top: 10px; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
}
.code-head { padding: 10px 14px; font-size: 13px; color: var(--text-mute); background: var(--surface-2); }
.code-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-top: 1px solid var(--border); font-size: 14px;
}
.code-item:hover { background: var(--brand-50, #eff6ff); }
.code-tag {
  flex: none; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 800;
  background: var(--brand-soft, #eff6ff); color: var(--brand-600); font-family: Consolas, monospace;
}
.code-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.code-price { flex: none; font-weight: 800; color: var(--price-solid); }
[data-theme="dark"] .code-price { color: var(--price-solid-dark); }
.code-loading, .code-empty { padding: 14px; font-size: 13.5px; color: var(--text-mute); }

/* ---------- 编号角标 ---------- */
.code-badge {
  display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  font-family: Consolas, Menlo, monospace;
  background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border);
}

/* ---------- 加密说明条 ---------- */
.enc-notice {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--brand-50, #eff6ff); border: 1px solid var(--brand-200, var(--brand-200));
}
.enc-notice > .icon { width: 20px; height: 20px; flex: none; color: var(--brand-600); margin-top: 2px; }
.enc-notice b { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text); }
.enc-notice p { font-size: 13px; color: var(--text-soft); line-height: 1.75; }
[data-theme="dark"] .enc-notice { background: rgba(var(--p-rgb), .1); }
[data-theme="dark"] .enc-notice > .icon { color: var(--brand-200); }

/* 详情页加密说明 */
.enc-text { margin-top: 10px; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.enc-text.ok { background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid #bbf7d0; }
.enc-text.warn { background: rgba(245, 158, 11, .12); color: #b45309; border: 1px solid #fde68a; }
[data-theme="dark"] .enc-text.ok { background: rgba(22, 163, 74, .16); color: #86efac; }
[data-theme="dark"] .enc-text.warn { background: rgba(245, 158, 11, .16); color: #fcd34d; }

/* ---------- 下单结果高亮 ---------- */
.result-row code.hl {
  background: var(--brand-50, #eff6ff); color: var(--brand-700);
  font-weight: 800; user-select: all; word-break: break-all;
}
.result-tip {
  margin-top: 12px; padding: 10px 13px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  background: rgba(22, 163, 74, .1); color: #15803d;
}
[data-theme="dark"] .result-tip { background: rgba(22, 163, 74, .16); color: #86efac; }

/* 后台编号样式 */
.p-code {
  display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 5px;
  font-size: 11.5px; font-weight: 800; background: var(--brand-soft); color: var(--brand);
  font-family: Consolas, Menlo, monospace;
}

/* ---------- 手机端分类保持两列网格 ---------- */
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 13px 14px; gap: 10px; border-radius: 12px; }
  .cat-icon { width: 38px; height: 38px; border-radius: 10px; }
  .cat-icon .icon { width: 19px; height: 19px; }
  .cat-body b { font-size: 14.5px; }
  .cat-body small { font-size: 12px; }
  .cat-arrow { display: none; }

  .hero-v2 { padding: 42px 0 38px; }
  .hero-v2 h1 { font-size: 27px; }
  .code-search { max-width: 100%; }
  .code-result { max-width: 100%; }
  .enc-notice { padding: 12px 13px; gap: 10px; }
  .enc-notice p { font-size: 12.5px; }
}
@media (max-width: 380px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-card { padding: 11px 12px; gap: 8px; }
  .cat-icon { width: 34px; height: 34px; }
  .cat-icon .icon { width: 17px; height: 17px; }
  .cat-body b { font-size: 13.5px; }
  .cat-body small { font-size: 11.5px; }
  .hero-v2 h1 { font-size: 23px; }
}

/* ============================================================
   模板详情页重做（v2.9.0）
   大图预览 + 演示/购买 + 编号/分类 + 介绍
   ============================================================ */

/* 只设上下内边距，左右交给 .container，避免简写覆盖掉左右留白 */
.pd-wrap { padding-top: 18px; padding-bottom: 10px; }
/* 面包屑：窄屏允许换行，不溢出 */
.pd-wrap .crumb { flex-wrap: wrap; row-gap: 3px; }
.pd-wrap .crumb > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- 主区：左图右信息 ---------- */
.pd-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; }
/* grid 子项必须允许收缩，否则长内容会把布局撑变形 */
.pd-main > *,
.pd-detail > * { min-width: 0; }
.pd-gallery, .pd-info, .pd-col { min-width: 0; max-width: 100%; }
.pd-stage img, .pd-thumb img { max-width: 100%; }

/* --- 图片区 --- */
.pd-gallery { position: relative; }
.pd-stage {
  position: relative; width: 100%; aspect-ratio: auto; border-radius: 14px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.pd-shot { display: none; width: 100%; height: 100%; }
.pd-shot.active { display: block; }
.pd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-nopic {
  width: 100%; height: 100%; display: grid; place-items: center; gap: 12px; align-content: center;
  color: var(--text-mute);
  background:
    linear-gradient(135deg, var(--brand-50, #eff6ff) 0%, var(--surface-2) 100%);
}
.pd-nopic .icon {
  width: 46px; height: 46px; opacity: .35; color: var(--brand-600);
}
.pd-nopic span { font-size: 13.5px; font-weight: 600; letter-spacing: .02em; }
[data-theme="dark"] .pd-nopic .icon { color: var(--brand-200); }

/* 左右切换 */
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15, 25, 45, .42); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(4px);
}
.pd-nav:hover { background: rgba(15, 25, 45, .62); }
.pd-nav.prev { left: 10px; }
.pd-nav.next { right: 10px; }
.pd-nav .icon { width: 18px; height: 18px; }

/* 圆点 */
.pd-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; align-items: center;}
.pd-dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); cursor: pointer;
}
.pd-dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* 缩略图 */
.pd-thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  flex: 1; min-width: 84px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--surface-2); position: relative;
}
.pd-thumb.active { border-color: var(--brand-600); }
.pd-thumb img { width: 100%; height: 62px; object-fit: cover; display: block; }
.pd-thumb span {
  display: block; padding: 4px; font-size: 11.5px; font-weight: 700; color: var(--text-mute);
  text-align: center; background: var(--surface);
}
.pd-thumb.active span { color: var(--brand-600); }

/* --- 信息区 --- */
.pd-info { position: relative; min-width: 0; }
.pd-info, .pd-content, .pd-get li { overflow-wrap: anywhere; word-break: break-word; }
.pd-sub { overflow-wrap: anywhere; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; align-items: center;}
.pd-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-soft);
}
.pd-badge .icon-s { width: 13px; height: 13px; }
.pd-badge.code { background: var(--brand-soft, #eff6ff); color: var(--brand-700); border-color: var(--brand-200, var(--brand-200)); font-family: Consolas, monospace; }
.pd-badge.cat { background: var(--surface-2); }
.pd-badge.green { background: rgba(22, 163, 74, .1); color: #15803d; border-color: #bbf7d0; }
.pd-badge.orange { background: rgba(245, 158, 11, .12); color: #b45309; border-color: #fde68a; }
[data-theme="dark"] .pd-badge.green { background: rgba(22, 163, 74, .18); color: #86efac; }
[data-theme="dark"] .pd-badge.orange { background: rgba(245, 158, 11, .18); color: #fcd34d; }

.pd-title { font-size: 26px; line-height: 1.35; margin-bottom: 8px; }
.pd-sub { font-size: 14.5px; color: var(--text-mute); line-height: 1.7; }

/* 价格 */
.pd-price-box {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 18px 0 16px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  border: 1px solid var(--brand-200, var(--brand-200));
}
.pd-price { display: flex; align-items: baseline; gap: 4px; }
.pd-price small { font-size: 15px; color: var(--price-solid); font-weight: 700; }
.pd-price b { font-size: 34px; color: var(--price-solid); letter-spacing: -.03em; font-weight: 800; }
.pd-price b.face { font-size: 26px; }
.pd-price s { font-size: 13.5px; color: var(--text-mute); margin-left: 6px; }
.pd-off {
  margin-left: 8px; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 800;
  background: #dc2626; color: #fff;
}
[data-theme="dark"] .pd-price b, [data-theme="dark"] .pd-price small { color: var(--price-solid-dark); }
.pd-sales { display: flex; gap: 14px; font-size: 13px; color: var(--text-mute); align-items: center;}
.pd-sales span { display: inline-flex; align-items: center; gap: 4px; }
.pd-sales .icon-s { width: 14px; height: 14px; }

/* 加密说明块 */
.pd-enc {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px;
  border-radius: 11px; margin-bottom: 16px;
}
.pd-enc .icon { width: 19px; height: 19px; flex: none; margin-top: 2px; }
.pd-enc b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.pd-enc span { font-size: 12.8px; line-height: 1.6; opacity: .92; }
.pd-enc.ok { background: rgba(22, 163, 74, .1); color: #15803d; border: 1px solid #bbf7d0; }
.pd-enc.warn { background: rgba(245, 158, 11, .12); color: #b45309; border: 1px solid #fde68a; }
[data-theme="dark"] .pd-enc.ok { background: rgba(22, 163, 74, .16); color: #86efac; }
[data-theme="dark"] .pd-enc.warn { background: rgba(245, 158, 11, .16); color: #fcd34d; }

/* 操作按钮 */
.pd-actions { display: flex; gap: 10px; margin-bottom: 12px; align-items: center;}
.pd-actions .btn { flex: 1; justify-content: center; }
.pd-demo-tip {
  display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px;
  color: var(--text-mute); margin-bottom: 16px; line-height: 1.6;
}
.pd-demo-tip .icon-s { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* 交付清单 */
.pd-get { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.pd-get > b { display: block; font-size: 14px; margin-bottom: 10px; }
.pd-get ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.pd-get li { min-width: 0; }
.pd-get li span { min-width: 0; }
.pd-get li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); }
.pd-get .icon { width: 15px; height: 15px; color: #16a34a; flex: none; }

.pd-note {
  display: flex; align-items: flex-start; gap: 7px; margin-top: 14px;
  padding: 10px 13px; border-radius: 10px; font-size: 12.8px;
  background: rgba(245, 158, 11, .1); color: #b45309; line-height: 1.6;
}
.pd-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
[data-theme="dark"] .pd-note { background: rgba(245, 158, 11, .16); color: #fcd34d; }

.pd-contact {
  display: flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 13.5px; color: var(--text-soft);
}
.pd-contact .icon { width: 16px; height: 16px; color: var(--brand-600); }

/* ---------- 下方介绍区 ---------- */
.pd-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.pd-content { font-size: 14.8px; line-height: 1.95; color: var(--text-soft); }
.pd-code-inline {
  padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 800;
  background: var(--brand-soft, #eff6ff); color: var(--brand-700);
  font-family: Consolas, monospace;
}

/* 相关模板缩略图 */
.rel-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rel-item:last-child { border-bottom: none; }
.rel-thumb { width: 46px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; background: var(--surface-2); }
.rel-thumb.ph { display: grid; place-items: center; }
.rel-thumb.ph .icon { width: 17px; height: 17px; color: var(--text-mute); opacity: .5; }
.rel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.rel-body b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-body small { font-size: 11.5px; color: var(--text-mute); font-family: Consolas, monospace; }
.rel-price { flex: none; font-size: 14px; font-weight: 800; color: var(--price-solid); }
[data-theme="dark"] .rel-price { color: var(--price-solid-dark); }

/* ---------- 响应式 ---------- */
/* ---------- 详情页响应式：逐级降级，避免挤压变形 ---------- */

/* 大屏微调：给信息区更多空间 */
@media (max-width: 1200px) {
  .pd-main { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pd-detail { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pd-title { font-size: 24px; }
  .pd-price b { font-size: 31px; }
}

/* 平板：切换单列，图片在上、信息在下 */
@media (max-width: 980px) {
  .pd-main { grid-template-columns: 1fr; gap: 18px; }
  .pd-detail { grid-template-columns: 1fr; gap: 18px; }
  .pd-stage { aspect-ratio: auto; }
  .pd-title { font-size: 23px; }
  .pd-price-box { padding: 13px 15px; }
}

/* 小平板 / 大手机：图片比例调整为 4:3，避免过高 */
@media (max-width: 768px) {
  .pd-wrap { padding-top: 14px; padding-bottom: 8px; }
  .pd-main { gap: 16px; }
  .pd-stage { aspect-ratio: auto; border-radius: 12px; }
  .pd-title { font-size: 21px; }
  .pd-sub { font-size: 14px; }
  .pd-price b { font-size: 29px; }
  .pd-price small { font-size: 14px; }
  .pd-get ul { grid-template-columns: repeat(2, 1fr); }
  .pd-thumb { min-width: 78px; }
  .pd-thumb img { height: 58px; }
  .pd-detail { margin-top: 22px; }
}

/* 手机 */
@media (max-width: 640px) {
  .pd-wrap { padding-top: 12px; padding-bottom: 6px; }
  .pd-stage { aspect-ratio: auto; border-radius: 12px; }
  .pd-title { font-size: 20px; line-height: 1.4; }
  .pd-sub { font-size: 13.5px; }
  .pd-badges { gap: 6px; margin-bottom: 10px; }
  .pd-badge { padding: 4px 10px; font-size: 12.2px; }
  .pd-price-box { padding: 12px 14px; margin: 13px 0 12px; gap: 10px; }
  .pd-price b { font-size: 27px; }
  .pd-price b.face { font-size: 22px; }
  .pd-sales { font-size: 12.5px; gap: 10px; }
  .pd-enc { padding: 11px 12px; }
  .pd-enc span { font-size: 12.4px; }
  .pd-actions { gap: 8px; margin-bottom: 10px; }
  .pd-actions .btn { padding: 11px 14px; font-size: 14.5px; }
  .pd-actions .btn .icon { width: 17px; height: 17px; }
  .pd-get { padding: 12px 14px; }
  .pd-get ul { grid-template-columns: 1fr; gap: 7px; }
  .pd-thumbs { gap: 8px; }
  .pd-thumb { min-width: 70px; }
  .pd-thumb img { height: 52px; }
  .pd-thumb span { font-size: 11px; padding: 3px; }
  .pd-nav { width: 30px; height: 30px; }
  .pd-nav .icon { width: 16px; height: 16px; }
  .pd-content { font-size: 14px; line-height: 1.85; }
  .rel-item { gap: 8px; }
  .rel-thumb { width: 42px; height: 31px; }
}

/* 窄屏手机 */
@media (max-width: 400px) {
  .pd-stage { aspect-ratio: auto; }
  .pd-title { font-size: 18.5px; }
  .pd-price b { font-size: 25px; }
  .pd-price-box { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pd-sales { gap: 12px; }
  .pd-badge { padding: 3px 9px; font-size: 11.8px; }
  .pd-actions { flex-direction: column; }
  .pd-actions .btn { width: 100%; }
  .pd-thumbs { gap: 6px; }
  .pd-thumb { min-width: 62px; }
  .pd-thumb img { height: 46px; }
  .pd-get ul { gap: 6px; }
  .pd-note { font-size: 12.2px; padding: 9px 11px; }
}

/* 详情页规格表：窄屏改卡片式，避免横向挤压 */
@media (max-width: 560px) {
  .pd-detail .spec-wrap { overflow: visible; border: none; border-radius: 0; width: 100%; }
  .pd-detail .spec { min-width: 0; display: block; font-size: 13.5px; width: 100%; }
  .pd-detail .spec tr {
    display: block; margin: 0 0 10px; padding: 11px 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  }
  .pd-detail .spec tr:last-child { margin-bottom: 0; }
  .pd-detail .spec th, .pd-detail .spec td {
    display: block; width: auto !important; padding: 2px 0; border: none; background: none;
  }
  .pd-detail .spec th { font-size: 11.8px; }
  .pd-detail .spec td { font-weight: 600; word-break: break-all; }
}

/* 超窄屏 */
@media (max-width: 340px) {
  .pd-title { font-size: 17.5px; }
  .pd-price b { font-size: 23px; }
  .pd-badge { font-size: 11.5px; padding: 3px 8px; }
  .pd-thumb { min-width: 56px; }
}

/* ============================================================
   v2.9.3 布局加固：消除 flex 纵向拉伸变形与溢出
   根因：display:flex 默认 align-items:stretch，子项被拉高成椭圆
   ============================================================ */

/* ---------- 1. 所有图标+文字 / 标签 / 按钮行：改为居中，不再拉伸 ---------- */
.hero-actions, .hero-tags, .tags-row,
.card-foot, .card-meta, .cta-actions,
.feat-item, .mini-list li, .feat-list li,
.rel-item, .note, .policy, .info-row, .result-row, .link-row,
.cat-tabs, .docs-nav, .preview-tabs,
.pd-badges, .pd-sales, .pd-actions, .pd-thumbs, .pd-dots {
  align-items: center;
}

/* ---------- 2. 徽标：禁止拉伸、禁止换行、统一视觉 ---------- */
.pd-badge {
  flex: none;
  align-self: center;
  white-space: nowrap;
  line-height: 1.45;
  max-width: 100%;
  /* 改为圆角标签，避免被拉高后变成椭圆 */
  border-radius: 8px;
}
.pd-badge .icon-s { flex: none; }
.pd-badges { row-gap: 7px; }

/* 其他标签类元素同步，短内容不再被撑成椭圆 */
.tag, .eyebrow, .cat-chip, .code-badge {
  align-self: center;
  white-space: nowrap;
  max-width: 100%;
}

/* ---------- 3. 全局防溢出安全网 ---------- */
.pd-info, .pd-gallery, .pd-col, .pd-main > *, .pd-detail > * { min-width: 0; max-width: 100%; }
.pd-title, .pd-sub, .pd-content, .pd-enc span, .pd-get li span,
.pd-note span, .pd-demo-tip span, .pd-contact { overflow-wrap: anywhere; word-break: break-word; }
.pd-stage img, .pd-thumb img, .pd-shot img { max-width: 100%; height: auto; display: block; }

/* 详情规格表：任何宽度下都不横向撑破 */
.pd-detail .spec-wrap { max-width: 100%; }
@media (max-width: 700px) {
  .pd-detail .spec-wrap { overflow: visible; border: none; border-radius: 0; }
  .pd-detail .spec { min-width: 0; display: block; font-size: 13.5px; }
  .pd-detail .spec tr {
    display: block; margin: 0 0 10px; padding: 11px 14px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  }
  .pd-detail .spec tr:last-child { margin-bottom: 0; }
  .pd-detail .spec th, .pd-detail .spec td {
    display: block; width: auto !important; padding: 2px 0; border: none; background: none;
  }
  .pd-detail .spec th { font-size: 11.8px; }
  .pd-detail .spec td { font-weight: 600; word-break: break-all; }
}

/* ---------- 4. 窄屏兜底：任何元素不得超出视口 ---------- */
@media (max-width: 640px) {
  .pd-badges { gap: 6px; row-gap: 6px; }
  .pd-sales { flex-wrap: wrap; row-gap: 5px; }
  .pd-actions { align-items: stretch; }
  .pd-thumbs { gap: 8px; }
  .pd-thumb { flex: 1 1 70px; }
}
@media (max-width: 400px) {
  .pd-badge { padding: 3px 8px; font-size: 11.5px; gap: 4px; }
  .pd-badge .icon-s { width: 12px; height: 12px; }
  .pd-thumb { flex: 1 1 62px; }
}

/* ============================================================
   v2.11.0 选商品页 / 下单流程 / 订单查询
   ============================================================ */

/* ---------- 边距统一：只用上下，左右交给 .container ---------- */
/* v2.39.0：确认订单页顶部紧贴导航栏，去掉多余留白
   （底部由 .nx-has-footbar 的 84px 负责避开固定结算栏，这里不再叠加） */
.sl-wrap, .od-wrap { padding-top: 18px; padding-bottom: 10px; }
.by-wrap { padding-top: 0; padding-bottom: 0; }

/* ---------- 下单步骤条 ---------- */
.sl-steps {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin: 4px 0 24px;
}
.sl-step { display: flex; align-items: center; gap: 8px; }
.sl-step-no {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  background: var(--surface-2); color: var(--text-mute); border: 1px solid var(--border);
}
.sl-step b { font-size: 14px; font-weight: 700; color: var(--text-mute); }
.sl-step.active .sl-step-no {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; border-color: transparent;
}
.sl-step.active b { color: var(--brand-600); }
.sl-step.done .sl-step-no { background: #16a34a; color: #fff; border-color: transparent; }
.sl-step.done b { color: #16a34a; }
.sl-step-line { width: 40px; height: 2px; background: var(--border); flex: none; }
[data-theme="dark"] .sl-step.active b { color: var(--brand-200); }

/* ---------- 选商品页网格 ---------- */
.sl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sl-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.sl-cover {
  position: relative; width: 100%; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.sl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sl-card.sold { opacity: .72; }
.sl-sold {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(15, 25, 45, .5); color: #fff; font-weight: 800; font-size: 15px;
}
.sl-body { padding: 16px 18px; flex: 1; }
.sl-title { display: block; font-size: 16.5px; font-weight: 800; }
.sl-sub { font-size: 13.5px; color: var(--text-mute); margin-top: 6px; line-height: 1.6; }
.sl-price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.sl-price b { font-size: 27px; color: var(--price-solid); font-weight: 800; }
.sl-price small { font-size: 14px; color: var(--price-solid); font-weight: 700; }
.sl-price s { font-size: 13px; color: var(--text-mute); margin-left: 6px; }
[data-theme="dark"] .sl-price b, [data-theme="dark"] .sl-price small { color: var(--price-solid-dark); }
.sl-foot { display: flex; gap: 10px; padding: 14px 18px 18px; align-items: center; }
.sl-foot .btn { flex: 1; justify-content: center; }

.sl-tip {
  display: flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 12px 16px; border-radius: 12px; font-size: 13.5px;
  background: var(--surface-2); color: var(--text-soft);
}
.sl-tip .icon { width: 17px; height: 17px; flex: none; color: var(--brand-600); }

/* ---------- 下单页 ---------- */
.choose-item.disabled { opacity: .6; }
.choose-item.disabled input { pointer-events: none; }
.choose-code {
  margin-left: 7px; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 800;
  background: var(--surface-2); color: var(--text-mute); font-family: Consolas, monospace;
}
.choose-price em { display: block; font-style: normal; font-size: 12px; color: #dc2626; margin-top: 2px; }

.od-created {
  padding: 12px 14px; border-radius: 11px; margin-bottom: 14px;
  background: var(--brand-50, #eff6ff); border: 1px solid var(--brand-200, var(--brand-200));
}
.od-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.od-row span { color: var(--text-mute); flex: none; }
.od-row code {
  font-size: 13.5px; font-weight: 700; text-align: right; word-break: break-all;
  font-family: Consolas, Menlo, monospace;
}
.od-row code.hl { color: var(--brand-700); font-weight: 800; user-select: all; }
[data-theme="dark"] .od-row code.hl { color: var(--brand-200); }
.qr-title b { color: var(--brand-600); }
[data-theme="dark"] .qr-title b { color: var(--brand-200); }

.od-after { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center;}
.od-after .btn { flex: 1; justify-content: center; min-width: 130px; }

/* ---------- 订单查询页 ---------- */
.od-search { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.od-field { flex: 1; min-width: 180px; }
.od-field label { display: block; font-size: 13px; color: var(--text-mute); margin-bottom: 6px; }
.od-hint { font-size: 12.8px; color: var(--text-mute); margin-top: 10px; }
.od-result { margin-top: 18px; }
.od-card {
  padding: 14px 16px; border-radius: 12px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.od-card:last-child { margin-bottom: 0; }
.od-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--border);
}
.od-card-head b { font-size: 15px; }
.od-status { padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; flex: none; }
.od-status.ok { background: rgba(22, 163, 74, .12); color: #15803d; }
.od-status.wait { background: rgba(245, 158, 11, .14); color: #b45309; }
[data-theme="dark"] .od-status.ok { background: rgba(22, 163, 74, .2); color: #86efac; }
[data-theme="dark"] .od-status.wait { background: rgba(245, 158, 11, .2); color: #fcd34d; }
.od-help { margin-top: 18px; }
/* v2.39.0：订单详情页各卡片之间统一留白，避免上下两张卡贴在一起 */
.od-wrap .card + .card { margin-top: 18px; }
@media (max-width: 640px) { .od-wrap .card + .card { margin-top: 14px; } }

/* ---------- 下单页：两侧卡片左右内边距严格一致 ---------- */
.by-wrap .buy-layout > div > .card-pad,
.by-wrap .side-card .card-pad { padding-left: 24px; padding-right: 24px; }
.by-wrap .side-card .card { margin-left: 0; margin-right: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .sl-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .sl-body { padding: 13px 14px; }
  .sl-title { font-size: 15px; }
  .sl-price b { font-size: 24px; }
  .sl-foot { padding: 12px 14px 14px; gap: 8px; }
  .sl-foot .btn { padding: 9px 12px; font-size: 13.5px; }
}
@media (max-width: 640px) {
  .sl-wrap, .od-wrap { padding-top: 12px; padding-bottom: 6px; }
  .by-wrap { padding-top: 0; padding-bottom: 0; }
  .sl-steps { gap: 6px; margin-bottom: 18px; }
  .sl-step-no { width: 23px; height: 23px; font-size: 12px; }
  .sl-step b { font-size: 12.8px; }
  .sl-step-line { width: 22px; }
  .sl-grid { gap: 12px; }
  .sl-cover { aspect-ratio: auto; }
  .sl-sub { font-size: 12.8px; }
  .by-wrap .buy-layout > div > .card-pad,
  .by-wrap .side-card .card-pad { padding-left: 16px; padding-right: 16px; }
  .od-search { flex-direction: column; align-items: stretch; }
  .od-field { min-width: 0; }
  .od-search .btn { width: 100%; justify-content: center; }
  .od-row { font-size: 13.2px; }
  .od-row code { font-size: 12.8px; }
  .od-after .btn { min-width: 0; }
  /* 下单页：左列内部元素不溢出 */
  .buy-layout > * { min-width: 0; }
}
@media (max-width: 400px) {
  /* 移动端保持两列：不再降为单列 */
  .sl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sl-cover { aspect-ratio: auto; }
  .sl-foot { flex-direction: column; }
  .sl-foot .btn { width: 100%; }
  .sl-body { padding: 12px 12px; }
  .sl-title { font-size: 14px; }
  .sl-price b { font-size: 21px; }
}

/* ---------- 官方支付：动态付款码 ---------- */
.qr-dynamic { position: relative; display: inline-block; }
/* 官方接口不可用 → 回退静态收款码时展示的图片（v2.36.1） */
.qr-static-img {
  display: block; width: 220px; max-width: 100%; height: auto;
  border-radius: 10px; background: #fff;
}
.qr-dynamic canvas {
  display: block; width: 240px; height: 240px; max-width: 100%;
  border-radius: 10px; background: #fff;
}
.qr-mask {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .92); color: var(--text-soft);
  font-size: 13.5px; font-weight: 600; border-radius: 10px; text-align: center; padding: 12px;
}
.pay-status {
  margin-top: 10px; font-size: 13.5px; color: var(--text-mute); line-height: 1.7;
}
@media (max-width: 640px) {
  .qr-dynamic canvas { width: 200px; height: 200px; }
}

/* ============================================================
   v2.13.0 导航栏重做：三栏对称 + 新字 LOGO
   原实现用 margin-right:auto 推动，窄屏导航隐藏后会失去推力导致不对称。
   改为 grid 三栏（左品牌 / 中导航 / 右操作），任何宽度下都严格对称。
   ============================================================ */

/* ---------- 三栏骨架 ---------- */
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.header-inner > .brand { grid-column: 1; justify-self: start; min-width: 0; }
.header-inner > .nav { grid-column: 2; justify-self: center; min-width: 0; }
.header-inner > .header-actions { grid-column: 3; justify-self: end; }

/* ---------- 品牌：新字方块 LOGO ---------- */
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
  color: #fff; font-size: 19px; font-weight: 800; line-height: 1;
  letter-spacing: 0; font-family: inherit;
  box-shadow: 0 3px 10px rgba(var(--p-rgb), .28);
  user-select: none;
}
/* 旧的 svg 图标占位不再需要 */
.brand-mark .icon { display: none; }
.brand-logo { height: 34px; width: auto; border-radius: 8px; flex: none; }
.brand-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.brand-text > small { font-size: 10.5px; font-weight: 600; color: var(--text-mute); letter-spacing: .05em; }
.brand-text > .brand-name,
.brand-text > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 中间导航 ---------- */
.nav { display: flex; align-items: center; gap: 2px; min-width: 0; flex-wrap: nowrap; }
.nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 600;
  color: var(--text-soft); white-space: nowrap; transition: all .16s;
}
.nav a:hover { background: var(--bg-soft); color: var(--text); }

/* ---------- 右侧操作 ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-buy { white-space: nowrap; }

/* ---------- 逐级降级，避免挤压 ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 11px; font-size: 14px; }
  .brand-text > small { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  /* 导航隐藏后中栏空出，品牌与操作仍靠 grid 撑在两端 */
  .header-inner { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 640px) {
  .header-inner { height: 58px; gap: 10px; padding-left: 14px; padding-right: 14px; }
  .brand-mark { width: 32px; height: 32px; font-size: 17px; border-radius: 9px; }
  .brand-name { font-size: 15px; }
  .brand { gap: 9px; }
  .header-actions { gap: 6px; }
  .header-buy { padding: 8px 14px; font-size: 14px; }
  .header-buy .icon { width: 16px; height: 16px; }
}
@media (max-width: 400px) {
  .header-inner { height: 56px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .brand-name { font-size: 14.5px; }
  .header-buy { padding: 7px 12px; font-size: 13.5px; }
}
@media (max-width: 340px) {
  .brand-name { font-size: 13.5px; }
  .header-buy { padding: 7px 10px; font-size: 13px; }
}

/* ============================================================
   v2.13.0 首页模板 B + 支付通道 + 模板切换 + 主图固定
   ============================================================ */

/* ---------- 主图尺寸固定（所有列表/卡片统一） ---------- */
.product-cover, .hb-cover, .sl-cover {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid;
  place-items: center;
  flex: none;
}
.product-cover img, .hb-cover img, .sl-cover img {
  width: 100%; height: 100%;
  object-fit: cover;      /* 等比裁剪填满，绝不拉伸变形 */
  object-position: center;
  display: block;
}
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; align-content: center; }
.cover-ph .icon { width: 34px; height: 34px; opacity: .35; color: var(--brand-600); }
.cover-ph span { font-size: 12.5px; color: var(--text-mute); padding: 0 12px; text-align: center; }

/* ---------- Hero B ---------- */
.hb-hero { position: relative; overflow: hidden; padding: 64px 0 56px; }
.hb-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(var(--p-light-rgb),.30), transparent 60%),
    radial-gradient(700px 380px at 88% 4%, rgba(139,92,246,.24), transparent 62%),
    linear-gradient(160deg, #0f172a 0%, #16233d 58%, #1e3055 100%);
}
[data-theme="light"] .hb-hero-bg {
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(var(--p-rgb),.20), transparent 60%),
    radial-gradient(700px 380px at 88% 4%, rgba(139,92,246,.16), transparent 62%),
    linear-gradient(160deg, #eef4ff 0%, #f6f8ff 58%, #eaf1ff 100%);
}
[data-theme="dark"] .hb-hero-bg {
  background:
    radial-gradient(900px 420px at 12% 8%, rgba(var(--p-light-rgb),.26), transparent 60%),
    radial-gradient(700px 380px at 88% 4%, rgba(139,92,246,.20), transparent 62%),
    linear-gradient(160deg, #0b1120 0%, #111c33 58%, #17253f 100%);
}
/* Hero：单列居中（右侧概览面板已移除，不再需要双列） */
.hb-hero-inner {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
}
.hb-hero-text {
  width: 100%; max-width: 760px; text-align: center;
}
.hb-hero-text h1 { text-align: center; }
.hb-lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.hb-actions { justify-content: center; }
.hb-stats { justify-content: center; }
.hb-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; margin-bottom: 20px;
  background: rgba(255,255,255,.14); color: #dbeafe; border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px);
}
[data-theme="light"] .hb-eyebrow { background: rgba(var(--p-rgb),.10); color: var(--brand-700,var(--brand-700)); border-color: rgba(var(--p-rgb),.20); }
[data-theme="dark"] .hb-eyebrow { background: rgba(var(--p-soft-rgb),.16); color: var(--brand-200); border-color: rgba(var(--p-soft-rgb),.26); }
.hb-eyebrow .icon-s { width: 15px; height: 15px; }

.hb-hero-text h1 {
  font-size: clamp(30px, 4.6vw, 46px); line-height: 1.22; font-weight: 900;
  letter-spacing: -.02em; color: #fff; margin-bottom: 16px;
}
[data-theme="light"] .hb-hero-text h1 { color: #0f172a; }
[data-theme="dark"] .hb-hero-text h1 { color: #f1f5f9; }
.hb-grad {
  background: linear-gradient(100deg, var(--p-soft), #a78bfa 55%, var(--p-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hb-lead {
  font-size: 16px; line-height: 1.85; max-width: 560px; margin-bottom: 26px;
  color: rgba(255,255,255,.80);
}
[data-theme="light"] .hb-lead { color: var(--text-soft); }
[data-theme="dark"] .hb-lead { color: rgba(226,232,240,.82); }

.hb-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; align-items: center;}
.hb-stats { display: flex; gap: 30px; flex-wrap: wrap; align-items: center;}
.hb-stat { display: flex; flex-direction: column; gap: 3px; }
.hb-stat b { font-size: 27px; font-weight: 900; color: #fff; letter-spacing: -.02em; }
[data-theme="light"] .hb-stat b { color: #0f172a; }
[data-theme="dark"] .hb-stat b { color: #f1f5f9; }
.hb-stat span { font-size: 13px; color: rgba(255,255,255,.62); font-weight: 600; }
[data-theme="light"] .hb-stat span { color: var(--text-mute); }
[data-theme="dark"] .hb-stat span { color: rgba(148,163,184,.9); }


/* ---------- 精选区 ---------- */
.hb-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 26px;
}
.hb-head h2 { font-size: clamp(22px, 2.8vw, 30px); margin-top: 8px; }
.hb-more {
  display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700;
  color: var(--brand-600);
}
[data-theme="dark"] .hb-more { color: var(--brand-200); }
.hb-more .icon-s { width: 15px; height: 15px; }

/* 横向滑动轨道 */
.hb-track {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.hb-track::-webkit-scrollbar { height: 7px; }
.hb-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.hb-card {
  flex: 0 0 268px; scroll-snap-align: start; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hb-card:hover {
  transform: translateY(-4px); border-color: var(--brand-300, var(--p-soft-text));
  box-shadow: 0 14px 32px rgba(20,40,80,.14);
}
.hb-card-link { position: absolute; inset: 0; z-index: 2; }
.hb-code {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 800;
  background: rgba(15,25,45,.62); color: #fff; font-family: Consolas, monospace;
  backdrop-filter: blur(4px);
}
.hb-body { padding: 14px 16px; flex: 1; }
.hb-body h3 { font-size: 15.5px; font-weight: 800; line-height: 1.4; }
.hb-body p { font-size: 13px; color: var(--text-mute); margin-top: 6px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hb-price { margin-top: 12px; display: flex; align-items: baseline; gap: 4px; }
.hb-price b { font-size: 25px; font-weight: 900; color: var(--price-solid); }
[data-theme="dark"] .hb-price b { color: var(--price-solid-dark); }
.hb-price small { font-size: 13px; font-weight: 700; color: var(--price-solid); }
[data-theme="dark"] .hb-price small { color: var(--price-solid-dark); }
.hb-price s { font-size: 12.5px; color: var(--text-mute); margin-left: 5px; }
.hb-foot { display: flex; gap: 8px; padding: 12px 16px 16px; position: relative; z-index: 3; align-items: center;}
.hb-foot .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 13.5px; }

/* ---------- 服务承诺 ---------- */
.hb-promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hb-p-item {
  padding: 22px 18px; border-radius: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
}
.hb-p-icon {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700,var(--brand-700))); color: #fff;
}
.hb-p-icon .icon { width: 22px; height: 22px; }
.hb-p-item b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.hb-p-item p { font-size: 13.2px; color: var(--text-mute); line-height: 1.7; }

/* ---------- 底部 CTA ---------- */
.hb-cta {
  padding: 40px 34px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700,var(--brand-700)));
  color: #fff;
}
.hb-cta h2 { font-size: clamp(22px, 3vw, 30px); color: #fff; }
.hb-cta p { margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.86); line-height: 1.8; }
.hb-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; align-items: center;}
.hb-cta-actions .btn-primary { background: #fff; color: var(--brand-700,var(--brand-700)); }
.hb-cta-actions .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.hb-cta-actions .btn-outline:hover { background: rgba(255,255,255,.14); }
.hb-cta-wx {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 13.5px; color: rgba(255,255,255,.82);
}
.hb-cta-wx .icon-s { width: 15px; height: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hb-hero-inner { display: block; }
  .hb-hero-text { max-width: 100%; }
  .hb-promise { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hb-hero { padding: 42px 0 38px; }
  .hb-lead { font-size: 15px; margin-bottom: 22px; }
  .hb-stats { gap: 22px; margin-bottom: 4px; }
  .hb-stat b { font-size: 23px; }
  .product-cover, .hb-cover, .sl-cover { height: 170px; }
}
@media (max-width: 640px) {
  .hb-hero { padding: 32px 0 30px; }
  .hb-eyebrow { font-size: 12px; padding: 5px 12px; margin-bottom: 14px; }
  .hb-actions { gap: 9px; margin-bottom: 22px; }
  .hb-actions .btn { flex: 1; justify-content: center; min-width: 130px; }
  .hb-stats { gap: 18px; }
  .hb-stat b { font-size: 21px; }
  .hb-stat span { font-size: 12px; }
  .hb-card { flex: 0 0 232px; }
  .hb-track { gap: 14px; }
  .product-cover, .hb-cover, .sl-cover { height: 158px; }
  .hb-cta { padding: 28px 20px; border-radius: 14px; }
  .hb-cta-actions .btn { flex: 1; min-width: 130px; }
}
@media (max-width: 420px) {
  .hb-promise { grid-template-columns: 1fr; }
  .hb-card { flex: 0 0 76%; }
  .product-cover, .hb-cover, .sl-cover { height: 148px; }
}

/* ============================================================
   v2.13.1 移动端强制两列 + 模板B纵向列表
   ============================================================ */

/* ---------- 移动端所有商品/分类网格强制两列 ---------- */
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .product-card { padding: 14px 13px; }
  .product-card h3 { font-size: 14.5px; line-height: 1.4; }
  .product-card .sub { font-size: 12.2px; min-height: 0; }
  .product-card .price b { font-size: 22px; }
  .product-card .price small { font-size: 12px; }
  .product-card .price s { display: none; }
  .product-card .feat-list li { font-size: 12px; }
  .product-card .card-foot { flex-direction: column; gap: 7px; }
  .product-card .card-foot .btn { width: 100%; justify-content: center; padding: 8px 10px; font-size: 13px; }
  .product-card .card-meta { font-size: 11.5px; }

  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .sl-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .sl-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .product-card { padding: 12px 11px; }
  .product-card h3 { font-size: 13.5px; }
  .product-card .price b { font-size: 20px; }
  .cat-card { padding: 11px 12px; gap: 8px; }
  .cat-body b { font-size: 13.5px; }
  .sl-body { padding: 12px; }
  .sl-title { font-size: 14px; }
  .sl-price b { font-size: 21px; }
}
@media (max-width: 340px) {
  .product-grid, .cat-grid, .sl-grid {
    grid-template-columns: repeat(2, 1fr) !important; gap: 8px;
  }
  .product-card h3 { font-size: 13px; }
  .product-card .price b { font-size: 19px; }
}

/* ---------- 模板B：商品改为纵向单列列表（每行一个，最多 5 个） ---------- */
.hb-list { display: flex; flex-direction: column; gap: 14px; }
.hb-list .hb-card {
  flex: none; width: 100%;
  /* 必须显式声明 grid：原 .hb-card 是 flex column，不覆盖会导致图片仍在上方 */
  display: grid !important;
  grid-template-columns: 152px 1fr;
  align-items: stretch;
}
.hb-list .hb-cover { grid-column: 1; grid-row: 1 / 3; height: 100%; min-height: 108px; }
.hb-list .hb-body {
  grid-column: 2; grid-row: 1;
  padding: 14px 16px 8px; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hb-list .hb-body h3 { font-size: 16px; }
.hb-list .hb-body p {
  -webkit-line-clamp: 2; margin-top: 5px;
}
.hb-list .hb-foot {
  grid-column: 2; grid-row: 2;
  padding: 0 16px 14px;
  display: flex; gap: 8px; justify-content: flex-start; align-items: center;}
.hb-list .hb-foot .btn { flex: 0 0 auto; min-width: 104px; }

@media (max-width: 640px) {
  .hb-list .hb-card { grid-template-columns: 118px 1fr; }
  .hb-list .hb-cover { min-height: 96px; }
  .hb-list .hb-body { padding: 12px 13px; }
  .hb-list .hb-body h3 { font-size: 14.5px; }
  .hb-list .hb-body p { font-size: 12.2px; }
  .hb-feat-list { margin-top: 7px; gap: 3px; }
  .hb-feat-list li { font-size: 11.5px; line-height: 1.45; }
  .hb-feat-list li:nth-child(n+4) { display: none; }
  .hb-feat-list .icon { width: 12px; height: 12px; margin-top: 1px; }
  .hb-list .hb-price b { font-size: 21px; }
  .hb-list .hb-foot { padding: 0 13px 12px; }
  .hb-list .hb-foot .btn { min-width: 92px; padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 400px) {
  .hb-list .hb-card { grid-template-columns: 100px 1fr; }
  .hb-list .hb-cover { min-height: 88px; }
  .hb-list .hb-body h3 { font-size: 13.8px; }
  .hb-list .hb-price b { font-size: 19px; }
}

/* ============================================================
   v2.14.2 商品卡片：主图在顶部，从上往下纵向排列
   顺序：封面（顶部整宽）→ 标题 → 编号/分类 → 副标题 → 价格 → 功能 → 按钮 → 销量
   移动端保持两列网格；封面固定高度不拉伸，避免卡片过长
   ============================================================ */

/* ---------- 首页 / 模板中心：product-card ---------- */
.product-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.product-card > .product-cover {
  flex: none;
  width: 100%;
  height: 158px;          /* 顶部主图，固定高度 */
  min-height: 0;
  align-self: stretch;
  border-radius: 0;
  order: 1;
}
.product-card > .pc-info {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  order: 2;
}
.product-card > .pc-info h3 {
  font-size: 16px; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card > .pc-info .code-badge { display: inline-block; margin-top: 6px; }
.product-card > .pc-info .sub {
  font-size: 13px; color: var(--text-mute); margin-top: 6px; min-height: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card > .pc-info .price { margin: 10px 0 0; display: flex; align-items: baseline; gap: 4px; }
.product-card > .pc-info .price b { font-size: 26px; letter-spacing: -.02em; color: var(--price-solid); }
.product-card > .pc-info .price small { font-size: 14px; color: var(--price-solid); font-weight: 700; }
.product-card > .pc-info .price s { font-size: 12.5px; color: var(--text-mute); margin-left: 5px; }
/* 首页卡片特色：最多 5 条，超出不显示（PHP 已截断，此处为样式兜底） */
.product-card > .pc-info .feat-list li:nth-child(n+6) { display: none; }
.product-card > .pc-info .feat-title {
  margin-top: 11px; font-size: 11.5px; font-weight: 800; color: var(--text-mute);
  letter-spacing: .04em;
}
.product-card > .pc-info .feat-list { margin-top: 6px; }
.product-card > .pc-info .card-foot { margin-top: auto; padding-top: 12px; display: flex; gap: 7px; align-items: center;}
.product-card > .pc-info .card-foot .btn { flex: 1; justify-content: center; }
.product-card > .pc-info .card-meta { margin-top: 9px; }
/* 角标绝对定位，浮在封面之上 */
/* 限时优惠：贴在封面左下角，不再超出卡片被裁切 */
.product-card > .ribbon,
.product-card > .cat-chip { position: absolute; z-index: 4; pointer-events: none; }
.product-card > .ribbon { top: auto; bottom: auto; left: 10px; top: 10px; transform: none; }
.product-card > .cat-chip { top: 10px; right: 10px; }
/* 移动端两列：角标缩小避免挡住主图 */
@media (max-width: 560px) {
  .product-card > .ribbon { left: 7px; top: 7px; font-size: 10.5px; padding: 2px 8px; }
  .product-card > .cat-chip { top: 7px; right: 7px; font-size: 10px; padding: 1px 6px; }
}

/* ---------- 选购页：sl-card ---------- */
.sl-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
.sl-card > .sl-cover {
  flex: none;
  width: 100%;
  height: 148px;
  min-height: 0;
  align-self: stretch;
  border-radius: 0;
}
.sl-card > .sl-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.sl-body { padding: 12px 13px 6px; min-width: 0; }
.sl-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-price { margin-top: 8px; }
.sl-foot { padding: 0 13px 13px; margin-top: auto; display: flex; gap: 7px; align-items: center;}
.sl-foot .btn { flex: 1; justify-content: center; }

/* ---------- 模板B：hb-card ---------- */
.hb-list .hb-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  width: 100%;
  flex: none;
}
.hb-list .hb-card > .hb-cover {
  flex: none;
  width: 100%;
  height: 168px;
  min-height: 0;
  align-self: stretch;
  border-radius: 0;
}
.hb-list .hb-card > .hb-main {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.hb-list .hb-body { padding: 13px 15px 6px; min-width: 0; }
.hb-list .hb-body h3 { font-size: 16px; }
.hb-list .hb-body p { -webkit-line-clamp: 2; }
/* 首页B：模板特色（仅首页显示） */
.hb-feat-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hb-feat-list li { display: flex; align-items: flex-start; gap: 6px; font-size: 12.8px; color: var(--text-soft); line-height: 1.5; }
.hb-feat-list .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brand-600); }
[data-theme="dark"] .hb-feat-list .icon { color: var(--brand-200); }
.hb-feat-list span { min-width: 0; }
.hb-list .hb-foot { padding: 0 15px 14px; margin-top: auto; display: flex; gap: 8px; align-items: center;}
.hb-list .hb-foot .btn { flex: 1; justify-content: center; min-width: 0; }

/* ---------- 移动端：两列 + 顶部主图，压缩高度避免过长 ---------- */
@media (max-width: 900px) {
  .product-card > .product-cover { height: 146px; }
  .sl-card > .sl-cover { height: 136px; }
  .hb-list .hb-card > .hb-cover { height: 158px; }
}
@media (max-width: 560px) {
  /* 移动端两列，卡片窄，主图适当压低避免整页过长 */
  .product-card > .product-cover { height: 124px; }
  .product-card > .pc-info { padding: 10px 11px 11px; }
  .product-card > .pc-info h3 { font-size: 13.5px; -webkit-line-clamp: 2; }
  .product-card > .pc-info .sub { font-size: 11.8px; -webkit-line-clamp: 2; }
  .product-card > .pc-info .price { margin-top: 7px; }
  .product-card > .pc-info .price b { font-size: 20px; }
  .product-card > .pc-info .price s { display: none; }
  /* 移动端：特色最多 3 条（桌面 5 条），避免卡片过长 */
  .product-card > .pc-info .feat-title { margin-top: 8px; font-size: 10.8px; }
  .product-card > .pc-info .feat-list { display: block; margin-top: 5px; gap: 4px; }
  .product-card > .pc-info .feat-list li { font-size: 11.2px; line-height: 1.45; }
  .product-card > .pc-info .feat-list li:nth-child(n+4) { display: none; }
  .product-card > .pc-info .feat-list .icon { width: 12px; height: 12px; }
  /* 双按钮并排：隐藏图标腾出空间 */
  .product-card > .pc-info .card-foot .btn .icon { display: none; }
  .product-card > .pc-info .card-foot { padding-top: 9px; gap: 5px; }
  .product-card > .pc-info .card-foot .btn { padding: 7px 6px; font-size: 12px; }
  .product-card > .pc-info .card-foot .btn .icon { display: inline-block; width: 13px; height: 13px; }
  .product-card > .pc-info .card-meta { margin-top: 6px; font-size: 11px; }
  .product-card > .pc-info .card-meta span { font-size: 11px; }
  .product-card > .cat-chip { top: 8px; right: 8px; font-size: 10px; padding: 1px 6px; }

  .sl-card > .sl-cover { height: 116px; }
  .sl-body { padding: 10px 11px 5px; }
  .sl-title { font-size: 13.2px; }
  .sl-sub { font-size: 11.6px; -webkit-line-clamp: 1; }
  .sl-price { margin-top: 6px; }
  .sl-price b { font-size: 19px; }
  .sl-price s { display: none; }
  .sl-foot { padding: 0 11px 11px; gap: 5px; }
  .sl-foot .btn { padding: 7px 6px; font-size: 12px; }
  .sl-foot .btn .icon { display: inline-block; width: 13px; height: 13px; }

  .hb-list .hb-card > .hb-cover { height: 140px; }
  .hb-list .hb-body { padding: 11px 13px 5px; }
  .hb-list .hb-body h3 { font-size: 14.5px; }
  .hb-list .hb-body p { font-size: 12.2px; }
  .hb-list .hb-price b { font-size: 21px; }
  .hb-list .hb-foot { padding: 0 13px 12px; gap: 6px; }
  .hb-list .hb-foot .btn { padding: 7px 8px; font-size: 12.5px; }
}
@media (max-width: 400px) {
  .product-card > .product-cover { height: 112px; }
  .product-card > .pc-info { padding: 9px 10px 10px; }
  .product-card > .pc-info h3 { font-size: 12.8px; }
  .product-card > .pc-info .price b { font-size: 18px; }

  .sl-card > .sl-cover { height: 106px; }
  .sl-body { padding: 9px 10px 4px; }
  .sl-title { font-size: 12.6px; }
  .sl-foot { padding: 0 10px 10px; }
  .sl-foot .btn { font-size: 11.5px; padding: 6px 5px; }

  .hb-list .hb-card > .hb-cover { height: 128px; }
  .hb-list .hb-body h3 { font-size: 13.8px; }
}
@media (max-width: 340px) {
  .product-card > .product-cover { height: 100px; }
  .sl-card > .sl-cover { height: 96px; }
  .hb-list .hb-card > .hb-cover { height: 116px; }
  .product-card > .pc-info h3, .sl-title, .hb-list .hb-body h3 { font-size: 12.2px; }
  .product-card > .pc-info .price b, .sl-price b, .hb-list .hb-price b { font-size: 17px; }
}

/* ============================================================
   v2.14.0 分类条防溢出（横向滚动，不再换行堆叠）
   ============================================================ */
.cat-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 22px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; align-items: center;}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-item {
  flex: none;
  white-space: nowrap;
  padding: 8px 15px;
  font-size: 13.5px;
}
/* 分类网格卡片：彻底防溢出 */
.cat-grid { width: 100%; min-width: 0; }
.cat-card { min-width: 0; overflow: hidden; }
.cat-body { min-width: 0; overflow: hidden; }
.cat-body b { max-width: 100%; }
.cat-body small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .cat-tabs { gap: 7px; margin-bottom: 16px; }
  .cat-item { padding: 7px 13px; font-size: 13px; }
  .cat-cnt { font-size: 11.5px; }
}

/* ---------- v2.14.0 选购页头部紧凑化 ---------- */
.sl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 18px;
}
.sl-head-text { min-width: 0; flex: 1; }
.sl-head h1 { font-size: clamp(20px, 2.6vw, 26px); margin-bottom: 4px; }
.sl-head p { font-size: 13.6px; color: var(--text-mute); line-height: 1.6; }
.sl-steps { display: flex; align-items: center; gap: 8px; flex: none; }
.sl-step {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; font-weight: 700;
  color: var(--text-mute);
}
.sl-step.active { background: var(--brand-soft, #eff6ff); color: var(--brand-600); border-color: var(--brand-200, var(--brand-200)); }
[data-theme="dark"] .sl-step.active { color: var(--brand-200); }
.sl-step-no {
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--border); color: var(--text-soft); font-size: 11px; font-weight: 800;
}
.sl-step.active .sl-step-no { background: var(--brand-600); color: #fff; }
.sl-step-line { width: 14px; height: 2px; background: var(--border); border-radius: 2px; }

@media (max-width: 640px) {
  .sl-head { gap: 12px; margin-bottom: 14px; }
  .sl-head-text { flex: 1 1 100%; }
  .sl-head h1 { font-size: 19px; }
  .sl-steps { flex: 1 1 100%; justify-content: space-between; gap: 4px; }
  .sl-step { padding: 5px 9px; font-size: 12px; }
  .sl-step-line { flex: 1; width: auto; min-width: 8px; }
}

/* ============================================================
   v2.15.0 下单区支付方式选择
   ============================================================ */
.pay-pick { margin-top: 12px; }
.pay-pick .mini-label { margin-bottom: 8px; display: block; }
.pay-methods-sm { display: flex; gap: 8px; flex-wrap: wrap; align-items: center;}
.pay-methods-sm .pay-method {
  flex: 1 1 auto; min-width: 0; justify-content: center;
  padding: 9px 10px; font-size: 13px;
}
.pay-methods-sm .pay-method .icon { width: 16px; height: 16px; }
.pay-none {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-mute); margin: 0;
}
.pay-none .icon { width: 15px; height: 15px; }

@media (max-width: 560px) {
  .pay-methods-sm { gap: 6px; }
  .pay-methods-sm .pay-method { padding: 8px 6px; font-size: 12px; }
  .pay-methods-sm .pay-method .icon { width: 14px; height: 14px; }
}
@media (max-width: 400px) {
  .pay-methods-sm .pay-method { padding: 7px 4px; font-size: 11.5px; }
}

/* ============================================================
   v2.15.1 支付降级提示 + 订单详情页
   ============================================================ */

/* ---------- 官方参数未完善时的降级提示 ---------- */
.pay-degrade {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 13px; margin-bottom: 12px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-size: 12.8px; line-height: 1.6;
}
.pay-degrade .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
[data-theme="dark"] .pay-degrade {
  background: rgba(180, 83, 9, .16); border-color: rgba(251, 146, 60, .34); color: #fdba74;
}

/* ---------- 订单详情：状态卡 ---------- */
.od-status-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.od-status-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}
.od-status-card.warn .od-status-icon { background: linear-gradient(135deg, #f59e0b, #d97706); }
.od-status-card.gray .od-status-icon { background: linear-gradient(135deg, #94a3b8, #64748b); }
.od-status-icon .icon { width: 22px; height: 22px; }
.od-status-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.od-status-text b { font-size: 16.5px; }
.od-status-text span { font-size: 12.8px; color: var(--text-mute); line-height: 1.6; }
.od-status-no { font-size: 12.5px; color: var(--text-mute); }
.od-status-no code { font-size: 12.5px; }

/* ---------- 订单详情：发货内容块 ---------- */
.od-block { margin-top: 12px; }
.od-block:first-child { margin-top: 0; }
.od-block > label {
  display: block; font-size: 12.8px; font-weight: 700;
  color: var(--text-mute); margin-bottom: 6px;
}
.od-secret {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 13px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border);
}
.od-secret code {
  flex: 1; min-width: 0; font-size: 13.5px; word-break: break-all; line-height: 1.6;
  font-family: Consolas, Menlo, monospace;
}
.btn-sm { padding: 6px 12px; font-size: 12.5px; }
.btn-sm .icon { width: 14px; height: 14px; }

/* ---------- 查询结果里的详情按钮 ---------- */
.od-detail-btn { margin-top: 10px; display: inline-flex; }
.mono { font-family: Consolas, Menlo, monospace; }

@media (max-width: 640px) {
  .od-status-card { gap: 11px; padding: 14px; }
  .od-status-icon { width: 40px; height: 40px; border-radius: 11px; }
  .od-status-icon .icon { width: 19px; height: 19px; }
  .od-status-text b { font-size: 15px; }
  .od-status-text span { font-size: 12px; }
  .od-status-no { flex: 1 1 100%; }
  .od-secret { padding: 10px 11px; }
  .od-secret code { font-size: 12.8px; }
}

/* ============================================================
   v2.15.3 性能优化：移动端关闭毛玻璃与重型动画
   backdrop-filter 在移动端是主要卡顿来源，窄屏下改用半透明纯色
   ============================================================ */
@media (max-width: 900px) {
  .site-header,
  .hb-eyebrow,
  .hb-code,
  .cat-chip,
  .pd-badge,
  .qr-mask {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header {
    background: var(--surface) !important;
  }
  /* 移动端降低动画开销 */
  .product-card, .hb-card, .sl-card, .cat-card, .btn {
    transition: none !important;
  }
  .product-cover img { transition: none !important; }
  /* 卡片 hover 抬升在触屏无意义，去掉可省重绘 */
  .product-card:hover, .hb-card:hover, .sl-card:hover {
    transform: none !important;
  }
}

/* 减少动画偏好用户 */
/* 移动端统一关闭毛玻璃与大面积模糊：这是滚动掉帧的主要来源 */
@media (max-width: 900px) {
  .hx-badge, .hx-search, .hx-btn-ghost { backdrop-filter: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ============================================================
   v2.15.3 全局防溢出兜底
   grid/flex 子项默认 min-width:auto，长文本（商品名、编号、URL）
   会把格子撑破导致整行溢出。统一设 min-width:0 + 允许换行。
   ============================================================ */
.product-grid > *, .sl-grid > *, .cat-grid > *,
.hb-list > *, .feat-grid > *, .stat-grid > *,
.policy-grid > *, .three-grid > *, .contact-grid > *,
.footer-grid > *, .docs-layout > *, .buy-layout > *,
.pd-main > * {
  min-width: 0;
}

/* 长文本、编号、链接：强制换行，绝不横向溢出 */
.product-card h3, .sl-title, .hb-body h3,
.info-row b, .od-row code, .pd-title,
.featured-code, .mono {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* 表格与代码块：独立横向滚动，不撑破父容器 */
table, pre, code {
  max-width: 100%;
}

/* 注：不设 html/body overflow-x:hidden —— 会使 body 成为滚动容器，
   可能导致 position:fixed 与 sticky 在移动端失效。防溢出靠下面的 min-width:0 */
.hb-track, .cat-tabs, .table-responsive, .chart-wrap, .docs-nav {
  overflow-x: auto;
}

/* ============================================================
   v2.18.0 首页模板 C（旗舰版）
   深色渐变 Hero + 光晕网格 + 玻璃卡片 + 分类入口 + 两列商品网格
   商品卡片为纵向布局：主图在顶部，往下依次标题/编号/副标题/价格/按钮
   ============================================================ */

/* ---------- Hero ---------- */
.hc-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 60px;
  background: linear-gradient(160deg, #0b1220 0%, #111c33 52%, #16305c 100%);
  color: #fff;
}
[data-theme="light"] .hc-hero {
  background: linear-gradient(160deg, #eef4ff 0%, #f7f9ff 55%, #e8f0ff 100%);
  color: #0f172a;
}
.hc-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(680px 340px at 18% 12%, rgba(var(--p-cyan-rgb), .22), transparent 62%),
    radial-gradient(620px 320px at 84% 6%, rgba(139, 92, 246, .20), transparent 64%);
}
.hc-hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(720px 380px at 50% 32%, #000 40%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 380px at 50% 32%, #000 40%, transparent 78%);
}
.hc-hero-inner { position: relative; z-index: 2; text-align: center; max-width: 820px; }

.hc-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 15px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(6px);
}
[data-theme="light"] .hc-badge { background: rgba(var(--p-rgb),.08); border-color: rgba(var(--p-rgb),.2); color: var(--brand-700); }
.hc-badge .icon { width: 14px; height: 14px; }

.hc-title {
  font-size: clamp(31px, 5.4vw, 52px); line-height: 1.2; font-weight: 900;
  letter-spacing: -.025em; margin: 20px 0 0;
}
.hc-grad {
  background: linear-gradient(100deg, var(--p-soft), #a78bfa 45%, var(--p-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hc-lead {
  margin: 16px auto 0; max-width: 620px;
  font-size: clamp(14px, 1.6vw, 16px); line-height: 1.75;
  color: rgba(255,255,255,.82);
}
[data-theme="light"] .hc-lead { color: var(--text-soft); }

/* 搜索：大号胶囊 */
.hc-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 26px auto 0; padding: 6px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px; backdrop-filter: blur(10px);
}
[data-theme="light"] .hc-search { background: #fff; border-color: var(--border); box-shadow: 0 6px 20px rgba(20,40,80,.07); }
.hc-search .icon { width: 18px; height: 18px; flex: none; margin-left: 12px; opacity: .8; }
.hc-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  padding: 10px 4px; font-size: 14.5px; color: inherit;
}
.hc-search input::placeholder { color: rgba(255,255,255,.55); }
[data-theme="light"] .hc-search input::placeholder { color: var(--text-mute); }
.hc-search button {
  flex: none; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--p-light), var(--p-accent2)); color: #fff;
  font-size: 14px; font-weight: 700;
}
.hc-code-result { max-width: 520px; margin: 10px auto 0; text-align: left; }

/* 按钮 */
.hc-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hc-btn-main, .hc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .16s, box-shadow .16s;
}
.hc-btn-main {
  background: linear-gradient(135deg, var(--p-light), var(--p-accent2)); color: #fff;
  box-shadow: 0 10px 26px rgba(var(--p-light-rgb), .34);
}
.hc-btn-main:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(var(--p-light-rgb),.42); }
.hc-btn-ghost {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.26); color: #fff;
  backdrop-filter: blur(6px);
}
[data-theme="light"] .hc-btn-ghost { background: #fff; border-color: var(--border); color: var(--text); }
.hc-btn-main .icon, .hc-btn-ghost .icon { width: 17px; height: 17px; }

/* 统计条 */
.hc-stats {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 34px; flex-wrap: wrap;
}
.hc-stat { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.hc-stat b { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.hc-stat span { font-size: 12.5px; opacity: .72; margin-top: 2px; }
.hc-stat-sep { width: 1px; height: 30px; background: rgba(255,255,255,.22); }
[data-theme="light"] .hc-stat-sep { background: var(--border); }

/* ---------- 分类入口 ---------- */
.hc-section { padding: 42px 0; }
.hc-section-soft { background: var(--bg-soft, var(--surface-2)); }
.hc-cats {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.hc-cats::-webkit-scrollbar { height: 6px; }
.hc-cats::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.hc-cat {
  flex: none; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 92px; padding: 14px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: transform .16s, border-color .16s, box-shadow .16s;
}
.hc-cat:hover { transform: translateY(-3px); border-color: var(--brand-400, var(--p-soft)); box-shadow: 0 10px 24px rgba(20,40,80,.10); }
.hc-cat-icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-500, var(--p-light)), var(--brand-700));
}
.hc-cat-icon .icon { width: 19px; height: 19px; }
.hc-cat b { font-size: 13px; font-weight: 700; }
.hc-cat small { font-size: 11px; color: var(--text-mute); }
.hc-cat-all .hc-cat-icon { background: linear-gradient(135deg, #64748b, #334155); }

/* ---------- 区块标题 ---------- */
.hc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.hc-head-center { justify-content: center; text-align: center; }
.hc-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--brand-600);
  letter-spacing: .04em;
}
.hc-eyebrow .icon { width: 14px; height: 14px; }
.hc-head h2 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; margin-top: 6px; letter-spacing: -.01em; }
.hc-more {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 13.5px; color: var(--text-mute);
}
.hc-more .icon { width: 14px; height: 14px; }

/* ---------- 商品网格（两列，主图在顶部） ---------- */
.hc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.hc-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; min-width: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.hc-card:hover {
  transform: translateY(-3px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 16px 38px rgba(20, 40, 80, .12);
}
.hc-card-link { position: absolute; inset: 0; z-index: 2; }
.hc-cover {
  position: relative; width: 100%; height: 172px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.hc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-code {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 7px; font-size: 11px; font-weight: 800;
  font-family: Consolas, Menlo, monospace; letter-spacing: .02em;
  background: rgba(15,25,45,.72); color: #fff; backdrop-filter: blur(4px);
}
.hc-cat-chip {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(var(--p-rgb),.92); color: #fff;
}
.hc-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hc-body h3 {
  font-size: 15.5px; font-weight: 700; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-body > p {
  font-size: 12.8px; color: var(--text-mute); margin-top: 6px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-price { margin-top: 10px; display: flex; align-items: baseline; gap: 3px; }
.hc-price b { font-size: 23px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
.hc-price small { font-size: 13px; color: var(--price-solid); font-weight: 700; }
.hc-price s { font-size: 12px; color: var(--text-mute); margin-left: 5px; }

.hc-feat { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.hc-feat li { display: flex; align-items: flex-start; gap: 6px; font-size: 12.6px; color: var(--text-soft); line-height: 1.5; }
.hc-feat .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; color: var(--brand-600); }
.hc-feat span { min-width: 0; }

.hc-foot { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.hc-btn-outline, .hc-btn-buy {
  position: relative; z-index: 3;
  flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
  border: 1px solid transparent; cursor: pointer;
}
.hc-btn-outline { border-color: var(--border-strong, var(--border)); background: var(--surface); color: var(--text); }
.hc-btn-buy { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff; }
.hc-btn-outline .icon, .hc-btn-buy .icon { width: 15px; height: 15px; }

/* ---------- 优势特性 ---------- */
.hc-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hc-feat-item {
  padding: 22px 18px; border-radius: 18px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s;
}
.hc-feat-item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,40,80,.10); }
.hc-feat-icon {
  width: 50px; height: 50px; border-radius: 15px; margin: 0 auto 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--brand-500, var(--p-light)), var(--brand-700));
  box-shadow: 0 8px 20px rgba(var(--p-light-rgb), .28);
}
.hc-feat-icon .icon { width: 23px; height: 23px; }
.hc-feat-item b { display: block; font-size: 15px; font-weight: 800; margin-bottom: 5px; }
.hc-feat-item p { font-size: 12.8px; color: var(--text-mute); line-height: 1.65; margin: 0; }

/* ---------- CTA ---------- */
.hc-cta {
  padding: 38px 26px; border-radius: 22px; text-align: center;
  background: linear-gradient(135deg, var(--p-deep) 0%, var(--brand-600) 52%, var(--p-accent) 100%);
  color: #fff; box-shadow: 0 18px 44px rgba(var(--p-rgb), .26);
}
.hc-cta h2 { font-size: clamp(20px, 2.8vw, 27px); font-weight: 900; letter-spacing: -.01em; }
.hc-cta p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.hc-cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hc-cta-actions .hc-btn-main { background: #fff; color: var(--brand-700); box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.hc-cta-actions .hc-btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); }
.hc-cta-wx {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 13px; color: rgba(255,255,255,.9);
}
.hc-cta-wx .icon { width: 15px; height: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hc-feats { grid-template-columns: repeat(2, 1fr); }
  .hc-cover { height: 158px; }
}
@media (max-width: 640px) {
  .hc-hero { padding: 52px 0 44px; }
  .hc-section { padding: 32px 0; }
  .hc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
  .hc-cover { height: 132px; }
  .hc-body { padding: 12px 12px 13px; }
  .hc-body h3 { font-size: 13.6px; -webkit-line-clamp: 2; }
  .hc-body > p { font-size: 11.8px; -webkit-line-clamp: 2; }
  .hc-price { margin-top: 8px; }
  .hc-price b { font-size: 19px; }
  .hc-price s { display: none; }
  .hc-feat { margin-top: 8px; gap: 3px; }
  .hc-feat li { font-size: 11.4px; line-height: 1.45; }
  .hc-feat li:nth-child(n+3) { display: none; }
  .hc-feat .icon { width: 12px; height: 12px; }
  .hc-foot { padding-top: 11px; gap: 6px; }
  .hc-btn-outline, .hc-btn-buy { padding: 8px 6px; font-size: 12.2px; }
  .hc-btn-outline .icon, .hc-btn-buy .icon { display: none; }
  .hc-code { left: 8px; top: 8px; font-size: 10.5px; padding: 2px 7px; }
  .hc-cat-chip { right: 8px; top: 8px; font-size: 10px; padding: 2px 7px; }
  .hc-stats { gap: 16px; margin-top: 26px; }
  .hc-stat b { font-size: 22px; }
  .hc-stat-sep { height: 24px; }
  .hc-cta { padding: 28px 18px; border-radius: 18px; }
  .hc-feat-item { padding: 18px 14px; }
  .hc-feat-icon { width: 44px; height: 44px; border-radius: 13px; }
  .hc-feat-icon .icon { width: 20px; height: 20px; }
  /* 移动端关闭毛玻璃，减少卡顿 */
  .hc-badge, .hc-search, .hc-btn-ghost, .hc-code { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (max-width: 400px) {
  .hc-grid { gap: 10px; }
  .hc-cover { height: 118px; }
  .hc-body h3 { font-size: 12.8px; }
  .hc-price b { font-size: 17px; }
  .hc-btn-outline, .hc-btn-buy { font-size: 11.6px; padding: 7px 4px; }
  .hc-cat { width: 82px; padding: 12px 6px; }
  .hc-cat-icon { width: 36px; height: 36px; border-radius: 11px; }
  .hc-cat-icon .icon { width: 17px; height: 17px; }
  .hc-cat b { font-size: 12px; }
}

/* ============================================================
   v2.20.0 商品详情页 UI 重做
   图册卡片（圆角 + 阴影 + cover 铺满）+ 信息卡 + 规格单卡 + 介绍/功能 + 相关
   ============================================================ */

/* ---------- 主区：左图册 / 右信息 ---------- */
.pd-main {
  display: grid; grid-template-columns: 1.08fr 1fr; gap: 26px;
  align-items: start; margin-top: 14px;
}
.pd-main > * { min-width: 0; }

/* 图册卡片：圆角 + 阴影 + 边框，图片 cover 铺满 */
.pd-gallery { min-width: 0; }
.pd-stage {
  position: relative; width: 100%; aspect-ratio: auto;
  border-radius: 18px; overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(20, 40, 80, .10);
}
@supports not (aspect-ratio: 16 / 10) {
  .pd-stage { height: 0; padding-bottom: 62.5%; }
}
/* 主图：完整显示（contain，绝不裁切变形）+ 同图模糊放大铺底填满空白 */
.pd-shot {
  display: none; width: 100%; height: 100%; position: relative;
  background-size: cover; background-position: center top; background-repeat: no-repeat;
}
.pd-shot.active { display: block; }
.pd-shot img {
  position: relative; z-index: 1;
  width: 100% !important; height: auto !important; max-width: 100% !important;
  display: block; object-fit: fill;
}
/* 无图占位 */
.pd-nopic {
  width: 100%; height: 100%; display: grid; place-items: center; gap: 8px;
  color: var(--text-mute); grid-auto-flow: row;
}
.pd-nopic .icon { width: 40px; height: 40px; opacity: .5; }


/* 左右箭头 */
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15, 25, 45, .45); color: #fff;
}
.pd-nav.prev { left: 12px; }
.pd-nav.next { right: 12px; }
.pd-nav .icon { width: 18px; height: 18px; }

/* 圆点 */
.pd-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; z-index: 4;
  display: flex; gap: 6px; align-items: center;
}
.pd-dot {
  width: 7px; height: 7px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .55);
}
.pd-dot.active { background: #fff; width: 18px; border-radius: 4px; }

/* 缩略图：卡片式 */
.pd-thumbs {
  display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}
.pd-thumbs::-webkit-scrollbar { height: 6px; }
.pd-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.pd-thumb {
  flex: none; width: 96px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: var(--surface); transition: border-color .16s;
}
.pd-thumb.active { border-color: var(--brand-600); }
.pd-thumb img {
  width: 100%; height: 58px; object-fit: cover; display: block;
  background: var(--surface-2); border-radius: 10px 10px 0 0;
}
.pd-thumb span {
  display: block; font-size: 11px; padding: 4px; text-align: center;
  color: var(--text-mute);
}
.pd-thumb.active span { color: var(--brand-600); font-weight: 700; }

/* ---------- 信息区 ---------- */
.pd-info { min-width: 0; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.pd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
  align-self: flex-start;
}
.pd-badge .icon { width: 13px; height: 13px; }
.pd-badge.code { font-family: Consolas, Menlo, monospace; color: var(--brand-600); }
.pd-badge.cat { color: var(--brand-600); }
.pd-badge.green { background: rgba(22, 163, 74, .12); color: #16a34a; border-color: rgba(22,163,74,.25); }
.pd-badge.orange { background: rgba(245, 158, 11, .14); color: #b45309; border-color: rgba(245,158,11,.28); }
[data-theme="dark"] .pd-badge.green { background: rgba(34,197,94,.16); color: #4ade80; }
[data-theme="dark"] .pd-badge.orange { background: rgba(251,191,36,.16); color: #fbbf24; }

.pd-title { font-size: clamp(21px, 2.6vw, 29px); font-weight: 900; line-height: 1.35; margin: 0; letter-spacing: -.01em; }
.pd-sub { margin-top: 8px; font-size: 14.5px; color: var(--text-mute); line-height: 1.6; }

/* 价格卡 */
.pd-price-box {
  margin: 16px 0 0; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface));
  border: 1px solid var(--brand-200, var(--brand-200));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
[data-theme="dark"] .pd-price-box { background: linear-gradient(135deg, rgba(var(--p-rgb),.16), var(--surface)); border-color: rgba(var(--p-rgb),.3); }
.pd-price { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; min-width: 0; row-gap: 4px; }
.pd-price b { font-size: 34px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
.pd-price b.face { font-size: 26px; }
.pd-price small { font-size: 16px; font-weight: 700; color: var(--price-solid); }
.pd-price s { font-size: 13px; color: var(--text-mute); margin-left: 6px; }
.pd-off {
  margin-left: 8px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; background: #dc2626; color: #fff;
}
.pd-sales { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--text-mute); min-width: 0; }
.pd-sales span { display: inline-flex; align-items: center; gap: 5px; }
.pd-sales .icon { width: 14px; height: 14px; }

/* 加密说明 */
.pd-enc {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
  border-radius: 12px; margin-top: 14px; font-size: 13px; line-height: 1.6;
}
.pd-enc .icon { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.pd-enc b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.pd-enc span { color: var(--text-mute); }
.pd-enc.ok { background: rgba(22,163,74,.10); color: #15803d; }
.pd-enc.warn { background: rgba(245,158,11,.12); color: #b45309; }
[data-theme="dark"] .pd-enc.ok { background: rgba(34,197,94,.14); color: #4ade80; }
[data-theme="dark"] .pd-enc.warn { background: rgba(251,191,36,.14); color: #fbbf24; }

/* 按钮 */
.pd-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pd-actions .pd-buy { flex: 2; min-width: 140px; }
.pd-actions .pd-demo { flex: 1; min-width: 110px; }
@media (max-width: 640px) {
  .pd-actions .pd-buy, .pd-actions .pd-demo { flex: 1; min-width: 0; }
}

.pd-demo-tip {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 10px;
  font-size: 12.5px; color: var(--text-mute); line-height: 1.6;
}
.pd-demo-tip .icon { width: 14px; height: 14px; flex: none; margin-top: 3px; }

/* 交付清单 */
.pd-get {
  margin-top: 18px; padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.pd-get > b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 10px; }
.pd-get ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 14px; margin: 0; padding: 0; }
.pd-get li { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-soft); min-width: 0; }
.pd-get .icon { width: 15px; height: 15px; flex: none; color: var(--brand-600); }
.pd-get span { min-width: 0; }

.pd-note {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 14px;
  padding: 11px 13px; border-radius: 12px;
  background: var(--surface-2); border: 1px dashed var(--border);
  font-size: 12.5px; color: var(--text-mute); line-height: 1.6;
}
.pd-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.pd-contact {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 13.5px; color: var(--text-soft);
}
.pd-contact .icon { width: 16px; height: 16px; color: var(--brand-600); }

/* ---------- 规格单卡 ---------- */
/* spec-wrap 自带边框与圆角，嵌在卡片里会形成双层框、视觉变形；此处去掉 */
.pd-spec-card .spec-wrap {
  border: none; border-radius: 0; overflow: visible; background: none;
}
.pd-spec-card .spec th { background: transparent; }
/* 左右留白由 .spec-wrap 统一控制，单元格不再另加横向内边距，避免与标题错位 */
.pd-spec-card .spec th, .pd-spec-card .spec td { padding-left: 0; padding-right: 0; }
.pd-spec-card {
  margin-top: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.pd-spec-head { padding: 16px 20px 12px; }
.pd-spec-card .spec-wrap { padding: 0 20px 16px; }
.pd-spec-head .block-title { margin: 0; }

/* ---------- 介绍 / 功能 ---------- */
.pd-detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.pd-detail > * { min-width: 0; }
.pd-content { font-size: 14.5px; line-height: 1.9; color: var(--text-soft); white-space: pre-wrap; }

/* ---------- 相关模板 ---------- */
.pd-related { margin-top: 20px; }
.pd-rel-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.rel-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
  transition: border-color .16s, transform .16s;
}
.rel-item:hover { border-color: var(--brand-400, var(--p-soft)); transform: translateY(-2px); }
.rel-thumb { width: 58px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--surface-2); }
.rel-thumb.ph { display: grid; place-items: center; }
.rel-thumb.ph .icon { width: 18px; height: 18px; color: var(--text-mute); }
.rel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rel-body b { font-size: 13.8px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-body small { font-size: 11.5px; color: var(--text-mute); font-family: Consolas, Menlo, monospace; }
.rel-price { flex: none; font-size: 15px; font-weight: 900; color: var(--price-solid); }

/* ---------- 响应式 ---------- */
@media (max-width: 1040px) {
  .pd-main { grid-template-columns: 1fr 1fr; gap: 20px; }
  .pd-detail { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 900px) {
  .pd-stage { aspect-ratio: auto; border-radius: 16px; }
  .pd-price b { font-size: 30px; }
}
@media (max-width: 768px) {
  .pd-main { grid-template-columns: 1fr; gap: 18px; }
  .pd-detail { grid-template-columns: 1fr; gap: 16px; }
  .pd-stage { aspect-ratio: auto; }
  .pd-get ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pd-wrap { padding-top: 12px; padding-bottom: 6px; }
  .pd-main { gap: 16px; }
  .pd-stage { aspect-ratio: auto; border-radius: 14px; box-shadow: 0 8px 22px rgba(20, 40, 80, .08); }
  .pd-title { font-size: 20px; line-height: 1.4; }
  .pd-sub { font-size: 13.5px; }
  .pd-price-box { padding: 13px 14px; margin-top: 14px; border-radius: 14px; }
  .pd-price b { font-size: 28px; }
  .pd-price b.face { font-size: 23px; }
  .pd-sales { font-size: 12.5px; gap: 12px; }
  .pd-enc { padding: 11px 12px; }
  .pd-enc b { font-size: 13px; }
  .pd-enc span { font-size: 12.4px; }
  .pd-actions { gap: 8px; }
  .pd-buy, .pd-demo { flex: 1; min-width: 0; }
  .pd-get { padding: 13px 14px; border-radius: 14px; margin-top: 16px; }
  .pd-get ul { grid-template-columns: 1fr; gap: 8px; }
  .pd-get li { font-size: 12.6px; }
  .pd-note { font-size: 12.2px; padding: 10px 11px; }
  .pd-contact { font-size: 13px; }
  .pd-spec-card { margin-top: 20px; border-radius: 14px; }
  .pd-spec-head { padding: 14px 14px 10px; }
  .pd-spec-card .spec-wrap { padding: 0 14px 14px; }
  .pd-spec-card .spec tr { padding: 11px 12px; }
  .pd-related { margin-top: 16px; }
  .pd-thumb { width: 84px; }
  .pd-thumb img { height: 50px; }
  .pd-nav { width: 32px; height: 32px; }
  .pd-nav .icon { width: 16px; height: 16px; }
  .pd-content { font-size: 14px; line-height: 1.85; }
}
@media (max-width: 400px) {
  .pd-stage { aspect-ratio: auto; }
  .pd-title { font-size: 18.5px; }
  .pd-price b { font-size: 25px; }
  .pd-thumb { width: 74px; }
  .pd-thumb img { height: 44px; }
  .pd-get ul { gap: 7px; }
}


/* ============================================================
   v2.20.4 主图角标（编号左上 / 分类右上）
   唯一定义：只设 top，绝不设 bottom —— 同时设 top 与 bottom 会把
   绝对定位元素上下拉扯成竖长条（此前角标变形的真正原因）
   ============================================================ */
.pd-code-float, .pd-cat-float {
  position: absolute; top: 12px; bottom: auto; z-index: 5;
  display: inline-flex; align-items: center; gap: 5px;
  max-width: calc(100% - 24px);
  padding: 5px 12px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; line-height: 1.2;
  letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  color: #fff; pointer-events: none;
  box-shadow: 0 4px 12px rgba(2, 10, 30, .28);
}
.pd-code-float {
  left: 12px;
  font-family: Consolas, Menlo, monospace;
  background: rgba(15, 25, 45, .78);
}
.pd-cat-float {
  right: 12px;
  background: rgba(var(--p-rgb), .92);
}
@media (max-width: 640px) {
  .pd-code-float, .pd-cat-float {
    top: 10px; bottom: auto; padding: 4px 10px; font-size: 11.5px; border-radius: 8px;
  }
  .pd-code-float { left: 10px; }
  .pd-cat-float { right: 10px; }
}

/* ============================================================
   v2.21.0 商品详情页 UI 重做（仿淘宝 / 闲鱼）
   通栏图册 → 上叠圆角内容卡 → 灰色间隔条 → 区块卡片 → 底部购买
   所有规则限定在 .pdv2 作用域内，避免与历史 .pd-* 规则冲突
   ============================================================ */

/* ---------- 容器：取消左右留白，交给内部区块自己控制 ---------- */
/* v2.35.1：顶部也归零，让内容紧贴导航栏（原 .pd-wrap 有 18px 上内边距，会露出一条白边） */
.pdv2 { padding-left: 0; padding-right: 0; }
.pd-wrap.pdv2 { padding-top: 0; }

/* ---------- 通栏图册 ---------- */
/* 图册：左右铺满（无圆角），位于分类下方、价格上方 */
.pdv2 .pdv-gallery {
  position: relative; margin: 0 0 14px;
  border-radius: 0; overflow: hidden;
  background: var(--surface-2);
}
.pdv2 .pd-stage {
  position: relative; width: 100%;
  aspect-ratio: 4 / 3;                 /* 固定高度，图片裁切铺满 */
  border-radius: 0; border: none; box-shadow: none;
  overflow: hidden; background: var(--surface-2);
}
.pdv2 .pd-shot { display: none; width: 100%; height: 100%; }
.pdv2 .pd-shot.active { display: block; }
.pdv2 .pd-shot img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center top;   /* 优先保留顶部内容 */
}
.pdv2 .pd-nopic {
  width: 100%; height: 100%; display: grid; place-items: center; gap: 8px;
  color: var(--text-mute);
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
}
.pdv2 .pd-nopic .icon { width: 42px; height: 42px; opacity: .5; }

/* 角标：只设 top，绝不设 bottom（同时设会被拉扯变形） */
.pdv2 .pd-code-float, .pdv2 .pd-cat-float {
  position: absolute; top: 12px; bottom: auto; z-index: 5;
  display: inline-flex; align-items: center; max-width: calc(100% - 24px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 800; line-height: 1.2;
  letter-spacing: .02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; color: #fff;
  pointer-events: none; box-shadow: 0 4px 12px rgba(2, 10, 30, .28);
}
.pdv2 .pd-code-float { left: 12px; font-family: Consolas, Menlo, monospace; background: rgba(15, 25, 45, .78); }
.pdv2 .pd-cat-float { right: 12px; background: rgba(var(--p-rgb), .92); }

/* 张数计数（右下） */
.pdv2 .pdv-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 5;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: rgba(15, 25, 45, .6); pointer-events: none;
}
.pdv2 .pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(15, 25, 45, .42); color: #fff;
}
.pdv2 .pd-nav.prev { left: 12px; }
.pdv2 .pd-nav.next { right: 12px; }
.pdv2 .pd-nav .icon { width: 17px; height: 17px; }
.pdv2 .pd-dots {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 4;
  display: flex; gap: 6px; align-items: center;
}
.pdv2 .pd-dot { width: 6px; height: 6px; border-radius: 50%; cursor: pointer; background: rgba(255,255,255,.55); }
.pdv2 .pd-dot.active { background: #fff; width: 16px; border-radius: 4px; }

/* 缩略图 */
.pdv2 .pd-thumbs {
  display: flex; gap: 10px; padding: 10px 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pdv2 .pd-thumbs::-webkit-scrollbar { height: 5px; }
.pdv2 .pd-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.pdv2 .pd-thumb {
  flex: none; width: 84px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 12px; overflow: hidden;
  background: var(--surface); transition: border-color .16s;
}
.pdv2 .pd-thumb.active { border-color: var(--brand-600); }
.pdv2 .pd-thumb img { width: 100%; height: 54px; object-fit: cover; display: block; background: var(--surface-2); }
.pdv2 .pd-thumb span { display: block; font-size: 11px; padding: 4px; text-align: center; color: var(--text-mute); }

/* 5 张图时缩略图自动收窄，尽量一屏显示完（仍可横滑兜底）
   技巧：first-child:nth-last-child(5) 命中「共 5 个」的情形，再波及同级兄弟 */
.pdv2 .pd-thumb:first-child:nth-last-child(5),
.pdv2 .pd-thumb:first-child:nth-last-child(5) ~ .pd-thumb { width: 68px; }
.pdv2 .pd-thumb:first-child:nth-last-child(5) img,
.pdv2 .pd-thumb:first-child:nth-last-child(5) ~ .pd-thumb img { height: 44px; }
/* 4 张同理，稍微收窄 */
.pdv2 .pd-thumb:first-child:nth-last-child(4),
.pdv2 .pd-thumb:first-child:nth-last-child(4) ~ .pd-thumb { width: 76px; }
.pdv2 .pd-thumb.active span { color: var(--brand-600); font-weight: 700; }

/* ---------- 上叠内容卡 ---------- */
.pdv2 .pdv-crumb {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-mute); margin-bottom: 10px;
}
.pdv2 .pdv-crumb a { color: var(--text-mute); }
.pdv2 .pdv-crumb .icon { width: 12px; height: 12px; opacity: .6; flex: none; }

/* 与下方 .pdv-block 完全一致：左右铺满、无圆角、无阴影 */
.pdv2 .pdv-panel {
  position: relative; z-index: 2;
  margin: 0;
  padding: 18px 16px;
  background: var(--surface);
  border-radius: 0;
  box-shadow: none;
}

/* 价格条：淘宝红 */
.pdv2 .pdv-pricebar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.pdv2 .pdv-price { display: flex; align-items: baseline; gap: 2px; color: #ff3b30; }
[data-theme="dark"] .pdv2 .pdv-price { color: #ff6b66; }
.pdv2 .pdv-price b { font-size: 34px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.pdv2 .pdv-price b.face { font-size: 26px; }
.pdv2 .pdv-price small { font-size: 17px; font-weight: 800; }
.pdv2 .pdv-price s { font-size: 13px; color: var(--text-mute); margin-left: 7px; }
.pdv2 .pdv-pricetag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdv2 .pdv-save {
  padding: 3px 9px; border-radius: 6px;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff3b30);
}
.pdv2 .pdv-sales { font-size: 12.5px; color: var(--text-mute); }

.pdv2 .pdv-title {
  margin: 12px 0 0; font-size: 19px; font-weight: 800;
  line-height: 1.45; letter-spacing: -.005em;
}
.pdv2 .pdv-sub { margin: 7px 0 0; font-size: 13.5px; color: var(--text-mute); line-height: 1.6; }

/* 徽标行 */
.pdv2 .pdv-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; align-items: center; }
.pdv2 .pdv-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11.8px; font-weight: 700;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border);
}
.pdv2 .pdv-tag .icon { width: 12px; height: 12px; }
.pdv2 .pdv-tag.code { font-family: Consolas, Menlo, monospace; color: var(--brand-600); }
.pdv2 .pdv-tag.green { background: rgba(22,163,74,.12); color: #16a34a; border-color: rgba(22,163,74,.25); }
.pdv2 .pdv-tag.orange { background: rgba(245,158,11,.14); color: #b45309; border-color: rgba(245,158,11,.28); }
[data-theme="dark"] .pdv2 .pdv-tag.green { background: rgba(34,197,94,.16); color: #4ade80; }
[data-theme="dark"] .pdv2 .pdv-tag.orange { background: rgba(251,191,36,.16); color: #fbbf24; }

/* v2.35.1：修复无加密 —— 蓝色（与品牌蓝一致） */
.pdv2 .pdv-tag.blue { background: rgba(var(--p-rgb),.12); color: var(--brand-600); border-color: rgba(var(--p-rgb),.26); }
[data-theme="dark"] .pdv2 .pdv-tag.blue { background: rgba(var(--p-soft-rgb),.16); color: var(--p-soft-text); border-color: rgba(var(--p-soft-rgb),.3); }

/* 加密说明 */
.pdv2 .pdv-enc {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 14px;
  padding: 11px 13px; border-radius: 12px; font-size: 12.8px; line-height: 1.6;
}
.pdv2 .pdv-enc .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.pdv2 .pdv-enc b { display: block; font-size: 13px; margin-bottom: 2px; }
.pdv2 .pdv-enc span { color: var(--text-mute); }
.pdv2 .pdv-enc.ok { background: rgba(22,163,74,.10); color: #15803d; }
.pdv2 .pdv-enc.warn { background: rgba(245,158,11,.12); color: #b45309; }
[data-theme="dark"] .pdv2 .pdv-enc.ok { background: rgba(34,197,94,.14); color: #4ade80; }
[data-theme="dark"] .pdv2 .pdv-enc.warn { background: rgba(251,191,36,.14); color: #fbbf24; }

/* 蓝色提示条：修复无加密 */
.pdv2 .pdv-enc.info { background: rgba(var(--p-rgb),.10); color: var(--brand-700); }
[data-theme="dark"] .pdv2 .pdv-enc.info { background: rgba(var(--p-soft-rgb),.14); color: var(--p-soft-text); }

/* 操作按钮 */
.pdv2 .pdv-actions { display: flex; gap: 10px; margin-top: 16px; }
.pdv2 .pdv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform .16s, box-shadow .16s;
}
.pdv2 .pdv-btn .icon { width: 17px; height: 17px; }
.pdv2 .pdv-btn.main {
  flex: 1; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 8px 20px rgba(255, 59, 48, .28);
}
.pdv2 .pdv-btn.ghost {
  flex: none; background: var(--surface); color: var(--text);
  border-color: var(--border-strong, var(--border));
}
.pdv2 .pdv-btn:active { transform: scale(.98); }

/* ---------- 灰色间隔条 ---------- */
.pdv2 .pdv-gap { height: 8px; background: var(--bg-soft, var(--surface-2)); }

/* ---------- 内容区块 ---------- */
.pdv2 .pdv-block {
  padding: 18px 16px; background: var(--surface);
}
.pdv2 .pdv-h2 {
  display: flex; align-items: center; gap: 7px; margin: 0 0 14px;
  font-size: 15.5px; font-weight: 800;
}
.pdv2 .pdv-h2 .icon { width: 17px; height: 17px; color: var(--brand-600); }

/* 规格参数：左灰标签右内容，横线分隔 */
.pdv2 .pdv-spec { border-top: 1px solid var(--border); }
.pdv2 .pdv-spec-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.pdv2 .pdv-spec-k { flex: none; width: 78px; font-size: 12.8px; color: var(--text-mute); }
.pdv2 .pdv-spec-v { flex: 1; min-width: 0; font-size: 13.2px; color: var(--text-soft); overflow-wrap: anywhere; }
.pdv2 .pdv-code { font-family: Consolas, Menlo, monospace; font-weight: 700; color: var(--brand-600); }
.pdv2 .pdv-link { color: var(--brand-600); font-weight: 700; }

/* 交付清单 */
.pdv2 .pdv-gets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
/* v2.35.2：清单项数不固定（6~7 项），用 auto-fit 让末行居中不孤单 */
.pdv2 .pdv-get {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 12px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border);
}
.pdv2 .pdv-get .icon { width: 19px; height: 19px; color: var(--brand-600); }

/* 交付清单下方的补充说明 */
.pdv2 .pdv-note {
  font-size: 12.5px; line-height: 1.7; color: var(--text-mute);
  padding: 9px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px dashed var(--border);
}
.pdv2 .pdv-get span { font-size: 11.5px; color: var(--text-soft); line-height: 1.4; }

/* 介绍 */
.pdv2 .pdv-content { font-size: 14px; line-height: 1.9; color: var(--text-soft); white-space: pre-wrap; }

/* 功能清单 */
.pdv2 .pdv-feats { display: flex; flex-direction: column; gap: 8px; }
.pdv2 .pdv-feat {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px; color: var(--text-soft); line-height: 1.6;
}
.pdv2 .pdv-feat .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; color: #16a34a; }
.pdv2 .pdv-feat span { min-width: 0; }

/* 其他模板：横向滑动 */
.pdv2 .pdv-rels {
  display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scroll-snap-type: x proximity;
}
.pdv2 .pdv-rels::-webkit-scrollbar { height: 5px; }
.pdv2 .pdv-rels::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.pdv2 .pdv-rel {
  flex: none; width: 132px; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}
.pdv2 .pdv-rel-img {
  width: 100%; height: 88px; border-radius: 9px; overflow: hidden;
  background: var(--surface-2); display: grid; place-items: center; margin-bottom: 4px;
}
.pdv2 .pdv-rel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdv2 .pdv-rel-img .icon { width: 22px; height: 22px; color: var(--text-mute); }
.pdv2 .pdv-rel b {
  font-size: 12.5px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pdv2 .pdv-rel small { font-size: 10.8px; color: var(--text-mute); font-family: Consolas, Menlo, monospace; }
.pdv2 .pdv-rel em { font-style: normal; font-size: 15px; font-weight: 900; color: #ff3b30; }
[data-theme="dark"] .pdv2 .pdv-rel em { color: #ff6b66; }

/* 购买须知 */
.pdv2 .pdv-notice { display: flex; flex-direction: column; gap: 9px; }
.pdv2 .pdv-notice p {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  font-size: 12.8px; color: var(--text-mute); line-height: 1.65;
}
.pdv2 .pdv-notice .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* 底部购买 */
.pdv2 .pdv-bottom {
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
}
.pdv2 .pdv-btn.block { width: 100%; padding: 14px 20px; font-size: 16px; }

/* ---------- 响应式 ---------- */
@media (min-width: 901px) {
  /* 桌面：图册限高，内容卡居中收窄，避免过宽 */
  .pdv2 { max-width: 980px; margin: 0 auto; }
  .pdv2 .pd-stage { aspect-ratio: 16 / 9; border-radius: 0; }
  .pdv2 .pdv-gallery { margin-bottom: 18px; }
  .pdv2 .pdv-panel { margin: 0; border-radius: 0; padding: 22px 24px 20px; }
  .pdv2 .pdv-block { padding: 22px 24px; }
  .pdv2 .pdv-bottom { padding: 18px 24px 24px; }
  .pdv2 .pdv-gets { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .pdv2 .pdv-stage { aspect-ratio: 4 / 3; border-radius: 0; }
  .pdv2 .pdv-gallery { margin-bottom: 12px; border-radius: 0; }
  .pdv2 .pdv-panel { margin: 0; padding: 16px 14px; border-radius: 0; }
  .pdv2 .pdv-price b { font-size: 30px; }
  .pdv2 .pdv-title { font-size: 17.5px; }
  .pdv2 .pdv-block { padding: 16px 14px; }
  .pdv2 .pdv-gets { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pdv2 .pdv-get { padding: 10px 4px; }
  .pdv2 .pdv-get span { font-size: 11px; }
  .pdv2 .pdv-spec-k { width: 70px; }
  .pdv2 .pdv-thumbs { padding: 10px 12px 2px; gap: 8px; }
  .pdv2 .pd-thumb { width: 76px; }
  .pdv2 .pd-thumb img { height: 48px; }
  /* 移动端 5 张：进一步收窄，尽量一屏显示完 */
  .pdv2 .pd-thumb:first-child:nth-last-child(5),
  .pdv2 .pd-thumb:first-child:nth-last-child(5) ~ .pd-thumb { width: 62px; }
  .pdv2 .pd-thumb:first-child:nth-last-child(5) img,
  .pdv2 .pd-thumb:first-child:nth-last-child(5) ~ .pd-thumb img { height: 40px; }
  .pdv2 .pd-thumb:first-child:nth-last-child(5) span,
  .pdv2 .pd-thumb:first-child:nth-last-child(5) ~ .pd-thumb span { font-size: 10px; padding: 3px; }
  .pdv2 .pdv-rel { width: 118px; }
  .pdv2 .pdv-rel-img { height: 78px; }
}
@media (max-width: 380px) {
  .pdv2 .pdv-gets { grid-template-columns: repeat(2, 1fr); }
  .pdv2 .pdv-price b { font-size: 27px; }
  .pdv2 .pdv-btn { font-size: 14px; padding: 11px 14px; }
}

/* ============================================================
   v2.22.0 首页模板 C：单列卡片 + 动效
   1) 商品一排一个（主图在顶部，纵向卡片，单列往下排）
   2) 动效：光晕浮动 / 网格流动 / 标题流光 / 滚动入场 / 按钮流光
   ============================================================ */

/* ---------- 单列商品列表 ---------- */
.hc-list { display: flex; flex-direction: column; gap: 16px; }
.hc-item {
  position: relative; display: flex; flex-direction: column; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; min-width: 0;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s, border-color .22s;
}
.hc-item:hover {
  transform: translateY(-3px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 16px 38px rgba(20, 40, 80, .13);
}
.hc-item-link { position: absolute; inset: 0; z-index: 2; }

.hc-item .hc-cover {
  position: relative; width: 100%; height: 220px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.hc-item .hc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-item .hc-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hc-item .hc-body h3 {
  font-size: 16.5px; font-weight: 700; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-item .hc-body > p {
  font-size: 13.2px; color: var(--text-mute); margin-top: 6px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hc-item .hc-price { margin-top: 10px; }
.hc-item .hc-foot { margin-top: auto; padding-top: 14px; }

/* ---------- 动效：Hero 光晕 ---------- */
.hc-spot {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 1;
  filter: blur(60px); opacity: .5;
}
.hc-spot.s1 {
  width: 300px; height: 300px; left: 6%; top: 8%;
  background: radial-gradient(circle, rgba(var(--p-cyan-rgb),.55), transparent 70%);
  animation: hcFloat1 13s ease-in-out infinite;
}
.hc-spot.s2 {
  width: 260px; height: 260px; right: 4%; top: 22%;
  background: radial-gradient(circle, rgba(139,92,246,.5), transparent 70%);
  animation: hcFloat2 16s ease-in-out infinite;
}
@keyframes hcFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(38px, 26px) scale(1.12); }
}
@keyframes hcFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50%      { transform: translate(-32px, 30px) scale(.92); }
}

/* ---------- 动效：网格缓慢流动 ---------- */
.hc-hero-grid { animation: hcGridMove 22s linear infinite; }
@keyframes hcGridMove {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 46px 46px, 46px 46px; }
}

/* ---------- 动效：标题渐变流光 ---------- */
.hc-grad {
  background-size: 220% 100%;
  animation: hcShine 6s linear infinite;
}
@keyframes hcShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ---------- 动效：按钮流光扫过 ---------- */
.hc-btn-main.shine { position: relative; overflow: hidden; }
.hc-btn-main.shine::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  animation: hcSweep 3.6s ease-in-out infinite;
}
@keyframes hcSweep {
  0%        { left: -120%; }
  55%, 100% { left: 160%; }
}

/* ---------- 动效：滚动入场 ---------- */
/* v2.35.5：默认「可见」，不再默认隐藏
   旧写法是 opacity:0 起步，脚本再把首屏元素淡入 —— 每次打开页面内容都要空一下
   再浮上来，观感就是刷新闪烁。现在只有被脚本标记 .pending 的（首屏之外）才隐藏。 */
.js .reveal { opacity: 1; transform: none; }
.js .reveal.pending {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.js .reveal.pending.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hc-item .hc-cover { height: 190px; }
}
@media (max-width: 640px) {
  .hc-list { gap: 13px; }
  .hc-item { border-radius: 15px; }
  .hc-item .hc-cover { height: 168px; }
  .hc-item .hc-body { padding: 13px 14px 14px; }
  .hc-item .hc-body h3 { font-size: 14.8px; }
  .hc-item .hc-body > p { font-size: 12.4px; }
  .hc-spot { filter: blur(44px); opacity: .4; }
  .hc-spot.s1 { width: 220px; height: 220px; }
  .hc-spot.s2 { width: 190px; height: 190px; }
}
@media (max-width: 400px) {
  .hc-item .hc-cover { height: 148px; }
  .hc-item .hc-body h3 { font-size: 14px; }
}

/* ---------- 尊重系统「减少动画」偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hc-spot, .hc-hero-grid, .hc-grad, .hc-btn-main.shine::after { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   v2.22.0 顶部导航透明开关
   开启后初始透明，页面下滑超过阈值加 .scrolled 变为实色（毛玻璃）
   关闭悬浮导航时，导航随页面滚走，透明仅在顶部可见
   ============================================================ */
.site-header.transparent {
  background: transparent;
  border-bottom-color: transparent;
  transition: background .28s ease, border-color .28s ease, box-shadow .28s ease;
}
/* 透明态文字反白（配合深色 Hero） */
.site-header.transparent:not(.scrolled) .brand-name,
.site-header.transparent:not(.scrolled) .brand-text small,
.site-header.transparent:not(.scrolled) .nav a {
  color: #fff;
}
.site-header.transparent:not(.scrolled) .brand-text small { opacity: .8; }
.site-header.transparent:not(.scrolled) .icon-btn { color: #fff; }
.site-header.transparent:not(.scrolled) .brand-mark {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .35);
}
.site-header.transparent:not(.scrolled) .btn-primary {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
/* 滚动后：变白（浅色主题）/ 变深色（深色主题）+ 毛玻璃 */
.site-header.transparent.scrolled {
  background: rgba(255, 255, 255, .92);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 18px rgba(15, 30, 60, .08);
}
[data-theme="dark"] .site-header.transparent.scrolled {
  background: rgba(8, 13, 24, .92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}
.site-header.transparent.scrolled .brand-name,
.site-header.transparent.scrolled .nav a,
.site-header.transparent.scrolled .icon-btn { color: inherit; }
.site-header.transparent.scrolled .btn-primary {
  background: var(--brand-600); border-color: var(--brand-600); color: #fff;
}
/* 移动端关闭毛玻璃，避免卡顿 */
@media (max-width: 640px) {
  .site-header.transparent.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header.transparent { transition: none; }
}

/* ============================================================
   v2.22.0 选购页 / 模板中心 UI 重做（共用 .gp-* 组件）
   主图在顶部，移动端两列网格
   ============================================================ */
.gp-wrap { padding-bottom: 20px; }

/* ---------- 模板中心页头 ---------- */
.gp-hero {
  padding: 26px 0 22px;
  background: linear-gradient(160deg, var(--brand-50, #eff6ff), var(--surface));
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .gp-hero { background: linear-gradient(160deg, rgba(var(--p-rgb),.14), var(--surface)); }
.gp-hero h1 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 900; margin: 10px 0 0; letter-spacing: -.02em; }
.gp-hero p { margin: 8px 0 0; font-size: 13.8px; color: var(--text-mute); line-height: 1.65; max-width: 640px; }
.gp-hero-stat { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--text-mute); }
.gp-hero-stat b { font-size: 17px; font-weight: 900; color: var(--brand-600); margin-right: 3px; }
.gp-hero-stat i { width: 1px; height: 16px; background: var(--border); }

/* ---------- 选购页头部 + 步骤条 ---------- */
.gp-section { padding: 20px 0 10px; }
.gp-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 16px 0 14px;
}
.gp-head-text h1 { font-size: clamp(20px, 2.8vw, 26px); font-weight: 900; margin: 0; letter-spacing: -.01em; }
.gp-head-text p { margin: 6px 0 0; font-size: 13.5px; color: var(--text-mute); }
.gp-steps { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; flex: none; }
.gp-steps li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-mute);
}
.gp-steps li i {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-style: normal;
  font-size: 11.5px; font-weight: 800;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-mute);
}
.gp-steps li.on { color: var(--brand-600); font-weight: 700; }
.gp-steps li.on i { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.gp-steps li + li::before {
  content: ''; width: 18px; height: 1px; background: var(--border); margin-right: 2px;
}

/* ---------- 分类胶囊（横向滑动） ---------- */
.gp-cats {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scroll-snap-type: x proximity; margin-bottom: 14px;
}
.gp-cats::-webkit-scrollbar { height: 5px; }
.gp-cats::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.gp-cat {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: background .16s, color .16s, border-color .16s;
}
.gp-cat em {
  font-style: normal; font-size: 11px; font-weight: 700;
  padding: 1px 6px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-mute);
}
.gp-cat.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.gp-cat.on em { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- 加密说明 ---------- */
.gp-notice {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 15px; border-radius: 12px; margin-bottom: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.gp-notice .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand-600); }
.gp-notice b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.gp-notice p { margin: 0; font-size: 12.8px; color: var(--text-mute); line-height: 1.75; }

/* ---------- 结果条 ---------- */
.gp-bar { margin-bottom: 12px; font-size: 13px; color: var(--text-mute); }
.gp-bar b { color: var(--brand-600); font-weight: 800; }

/* ---------- 商品网格：两列，主图在顶部 ---------- */
.gp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gp-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; min-width: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.gp-card:hover {
  transform: translateY(-3px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 14px 32px rgba(20, 40, 80, .12);
}
.gp-card.sold { opacity: .72; }
.gp-link { position: absolute; inset: 0; z-index: 2; }

.gp-cover {
  position: relative; width: 100%; height: 150px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.gp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.gp-ph .icon { width: 30px; height: 30px; color: var(--text-mute); opacity: .5; }

.gp-code, .gp-chip, .gp-sold, .gp-off {
  position: absolute; z-index: 3; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.gp-code { left: 9px; top: 9px; font-family: Consolas, Menlo, monospace; background: rgba(15,25,45,.72); color: #fff; }
.gp-chip { right: 9px; top: 9px; background: rgba(var(--p-rgb),.92); color: #fff; }
.gp-sold { left: 9px; bottom: 9px; background: rgba(120,120,130,.9); color: #fff; }
.gp-off {
  left: 9px; bottom: 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55); color: #fff;
}
.gp-card.sold .gp-off { left: auto; right: 9px; }

.gp-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.gp-body h3 {
  font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-body > p {
  font-size: 12.4px; color: var(--text-mute); margin-top: 5px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.gp-price { margin-top: 9px; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.gp-price b { font-size: 21px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
.gp-price small { font-size: 13px; font-weight: 700; color: var(--price-solid); }
.gp-price s { font-size: 11.5px; color: var(--text-mute); margin-left: 5px; }
.gp-meta {
  display: flex; gap: 12px; margin-top: 8px; font-size: 11.8px; color: var(--text-mute);
}
.gp-meta span { display: inline-flex; align-items: center; gap: 4px; }
.gp-meta .icon { width: 13px; height: 13px; }

.gp-foot { margin-top: auto; padding-top: 12px; }
.gp-btn {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}
.gp-btn .icon { width: 15px; height: 15px; }

.gp-tip {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 18px;
  font-size: 12.8px; color: var(--text-mute); line-height: 1.6;
}
.gp-tip .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------- 响应式：始终保持两列 ---------- */
@media (max-width: 900px) {
  .gp-cover { height: 140px; }
}
@media (max-width: 640px) {
  .gp-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 11px; }
  .gp-cover { height: 124px; }
  .gp-body { padding: 11px 11px 12px; }
  .gp-body h3 { font-size: 13.4px; }
  .gp-body > p { font-size: 11.6px; }
  .gp-price b { font-size: 18px; }
  .gp-price s { display: none; }
  .gp-meta { gap: 9px; font-size: 11px; }
  .gp-btn { padding: 8px 8px; font-size: 12.4px; }
  .gp-btn .icon { display: none; }
  .gp-hero { padding: 20px 0 18px; }
  .gp-hero p { font-size: 13px; }
  .gp-steps li span { display: none; }
}
@media (max-width: 400px) {
  .gp-grid { gap: 9px; }
  .gp-cover { height: 110px; }
  .gp-body h3 { font-size: 12.6px; }
  .gp-price b { font-size: 16.5px; }
  .gp-code, .gp-chip { font-size: 10.2px; padding: 2px 7px; }
}

/* ============================================================
   v2.23.0 模板中心（.tc-*）/ 选购页（.pk-*）UI 重做
   模板中心：深色渐变页头 + 分类卡片网格 + 两列商品网格（已移除加密说明）
   选购页：渐变头 + 三步进度 + 单列列表卡片（左图右信息）
   ============================================================ */

/* ---------- 共用：深色渐变页头 ---------- */
.tc-hero, .pk-hero {
  position: relative; overflow: hidden;
  padding: 30px 0 34px;
  background: linear-gradient(135deg, #0f172a 0%, var(--p-deep) 55%, var(--brand-600) 100%);
  color: #fff;
}
.pk-hero { padding: 26px 0 30px; }
.tc-hero-glow, .pk-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(var(--p-cyan-rgb),.34), transparent 46%),
    radial-gradient(circle at 84% 78%, rgba(139,92,246,.30), transparent 48%);
}
.tc-hero-inner, .pk-hero-inner { position: relative; z-index: 1; }

/* 页头内面包屑反白 */
.tc-crumb, .pk-crumb { color: rgba(255, 255, 255, .62); margin-bottom: 12px; }
.tc-crumb a, .pk-crumb a { color: rgba(255, 255, 255, .72); }
.tc-crumb span, .pk-crumb span { color: rgba(255, 255, 255, .95); }
.tc-crumb .icon, .pk-crumb .icon { color: rgba(255, 255, 255, .5); }

.tc-hero h1, .pk-hero h1 {
  margin: 0; font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 900; letter-spacing: -.02em; color: #fff;
}
.tc-hero p, .pk-hero p {
  margin: 9px 0 0; font-size: 13.5px; line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

/* ---------- 页头搜索 ---------- */
.tc-search {
  display: flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 6px 6px 6px 14px;
  max-width: 480px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
}
.tc-search .icon { width: 17px; height: 17px; color: rgba(255, 255, 255, .8); flex: none; }
.tc-search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 14px; color: #fff;
}
.tc-search input::placeholder { color: rgba(255, 255, 255, .55); }
.tc-search button {
  flex: none; padding: 8px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 800; color: var(--brand-700);
  background: #fff;
}
.tc-code-result { margin-top: 12px; max-width: 480px; }

/* ---------- 选购页三步进度 ---------- */
.pk-steps {
  display: flex; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap;
}
.pk-step {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .62);
}
.pk-step i {
  width: 26px; height: 26px; border-radius: 50%; flex: none; font-style: normal;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .85);
}
.pk-step i .icon { width: 13px; height: 13px; }
.pk-step.on { color: #fff; }
.pk-step.on i { background: #fff; border-color: #fff; color: var(--brand-700); }
.pk-line { width: 26px; height: 1px; background: rgba(255, 255, 255, .32); }

/* ---------- 区块标题 ---------- */
.tc-section { padding: 22px 0 10px; }
.pk-section { padding: 20px 0 10px; }
.tc-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 6px 0 12px;
}
.tc-sec-head h2 {
  display: flex; align-items: center; gap: 7px; margin: 0;
  font-size: 16px; font-weight: 800;
}
.tc-sec-head .icon { width: 17px; height: 17px; color: var(--brand-600); }
.tc-sec-more {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 700; color: var(--brand-600);
}
.tc-count { font-size: 12.5px; color: var(--text-mute); }

/* ---------- 模板中心：分类卡片网格 ---------- */
.tc-cats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px;
}
.tc-cat {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 8px 12px; border-radius: 14px; text-align: center; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tc-cat:hover {
  transform: translateY(-2px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 10px 24px rgba(20, 40, 80, .10);
}
.tc-cat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--p-light)), var(--c2, #06b6d4));
  box-shadow: 0 6px 16px rgba(var(--p-rgb), .22);
}
.tc-cat-icon .icon { width: 20px; height: 20px; }
.tc-cat b {
  font-size: 13px; font-weight: 700; line-height: 1.3; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tc-cat em { font-style: normal; font-size: 11.5px; color: var(--text-mute); }
.tc-cat.on { border-color: var(--brand-600); box-shadow: 0 0 0 2px rgba(var(--p-rgb), .12); }
.tc-cat.on b { color: var(--brand-600); }

/* ---------- 模板中心：商品网格（两列） ---------- */
.tc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tc-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; min-width: 0;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.tc-card:hover {
  transform: translateY(-3px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 14px 32px rgba(20, 40, 80, .12);
}
.tc-link { position: absolute; inset: 0; z-index: 2; }
.tc-cover {
  position: relative; width: 100%; height: 150px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.tc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.tc-ph .icon { width: 30px; height: 30px; color: var(--text-mute); opacity: .5; }
.tc-code, .tc-off {
  position: absolute; z-index: 3; padding: 3px 9px; border-radius: 7px;
  font-size: 11px; font-weight: 800;
}
.tc-code {
  left: 9px; top: 9px; font-family: Consolas, Menlo, monospace;
  background: rgba(15, 25, 45, .72); color: #fff;
}
.tc-off {
  left: 9px; bottom: 9px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55); color: #fff;
}
.tc-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tc-chip {
  align-self: flex-start; padding: 3px 9px; border-radius: 999px; margin-bottom: 7px;
  font-size: 11px; font-weight: 700;
  background: var(--surface-2); color: var(--brand-600); border: 1px solid var(--border);
}
.tc-body h3 {
  font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tc-price { margin-top: 9px; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.tc-price b { font-size: 21px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
.tc-price small { font-size: 13px; font-weight: 700; color: var(--price-solid); }
.tc-price s { font-size: 11.5px; color: var(--text-mute); margin-left: 5px; }
.tc-foot { margin-top: auto; padding-top: 12px; }
.tc-btn {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}
.tc-btn .icon { width: 15px; height: 15px; }

/* ---------- 选购页：分类胶囊 ---------- */
.pk-cats {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; margin-bottom: 14px;
}
.pk-cats::-webkit-scrollbar { height: 5px; }
.pk-cats::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.pk-cat {
  flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
}
.pk-cat em {
  font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 6px;
  border-radius: 999px; background: var(--surface-2); color: var(--text-mute);
}
.pk-cat.on { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }
.pk-cat.on em { background: rgba(255, 255, 255, .22); color: #fff; }
.pk-bar { margin-bottom: 12px; font-size: 13px; color: var(--text-mute); }
.pk-bar b { color: var(--brand-600); font-weight: 800; }

/* ---------- 选购页：单列列表（左图右信息） ---------- */
.pk-list { display: flex; flex-direction: column; gap: 12px; }
.pk-item {
  position: relative; display: flex; align-items: stretch; gap: 12px;
  padding: 10px; border-radius: 14px; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.pk-item:hover {
  transform: translateY(-2px); border-color: var(--brand-400, var(--p-soft));
  box-shadow: 0 12px 28px rgba(20, 40, 80, .10);
}
.pk-item.sold { opacity: .7; }
.pk-link { position: absolute; inset: 0; z-index: 2; }

.pk-cover {
  position: relative; flex: none; width: 116px; height: 116px;
  border-radius: 11px; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-50, #eff6ff), var(--surface-2));
  display: grid; place-items: center;
}
.pk-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-ph { display: grid; place-items: center; width: 100%; height: 100%; }
.pk-ph .icon { width: 26px; height: 26px; color: var(--text-mute); opacity: .5; }
.pk-code, .pk-sold {
  position: absolute; z-index: 3; padding: 2px 7px; border-radius: 6px;
  font-size: 10.5px; font-weight: 800;
}
.pk-code {
  left: 6px; top: 6px; font-family: Consolas, Menlo, monospace;
  background: rgba(15, 25, 45, .72); color: #fff;
}
.pk-sold { left: 6px; bottom: 6px; background: rgba(120, 120, 130, .9); color: #fff; }

.pk-body {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  padding: 2px 2px 0 0;
}
.pk-top { display: flex; align-items: flex-start; gap: 7px; }
.pk-top h3 {
  flex: 1; min-width: 0; margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pk-chip {
  flex: none; padding: 3px 8px; border-radius: 999px;
  font-size: 10.8px; font-weight: 700;
  background: var(--surface-2); color: var(--brand-600); border: 1px solid var(--border);
}
.pk-sub {
  margin: 5px 0 0; font-size: 12.4px; color: var(--text-mute); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pk-bottom {
  margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pk-price { display: flex; align-items: baseline; gap: 2px; min-width: 0; flex-wrap: wrap; }
.pk-price b { font-size: 22px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
.pk-price small { font-size: 13px; font-weight: 700; color: var(--price-solid); }
.pk-price s { font-size: 11.5px; color: var(--text-mute); margin-left: 5px; }
.pk-btn {
  position: relative; z-index: 3; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 6px 16px rgba(255, 59, 48, .22);
}
.pk-btn .icon { width: 14px; height: 14px; }

.pk-tip {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 18px;
  font-size: 12.8px; color: var(--text-mute); line-height: 1.6;
}
.pk-tip .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .tc-cats { grid-template-columns: repeat(3, 1fr); }
  .tc-cover { height: 140px; }
}
@media (max-width: 640px) {
  .tc-hero { padding: 24px 0 28px; }
  .pk-hero { padding: 20px 0 26px; }
  .tc-hero h1, .pk-hero h1 { font-size: 22px; }
  .tc-hero p, .pk-hero p { font-size: 12.8px; }
  .tc-search { max-width: none; padding: 5px 5px 5px 12px; }
  .tc-search button { padding: 7px 16px; font-size: 13px; }
  .pk-steps { gap: 6px; margin-top: 16px; }
  .pk-line { width: 16px; }
  .pk-step i { width: 24px; height: 24px; }

  .tc-cats { grid-template-columns: repeat(2, 1fr); gap: 9px; margin-bottom: 20px; }
  .tc-cat { padding: 12px 6px 10px; border-radius: 12px; }
  .tc-cat-icon { width: 38px; height: 38px; border-radius: 11px; }
  .tc-cat-icon .icon { width: 18px; height: 18px; }
  .tc-cat b { font-size: 12.4px; }

  .tc-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 11px; }
  .tc-cover { height: 124px; }
  .tc-body { padding: 11px 11px 12px; }
  .tc-body h3 { font-size: 13.4px; }
  .tc-chip { font-size: 10.5px; padding: 2px 8px; }
  .tc-price b { font-size: 18px; }
  .tc-price s { display: none; }
  .tc-btn { padding: 8px 8px; font-size: 12.4px; }
  .tc-btn .icon { display: none; }

  .pk-list { gap: 10px; }
  .pk-item { padding: 8px; border-radius: 12px; gap: 10px; }
  .pk-cover { width: 92px; height: 92px; border-radius: 9px; }
  .pk-top h3 { font-size: 13.4px; }
  .pk-sub { font-size: 11.8px; }
  .pk-price b { font-size: 19px; }
  .pk-price s { display: none; }
  .pk-btn { padding: 7px 12px; font-size: 12.2px; }
  .pk-btn .icon { display: none; }
}
@media (max-width: 400px) {
  .tc-cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .tc-grid { gap: 9px; }
  .tc-cover { height: 110px; }
  .tc-body h3 { font-size: 12.6px; }
  .pk-cover { width: 80px; height: 80px; }
  .pk-top h3 { font-size: 12.6px; }
  .pk-price b { font-size: 17px; }
  .pk-btn { padding: 6px 10px; font-size: 11.8px; }
}

/* ============================================================
   v2.25.0 蓝色主题 UI（.nx-* 组件）
   配色只允许两种：
     品牌蓝   var(--brand-600) / var(--brand-700)（主色：标题、图标、价格、选中态）
     红橙渐变 #ff5a3c → #ff2d55（仅用于「购买 / 下单」类按钮）
   适用于：确认订单并付款 / 选择模板 / 模板中心
   ============================================================ */

/* ---------- 页面底 ---------- */
.nx-page {
  --nx-blue: var(--brand-600); --nx-blue-d: var(--brand-700);
  --nx-r1: #ff5a3c; --nx-r2: #ff2d55;
  /* 价格色：与购买按钮同色系（v2.39.1）
     渐变用于大字价格（background-clip:text），纯色用于小字 */
  --price-a: #ff5a3c;
  --price-b: #ff2d55;
  --price-solid: #ff4438;
  --price-solid-dark: #ff7a68;

/* 价格：大字用红橙渐变（与购买按钮同色），小字用纯色 */
.prx-grad {
  background: linear-gradient(135deg, var(--price-a), var(--price-b));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
[data-theme="dark"] .prx-grad {
  background: linear-gradient(135deg, #ff7a68, #ff5a7a);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
  background: var(--surface-2); padding-bottom: 12px;
}
.nx-wrap { padding: 0 12px; }

/* ---------- 蓝色渐变页头 ---------- */
.nx-hero {
  position: relative; overflow: hidden;
  padding: 26px 16px 30px;
  background: linear-gradient(135deg, var(--p-deep3) 0%, var(--p-deep2) 52%, var(--brand-600) 100%);
  color: #fff;
}
.nx-hero-soft { padding: 20px 16px 24px; }
.nx-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--p-soft-rgb), .38), transparent 46%),
    radial-gradient(circle at 86% 74%, rgba(var(--p-cyan-rgb), .30), transparent 50%);
}
.nx-hero-inner { position: relative; z-index: 1; }

.nx-crumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.66); }
.nx-crumb a { color: rgba(255,255,255,.78); }
.nx-crumb span { color: rgba(255,255,255,.96); }
.nx-crumb .icon { width: 12px; height: 12px; color: rgba(255,255,255,.5); }

.nx-hero h1 { margin: 12px 0 0; font-size: clamp(20px, 3.2vw, 28px); font-weight: 900; letter-spacing: -.02em; color: #fff; }
.nx-hero-lead { margin: 7px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.76); }

/* 页头统计 */
.nx-hero-stat { display: flex; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.nx-hero-stat div { display: flex; flex-direction: column; }
.nx-hero-stat b { font-size: 19px; font-weight: 900; line-height: 1.1; }
.nx-hero-stat span { font-size: 11.5px; color: rgba(255,255,255,.7); margin-top: 2px; }
.nx-hero-stat i { width: 1px; height: 26px; background: rgba(255,255,255,.22); }

/* 页头搜索 */
.nx-search {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 5px 5px 5px 14px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
}
.nx-search .icon { width: 17px; height: 17px; color: rgba(255,255,255,.8); flex: none; }
.nx-search input { flex: 1; min-width: 0; border: none; background: none; outline: none; font-size: 14px; color: #fff; font-family: inherit; }
.nx-search input::placeholder { color: rgba(255,255,255,.55); }
.nx-search button {
  flex: none; padding: 8px 20px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 13.5px; font-weight: 800; color: var(--brand-700); background: #fff; font-family: inherit;
}
.nx-code-result { margin-top: 10px; }

/* ---------- 白卡片 ---------- */
.nx-card { background: var(--surface); border-radius: 14px; margin-top: 10px; overflow: hidden; }
.nx-card-hd { display: flex; align-items: center; gap: 7px; padding: 14px 14px 13px; }
.nx-card-hd h2 { margin: 0; font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.nx-card-hd .icon { width: 16px; height: 16px; color: var(--nx-blue); }
.nx-card-hd .nx-hd-more { margin-left: auto; font-size: 12.2px; color: var(--text-mute); }
.nx-card-bd { padding: 0 14px 14px; }

/* ---------- 三步进度 ---------- */
.nx-steps {
  display: flex; align-items: center; gap: 6px; margin-top: 18px; flex-wrap: wrap;
}
.nx-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12.2px; font-weight: 600; color: rgba(255,255,255,.62); }
.nx-step i {
  width: 24px; height: 24px; border-radius: 50%; flex: none; font-style: normal;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 800;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.85);
}
.nx-step i .icon { width: 13px; height: 13px; }
.nx-step.on { color: #fff; font-weight: 800; }
.nx-step.on i { background: #fff; border-color: #fff; color: var(--nx-blue-d); }
.nx-step.done i { background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.9); color: var(--nx-blue-d); }
.nx-step-line { width: 20px; height: 1px; background: rgba(255,255,255,.3); }

/* ---------- 价格（蓝色） ---------- */
.nx-price { color: var(--price-solid); font-weight: 900; letter-spacing: -.02em; display: inline-flex; align-items: baseline; gap: 1px; flex-wrap: wrap; }
[data-theme="dark"] .nx-price { color: var(--price-solid-dark); }
.nx-price small { font-size: 12px; font-weight: 800; }
.nx-price b { font-size: 19px; }
.nx-price s { font-size: 11.5px; color: var(--text-mute); margin-left: 5px; font-weight: 400; }

/* ---------- 按钮 ---------- */
.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; font-weight: 700; font-family: inherit;
  transition: opacity .16s, transform .16s;
}
.nx-btn .icon { width: 15px; height: 15px; }
.nx-btn:active { transform: scale(.98); }
/* 蓝色主按钮 */
.nx-btn-blue { color: #fff; background: linear-gradient(135deg, var(--p-light), var(--brand-700)); }
/* 红色：仅用于购买 / 下单 */
.nx-btn-red { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff2d55); }
.nx-btn-ghost { background: var(--surface-2); color: var(--text-soft); border-color: var(--border); }
.nx-btn-block { display: flex; width: 100%; }
.nx-btn-lg { padding: 13px 20px; font-size: 15.5px; border-radius: 12px; }

/* ---------- 商品行：左图右信息 ---------- */
.nx-row { display: flex; gap: 11px; align-items: stretch; padding: 11px 0; border-top: 1px solid var(--border); }
.nx-row:first-child { border-top: none; }
.nx-row-img {
  position: relative; flex: none; width: 84px; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, var(--surface-2)); display: grid; place-items: center;
}
.nx-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-row-img .icon { width: 24px; height: 24px; color: var(--nx-blue); opacity: .45; }
.nx-row-tag {
  position: absolute; left: 0; top: 0; z-index: 2;
  padding: 2px 7px; border-radius: 10px 0 10px 0;
  font-size: 10px; font-weight: 800; color: #fff;
  background: rgba(15,25,45,.7); font-family: Consolas, Menlo, monospace;
}
.nx-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-row-title {
  margin: 0; font-size: 13.8px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nx-row-sku { margin-top: 4px; font-size: 11.8px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-row-bot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nx-sold { padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--text-mute); }

/* ---------- 可勾选商品（下单页） ---------- */
.nx-pick { display: flex; gap: 10px; align-items: stretch; padding: 11px 0; border-top: 1px solid var(--border); cursor: pointer; }
.nx-pick:first-child { border-top: none; }
.nx-pick input { position: absolute; opacity: 0; pointer-events: none; }
.nx-pick-dot {
  align-self: center; flex: none; width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid var(--border-strong, var(--border)); background: var(--surface);
  display: grid; place-items: center; transition: border-color .16s, background .16s;
}
.nx-pick-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff;
  transform: scale(0); transition: transform .16s;
}
.nx-pick.on .nx-pick-dot { border-color: var(--nx-blue); background: var(--nx-blue); }
.nx-pick.on .nx-pick-dot::after { transform: scale(1); }
.nx-pick.disabled { opacity: .55; cursor: not-allowed; }
.nx-pick .nx-row-img { width: 74px; }
.nx-pick-body .nx-row-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-pick-body .nx-row-sku { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-pick-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nx-pick-side { flex: none; align-self: center; }

/* ---------- 信息行（左标签右内容） ---------- */
.nx-line { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 13.2px; }
.nx-line:first-child { border-top: none; }
.nx-line-k { flex: none; width: 76px; color: var(--text-mute); font-size: 12.8px; }
.nx-line-v { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.nx-line-v.strong { font-weight: 800; }

/* ============================================================
   v2.35.3 订单信息重做：去掉堆叠的灰色分隔条，改为轻卡片行
   ============================================================ */
.nx-order { display: flex; flex-direction: column; gap: 10px; }

/* 单条信息：灰底圆角行，不再用横线堆叠 */
.nx-order-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); font-size: 13.2px;
}
.nx-order-row-k { flex: none; width: 68px; color: var(--text-mute); font-size: 12.8px; }
.nx-order-row-v {
  flex: 1; min-width: 0; text-align: right; font-weight: 700; color: var(--text);
  overflow-wrap: anywhere;
}
.nx-order-row-v.muted { font-weight: 400; color: var(--text-mute); }
.nx-order-row-v.price { color: var(--price-solid); font-weight: 900; }
[data-theme="dark"] .nx-order-row-v.price { color: var(--price-solid-dark); }

/* 支付方式块：整块卡片，内部按钮之间只留细缝 */
.nx-order-pay { padding: 0; background: none; display: block; }
.nx-order-pay-hd {
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px 10px; font-size: 12.8px; color: var(--text-mute);
}
.nx-order-pay-hd .icon { width: 15px; height: 15px; }

/* 支付方式按钮：独立小卡，选中时品牌蓝描边 + 淡蓝底 */
.nx-pays { display: flex; flex-direction: column; gap: 8px; }
.nx-pay {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface-2);
  cursor: pointer; text-align: left; font-size: 13.5px; font-family: inherit;
  color: var(--text-soft); transition: border-color .16s, background .16s;
}
.nx-pay.active {
  border-color: var(--nx-blue); background: rgba(var(--p-rgb),.08);
}
[data-theme="dark"] .nx-pay.active { border-color: var(--p-soft); background: rgba(var(--p-soft-rgb),.12); }
.nx-pay.active .nx-pay-name { color: var(--nx-blue); font-weight: 800; }
[data-theme="dark"] .nx-pay.active .nx-pay-name { color: var(--p-soft-text); }

/* 底部说明：只保留一条，弱化视觉 */
.nx-tip {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 12px;
  padding: 10px 12px; border-radius: 10px;
  background: transparent; border: 1px dashed var(--border);
  font-size: 12px; line-height: 1.6; color: var(--text-mute);
}
.nx-tip .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--nx-blue); opacity: .8; }
.nx-tip.warn { background: rgba(var(--p-rgb),.08); border-style: solid; border-color: rgba(var(--p-rgb),.28); color: var(--nx-blue-d); }
[data-theme="dark"] .nx-tip.warn { background: rgba(var(--p-soft-rgb),.12); color: var(--p-soft-text); }

/* ---------- 支付方式（蓝色选中） ---------- */
/* 支付方式图标底色（品牌色） */
.nx-pay-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-size: 16px; font-weight: 800; line-height: 1; letter-spacing: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.nx-pay.wechat .nx-pay-ico { background: #22c55e; }
.nx-pay.alipay .nx-pay-ico { background: #1677ff; }
.nx-pay-name { flex: 1; min-width: 0; font-weight: 600; }
.nx-pay-note {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 11.5px; color: var(--text-mute); font-weight: 400; line-height: 1.4;
}
.nx-pay-check {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--border-strong, var(--border)); display: grid; place-items: center;
}
.nx-pay-check::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--nx-blue); transform: scale(0); transition: transform .16s;
}
.nx-pay.active .nx-pay-check { border-color: var(--nx-blue); }
.nx-pay.active .nx-pay-check::after { transform: scale(1); }
.nx-pay.active .nx-pay-name { color: var(--nx-blue); font-weight: 800; }
[data-theme="dark"] .nx-pay.active .nx-pay-name { color: var(--p-soft); }

/* 覆盖旧 .pay-method 的四边边框与底色 */
.nx-pay.pay-method, .nx-pay.pay-method.active {
  border: none; border-top: 1px solid var(--border);
  background: transparent; border-radius: 0; padding: 12px 0; justify-content: flex-start;
}
[data-theme="dark"] .nx-pay.pay-method, [data-theme="dark"] .nx-pay.pay-method.active { background: transparent; }
.nx-pick.choose-item, .nx-pick.choose-item.active, .nx-pick.choose-item.disabled {
  border: none; background: transparent; padding: 11px 0; border-radius: 0; gap: 10px;
}
[data-theme="dark"] .nx-pick.choose-item.active { background: transparent; }

/* ---------- 输入框 ---------- */
.nx-field { padding-top: 12px; }
.nx-field-label { display: block; font-size: 12.5px; color: var(--text-mute); margin-bottom: 6px; }
.nx-field-label .req { color: var(--nx-blue); }
.nx-input {
  width: 100%; padding: 11px 12px; border-radius: 10px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
}
.nx-input:focus { outline: none; border-color: var(--nx-blue); background: var(--surface); }

/* ---------- 提示条 ---------- */
.nx-tip {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 12.2px; line-height: 1.6; background: var(--surface-2); color: var(--text-mute);
}
.nx-tip .icon { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--nx-blue); }
.nx-tip.warn { background: rgba(var(--p-rgb),.10); color: var(--nx-blue-d); }
[data-theme="dark"] .nx-tip.warn { background: rgba(var(--p-soft-rgb),.14); color: var(--p-soft-text); }

/* ---------- 分类胶囊 ---------- */
.nx-cats {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 12px; margin-top: 10px; background: var(--surface); border-radius: 14px;
}
.nx-cats::-webkit-scrollbar { display: none; }
.nx-cat {
  flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text-soft); border: 1px solid transparent;
}
.nx-cat em { font-style: normal; font-size: 11px; font-weight: 700; padding: 0 6px; border-radius: 999px; background: rgba(0,0,0,.06); color: var(--text-mute); }
[data-theme="dark"] .nx-cat em { background: rgba(255,255,255,.1); }
.nx-cat.on { background: rgba(var(--p-rgb),.12); color: var(--nx-blue); border-color: var(--nx-blue); font-weight: 800; }
.nx-cat.on em { background: rgba(var(--p-rgb),.18); color: var(--nx-blue); }
[data-theme="dark"] .nx-cat.on { background: rgba(var(--p-soft-rgb),.16); color: var(--p-soft-text); border-color: var(--p-soft); }

/* ---------- 分类九宫格（蓝色渐变图标） ---------- */
.nx-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 12px; }
.nx-cat-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 2px; text-align: center; min-width: 0; }
.nx-cat-cell-ico {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--p-light)), var(--c2, var(--brand-700)));
  box-shadow: 0 6px 14px rgba(var(--p-rgb),.22);
}
.nx-cat-cell-ico .icon { width: 20px; height: 20px; }
.nx-cat-cell b { font-size: 12.2px; font-weight: 600; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-cat-cell em { font-style: normal; font-size: 10.5px; color: var(--text-mute); }
.nx-cat-cell.on b { color: var(--nx-blue); font-weight: 800; }
[data-theme="dark"] .nx-cat-cell.on b { color: var(--p-soft-text); }

/* ---------- 商品两列网格 ---------- */
/* 上方与标题卡片保持 10px 间距，避免两块白卡粘连 */
/* 标题卡与上方区块的间距 */
.nx-gap { margin-top: 10px; }
.nx-card-flat { margin-top: 0; }
/* 网格上内边距 = 标题卡与商品卡之间的留白，注意移动端媒体查询里也要保留 */
.nx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px 12px 14px; }
.nx-cell {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 14px; overflow: hidden; min-width: 0;
  border: 1px solid var(--border);
}
.nx-cell-link { position: absolute; inset: 0; z-index: 2; }
.nx-cell-img {
  position: relative; width: 100%; height: 150px; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, var(--surface-2)); display: grid; place-items: center;
}
.nx-cell-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-cell-img .icon { width: 28px; height: 28px; color: var(--nx-blue); opacity: .4; }
.nx-cell-code {
  position: absolute; left: 8px; top: 8px; z-index: 3;
  padding: 3px 8px; border-radius: 7px; font-size: 10px; font-weight: 800;
  background: rgba(15,25,45,.72); color: #fff; font-family: Consolas, Menlo, monospace;
}
.nx-cell-off {
  position: absolute; right: 8px; top: 8px; z-index: 3;
  padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800;
  background: rgba(var(--p-rgb),.92); color: #fff;
}
.nx-cell-bd { padding: 10px 11px 12px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.nx-cell-title {
  margin: 0; font-size: 13.2px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px;
}
.nx-cell-price { margin-top: 6px; }
.nx-cell-price b { font-size: 18px; }
.nx-cell-price s { font-size: 11px; color: var(--text-mute); margin-left: 4px; font-weight: 400; }
.nx-cell-meta { margin-top: 5px; display: flex; gap: 10px; font-size: 11px; color: var(--text-mute); }
.nx-cell-buy {
  position: relative; z-index: 3; margin-top: auto; padding-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 12.8px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
}
.nx-cell-buy .icon { width: 14px; height: 14px; }
/* 售罄态：卡片变淡，按钮改灰色 */
.nx-cell.sold { opacity: .72; }
.nx-cell-buy-off {
  background: var(--surface-2); color: var(--text-mute);
  border: 1px solid var(--border);
}
.nx-cell-sold {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 800;
  background: rgba(120, 120, 130, .92); color: #fff;
}
/* 卡片内分类小字 */
.nx-cell-sku {
  margin-top: 4px; font-size: 11px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- 底部固定结算栏 ---------- */
.nx-footbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 18px rgba(15,30,60,.08);
}
.nx-footbar-info { flex: 1; min-width: 0; }
.nx-footbar-info .nx-fb-label { font-size: 11.5px; color: var(--text-mute); }
.nx-footbar-info .nx-fb-price { margin-top: 1px; }
.nx-footbar-info .nx-fb-price b { font-size: 22px; }
.nx-footbar .nx-btn { flex: none; min-width: 130px; }
.nx-has-footbar { padding-bottom: 84px; }

/* ---------- 付款码不溢出 ---------- */
.qr-box { max-width: 100%; overflow: hidden; }
.qr, .qr-dynamic { max-width: 100%; }
.qr canvas, .qr img { max-width: 100%; height: auto; }
@media (max-width: 400px) { .qr, .qr-dynamic { width: 170px; height: 170px; } }

/* ---------- 响应式 ---------- */
@media (max-width: 640px) {
  .nx-hero { padding: 20px 14px 24px; }
  .nx-hero h1 { font-size: 21px; }
  .nx-hero-lead { font-size: 12.5px; }
  .nx-row-img { width: 76px; }
  .nx-pick .nx-row-img { width: 66px; }
  .nx-row-title { font-size: 13.2px; }
  .nx-price b { font-size: 17px; }
  .nx-line-k { width: 68px; }
  .nx-order-row { padding: 11px 12px; border-radius: 11px; }
  .nx-order-row-k { width: 62px; }
  .nx-order-pay-hd { padding: 0 12px 9px; }
  .nx-pay { padding: 11px 12px; }
  .nx-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 8px; }
  .nx-cat-cell-ico { width: 38px; height: 38px; border-radius: 11px; }
  .nx-cat-cell-ico .icon { width: 17px; height: 17px; }
  .nx-cat-cell b { font-size: 11.2px; }
  .nx-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 9px; padding: 14px 10px 12px; }
  .nx-cell-img { height: 124px; }
  .nx-cell-title { font-size: 12.4px; min-height: 36px; }
  .nx-cell-price b { font-size: 16px; }
  .nx-cell-price s { display: none; }
  .nx-cell-meta { gap: 8px; font-size: 10.5px; }
  .nx-cell-buy { font-size: 12px; padding: 7px 8px; }
  .nx-cell-buy .icon { display: none; }
  .nx-footbar .nx-btn { min-width: 116px; font-size: 14px; }
  .nx-btn { font-size: 13.5px; padding: 9px 14px; }
}
@media (max-width: 380px) {
  .nx-grid { gap: 8px; padding: 12px 8px 10px; }
  .nx-cell-img { height: 108px; }
  .nx-cell-title { font-size: 11.8px; }
  .nx-row-img { width: 66px; }
  .nx-pick .nx-row-img { width: 58px; }
  .nx-pick-dot { width: 17px; height: 17px; }
}

/* ============================================================
   v2.27.0 首页科技风主题（.ht-*）
   深色科技底 + 网格/扫描线 + 光晕浮动 + 玻璃拟态 + 霓虹描边 +
   渐变流光标题 + 终端代码块 + 滚动入场 + 数字滚动
   配色：品牌蓝 var(--brand-600) / 科技青 var(--p-cyan2)，购买按钮沿用红橙渐变
   ============================================================ */

/* ---------- 滚动入场 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
/* JS 失效时兜底显示，避免整页空白 */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Hero ---------- */
.ht-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 56px 0 60px;
  background: radial-gradient(120% 90% at 50% 0%, var(--p-deep3) 0%, #071634 58%, #050c1c 100%);
  color: #fff;
}
.ht-hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--p-rgb), .40), transparent 45%),
    radial-gradient(circle at 82% 72%, rgba(var(--p-cyan2-rgb), .26), transparent 48%);
  animation: htFloat 14s ease-in-out infinite alternate;
}
@keyframes htFloat {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
/* 科技网格 */
.ht-grid {
  position: absolute; inset: -20% -20% -10% -20%; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--p-soft-rgb), .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--p-soft-rgb), .13) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 34%, #000 0%, transparent 72%);
  animation: htGridMove 22s linear infinite;
}
@keyframes htGridMove {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 46px 46px, 46px 46px; }
}
/* 扫描线 */
.ht-scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  opacity: .5;
}
/* 光球 */
.ht-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); pointer-events: none; }
.ht-orb.o1 { width: 300px; height: 300px; left: -70px; top: -60px; background: rgba(var(--p-rgb), .40); animation: htFloat2 11s ease-in-out infinite alternate; }
.ht-orb.o2 { width: 250px; height: 250px; right: -50px; top: 24%; background: rgba(var(--p-cyan2-rgb), .28); animation: htFloat2 15s ease-in-out infinite alternate-reverse; }
.ht-orb.o3 { width: 200px; height: 200px; left: 42%; bottom: -80px; background: rgba(139, 92, 246, .24); animation: htFloat2 13s ease-in-out infinite alternate; }
@keyframes htFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(26px, -22px) scale(1.14); }
}

.ht-hero-inner { position: relative; z-index: 2; text-align: center; }

/* 玻璃徽标 */
.ht-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.ht-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--p-cyan2); box-shadow: 0 0 0 0 rgba(var(--p-cyan2-rgb), .7);
  animation: htPulse 1.8s ease-out infinite;
}
@keyframes htPulse {
  0%   { box-shadow: 0 0 0 0 rgba(var(--p-cyan2-rgb), .7); }
  70%  { box-shadow: 0 0 0 9px rgba(var(--p-cyan2-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--p-cyan2-rgb), 0); }
}

/* 标题 */
.ht-title {
  margin: 18px 0 0; font-weight: 900; letter-spacing: -.03em; line-height: 1.15;
  font-size: clamp(30px, 6.4vw, 56px); color: #fff;
}
.ht-title-line { display: block; }
.ht-grad {
  display: block; margin-top: 4px;
  background: linear-gradient(100deg, var(--p-soft) 0%, var(--p-cyan2) 42%, #a78bfa 72%, var(--p-soft) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: htShine 6s linear infinite;
}
@keyframes htShine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

.ht-lead {
  margin: 16px auto 0; max-width: 620px;
  font-size: clamp(13.5px, 2.2vw, 16px); line-height: 1.75;
  color: rgba(255, 255, 255, .74);
}

/* 搜索：玻璃胶囊 */
.ht-search {
  display: flex; align-items: center; gap: 8px;
  max-width: 520px; margin: 26px auto 0;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(10px);
  transition: border-color .2s, box-shadow .2s;
}
.ht-search:focus-within {
  border-color: rgba(var(--p-cyan2-rgb), .65);
  box-shadow: 0 0 0 4px rgba(var(--p-cyan2-rgb), .14);
}
.ht-search .icon { width: 18px; height: 18px; color: rgba(255, 255, 255, .8); flex: none; }
.ht-search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  font-size: 14.5px; color: #fff; font-family: inherit;
}
.ht-search input::placeholder { color: rgba(255, 255, 255, .5); }
.ht-search button {
  flex: none; padding: 9px 22px; border: none; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 800; font-family: inherit;
  color: #052e5c; background: linear-gradient(135deg, #7dd3fc, var(--p-cyan2));
}
.ht-code-result { max-width: 520px; margin: 12px auto 0; }

/* 按钮组 */
.ht-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.ht-btn-main, .ht-btn-ghost {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 26px; border-radius: 12px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.ht-btn-main .icon, .ht-btn-ghost .icon { width: 17px; height: 17px; }
.ht-btn-main {
  color: #fff; border: none;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 10px 26px rgba(255, 45, 85, .30);
}
.ht-btn-ghost {
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .20);
  backdrop-filter: blur(8px);
}
/* 流光扫过 */
.shine::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: htSlide 3.4s ease-in-out infinite;
}
@keyframes htSlide {
  0%   { left: -60%; }
  55%  { left: 120%; }
  100% { left: 120%; }
}

/* ---------- 终端代码块 ---------- */
.ht-term {
  max-width: 620px; margin: 28px auto 0; text-align: left;
  border-radius: 12px; overflow: hidden;
  background: rgba(4, 12, 28, .78);
  border: 1px solid rgba(var(--p-soft-rgb), .28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.ht-term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; background: rgba(255, 255, 255, .05);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ht-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.ht-term-bar i:first-child { background: #ff5f57; }
.ht-term-bar i:nth-child(2) { background: #ffbd2e; }
.ht-term-bar i:nth-child(3) { background: #28c840; }
.ht-term-bar span { margin-left: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .55); font-family: Consolas, Menlo, monospace; }
.ht-term-body {
  margin: 0; padding: 13px 15px; overflow-x: auto;
  font-size: 12.3px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  font-family: Consolas, Menlo, "Courier New", monospace;
  color: rgba(255, 255, 255, .82);
}
.ht-term-body .c-cmt { color: rgba(148, 163, 184, .8); }
.ht-term-body .c-key { color: var(--p-cyan2); font-weight: 700; }
.ht-term-body .c-ok  { color: #4ade80; font-weight: 700; }

/* ---------- 统计 ---------- */
.ht-stats { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 30px; }
.ht-stat { display: flex; flex-direction: column; align-items: center; }
.ht-stat b {
  font-size: 27px; font-weight: 900; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--p-soft-text), var(--p-cyan2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ht-stat span { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .62); }
.ht-stat-sep { width: 1px; height: 30px; background: rgba(255, 255, 255, .18); }

/* ---------- 区块 ---------- */
.ht-section { position: relative; padding: 46px 0; }
.ht-section-soft { background: var(--surface-2); overflow: hidden; }
[data-theme="dark"] .ht-section-soft { background: rgba(255, 255, 255, .03); }
.ht-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(var(--p-rgb), .22) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}
.ht-section-soft .container { position: relative; z-index: 1; }

.ht-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.ht-head-center { justify-content: center; text-align: center; }
.ht-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 9px;
  font-size: 11.8px; font-weight: 800; letter-spacing: .02em;
  color: var(--brand-600); background: rgba(var(--p-rgb), .10);
  border: 1px solid rgba(var(--p-rgb), .22);
}
[data-theme="dark"] .ht-eyebrow { color: var(--p-soft-text); background: rgba(var(--p-soft-rgb), .14); border-color: rgba(var(--p-soft-rgb), .28); }
.ht-eyebrow .icon { width: 13px; height: 13px; }
.ht-head h2 { margin: 0; font-size: clamp(19px, 3vw, 26px); font-weight: 900; letter-spacing: -.02em; }
.ht-more {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 13px; font-weight: 700; color: var(--brand-600);
}
[data-theme="dark"] .ht-more { color: var(--p-soft-text); }
.ht-more .icon { width: 14px; height: 14px; }

/* ---------- 商品列表（一排一个） ---------- */
.ht-list { display: flex; flex-direction: column; gap: 14px; }
.ht-item {
  position: relative; display: flex; gap: 16px; align-items: stretch;
  padding: 14px; border-radius: 16px; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.ht-item:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--p-rgb), .45);
  box-shadow: 0 18px 40px rgba(15, 40, 90, .14);
}
/* 霓虹描边光晕 */
.ht-item-glow {
  position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(var(--p-cyan2-rgb), .16) 50%, transparent 70%);
  opacity: 0; transition: opacity .28s;
}
.ht-item:hover .ht-item-glow { opacity: 1; }
.ht-item-link { position: absolute; inset: 0; z-index: 3; }

.ht-cover {
  position: relative; flex: none; width: 208px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, var(--surface-2));
  display: grid; place-items: center; min-height: 128px;
}
.ht-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-cover .cover-ph { display: grid; place-items: center; gap: 6px; padding: 10px; text-align: center; }
.ht-cover .cover-ph .icon { width: 30px; height: 30px; color: var(--brand-600); opacity: .5; }
.ht-cover .cover-ph span { font-size: 11.5px; color: var(--text-mute); }
.ht-code, .ht-cat-chip {
  position: absolute; z-index: 2; padding: 3px 9px; border-radius: 7px;
  font-size: 10.5px; font-weight: 800;
}
.ht-code {
  left: 8px; top: 8px; font-family: Consolas, Menlo, monospace;
  background: rgba(5, 12, 28, .78); color: #67e8f9;
  border: 1px solid rgba(var(--p-cyan2-rgb), .35);
}
.ht-cat-chip { right: 8px; top: 8px; background: rgba(var(--p-rgb), .92); color: #fff; }

.ht-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ht-body h3 { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.45; }
.ht-body > p { margin: 6px 0 0; font-size: 13.2px; color: var(--text-mute); line-height: 1.6; }
.ht-price { margin-top: 10px; display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.ht-price b { font-size: 24px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
[data-theme="dark"] .ht-price b { color: var(--price-solid-dark); }
.ht-price small { font-size: 14px; font-weight: 800; color: var(--price-solid); }
[data-theme="dark"] .ht-price small { color: var(--price-solid-dark); }
.ht-price s { font-size: 12px; color: var(--text-mute); margin-left: 6px; font-weight: 400; }
.feat-title { margin-top: 12px; font-size: 11.8px; font-weight: 800; color: var(--text-mute); letter-spacing: .04em; }
.ht-feat { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 5px; }
.ht-feat li { display: flex; align-items: flex-start; gap: 6px; font-size: 12.6px; color: var(--text-soft); line-height: 1.5; }
.ht-feat .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; color: #22c55e; }
.ht-foot { margin-top: auto; padding-top: 14px; display: flex; gap: 9px; flex-wrap: wrap; }
.ht-btn-outline, .ht-btn-buy {
  position: relative; z-index: 4;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700;
}
.ht-btn-outline .icon, .ht-btn-buy .icon { width: 15px; height: 15px; }
.ht-btn-outline { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.ht-btn-buy { color: #fff; background: linear-gradient(135deg, #ff5a3c, #ff2d55); }

/* ---------- 优势卡片 ---------- */
.ht-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ht-feat-card {
  position: relative; padding: 20px 16px; border-radius: 16px; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .22s, box-shadow .22s;
}
.ht-feat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(15, 40, 90, .14); }
.ht-feat-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--p-cyan2), transparent);
  opacity: .8;
}
.ht-feat-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px;
  color: #fff; background: linear-gradient(135deg, var(--p-light), var(--brand-700));
  box-shadow: 0 8px 18px rgba(var(--p-rgb), .28);
}
.ht-feat-icon .icon { width: 21px; height: 21px; }
.ht-feat-card b { display: block; font-size: 14.5px; font-weight: 800; }
.ht-feat-card p { margin: 7px 0 0; font-size: 12.6px; line-height: 1.65; color: var(--text-mute); }

/* ---------- 底部 CTA ---------- */
.ht-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 40px 24px; border-radius: 20px;
  background: radial-gradient(120% 120% at 50% 0%, var(--p-deep3), #071634 70%);
  color: #fff;
}
.ht-cta-glow {
  position: absolute; inset: -40% -10% auto -10%; height: 200%;
  background: radial-gradient(circle at 50% 0%, rgba(var(--p-cyan2-rgb), .30), transparent 60%);
  animation: htFloat 12s ease-in-out infinite alternate; pointer-events: none;
}
.ht-cta h2 { position: relative; margin: 0; font-size: clamp(20px, 3.4vw, 28px); font-weight: 900; letter-spacing: -.02em; }
.ht-cta p { position: relative; margin: 10px 0 0; font-size: 13.5px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.ht-cta-actions { position: relative; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ht-cta-wx {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0;
  font-size: 12.5px; color: rgba(255, 255, 255, .66);
}
.ht-cta-wx .icon { width: 14px; height: 14px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .ht-feats { grid-template-columns: repeat(2, 1fr); }
  .ht-cover { width: 180px; }
}
@media (max-width: 640px) {
  .ht-hero { padding: 38px 0 44px; }
  .ht-title { font-size: 27px; }
  .ht-lead { font-size: 13px; }
  .ht-search { max-width: none; margin-top: 20px; padding: 5px 5px 5px 14px; }
  .ht-search button { padding: 8px 18px; font-size: 13.5px; }
  .ht-actions { gap: 9px; margin-top: 20px; }
  .ht-btn-main, .ht-btn-ghost { padding: 11px 20px; font-size: 14px; }
  .ht-term { margin-top: 22px; }
  .ht-term-body { font-size: 11.6px; }
  .ht-stats { gap: 18px; margin-top: 24px; }
  .ht-stat b { font-size: 22px; }
  .ht-stat-sep { height: 24px; }

  .ht-section { padding: 32px 0; }
  .ht-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ht-head-center { align-items: center; }

  /* 商品卡片：窄屏转纵向，主图在顶部 */
  .ht-list { gap: 12px; }
  .ht-item { flex-direction: column; gap: 0; padding: 0; }
  .ht-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 10; border-radius: 16px 16px 0 0; }
  .ht-body { padding: 13px 14px 15px; }
  .ht-body h3 { font-size: 15px; }
  .ht-price b { font-size: 21px; }
  .ht-foot { padding-top: 12px; }
  .ht-btn-outline, .ht-btn-buy { flex: 1; padding: 10px 12px; font-size: 13px; }

  .ht-feats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ht-feat-card { padding: 16px 13px; border-radius: 14px; }
  .ht-feat-icon { width: 38px; height: 38px; margin-bottom: 10px; }
  .ht-feat-icon .icon { width: 18px; height: 18px; }
  .ht-feat-card b { font-size: 13.5px; }
  .ht-feat-card p { font-size: 12px; }

  .ht-cta { padding: 30px 18px; border-radius: 16px; }
}
@media (max-width: 380px) {
  .ht-feats { grid-template-columns: 1fr; }
  .ht-stats { gap: 14px; }
  .ht-stat b { font-size: 20px; }
  .ht-cover { aspect-ratio: 4 / 3; }
}


/* ============================================================
   v2.31.0 首页星穹版 C（.hx-*）—— 全面重做
   布局：左文案 / 右可视化（后台窗口 + 浮动卡）
   背景：极净白底 + 大面积流线曲线（SVG 矢量，缓慢流动）+ 淡蓝柔光渲染
   配色：品牌蓝 var(--brand-600) / 青 var(--p-accent) / 靛 var(--p-accent2)；购买按钮红橙渐变
   性能：曲线只做 transform 位移（GPU 合成），移动端关闭动画
   ============================================================ */

/* ---------- Hero 容器 ---------- */
/* v2.37：Hero 重做 —— 分层左对齐 + 搜索主角 + 底部渐隐融合 */
.hx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 62px 0 34px; color: var(--text);
  /* 极净白底：只在四角做极淡的蓝青渲染，避免发白又不脏 */
  background:
    radial-gradient(80% 62% at 6% 2%, rgba(var(--p-rgb), .10), transparent 62%),
    radial-gradient(72% 58% at 96% 6%, rgba(var(--p-accent-rgb), .09), transparent 64%),
    radial-gradient(88% 66% at 60% 98%, rgba(var(--p-accent2-rgb), .08), transparent 66%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 52%, #f4f8ff 100%);
}
[data-theme="dark"] .hx-hero {
  color: #e8eefc;
  background:
    radial-gradient(80% 62% at 6% 2%, rgba(var(--p-rgb), .26), transparent 62%),
    radial-gradient(72% 58% at 96% 6%, rgba(var(--p-accent-rgb), .22), transparent 64%),
    radial-gradient(88% 66% at 60% 98%, rgba(var(--p-accent2-rgb), .22), transparent 66%),
    linear-gradient(180deg, #0b1226 0%, #0a1533 62%, #08102a 100%);
}

/* ---------- 背景：纯 CSS 彩色渲染光斑（v2.31.1 取消 SVG 曲线） ----------
   四个彩色渐变光斑（蓝 / 青 / 靛 / 浅蓝），缓慢漂移 + 缩放，
   只走 transform（GPU 合成，不产生重绘）；移动端直接隐藏只留底色渐变 */
.hx-tint {
  position: absolute; inset: -10% -6%; z-index: -3;
  pointer-events: none; overflow: hidden;
}
.hx-tint-blob {
  position: absolute; display: block; border-radius: 50%;
  will-change: transform;
  filter: blur(46px);
}
.hx-tint-blob.t1 {
  width: 42%; padding-bottom: 42%; left: -6%; top: -10%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-rgb), .26), rgba(var(--p-rgb), 0) 68%);
  animation: hxTintA 21s ease-in-out infinite alternate;
}
.hx-tint-blob.t2 {
  width: 38%; padding-bottom: 38%; right: -6%; top: 2%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-accent-rgb), .24), rgba(var(--p-accent-rgb), 0) 68%);
  animation: hxTintB 25s ease-in-out infinite alternate;
}
.hx-tint-blob.t3 {
  width: 46%; padding-bottom: 46%; left: 20%; bottom: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-accent2-rgb), .22), rgba(var(--p-accent2-rgb), 0) 70%);
  animation: hxTintA 29s ease-in-out infinite alternate-reverse;
}
.hx-tint-blob.t4 {
  width: 30%; padding-bottom: 30%; right: 16%; bottom: -8%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-cyan-rgb), .20), rgba(var(--p-cyan-rgb), 0) 72%);
  animation: hxTintB 19s ease-in-out infinite alternate-reverse;
}
@keyframes hxTintA {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8%, 6%, 0) scale(1.14); }
  100% { transform: translate3d(-6%, 11%, 0) scale(1.05); }
}
@keyframes hxTintB {
  0%   { transform: translate3d(0, 0, 0) scale(1.06); }
  50%  { transform: translate3d(-9%, 8%, 0) scale(.93); }
  100% { transform: translate3d(7%, -7%, 0) scale(1.16); }
}
/* 深色模式：光斑更亮但不刺眼 */
[data-theme="dark"] .hx-tint-blob.t1 { background: radial-gradient(circle at 50% 50%, rgba(var(--p-rgb), .40), rgba(var(--p-rgb), 0) 68%); }
[data-theme="dark"] .hx-tint-blob.t2 { background: radial-gradient(circle at 50% 50%, rgba(var(--p-accent-rgb), .34), rgba(var(--p-accent-rgb), 0) 68%); }
[data-theme="dark"] .hx-tint-blob.t3 { background: radial-gradient(circle at 50% 50%, rgba(var(--p-accent2-rgb), .32), rgba(var(--p-accent2-rgb), 0) 70%); }
[data-theme="dark"] .hx-tint-blob.t4 { background: radial-gradient(circle at 50% 50%, rgba(var(--p-cyan-rgb), .26), rgba(var(--p-cyan-rgb), 0) 72%); }

/* 极淡点阵底纹（静态） */
.hx-mesh {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(var(--p-rgb), .10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}
[data-theme="dark"] .hx-mesh {
  background-image: radial-gradient(rgba(147, 197, 253, .13) 1px, transparent 1px);
}

/* 光标跟随光晕（仅桌面端，移动端由 JS 与媒体查询双重跳过） */
.hx-cursor-glow {
  position: absolute; z-index: -1; width: 380px; height: 380px;
  left: 0; top: 0; margin: -190px 0 0 -190px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(circle, rgba(var(--p-rgb), .10), transparent 66%);
  transform: translate3d(var(--mx, 50vw), var(--my, 40vh), 0);
}
.hx-hero.cursor-active .hx-cursor-glow { opacity: 1; }

/* ---------- Hero 分层布局：桌面左对齐，移动端居中 ---------- */
.hx-hero-inner {
  position: relative; z-index: 3; text-align: left;
  max-width: 700px; margin: 0;
}
/* 底部渐隐：Hero 背景自然过渡成页面底色，与下方商品区无缝衔接 */
.hx-hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 150px;
  z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 88%);
}
/* 统计条位于渐隐层之上，保持清晰 */
.hx-hero > .container { position: relative; z-index: 3; }

/* ---------- 两栏：左文 + 右插画（v2.37.1） ---------- */
.hx-hero-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 34px; align-items: center;
}
.hx-hero-art { position: relative; }
.hx-art {
  display: block; width: 100%; height: auto;
  animation: hxArtFloat 6.5s ease-in-out infinite;
}
@keyframes hxArtFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}
/* 插画后方柔光，托住画面不让其发飘 */
.hx-hero-art::before {
  content: ''; position: absolute; inset: 8% 6% 12%; z-index: -1;
  border-radius: 50%; filter: blur(38px); opacity: .5;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-rgb), .28), transparent 70%);
}
[data-theme="dark"] .hx-hero-art::before { opacity: .42; }
/* 深色模式下插画里的浅色物件降低亮度，避免刺眼 */
[data-theme="dark"] .hx-art { opacity: .93; }
/* 窄屏回到居中：左对齐在手机上会显得空 */
@media (max-width: 820px) {
  /* 单栏：插画收起，避免在手机上把首屏拉得过长 */
  .hx-hero-cols { grid-template-columns: 1fr; gap: 0; }
  .hx-hero-art { display: none; }
  .hx-hero-inner { text-align: center; max-width: 100%; }
  .hx-hero-inner .hx-lead { margin-left: auto; margin-right: auto; }
  .hx-hero-inner .hx-search,
  .hx-hero-inner .hx-code-result { margin-left: auto; margin-right: auto; }
  .hx-hero-inner .hx-actions { justify-content: center; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .hx-hero-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; }
}
/* 尊重系统「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
  .hx-art { animation: none; }
}

/* ---------- 徽标 ---------- */
/* v2.37.2：去掉 1px 描边细线，改用柔和渐变底 + 轻投影区分层次 */
.hx-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: var(--p-deep2);
  background: linear-gradient(135deg, rgba(var(--p-rgb), .13), rgba(var(--p-accent-rgb), .11));
  box-shadow: 0 4px 14px rgba(var(--p-rgb), .12);
}
[data-theme="dark"] .hx-badge {
  color: var(--brand-200);
  background: linear-gradient(135deg, rgba(var(--p-soft-rgb), .20), rgba(var(--p-cyan-rgb), .16));
  box-shadow: none;
}
.hx-badge-ring {
  width: 9px; height: 9px; border-radius: 50%; flex: none; position: relative;
  background: var(--brand-600);
}
.hx-badge-ring::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(var(--p-rgb), .55); border-top-color: transparent;
  animation: hxSpin 1.4s linear infinite;
}
@keyframes hxSpin { to { transform: rotate(360deg); } }

/* ---------- 标题 ---------- */
.hx-title {
  margin: 22px 0 0; font-weight: 900; letter-spacing: -.035em; line-height: 1.16;
  font-size: clamp(34px, 6vw, 58px);
}
.hx-title-line { display: block; color: var(--text); }
[data-theme="dark"] .hx-title-line { color: #eef4ff; }
.hx-title-grad {
  display: block; margin-top: 6px; font-size: .62em;
  background: linear-gradient(100deg, var(--brand-600), var(--p-accent) 40%, var(--p-accent2) 70%, var(--brand-600));
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hxFlow 7s linear infinite;
}
@keyframes hxFlow { 0% { background-position: 0 50%; } 100% { background-position: 240% 50%; } }
.hx-title [data-split] span,
.hx-title span[data-split] > span {
  display: inline-block; opacity: 0; transform: translateY(.7em);
  animation: hxRise .62s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--i, 0) * .045s + .12s);
}
@keyframes hxRise { to { opacity: 1; transform: none; } }

.hx-lead {
  margin: 20px 0 0; max-width: 520px;
  font-size: clamp(13.5px, 2.1vw, 15.5px); line-height: 1.85;
  color: var(--text-mute);
}
[data-theme="dark"] .hx-lead { color: rgba(226, 238, 255, .78); }

/* ---------- 搜索 ---------- */
.hx-search {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 30px 0 0;
  padding: 7px 7px 7px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15, 40, 90, .09);
  transition: border-color .22s, box-shadow .22s;
}
/* 聚焦时外发光，强化「主角」地位 */
.hx-search:focus-within {
  border-color: rgba(var(--p-rgb), .60);
  box-shadow: 0 0 0 5px rgba(var(--p-rgb), .12), 0 14px 34px rgba(15, 40, 90, .13);
}
.hx-search-ico { display: flex; flex: none; }
.hx-search .icon { width: 19px; height: 19px; }
.hx-search input { font-size: 15px; }
.hx-search button { padding: 11px 30px; font-size: 14.5px; }
.hx-code-result { max-width: 560px; margin: 12px 0 0; }
@media (max-width: 640px) {
  .hx-search { max-width: 100%; }
  .hx-code-result { max-width: 100%; }
}
[data-theme="dark"] .hx-search { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.hx-search .icon { color: var(--text-mute); }
.hx-search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  color: var(--text); font-family: inherit;
}
.hx-search input::placeholder { color: var(--text-mute); }
.hx-search button {
  flex: none; border: none; border-radius: 999px; cursor: pointer;
  font-weight: 800; font-family: inherit; color: #fff;
  background: linear-gradient(135deg, var(--p-light), var(--brand-700));
}

/* ---------- 按钮 ---------- */
.hx-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 24px; }
.hx-btn-main, .hx-btn-ghost {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 28px; border-radius: 13px;
  font-size: 15px; font-weight: 800; font-family: inherit; cursor: pointer;
  will-change: transform;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .22s;
}
.hx-btn-main .icon, .hx-btn-ghost .icon { width: 17px; height: 17px; position: relative; z-index: 2; }
.hx-btn-main > span:last-child, .hx-btn-ghost > span:last-child { position: relative; z-index: 2; }
.hx-btn-main {
  color: #fff; border: none;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 12px 30px rgba(255, 45, 85, .34);
}
.hx-btn-main:hover { box-shadow: 0 16px 38px rgba(255, 45, 85, .46); }
.hx-btn-ghost {
  color: var(--brand-700);
  background: #fff; border: 1px solid rgba(var(--p-rgb), .28);
}
[data-theme="dark"] .hx-btn-ghost { color: var(--p-soft-text); background: rgba(255, 255, 255, .07); border-color: rgba(var(--p-soft-rgb), .30); }
.hx-btn-shine {
  position: absolute; top: 0; bottom: 0; left: -65%; width: 50%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: hxSweep 3.2s ease-in-out infinite;
}
.hx-btn-ghost .hx-btn-shine {
  background: linear-gradient(100deg, transparent, rgba(var(--p-rgb), .22), transparent);
}
@keyframes hxSweep { 0% { left: -65%; } 55%, 100% { left: 130%; } }

/* ---------- 统计条 v2.37.2：去掉全部线形装饰 ----------
   原来靠 border-top 横线 + 数字之间竖线分隔，观感像"一条带子"；
   现在不画线、不加卡片，只靠留白与字重拉开层次 */
.hx-stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 30px;
}
/* 不用卡片、不用线条：只靠留白与字重拉开层次 */
.hx-stat { text-align: center; padding: 0 6px; }
.hx-stat b {
  display: block;
  font-size: 29px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--brand-600), var(--p-accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-stat span { display: block; margin-top: 2px; font-size: 12px; color: var(--text-mute); }
@media (max-width: 640px) {
  .hx-stats { margin-top: 24px; gap: 8px; }
  .hx-stat b { font-size: 24px; }
}

/* ---------- 区块 ---------- */
.hx-section { position: relative; padding: 26px 0 50px; }
.hx-section-soft { background: var(--surface-2); }
[data-theme="dark"] .hx-section-soft { background: rgba(255, 255, 255, .03); }

.hx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.hx-head-center { justify-content: center; text-align: center; }
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 10px;
  font-size: 11.8px; font-weight: 800;
  color: var(--brand-600); background: rgba(var(--p-rgb), .10);
  border: 1px solid rgba(var(--p-rgb), .22);
}
[data-theme="dark"] .hx-eyebrow { color: var(--p-soft-text); background: rgba(var(--p-soft-rgb), .14); border-color: rgba(var(--p-soft-rgb), .28); }
.hx-eyebrow .icon { width: 13px; height: 13px; }
.hx-head h2 { margin: 0; font-size: clamp(20px, 3vw, 27px); font-weight: 900; letter-spacing: -.02em; }
.hx-more { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; font-weight: 700; color: var(--brand-600); }
[data-theme="dark"] .hx-more { color: var(--p-soft-text); }
.hx-more .icon { width: 14px; height: 14px; }

/* ---------- 商品卡片 ---------- */
.hx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; perspective: 1000px; }
.hx-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 0; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s;
  will-change: transform;
}
.hx-card:hover { box-shadow: 0 26px 56px rgba(10, 30, 70, .18); }
.hx-card-border {
  position: absolute; inset: 0; border-radius: 18px; pointer-events: none; z-index: 4;
  padding: 1px; opacity: 0; transition: opacity .3s;
  background: linear-gradient(130deg, transparent 20%, var(--p-soft) 45%, #67e8f9 55%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hx-card:hover .hx-card-border { opacity: 1; }
.hx-card-link { position: absolute; inset: 0; z-index: 5; }

.hx-card-img {
  position: relative; width: 100%; height: 168px; overflow: hidden;
  background: linear-gradient(135deg, #eff6ff, var(--surface-2));
  display: grid; place-items: center;
}
[data-theme="dark"] .hx-card-img { background: linear-gradient(135deg, rgba(var(--p-rgb), .18), var(--surface-2)); }
.hx-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hx-card-img .cover-ph .icon { width: 30px; height: 30px; color: var(--brand-600); opacity: .45; }
[data-theme="dark"] .hx-card-img .cover-ph .icon { color: var(--p-soft); }
.hx-card-code {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 7px; font-size: 10.5px; font-weight: 800;
  font-family: Consolas, Menlo, monospace;
  background: rgba(5, 14, 34, .78); color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, .32);
}
.hx-card-cat {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  background: rgba(var(--p-rgb), .92); color: #fff;
}
.hx-card-bd { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hx-card-bd h3 {
  margin: 0; font-size: 15px; font-weight: 800; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hx-card-price { margin-top: 9px; display: flex; align-items: baseline; gap: 1px; flex-wrap: wrap; }
.hx-card-price b { font-size: 23px; font-weight: 900; color: var(--price-solid); letter-spacing: -.02em; }
[data-theme="dark"] .hx-card-price b { color: var(--price-solid-dark); }
.hx-card-price small { font-size: 13.5px; font-weight: 800; color: var(--price-solid); }
[data-theme="dark"] .hx-card-price small { color: var(--price-solid-dark); }
.hx-card-price s { font-size: 12px; color: var(--text-mute); margin-left: 6px; font-weight: 400; }
.hx-card-feat { list-style: none; margin: 7px 0 0; padding: 0; display: grid; gap: 5px; }
.hx-card-feat li { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }
.hx-card-feat .icon { width: 13px; height: 13px; flex: none; margin-top: 3px; color: #22c55e; }
.hx-card-foot { margin-top: auto; padding-top: 14px; display: flex; gap: 9px; }
.hx-btn-line, .hx-btn-buy {
  position: relative; z-index: 6;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700;
}
.hx-btn-line .icon, .hx-btn-buy .icon { width: 15px; height: 15px; }
.hx-btn-line { flex: 1; background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--border); }
.hx-btn-buy {
  flex: 1.3; color: #fff; border: none;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 8px 20px rgba(255, 45, 85, .26);
}

/* ---------- 优势卡片 ---------- */
.hx-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; perspective: 1000px; }
.hx-feat {
  position: relative; padding: 22px 17px; border-radius: 18px; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s;
}
.hx-feat:hover { box-shadow: 0 24px 50px rgba(10, 30, 70, .16); }
.hx-feat-ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 13px;
  color: #fff; background: linear-gradient(135deg, var(--p-light), var(--brand-700));
  box-shadow: 0 10px 24px rgba(var(--p-rgb), .32);
}
.hx-feat-ico .icon { width: 22px; height: 22px; }
.hx-feat b { display: block; font-size: 14.5px; font-weight: 800; }
.hx-feat p { margin: 8px 0 0; font-size: 12.6px; line-height: 1.68; color: var(--text-mute); }

/* ---------- 底部 CTA ---------- */
.hx-cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 44px 26px; border-radius: 22px; color: #fff;
  background: radial-gradient(130% 130% at 50% 0%, #123a8a, #0a1e4d 62%, #050b1c);
}
.hx-cta-aura {
  position: absolute; left: 50%; top: -55%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(103, 232, 249, .26), transparent 62%);
  animation: hxGlow 12s ease-in-out infinite alternate;
}
.hx-cta h2 { position: relative; margin: 0; font-size: clamp(21px, 3.4vw, 29px); font-weight: 900; letter-spacing: -.02em; }
.hx-cta p { position: relative; margin: 11px 0 0; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .76); }
.hx-cta-actions { position: relative; display: flex; justify-content: center; gap: 13px; flex-wrap: wrap; margin-top: 24px; }
.hx-cta-wx {
  position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 17px 0 0;
  font-size: 12.5px; color: rgba(255, 255, 255, .68);
}
.hx-cta-wx .icon { width: 14px; height: 14px; }

/* ---------- 响应式：先降为单栏，再逐级压缩 ---------- */
@media (max-width: 1024px) {
}
@media (max-width: 900px) {
  .hx-feats { grid-template-columns: repeat(2, 1fr); }
  /* 移动端性能优先：关闭大面积模糊与光晕 */
  .hx-cursor-glow { display: none; }
}
@media (max-width: 640px) {
  .hx-hero { padding: 40px 0 48px; }
  .hx-title { font-size: 27px; }
  .hx-lead { font-size: 13px; }
  .hx-search { max-width: none; margin-top: 22px; padding: 5px 5px 5px 14px; }
  .hx-search button { padding: 8px 18px; font-size: 13.5px; }
  .hx-actions { gap: 10px; margin-top: 22px; }
  .hx-btn-main, .hx-btn-ghost { padding: 12px 22px; font-size: 14px; }
  .hx-stats { gap: 18px; margin-top: 24px; }
  .hx-stat b { font-size: 22px; }

  /* 光斑层移动端隐藏：blur 大面积重绘是中低端机卡顿主因，底色渐变已足够 */
  .hx-tint { display: none; }

  /* 手机上浮动卡缩小并贴边，避免溢出 */

  .hx-section { padding: 34px 0; }
  .hx-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hx-head-center { align-items: center; }

  .hx-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 11px; }
  .hx-card-img { height: 128px; }
  .hx-card-bd { padding: 11px 12px 13px; }
  .hx-card-bd h3 { font-size: 13.4px; }
  .hx-card-price b { font-size: 19px; }
  .hx-card-price s { display: none; }
  .hx-card-feat li { font-size: 12px; }
  .hx-btn-line, .hx-btn-buy { padding: 9px 10px; font-size: 12.8px; }
  .hx-btn-line .icon, .hx-btn-buy .icon { display: none; }

  .hx-feats { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .hx-feat { padding: 17px 14px; border-radius: 15px; }
  .hx-feat-ico { width: 40px; height: 40px; margin-bottom: 11px; }
  .hx-feat-ico .icon { width: 19px; height: 19px; }
  .hx-feat b { font-size: 13.5px; }
  .hx-feat p { font-size: 12px; }

  .hx-cta { padding: 30px 18px; border-radius: 17px; }
}
@media (max-width: 420px) {
  /* 窄屏：浮动卡进一步收进卡片内，避免被裁切 */
}
@media (max-width: 380px) {
  .hx-grid { grid-template-columns: 1fr !important; }
  .hx-feats { grid-template-columns: 1fr; }
  .hx-stats { gap: 14px; }
  .hx-stat b { font-size: 20px; }
}

/* 触屏设备不做 3D 倾斜与 hover 抬升 */
@media (hover: none) {
  .hx-card:hover, .hx-feat:hover { transform: none !important; }
  .hx-card-border { display: none; }
}

/* 尊重「减少动画」偏好 */
@media (prefers-reduced-motion: reduce) {
  .hx-tint-blob, .hx-cta-aura,
  .hx-badge-ring::after, .hx-btn-shine, .hx-title-grad,
  .hx-title [data-split] span, .hx-title span[data-split] > span {
    opacity: 1 !important; transform: none !important; animation: none !important;
  }
  .hx-cursor-glow { display: none; }
}

/* ============================================================
   v2.30.0 全局性能与图片加载优化
   ============================================================ */

/* 1. 图片统一按容器宽度约束 + 异步解码，避免布局抖动与解码阻塞渲染 */
img { max-width: 100%; height: auto; }
.hx-card-img img, .hc-cover img, .ht-cover img,
.em-cell-img img, .pd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 2. 移动端关闭所有毛玻璃（滚动掉帧主因之一） */
@media (max-width: 900px) {
  .pd-badges span, .hc-badge, .ht-badge, .hx-badge,
  .hc-search, .ht-search, .hx-search,
  .hc-btn-ghost, .ht-btn-ghost, .hx-btn-ghost,
  .nav.glass, .site-nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

/* 3. 移动端关闭装饰性大模糊层 */
@media (max-width: 900px) {
  .hc-spot, .ht-orb, .ht-dots { filter: none !important; }
}

/* 4. 卡片 hover 效果仅桌面端：移动端 hover 会延迟触发且触发合成层 */
@media (hover: none) {
  .hx-card:hover, .hc-card:hover, .ht-item:hover { transform: none !important; }
  .hx-card-border { display: none; }
}

/* 5. 减少动画：关闭所有装饰性循环动画 */
@media (prefers-reduced-motion: reduce) {
  .hx-tint-blob,
  .hc-spot, .ht-orb, .ht-scan, .ht-grid,
  .hx-cta-aura, .hx-badge-ring::after, .hx-btn-shine,
  .hc-title, .ht-title { animation: none !important; }
  .hc-spot, .ht-orb { display: none; }
}


/* ============================================================
   支付通道不可用时的买家指引（v2.36.2）
   接口级报错（如支付宝 IP 未加白名单）买家无能为力，
   改为给出可操作路径：联系客服 + 提供订单号
   ============================================================ */
.pay-fail {
  margin-top: 12px; padding: 13px 14px; border-radius: 12px;
  background: rgba(245, 158, 11, .10); border: 1px solid rgba(245, 158, 11, .3);
}
[data-theme="dark"] .pay-fail { background: rgba(251, 191, 36, .10); border-color: rgba(251, 191, 36, .26); }
.pay-fail-hd {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 800; color: #b45309; margin-bottom: 8px;
}
[data-theme="dark"] .pay-fail-hd { color: #fbbf24; }
.pay-fail-hd .icon { width: 16px; height: 16px; flex: none; }
.pay-fail-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; border-top: 1px dashed rgba(245, 158, 11, .3); font-size: 13px;
}
.pay-fail-row:first-child { border-top: none; }
.pay-fail-row span { flex: none; width: 62px; color: var(--text-mute); font-size: 12.5px; }
.pay-fail-row b {
  flex: 1; min-width: 0; font-weight: 800; color: var(--text);
  overflow-wrap: anywhere; cursor: pointer; user-select: all;
}
.pay-fail-row b:active { opacity: .6; }
.pay-fail-tip { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--text-mute); }
.pay-fail-detail { margin-top: 9px; font-size: 12px; }
.pay-fail-detail summary { cursor: pointer; color: var(--text-mute); outline: none; }
.pay-fail-detail code {
  display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px;
  background: var(--surface-2); color: var(--text-mute);
  font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere;
}


/* ============================================================
   「打开支付宝付款」唤起按钮（v2.36.3）
   仅在手机端 + 官方支付宝通道生成付款码成功后显示
   ============================================================ */
#btnOpenApp { font-weight: 800; letter-spacing: .01em; }
#btnOpenApp .icon { width: 17px; height: 17px; }
#btnOpenApp:active { transform: scale(.985); }


/* ============================================================
   付款成功页 ps-*（v2.39.0 新增）
   以前付款结果内联在下单页付款区下方，页面又长、买家容易看漏卡密；
   现在改为独立页面，关键信息（卡密 / 下载地址）放在最上面
   ============================================================ */
.ps-wrap { padding-top: 18px; padding-bottom: 40px; max-width: 720px; }

/* 成功提示头 */
.ps-hero {
  position: relative; overflow: hidden;
  padding: 26px 22px 22px; border-radius: 18px; text-align: center;
  background: linear-gradient(135deg, rgba(var(--p-rgb), .10), rgba(var(--p-accent-rgb), .08));
  border: 1px solid rgba(var(--p-rgb), .18);
}
.ps-hero.wait {
  background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(251, 191, 36, .08));
  border-color: rgba(245, 158, 11, .28);
}
[data-theme="dark"] .ps-hero { background: rgba(var(--p-rgb), .14); border-color: rgba(var(--p-soft-rgb), .24); }
[data-theme="dark"] .ps-hero.wait { background: rgba(245, 158, 11, .14); border-color: rgba(251, 191, 36, .26); }

.ps-hero .ps-icon {
  width: 58px; height: 58px; margin: 0 auto 14px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-600), var(--p-accent));
  box-shadow: 0 10px 26px rgba(var(--p-rgb), .32);
}
.ps-hero.wait .ps-icon {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 26px rgba(245, 158, 11, .30);
}
.ps-hero .ps-icon .icon { width: 28px; height: 28px; color: #fff; }
.ps-hero h1 { margin: 0; font-size: clamp(19px, 3.6vw, 24px); font-weight: 900; letter-spacing: -.02em; }
.ps-hero p {
  margin: 8px auto 0; max-width: 460px;
  font-size: 13px; line-height: 1.7; color: var(--text-mute);
}
.ps-hero .ps-no { margin-top: 14px; font-size: 12.5px; color: var(--text-mute); }
.ps-hero .ps-no code { font-weight: 700; color: var(--text); user-select: all; }

/* 卡片之间留白 */
.ps-wrap .card + .card { margin-top: 16px; }
@media (max-width: 640px) { .ps-wrap .card + .card { margin-top: 12px; } }
.ps-hero + .ps-card { margin-top: 16px; }
@media (max-width: 640px) { .ps-hero + .ps-card { margin-top: 12px; } }

/* 卡密 / 下载地址 */
.ps-block { margin-top: 12px; }
.ps-block:first-child { margin-top: 0; }
.ps-block > label { display: block; margin-bottom: 6px; font-size: 12.5px; color: var(--text-mute); }
.ps-secret {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 11px;
  background: var(--surface-2); border: 1px dashed var(--border);
}
.ps-secret code {
  flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700;
  color: var(--text); overflow-wrap: anywhere; user-select: all;
}
.ps-secret .btn { flex: none; }

/* 按钮组 */
.ps-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ps-acts .btn { flex: 1; justify-content: center; min-width: 130px; }

/* 订单不存在 */
.ps-empty { text-align: center; padding: 42px 24px; }
.ps-empty .icon { width: 42px; height: 42px; color: var(--text-mute); margin: 0 auto 12px; }
.ps-empty h1 { margin: 0; font-size: 19px; font-weight: 800; }
.ps-empty p { margin: 8px auto 0; max-width: 420px; font-size: 13px; color: var(--text-mute); }

@media (max-width: 640px) {
  .ps-wrap { padding-top: 12px; padding-bottom: 24px; }
  .ps-hero { padding: 22px 16px 18px; border-radius: 15px; }
  .ps-acts .btn { min-width: 0; }
}


/* ============================================================
   优惠券（v2.40.0）
   ============================================================ */
.nx-coupon { display: flex; gap: 8px; align-items: stretch; }
.nx-coupon .nx-input { flex: 1; min-width: 0; text-transform: uppercase; }
.nx-coupon .nx-btn { flex: none; padding-left: 16px; padding-right: 16px; }

.nx-coupon-msg {
  margin-top: 7px; font-size: 12.5px; line-height: 1.6;
  color: var(--text-mute);
}
.nx-coupon-msg.ok  { color: #16a34a; font-weight: 600; }
.nx-coupon-msg.err { color: #dc2626; }
[data-theme="dark"] .nx-coupon-msg.ok  { color: #4ade80; }
[data-theme="dark"] .nx-coupon-msg.err { color: #f87171; }

/* 抵扣行：用绿色突出「省钱」 */
.nx-order-row-v.coupon-cut { color: #16a34a; font-weight: 800; }
[data-theme="dark"] .nx-order-row-v.coupon-cut { color: #4ade80; }
.info-row b.cp-cut, .cp-cut { color: #16a34a; font-weight: 800; }
[data-theme="dark"] .cp-cut { color: #4ade80; }
.pay-total b { display: inline-flex; align-items: baseline; gap: 7px; }
.pay-total b s { font-size: 14px; font-weight: 400; color: var(--text-mute); }

@media (max-width: 640px) {
  .nx-coupon .nx-btn { padding-left: 13px; padding-right: 13px; }
}


/* ============================================================
   首页模板 D（画廊版 · 精美 UI）  v2.44.0
   设计语言核心是「精致」：
     · 统一 20px 大圆角 + 多层柔和阴影（近距实影 + 远距虚影）
     · 渐变标题、渐变徽章、渐变图标块
     · Hero 大面积柔光背景 + 玻璃拟态搜索卡片
     · 商品卡以大图为主，悬停放大并浮现购买浮层
   配色：墨黑文字 + 蓝青渐变点缀 + 红橙仅用于价格与购买按钮
   ============================================================ */

/* ---------- 通用 ---------- */
.md-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px 7px 13px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--p-rgb), .12), rgba(var(--p-accent-rgb), .1));
  border: 1px solid rgba(var(--p-rgb), .18);
  color: var(--brand-600);
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  box-shadow: 0 2px 8px rgba(var(--p-rgb), .08);
}
.md-badge .icon { width: 14px; height: 14px; }
.md-badge-plain {
  background: var(--surface-2, #f1f5f9);
  border-color: rgba(15, 30, 60, .06);
  color: #64748b; box-shadow: none;
}
.md-badge-light {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28);
  color: #fff; box-shadow: none;
}
[data-theme="dark"] .md-badge {
  background: linear-gradient(135deg, rgba(124, 176, 255, .16), rgba(var(--p-cyan-rgb), .12));
  border-color: rgba(124, 176, 255, .26); color: var(--p-soft-text);
}
[data-theme="dark"] .md-badge-plain { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #94a3b8; }

/* ---------- Hero：柔光球 + 大渐变标题 ---------- */
.md-hero {
  position: relative; overflow: hidden;
  padding: 82px 0 74px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fd 100%);
}
[data-theme="dark"] .md-hero { background: linear-gradient(180deg, #0c1424 0%, var(--bg, #080d18) 100%); }

/* 三团柔光：纯径向渐变，无动画无 blur（性能友好） */
.md-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.md-orb-1 {
  width: 520px; height: 520px; left: -140px; top: -180px;
  background: radial-gradient(circle, rgba(var(--p-rgb), .13), transparent 68%);
}
.md-orb-2 {
  width: 460px; height: 460px; right: -130px; top: -120px;
  background: radial-gradient(circle, rgba(var(--p-accent-rgb), .12), transparent 68%);
}
.md-orb-3 {
  width: 380px; height: 380px; left: 50%; bottom: -220px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(var(--p-accent2-rgb), .10), transparent 70%);
}
[data-theme="dark"] .md-orb { opacity: .55; }

.md-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.md-title {
  margin-top: 24px;
  font-size: clamp(38px, 6.8vw, 70px);
  font-weight: 800; line-height: 1.12; letter-spacing: -.04em;
  color: #0b1220;
}
/* 渐变标题关键词 */
.md-grad {
  background: linear-gradient(120deg, var(--brand-600) 0%, var(--p-accent) 46%, var(--p-accent2) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.md-lead {
  margin-top: 22px; max-width: 540px; margin-left: auto; margin-right: auto;
  font-size: 15.5px; line-height: 2; color: #64748b;
}
[data-theme="dark"] .md-title { color: #eaf0fa; }
[data-theme="dark"] .md-grad { background: linear-gradient(120deg, #7cb0ff 0%, var(--p-cyan) 46%, #a5b4fc 100%); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .md-lead { color: #8fa1bd; }

/* 玻璃拟态搜索卡片 */
.md-search-wrap { margin-top: 34px; }
.md-search {
  max-width: 470px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(15, 30, 60, .05), 0 12px 32px -8px rgba(15, 30, 60, .14);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.md-search:focus-within {
  border-color: rgba(var(--p-rgb), .45);
  box-shadow: 0 2px 6px rgba(var(--p-rgb), .08), 0 16px 40px -8px rgba(var(--p-rgb), .26);
}
.md-search .icon { width: 18px; height: 18px; color: #94a3b8; flex: none; }
.md-search input {
  flex: 1; min-width: 0; border: 0; background: none;
  font-size: 14.5px; color: #0b1220; font-family: inherit;
}
.md-search input::placeholder { color: #a3b0c2; }
.md-search button {
  flex: none; padding: 11px 26px; border: 0; border-radius: 11px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(var(--p-rgb), .26);
  transition: box-shadow .25s ease, transform .25s ease;
}
.md-search button:hover { box-shadow: 0 8px 20px rgba(var(--p-rgb), .34); transform: translateY(-1px); }
.md-code-result { margin: 12px auto 0; max-width: 470px; text-align: left; }
[data-theme="dark"] .md-search { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .md-search input { color: #eaf0fa; }

.md-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.md-actions-center { justify-content: center; }
.md-btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(var(--p-rgb), .24), 0 12px 28px -8px rgba(var(--p-rgb), .4);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.md-btn-main .icon { width: 17px; height: 17px; }
.md-btn-main:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(var(--p-rgb), .3), 0 20px 40px -10px rgba(var(--p-rgb), .48);
}
.md-btn-main-light {
  background: #fff; color: var(--brand-600);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1), 0 12px 28px -8px rgba(0, 0, 0, .24);
}
.md-btn-main-light:hover { color: var(--brand-700); box-shadow: 0 8px 18px rgba(0, 0, 0, .14), 0 20px 40px -10px rgba(0, 0, 0, .3); }

.md-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 14px;
  background: #fff; color: #334155;
  border: 1px solid rgba(15, 30, 60, .08);
  font-size: 15px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(15, 30, 60, .05), 0 8px 20px -8px rgba(15, 30, 60, .12);
  transition: transform .3s cubic-bezier(.16,1,.3,1), color .25s ease, border-color .25s ease;
}
.md-btn-ghost .icon { width: 17px; height: 17px; }
.md-btn-ghost:hover { color: var(--brand-600); border-color: rgba(var(--p-rgb), .35); transform: translateY(-3px); }
.md-btn-ghost-light {
  background: rgba(255, 255, 255, .14); color: #fff;
  border-color: rgba(255, 255, 255, .32); box-shadow: none;
}
.md-btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .5); }
[data-theme="dark"] .md-btn-ghost { background: var(--surface); color: #cbd6e6; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .md-btn-ghost:hover { color: var(--p-soft-text); border-color: rgba(124,176,255,.4); }

/* 数据卡：大圆角 + 多层阴影 */
.md-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 52px; text-align: left;
}
.md-stat-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 22px 22px 20px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(15, 30, 60, .05);
  box-shadow: 0 1px 3px rgba(15, 30, 60, .04), 0 10px 28px -10px rgba(15, 30, 60, .14);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.md-stat-card:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(15, 30, 60, .06), 0 18px 40px -12px rgba(15, 30, 60, .2); }
.md-stat-icon {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--p-cyan)); color: #fff;
  box-shadow: 0 4px 12px rgba(var(--p-rgb), .26); margin-bottom: 8px;
}
.md-stat-icon .icon { width: 19px; height: 19px; }
.md-stat-card b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; color: #0b1220; line-height: 1; }
.md-stat-card span { font-size: 12.5px; color: #7b8aa3; }
[data-theme="dark"] .md-stat-card { background: var(--surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .md-stat-card b { color: #eaf0fa; }

.md-ad { margin-top: 32px; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: 0 10px 28px -12px rgba(15, 30, 60, .16); }
.md-ad img { display: block; width: 100%; height: auto; }

/* ---------- 区块 ---------- */
.md-section { padding: 76px 0; }
.md-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 34px;
}
.md-head h2 {
  margin-top: 14px;
  font-size: clamp(25px, 3.4vw, 34px); font-weight: 700;
  letter-spacing: -.035em; color: #0b1220;
}
.md-head h2::after {
  content: ''; display: block; width: 64px; height: 3px; margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--p-cyan), rgba(var(--p-rgb), 0));
}
.md-head-center { justify-content: center; text-align: center; }
.md-head-center h2::after { margin-left: auto; margin-right: auto; }
.md-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: #475569;
  background: #fff; border: 1px solid rgba(15, 30, 60, .08);
  box-shadow: 0 1px 3px rgba(15, 30, 60, .05);
  transition: color .25s ease, gap .25s ease, border-color .25s ease;
}
.md-more .icon { width: 15px; height: 15px; }
.md-more:hover { color: var(--brand-600); gap: 10px; border-color: rgba(var(--p-rgb), .35); }
[data-theme="dark"] .md-head h2 { color: #eaf0fa; }
[data-theme="dark"] .md-more { background: var(--surface); color: #a9b8d0; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .md-more:hover { color: var(--p-soft-text); }

/* ---------- 商品卡：大图 + 悬停浮层 ---------- */
.md-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.md-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid rgba(15, 30, 60, .05);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 30, 60, .04), 0 10px 28px -12px rgba(15, 30, 60, .12);
  transition: transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s ease, border-color .38s ease;
}
.md-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(15, 30, 60, .06), 0 28px 56px -16px rgba(15, 30, 60, .24);
  border-color: rgba(var(--p-rgb), .2);
}
.md-item-link { position: absolute; inset: 0; z-index: 2; }

.md-cover { position: relative; aspect-ratio: 16 / 10; background: #eef3fa; overflow: hidden; }
.md-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.md-card:hover .md-cover img { transform: scale(1.08); }
.cover-ph { display: grid; place-items: center; gap: 10px; height: 100%; }
.cover-ph .icon { width: 36px; height: 36px; color: var(--brand-600); opacity: .5; }
.cover-ph span { font-size: 13px; color: #64748b; }

.md-code {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  padding: 5px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, .95); color: #0b1220;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.md-chip {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color: #fff;
  font-size: 11.5px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(var(--p-rgb), .3);
}

/* 悬停：渐变遮罩 + 购买浮层 */
.md-cover-mask {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, rgba(6, 14, 32, .1) 0%, rgba(6, 14, 32, .72) 100%);
  transition: opacity .38s ease;
}
.md-card:hover .md-cover-mask { opacity: 1; }
.md-cover-hover {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.md-card:hover .md-cover-hover { opacity: 1; transform: translateY(0); }
.md-hover-btn {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 12px; color: #fff;
  font-size: 14.5px; font-weight: 600;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 6px 18px rgba(255, 90, 60, .34);
  transition: transform .25s ease;
}
.md-hover-btn .icon { width: 16px; height: 16px; }
.md-hover-btn:hover { color: #fff; transform: scale(1.05); }
.md-hover-link {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: rgba(255, 255, 255, .9);
  transition: gap .25s ease;
}
.md-hover-link .icon { width: 15px; height: 15px; }
.md-hover-link:hover { color: #fff; gap: 9px; }

[data-theme="dark"] .md-card { background: var(--surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .md-cover { background: #16223a; }

.md-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.md-body h3 {
  font-size: 18px; font-weight: 700;
  line-height: 1.5; color: #0b1220; letter-spacing: -.02em;
}
.md-body > p {
  margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: #7b8aa3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.md-feat { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.md-feat li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.7; color: #64748b; }
.md-feat li .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--brand-600); }
[data-theme="dark"] .md-body h3 { color: #eaf0fa; }
[data-theme="dark"] .md-body > p { color: #8fa1bd; }
[data-theme="dark"] .md-feat li { color: #8fa1bd; }
[data-theme="dark"] .md-feat li .icon { color: #7cb0ff; }

.md-price-bar {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid rgba(15, 30, 60, .06);
  margin-top: 20px;
}
.md-price { display: flex; align-items: baseline; gap: 4px; }
.md-price small { font-size: 14px; color: var(--price-solid); font-weight: 700; }
.md-price b { font-size: 27px; font-weight: 800; color: var(--price-solid); letter-spacing: -.03em; }
.md-price s { font-size: 13px; color: #a3b0c2; margin-left: 5px; }
.md-sales { font-size: 12.5px; color: #94a3b8; }
.md-price-right { display: flex; align-items: center; gap: 12px; }
/* 桌面端：封面悬停浮层已有购买按钮，这里不重复显示 */
.md-btn-buy { display: none; }
[data-theme="dark"] .md-price small,
[data-theme="dark"] .md-price b { color: var(--price-solid-dark); }
[data-theme="dark"] .md-price-bar { border-top-color: rgba(255,255,255,.09); }

/* ---------- 服务保障 ---------- */
.md-assure { padding: 68px 0 80px; }
.md-assure-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.md-assure-item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 24px; border-radius: 20px;
  background: #fff; border: 1px solid rgba(15, 30, 60, .05);
  box-shadow: 0 1px 3px rgba(15, 30, 60, .04), 0 10px 28px -12px rgba(15, 30, 60, .12);
  transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s ease;
}
.md-assure-item:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(15, 30, 60, .06), 0 22px 44px -14px rgba(15, 30, 60, .2); }
.md-assure-icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-600), var(--p-cyan)); color: #fff;
  box-shadow: 0 6px 16px rgba(var(--p-rgb), .28); margin-bottom: 16px;
}
.md-assure-icon .icon { width: 22px; height: 22px; }
.md-assure-item b { font-size: 15.5px; font-weight: 700; color: #0b1220; }
.md-assure-item p { margin-top: 9px; font-size: 12.5px; line-height: 1.85; color: #7b8aa3; }
[data-theme="dark"] .md-assure-item { background: var(--surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .md-assure-item b { color: #eaf0fa; }

/* ---------- 底部 CTA ---------- */
.md-cta { padding: 84px 0 92px; }
.md-cta-inner {
  position: relative; overflow: hidden;
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 62px 40px; border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 46%, var(--p-accent) 100%);
  box-shadow: 0 12px 28px rgba(var(--p-rgb), .24), 0 32px 64px -16px rgba(var(--p-rgb), .5);
}
.md-cta-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(440px 280px at 14% 12%, rgba(255, 255, 255, .2), transparent 68%),
    radial-gradient(380px 250px at 86% 88%, rgba(255, 255, 255, .14), transparent 68%);
}
.md-cta-inner::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}
.md-cta-inner > * { position: relative; z-index: 1; }
.md-cta h2 {
  margin-top: 20px;
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 800;
  letter-spacing: -.04em; color: #fff; line-height: 1.25;
}
.md-cta-inner > p { margin-top: 16px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .82); }

.md-promise {
  list-style: none; padding: 0; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.md-promise li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 22px; position: relative;
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .92);
}
.md-promise li + li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: rgba(255, 255, 255, .3);
}
.md-promise li .icon { width: 15px; height: 15px; flex: none; color: rgba(255, 255, 255, .8); }

.md-cta-wx {
  margin-top: 30px !important;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12.5px; color: rgba(255, 255, 255, .85);
}
.md-cta-wx .icon { width: 14px; height: 14px; }
[data-theme="dark"] .md-cta-inner { background: linear-gradient(135deg, var(--p-deep2) 0%, var(--p-deep) 46%, #0369a1 100%); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .md-assure-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .md-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .md-hero { padding: 58px 0 52px; }
  .md-section { padding: 54px 0; }
  .md-assure { padding: 48px 0 58px; }
  .md-cta { padding: 58px 0 64px; }
}
@media (max-width: 640px) {
  .md-hero { padding: 40px 0 38px; }
  .md-title { margin-top: 18px; }
  .md-lead { margin-top: 16px; font-size: 14.5px; line-height: 1.9; }
  .md-search-wrap { margin-top: 26px; }
  .md-search { max-width: 100%; padding: 7px 7px 7px 16px; }
  .md-search button { padding: 10px 20px; }
  .md-actions { margin-top: 24px; gap: 10px; }
  .md-actions .md-btn-main, .md-actions .md-btn-ghost { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; }
  /* 手机端统计仍保持三列并排 */
  .md-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 34px; }
  .md-stat-card { align-items: center; text-align: center; gap: 3px; padding: 14px 8px 12px; border-radius: 16px; }
  .md-stat-icon { width: 32px; height: 32px; border-radius: 11px; margin-bottom: 5px; }
  .md-stat-icon .icon { width: 16px; height: 16px; }
  .md-stat-card b { font-size: 22px; }
  .md-stat-card span { font-size: 11px; }
  /* 商品两列：收紧卡内元素 */
  .md-grid { gap: 12px; }
  .md-card { border-radius: 16px; }
  .md-cover { aspect-ratio: 4 / 3; }
  .md-code { left: 9px; top: 9px; padding: 4px 8px; font-size: 10px; }
  .md-chip { right: 9px; top: 9px; padding: 4px 9px; font-size: 10.5px; }
  /* 触屏无 hover：隐藏悬停浮层，改用卡片底部常驻按钮 */
  .md-cover-mask, .md-cover-hover { display: none; }
  .md-body { padding: 14px 13px 14px; }
  .md-body h3 { font-size: 14.5px; line-height: 1.45; }
  .md-body > p { margin-top: 6px; font-size: 12px; line-height: 1.6; }
  .md-feat { margin-top: 10px; gap: 6px; }
  .md-feat li { font-size: 11.5px; line-height: 1.55; }
  .md-feat li .icon { width: 12px; height: 12px; margin-top: 3px; }
  .md-feat li:nth-child(n+3) { display: none; }
  .md-price-bar { padding-top: 12px; gap: 8px; margin-top: 14px; }
  .md-price small { font-size: 11.5px; }
  .md-price b { font-size: 19px; }
  .md-price s { font-size: 11px; margin-left: 3px; }
  .md-sales { font-size: 11px; }
  /* 触屏无 hover：显示常驻购买按钮 */
  .md-btn-buy {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 9px; color: #fff;
    font-size: 12.5px; font-weight: 600;
    background: linear-gradient(135deg, #ff5a3c, #ff2d55);
    box-shadow: 0 4px 12px rgba(255, 90, 60, .26);
  }
  .md-btn-buy .icon { width: 13px; height: 13px; }
  .md-price-right { gap: 8px; }
  .md-section { padding: 44px 0; }
  .md-head { margin-bottom: 24px; }
  .md-assure-inner { grid-template-columns: 1fr; gap: 14px; }
  .md-cta-inner { padding: 38px 20px; border-radius: 20px; }
  .md-promise { margin-top: 20px; gap: 10px 0; }
  .md-promise li { padding: 0 12px; font-size: 12.5px; }
  .md-promise li + li::before { display: none; }
  .md-cta-wx { padding: 7px 14px; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .md-grid { gap: 10px; }
  .md-body { padding: 12px 11px 12px; }
  .md-body h3 { font-size: 13.5px; }
  .md-feat { gap: 5px; }
  .md-feat li { font-size: 11px; }
  .md-price b { font-size: 18px; }
  /* 极窄屏：价格与按钮分行，按钮撑满更好点 */
  .md-price-bar { flex-direction: column; align-items: stretch; }
  .md-price-right { justify-content: space-between; }
  .md-btn-buy { padding: 9px 14px; }
  .md-stats { gap: 6px; }
  .md-stat-card { padding: 12px 4px 10px; }
  .md-stat-icon { width: 28px; height: 28px; }
  .md-stat-icon .icon { width: 14px; height: 14px; }
  .md-stat-card b { font-size: 19px; }
  .md-stat-card span { font-size: 10.5px; }
  .md-promise { flex-direction: column; gap: 8px; }
  .md-promise li { padding: 0; }
}
@media (max-width: 360px) {
  /* 超窄屏两列会挤到看不清，退成单列并恢复完整信息 */
  .md-grid { grid-template-columns: 1fr; gap: 18px; }
  .md-cover { aspect-ratio: 16 / 10; }
  .md-card { border-radius: 20px; }
  .md-body { padding: 20px; }
  .md-body h3 { font-size: 17px; }
  .md-body > p { font-size: 13.5px; }
  .md-feat li { font-size: 12.5px; }
  .md-feat li:nth-child(n+3) { display: flex; }
  .md-price b { font-size: 26px; }
  .md-sales { font-size: 12.5px; }
  .md-price-bar { flex-direction: row; align-items: center; }
  .md-btn-buy { padding: 11px 24px; font-size: 14px; }
  .md-btn-buy .icon { width: 16px; height: 16px; }
}


/* ============================================================
   首页模板 E（青岚版 · 绿白配色）  v2.45.0
   与 A/B/C/D 完全不同的设计语言：
     · 主色换成绿色系（翡翠绿），页面以白 / 浅绿为底
     · 圆形语言：统计为圆形徽章环，图标块全用圆形
     · 套娃卡片：外层留白包裹、内层图片独立圆角
     · 有机曲线：Hero 底部平滑波浪 SVG 过渡
   价格与购买按钮沿用红橙（与全站购买按钮同色系），主色仅用绿色
   样式前缀 .me-*，与其它模板完全隔离
   ============================================================ */

/* ---------- 通用 ---------- */
.me-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 16px 7px 13px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(5, 150, 105, .12), rgba(52, 211, 153, .1));
  border: 1px solid rgba(5, 150, 105, .18);
  color: #047857;
  font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
}
.me-pill .icon { width: 14px; height: 14px; }
.me-pill-plain { background: #f0fdf4; border-color: rgba(5, 150, 105, .12); color: #4b7c63; }
.me-pill-light {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .28); color: #fff;
}
[data-theme="dark"] .me-pill {
  background: linear-gradient(135deg, rgba(52, 211, 153, .16), rgba(110, 231, 183, .1));
  border-color: rgba(52, 211, 153, .26); color: #6ee7b7;
}
[data-theme="dark"] .me-pill-plain { background: rgba(52, 211, 153, .08); border-color: rgba(52, 211, 153, .16); color: #6ee7b7; }

/* ---------- Hero ---------- */
.me-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 118px;
  background: linear-gradient(180deg, #fbfffd 0%, #f2fbf6 55%, #ffffff 100%);
}
[data-theme="dark"] .me-hero { background: linear-gradient(180deg, #0b1512 0%, var(--bg, #080d18) 100%); }

/* 柔光椭圆：纯径向渐变，无动画无 blur */
.me-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.me-glow-1 {
  width: 560px; height: 560px; left: -170px; top: -200px;
  background: radial-gradient(circle, rgba(16, 185, 129, .14), transparent 68%);
}
.me-glow-2 {
  width: 480px; height: 480px; right: -150px; top: -140px;
  background: radial-gradient(circle, rgba(52, 211, 153, .13), transparent 68%);
}
[data-theme="dark"] .me-glow { opacity: .5; }

/* 漂浮圆点装饰 */
.me-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.me-dot-1 { width: 12px; height: 12px; left: 12%; top: 26%; background: rgba(16, 185, 129, .3); }
.me-dot-2 { width: 8px; height: 8px; right: 16%; top: 34%; background: rgba(52, 211, 153, .42); }
.me-dot-3 { width: 16px; height: 16px; right: 24%; bottom: 22%; background: rgba(5, 150, 105, .18); }
[data-theme="dark"] .me-dot { opacity: .6; }

/* 有机波浪：Hero 与下方区块的自然过渡 */
.me-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px;
  display: block; pointer-events: none;
}
.me-wave path { fill: #ffffff; }
[data-theme="dark"] .me-wave path { fill: var(--bg, #080d18); }

.me-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }

.me-title {
  margin-top: 24px;
  font-size: clamp(38px, 6.6vw, 68px);
  font-weight: 800; line-height: 1.14; letter-spacing: -.04em;
  color: #0b1220;
}
.me-grad {
  background: linear-gradient(120deg, #059669 0%, #10b981 46%, #34d399 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.me-lead {
  margin-top: 22px; max-width: 540px; margin-left: auto; margin-right: auto;
  font-size: 15.5px; line-height: 2; color: #5b7a6c;
}
[data-theme="dark"] .me-title { color: #eaf0fa; }
[data-theme="dark"] .me-grad { background: linear-gradient(120deg, #34d399 0%, #6ee7b7 46%, #a7f3d0 100%); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .me-lead { color: #8fa1bd; }

/* 搜索：白色胶囊 + 绿色聚焦光晕 */
.me-search-wrap { margin-top: 34px; }
.me-search {
  max-width: 470px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 20px;
  background: #fff;
  border: 1px solid rgba(5, 150, 105, .14);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, .06), 0 12px 30px -10px rgba(5, 150, 105, .18);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.me-search:focus-within {
  border-color: rgba(5, 150, 105, .45);
  box-shadow: 0 2px 6px rgba(5, 150, 105, .1), 0 16px 38px -8px rgba(5, 150, 105, .3);
}
.me-search .icon { width: 18px; height: 18px; color: #94a3b8; flex: none; }
.me-search input {
  flex: 1; min-width: 0; border: 0; background: none;
  font-size: 14.5px; color: #0b1220; font-family: inherit;
}
.me-search input::placeholder { color: #a3b0c2; }
.me-search button {
  flex: none; padding: 11px 28px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff;
  font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(5, 150, 105, .28);
  transition: box-shadow .25s ease, transform .25s ease;
}
.me-search button:hover { box-shadow: 0 8px 20px rgba(5, 150, 105, .36); transform: translateY(-1px); }
.me-code-result { margin: 12px auto 0; max-width: 470px; text-align: left; }
[data-theme="dark"] .me-search { background: var(--surface); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .me-search input { color: #eaf0fa; }

.me-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.me-actions-center { justify-content: center; }
.me-btn-main {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, .24), 0 12px 28px -8px rgba(5, 150, 105, .42);
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s ease;
}
.me-btn-main .icon { width: 17px; height: 17px; }
.me-btn-main:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(5, 150, 105, .3), 0 20px 40px -10px rgba(5, 150, 105, .5);
}
.me-btn-main-light {
  background: #fff; color: #047857;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1), 0 12px 28px -8px rgba(0, 0, 0, .26);
}
.me-btn-main-light:hover { color: #065f46; box-shadow: 0 8px 18px rgba(0, 0, 0, .14), 0 20px 40px -10px rgba(0, 0, 0, .32); }

.me-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px;
  background: #fff; color: #334155;
  border: 1px solid rgba(5, 150, 105, .16);
  font-size: 15px; font-weight: 600;
  box-shadow: 0 1px 3px rgba(5, 150, 105, .05), 0 8px 20px -8px rgba(5, 150, 105, .16);
  transition: transform .3s cubic-bezier(.16,1,.3,1), color .25s ease, border-color .25s ease;
}
.me-btn-ghost .icon { width: 17px; height: 17px; }
.me-btn-ghost:hover { color: #047857; border-color: rgba(5, 150, 105, .4); transform: translateY(-3px); }
.me-btn-ghost-light {
  background: rgba(255, 255, 255, .14); color: #fff;
  border-color: rgba(255, 255, 255, .32); box-shadow: none;
}
.me-btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .5); }
[data-theme="dark"] .me-btn-ghost { background: var(--surface); color: #cbd6e6; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .me-btn-ghost:hover { color: #6ee7b7; border-color: rgba(52,211,153,.4); }

/* ---------- 圆形统计徽章 ---------- */
.me-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin-top: 54px;
}
.me-stat { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.me-ring {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff;
  border: 2px solid rgba(5, 150, 105, .18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 12px 30px -10px rgba(5, 150, 105, .3);
  transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s ease;
}
.me-ring:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 4px rgba(255, 255, 255, .82), 0 12px 24px -10px rgba(5, 150, 105, .38); }
.me-ring-2 { border-color: rgba(16, 185, 129, .22); box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 12px 30px -10px rgba(16, 185, 129, .3); }
.me-ring-3 { border-color: rgba(52, 211, 153, .26); box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 12px 30px -10px rgba(52, 211, 153, .3); }
.me-ring b {
  font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(135deg, #059669, #34d399);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.me-stat-label { font-size: 12.5px; color: #5b7a6c; letter-spacing: .04em; }
[data-theme="dark"] .me-ring { background: var(--surface); border-color: rgba(52, 211, 153, .2); box-shadow: 0 0 0 3px rgba(11, 21, 18, .55), 0 6px 16px -8px rgba(0, 0, 0, .5); }
[data-theme="dark"] .me-ring b { background: linear-gradient(135deg, #34d399, #a7f3d0); -webkit-background-clip: text; background-clip: text; }
[data-theme="dark"] .me-stat-label { color: #8fa1bd; }

.me-ad { margin-top: 8px; border-radius: 24px; overflow: hidden; border: 1px solid rgba(5, 150, 105, .1); box-shadow: 0 12px 30px -14px rgba(5, 150, 105, .22); }
.me-ad img { display: block; width: 100%; height: auto; }

/* ---------- 区块 ---------- */
.me-section { padding: 72px 0; }
.me-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 34px;
}
.me-head h2 {
  margin-top: 14px;
  font-size: clamp(25px, 3.4vw, 34px); font-weight: 700;
  letter-spacing: -.035em; color: #0b1220;
}
.me-head h2::after {
  content: ''; display: block; width: 64px; height: 3px; margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, #059669, #34d399, rgba(5, 150, 105, 0));
}
.me-head-center { justify-content: center; text-align: center; }
.me-head-center h2::after { margin-left: auto; margin-right: auto; }
.me-more {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: #4b7c63;
  background: #fff; border: 1px solid rgba(5, 150, 105, .14);
  box-shadow: 0 1px 3px rgba(5, 150, 105, .06);
  transition: color .25s ease, gap .25s ease, border-color .25s ease;
}
.me-more .icon { width: 15px; height: 15px; }
.me-more:hover { color: #047857; gap: 10px; border-color: rgba(5, 150, 105, .38); }
[data-theme="dark"] .me-head h2 { color: #eaf0fa; }
[data-theme="dark"] .me-more { background: var(--surface); color: #a9b8d0; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .me-more:hover { color: #6ee7b7; }

/* ---------- 套娃商品卡：外层留白包裹，内层图片独立圆角 ---------- */
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.me-card {
  position: relative;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(5, 150, 105, .09);
  border-radius: 26px;
  box-shadow: 0 1px 3px rgba(5, 150, 105, .04), 0 12px 32px -14px rgba(5, 150, 105, .18);
  transition: transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s ease, border-color .38s ease;
}
.me-card:hover {
  transform: translateY(-5px);
  border-color: rgba(5, 150, 105, .24);
  box-shadow: 0 4px 10px rgba(5, 150, 105, .06), 0 26px 54px -18px rgba(5, 150, 105, .3);
}
.me-item-link { position: absolute; inset: 0; z-index: 2; }

.me-cover {
  position: relative; aspect-ratio: 16 / 10; background: #f0fdf4;
  border-radius: 16px; overflow: hidden;
}
.me-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
.me-card:hover .me-cover img { transform: scale(1.06); }
.me-cover .cover-ph { display: grid; place-items: center; gap: 10px; height: 100%; }
.me-cover .cover-ph .icon { width: 36px; height: 36px; color: #10b981; opacity: .55; }
.me-cover .cover-ph span { font-size: 13px; color: #5b7a6c; }

.me-code {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: #0b1220;
  font-size: 11px; font-weight: 800; letter-spacing: .06em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.me-chip {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #059669, #10b981); color: #fff;
  font-size: 11.5px; font-weight: 600;
  box-shadow: 0 3px 10px rgba(5, 150, 105, .3);
}
[data-theme="dark"] .me-card { background: var(--surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .me-cover { background: #13211c; }

.me-body { padding: 16px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.me-body h3 {
  font-size: 17.5px; font-weight: 700;
  line-height: 1.5; color: #0b1220; letter-spacing: -.02em;
}
.me-body > p {
  margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: #5b7a6c;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.me-feat { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.me-feat li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.7; color: #5b7a6c; }
.me-feat li .icon { width: 15px; height: 15px; flex: none; margin-top: 3px; color: #10b981; }
[data-theme="dark"] .me-body h3 { color: #eaf0fa; }
[data-theme="dark"] .me-body > p { color: #8fa1bd; }
[data-theme="dark"] .me-feat li { color: #8fa1bd; }
[data-theme="dark"] .me-feat li .icon { color: #34d399; }

.me-price-bar {
  margin-top: auto; padding-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.me-price { display: flex; align-items: baseline; gap: 4px; }
.me-price small { font-size: 14px; color: var(--price-solid); font-weight: 700; }
.me-price b { font-size: 27px; font-weight: 800; color: var(--price-solid); letter-spacing: -.03em; }
.me-price s { font-size: 13px; color: #a3b0c2; margin-left: 5px; }
.me-price-right { display: flex; align-items: center; gap: 12px; }
.me-sales { font-size: 12.5px; color: #8aa79a; }
.me-btn-buy {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 22px; border-radius: 999px; color: #fff;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(135deg, #ff5a3c, #ff2d55);
  box-shadow: 0 5px 14px rgba(255, 90, 60, .26);
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease;
}
.me-btn-buy .icon { width: 15px; height: 15px; }
.me-btn-buy:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 90, 60, .32); }
[data-theme="dark"] .me-price small,
[data-theme="dark"] .me-price b { color: var(--price-solid-dark); }

/* ---------- 服务保障：圆形图标 ---------- */
.me-assure { padding: 64px 0 76px; }
.me-assure-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.me-assure-item {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 26px 24px 24px; border-radius: 24px;
  background: #fff; border: 1px solid rgba(5, 150, 105, .09);
  box-shadow: 0 1px 3px rgba(5, 150, 105, .04), 0 12px 30px -14px rgba(5, 150, 105, .18);
  transition: transform .32s cubic-bezier(.16,1,.3,1), box-shadow .32s ease;
}
.me-assure-item::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #059669, #34d399, rgba(5, 150, 105, 0));
}
.me-assure-item:hover { transform: translateY(-5px); box-shadow: 0 4px 10px rgba(5, 150, 105, .06), 0 22px 44px -16px rgba(5, 150, 105, .26); }
.me-assure-icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #059669, #34d399); color: #fff;
  box-shadow: 0 6px 16px rgba(5, 150, 105, .28); margin-bottom: 16px;
}
.me-assure-icon .icon { width: 22px; height: 22px; }
.me-assure-item b { font-size: 15.5px; font-weight: 700; color: #0b1220; }
.me-assure-item p { margin-top: 9px; font-size: 12.5px; line-height: 1.85; color: #5b7a6c; }
[data-theme="dark"] .me-assure-item { background: var(--surface); border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .me-assure-item b { color: #eaf0fa; }

/* ---------- 底部 CTA：绿色渐变 ---------- */
.me-cta { padding: 80px 0 92px; }
.me-cta-inner {
  position: relative; overflow: hidden;
  max-width: 820px; margin: 0 auto; text-align: center;
  padding: 60px 40px; border-radius: 30px;
  background: linear-gradient(135deg, #065f46 0%, #059669 48%, #10b981 100%);
  box-shadow: 0 12px 28px rgba(5, 150, 105, .22), 0 32px 64px -16px rgba(5, 150, 105, .46);
}
.me-cta-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(440px 280px at 14% 12%, rgba(255, 255, 255, .18), transparent 68%),
    radial-gradient(380px 250px at 86% 88%, rgba(255, 255, 255, .12), transparent 68%);
}
.me-cta-inner::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}
.me-cta-inner > * { position: relative; z-index: 1; }
.me-cta h2 {
  margin-top: 20px;
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 800;
  letter-spacing: -.04em; color: #fff; line-height: 1.25;
}
.me-cta-inner > p { margin-top: 16px; font-size: 15px; line-height: 1.9; color: rgba(255, 255, 255, .84); }

.me-promise {
  list-style: none; padding: 0; margin: 26px auto 0;
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
}
.me-promise li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 22px; position: relative;
  font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .92);
}
.me-promise li + li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 14px; background: rgba(255, 255, 255, .3);
}
.me-promise li .icon { width: 15px; height: 15px; flex: none; color: rgba(255, 255, 255, .82); }

.me-cta-wx {
  margin-top: 30px !important;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 12.5px; color: rgba(255, 255, 255, .86);
}
.me-cta-wx .icon { width: 14px; height: 14px; }
[data-theme="dark"] .me-cta-inner { background: linear-gradient(135deg, #064e3b 0%, #065f46 48%, #047857 100%); }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .me-assure-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .me-grid { gap: 16px; }
  .me-hero { padding: 58px 0 96px; }
  .me-section { padding: 52px 0; }
  .me-assure { padding: 46px 0 56px; }
  .me-cta { padding: 56px 0 64px; }
}
@media (max-width: 640px) {
  .me-hero { padding: 40px 0 78px; }
  .me-title { margin-top: 18px; }
  .me-lead { margin-top: 16px; font-size: 14.5px; line-height: 1.9; }
  .me-search-wrap { margin-top: 26px; }
  .me-search { max-width: 100%; padding: 7px 7px 7px 16px; }
  .me-search button { padding: 10px 20px; }
  .me-actions { margin-top: 24px; gap: 10px; }
  .me-actions .me-btn-main, .me-actions .me-btn-ghost { flex: 1; justify-content: center; padding-left: 12px; padding-right: 12px; }
  /* 手机端圆形统计仍保持三列并排 */
  .me-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 36px; }
  .me-ring { width: 50px; height: 50px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 5px 14px -8px rgba(5, 150, 105, .26); }
  .me-ring-2, .me-ring-3 { box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 5px 14px -8px rgba(5, 150, 105, .26); }
  .me-ring b { font-size: 16px; }
  .me-stat-label { font-size: 11px; }
  .me-stat { gap: 8px; }
  /* 商品两列收紧 */
  .me-grid { gap: 12px; }
  .me-card { padding: 10px; border-radius: 20px; }
  .me-cover { aspect-ratio: 4 / 3; border-radius: 13px; }
  .me-code { left: 7px; top: 7px; padding: 3px 8px; font-size: 10px; }
  .me-chip { right: 7px; top: 7px; padding: 3px 9px; font-size: 10.5px; }
  .me-body { padding: 12px 4px 2px; }
  .me-body h3 { font-size: 14.5px; line-height: 1.45; }
  .me-body > p { margin-top: 6px; font-size: 12px; line-height: 1.6; }
  .me-feat { margin-top: 10px; gap: 6px; }
  .me-feat li { font-size: 11.5px; line-height: 1.55; }
  .me-feat li .icon { width: 12px; height: 12px; margin-top: 3px; }
  .me-feat li:nth-child(n+3) { display: none; }
  .me-price-bar { padding-top: 12px; gap: 8px; margin-top: 12px; }
  .me-price small { font-size: 11.5px; }
  .me-price b { font-size: 19px; }
  .me-price s { font-size: 11px; margin-left: 3px; }
  .me-sales { display: none; }
  .me-price-right { gap: 0; }
  .me-btn-buy { padding: 8px 16px; font-size: 12.5px; border-radius: 999px; }
  .me-btn-buy .icon { width: 13px; height: 13px; }
  .me-section { padding: 42px 0; }
  .me-head { margin-bottom: 24px; }
  .me-assure-inner { grid-template-columns: 1fr; gap: 14px; }
  .me-cta-inner { padding: 36px 20px; border-radius: 22px; }
  .me-promise { margin-top: 20px; gap: 10px 0; }
  .me-promise li { padding: 0 12px; font-size: 12.5px; }
  .me-promise li + li::before { display: none; }
  .me-cta-wx { padding: 7px 14px; font-size: 11.5px; }
}
@media (max-width: 420px) {
  .me-grid { gap: 10px; }
  .me-card { padding: 8px; border-radius: 18px; }
  .me-body { padding: 10px 3px 2px; }
  .me-body h3 { font-size: 13.5px; }
  .me-feat { gap: 5px; }
  .me-feat li { font-size: 11px; }
  .me-price b { font-size: 18px; }
  /* 极窄屏：价格与按钮分行 */
  .me-price-bar { flex-direction: column; align-items: stretch; }
  .me-price-right { justify-content: center; }
  .me-btn-buy { justify-content: center; padding: 9px 14px; }
  .me-stats { gap: 6px; }
  /* 圆环尺寸统一由文件末尾 v2.46.1 覆盖块决定，此处不再重复定义 */
  .me-promise { flex-direction: column; gap: 8px; }
  .me-promise li { padding: 0; }
}
@media (max-width: 360px) {
  /* 超窄屏：两列会挤到看不清，退成单列并恢复完整信息 */
  .me-grid { grid-template-columns: 1fr; gap: 18px; }
  .me-card { padding: 14px; border-radius: 24px; }
  .me-cover { aspect-ratio: 16 / 10; border-radius: 16px; }
  .me-body { padding: 16px 6px 4px; }
  .me-body h3 { font-size: 17px; }
  .me-body > p { font-size: 13.5px; }
  .me-feat li { font-size: 12.5px; }
  .me-feat li:nth-child(n+3) { display: flex; }
  .me-price-bar { flex-direction: row; align-items: center; }
  .me-sales { display: inline; }
  .me-price-right { gap: 12px; }
  .me-price b { font-size: 26px; }
  .me-btn-buy { padding: 11px 24px; font-size: 14px; }
  .me-btn-buy .icon { width: 15px; height: 15px; }
}


/* ============================================================
   首页模板 E（青岚版）全局绿色主题  v2.45.4
   关键：这里写在 front.css 内部且位于文件末尾，用 html[data-tpl="e"] 作用域。
   此前把变量覆盖写成 header 里的内联 <style>，无论放在 CSS 前还是后都不可靠
   （放前面会被本文件的 :root 盖掉；依赖加载顺序本身就脆弱）。
   属性选择器特指度 (0,1,1) 高于 :root (0,1,0)，且写在文件末尾，双重保证生效。
   价格与购买按钮的红橙不参与切换，与全站保持一致。
   ============================================================ */
html[data-tpl="e"] {
  --brand: #059669;
  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-200: #a7f3d0;
  --brand-600: #059669;
  --brand-700: #047857;
  --p-rgb: 5, 150, 105;
  --p-soft: #34d399;
  --p-soft-text: #6ee7b7;
  --p-soft-rgb: 52, 211, 153;
  --p-light: #10b981;
  --p-light-rgb: 16, 185, 129;
  --p-accent: #10b981;
  --p-accent-rgb: 16, 185, 129;
  --p-accent2: #34d399;
  --p-accent2-rgb: 52, 211, 153;
  --p-cyan: #34d399;
  --p-cyan-rgb: 52, 211, 153;
  --p-cyan2: #6ee7b7;
  --p-cyan2-rgb: 110, 231, 183;
  --p-deep: #065f46;
  --p-deep2: #047857;
  --p-deep3: #064e3b;
}
html[data-tpl="e"][data-theme="dark"] {
  --brand: #10b981;
  --brand-50: #052e22;
  --brand-100: #064e3b;
  --brand-200: #065f46;
  --brand-600: #10b981;
  --brand-700: #34d399;
  --p-rgb: 16, 185, 129;
  --p-soft: #34d399;
  --p-soft-text: #6ee7b7;
  --p-soft-rgb: 52, 211, 153;
  --p-light: #34d399;
  --p-light-rgb: 52, 211, 153;
  --p-accent: #34d399;
  --p-accent-rgb: 52, 211, 153;
  --p-accent2: #6ee7b7;
  --p-accent2-rgb: 110, 231, 183;
  --p-cyan: #34d399;
  --p-cyan-rgb: 52, 211, 153;
  --p-cyan2: #6ee7b7;
  --p-cyan2-rgb: 110, 231, 183;
  --p-deep: #064e3b;
  --p-deep2: #065f46;
  --p-deep3: #04453a;
}
/* 分类图标渐变色（模板中心九宫格）：默认由后端给出 c1/c2，
   这里兜底让未指定颜色的图标也跟随 E 的绿色 */
html[data-tpl="e"] .nx-cat-cell-ico {
  background: linear-gradient(135deg, var(--p-light), var(--brand-700));
  box-shadow: 0 6px 14px rgba(var(--p-rgb), .22);
}


/* ============================================================
   首页模板 E · 布局精细化 + 建站流程动态特效  v2.46.0
   1) 精细化：整体收紧间距、字号、卡片尺寸，去掉「块很大很空」的观感
   2) 流程特效：滚动进入视口时，连接线流光推进 → 节点依次点亮 → 末端光环呼吸
   ============================================================ */

/* ---------- 精细化：收紧各区块尺度 ---------- */
.me-hero { padding: 56px 0 92px; }
.me-title { margin-top: 18px; font-size: clamp(32px, 5.4vw, 56px); }
.me-lead { margin-top: 16px; font-size: 14.5px; line-height: 1.85; max-width: 480px; }
.me-search-wrap { margin-top: 26px; }
.me-search { max-width: 430px; padding: 6px 6px 6px 18px; }
.me-search button { padding: 9px 22px; font-size: 13px; }
.me-actions { margin-top: 24px; gap: 12px; }
.me-btn-main, .me-btn-ghost { padding: 12px 26px; font-size: 14px; }
.me-stats { margin-top: 32px; gap: 14px; }
.me-stat { gap: 9px; }
/* v2.46.1：统计圆环整体缩小并提精致度 —— 直径 88→58px，描边 2→1.5px，
   外圈白色光晕 5→3px，投影范围同步收窄，三个数变成一排紧凑小圆章 */
.me-ring {
  width: 58px; height: 58px;
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 6px 16px -8px rgba(var(--p-rgb), .3);
}
.me-ring-2 { box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 6px 16px -8px rgba(var(--p-rgb), .3); }
.me-ring-3 { box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 6px 16px -8px rgba(var(--p-rgb), .3); }
.me-ring b { font-size: 19px; letter-spacing: -.05em; }
.me-stat-label { font-size: 11.5px; letter-spacing: .03em; }
.me-wave { height: 70px; }

.me-section { padding: 52px 0; }
.me-head { margin-bottom: 26px; }
.me-head h2 { font-size: clamp(21px, 2.8vw, 27px); margin-top: 11px; }
.me-head h2::after { width: 52px; height: 2px; margin-top: 11px; }
.me-more { padding: 7px 15px; font-size: 12.5px; }
.me-grid { gap: 18px; }
.me-card { padding: 11px; border-radius: 22px; }
.me-cover { border-radius: 14px; }
.me-body { padding: 13px 6px 3px; }
.me-body h3 { font-size: 16px; }
.me-body > p { margin-top: 6px; font-size: 12.5px; }
.me-feat { margin-top: 11px; gap: 7px; }
.me-feat li { font-size: 12px; }
.me-price-bar { padding-top: 13px; margin-top: 14px; }
.me-price b { font-size: 23px; }
.me-btn-buy { padding: 9px 18px; font-size: 13px; }

.me-assure { padding: 46px 0 54px; }
.me-assure-inner { gap: 16px; }
.me-assure-item { padding: 20px 18px; border-radius: 20px; }
.me-assure-icon { width: 42px; height: 42px; margin-bottom: 12px; }
.me-assure-icon .icon { width: 19px; height: 19px; }
.me-assure-item b { font-size: 14.5px; }
.me-assure-item p { margin-top: 7px; font-size: 12px; line-height: 1.75; }

.me-cta { padding: 58px 0 66px; }
.me-cta-inner { padding: 46px 34px; border-radius: 26px; max-width: 760px; }
.me-cta h2 { font-size: clamp(24px, 3.6vw, 34px); margin-top: 16px; }
.me-cta-inner > p { margin-top: 12px; font-size: 14px; }
.me-promise { margin-top: 20px; }
.me-promise li { padding: 0 16px; font-size: 12.5px; }
.me-cta-wx { margin-top: 24px !important; padding: 8px 16px; font-size: 12px; }

/* ---------- 建站流程动态特效 ---------- */
.me-flow-sec { padding: 50px 0; }
.me-flow-sub { margin-top: 10px; font-size: 13px; color: #5b7a6c; }
[data-theme="dark"] .me-flow-sub { color: #8fa1bd; }

.me-flow { position: relative; margin-top: 34px; }

/* 连接线：底层灰 + 上层绿色流光（仅横向时的水平线） */
.me-flow-track {
  position: absolute; left: 10%; right: 10%; top: 28px; height: 3px;
  pointer-events: none; z-index: 0;
}
.me-flow-line {
  position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  border-radius: 2px; background: rgba(5, 150, 105, .12);
}
[data-theme="dark"] .me-flow-line { background: rgba(52, 211, 153, .14); }
/* 绿色推进线：默认 0 宽，播放时过渡到 100% */
.me-flow-line-lit {
  width: 0;
  background: linear-gradient(90deg, #059669, #10b981 50%, #34d399);
  box-shadow: 0 0 10px rgba(var(--p-rgb), .45);
}
.me-flow.play .me-flow-line-lit {
  width: 100%;
  transition: width 2.1s cubic-bezier(.4, 0, .2, 1);
}
/* 流光高亮：沿线循环扫过的一道亮光 */
.me-flow-line-lit::after {
  content: ''; position: absolute; top: -1px; bottom: -1px; width: 60px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  opacity: 0;
}
.me-flow.play .me-flow-line-lit::after {
  opacity: 1;
  animation: meFlowShine 2.4s ease-in-out .5s infinite;
}
@keyframes meFlowShine {
  0%   { left: -60px; }
  60%  { left: 100%; }
  100% { left: 100%; }
}

/* 节点列表（桌面横向五等分） */
.me-flow-list {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.me-flow-node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; }
.me-flow-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 2px solid rgba(5, 150, 105, .16);
  color: #94a3b8;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 8px 20px -8px rgba(15, 30, 60, .18);
  /* 默认已可见，避免无脚本时空白；播放时再做弹入 */
  transition: transform .5s cubic-bezier(.16,1,.3,1), background .45s ease,
              border-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.me-flow-dot .icon { width: 22px; height: 22px; }
.me-flow-node b { font-size: 13.5px; font-weight: 700; color: #0b1220; letter-spacing: -.01em; }
.me-flow-node em { font-style: normal; font-size: 11.5px; color: #7ba891; line-height: 1.5; }
[data-theme="dark"] .me-flow-dot { background: var(--surface); border-color: rgba(52, 211, 153, .2); }
[data-theme="dark"] .me-flow-node b { color: #eaf0fa; }
[data-theme="dark"] .me-flow-node em { color: #8fa1bd; }

/* 播放：节点依次点亮（--i 由模板输出，做错峰延迟） */
.me-flow.play .me-flow-dot {
  animation: meFlowPop .5s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(var(--i) * .32s);
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: rgba(5, 150, 105, .35);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 10px 24px -8px rgba(var(--p-rgb), .5);
}
@keyframes meFlowPop {
  0%   { transform: scale(.72); opacity: .4; }
  60%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
/* 文字错峰淡入 */
.me-flow.play .me-flow-node b,
.me-flow.play .me-flow-node em {
  animation: meFlowText .5s ease backwards;
  animation-delay: calc(var(--i) * .32s + .12s);
}
@keyframes meFlowText {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
/* 最后一个节点：点亮后持续呼吸光环 */
.me-flow.play .me-flow-node:last-child .me-flow-dot {
  animation: meFlowPop .5s cubic-bezier(.16,1,.3,1) backwards, meFlowPulse 2.4s ease-in-out 1.8s infinite;
  animation-delay: calc(var(--i) * .32s), 0s;
}
@keyframes meFlowPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 255, 255, .8), 0 10px 24px -8px rgba(var(--p-rgb), .5); }
  50%      { box-shadow: 0 0 0 9px rgba(255, 255, 255, .55), 0 12px 28px -8px rgba(var(--p-rgb), .62); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .me-flow-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .me-flow-dot { width: 50px; height: 50px; }
  .me-flow-dot .icon { width: 19px; height: 19px; }
  .me-flow-track { top: 25px; left: 8%; right: 8%; }
}
@media (max-width: 640px) {
  /* 手机端：转纵向，连接线移到左侧竖排 */
  .me-flow-sec { padding: 38px 0; }
  .me-flow { margin-top: 24px; }
  .me-flow-track { left: 27px; right: auto; top: 27px; bottom: 27px; width: 3px; height: auto; }
  .me-flow-line { width: 100%; height: 100%; }
  .me-flow-line-lit { width: 100%; height: 0; background: linear-gradient(180deg, #059669, #10b981 50%, #34d399); }
  .me-flow.play .me-flow-line-lit { width: 100%; height: 100%; transition: height 2.1s cubic-bezier(.4, 0, .2, 1); }
  .me-flow-line-lit::after { display: none; }
  .me-flow-list { grid-template-columns: 1fr; gap: 14px; }
  .me-flow-node { flex-direction: row; align-items: center; text-align: left; gap: 14px; }
  .me-flow-dot { width: 54px; height: 54px; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 8px 18px -8px rgba(15, 30, 60, .18); }
  .me-flow-dot .icon { width: 21px; height: 21px; }
  .me-flow-node b { font-size: 14px; }
  .me-flow-node em { font-size: 12px; }
  /* 纵向时文字从左滑入更自然 */
  @keyframes meFlowText {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .me-flow.play .me-flow-node:last-child .me-flow-dot {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 8px 18px -8px rgba(var(--p-rgb), .5);
  }
  @keyframes meFlowPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 8px 18px -8px rgba(var(--p-rgb), .5); }
    50%      { box-shadow: 0 0 0 8px rgba(255, 255, 255, .5), 0 10px 22px -8px rgba(var(--p-rgb), .6); }
  }
}
/* 尊重系统「减少动画」：直接呈现点亮后的最终状态 */
@media (prefers-reduced-motion: reduce) {
  .me-flow-line-lit { width: 100%; height: 100%; }
  .me-flow.play .me-flow-line-lit,
  .me-flow.play .me-flow-line-lit::after,
  .me-flow.play .me-flow-dot,
  .me-flow.play .me-flow-node b,
  .me-flow.play .me-flow-node em { animation: none !important; transition: none !important; }
  .me-flow-dot {
    background: linear-gradient(135deg, #059669, #10b981);
    border-color: rgba(5, 150, 105, .35); color: #fff;
  }
}


/* ============================================================
   首页模板 E · 统计圆环移动端尺寸（v2.46.1 顺序修正）
   上面的 v2.46.0 精细化块写在文件末尾且不带媒体查询条件，
   会把更早的 640/420 断点内的移动端尺寸覆盖掉，
   导致手机端圆环始终按桌面值渲染。这里追加到最后，确保断点生效。
   ============================================================ */
@media (max-width: 640px) {
  .me-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
  .me-stat { gap: 7px; }
  .me-ring {
    width: 50px; height: 50px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 5px 14px -8px rgba(var(--p-rgb), .26);
  }
  .me-ring-2, .me-ring-3 { box-shadow: 0 0 0 3px rgba(255, 255, 255, .75), 0 5px 14px -8px rgba(var(--p-rgb), .26); }
  .me-ring b { font-size: 16px; }
  .me-stat-label { font-size: 11px; }
}
/* 主流手机宽度多在 390–430px，落在 420 断点内的很常见；
   这里不再进一步缩小，统一保持 50px，只收间距，避免小屏上数字缩得看不清 */
@media (max-width: 420px) {
  .me-stats { gap: 8px; }
  .me-ring b { font-size: 15px; }
  .me-stat-label { font-size: 10.5px; }
}


/* ============================================================
   首页模板 E · 尺度回调平衡（v2.47.0）
   v2.46.0 收紧 + v2.46.1 缩小之后整体偏小、显得局促，
   这里把关键尺度回调到「紧凑但舒展」的中间值：
   圆环 58→72px（手机 50→60px），其余间距/字号同步放松约 10~15%，
   同时保留 v2.46.1 的精致处理（细描边、收窄光晕、收紧字距）。
   移动端断点写在本块末尾，确保顺序上最后生效。
   ============================================================ */
.me-hero { padding: 60px 0 98px; }
.me-title { margin-top: 20px; font-size: clamp(34px, 5.8vw, 60px); }
.me-lead { margin-top: 17px; font-size: 15px; line-height: 1.8; max-width: 510px; }
.me-search-wrap { margin-top: 28px; }
.me-search { max-width: 460px; padding: 7px 7px 7px 20px; }
.me-search button { padding: 11px 26px; font-size: 13.5px; }
.me-actions { margin-top: 26px; gap: 14px; }
.me-btn-main, .me-btn-ghost { padding: 14px 30px; font-size: 14.5px; }

.me-stats { margin-top: 40px; gap: 18px; }
.me-stat { gap: 11px; }
.me-ring {
  width: 72px; height: 72px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .78), 0 8px 20px -8px rgba(var(--p-rgb), .3);
}
.me-ring-2, .me-ring-3 { box-shadow: 0 0 0 4px rgba(255, 255, 255, .78), 0 8px 20px -8px rgba(var(--p-rgb), .3); }
.me-ring b { font-size: 23px; }
.me-stat-label { font-size: 12.5px; }
.me-wave { height: 76px; }

.me-section { padding: 58px 0; }
.me-head { margin-bottom: 30px; }
.me-head h2 { font-size: clamp(22px, 3vw, 29px); margin-top: 12px; }
.me-head h2::after { width: 58px; height: 2px; margin-top: 12px; }
.me-more { padding: 8px 16px; font-size: 13px; }
.me-grid { gap: 20px; }
.me-card { padding: 13px; border-radius: 24px; }
.me-cover { border-radius: 15px; }
.me-body { padding: 14px 7px 4px; }
.me-body h3 { font-size: 16.5px; }
.me-body > p { margin-top: 7px; font-size: 13px; }
.me-feat { margin-top: 12px; gap: 8px; }
.me-feat li { font-size: 12.5px; }
.me-price-bar { padding-top: 14px; margin-top: 15px; }
.me-price b { font-size: 25px; }
.me-btn-buy { padding: 10px 20px; font-size: 13.5px; }

.me-assure { padding: 52px 0 60px; }
.me-assure-inner { gap: 18px; }
.me-assure-item { padding: 22px 20px; border-radius: 22px; }
.me-assure-icon { width: 44px; height: 44px; margin-bottom: 13px; }
.me-assure-item b { font-size: 15px; }
.me-assure-item p { margin-top: 8px; font-size: 12.5px; }

.me-cta { padding: 64px 0 72px; }
.me-cta-inner { padding: 50px 38px; border-radius: 28px; max-width: 780px; }
.me-cta h2 { font-size: clamp(25px, 3.8vw, 36px); margin-top: 17px; }
.me-cta-inner > p { margin-top: 13px; font-size: 14.5px; }
.me-promise { margin-top: 22px; }
.me-promise li { padding: 0 17px; font-size: 13px; }
.me-cta-wx { margin-top: 26px !important; padding: 9px 17px; font-size: 12.5px; }

@media (max-width: 640px) {
  .me-stats { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; }
  .me-stat { gap: 9px; }
  .me-ring {
    width: 60px; height: 60px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .78), 0 6px 16px -8px rgba(var(--p-rgb), .28);
  }
  .me-ring-2, .me-ring-3 { box-shadow: 0 0 0 3px rgba(255, 255, 255, .78), 0 6px 16px -8px rgba(var(--p-rgb), .28); }
  .me-ring b { font-size: 19px; }
  .me-stat-label { font-size: 11.5px; }
  .me-title { font-size: clamp(29px, 7.4vw, 38px); }
  .me-hero { padding: 46px 0 76px; }
  .me-section { padding: 44px 0; }
  .me-card { padding: 12px; }
  .me-flow-sec { padding: 40px 0; }
}
@media (max-width: 420px) {
  .me-stats { gap: 11px; }
  .me-ring b { font-size: 18px; }
  .me-stat-label { font-size: 11px; }
}
