/* ============================================================
   卡网 · 前台/后台通用样式（白灰极简 · 移动优先 · 紧凑版）
   - 无彩色强调（近黑/灰/白），状态色克制
   - 手机优先、紧凑、SVG 图标，手机端底部 Tab 导航
   - 深色模式：手动 data-theme 优先，未设置跟随系统
   ============================================================ */

/* ---------- 变量（亮色） ---------- */
:root {
  --bg: #f5f6f8;
  --bg-soft: #eef0f3;
  --card: #ffffff;
  --text: #1a1d23;
  --text-2: #5c6370;
  --text-3: #8b93a1;
  --line: #e3e6eb;
  --line-soft: #eef0f4;
  --accent: #1a1c20;
  --accent-deep: #000000;
  --accent-soft: #f0f1f4;
  --accent-mist: #f7f8fa;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --shadow: 0 1px 3px rgba(20, 24, 32, .06), 0 1px 2px rgba(20, 24, 32, .04);
  --shadow-md: 0 4px 12px rgba(20, 24, 32, .08), 0 2px 4px rgba(20, 24, 32, .04);
  --shadow-lg: 0 12px 32px rgba(20, 24, 32, .12), 0 4px 8px rgba(20, 24, 32, .06);
  --ring: 0 0 0 3px rgba(26, 28, 32, .08);
  --radius: 12px;
  --radius-sm: 9px;
  --font-num: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --hero-bg: linear-gradient(135deg, #ffffff 0%, #f7f8fa 100%);
  --logo-grad: linear-gradient(120deg, #1a1d23 30%, #6b7280);
  --tabbar-h: 58px;
  /* 品牌色（主题可换：黑/白/蔚蓝） */
  --brand: var(--accent);
  --brand-deep: var(--accent-deep);
  --brand-soft: var(--accent-soft);
  --brand-ring: var(--ring);
}

/* ---------- QQ风格（浅色底 + 蓝色强调）：整体白色为主，仅按钮/链接/图标等特定元素用蓝 ---------- */
:root[data-theme="blue"] {
  --bg: #f5f6f8;
  --bg-soft: #eef0f3;
  --card: #ffffff;
  --text: #1a1d23;
  --text-2: #5c6370;
  --text-3: #8b93a1;
  --line: #e3e6eb;
  --line-soft: #eef0f4;
  --accent: #1e5bd6;
  --accent-deep: #1543a8;
  --accent-soft: #e8f0fe;
  --accent-mist: #f2f6ff;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --shadow: 0 1px 3px rgba(20, 24, 32, .06), 0 1px 2px rgba(20, 24, 32, .04);
  --shadow-md: 0 4px 12px rgba(20, 24, 32, .08), 0 2px 4px rgba(20, 24, 32, .04);
  --shadow-lg: 0 12px 32px rgba(20, 24, 32, .12), 0 4px 8px rgba(20, 24, 32, .06);
  --ring: 0 0 0 3px rgba(30, 91, 214, .12);
  --hero-bg: linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
  --logo-grad: linear-gradient(120deg, #1e5bd6 30%, #4d8dff);
  --brand: #1e5bd6;
  --brand-deep: #1543a8;
  --brand-soft: #e8f0fe;
  --brand-ring: 0 0 0 3px rgba(30, 91, 214, .14);
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
}

/* ---------- 深色变量 ---------- */
:root[data-theme="dark"] {
  --bg: #0e1014;
  --bg-soft: #16191f;
  --card: #1a1d24;
  --text: #e8eaee;
  --text-2: #9aa1ad;
  --text-3: #6b7280;
  --line: #2a2e36;
  --line-soft: #22262d;
  --accent: #e8eaee;
  --accent-deep: #ffffff;
  --accent-soft: #252931;
  --accent-mist: #1e2128;
  --ok: #4ade80;
  --ok-soft: #14281d;
  --warn: #fbbf24;
  --warn-soft: #2d2410;
  --err: #f87171;
  --err-soft: #2d1a1c;
  --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .4), 0 2px 4px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5), 0 4px 8px rgba(0, 0, 0, .3);
  --ring: 0 0 0 3px rgba(232, 234, 238, .12);
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
  --hero-bg: linear-gradient(135deg, #1a1d24 0%, #14171c 100%);
  --logo-grad: linear-gradient(120deg, #e8eaee 30%, #6b7280);
}
@media (prefers-color-scheme: dark) {
  /* 注意：blue 主题是"白底蓝强调"，永不跟随系统深色变黑，必须排除 */
  :root:not([data-theme="light"]):not([data-theme="blue"]) {
    --bg: #0e1014;
    --bg-soft: #16191f;
    --card: #1a1d24;
    --text: #e8eaee;
    --text-2: #9aa1ad;
    --text-3: #6b7280;
    --line: #2a2e36;
    --line-soft: #22262d;
    --accent: #e8eaee;
    --accent-deep: #ffffff;
    --accent-soft: #252931;
    --accent-mist: #1e2128;
    --ok: #4ade80;
    --ok-soft: #14281d;
    --warn: #fbbf24;
    --warn-soft: #2d2410;
    --err: #f87171;
    --err-soft: #2d1a1c;
    --shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 1px 2px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, .4), 0 2px 4px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .5), 0 4px 8px rgba(0, 0, 0, .3);
    --ring: 0 0 0 3px rgba(232, 234, 238, .12);
    scrollbar-color: var(--line) transparent;
    scrollbar-width: thin;
    --hero-bg: linear-gradient(135deg, #1a1d24 0%, #14171c 100%);
    --logo-grad: linear-gradient(120deg, #e8eaee 30%, #6b7280);
  }
}

/* 深色细节：顶栏 / 图表柱 / 危险区 */
:root[data-theme="dark"] .site-header { background: rgba(25, 27, 32, .86); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .site-header { background: rgba(25, 27, 32, .86); }
}
:root[data-theme="dark"] .chart-bar { fill: #3a3f49; }
:root[data-theme="blue"] .chart-bar { fill: #5b8def; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .chart-bar { fill: #3a3f49; }
}
:root[data-theme="dark"] .danger-zone { border-color: rgba(248, 113, 113, .35); }
:root[data-theme="blue"] .danger-zone { border-color: rgba(248, 113, 113, .35); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .danger-zone { border-color: rgba(248, 113, 113, .35); }
}

/* 表单自动填充 / 占位符 / 下拉 */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  transition: background-color 9999s ease-in-out 0s;
}
::placeholder { color: var(--text-3); font-size: 13px; }
option { background: var(--card); color: var(--text); }

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: none; box-shadow: var(--ring); }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 12px; }

/* ---------- 无障碍工具 ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; font-size: 13px; transition: top .15s;
}
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#main { scroll-margin-top: 64px; }

/* ---------- 图标 ---------- */
.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon-sun, .icon-moon, .icon-tint { width: 16px; height: 16px; }
.icon-sun { display: none; }
.icon-moon { display: none; }
.icon-tint { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="light"] .icon-tint { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-tint { display: none; }
[data-theme="blue"] .icon-tint { display: block; }
[data-theme="blue"] .icon-sun, [data-theme="blue"] .icon-moon { display: none; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; transition: all .18s cubic-bezier(0.4, 0, 0.2, 1); user-select: none; white-space: nowrap;
  letter-spacing: -.005em;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 15px; height: 15px; }
.btn-primary { background: var(--brand); color: var(--bg); box-shadow: 0 1px 2px rgba(20, 24, 32, .1); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0) scale(.97); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--bg-soft); box-shadow: var(--shadow); }
.btn-danger { background: var(--err-soft); color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; box-shadow: 0 4px 12px rgba(220, 38, 38, .25); }
.btn-lg { padding: 10px 20px; font-size: 14.5px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-mini { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; background: var(--accent-soft); color: var(--text-2); font-weight: 600; }
.btn-mini:hover { background: var(--accent); color: var(--bg); }
.btn-mini.btn-danger { background: var(--err-soft); color: var(--err); }
.btn-mini.btn-danger:hover { background: var(--err); color: #fff; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after { content: ''; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
  border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: kw-spin .6s linear infinite; vertical-align: -2px; }
@keyframes kw-spin { to { transform: rotate(360deg); } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); }
.card-text { flex: 1; min-width: 0; }
.card-reveal { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.card-reveal.show { opacity: 1; transform: none; }

/* ---------- 标签 / 徽标 ---------- */
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: var(--ok); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-err { background: var(--err-soft); color: var(--err); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: var(--accent-soft); color: var(--text-2); }
.badge-pending { background: var(--accent-soft); color: var(--text-2); }

/* ---------- 分类 chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  padding: 5px 12px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  background: var(--card); border: 1px solid var(--line); transition: .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.chip:active { transform: scale(.95); }
.chips-inline { margin-top: 10px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea, .field select, .search-form input, .mini-form select, .mini-form input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px;
  background: var(--card); transition: all .18s cubic-bezier(0.4, 0, 0.2, 1); font-size: 14px; color: var(--text);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus,
.search-form input:focus, .mini-form input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.field-tip { font-size: 12px; color: var(--text-3); margin: 6px 0 0; line-height: 1.5; }

/* ---------- 查询方式切换 Tab ---------- */
.q-tabs { display: flex; max-width: 520px; margin: 0 auto 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.q-tab { flex: 1; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .18s; }
.q-tab:hover { color: var(--text); }
.q-tab.on { background: var(--brand); color: var(--card); }
.q-tab:active { transform: scale(.97); }
.q-pane[hidden] { display: none; }
.field textarea { resize: vertical; }
.form-card { max-width: 520px; margin: 12px auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.form-tip { font-size: 13px; color: var(--text-2); margin-top: 10px; text-align: center; }
.inline-note { font-size: 12px; color: var(--text-3); font-weight: 400; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-soft); margin-top: 4px; }
.stepper { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; width: max-content; }
.step-btn { width: 34px; height: 36px; background: var(--bg-soft); font-size: 16px; color: var(--text-2); transition: .15s; }
.step-btn:hover { background: var(--accent-soft); color: var(--text); }
.step-btn:active { transform: scale(.92); }
.stepper input { width: 52px; text-align: center; border-radius: 0; border: 0; font-variant-numeric: tabular-nums; background: var(--card); }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

/* ---------- 顶栏（前台） ---------- */
.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.header-in { display: flex; align-items: center; gap: 12px; height: 54px; }
.logo { display: flex; align-items: center; font-size: 15.5px; font-weight: 800; color: var(--text); gap: 3px; letter-spacing: -.015em; line-height: 1; }
.logo .icon { margin-right: 4px; color: var(--text-2); }
.logo > span:last-child { background: var(--logo-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* logo 图标自动轮换（14 个，每 1.2 秒切换，总 16.8 秒）——图标与右侧站点名严格垂直居中 */
.logo-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; background: none; -webkit-text-fill-color: unset; }
.logo-ico .icon { position: absolute; inset: 0; margin: 0 !important; opacity: 0; transform-origin: center center; will-change: transform, opacity; animation: kwLogoSwitch 16.8s infinite cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.logo-ico .icon:nth-child(1) { animation-delay: 0s; }
.logo-ico .icon:nth-child(2) { animation-delay: 1.2s; }
.logo-ico .icon:nth-child(3) { animation-delay: 2.4s; }
.logo-ico .icon:nth-child(4) { animation-delay: 3.6s; }
.logo-ico .icon:nth-child(5) { animation-delay: 4.8s; }
.logo-ico .icon:nth-child(6) { animation-delay: 6s; }
.logo-ico .icon:nth-child(7) { animation-delay: 7.2s; }
.logo-ico .icon:nth-child(8) { animation-delay: 8.4s; }
.logo-ico .icon:nth-child(9) { animation-delay: 9.6s; }
.logo-ico .icon:nth-child(10) { animation-delay: 10.8s; }
.logo-ico .icon:nth-child(11) { animation-delay: 12s; }
.logo-ico .icon:nth-child(12) { animation-delay: 13.2s; }
.logo-ico .icon:nth-child(13) { animation-delay: 14.4s; }
.logo-ico .icon:nth-child(14) { animation-delay: 15.6s; }
@keyframes kwLogoSwitch {
  0%   { opacity: 0; transform: scale(0.7) rotate(-15deg); }
  3%   { opacity: 1; transform: scale(1) rotate(0deg); }
  5.5% { opacity: 1; transform: scale(1) rotate(0deg); }
  7.5% { opacity: 0; transform: scale(1.15) rotate(15deg); }
  100% { opacity: 0; transform: scale(1.15) rotate(15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ico .icon { animation: none; }
  .logo-ico .icon:first-child { opacity: 1; }
}
.logo-ico-sm { width: 20px; height: 20px; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { display: flex; align-items: center; padding: 6px 11px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: .15s; }
.nav a:hover { background: var(--accent-soft); color: var(--text); }
.nav a.on { color: var(--text); font-weight: 700; }
.nav a:active { transform: scale(.95); }
.nav a .icon { margin-right: 5px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right .btn { padding: 5px 11px; font-size: 12.5px; }
.theme-toggle {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); border: 1px solid var(--line); background: var(--card); transition: .16s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--text-3); }
.theme-toggle:active { transform: scale(.9); }

/* ---------- 底部 Tab 导航（仅手机） ---------- */
.tabbar { display: none; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-3); font-size: 11px; line-height: 1; padding: 7px 2px; border-radius: 12px; transition: all .18s cubic-bezier(0.4, 0, 0.2, 1); font-weight: 500; }
.tabbar a .icon { width: 22px; height: 22px; transition: transform .18s; }
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar a.on .icon { transform: translateY(-1px); }
.tabbar a:active { transform: scale(.93); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 24px; margin-top: 12px;
  background: var(--hero-bg);
  border: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  opacity: .6; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: 40px; bottom: -60px; width: 160px; height: 160px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-mist) 0%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }
.hero h1 { font-size: 23px; letter-spacing: -.025em; line-height: 1.25; font-weight: 800; }
.hero p { color: var(--text-2); margin: 6px 0 14px; font-size: 13.5px; line-height: 1.6; }
.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
/* 主次按钮差异化：主 CTA 唯一醒目，次要操作保持低调紧凑 */
.hero-acts .btn { min-height: 38px; }
.hero-acts .btn-primary { padding: 9px 20px; font-size: 14px; }
.hero-acts .btn-ghost { padding: 8px 14px; font-size: 13px; color: var(--text-2); }

/* ---------- 服务特性 ---------- */
.feat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.feat { display: flex; align-items: center; gap: 8px; padding: 12px 10px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: all .18s cubic-bezier(0.4, 0, 0.2, 1); }
.feat:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.feat:active { transform: scale(.97); }
.feat-ico { color: var(--text-2); display: inline-flex; margin-right: 2px; width: 28px; height: 28px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--line-soft); align-items: center; justify-content: center; flex: none; }
.feat-ico .icon { margin: 0; width: 14px; height: 14px; }


/* ---------- 企业级介绍引导页（v22 大规模优化） ---------- */
.guide-hero {
  position: relative; overflow: hidden; margin-top: 12px; padding: 32px 22px 24px;
  background: var(--hero-bg); border: 1px solid var(--line-soft); border-radius: var(--radius);
}
.guide-hero::before {
  content: ""; position: absolute; right: -100px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-soft) 0%, transparent 65%);
  opacity: .5; pointer-events: none;
}
.guide-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -140px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, var(--accent-mist) 0%, transparent 65%);
  opacity: .4; pointer-events: none;
}
.gh-kicker {
  position: relative; z-index: 1; display: inline-block;
  font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--text-3);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.guide-hero h1 {
  position: relative; z-index: 1;
  font-size: clamp(28px, 7.4vw, 40px); letter-spacing: -.035em; line-height: 1.12; font-weight: 700;
}
.guide-hero .gh-sub {
  position: relative; z-index: 1; color: var(--text-2); margin: 10px 0 20px;
  font-size: 14.5px; line-height: 1.6;
}
.gh-acts { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.gh-acts .btn { min-height: 40px; padding: 10px 22px; font-size: 14px; }
.gh-acts .btn-ghost { color: var(--text-2); }

/* 信任数据带（真实站点统计） */
.gh-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 24px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line);
}
.gh-stats > div { text-align: center; border-left: 1px solid var(--line-soft); }
.gh-stats > div:first-child { border-left: 0; }
.gh-stats dt { font-size: 10.5px; color: var(--text-3); letter-spacing: .08em; }
.gh-stats dd {
  font-family: var(--font-num); font-size: 20px; font-weight: 650; color: var(--text);
  margin: 5px 0 0; letter-spacing: -.02em; line-height: 1;
}

