/* ============================================================
   Nebula Shop · S05 暗黑科技 × S06 玻璃拟态 融合
   规则：颜色/圆角/动效只用变量；正文对比度 ≥ 4.5:1；动效尊重 reduced-motion
   ============================================================ */
:root {
  /* 底层 */
  --bg: #070712;
  --bg-2: #0b0b1a;
  --ink: #eef2ff;
  --muted: #a5b0d0;          /* 对 --bg 对比度 ≈ 7.2:1 */
  --line: rgba(255, 255, 255, .14);
  --line-strong: rgba(255, 255, 255, .26);

  /* 玻璃 */
  --glass: rgba(255, 255, 255, .06);
  --glass-2: rgba(255, 255, 255, .10);
  --glass-3: rgba(255, 255, 255, .16);

  /* 强调色（S05 的科技冷色 + S06 的紫粉氛围）*/
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --violet: #a78bfa;
  --purple: #8b5cf6;
  --fuchsia: #c084fc;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f472b6;
  --grad: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 55%, var(--fuchsia) 100%);

  /* 形状与节奏 */
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-pill: 999px;
  --blur: 22px;
  --shadow-1: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-2: 0 24px 60px -18px rgba(139, 92, 246, .45);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .28s;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
  --container: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  --font-num: "SF Mono", ui-monospace, Consolas, "JetBrains Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ===== 背景层：光斑 + 网格 + 光标光晕 ===== */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; animation: float 22s var(--ease) infinite alternate; }
.b1 { width: 520px; height: 520px; background: #0891b2; top: -140px; left: -110px; }
.b2 { width: 600px; height: 600px; background: #7c3aed; top: 18%; right: -190px; animation-delay: -7s; }
.b3 { width: 460px; height: 460px; background: #c026d3; bottom: -170px; left: 22%; opacity: .32; animation-delay: -13s; }
@keyframes float { to { transform: translate3d(70px, 50px, 0) scale(1.12); } }
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%);
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 65%);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }

/* ===== 通用 ===== */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  border-radius: var(--r-lg);
}
.container { width: min(var(--container), 92%); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-variant-numeric: tabular-nums; font-family: var(--font-num); }

/* ===== 导航 ===== */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 60;
  width: min(var(--container), 94%); display: flex; align-items: center; gap: var(--s-4);
  padding: 10px 12px 10px 20px; border-radius: var(--r);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), top var(--dur) var(--ease);
}
.nav.scrolled { background: rgba(10, 10, 26, .72); box-shadow: var(--shadow-1); top: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .4px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--grad); color: #0b0b1a; box-shadow: 0 0 22px rgba(139, 92, 246, .55);
}
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; gap: 2px; margin-left: var(--s-4); }
.nav-links a { padding: 8px 14px; border-radius: var(--r-sm); color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: #fff; background: var(--glass-2); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--glass-2); place-items: center; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: var(--r-sm);
  font-weight: 650; font-size: 14px; position: relative; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #0b0b1a; box-shadow: 0 8px 28px rgba(139, 92, 246, .45); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(139, 92, 246, .6); }
.btn-primary[disabled] { opacity: .55; transform: none; box-shadow: none; cursor: not-allowed; }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.btn-ghost:hover { background: var(--glass-2); transform: translateY(-2px); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .6s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ===== Hero ===== */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 132px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s-12); align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13px; color: var(--cyan-soft); background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22);
  margin-bottom: var(--s-5);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; font-weight: 850; letter-spacing: -1.4px; margin-bottom: var(--s-5); }
.lead { font-size: 17px; color: var(--muted); max-width: 30em; margin-bottom: var(--s-6); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: var(--s-8); margin-top: var(--s-12); flex-wrap: wrap; }
.stat b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.stat span { color: var(--muted); font-size: 13px; }

/* Hero 右侧：开通流程卡（真实反映订单状态，不是装饰） */
.progress-card { padding: var(--s-6); position: relative; }
.progress-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: var(--r-lg); padding: 1px;
  background: var(--grad); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }
.pc-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pc-live { font-size: 11px; color: var(--ok); display: inline-flex; align-items: center; gap: 5px; }
.pc-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.step-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); margin-bottom: 10px; }
.step-row .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(34, 211, 238, .14); color: var(--cyan); flex: 0 0 auto; }
.step-row .txt { font-size: 13.5px; }
.step-row small { margin-left: auto; color: var(--cyan-soft); font-size: 12px; white-space: nowrap; }
.step-row.done .ic { background: rgba(52, 211, 153, .16); color: var(--ok); }
.pc-foot {
  margin-top: var(--s-4); padding: 14px; border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(34, 211, 238, .10), rgba(139, 92, 246, .12));
  font-family: var(--font-num); font-size: 12.5px;
}
.pc-foot div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); }
.pc-foot b { color: #fff; font-weight: 600; }

/* ===== 区块 ===== */
section { padding: 88px 0; }
.sec-head { text-align: center; max-width: 620px; margin: 0 auto var(--s-12); }
.sec-head .tag { font-size: 12.5px; letter-spacing: .18em; color: var(--cyan-soft); }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.8px; margin: 10px 0 12px; }
.sec-head p { color: var(--muted); }

