:root {
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e8eaed;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --price: #d92c2c;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px 60px; }

header.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
header.top .inner { max-width: 1000px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px; }
.logo { font-weight: 600; font-size: 17px; letter-spacing: .3px; }
.logo span { color: var(--brand); }
nav { margin-left: auto; display: flex; gap: 16px; }
nav a { color: var(--muted); font-size: 13px; }
nav a:hover { color: var(--brand); }
.notice { background: #fffbeb; border-bottom: 1px solid #fde68a; color: #92400e; font-size: 13px; text-align: center; padding: 7px 16px; }

.hero { text-align: center; padding: 54px 16px 40px; }
.hero h1 { font-size: 34px; margin: 0 0 12px; font-weight: 600; letter-spacing: .5px; }
.hero p { color: var(--muted); margin: 0 auto 22px; max-width: 560px; font-size: 14px; }
.hero .cta { padding: 11px 30px; font-size: 15px; border-radius: 999px; }
.hero .chips { margin-top: 20px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; padding: 4px 12px; border-radius: 999px; }

.section-title { text-align: center; margin: 30px 0 6px; }
.section-title h2 { font-size: 20px; margin: 0; font-weight: 600; }
.section-title p { color: var(--faint); font-size: 12px; margin: 4px 0 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: 0 6px 20px rgba(15, 23, 42, .07); transform: translateY(-1px); }
.pcard .cat { color: var(--faint); font-size: 11px; letter-spacing: .5px; }
.pcard h3 { margin: 6px 0 2px; font-size: 17px; font-weight: 600; }
.pcard .term { display: inline-block; background: #f3f4f6; color: #4b5563; font-size: 11px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.pcard .desc { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.pcard .req { background: #fafafa; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #4b5563; }
.pcard .req b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; font-weight: 600; }
.pcard .price-row { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pcard .price { color: var(--price); font-size: 24px; font-weight: 600; }
.pcard .price small { font-size: 12px; color: var(--faint); font-weight: 400; }
.pcard .old { color: var(--faint); font-size: 12px; text-decoration: line-through; }
/* 平台不对外报价：具体价格由代理自己定 */
.price-contact { color: var(--muted); font-size: 15px; font-weight: 600; letter-spacing: .2px; }
.pcard .btn-row { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.pcard .btn-row button { flex: 1; }
.pcard .more { font-size: 12px; color: var(--brand); cursor: pointer; margin-top: 10px; display: inline-block; }

button, .btn { border: none; border-radius: 9px; padding: 10px 16px; background: var(--brand); color: #fff; font-size: 14px; cursor: pointer; font-family: inherit; transition: background .12s; }
button:hover, .btn:hover { background: var(--brand-dark); }
button.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
button.ghost:hover { background: #f3f4f6; }
button.sm { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; margin-bottom: 8px; }
.step h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 12px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
h1.page { font-size: 22px; margin: 24px 0 6px; font-weight: 600; }
p.sub { color: var(--muted); margin: 0 0 14px; }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; background: #fff; color: var(--text); }
input:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
textarea { min-height: 130px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
label { display: block; font-size: 13px; margin: 12px 0 4px; }
.row { display: flex; gap: 10px; align-items: flex-end; }
.row > * { flex: 1; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.pill.gray { background: #f3f4f6; color: #4b5563; }
.pill.blue { background: var(--brand-soft); color: var(--brand); }
.pill.green { background: #ecfdf5; color: var(--ok); }
.pill.red { background: #fef2f2; color: var(--bad); }
.pill.amber { background: #fffbeb; color: var(--warn); }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; gap: 10px; }
.kv:last-child { border-bottom: none; }
.kv span:first-child { color: var(--muted); flex: 0 0 auto; }
.kv span:last-child { text-align: right; }
.steps { display: flex; gap: 6px; margin: 14px 0; }
.steps div { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps div.on { background: var(--brand); }
.qrbox { text-align: center; padding: 16px; background: #fafafa; border: 1px dashed #d8dbe0; border-radius: 12px; }
.qrbox img { max-width: 240px; border-radius: 8px; }
.qrbox .missing { color: var(--muted); font-size: 13px; }
.order-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border-bottom: none; }
.order-item .meta { font-size: 12px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.stat b { display: block; font-size: 20px; font-weight: 600; }
.stat span { font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 16px 0 8px; flex-wrap: wrap; }
.tabs button { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.msg { padding: 10px 12px; border-radius: 9px; font-size: 13px; margin: 10px 0; display: none; }
.msg.show { display: block; }
.msg.err { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; }
.msg.ok { background: #ecfdf5; color: var(--ok); border: 1px solid #bbf7d0; }
.msg.info { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #bfdbfe; }
.tipbar { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; padding: 9px 12px; border-radius: 9px; font-size: 12px; margin: 12px 0; }
/* 开通流程引导（醒目版） */
.hero-flow { margin-top: 18px; font-size: 15px; color: var(--muted); }
.hero-flow a {
  color: var(--brand); font-weight: 600; font-size: 16px; margin-left: 6px;
  border-bottom: 2px solid var(--brand); padding-bottom: 2px;
}
.hero-flow a:hover { color: var(--brand-dark); border-color: var(--brand-dark); }

.flow-hint {
  background: linear-gradient(90deg, #eff6ff, #f5f9ff);
  border: 1px solid #cfe0fd; border-radius: 10px; padding: 10px 12px;
  font-size: 13px; color: var(--muted); margin: 10px 0 4px;
}
.flow-hint a { color: var(--brand); font-weight: 600; margin-left: 4px; }

.flow-panel {
  background: #fff; border: 1px solid #cfe0fd; border-radius: 16px;
  padding: 22px; margin-top: 16px;
  box-shadow: 0 4px 18px rgba(37, 99, 235, .06);
}
.flow-steps { display: flex; align-items: stretch; gap: 10px; }
.fstep {
  flex: 1; display: flex; gap: 12px; align-items: flex-start;
  background: #f8faff; border: 1px solid #e3ecfd; border-radius: 12px; padding: 14px;
}
.fnum {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.fstep h4 { margin: 2px 0 4px; font-size: 15px; font-weight: 600; }
.fstep p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.farrow { flex: 0 0 18px; display: flex; align-items: center; justify-content: center; color: #b7c9e8; font-size: 18px; }
.flow-tip {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13px; color: #b45309; background: #fffbeb;
  border-radius: 10px; padding: 12px 14px;
}

/* 订单页的四步进度（带文字标签） */
.steps.labeled { gap: 8px; }
.steps.labeled .s {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--faint);
}
.steps.labeled .s b {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin: 0 auto 4px; border-radius: 50%;
  background: #eef0f3; color: #6b7280; font-size: 12px; font-weight: 600;
}
.steps.labeled .s span { font-size: 12px; }
.steps.labeled .s.on { border-color: #bfdbfe; background: #f5f9ff; color: var(--brand-dark); }
.steps.labeled .s.on b { background: var(--brand); color: #fff; }

details { margin: 8px 0; }
details summary { cursor: pointer; color: var(--brand); font-size: 13px; }
details ol, details ul { padding-left: 20px; margin: 8px 0; color: #4b5563; font-size: 13px; }
details p { color: var(--muted); font-size: 13px; }
footer.site { color: var(--faint); font-size: 12px; text-align: center; padding: 34px 16px 10px; line-height: 1.9; }
footer.site .contact { color: var(--muted); }
code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
@media (max-width: 600px) {
  .row { flex-direction: column; align-items: stretch; }
  .hero { padding: 36px 16px 28px; }
  .hero h1 { font-size: 26px; }
  .wrap { padding: 0 12px 40px; }
}

/* 手机端补丁（2026-10-22）：客户几乎都用手机，之前首页/兑换页/店铺页在 375px 宽会横向溢出。
   两个真凶：① 顶部导航 4 个链接挤在一行，每个字被压成竖排 ② 开通流程 3 个步骤横排，每格只有 100px */
@media (max-width: 640px) {
  header.top .inner { flex-wrap: wrap; gap: 6px 12px; padding: 10px 12px; }
  .logo { white-space: nowrap; font-size: 16px; }
  nav { gap: 12px; }
  nav a { font-size: 12.5px; white-space: nowrap; }
  .flow-steps { flex-direction: column; gap: 8px; }
  .fstep { flex: none; }
  .farrow { transform: rotate(90deg); align-self: center; line-height: 1; }
  .hero-flow { line-height: 2; }
  .kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  table { display: block; overflow-x: auto; }
}