/* 分节：小标题 + 右侧角标 */
.sec-note {
  font-size: 11px; color: var(--text-3); border: 1px solid var(--line);
  padding: 3px 9px; border-radius: 999px; font-weight: 500; letter-spacing: .04em;
}

/* 三步购买流程 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; display: flex; flex-direction: column; gap: 9px;
  padding: 16px 12px 13px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--card); transition: .18s;
}
.step:hover { border-color: var(--text-3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.step:active { transform: scale(.97); }
.step-no {
  position: absolute; top: 10px; right: 12px;
  font-family: var(--font-num); font-size: 22px; font-weight: 650; color: var(--line);
  letter-spacing: -.02em; line-height: 1;
}
.step-ico { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); border: 1px solid var(--line-soft); align-items: center; justify-content: center; color: var(--accent); }
.step-ico .icon { width: 18px; height: 18px; margin: 0; }
.step-body b { font-size: 13.5px; display: block; }
.step-body p { font-size: 11.5px; color: var(--text-3); margin: 4px 0 0; line-height: 1.55; }

/* 平台优势 */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feat-cell { display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); transition: .18s; }
.feat-cell:hover { border-color: var(--text-3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feat-cell:active { transform: scale(.97); }
.fc-ico { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--line-soft); align-items: center; justify-content: center; color: var(--accent); }
.fc-ico .icon { width: 16px; height: 16px; margin: 0; }
.feat-cell b { font-size: 13.5px; }
.feat-cell p { font-size: 11.5px; color: var(--text-3); margin: 0; line-height: 1.6; }

/* FAQ 折叠 */
.faq { padding: 2px 14px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  padding: 12px 0; font-size: 13px; font-weight: 500; color: var(--text);
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--text-3); width: 15px; height: 15px; flex: none; }
.faq-item summary::after {
  content: ""; margin-left: auto; flex: none; width: 8px; height: 8px;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg); transition: transform .18s;
}
.faq-item[open] summary::after { transform: rotate(225deg); }
.faq-item p { font-size: 12px; color: var(--text-2); margin: 0 0 12px; padding-left: 23px; line-height: 1.65; }