/* ===== 套餐 ===== */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  padding: 26px 22px; display: flex; flex-direction: column; position: relative;
  transition: transform var(--dur) var(--ease), border-color .25s, box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.plan.hot { background: linear-gradient(160deg, rgba(34, 211, 238, .12), rgba(139, 92, 246, .16)); border-color: rgba(167, 139, 250, .5); }
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 12px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 700;
  background: var(--grad); color: #0b0b1a; white-space: nowrap;
}
.plan-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); margin-bottom: var(--s-4); color: var(--cyan-soft); }
.plan h3 { font-size: 18px; font-weight: 750; }
.plan .sub { color: var(--muted); font-size: 12.5px; margin: 4px 0 var(--s-5); min-height: 38px; }
.price { display: flex; align-items: baseline; gap: 3px; margin-bottom: var(--s-5); }
.price .cur { font-size: 18px; font-weight: 700; color: var(--cyan-soft); }
.price .num { font-size: 40px; font-weight: 850; letter-spacing: -1.2px; }
.price .per { color: var(--muted); font-size: 12.5px; margin-left: 2px; }
.plan ul { list-style: none; display: grid; gap: 9px; margin-bottom: var(--s-6); flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; color: #d6dcf5; align-items: flex-start; }
.plan li svg { flex: 0 0 auto; margin-top: 4px; color: var(--cyan); }

/* ===== 特性 / 流程 / FAQ ===== */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat { padding: 22px; }
.feat .fi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-2); color: var(--cyan-soft); margin-bottom: 14px; }
.feat h4 { font-size: 15px; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--muted); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step { padding: 22px; }
.step .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-num); font-weight: 700; font-size: 15px; margin-bottom: 14px; background: var(--glass-2); }
.step h5 { font-size: 14.5px; margin-bottom: 5px; }
.step p { font-size: 12.5px; color: var(--muted); }

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.qa { padding: 0; overflow: hidden; }
.qa > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-size: 14.5px; text-align: left; font-weight: 600; }
.qa .pm { color: var(--cyan); font-size: 18px; transition: transform var(--dur) var(--ease); flex: 0 0 auto; }
.qa[open] .pm { transform: rotate(45deg); }
.qa .ans { padding: 0 20px 18px; color: var(--muted); font-size: 13.5px; }

.cta-box { text-align: center; padding: 56px 24px; }
.cta-box h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta-box p { color: var(--muted); margin-bottom: var(--s-6); }
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.foot-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-grid a:hover { color: #fff; }

/* 我的订单列表项 */
.empty { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 0; }
.order-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04); margin-bottom: 8px;
}

/* 图形验证码 */
.cap-row { display: flex; gap: 10px; align-items: center; }
.cap-img {
  flex: 0 0 auto; width: 156px; height: 52px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff;
}
.cap-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cap-img:hover { border-color: var(--cyan); }

/* 客服二维码 */
.qr-box {
  display: grid; place-items: center; margin: 0 auto;
  width: 208px; height: 208px; padding: 10px;
  background: #fff; border-radius: var(--r);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.qr-box.is-empty { background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px dashed var(--line-strong); }
.qr-box img { width: 188px; height: 188px; object-fit: contain; display: block; }
/* 没有二维码时必须彻底隐藏，否则会显示一张破图 */
.qr-box img[hidden] { display: none !important; }
.qr-empty[hidden] { display: none !important; }
.qr-empty { color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.6; }
.qr-tip { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.contact-lines { margin-top: 16px; display: grid; gap: 8px; text-align: left; }
.contact-lines .crow {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 9px 12px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.contact-lines .crow span { color: var(--muted); font-size: 12px; min-width: 56px; }
.contact-lines .crow b { font-family: var(--font-num); font-weight: 600; flex: 1; word-break: break-all; }

/* ===== 全站公告条 ===== */
.notice-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  padding: 8px 16px; text-align: center; font-size: 12.5px; color: #0b0b1a;
  background: var(--grad); font-weight: 600;
}
body.has-notice .nav { top: 44px; }
body.has-notice .nav.scrolled { top: 40px; }
body.has-notice .hero { padding-top: 176px; }

/* ===== 弹窗（下单 / 支付）===== */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4, 4, 12, .72); backdrop-filter: blur(6px);
  padding: 20px; overflow-y: auto;
}
.overlay.open { display: grid; place-items: center; }
.modal {
  width: min(480px, 100%); padding: 24px; position: relative;
  background: rgba(14, 14, 30, .92); border: 1px solid var(--line-strong);
  animation: pop var(--dur) var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--glass); }
