/* ============================================================
   一路旺·AI碰碰卡 · H5 客户端样式
   深色科技风 · 玻璃态 · 发光 · 移动端优先
   ============================================================ */

/* ---------- 变量系统 ---------- */
:root {
  --bg: #050810;
  --bg-elev: #0a1020;
  --bg-soft: #0f1626;
  --blue: #3b82f6;
  --blue-d: #2563eb;
  --cyan: #06b6d4;
  --violet: #8b5cf6;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --text: #e5e7eb;
  --text-dim: #94a3b8;
  --text-mute: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --glow-blue: 0 0 24px rgba(59, 130, 246, 0.45);
  --glow-violet: 0 0 24px rgba(139, 92, 246, 0.45);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --maxw: 520px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--safe-bottom) + 8px);
}
/* 全局氛围背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 50% at 50% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(60% 40% at 100% 0%, rgba(139, 92, 246, 0.12), transparent 55%),
    radial-gradient(50% 40% at 0% 20%, rgba(6, 182, 212, 0.08), transparent 55%);
  pointer-events: none;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; color: var(--text); }
ul { list-style: none; }

/* ---------- 布局容器 ---------- */
#app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 14px calc(var(--safe-bottom) + 24px);
}
.page { padding-top: calc(var(--safe-top) + 14px); animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 通用卡片 / 玻璃态 ---------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-tight { padding: 14px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  margin: 18px 4px 12px;
  color: var(--text);
}
.section-title::before {
  content: "";
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  box-shadow: var(--glow-blue);
}
.section-title .more { margin-left: auto; font-size: 13px; color: var(--text-dim); font-weight: 400; }

.muted { color: var(--text-dim); }
.mute { color: var(--text-mute); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.break { word-break: break-all; }

/* ---------- 顶部企业身份区 ---------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  margin-bottom: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.16), rgba(139, 92, 246, 0.08) 60%, rgba(10, 16, 32, 0.6));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero::after {
  content: "";
  position: absolute; top: -40%; right: -20%;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  pointer-events: none;
}
.ent-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.ent-logo {
  width: 38px; height: 38px; border-radius: 10px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid; place-items: center;
  font-weight: 700; font-size: 16px; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.ent-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.badge-cert {
  font-size: 10px; padding: 2px 6px; border-radius: 4px;
  background: rgba(16, 185, 129, 0.16); color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 500;
}

.owner-row {
  display: flex; align-items: center; gap: 12px;
}
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.avatar.sm { width: 38px; height: 38px; font-size: 16px; }
.owner-info { flex: 1; min-width: 0; }
.owner-name { font-size: 18px; font-weight: 700; }
.owner-title { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.motto {
  margin-top: 12px;
  font-size: 14px; color: var(--text);
  line-height: 1.55;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}
.video-cover {
  position: relative; margin-top: 12px;
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-cover .play-btn {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(59, 130, 246, 0.85);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25), var(--glow-blue);
}
.video-cover .play-btn::after {
  content: ""; width: 0; height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* ---------- 核心操作按钮 2x2 ---------- */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.act-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 14px 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: transform 0.15s, box-shadow 0.2s;
}
.act-btn:active { transform: scale(0.96); }
.act-btn .ico { font-size: 22px; line-height: 1; }
.act-btn .sub { font-size: 11px; font-weight: 400; color: var(--text-dim); }
.act-ai {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--glow-violet);
}
.act-ai .sub { color: rgba(255, 255, 255, 0.8); }
.act-coupon {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.18);
}
.act-products {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--blue);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.18);
}
.act-contact {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--green);
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.18);
}

/* ---------- 辅助按钮行 ---------- */
.aux-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.aux-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-height: 56px;
  padding: 10px 4px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  transition: transform 0.15s, background 0.2s;
}
.aux-btn:active { transform: scale(0.95); background: var(--glass-2); }
.aux-btn .ico { font-size: 18px; color: var(--text); }

/* ---------- 内容模块 ---------- */
.intro-text { font-size: 14px; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag {
  font-size: 12px; padding: 5px 10px; border-radius: 20px;
  background: rgba(59, 130, 246, 0.12); color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

/* 产品横向滚动 */
.scroll-x {
  display: flex; gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  margin: 0 -2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.prod-card {
  flex: 0 0 150px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--border);
}
.prod-card .img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--bg-soft);
}
.prod-card .body { padding: 10px; }
.prod-card .name { font-size: 13px; font-weight: 600; line-height: 1.4; height: 2.8em; overflow: hidden; }
.prod-card .price { font-size: 13px; color: var(--gold); margin-top: 6px; font-weight: 600; }