/* 底部引导 */
.final-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: 16px 0 2px; padding: 18px 20px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--hero-bg);
}
.fc-text b { font-size: 15px; display: block; letter-spacing: -.01em; }
.fc-text p { font-size: 12px; color: var(--text-3); margin: 4px 0 0; }

/* 引导页响应式：桌面扩展 */
@media (min-width: 720px) {
  .guide-hero { padding: 52px 44px 36px; }
  .guide-hero h1 { font-size: 42px; }
  .guide-hero .gh-sub { font-size: 16px; max-width: 560px; }
  .gh-kicker { font-size: 12px; margin-bottom: 20px; }
  .gh-stats { margin-top: 34px; padding-top: 22px; }
  .gh-stats dd { font-size: 26px; }
  .steps { gap: 14px; }
  .feats { grid-template-columns: repeat(4, 1fr); }
  .fc-text b { font-size: 16px; }
}

/* ---------- 区块 ---------- */
.section { margin-top: 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sec-head h2 { font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.sec-head h2 .icon { color: var(--text-2); }
.sec-head .icon { color: var(--text-2); }
.sec-h { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.more { font-size: 12px; color: var(--text-3); font-weight: 500; }
.more:hover { color: var(--text); }

/* ---------- 公告 ---------- */
.notice-list { padding: 4px 14px; }
.notice-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.notice-row:last-child { border-bottom: 0; }
.notice-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); flex: none; }
.notice-title { font-weight: 600; flex: none; font-size: 13.5px; }
.notice-body { color: var(--text-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.notice-row time { color: var(--text-3); font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }

/* ---------- 商品 ---------- */
.home-cates { margin-top: 12px; }
.goods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.goods-card {
  display: flex; flex-direction: column; gap: 7px; padding: 14px; border-radius: var(--radius);
  border: 1px solid var(--line); transition: all .2s cubic-bezier(0.4, 0, 0.2, 1); position: relative; min-height: 158px;
  background: var(--card);
}
.goods-card:hover { border-color: var(--text-3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.goods-card:active { transform: translateY(0) scale(.98); }
.goods-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.goods-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.goods-intro { color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.goods-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 12px; }
.meta-item .icon { width: 13px; height: 13px; }
.goods-foot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line-soft); padding-top: 9px; margin-top: auto; }
.price { font-size: 16px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price i { font-style: normal; font-size: 12.5px; font-weight: 700; margin-right: 1px; }
.price-lg { font-size: 26px; }
.sales { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 分页 ---------- */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a { padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-2); background: var(--card); border: 1px solid var(--line); display: inline-flex; align-items: center; transition: .15s; }
.pager a:hover { border-color: var(--text-3); color: var(--text); }
.pager a.on { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }
.pager a:active { transform: scale(.95); }
.pager-gap { color: var(--text-3); padding: 6px 4px; }

/* ---------- 详情页 ---------- */
.detail-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; align-items: start; margin-top: 12px; }
.detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.detail-head h1 { font-size: 20px; letter-spacing: -.02em; line-height: 1.3; }
.detail-sub { color: var(--text-2); margin-top: 4px; font-size: 13.5px; }
.detail-price-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--bg-soft), var(--accent-mist));
  border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 11px 13px; margin: 12px 0;
}
.detail-price-row .meta-item { display: inline-flex; align-items: center; color: var(--text-2); font-size: 13px; }
.detail-cover { border-radius: var(--radius); margin-bottom: 12px; max-height: 260px; object-fit: cover; width: 100%; }
.order-form { margin-top: 4px; }
.panel-title { font-size: 15px; margin: 18px 0 10px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.panel-title:first-child { margin-top: 0; }
.panel-title .icon { color: var(--text-2); }
.detail-steps { display: block; padding-left: 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.rich { color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.rich img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.rich h3, .rich h4 { color: var(--text); margin: 12px 0 6px; }
.rich ul, .rich ol { padding-left: 18px; }
.detail-body { margin-top: 10px; }
.rel-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.rel-row:last-child { border-bottom: 0; }

/* ---------- 查询 / 结果 ---------- */
.result-card { margin-top: 12px; }
.result-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.result-head h3 { font-size: 16px; }
.result-rows { margin: 6px 0; }
.r-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 8px 0; }
.cr-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.card-text { display: block; width: 100%; margin: 8px 0; padding: 11px 13px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); font-family: var(--font-num); font-size: 13.5px; white-space: pre-wrap; word-break: break-all; }
.card-expand td { background: var(--bg-soft); }

/* 账号查询结果：订单迷你卡列表 */
.order-mini { border-top: 1px solid var(--line-soft); padding: 10px 0; }
.order-mini:first-of-type { border-top: 0; }
.om-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.om-head b { font-size: 13.5px; }
.om-head .muted { margin-top: 2px; }
.om-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); }
.om-key { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; color: var(--text-2); }
.om-code { font-family: var(--font-num); font-size: 12.5px; color: var(--text); word-break: break-all; }
.om-code-full { color: var(--text); background: var(--bg-soft); padding: 6px 9px; border-radius: 6px; border: 1px solid var(--line-soft); white-space: pre-wrap; }