.modal-close:hover { color: #fff; background: var(--glass-2); }
.modal h3 { font-size: 19px; margin-bottom: 4px; }
.modal .m-sub { color: var(--muted); font-size: 13px; margin-bottom: var(--s-5); }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field {
  width: 100%; min-height: 44px; padding: 11px 13px; font-size: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: rgba(165, 176, 208, .6); }
.field:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.field.err { border-color: var(--danger); }
.field-tip { font-size: 11.5px; color: var(--danger); margin-top: 6px; display: none; }
.field-tip.show { display: block; }
.form-row { margin-bottom: var(--s-4); }
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-size: 13.5px; text-align: left;
  transition: border-color .2s, background .2s;
}
.channel[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, .10); }
.channel svg { flex: 0 0 auto; }
.m-total { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); margin-top: var(--s-2); }
.m-total span { color: var(--muted); font-size: 13px; }
.m-total b { font-size: 24px; }

/* 支付区 */
.pay-area { text-align: center; }
.qr-wrap { display: inline-grid; place-items: center; padding: 12px; background: #fff; border-radius: var(--r); margin: var(--s-4) 0; min-width: 196px; min-height: 196px; }
.qr-wrap canvas, .qr-wrap img { display: block; width: 172px; height: 172px; }
.qr-fallback { color: #111; font-size: 12px; word-break: break-all; padding: 8px; }
.pay-manual { margin: var(--s-4) 0; padding: 18px; border-radius: var(--r); background: var(--glass); border: 1px dashed var(--line-strong); }
.pay-manual .pm-label { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.pay-manual .pm-account { font-family: var(--font-num); font-size: 16px; font-weight: 700; letter-spacing: .3px; word-break: break-all; }
.pay-manual .pm-tip { font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.pay-amount { font-size: 30px; font-weight: 850; letter-spacing: -1px; margin-bottom: 4px; }
.pay-meta { display: grid; gap: 8px; margin-top: var(--s-5); font-size: 12.5px; color: var(--muted); }
.pay-meta .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pay-meta b { color: var(--ink); font-family: var(--font-num); font-weight: 600; }
.copy-btn { color: var(--cyan-soft); font-size: 12px; padding: 2px 8px; border-radius: 6px; background: rgba(34, 211, 238, .10); }
.status-line { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; padding: 12px; border-radius: var(--r-sm); background: var(--glass); margin-top: var(--s-4); }
.status-line.pending { color: var(--warn); }
.status-line.ok { color: var(--ok); background: rgba(52, 211, 153, .10); }
.status-line.bad { color: var(--danger); background: rgba(244, 114, 182, .10); }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 客服浮层 ===== */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #0b0b1a; box-shadow: 0 10px 30px rgba(139, 92, 246, .5);
  transition: transform var(--dur) var(--ease);
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-fab .ping { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .7); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 91;
  width: min(376px, calc(100vw - 40px)); height: min(540px, calc(100svh - 140px));
  display: none; flex-direction: column; overflow: hidden;
  padding: 0; /* 覆盖全局 section 的上下留白 */
  background: rgba(9, 9, 20, .965);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg); box-shadow: var(--shadow-2);
}
.chat-panel.open { display: flex; animation: pop var(--dur) var(--ease); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head .who { font-size: 14px; font-weight: 700; }
.chat-head .state { font-size: 11.5px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.chat-head .state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chat-head .close { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.chat-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 84%; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.55; word-break: break-word; }
.msg.agent { background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(139, 92, 246, .26)); border: 1px solid rgba(167, 139, 250, .35); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .t { display: block; font-size: 10.5px; color: var(--muted); margin-top: 4px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.quick button { font-size: 12px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--line); color: var(--muted); }
.quick button:hover { color: #fff; border-color: var(--cyan); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); margin-top: auto; background: rgba(9, 9, 20, .6); }
.chat-input textarea { flex: 1; resize: none; height: 44px; padding: 11px 12px; font-size: 13.5px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: var(--r-sm); }
.chat-input textarea:focus { outline: none; border-color: var(--cyan); }
.chat-send { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--grad); color: #0b0b1a; }
.chat-send[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Toast ===== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120;
  display: flex; align-items: center; gap: 8px; padding: 12px 18px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .pricing, .feats, .flow { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav-links.open {
    display: grid; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: rgba(12, 12, 26, .96); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; margin: 0;
  }
}
@media (max-width: 640px) {
  .pricing, .feats, .flow { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .stats { gap: var(--s-5); }
  section { padding: 64px 0; }
  .chat-panel { right: 10px; left: 10px; width: auto; bottom: 84px; }
  .chat-fab { right: 14px; bottom: 14px; }
  .channels { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
