/* ============================================================
   AI 数字商城 · 前台样式
   设计语言：极简 / 克制 / 有质感
   近白底 · 近黑主色 · 单层焦点蓝 · 多层柔和阴影
   ============================================================ */

:root {
  /* ---- 底色 ---- */
  --bg:          #fbfbfd;
  --bg-tint:     #f5f6f9;
  --surface:     #ffffff;
  --surface-2:   #f7f8fa;
  --surface-3:   #eff1f5;

  /* ---- 线条 ---- */
  --line:        #ebedf2;
  --line-2:      #e2e5ec;
  --line-strong: #d3d8e2;

  /* ---- 文字 ---- */
  --text:        #0d0f13;
  --text-2:      #545b6a;
  --text-3:      #8b91a0;

  /* ---- 主色 / 焦点色 ---- */
  --ink:         #0e1014;
  --ink-2:       #23272f;
  --ink-3:       #3a4049;
  --accent:      #2f5bf6;
  --accent-dark: #1f45d8;
  --accent-soft: #eef2ff;

  /* ---- 语义色 ---- */
  --success:      #0f7a4d;
  --success-soft: #e8f5ef;
  --success-line: #bfe4d2;
  --warn:         #96650a;
  --warn-soft:    #fdf6e9;
  --warn-line:    #ecd9b0;
  --danger:       #c0332f;
  --danger-soft:  #fdeeee;
  --danger-line:  #f0c9c7;

  /* ---- 圆角 ---- */
  --radius:    16px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  /* ---- 阴影（多层叠加，边界更柔） ---- */
  --shadow-xs: 0 1px 2px rgba(13, 15, 19, .04);
  --shadow-sm: 0 1px 2px rgba(13, 15, 19, .04), 0 4px 10px rgba(13, 15, 19, .04);
  --shadow-md: 0 2px 4px rgba(13, 15, 19, .04), 0 10px 24px rgba(13, 15, 19, .06);
  --shadow-lg: 0 4px 10px rgba(13, 15, 19, .06), 0 20px 48px rgba(13, 15, 19, .10);

  /* ---- 动效 ---- */
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* ---- 字体 ---- */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* 兼容别名：后台 admin.css 与历史内联样式仍在引用旧名，统一指向新 token */
  --primary: var(--accent);
  --primary-soft: var(--accent-soft);
  --primary-dark: var(--accent-dark);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* 选中态：与焦点蓝同色系，细节处见质感 */
::selection { background: rgba(47, 91, 246, .16); color: var(--text); }

/* 滚动条：细、克制 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid var(--bg);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- 布局 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 68vh; padding-bottom: 72px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(13, 15, 19, .04), 0 8px 20px rgba(13, 15, 19, .045);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(145deg, #262b34, #0d0f13);
  box-shadow: 0 1px 2px rgba(13, 15, 19, .18), inset 0 1px 0 rgba(255, 255, 255, .14);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}

.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 7px 13px; border-radius: 999px; color: var(--text-2);
  white-space: nowrap; font-size: 13.5px; font-weight: 450;
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.active { background: var(--surface-3); color: var(--text); font-weight: 600; }

.top-actions { display: flex; align-items: center; gap: 8px; }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-2); background: var(--surface);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), transform .16s var(--ease);
}
.cart-btn:hover {
  border-color: var(--ink-3);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}
.cart-count {
  min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 11px; line-height: 19px; text-align: center; font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lang-btn {
  border: 1px solid var(--line-2); background: var(--surface);
  padding: 7px 11px; border-radius: 999px; font-size: 12px; color: var(--text-2);
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.lang-btn:hover { border-color: var(--ink-3); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 76px 0 44px;
  text-align: center;
}
/* 顶部两团极淡光晕 —— 让首屏有光感但不抢戏 */
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -140px;
  height: 460px;
  background:
    radial-gradient(52% 52% at 50% 46%, rgba(47, 91, 246, .085), transparent 72%),
    radial-gradient(34% 34% at 20% 22%, rgba(47, 91, 246, .05), transparent 72%),
    radial-gradient(30% 30% at 82% 30%, rgba(14, 16, 20, .035), transparent 72%);
  pointer-events: none;
}
.hero > * { position: relative; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .02em; font-weight: 500;
  color: var(--text-2); background: rgba(255, 255, 255, .8);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-xs);
  padding: 5px 13px 5px 10px; border-radius: 999px; margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 246, .14);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -.035em;
}
.hero p {
  margin: 0 auto 30px;
  max-width: 600px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 19px;
  border: 1px solid transparent;
  background: var(--surface); color: var(--text);
  font-weight: 500; letter-spacing: .005em;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              box-shadow .18s var(--ease), transform .18s var(--ease), color .18s var(--ease);
}
/* 主按钮：近黑渐变 + 顶部 1px 高光，模拟实体按键的质感 */
.btn-primary {
  background: linear-gradient(180deg, #1e222a 0%, #0d0f13 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(13, 15, 19, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2a2f39 0%, #171a20 100%);
  box-shadow: 0 4px 14px rgba(13, 15, 19, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(13, 15, 19, .2), inset 0 1px 0 rgba(255, 255, 255, .1); }

.btn-outline { border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-3); box-shadow: var(--shadow-xs); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-sm { padding: 6px 13px; font-size: 13px; border-radius: var(--radius-xs); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a72a26; }

/* ---------- 区块标题 ---------- */
.section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-head h2 {
  margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.025em;
}
.section-head .sub { color: var(--text-3); font-size: 13px; }
.section-head a { color: var(--accent); font-size: 13px; font-weight: 500; }
.section-head a:hover { color: var(--accent-dark); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.card-hover { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.card-hover:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }

/* ---------- 商品卡片 ---------- */
.product-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.product-thumb {
  height: auto; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
  font-size: 26px; font-weight: 600;
  color: rgba(13, 15, 19, .26);
  letter-spacing: .04em;
}
.product-thumb .badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap; z-index: 1;
}
/* 商品图：contain 完整呈现不裁剪；悬停时极轻微推近，制造"呼吸感" */
.thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: inherit;
  transition: transform .55s var(--ease);
}
.product-card:hover .thumb-img { transform: scale(1.045); }

.product-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}
.product-title {
  font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 43px;
  letter-spacing: -.005em;
}
.product-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 4px; gap: 10px;
}
.price {
  font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
  white-space: nowrap;
}
.price small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-right: 1px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-size: 11px; font-weight: 500; line-height: 18px;
  letter-spacing: .01em;
  border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text-2);
  white-space: nowrap;
}
.tag-auto { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.tag-manual { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.tag-featured { background: var(--accent-soft); border-color: #d5e0ff; color: var(--accent-dark); }
.tag-low { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.tag-out { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.tag-unlimited { background: var(--surface-2); border-color: var(--line-2); color: var(--text-2); }

/* ---------- 分类胶囊 ---------- */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 999px; padding: 7px 15px;
  font-size: 13px; color: var(--text-2); white-space: nowrap;
  transition: border-color .16s var(--ease), background .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease);
}
.chip:hover { border-color: var(--ink-3); color: var(--text); transform: translateY(-1px); }
.chip.active {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500;
  box-shadow: 0 1px 2px rgba(13, 15, 19, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  background: var(--surface); color: var(--text);
  outline: none;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 246, .13);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  color: var(--text-3); font-weight: 500; font-size: 12px;
  letter-spacing: .03em; text-transform: uppercase;
  border-bottom-color: var(--line-2);
}
.table tbody tr { transition: background .14s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

/* ---------- 详情页 ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-thumb {
  position: relative;
  overflow: hidden;
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: rgba(13, 15, 19, .26);
  font-size: 40px; font-weight: 600;
  background: var(--surface-2);
}
/* 详情页有图时：容器高度自适应，图片按原比例完整显示（封顶 520px），不再裁剪 */
.detail-thumb.has-img { height: auto; padding: 24px; }
.detail-thumb.has-img .thumb-img {
  position: static; width: auto; height: auto;
  max-width: 100%; max-height: 520px; margin: 0 auto;
  object-fit: contain;
}

/* ---------- 详情正文 ---------- */
.content-html { color: var(--text-2); line-height: 1.78; }
.content-html p { margin: 0 0 12px; }
.content-html a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.content-html strong { color: var(--text); font-weight: 600; }
.content-html h3 {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin: 24px 0 12px;
  display: flex; align-items: center; gap: 8px;
  letter-spacing: -.01em;
}
.content-html h3:first-child { margin-top: 0; }
.content-html ul, .content-html ol { margin: 0 0 12px; padding-left: 20px; }
.content-html li { margin: 5px 0; }
.content-html hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.content-html blockquote {
  margin: 0 0 12px; padding: 12px 15px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  color: var(--text-2);
}
.content-html blockquote p:last-child { margin-bottom: 0; }

/* 说明区块：左侧色条 + 圆角卡，一眼区分说明 / 风险 / 条款 / 售后 */
.content-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  margin: 0 0 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.content-block .cb-title {
  display: flex; align-items: center; gap: 9px;
  font-weight: 600; color: var(--text);
  margin-bottom: 10px; font-size: 14px;
  letter-spacing: -.01em;
}
.content-block .cb-title .cb-icon {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .4px; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}
.content-block .cb-title .cb-sub {
  margin-left: auto; font-size: 10.5px; font-weight: 600;
  color: var(--text-3); letter-spacing: .1em; text-transform: uppercase;
}
.content-block .cb-icon.tips { background: #16a34a; }
.content-block .cb-icon.risk { background: #e0453d; }
.content-block .cb-icon.read { background: #d97706; }
.content-block .cb-icon.policy { background: #0d9488; }
.content-block .cb-icon.official { background: #2f5bf6; }
.content-block .cb-icon.support { background: #7c3aed; }

.content-block.cb-tips { border-left: 3px solid #16a34a; }
.content-block.cb-risk { border-left: 3px solid #e0453d; }
.content-block.cb-read { border-left: 3px solid #d97706; }
.content-block.cb-policy { border-left: 3px solid #0d9488; }
.content-block.cb-official { border-left: 3px solid #2f5bf6; }
.content-block.cb-support { border-left: 3px solid #7c3aed; }

.content-block p:last-child { margin-bottom: 0; }
.content-block ol, .content-block ul { margin: 0; padding-left: 18px; }
.content-block ol li, .content-block ul li { margin: 5px 0; }
.content-block .danger { color: var(--danger); font-weight: 500; }

/* 商品参数表（套餐 / 是否覆盖 / 到账时间 …） */
.content-block .cb-spec {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 8px 12px; margin: 2px 0 12px;
}
.content-block .cb-spec-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 13px; line-height: 1.55;
}
.content-block .cb-spec-row span { flex: 0 0 62px; color: var(--text-3); }
.content-block .cb-spec-row b { color: var(--text); font-weight: 600; word-break: break-all; }

/* ---------- 数量选择器 ---------- */
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 34px; height: 34px; border: none; background: transparent;
  color: var(--text-2); font-size: 15px; line-height: 1;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.qty button:hover { background: var(--surface-3); color: var(--text); }
.qty input {
  width: 46px; height: 34px; border: none; text-align: center;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  background: transparent; color: var(--text); font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- 通用工具类 ---------- */
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.grow { flex: 1; min-width: 0; }

.empty { padding: 72px 20px; text-align: center; color: var(--text-3); }
.empty h3 { margin: 0 0 8px; color: var(--text); font-size: 16.5px; font-weight: 600; }

.skeleton {
  background: linear-gradient(90deg, #f0f2f5 25%, #e7eaef 37%, #f0f2f5 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: var(--radius-xs);
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 支付 ---------- */
.pay-box { max-width: 520px; margin: 0 auto; }
.qr-frame {
  width: 224px; height: 224px; margin: 0 auto 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center; padding: 14px;
}
.qr-frame svg { width: 100%; height: 100%; }
.mock-banner {
  background: var(--warn-soft); color: var(--warn);
  border: 1px dashed var(--warn-line);
  border-radius: var(--radius-sm);
  padding: 11px 15px; font-size: 13px; margin-bottom: 18px;
}
.channel-list { display: grid; gap: 10px; }
.channel-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color .16s var(--ease), background .16s var(--ease), box-shadow .16s var(--ease);
  text-align: left; width: 100%;
}
.channel-item:hover { border-color: var(--ink-3); box-shadow: var(--shadow-xs); }
.channel-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(47, 91, 246, .08);
}
.channel-icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600; color: #fff; flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
}

.delivery-box {
  background: var(--success-soft);
  border: 1px solid var(--success-line);
  border-radius: var(--radius-md);
  padding: 15px 17px;
  word-break: break-all;
}
.code-block {
  font-family: var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px; word-break: break-all;
  white-space: pre-wrap; line-height: 1.75;
  letter-spacing: -.01em;
}

/* ---------- 状态条 ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-3); }
.step .dot {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--text-3);
  font-size: 12px; font-weight: 500;
  transition: .2s var(--ease);
}
.step.done { color: var(--text); }
.step.done .dot { background: var(--success); color: #fff; }
.step.current { color: var(--text); font-weight: 600; }
.step.current .dot {
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 4px rgba(13, 15, 19, .08);
}
.step-line { width: 26px; height: 1px; background: var(--line-strong); }

/* ---------- 轻提示 ---------- */
.toast-wrap {
  position: fixed; top: 80px; right: 24px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--ink); color: #fff;
  padding: 11px 17px;
  border-radius: var(--radius-md);
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: var(--shadow-lg);
  animation: toastIn .22s var(--ease);
  max-width: 330px;
  line-height: 1.55;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- 弹层 ---------- */
.modal-wrap:empty { display: none; }
.modal-wrap {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13, 15, 19, .42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 24px;
  animation: fadeIn .18s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: 18px;
  width: 100%; max-width: 460px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-height: 90vh; overflow: auto;
  animation: modalIn .22s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}
.modal h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.modal .desc { color: var(--text-3); font-size: 13px; margin-bottom: 18px; }
.modal-body { color: var(--text-2); font-size: 13.5px; line-height: 1.75; margin-bottom: 20px; }
.modal-body p { margin: 0 0 8px; }
.modal-body p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 48px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer h4 {
  margin: 0 0 14px; font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer li, .footer p { color: var(--text-2); font-size: 13.5px; margin: 0; line-height: 1.7; }
.footer a { transition: color .14s var(--ease); }
.footer a:hover { color: var(--accent); }
.copyright {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 12.5px; text-align: center;
}

/* ---------- 公告条 ---------- */
.banner {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 17px; margin-bottom: 18px;
  box-shadow: var(--shadow-xs);
}
.banner.warn {
  background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn);
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--text-3);
  padding: 26px 0 0;
}
.breadcrumb a { transition: color .14s var(--ease); }
.breadcrumb a:hover { color: var(--text); }

/* ---------- 统计 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.stat .label { color: var(--text-3); font-size: 12px; }
.stat .value {
  font-size: 25px; font-weight: 600; letter-spacing: -.03em; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 选项卡 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs button {
  border: none; background: none;
  padding: 11px 15px;
  font-size: 13.5px; color: var(--text-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tabs button:hover { color: var(--text-2); }
.tabs button.active { color: var(--text); border-bottom-color: var(--ink); font-weight: 600; }

/* ---------- 移动端收敛 ---------- */
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .topbar-inner { padding: 0 16px; height: 60px; gap: 14px; }
  .hero { padding: 52px 0 32px; }
  .footer { padding: 36px 0 24px; }
  .card { padding: 16px; }
  .section { padding: 24px 0; }
  .toast-wrap { right: 16px; left: 16px; }
  .toast { max-width: none; }
}

/* ============================================================
   统一页面骨架
   全站二级页共用同一套页头 / 空状态 / 长文排版，避免各自为政
   ============================================================ */

.page-head { padding: 38px 0 6px; }
.page-head.center { text-align: center; }
.page-head .eyebrow {
  display: inline-block;
  font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
}
.page-head h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 600; letter-spacing: -.03em; line-height: 1.25;
}
.page-head .desc {
  margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.7;
  max-width: 640px;
}
.page-head.center .desc { margin: 0 auto; }
.page-head .divider { margin: 22px 0 0; }

/* 空状态：几何线条图标（非 emoji），与卡片同一套语言 */
.empty { padding: 76px 20px; text-align: center; color: var(--text-3); }
.empty-mark {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-3);
}
.empty-mark svg { width: 24px; height: 24px; }
.empty h3 { margin: 0 0 8px; color: var(--text); font-size: 16.5px; font-weight: 600; letter-spacing: -.02em; }
.empty p { margin: 0 0 18px; font-size: 13.5px; }
.empty .btn { margin-top: 2px; }

/* 长文正文：列表/文章页统一排版节奏 */
.prose { color: var(--text-2); line-height: 1.8; font-size: 14.5px; white-space: normal; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

/* 卡片式列表项（公告 / 文章）：悬停时整行轻微右移，有指向性 */
.list-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-xs);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.list-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.list-card .lc-title {
  font-size: 15px; font-weight: 500; color: var(--text);
  letter-spacing: -.015em; line-height: 1.55;
  transition: color .16s var(--ease);
}
.list-card:hover .lc-title { color: var(--accent-dark); }
.list-card .lc-meta { font-size: 12.5px; color: var(--text-3); }
.list-card .lc-summary {
  font-size: 13.5px; color: var(--text-2); line-height: 1.7; margin-top: 6px;
}

/* 详情页商品标题 */
.detail-title {
  margin: 0; font-size: clamp(20px, 2.4vw, 23px);
  font-weight: 600; line-height: 1.4; letter-spacing: -.025em;
}

/* 卡片内的小标题：统一字号字重，替代模板里散落的 h2/h3 内联样式 */
.sub-title {
  margin: 0; font-size: 15px; font-weight: 600;
  letter-spacing: -.015em; color: var(--text);
  line-height: 1.5;
}
.sub-title .hint { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 8px; }

/* 特色卡：几何线条图标（非 emoji）+ 标题 + 说明，四宫格统一节奏 */
.feat-icon {
  width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.feat-icon svg { width: 21px; height: 21px; }
.card:hover .feat-icon {
  background: var(--accent-soft);
  border-color: #d8e2ff;
  color: var(--accent-dark);
}
.feat-label { font-size: 14.5px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 4px; }
.feat-desc { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* 带箭头的操作链接：文案里的 → 原样保留，hover 时箭头向右滑出，指向性更强 */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--accent);
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.link-arrow .arrow {
  display: inline-block;
  transition: transform .24s var(--ease);
}
.link-arrow:hover { gap: 10px; color: var(--accent-dark); }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow.muted { color: var(--text-3); }
.link-arrow.muted:hover { color: var(--text); }

/* ============================================================
   交互增强
   鼠标跟随光晕 / 滚动进场 / 路由进度 / 按压反馈 / 焦点环
   ============================================================ */

/* 鼠标跟随柔光：--mx / --my 由 JS 在 mousemove 时写入（rAF 节流，事件委托） */
.spot { position: relative; }
.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(47, 91, 246, .13),
    rgba(47, 91, 246, .05) 42%,
    transparent 68%
  );
  z-index: 2;
}
.spot:hover::after { opacity: 1; }
/* 深色实体上的柔光改为白色，否则看不见 */
.spot.on-dark::after {
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .22),
    rgba(255, 255, 255, .07) 42%,
    transparent 68%
  );
}
/* 光晕要压在缩略图之上、但在徽标之下 */
.product-thumb .badges { z-index: 3; }

/* 按钮：跟随光点在文字之下 */
.btn.spot::after {
  border-radius: var(--radius-sm);
  background: radial-gradient(
    140px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .2),
    transparent 60%
  );
}
.btn.spot:not(.btn-primary):not(.btn-danger)::after {
  background: radial-gradient(
    140px circle at var(--mx, 50%) var(--my, 50%),
    rgba(47, 91, 246, .12),
    transparent 60%
  );
}

/* 滚动进场：.is-pending 由 JS 在观察前添加，未加 JS 时内容正常可见（不会白屏） */
.reveal { transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; }

/* 页面切换淡入 */
.page-enter { animation: pageIn .34s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* 路由加载进度条（JS 动态创建） */
.route-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0;
  z-index: 120;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--accent), #7d97ff);
  opacity: 0;
  transition: width .28s var(--ease), opacity .3s var(--ease);
  pointer-events: none;
  box-shadow: 0 0 10px rgba(47, 91, 246, .5);
}
.route-progress.on { opacity: 1; }

/* 按压反馈：所有可点元素在按下时轻微回弹 */
a, button, .chip, .channel-item, .list-card { -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled),
.chip:active,
.channel-item:active,
.cart-btn:active,
.lang-btn:active,
.qty button:active,
.list-card:active { transform: scale(.985); }
.btn-sm:active { transform: scale(.97); }

/* 统一焦点环：键盘导航时才出现，鼠标点击不显示 */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

/* 尊重系统「减少动效」设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  /* 进场动画整体关闭，且保证内容一定可见（不依赖 JS 移除 is-pending） */
  .reveal.is-pending, .reveal { opacity: 1 !important; transform: none !important; }
  .spot::after { display: none; }
}