/* 邮箱验证区 */
.verify-box { margin-top: 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px; background: var(--bg-soft); }
.vb-head { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.vb-tip { font-size: 12px; color: var(--text-3); margin: 6px 0 10px; line-height: 1.5; }
.vb-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vb-form .btn { flex: 1; min-width: 120px; }
.vb-code { flex: 1; min-width: 130px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 11px; font-size: 16px; letter-spacing: 4px; font-variant-numeric: tabular-nums; background: var(--card); color: var(--text); }

/* ---------- 用户中心 ---------- */
.user-logout { display: inline-flex; align-items: center; gap: 4px; color: var(--err); font-weight: 600; font-size: 13px; }
.user-logout:hover { text-decoration: underline; }

/* ---------- 登录 / 注册 ---------- */
.login-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.login-card, .auth-card { max-width: 400px; width: 100%; padding: 24px 22px; }
.auth-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.auth-sub { color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.auth-switch { margin-top: 14px; font-size: 13px; color: var(--text-2); text-align: center; }
.auth-switch a { font-weight: 600; color: var(--text); }
.auth-switch a:hover { text-decoration: underline; }

/* ---------- 支付结果 ---------- */
.pay-result { max-width: 560px; margin: 12px auto; }
.pr-acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pr-ico { width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pr-ico.ok { background: var(--ok-soft); color: var(--ok); }
.pr-ico.er { background: var(--err-soft); color: var(--err); }
.pr-ico .icon { width: 26px; height: 26px; }

/* ---------- 列表页头部 ---------- */
.page-head { margin-top: 12px; }
.page-head h1 { font-size: 19px; display: flex; align-items: center; gap: 6px; }
.page-head p { color: var(--text-2); font-size: 13px; margin-top: 3px; }
.list-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.list-bar .search-form { flex: 1 1 280px; max-width: 420px; }
.list-bar .chips { flex: 1 1 100%; margin-top: 8px; }
.list-count { color: var(--text-3); font-size: 13px; margin-top: 10px; }
.search-form { display: flex; gap: 8px; flex: 1; max-width: 420px; }
.search-form input { flex: 1; }

/* ---------- 空态 ---------- */
.empty { text-align: center; color: var(--text-2); padding: 24px 20px; font-size: 13.5px; }
.empty .icon { margin: 0 auto 10px; display: block; color: var(--text-3); width: 34px; height: 34px; }
.empty .btn { margin-top: 12px; }

/* ---------- 提示 ---------- */
.tip { display: flex; gap: 8px; align-items: flex-start; padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; background: var(--accent-soft); color: var(--text-2); }
.tip .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--text-3); }
.tip-warn { background: var(--warn-soft); color: var(--warn); }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 10px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-err { background: var(--err-soft); color: var(--err); }
.alert .icon { margin-right: 4px; vertical-align: -2px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--line-soft); margin-top: 26px; padding: 18px 0 20px; }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; color: var(--text-3); font-size: 12.5px; padding: 20px 0; }
.footer-in p { margin: 0; color: var(--text-3); line-height: 1.6; }
.foot-slogan { font-size: 12.5px; opacity: .9; }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 !important; }
.foot-links a { color: var(--text-3); transition: color .15s; text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-tip { flex-basis: 100%; margin-top: 14px !important; padding-top: 12px; border-top: 1px dashed var(--line-soft); font-size: 11.5px; color: var(--text-3); opacity: .7; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); display: inline-block; opacity: .5; flex-shrink: 0; }