/* 案例列表 */
.case-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.case-item:last-child { border-bottom: none; }
.case-item .img {
  width: 84px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: var(--bg-soft);
}
.case-item .info { flex: 1; min-width: 0; }
.case-item .title { font-size: 14px; font-weight: 600; line-height: 1.4; }
.case-item .desc { font-size: 12px; color: var(--text-mute); margin-top: 4px; line-height: 1.5; height: 3em; overflow: hidden; }

/* 优惠券 */
.coupon-item {
  display: flex; align-items: stretch;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background: var(--glass);
}
.coupon-left {
  width: 92px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.06));
  border-right: 1px dashed rgba(245, 158, 11, 0.35);
  padding: 10px 6px;
}
.coupon-amount { font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1; }
.coupon-type { font-size: 11px; color: var(--gold); margin-top: 4px; }
.coupon-right { flex: 1; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.coupon-title { font-size: 14px; font-weight: 600; }
.coupon-cond { font-size: 12px; color: var(--text-dim); margin-top: 3px; }
.coupon-desc { font-size: 11px; color: var(--text-mute); margin-top: 4px; height: 2.4em; overflow: hidden; }
.coupon-claim {
  align-self: flex-start;
  font-size: 12px; padding: 5px 12px; border-radius: 16px;
  background: var(--gold); color: #1a1206; font-weight: 600;
  margin-top: 6px;
}
.coupon-claim:disabled { background: var(--text-mute); color: #fff; }
.coupon-progress { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* 联系方式列表 */
.contact-list .ci {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
}
.contact-list .ci:last-child { border-bottom: none; }
.ci-ico {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; font-size: 16px;
  background: var(--glass-2); flex-shrink: 0;
}
.ci-ico.blue { color: var(--blue); background: rgba(59, 130, 246, 0.12); }
.ci-ico.green { color: var(--green); background: rgba(16, 185, 129, 0.12); }
.ci-ico.gold { color: var(--gold); background: rgba(245, 158, 11, 0.12); }
.ci-ico.cyan { color: var(--cyan); background: rgba(6, 182, 212, 0.12); }
.ci-body { flex: 1; min-width: 0; }
.ci-label { font-size: 12px; color: var(--text-mute); }
.ci-value { font-size: 14px; color: var(--text); margin-top: 1px; word-break: break-all; }
.ci-arrow { color: var(--text-mute); font-size: 14px; }

/* 底部 */
.footer {
  text-align: center;
  padding: 24px 0 8px;
  color: var(--text-mute);
  font-size: 12px;
}
.footer .logo-mark {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.footer .logo-mark .dot-b {
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: var(--glow-blue);
}

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  background: var(--glass-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: transform 0.15s, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  border-color: transparent; color: #fff;
  box-shadow: var(--glow-blue);
}
.btn-violet {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border-color: transparent; color: #fff;
  box-shadow: var(--glow-violet);
}
.btn-ghost { background: transparent; }
.btn:disabled { opacity: 0.5; }

/* ---------- 骨架屏 ---------- */
.sk-wrap { padding-top: calc(var(--safe-top) + 16px); }
.sk-hero, .sk-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.sk-hero { border-radius: var(--radius-lg); padding: 20px 16px; }
.sk-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sk-circle { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; }
.sk-lines { flex: 1; }
.sk-line { height: 14px; border-radius: 7px; margin-bottom: 8px; }
.sk-line:last-child { margin-bottom: 0; }
.sk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.sk-box { height: 76px; border-radius: var(--radius); }
.w40 { width: 40%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sk-circle, .sk-line, .sk-box, .sk-card {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- 加载/空/错误态 ---------- */
.state-box {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
}
.state-box .big-ico { font-size: 44px; margin-bottom: 14px; opacity: 0.7; }
.state-box .st-title { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.state-box .st-desc { font-size: 13px; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border-strong);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 子页面头部 ---------- */
.sub-header {
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-top) + 12px) 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.back-btn {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--glass-2); border: 1px solid var(--border);
  font-size: 18px; flex-shrink: 0;
}
.sub-title { font-size: 17px; font-weight: 600; }

/* ---------- AI 客服面板 ---------- */
.ai-panel {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden;
  pointer-events: none;
}
.ai-panel.open { visibility: visible; pointer-events: auto; }
.ai-mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.ai-panel.open .ai-mask { opacity: 1; }
.ai-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: var(--maxw); margin: 0 auto;
  height: 82vh;
  background: var(--bg-elev);
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  padding-bottom: var(--safe-bottom);
}
.ai-panel.open .ai-sheet { transform: translateY(0); }
.ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.ai-head-info { display: flex; align-items: center; gap: 10px; }
.ai-head-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: var(--glow-violet);
}
.ai-head-title { font-size: 15px; font-weight: 600; }
.ai-head-status { font-size: 11px; color: var(--green); display: flex; align-items: center; gap: 4px; }
.ai-head-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.ai-close { width: 32px; height: 32px; border-radius: 8px; color: var(--text-dim); font-size: 16px; }
.ai-body {
  flex: 1; overflow-y: auto;
  padding: 14px 14px 4px;
  -webkit-overflow-scrolling: touch;
}
.ai-welcome {
  text-align: center; font-size: 13px; color: var(--text-dim);
  margin-bottom: 14px;
  padding: 8px 12px; border-radius: 12px;
  background: var(--glass);
}
.ai-suggest {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
}
.ai-suggest .sq {
  padding: 10px 12px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim);
  text-align: left; line-height: 1.4;
  transition: transform 0.15s, border-color 0.2s;
}
.ai-suggest .sq:active { transform: scale(0.96); border-color: var(--blue); color: var(--blue); }
.ai-messages { padding-bottom: 8px; }
.msg { display: flex; margin-bottom: 12px; animation: fadeUp 0.25s ease; }
.msg.user { justify-content: flex-end; }
.msg .bubble {
  max-width: 78%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg.ai .bubble {
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg.user .bubble {
  background: linear-gradient(135deg, var(--blue), var(--blue-d));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-dim);
  animation: blink 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
.ai-input-bar {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elev);
}
#aiInput {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  outline: none;
}
#aiInput:focus { border-color: var(--blue); }
.ai-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: var(--glow-blue);
}
.ai-send::after {
  content: ""; width: 0; height: 0;
  border-left: 12px solid #fff;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}
.ai-send:disabled { opacity: 0.4; box-shadow: none; }

/* AI 全屏页 */
.ai-full { display: flex; flex-direction: column; height: 100vh; }
.ai-full .ai-body { padding-top: 8px; }
.ai-lead-hint {
  margin: 8px 14px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  font-size: 13px; color: var(--gold);
  text-align: center;
}

/* ---------- 弹窗 (modal) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 110;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal .mask {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.modal .sheet {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  padding: 18px 16px;
  animation: fadeUp 0.25s ease;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.modal-title { font-size: 17px; font-weight: 700; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; color: var(--text-dim); font-size: 16px; }

/* 产品详情 */
.pd-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--bg-soft); }
.pd-name { font-size: 18px; font-weight: 700; }
.pd-price { font-size: 20px; color: var(--gold); font-weight: 700; margin: 8px 0; }
.pd-intro { font-size: 14px; color: var(--text-dim); line-height: 1.7; white-space: pre-wrap; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.form-label .req { color: var(--red); }
.form-control {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-2);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--blue); }
textarea.form-control { resize: vertical; min-height: 80px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-control.invalid { border-color: var(--red); }
.form-control.invalid + .form-error { display: block; }
.privacy-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--text-dim);
  line-height: 1.5;
  margin: 8px 0 16px;
}
.privacy-check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--blue); }
.privacy-check a { color: var(--blue); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 18%;
  transform: translate(-50%, 20px);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 24px;
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
  max-width: 84%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.error { border-color: rgba(239, 68, 68, 0.4); }

/* ---------- 停用页 ---------- */
.disabled-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 40px 30px;
}
.disabled-ico {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}
.disabled-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.disabled-desc { font-size: 13px; color: var(--text-mute); max-width: 280px; }

/* ---------- 统计条 ---------- */
.stat-strip {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.stat-chip {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  text-align: center;
}
.stat-chip .num { font-size: 16px; font-weight: 700; color: var(--blue); }
.stat-chip .lbl { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* ---------- 横幅 ---------- */
.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.banner img { width: 100%; display: block; }

/* ---------- 工具类 ---------- */
.hidden { display: none !important; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; }
.flex { display: flex; } .between { justify-content: space-between; } .center-y { align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; }

/* ---------- 大屏适配 ---------- */
@media (min-width: 560px) {
  body { background: #03050b; }
  #app { box-shadow: 0 0 60px rgba(0, 0, 0, 0.4); min-height: 100vh; }
}
