/* ============================================================
   AISub · 全站样式
   改配色只需改 :root 里的变量
   ============================================================ */

:root {
  --bg: #f4f5f9;
  --surface: #ffffff;
  --ink: #0d1220;
  --ink-2: #2b3242;
  --muted: #6b7488;
  --muted-2: #98a0b3;
  --line: #e6e9f1;
  --line-2: #eef0f6;
  --brand: #4f46e5;
  --brand-2: #7c5cf5;
  --brand-ink: #3730a3;
  --brand-soft: #eef0ff;
  --ok: #0e9f6e;
  --ok-soft: #e6f7f0;
  --warn: #d97706;
  --warn-soft: #fdf3e3;
  --bad: #dc2626;
  --bad-soft: #fdeceb;
  --info: #2563eb;
  --info-soft: #eaf1fe;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 18, 32, .06), 0 1px 3px rgba(13, 18, 32, .04);
  --shadow: 0 8px 24px -12px rgba(13, 18, 32, .18), 0 2px 6px rgba(13, 18, 32, .05);
  --shadow-lg: 0 28px 60px -24px rgba(13, 18, 32, .35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 52px); }
h2 { font-size: clamp(24px, 2.8vw, 34px); }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.hidden { display: none !important; }

/* ---------------- 按钮 ---------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: 0 6px 18px -8px rgba(79, 70, 229, .8);
}
.btn-primary:hover { box-shadow: 0 10px 26px -10px rgba(79, 70, 229, .9); }

.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: var(--line); }
.btn-ghost:hover { --btn-bg: #fff; --btn-bd: #d5dae6; }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-ink); --btn-bd: transparent; }
.btn-danger { --btn-bg: #fff; --btn-fg: var(--bad); --btn-bd: #f3c6c3; }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------------- 顶栏 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, .6);
}
.logo-mark svg { width: 19px; height: 19px; color: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 16.5px; letter-spacing: -.02em; }
.logo-text i { font-style: normal; font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em; }

.nav { display: flex; gap: 2px; margin-left: 12px; flex: 1; overflow: hidden; }
.nav-link {
  padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500;
  color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s;
}
.nav-link:hover { background: #f2f3f8; }
.nav-link.is-active { color: var(--brand-ink); background: var(--brand-soft); font-weight: 600; }

.autharea { display: flex; gap: 8px; flex: none; }

.usermenu { position: relative; flex: none; }
.usermenu-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.usermenu-name { font-size: 13.5px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 176px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.usermenu-panel.open { display: block; }
.usermenu-panel a, .usermenu-panel button {
  display: block; width: 100%; text-align: left; padding: 9px 12px;
  border: 0; background: none; border-radius: 8px; font-size: 14px; color: var(--ink-2);
}
.usermenu-panel a:hover, .usermenu-panel button:hover { background: #f4f5fa; }
.usermenu-panel .admin-link { color: var(--brand-ink); font-weight: 600; }

.burger { display: none; margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 40px; height: 38px; font-size: 17px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 16px 14px; background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav a, .mobile-nav button {
  display: block; padding: 11px 4px; font-size: 15px; border: 0; background: none; text-align: left; width: 100%;
}
.mobile-nav form { margin: 0; }

/* ---------------- 提示条 ---------------- */
.flash { margin: 18px auto 0; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: #04724d; border: 1px solid #bfe9d8; }
.flash-bad { background: var(--bad-soft); color: #a1231d; border: 1px solid #f5c9c5; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: #0a0f1e;
  color: #fff;
  padding: 84px 0 96px;
  isolation: isolate;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(680px 380px at 18% 8%, rgba(99, 91, 255, .42), transparent 62%),
    radial-gradient(560px 340px at 84% 22%, rgba(56, 189, 248, .26), transparent 64%),
    radial-gradient(520px 320px at 62% 100%, rgba(168, 85, 247, .22), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: #dbe0ff;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .22); }
.hero h1 { margin-top: 20px; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #a5b4fc, #67e8f9 55%, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 18px; font-size: 16.5px; color: #b9c0d4; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-point { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: #c9cfe2; }
.hero-point svg { width: 16px; height: 16px; color: #7dd3fc; }

/* Hero 右侧卡片 */
.hero-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px; padding: 8px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.hero-card-inner { background: #fff; color: var(--ink); border-radius: 16px; padding: 22px; }
.hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hero-card-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.hero-tabs { display: flex; gap: 6px; background: #f3f4fa; padding: 4px; border-radius: 999px; }
.hero-tab { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 0; background: none; color: var(--muted); }
.hero-tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.hero-plan-name { margin-top: 18px; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.hero-plan-price { margin-top: 4px; display: flex; align-items: baseline; gap: 8px; }
.hero-plan-price b { font-size: 34px; letter-spacing: -.03em; }
.hero-plan-price s { color: var(--muted-2); font-size: 14px; }
.hero-plan-price span { font-size: 13px; color: var(--muted); }
.hero-meta { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 9px; }
.hero-meta-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.hero-meta-row b { color: var(--ink-2); font-weight: 600; }
.progress { height: 6px; border-radius: 999px; background: #eef0f7; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 78px 0; }
.section-head { max-width: 620px; }
.section-head.center { margin-inline: auto; }
.section-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 15.5px; }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-ink); font-size: 14.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .16s; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------- 商品卡 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfe3ee; }
.pcard-top { display: flex; align-items: center; gap: 12px; }
.pcard-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff; flex: none;
}
.pcard-no { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--muted-2); text-transform: uppercase; }
.pcard-title { font-size: 18.5px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.pcard-badge {
  margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-ink);
}
.pcard-body { margin-top: 18px; display: grid; gap: 12px; font-size: 13.5px; }
.pcard-row { display: grid; grid-template-columns: 62px 1fr; gap: 8px; color: var(--ink-2); }
.pcard-row dt { color: var(--muted-2); }
.pcard-row dd { margin: 0; }
.pcard-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { display: flex; align-items: baseline; gap: 3px; }
.price b { font-size: 26px; letter-spacing: -.03em; }
.price small { font-size: 12.5px; color: var(--muted); }

/* ---------------- 卖点 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.feature-no { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.feature-tags { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f2f3f9; color: var(--ink-2); }

/* ---------------- 流程 ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .08em;
}
.step h3 { margin-top: 10px; font-size: 16.5px; }
.step p { margin-top: 7px; font-size: 13.5px; color: var(--muted); }

/* ---------------- CTA ---------------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 56px 48px;
  background: #0a0f1e; color: #fff; text-align: center;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(520px 260px at 20% 0%, rgba(99,91,255,.5), transparent 60%),
              radial-gradient(420px 240px at 85% 100%, rgba(56,189,248,.3), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; color: #b9c0d4; }
.cta .hero-actions { justify-content: center; }

/* ---------------- 页面头 ---------------- */
.pagehead { background: #fff; border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.pagehead h1 { font-size: clamp(26px, 3.2vw, 38px); }
.pagehead p { margin-top: 10px; color: var(--muted); max-width: 620px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand-ink); }

/* ---------------- 套餐选择 ---------------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option label {
  display: block; cursor: pointer; padding: 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.plan-option label:hover { border-color: #cdd3e4; transform: translateY(-1px); }
.plan-option input:checked + label {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); background: #fdfdff;
}
.plan-option .plan-name { font-size: 15px; font-weight: 650; }
.plan-option .plan-price { margin-top: 8px; display: flex; align-items: baseline; gap: 6px; }
.plan-option .plan-price b { font-size: 24px; letter-spacing: -.03em; }
.plan-option .plan-price s { font-size: 12.5px; color: var(--muted-2); }
.plan-option .plan-note { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.plan-option input:checked + label .plan-name::after {
  content: '✓'; float: right; color: var(--brand); font-weight: 800;
}

/* ---------------- 表单 ---------------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { font-size: 19px; }
.panel + .panel { margin-top: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.field-label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field-label b { color: var(--bad); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.textarea { min-height: 110px; resize: vertical; }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted-2); }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* 两步布局 */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 86px; }

/* 订单摘要 */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.summary h3 { font-size: 16px; }
.summary-list { margin-top: 16px; display: grid; gap: 12px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 600; }
.summary-row.is-discount b { color: var(--ok); }
.summary-total { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.summary-total span { font-size: 14px; color: var(--muted); }
.summary-total b { font-size: 28px; letter-spacing: -.03em; }
.trust-list { margin-top: 16px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.trust-list li { display: flex; gap: 8px; align-items: center; list-style: none; }
.trust-list svg { width: 15px; height: 15px; color: var(--ok); flex: none; }
.trust-list { padding: 0; margin: 16px 0 0; }

/* 支付方式 */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option label {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.pay-option input:checked + label { border-color: var(--brand); background: #fdfdff; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.pay-logo { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex: none; }
.pay-wx { background: #07c160; } .pay-ali { background: #1677ff; }
.pay-option .pay-name { font-weight: 600; font-size: 14.5px; }
.pay-option .pay-desc { font-size: 12.5px; color: var(--muted); }

/* 二维码支付 */
.paybox { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.qr-wrap { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); position: relative; }
.qr { width: 100%; height: auto; border-radius: 8px; }
.qr-wrap .qr-tip { text-align: center; font-size: 12.5px; color: var(--muted); padding: 8px 0 2px; }
.pay-lines { display: grid; gap: 12px; }
.pay-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.pay-line b { color: var(--ink); }
.pay-note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--warn-soft); color: #8a5300; font-size: 13px; border: 1px solid #f7e2bd; }
.demo-hint { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--info-soft); color: #1e40af; font-size: 13px; border: 1px solid #cddffb; }

/* ---------------- 标签 ---------------- */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tag-ok { background: var(--ok-soft); color: #04724d; }
.tag-warn { background: var(--warn-soft); color: #8a5300; }
.tag-info { background: var(--info-soft); color: #1d4ed8; }
.tag-bad { background: var(--bad-soft); color: #a1231d; }
.tag-muted { background: #f1f2f7; color: var(--muted); }

/* ---------------- 订单列表 ---------------- */
.order-list { display: grid; gap: 14px; }
.order-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm); transition: border-color .16s, box-shadow .16s;
}
.order-item:hover { border-color: #dadff0; box-shadow: var(--shadow); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--muted-2); }
.order-title { font-size: 15.5px; font-weight: 650; margin-top: 3px; }
.order-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.order-meta b { color: var(--ink-2); font-weight: 600; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* 时间轴 */
.timeline { margin: 0; padding: 0 0 0 4px; list-style: none; }
.timeline li { position: relative; padding: 0 0 22px 26px; border-left: 1.5px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -6.5px; top: 3px;
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--line);
}
.timeline li.done::before { border-color: var(--brand); background: var(--brand); }
.timeline li.done .tl-title { color: var(--ink); }
.timeline .tl-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.timeline .tl-time { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
th { background: #fafbfe; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
td .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }

/* ---------------- 空状态 ---------------- */
.empty {
  display: grid; place-items: center; gap: 12px; text-align: center;
  padding: 56px 24px; background: #fff; border: 1px dashed #d9deec; border-radius: var(--radius); color: var(--muted);
}
.empty svg { width: 34px; height: 34px; color: var(--muted-2); }
.empty p { font-size: 14.5px; }

/* ---------------- 帮助中心 ---------------- */
.faq { display: grid; gap: 10px; margin-top: 24px; }
details.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
details.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 650; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; color: var(--muted-2); font-weight: 400; font-size: 19px; line-height: 1; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-body { padding: 0 0 16px; color: var(--muted); font-size: 14px; }
.prose { color: var(--ink-2); font-size: 15px; }
.prose h2 { font-size: 20px; margin: 32px 0 12px; }
.prose h3 { font-size: 16.5px; margin: 24px 0 8px; }
.prose p { margin: 10px 0; color: var(--ink-2); }
.prose ul { margin: 10px 0; padding-left: 22px; color: var(--ink-2); }
.prose li { margin: 6px 0; }

/* ---------------- 后台 ---------------- */
.admin-shell { display: grid; grid-template-columns: 224px 1fr; min-height: calc(100vh - 66px); }
.admin-side { background: #0c1222; color: #c6cbe0; padding: 22px 14px; }
.admin-side .side-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #6c7591; padding: 0 12px 10px; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 14px; color: #c6cbe0; margin-bottom: 2px;
}
.admin-side a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side a.is-active { background: rgba(99,91,255,.2); color: #fff; font-weight: 600; }
.admin-side .side-foot { margin-top: 20px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6c7591; }
.admin-main { padding: 30px 34px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { font-size: 24px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow-sm); }
.kpi .kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font-size: 27px; font-weight: 750; letter-spacing: -.03em; margin-top: 6px; }
.kpi .kpi-sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.input-xs { padding: 5px 8px; border-radius: 7px; border: 1px solid var(--line); font-size: 13px; width: 92px; }
.btn-xs { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }

/* ---------------- 登录 ---------------- */
.auth-wrap { display: grid; place-items: center; padding: 60px 20px 90px; }
.auth-card { width: min(430px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 25px; }
.auth-card > p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.auth-card form { margin-top: 24px; display: grid; gap: 16px; }
.auth-alt { margin-top: 20px; font-size: 13.5px; color: var(--muted); text-align: center; }
.auth-alt a { color: var(--brand-ink); font-weight: 600; }
.auth-tip { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #f6f7fb; border: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------------- 数字商城卡 ---------------- */
.dcard { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); align-items: center; flex-wrap: wrap; }
.dcard-main { flex: 1; min-width: 220px; }
.dcard h3 { font-size: 16px; }
.dcard p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.dcard .price b { font-size: 22px; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0c1222; color: #aab2c8; margin-top: 0; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .logo-text b { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 13.5px; color: #8a93ad; max-width: 30em; }
.site-footer h4 { font-size: 13px; color: #fff; letter-spacing: .02em; margin-bottom: 12px; }
.site-footer a { display: block; font-size: 13.5px; padding: 4px 0; color: #8a93ad; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6c7591; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .burger { display: block; }
  .autharea, .usermenu { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 60px 0 70px; }
  .card-grid, .feature-grid, .plans-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .paybox { grid-template-columns: 1fr; }
  .qr-wrap { max-width: 280px; margin-inline: auto; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 6px; padding: 12px; }
  .admin-side .side-title, .admin-side .side-foot { display: none; }
  .admin-side a { white-space: nowrap; margin: 0; }
  .admin-main { padding: 22px 20px 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .card-grid, .feature-grid, .plans-grid, .form-grid, .pay-methods { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .cta { padding: 40px 22px; }
  .panel { padding: 20px; }
  .auth-card { padding: 26px 20px; }
  .kpis { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .order-meta { gap: 10px 16px; }
  .hero-points { gap: 8px 16px; }
  .hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