/* ---------- 统计卡片（前台会员 / 后台仪表盘通用） ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.stat b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { color: var(--text-2); font-size: 12.5px; }

/* ---------- 会员中心（未登录介绍页） ---------- */
.guest-hero { text-align: center; padding: 30px 16px 6px; }
.guest-logo { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--text); background: var(--card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-lg); }
.guest-logo .icon { width: 30px; height: 30px; margin: 0; }
.guest-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.guest-hero p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.guest-actions { max-width: 420px; margin: 20px auto 26px; display: flex; flex-direction: column; gap: 10px; }
.guest-skip { display: block; text-align: center; color: var(--text-3); font-size: 13px; padding: 4px 0; }
.guest-skip:hover { color: var(--text); }
.guest-note { margin: 16px auto 0; max-width: 480px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.g-feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.g-feat { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--card); transition: .18s; }
.g-feat:hover { border-color: var(--text-3); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.g-feat:active { transform: scale(.97); }
.g-feat-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text); background: var(--accent-soft); }
.g-feat-ico .icon { width: 18px; height: 18px; margin: 0; }
.g-feat h3 { font-size: 14px; font-weight: 700; margin: 0; }
.g-feat p { font-size: 12px; color: var(--text-2); line-height: 1.6; margin: 0; }
@media (max-width: 420px) { .g-feat-grid { grid-template-columns: 1fr; } }

/* ---------- 会员中心（已登录） ---------- */
.mc-hero { display: flex; align-items: center; gap: 12px; padding: 16px; }
.mc-avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--card); background: linear-gradient(135deg, var(--brand), var(--text-3)); }
.mc-info { flex: 1; min-width: 0; }
.mc-name { display: flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.mc-tag { font-size: 10.5px; font-weight: 700; color: var(--text-2); border: 1px solid var(--line); border-radius: 5px; padding: 1.5px 6px; }
.mc-meta { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; font-size: 12px; color: var(--text-2); }
.mc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mc-meta .icon { width: 13px; height: 13px; margin: 0; color: var(--text-3); }
.mc-no-mail { color: var(--text-3); }
.mc-logout { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: var(--err); background: var(--card); border: 1px solid var(--line-soft); }
.mc-logout:active { transform: scale(.94); }
.mc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.mc-stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; align-items: center; text-align: center; }
.mc-stat b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.mc-stat span { color: var(--text-2); font-size: 11.5px; }
.mc-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.mc-q { display: flex; align-items: center; gap: 9px; padding: 11px 12px; transition: .18s; }
.mc-q:hover { border-color: var(--text-3); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.mc-q:active { transform: scale(.97); }
.mc-q-ico { width: 32px; height: 32px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.mc-q-ico .icon { width: 16px; height: 16px; margin: 0; }
.mc-q b { display: block; font-size: 13px; font-weight: 700; color: var(--accent); }
.mc-q i { display: block; font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 1px; }
.mc-order-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.mc-order { padding: 13px 14px; }
.mc-o-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mc-o-head b { font-size: 14px; }
.mc-o-qty { color: var(--text-3); font-size: 12px; font-weight: 600; }
.mc-o-head .mono { font-size: 11.5px; margin-top: 3px; }
.mc-o-rows { display: flex; flex-direction: column; gap: 5px; margin: 9px 0; padding: 9px 10px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.mc-o-rows .r-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.mc-o-rows .r-row span { color: var(--text-2); }
.mc-o-rows .r-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-o-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.mc-o-wait { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12.5px; }
.mc-o-wait .icon { width: 14px; height: 14px; margin: 0; }
.mc-o-card { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.mc-empty-cta { margin-top: 4px; }
.mc-sec { padding: 4px 14px; max-width: 520px; }
.mc-sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.mc-sec-row:last-child { border-bottom: 0; }
.mc-sec-row b { font-size: 14px; display: block; }
.mc-sec-row p { font-size: 12px; color: var(--text-3); margin: 2px 0 0; }
.mc-sec-tag { font-size: 12px; color: var(--text-3); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; flex: none; }

/* ---------- 售后工单 ---------- */
.ticket-count { color: var(--text-3); font-size: 12px; font-weight: 600; }
.ticket-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.ticket-item:last-child { border-bottom: 0; }
.ticket-i-top { display: flex; align-items: center; gap: 8px; }
.ticket-i-top b { font-size: 13.5px; }
.ticket-i-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--text-2); font-size: 12px; }
.ticket-i-sub i { font-style: normal; color: var(--text-3); font-size: 11px; }
.ticket-i-brief { margin-top: 5px; font-size: 12px; color: var(--text-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ticket-d-head { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line-soft); }
.ticket-d-head b { font-size: 14.5px; }
.ticket-d-meta { display: flex; flex-direction: column; gap: 5px; padding: 10px 0; font-size: 12px; color: var(--text-2); }
.ticket-d-meta b { color: var(--text); }
.ticket-d-body { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.ticket-msg { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-soft); margin-top: 9px; }
.ticket-msg-admin { background: var(--brand-soft); border: 1px solid transparent; }
.ticket-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ticket-msg-head b { font-size: 12.5px; color: var(--brand); }
.ticket-msg-head i { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.ticket-msg p { font-size: 13px; line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.ticket-closed-note { margin: 12px 0; font-size: 12.5px; color: var(--text-3); text-align: center; }
.filter-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-form select, .filter-form input { flex: 1; min-width: 120px; }
.status-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- 会员个人资料 ---------- */
.mc-profile { padding: 14px; max-width: 520px; }
.mc-p-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mc-p-row:last-child { border-bottom: 0; }
.mc-p-label { width: 46px; flex: none; color: var(--text-2); font-size: 13px; }
.mc-p-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.mc-p-val b { font-size: 14px; }
.mc-p-sub { font-style: normal; font-size: 11.5px; color: var(--text-3); display: block; margin-top: 1px; }
.mc-p-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.mc-p-avatar-text { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: var(--card); background: linear-gradient(135deg, var(--brand), var(--text-3)); }
.mc-avatar-img { object-fit: cover; border: 1px solid var(--line); }

/* ---------- 会员中心：设置入口与设置卡 ---------- */
.mc-gear { width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .16s; }
.mc-gear:hover { color: var(--text); background: var(--accent-soft); }
.mc-gear:active { transform: scale(.92); }
.mc-gear .icon { width: 17px; height: 17px; margin: 0; }

.mc-settings-btn { display: inline-flex; align-items: center; gap: 5px; flex: none; height: 34px; padding: 0 11px; border-radius: 10px; background: var(--bg-soft); color: var(--text-2); font-size: 13px; font-weight: 600; text-decoration: none; transition: .16s; }
.mc-settings-btn:hover { color: var(--text); background: var(--accent-soft); }
.mc-settings-btn:active { transform: scale(.94); }
.mc-settings-btn .icon { width: 16px; height: 16px; margin: 0; }

/* 设置页视图（#settings） */
.settings-view { padding: 0 0 84px; max-width: 520px; margin: 0 auto; }
.settings-top { display: flex; align-items: center; gap: 4px; padding: 10px 4px 12px; }
.settings-back { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: none; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .16s; }
.settings-back:hover { color: var(--text); background: var(--bg-soft); }
.settings-back:active { transform: scale(.92); }
.settings-back .icon { width: 19px; height: 19px; margin: 0; }
.settings-title { flex: 1; min-width: 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.settings-list { padding: 4px 14px 10px; }
.settings-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line-soft); }
.settings-logout { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; max-width: 520px; margin: 0 auto; height: 44px; border-radius: 12px; background: var(--err-soft); color: var(--err); font-size: 15px; font-weight: 700; text-decoration: none; transition: .16s; }
.settings-logout:hover { background: var(--err); color: var(--card); }
.settings-logout:active { transform: scale(.97); }
.settings-logout .icon { width: 17px; height: 17px; margin: 0; }
.mc-s-main b { font-size: 13.5px; font-weight: 700; display: block; }
.mc-s-main i { font-style: normal; font-size: 11.5px; color: var(--text-3); display: block; margin-top: 1px; }
.mc-s-val { font-size: 12px; color: var(--text-2); flex: none; }
.mc-s-arrow { width: 15px; height: 15px; flex: none; color: var(--text-3); }

/* ---------- 弹窗内列表（设置 / 个人信息） ---------- */
.p-list { display: flex; flex-direction: column; }
.p-list-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line-soft); background: none; color: var(--text); text-align: left; cursor: pointer; transition: .16s; }
.p-list-row:last-child { border-bottom: 0; }
.p-list-row:active { background: var(--bg-soft); border-radius: 8px; }
.p-list-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.p-list-ico .icon { width: 17px; height: 17px; margin: 0; }
.p-list-main { flex: 1; min-width: 0; }
.p-list-main b { font-size: 14px; font-weight: 700; display: block; }
.p-list-main i { font-style: normal; font-size: 12px; color: var(--text-3); display: block; margin-top: 1px; }
.p-list-val { font-size: 12.5px; color: var(--text-2); flex: none; }
.p-list-arrow { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.p-list-preview { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.p-list-preview-text { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; font-size: 15px; font-weight: 800; color: var(--card); background: linear-gradient(135deg, var(--brand), var(--text-3)); flex: none; }

/* ---------- 主题选择弹窗 ---------- */
.theme-opts { display: flex; flex-direction: column; gap: 10px; }
.theme-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--text); text-align: left; cursor: pointer; transition: .16s; }
.theme-opt:active { transform: scale(.98); }
.theme-opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--brand-ring); }
.theme-opt-swatch { width: 42px; height: 42px; flex: none; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; position: relative; }
.theme-sw-light { background: linear-gradient(135deg, #ffffff 55%, #f0f1f3); }
.theme-sw-dark { background: linear-gradient(135deg, #191b20 55%, #0d0e11); }
.theme-sw-blue { background: linear-gradient(135deg, #4d8dff 30%, #1e5bd6); }
.theme-sw-light i, .theme-sw-dark i, .theme-sw-blue i { position: absolute; left: 7px; top: 7px; width: 26px; height: 8px; border-radius: 4px; background: rgba(120, 130, 145, .35); }
.theme-sw-light i::after, .theme-sw-dark i::after, .theme-sw-blue i::after { content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 6px; border-radius: 3px; background: rgba(120, 130, 145, .25); }
.theme-opt-name { flex: 1; min-width: 0; }
.theme-opt-name b { font-size: 13.5px; font-weight: 700; display: block; }
.theme-opt-name i { font-style: normal; font-size: 11.5px; color: var(--text-3); display: block; margin-top: 1px; }
.theme-opt-check { width: 18px; height: 18px; flex: none; color: var(--brand); opacity: 0; transition: .16s; }
.theme-opt.on .theme-opt-check { opacity: 1; }

/* ---------- 通用弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 22px; }
.modal-mask[hidden], .modal[hidden] { display: none; }
.modal { width: 100%; max-width: 400px; max-height: calc(100vh - 44px); overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-lg); animation: modalIn .22s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { font-size: 16.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin: 0; letter-spacing: -.01em; }
.modal-head h3 .icon { color: var(--text-2); }
.modal-x { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.modal-x:hover { background: var(--bg-soft); color: var(--text); }
.modal-x:active { transform: scale(.9); }
.modal-x .icon { width: 16px; height: 16px; margin: 0; }
/* 弹窗锁滚动：JS 用 body position:fixed 锁滚动并保留位置（overflow:hidden 会把滚动位置重置为 0） */
body.modal-lock { }

/* ---------- 查询页：本机购买记录 ---------- */
.local-records { max-width: 520px; margin: 0 auto 12px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 11px 12px; }
.lr-head { display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.lr-head .icon { width: 14px; height: 14px; margin: 0; }
.lr-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lr-btn { border: 1px solid var(--line); background: var(--bg-soft); color: var(--text-2); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border-radius: 7px; padding: 4px 9px; transition: .15s; }
.lr-btn:hover { border-color: var(--text-3); color: var(--text); }
.lr-btn:active { transform: scale(.94); }
.lr-tip { font-size: 11.5px; color: var(--text-3); margin: 8px 0 0; }

/* ---------- 后台 ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
/* 后台禁缩放配套：仅在移动端（触摸设备）将输入字号提到 16px，避免 iOS 聚焦放大 */
@media (max-width: 700px) {
  .admin-body input, .admin-body textarea, .admin-body select { font-size: 16px; }
}
.admin-topbar {
  position: sticky; top: 0; z-index: 25;
  display: none; align-items: center; gap: 10px; height: 52px; padding: 0 14px;
  background: var(--card); border-bottom: 1px solid var(--line-soft);
}
.topbar-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.admin-burger {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); background: var(--bg-soft); border: 1px solid var(--line);
  transition: .15s; cursor: pointer;
}
.admin-burger:hover { background: var(--accent-soft); border-color: var(--text-3); }
.admin-burger:active { transform: scale(.94); }
.admin-burger .icon { width: 20px; height: 20px; }
.sidebar {
  width: 232px; background: var(--card); border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
  transform: none; transition: transform .22s ease;
}
.sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
.side-mask {
  position: fixed; inset: 0; z-index: 29;
  background: rgba(9, 11, 15, .46); opacity: 0; pointer-events: none; transition: opacity .22s;
}
.side-mask.show { opacity: 1; pointer-events: auto; }
body.side-lock { overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 7px; padding: 14px 16px; font-size: 15px; font-weight: 800; letter-spacing: -.01em; border-bottom: 1px solid var(--line-soft); }
.side-brand .icon { color: var(--text-2); }
.side-brand > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-close {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: none; align-items: center; justify-content: center;
  color: var(--text-3); background: var(--bg-soft); border: 0; transition: .15s; cursor: pointer;
}
.side-close:hover { color: var(--text); background: var(--accent-soft); }
.side-close:active { transform: scale(.92); }
.side-close .icon { width: 15px; height: 15px; margin: 0; }
.side-nav { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500; transition: .15s; }
.side-nav a:hover { background: var(--accent-soft); color: var(--text); }
.side-nav a.on { background: var(--accent-soft); color: var(--text); font-weight: 700; }
.side-nav a:active { transform: scale(.97); }
.side-nav .icon { width: 17px; height: 17px; }
.nav-badge { margin-left: auto; background: var(--err); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; line-height: 1.6; flex: none; }
.side-text { flex: 1; }
.side-foot { padding: 10px 8px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 2px; }
.side-foot a, .side-foot .theme-toggle { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; color: var(--text-3); font-size: 13px; }
.side-foot a:hover { color: var(--text); background: var(--accent-soft); }
.side-foot .icon { width: 17px; height: 17px; }
.side-foot .theme-toggle { width: 100%; height: auto; border: 0; background: none; justify-content: flex-start; }
.side-foot .theme-toggle:hover { color: var(--text); background: var(--accent-soft); }
.admin-main { margin-left: 232px; padding: 18px 20px; max-width: 1200px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.admin-head h1 { font-size: 19px; letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; }
.admin-head .sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 12px; }
.chart-card h3 { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.chart-card h3 .icon { color: var(--text-2); }
.chart-svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); margin: 2px 0 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.lg-bar { background: var(--text-2); }
.lg-line { background: var(--accent); }
.chart-line { stroke: var(--text); stroke-width: 2; fill: none; }
.chart-area { fill: var(--accent-soft); opacity: .7; }
.chart-bar { fill: var(--line); }
.chart-bar-hi { fill: var(--text-2); }
.chart-grid-line { stroke: var(--line-soft); stroke-width: 1; }
.chart-label { fill: var(--text-3); font-size: 10px; }
.table-card { padding: 0 0 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px 9px; }
.card-head h2 { font-size: 15px; }
.table { width: 100%; border-collapse: collapse; min-width: 620px; }
.table th { text-align: left; color: var(--text-2); font-weight: 600; padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; font-size: 13px; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-size: 13.5px; }
.table tbody tr:hover { background: var(--bg-soft); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .ops { white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.table .ops form { display: inline-flex; }
.lowstock { display: flex; flex-direction: column; gap: 10px; }
.low-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; gap: 8px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 8px; }
.low-row:last-child { border-bottom: 0; }
.low-num { color: var(--err); font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.danger-zone { border-color: var(--err-soft); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mini-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-form select, .mini-form input { padding: 7px 10px; font-size: 13px; }
.ico-ok { color: var(--ok); }
.ico-warn { color: var(--warn); }

/* ---------- 返回顶部 ---------- */
.to-top { position: fixed; right: 16px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; z-index: 30;
  transition: opacity .25s, transform .18s, border-color .18s, color .18s; opacity: 0; pointer-events: none; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--text); border-color: var(--text-3); transform: translateY(-2px); }
.to-top:active { transform: scale(.92); }

/* ---------- 排版优化 / 动效偏好 ---------- */
.hero h1, .page-head h1, .detail-head h1, .sec-head h2, .sec-h, .chart-card h3,
.auth-title, .admin-head h1, .pay-result h1, .result-head h3, .goods-name { text-wrap: balance; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .goods-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .detail-wrap { grid-template-columns: 1fr; }
  .settings-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .chart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* 移动端：购买流程三列卡片降为单列，避免文字断行 */
  .steps { grid-template-columns: 1fr; }
  /* 前台：隐藏顶部主导航，改用底部 Tab */
  .site-header .nav { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--card); border-top: 1px solid var(--line-soft);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 14px rgba(18, 20, 24, .06);
  }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: 4px; }

  /* 后台：抽屉导航（汉堡展开） */
  .admin-main { margin-left: 0; padding: 14px 12px; }
  .admin-topbar { display: flex; height: 50px; padding: 0 10px; }
  .topbar-title { font-size: 14px; }
  .admin-burger { width: 36px; height: 36px; }
  .sidebar { width: 240px; transform: translateX(-102%); }
  .sidebar.open { transform: translateX(0); }
  .side-close { display: inline-flex; }
  .admin-head { align-items: flex-start; flex-direction: column; }

  /* 前台紧凑化 */
  .header-in { height: 50px; gap: 8px; }
  .nav-right .btn { padding: 7px 11px; font-size: 13px; }
  .nav-right .btn .icon { display: none; }
  .logo span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 18px 16px; margin-top: 10px; }
  .hero h1 { font-size: 20px; }
  .hero-acts .btn { min-height: 34px; }
  .hero-acts .btn-primary { padding: 7px 15px; font-size: 13px; }
  .hero-acts .btn-ghost { padding: 6px 11px; font-size: 12px; }
  .feat { padding: 8px 4px; font-size: 11.5px; flex-direction: column; gap: 4px; text-align: center; line-height: 1.3; }
  .feat-ico { margin-right: 0; width: 24px; height: 24px; }
  .field input, .field textarea, .field select, .search-form input { font-size: 16px; }
  .goods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .goods-card { padding: 10px; min-height: 0; }
  .goods-name { font-size: 13.5px; }
  .chips { flex-wrap: wrap; overflow: visible; padding-bottom: 0; scrollbar-width: none; min-width: 0; }
  .chips::-webkit-scrollbar { display: none; }
  .table .btn-mini { padding: 6px 10px; font-size: 13px; min-height: 32px; }
  .step-btn { width: 40px; height: 40px; font-size: 18px; }
  .stepper input { height: 40px; }
  .table td, .table th { padding: 9px 12px; }
  .footer-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .detail-price-row .price-lg { font-size: 22px; }
  /* 仪表盘统计卡片带内联四列样式，手机上强制两列 */
  .stat-row[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* 手机端表格转卡片：字段标签+值+操作按钮全部屏内可见，无需横向滑动 */
  .table { min-width: 0; }
  .table thead { display: none; }
  .table tbody tr {
    display: block; margin: 0 0 10px; padding: 3px 0;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
    box-shadow: 0 1px 4px rgba(18, 20, 24, .04);
  }
  .table tbody tr td:only-child { justify-content: center; border-bottom: 0; }
  .table td {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 8px 12px !important; border-bottom: 1px solid var(--line-soft);
  }
  .table td:last-child { border-bottom: 0; }
  .table td::before {
    content: attr(data-label); flex: none; color: var(--text-3);
    font-size: 12.5px; font-weight: 600; white-space: nowrap;
  }
  .table td[data-label="操作"] { flex-wrap: wrap; gap: 8px; }
  .table td[data-label="操作"]::before { display: none; }
  .table .ops { display: flex; flex-wrap: wrap; gap: 6px; }
}

@media (max-width: 380px) {
  .goods-grid { grid-template-columns: 1fr; }
  .hero-acts { flex-direction: column; align-items: stretch; }
  .hero-acts .btn-primary { width: 100%; }
  .hero-acts .btn-ghost { width: auto; align-self: flex-start; }
  .pager a { padding: 8px 13px; min-height: 36px; display: inline-flex; align-items: center; }
  .notice-row { flex-wrap: wrap; }
  .notice-body { flex-basis: 100%; order: 3; padding-left: 15px; }
}


/* ===== v38 企业级 UI 优化（去除 !important 污染，统一样式层级） ===== */
:root {
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 2px 8px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.10);
}

/* 面板类定义（v37 引用但未定义） */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* 卡片增强（不用 !important，通过层叠覆盖） */
.card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-color: rgba(0,0,0,.05);
}
.goods-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card:hover, .goods-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* 按钮增强 */
.btn {
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
}
.btn-primary { box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* 标题层次 */
h1, h2, h3 { letter-spacing: -.01em; }
.page-head h2 { letter-spacing: -.02em; }

/* 移动端紧凑优化 */
@media (max-width: 640px) {
  .wrap { padding-left: 14px; padding-right: 14px; }
  .card, .goods-card, .panel { padding: 14px; border-radius: var(--radius-sm); }
  .site-header { padding: 10px 0; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
}

/* 深色模式卡片统一 */
[data-theme="dark"] .card,
[data-theme="dark"] .goods-card,
[data-theme="dark"] .panel {
  background: #1e1f24;
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
[data-theme="dark"] .card:hover,
[data-theme="dark"] .goods-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}

/* 蓝色主题 */
[data-theme="blue"] {
  --primary: #1a73e8;
  --primary-contrast: #fff;
}
[data-theme="blue"] .btn-primary {
  background: #1a73e8;
  box-shadow: 0 2px 8px rgba(26,115,232,.3);
}

/* ===== 主题图标显示逻辑（统一，消除冲突） ===== */
/* 默认隐藏所有主题图标，按 data-theme 显示对应一个 */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-tint { display: none; }

[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="blue"] .theme-toggle .icon-tint { display: block; }

/* 系统深色跟随（未显式设置主题时） */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]):not([data-theme="blue"]) .theme-toggle .icon-moon { display: none; }
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="blue"]) .theme-toggle .icon-moon { display: block; }
  :root:not([data-theme="dark"]):not([data-theme="blue"]) .theme-toggle .icon-sun { display: none; }
}

/* 底部导航增强 */
.tabbar {
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
[data-theme="dark"] .tabbar {
  box-shadow: 0 -2px 12px rgba(0,0,0,.3);
}

/* 公告/空状态 */
.notice-box, .empty-state {
  border-radius: var(--radius);
  padding: 24px 16px;
}

/* 输入框聚焦（不用 !important） */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
[data-theme="blue"] input:focus,
[data-theme="blue"] select:focus,
[data-theme="blue"] textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

/* ===== 深色模式统一加固 ===== */
[data-theme="dark"] .tabbar,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .tabbar {
    background: var(--bg-soft);
    border-top-color: var(--line);
  }
}
[data-theme="dark"] .site-footer,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .site-footer {
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
  }
}
[data-theme="dark"] .hero,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="blue"]) .hero {
    background: var(--hero-bg);
  }
}

/* ===== 商品搜索栏图标（修复缺失样式） ===== */
.list-bar .search-form { position: relative; }
.s-icon { display: inline-flex; align-items: center; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.s-icon .icon { width: 16px; height: 16px; }
.search-form input { padding-left: 36px; }
.search-form { position: relative; }

/* 搜索栏通用 */
.search-bar { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin: 14px 0; }
.search-bar .icon { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.search-bar input[type=search] { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text); padding: 6px 0; }
.search-bar input[type=search]::-webkit-search-cancel-button { cursor: pointer; }
.search-bar .btn-mini { padding: 7px 16px; }

/* 服务卡片 */
.svc-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.svc-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; color: var(--brand); flex-shrink: 0; }
.svc-ico .icon { width: 20px; height: 20px; }
.svc-card > div:nth-child(2) { flex: 1; }
.svc-card p { margin: 2px 0 0; font-size: 12px; }

/* 邀请卡 */
.invite-card { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 16px; }
.invite-card p { margin: 4px 0 10px; font-size: 12px; }
.invite-code { display: flex; align-items: center; gap: 8px; }
.invite-code code { background: var(--brand-soft); padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.invite-balance { text-align: right; }
.invite-balance .num { font-size: 22px; font-weight: 800; }
.invite-balance .label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
