/* ============================================================
   授权中心 · 全站样式
   ------------------------------------------------------------
   纯静态站，零外部依赖：字体走系统栈，图标全部内联 SVG。
   品牌主色与控制台保持一致：#2563eb。

   组织结构（改之前先看这里）：
     1. 设计令牌    颜色 / 间距 / 圆角 / 阴影 / 字体，改皮肤只动这一节
     2. 基础        重置与排版
     3. 布局        .wrap / .section / .section-head / 栅格与间距工具
     4. 元件        按钮 / 标签 / 表单 / 卡片 / 表格 / 结果盒 / 步骤 / FAQ
     5. 站点骨架    导航 / Hero / CTA / 页脚
     6. 首页区块    优势 / 版本卡 / 功能矩阵 / 授权机制 / 工具入口
     7. 工具箱页
     8. 快速部署页
     9. 授权购买页
    10. 管理后台
    11. 响应式
   ============================================================ */

/* ============================================================
   1. 设计令牌
   ============================================================ */
:root {
  /* ---- 色彩 ---- */
  --ink: #0f172a;            /* 主文字 */
  --ink-2: #334155;          /* 次文字 */
  --muted: #64748b;          /* 辅助文字 */
  --faint: #94a3b8;          /* 弱提示 */
  --line: #e2e8f0;           /* 边框 */
  --line-soft: #eef2f7;      /* 浅边框 / 分隔线 */
  --bg: #f8fafc;             /* 页面浅底 */
  --bg-2: #f1f5f9;           /* 更浅一档 */
  --card: #ffffff;

  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-deep: #1e3a8a;
  --brand-soft: #eff6ff;
  --brand-line: #bfdbfe;

  --cyan: #06b6d4;
  --ok: #16a34a;
  --ok-deep: #15803d;
  --ok-soft: #ecfdf5;
  --ok-line: #bbf7d0;
  --warn: #f59e0b;
  --warn-deep: #b45309;
  --warn-soft: #fffbeb;
  --warn-line: #fde68a;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --danger-line: #fecaca;
  --night: #0b1220;          /* 深色代码底 */

  /* ---- 间距（4px 基准） ---- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 20px; --s6: 24px; --s7: 32px; --s8: 40px;
  --s9: 56px; --s10: 72px;

  /* ---- 圆角 ---- */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 16px;
  --r-full: 999px;

  /* ---- 阴影 ---- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .07), 0 10px 26px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --ring: 0 0 0 3px rgba(37, 99, 235, .14);

  /* ---- 版式 ---- */
  --wrap: 1180px;
  --font: "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, "PingFang SC", sans-serif;
  --mono: "JetBrains Mono", Consolas, Menlo, "Courier New", monospace;
}

/* ============================================================
   2. 基础
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 15px/1.72 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }

/* 键盘焦点环：只在键盘导航时出现，鼠标点击不打扰 */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

::selection { background: rgba(37, 99, 235, .18); }

/* hidden 必须能盖过组件自身的 display 规则：
   .adm-login 等设了 display:grid/flex，若不加这条，JS 把 el.hidden=true 之后
   元素仍然显示（hidden 属性默认的 display:none 会被组件样式覆盖）。 */
[hidden] { display: none !important; }

.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ============================================================
   3. 布局
   ============================================================ */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s6); }

.section { padding: 84px 0; }
.section.tint { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* 紧跟在前一小节后面的小节：上方留白收窄，避免两段间距叠在一起 */
.section.tight { padding-top: 34px; }

.section-head { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { margin: var(--s3) 0; font-size: 32px; line-height: 1.35; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 左对齐的小节标题（部署页 / 购买页用） */
.sub-head { margin: var(--s8) 0 var(--s5); }
.sub-head.first { margin-top: 0; }
.sub-head h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.01em; }
.sub-head p { margin: 0; color: var(--muted); font-size: 14px; }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}

/* 通用工具类：把原先散落在 HTML 里的内联样式收进来 */
.note { text-align: center; color: var(--muted); font-size: 13.2px; margin: 26px 0 0; }
.note.fine { color: var(--faint); font-size: 12.6px; margin: 16px 0 0; }
.acts { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; margin-top: var(--s7); }
.v-gap { height: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }

/* 空 / 加载态 */
.empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 13.6px;
  border: 1px dashed var(--line); border-radius: var(--r-lg); background: #fff; }

/* ============================================================
   4. 元件
   ============================================================ */

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 11px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  font-family: inherit; line-height: 1.5;
  transition: transform .15s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .28); }
.btn.primary:hover { box-shadow: 0 10px 26px rgba(37, 99, 235, .36); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--brand-line); color: var(--brand); }
.btn.dark { background: rgba(255, 255, 255, .1); color: #e6edf7; border-color: rgba(255, 255, 255, .22); }
.btn.dark:hover { background: rgba(255, 255, 255, .18); }
.btn.sm, .btn.small { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn.lg { padding: 12px 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.ghost.danger { color: var(--danger); border-color: var(--danger-line); }
.btn.ghost.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn svg { flex: none; }

/* ---------- 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 600;
  background: var(--brand-soft); color: var(--brand-dark); border: 1px solid var(--brand-line);
}
.tag.ok { background: var(--ok-soft); color: var(--ok-deep); border-color: var(--ok-line); }
.tag.warn { background: var(--warn-soft); color: var(--warn-deep); border-color: var(--warn-line); }
.tag.plain { background: var(--bg-2); color: var(--muted); border-color: var(--line); }
.tag.off { background: var(--bg-2); color: var(--faint); border-color: var(--line); }

/* ---------- 表单 ---------- */
.field { margin-bottom: var(--s4); }
.field > label, .field label { display: block; font-size: 13.3px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field label .opt { font-weight: 500; color: var(--faint); font-size: 12.3px; }
.field input[type=text], .field input[type=number], .field input[type=date], .field input[type=password],
.field select, .field textarea,
.pay-form input[type=text], .pay-form input[type=number], .pay-form select, .pay-query-row input,
.adm-field input[type=text], .adm-field input[type=password], .adm-field input[type=number],
.adm-field input[type=date], .adm-field input[type=file], .adm-field select,
.paycfg-field select, .paycfg-field input, .form-field select, .form-field input, .adm-price {
  width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 14px/1.5 var(--font); color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; font-family: var(--mono); font-size: 12.8px; line-height: 1.65; }
.field input:focus, .field select:focus, .field textarea:focus,
.pay-form input:focus, .pay-form select:focus, .pay-query-row input:focus,
.adm-field input:focus, .adm-field select:focus,
.paycfg-field select:focus, .paycfg-field input:focus, .form-field select:focus, .form-field input:focus, .adm-price:focus {
  outline: none; border-color: var(--brand); box-shadow: var(--ring);
}
.field .tip { margin-top: 6px; font-size: 12.2px; color: var(--faint); }

/* 多选胶囊 */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip-check, .adm-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: var(--r-full); font-size: 13.2px; cursor: pointer;
  background: #fff; transition: border-color .15s ease, color .15s ease; user-select: none; font-weight: 500;
}
.chip-check:hover, .adm-chip:hover { border-color: var(--brand-line); }
.chip-check input, .adm-chip input { accent-color: var(--brand); margin: 0; }

/* ---------- 面板卡片 ---------- */
.panel-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-card + .panel-card { margin-top: var(--s4); }
.panel-card .pc-head { padding: 15px 20px; border-bottom: 1px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.panel-card .pc-head .sub { font-weight: 500; color: var(--muted); font-size: 12.8px; }
.panel-card .pc-body { padding: var(--s5); }

/* ---------- 表格 ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow-x: auto; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft);
  font-size: 13.3px; vertical-align: middle; }
table.data thead th { background: var(--bg); font-size: 12.8px; color: var(--muted); font-weight: 700; white-space: nowrap; }
table.data tbody tr:hover { background: var(--brand-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .acts-cell, .adm-acts { white-space: nowrap; }
table.data .acts-cell .btn, .adm-acts .btn { margin-right: 5px; }

/* ---------- 结果盒（工具页输出） ---------- */
.result-box { border-radius: var(--r-lg); padding: var(--s4) var(--s5); font-size: 13.8px; line-height: 1.75;
  border: 1px solid transparent; }
.result-box.ok { background: var(--ok-soft); border-color: var(--ok-line); color: #14532d; }
.result-box.bad { background: var(--danger-soft); border-color: var(--danger-line); color: #7f1d1d; }
.result-box.info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-deep); }
.result-box .rb-title { font-weight: 700; display: flex; align-items: center; gap: var(--s2); margin-bottom: 6px; font-size: 14.5px; }
.result-box .rb-title .badge { padding: 1px 9px; border-radius: var(--r-full); font-size: 11.5px; background: rgba(0, 0, 0, .07); }

/* ---------- 键值清单 ---------- */
.kv-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s3); }
.kv-list > div { padding: 11px 15px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.kv-list > div:nth-child(odd) { background: var(--bg); }
.kv-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.kv-list .k { display: block; font-size: 11.8px; color: var(--muted); margin-bottom: 2px; }
.kv-list .v { font-weight: 600; word-break: break-all; }
.kv-list .v.mono { font-family: var(--mono); font-size: 12.8px; }

/* ---------- 按钮行 ---------- */
.row-acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: var(--s4); }
.row-acts .spacer { flex: 1; }
.row-acts .tip { margin: 0; }
/* 工具页三个面板的输出区 */
.out { margin-top: var(--s4); }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); counter-reset: step; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s6) var(--s5); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -14px; left: var(--s5); width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.step h3 { margin: var(--s2) 0; font-size: 15.8px; }
.step p { margin: 0; color: var(--muted); font-size: 13.6px; line-height: 1.7; }
.step code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.3px; color: var(--brand-dark); }
/* 全局 a 去掉了下划线与颜色，段落里的行内链接要单独标出来，否则和正文一个样、看不出能点 */
.step p a, .ans a, .deploy-hint a, .note a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 0 var(--s5); margin-bottom: var(--s3); box-shadow: var(--shadow-sm);
}
.faq details[open] { border-color: var(--brand-line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: '+'; flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 15px; line-height: 1;
}
.faq details[open] summary::before { content: '−'; }
.faq .ans { padding: 0 0 18px 34px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.faq .ans code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; color: var(--brand-dark); }
.faq .ans ul { margin: var(--s2) 0 0; padding-left: 20px; }
.faq .ans li { margin-bottom: 5px; }

/* ============================================================
   5. 站点骨架
   ============================================================ */

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s6); height: 64px;
  display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16.5px;
  letter-spacing: -.01em; flex: none; }
.brand .logo { width: 28px; height: 28px; border-radius: var(--r-sm); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: .08em; margin-top: -3px; }
.nav-links { display: flex; align-items: center; gap: var(--s1); margin-left: 6px; }
.nav-links a { padding: var(--s2) 13px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-links a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #e8eefb;
  background:
    radial-gradient(1000px 460px at 12% -8%, rgba(37, 99, 235, .55) 0%, transparent 62%),
    radial-gradient(760px 420px at 92% 6%, rgba(6, 182, 212, .3) 0%, transparent 60%),
    linear-gradient(158deg, #0b1220 0%, #101c33 52%, #0a1120 100%);
  padding: 92px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  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: 46px 46px;
  -webkit-mask-image: radial-gradient(760px 460px at 20% 20%, #000 0%, transparent 78%);
  mask-image: radial-gradient(760px 460px at 20% 20%, #000 0%, transparent 78%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: var(--s9); align-items: center; }
.hero h1 { margin: var(--s4) 0 var(--s4); font-size: 44px; line-height: 1.24; letter-spacing: -.02em; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7dd3fc 0%, #a5b4fc 55%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 0 28px; font-size: 16.5px; color: #a9b8d0; max-width: 620px; }
.hero p.lead strong { color: #e8eefb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: var(--s7); padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-facts div b { display: block; font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.hero-facts div span { font-size: 12.5px; color: #8fa2bd; }

.hero-card {
  background: rgba(12, 20, 36, .78); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--r-2xl); padding: var(--s5); box-shadow: 0 26px 60px rgba(0, 0, 0, .42);
  backdrop-filter: blur(6px);
}
.hero-card .hc-head { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.hero-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.hero-card .dot.r { background: #ef4444; } .hero-card .dot.y { background: #f59e0b; } .hero-card .dot.g { background: #22c55e; }
.hero-card .hc-title { margin-left: 6px; font-size: 12.5px; color: #8fa2bd; font-family: var(--mono); }
.hero-card pre {
  margin: 0; padding: var(--s3); border-radius: var(--r-md); background: #060c17;
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px; line-height: 1.85; color: #8fb6f5; overflow-x: auto; white-space: pre;
}
.hero-card pre .k { color: #7dd3fc; }
.hero-card pre .s { color: #86efac; }
.hero-card pre .c { color: #526184; }
.hero-card .hc-foot { margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- 底部 CTA ---------- */
.cta { position: relative; overflow: hidden; color: #e8eefb; text-align: center;
  background: linear-gradient(150deg, #0b1220 0%, #16233d 60%, #0b1220 100%); padding: 74px 0; }
.cta::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(680px 320px at 50% 0%, rgba(37, 99, 235, .45) 0%, transparent 70%); }
.cta .wrap { position: relative; }
.cta h2 { margin: 0 0 var(--s3); font-size: 30px; }
.cta p { margin: 0 0 26px; color: #a9b8d0; }
.cta .row { display: flex; gap: var(--s3); justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 26px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  color: #a9b8d0; font-size: 14px; }
.cta-meta b { color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #060b14; color: #8fa2bd; padding: 46px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--s7); }
.footer h4 { margin: 0 0 var(--s3); color: #dbe6f6; font-size: 13.5px; letter-spacing: .04em; }
.footer a { display: block; margin-bottom: 9px; color: #8fa2bd; }
.footer a:hover { color: #7dd3fc; }
.footer .f-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800;
  font-size: 16px; margin-bottom: var(--s3); }
.footer .f-brand .logo { width: 26px; height: 26px; border-radius: 7px; }
.footer .f-desc { max-width: 320px; line-height: 1.75; }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid #16233d;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #5c6b85; font-size: 12.5px; }
/* 子页面用的精简页脚：不要大格栅，也不要上边线 */
.footer-bottom.bare { margin-top: 0; border-top: 0; padding-top: 0; }
.footer-bottom a { display: inline; color: #7dd3fc; }
.footer-bottom a:hover { text-decoration: underline; }

/* ============================================================
   6. 首页区块
   ============================================================ */

/* ---------- 优势四宫格 ---------- */
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.hl {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px var(--s5); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.hl:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--brand-line); }
.hl .ico { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s3); }
.hl h3 { margin: 0 0 6px; font-size: 16px; }
.hl p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.68; }

/* ---------- 版本卡片 ---------- */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-2xl);
  padding: var(--s6) var(--s5) 22px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan.free { border-color: var(--ok-line); background: linear-gradient(180deg, #f6fef9 0%, #fff 46%); }
.plan.best { border-color: var(--brand); box-shadow: 0 14px 38px rgba(37, 99, 235, .18); }
.plan .ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: var(--r-full); font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--brand) 0%, #4f46e5 100%); white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.plan .ribbon.green { background: linear-gradient(90deg, #16a34a 0%, #0d9488 100%); box-shadow: 0 6px 16px rgba(22, 163, 74, .28); }
.plan h3 { margin: 0 0 3px; font-size: 19px; }
.plan .p-sub { color: var(--muted); font-size: 13px; min-height: 42px; }
.plan .price { margin: var(--s3) 0 var(--s1); padding: var(--s3) 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.plan .price b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.plan .price b.free-v { color: var(--ok); }
.plan .price span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.plan .quota { display: flex; gap: var(--s2); margin: var(--s4) 0 var(--s2); }
.plan .quota div { flex: 1; background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 9px 10px; text-align: center; }
.plan .quota b { display: block; font-size: 16px; font-weight: 700; }
.plan .quota span { font-size: 11.5px; color: var(--muted); }
.plan ul { list-style: none; margin: var(--s3) 0 0; padding: 0; flex: 1; }
.plan ul li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 13.6px; color: var(--ink-2); line-height: 1.6; }
.plan ul li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg); border-radius: 1px;
}
.plan.free ul li::before { border-color: var(--ok); }
.plan .plan-act { margin-top: var(--s4); }

/* ---------- 功能矩阵 ---------- */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--card); box-shadow: var(--shadow-sm); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 780px; }
table.matrix th, table.matrix td { padding: 13px var(--s4); text-align: center;
  border-bottom: 1px solid var(--line-soft); font-size: 13.8px; }
table.matrix thead th { background: var(--bg); font-size: 13.5px; font-weight: 700; color: var(--ink); position: sticky; top: 0; }
table.matrix thead th:first-child, table.matrix tbody th { text-align: left; }
table.matrix tbody th { font-weight: 600; color: var(--ink-2); font-size: 13.8px; background: #fff; }
table.matrix tbody tr:hover td, table.matrix tbody tr:hover th { background: var(--brand-soft); }
table.matrix tr:last-child td, table.matrix tr:last-child th { border-bottom: 0; }
table.matrix .col-free { background: rgba(22, 163, 74, .045); }
table.matrix thead .col-free { background: #f0fdf4; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #cbd5e1; }
table.matrix td .num { font-weight: 700; color: var(--ink); }
table.matrix td .num.inf { color: var(--brand); }

/* ---------- 授权机制 ---------- */
.mech { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.mech-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 22px; box-shadow: var(--shadow-sm); }
.mech-card .ico { width: 38px; height: 38px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s3); }
.mech-card h3 { margin: 0 0 var(--s2); font-size: 16px; }
.mech-card p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.72; }
.mech-card p strong { color: var(--ink-2); }

.decode {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.decode-head { padding: 13px 18px; background: var(--bg); border-bottom: 1px solid var(--line);
  font-size: 13.5px; font-weight: 700; }
.decode-body { padding: var(--s4); }
.decode-body pre { margin: 0 0 var(--s3); padding: var(--s3); background: var(--night); color: #8fb6f5;
  border-radius: var(--r-md); font-size: 12.5px; line-height: 1.9; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.decode-body pre .seg-payload { color: #86efac; }
.decode-body pre .seg-sig { color: #fca5a5; }
.decode-body .legend { display: flex; flex-wrap: wrap; gap: var(--s4); font-size: 12.8px; color: var(--muted); }
.decode-body .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* ---------- 工具入口 ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.tool-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s6) 22px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tool-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-soft), #e0e7ff); color: var(--brand); margin-bottom: var(--s3); }
.tool-card h3 { margin: 0 0 var(--s2); font-size: 16.5px; display: flex; align-items: center; gap: var(--s2); }
.tool-card h3 .arrow { color: var(--brand); font-weight: 700; transition: transform .2s ease; }
.tool-card:hover h3 .arrow { transform: translateX(4px); }
.tool-card p { margin: 0; color: var(--muted); font-size: 13.8px; line-height: 1.7; }
.tool-card .note { margin-top: var(--s3); font-size: 12.3px; color: var(--faint); text-align: left; }

/* ============================================================
   7. 工具箱页
   ============================================================ */
.tools-hero { background: linear-gradient(158deg, #0b1220 0%, #10203c 100%); color: #e8eefb; padding: var(--s9) 0 46px; }
.tools-hero h1 { margin: 10px 0; font-size: 32px; letter-spacing: -.01em; }
.tools-hero p { margin: 0; color: #a9b8d0; max-width: 720px; }

.seg { display: inline-flex; gap: var(--s1); padding: 5px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-lg); }
.seg button {
  padding: 9px 18px; border: 0; background: transparent; border-radius: var(--r-sm); cursor: pointer;
  font: 600 13.8px/1 var(--font); color: var(--muted); transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.seg button:hover { color: var(--ink); }
.seg button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }

.tool-panel { display: none; }
.tool-panel.active { display: block; animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.out-pre {
  margin: 0; padding: var(--s4); background: var(--night); color: #cfe1ff; border-radius: var(--r-lg);
  font-size: 12.8px; line-height: 1.8; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}
.out-pre .hl { color: #7dd3fc; }

/* 版本选型格 */
.plan-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.plan-pick .pp {
  border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: var(--s3); text-align: center;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; background: #fff;
}
.plan-pick .pp.hit { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 8px 22px rgba(37, 99, 235, .16); }
.plan-pick .pp.dim { opacity: .45; }
.plan-pick .pp b { display: block; font-size: 14.5px; margin-bottom: var(--s1); }
.plan-pick .pp span { font-size: 11.8px; color: var(--muted); display: block; }

/* ============================================================
   8. 快速部署页
   ============================================================ */
.gh-card { display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap; margin: 22px 0; }
.gh-left { flex: 1 1 320px; }
.gh-left b { font-size: 15.5px; }
.gh-left p { margin: 6px 0 0; font-size: 13.4px; color: var(--muted); line-height: 1.7; }
.gh-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gh-right .btn svg { vertical-align: -3px; margin-right: var(--s1); }

.deploy-tabs { display: flex; gap: var(--s2); flex-wrap: wrap; margin: 22px 0 var(--s4); }
.deploy-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 9px 22px; border-radius: var(--r-md); cursor: pointer; font-size: 14px; font-weight: 500;
  font-family: inherit; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.deploy-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.deploy-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.deploy-body > h3 { margin: 0 0 var(--s3); font-size: 17px; }
.deploy-cmd { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5);
  margin-bottom: var(--s3); background: #fff; }
.deploy-cmd.unavailable { opacity: .8; }
.dc-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dc-hd b { font-size: 15.5px; }
.dc-note { margin: 6px 0 var(--s3); font-size: 13px; color: var(--muted); line-height: 1.7; }
.dc-block { position: relative; }
.dc-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.dc-code {
  margin: 0; padding: var(--s3) var(--s4); border-radius: var(--r-md);
  background: var(--night); color: #e8eefb; overflow-x: auto;
  font-size: 12.6px; line-height: 1.72; white-space: pre;
}
.dc-copy { position: absolute; top: 30px; right: var(--s3); }
.dc-more { margin-top: var(--s3); }
.dc-more summary { cursor: pointer; font-size: 13px; color: var(--brand); }
.dc-more[open] summary { margin-bottom: var(--s2); }
.deploy-hint { margin: var(--s4) 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.deploy-hint code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 12.3px; color: var(--brand-dark); }
.deploy-steps { margin: 0; padding-left: 20px; font-size: 13.6px; line-height: 1.9; color: var(--ink-2); }
.deploy-steps li { margin-bottom: 6px; }

/* ============================================================
   9. 授权购买页
   ============================================================ */
.pay-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-bottom: var(--s2); }
.pay-step {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s3) var(--s4);
  font-size: 13.5px; color: var(--ink-2); font-weight: 500;
}
.pay-step b {
  width: 24px; height: 24px; flex: none; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px;
}
.plans.pay-grid { grid-template-columns: repeat(5, 1fr); }
.plans .plan.picked { border-color: var(--brand); box-shadow: 0 14px 38px rgba(37, 99, 235, .2); }
.plan-hd { display: flex; align-items: center; gap: var(--s2); margin-bottom: 2px; }
.plan-hd b { font-size: 17px; }
.plan-badge {
  font-size: 11px; padding: 2px var(--s2); border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}
.plan-badge.free { background: var(--ok-soft); color: var(--ok-deep); }
.plan-price { margin: var(--s3) 0 var(--s1); padding: var(--s3) 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.plan-price b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-alt { display: flex; gap: 10px; flex-wrap: wrap; margin: var(--s2) 0 2px; }
.plan-alt span { font-size: 12px; color: var(--muted); }
.plan-quota { font-size: 13px; color: var(--ink-2); margin: 10px 0 var(--s2); font-weight: 600; }
.plan-feat { font-size: 12.6px; color: var(--muted); line-height: 1.65; min-height: 62px; }

.pay-order { margin-top: 22px; }
.pay-form { display: flex; flex-direction: column; gap: var(--s3); }
.pay-form label { display: block; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.pay-form label em { color: var(--danger); font-style: normal; }
.pay-form input, .pay-form select { margin-top: 6px; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.pay-sum { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--s3) var(--s4); }
.pay-sum-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: var(--s1) 0; color: var(--muted); }
.pay-sum-row b { color: var(--ink); }
.pay-sum-row.total { border-top: 1px dashed var(--line); margin-top: var(--s2); padding-top: 10px; font-size: 15px; }
.pay-sum-row.total b { font-size: 20px; color: var(--brand); font-weight: 800; }
.pay-methods { display: flex; flex-direction: column; gap: var(--s2); margin-top: 6px; }
.pay-method {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; background: #fff;
  transition: border-color .15s ease;
}
.pay-method:hover { border-color: var(--brand); }
.pay-method input { margin-top: 3px; accent-color: var(--brand); }
.pay-method span { display: flex; flex-direction: column; gap: 3px; }
.pay-method em { font-style: normal; font-size: 12.2px; color: var(--muted); line-height: 1.6; }
.pay-msg { min-height: 18px; font-size: 13px; color: var(--ok); }
.pay-msg.err { color: var(--danger); }
.pay-tip { margin: 0; font-size: 12.4px; color: var(--muted); line-height: 1.7; }

.pay-query { margin-top: 22px; }
.pay-query-row { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; margin: var(--s3) 0 var(--s1); }
.order-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); background: #fff; }
.order-hd { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s3); flex-wrap: wrap; }
.order-hd b { font-size: 15.5px; }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.order-grid > div { display: flex; flex-direction: column; gap: 3px; }
.order-grid span { font-size: 12px; color: var(--muted); }
.order-grid b { font-size: 13.8px; }
.order-transfer, .order-code {
  margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md);
  background: var(--warn-soft); border: 1px solid var(--warn-line);
}
.order-code { background: var(--ok-soft); border-color: var(--ok-line); }
.order-transfer p { margin: 6px 0 0; font-size: 13.2px; line-height: 1.7; }
.order-code textarea {
  width: 100%; margin: var(--s2) 0; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: var(--s2) 10px; font-size: 12px; line-height: 1.6; word-break: break-all; background: #fff;
  font-family: var(--mono);
}
.order-poll { margin: var(--s3) 0 0; font-size: 12.4px; }

/* 支付方式子选项（易支付协议的 type：支付宝 / 微信 / QQ） */
.pay-types { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s1) 0 2px; padding-left: 26px; }
.pay-type {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-full);
  padding: 5px var(--s3); font-size: 12.8px; cursor: pointer; color: var(--muted);
  background: #fff; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pay-type input { margin: 0; accent-color: var(--brand); }
.pay-type.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); font-weight: 600; }

/* ============================================================
   10. 管理后台
   ============================================================ */
.adm-body { background: var(--bg); }

/* ---- 登录 ---- */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: var(--s6);
  background: radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .16) 0%, transparent 70%), var(--bg); }
.adm-login-box { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-2xl); padding: 30px 28px; box-shadow: var(--shadow-lg); }
.adm-login-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: 22px; }
.adm-login-brand b { display: block; font-size: 16px; }
.adm-login-brand span { font-size: 12.5px; color: var(--muted); }
.adm-field { display: block; margin-bottom: var(--s3); font-size: 13.3px; font-weight: 600; color: var(--ink-2); }
.adm-field input, .adm-field select { margin-top: 6px; font-weight: 400; }
.adm-field.adm-check { display: flex; align-items: center; gap: var(--s2); font-weight: 500; }
.adm-field.adm-check input { margin: 0; accent-color: var(--brand); }
.adm-msg { margin-top: var(--s3); font-size: 13px; color: var(--danger); min-height: 18px; }
.adm-back { display: block; margin-top: var(--s4); text-align: center; font-size: 12.8px; color: var(--muted); }
.adm-back:hover { color: var(--brand); }

/* ---- 顶栏 ---- */
.adm-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm); }
.adm-top-in { max-width: 1320px; margin: 0 auto; padding: 0 22px; height: 58px;
  display: flex; align-items: center; gap: 22px; }
.adm-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; flex: none; }
.adm-brand small { font-weight: 600; color: var(--faint); font-size: 11.5px; margin-left: var(--s1); }
.adm-tabs { display: flex; gap: var(--s1); }
.adm-tabs button { border: 0; background: transparent; padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  cursor: pointer; font: 600 13.6px/1 var(--font); color: var(--muted); transition: background .15s ease, color .15s ease; }
.adm-tabs button:hover { background: var(--brand-soft); color: var(--brand); }
.adm-tabs button.active { background: var(--brand); color: #fff; }
.adm-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.adm-who { font-size: 13px; color: var(--muted); }

/* ---- 主体 ---- */
.adm-main { max-width: 1320px; margin: 0 auto; padding: 22px; }
.adm-loading, .adm-err { padding: var(--s8); text-align: center; color: var(--muted); }
.adm-err { color: var(--danger); }
.adm-sub { font-size: 12.8px; color: var(--muted); font-weight: 400; }
.adm-muted { color: var(--muted); font-size: 12.6px; }
.adm-mono, .adm-code { font-family: var(--mono); font-size: 12.4px; }
.adm-code { color: var(--faint); }

/* KPI：总览页是「卡片格」，订单页是「一行四张」 */
.adm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
.adm-kpi { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-sm); }
.adm-kpi span { display: block; font-size: 12.6px; color: var(--muted); }
.adm-kpi b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 3px 0 2px; }
.adm-kpi i { font-style: normal; font-size: 12px; color: var(--faint); }
.adm-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-bottom: var(--s4); }
.kpi-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: var(--s4) var(--s5);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 3px; }
.kpi-card span { font-size: 12.6px; color: var(--muted); }
.kpi-card b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.kpi-card em { font-style: normal; font-size: 12px; color: var(--muted); }

.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 13px;
  box-shadow: var(--shadow-sm); margin-bottom: var(--s4); overflow: hidden; }
.adm-card-head, .adm-card-hd { padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg);
  font-weight: 700; font-size: 14px; display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.adm-card-body { padding: var(--s4); }
.adm-card-hd a, .adm-card-head a { color: var(--brand); }
.adm-hint { font-size: 12.6px; color: var(--muted); font-weight: 400; }

.adm-matrix { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.adm-cell { border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px var(--s3); background: #fff; }
.adm-cell b { display: block; font-size: 12.6px; }
.adm-cell span { display: block; font-size: 11.6px; color: var(--muted); margin: 2px 0 var(--s1); }
.adm-cell i { font-style: normal; font-size: 12.4px; font-weight: 700; }
.adm-cell.ok { border-color: var(--ok-line); background: #f6fef9; }
.adm-cell.ok i { color: var(--ok); }
.adm-cell.miss { border-style: dashed; background: var(--bg); }
.adm-cell.miss i { color: var(--faint); font-weight: 500; }

.adm-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line);
  border-radius: 11px; overflow: hidden; }
.adm-kv > div { padding: 11px 15px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: var(--s3); font-size: 13.4px; }
.adm-kv > div:nth-child(odd) { background: var(--bg); }
.adm-kv > div:nth-last-child(-n+2) { border-bottom: 0; }
.adm-kv span { color: var(--muted); }
.adm-kv b { font-weight: 600; word-break: break-all; text-align: right; }

.adm-toolbar { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s3); flex-wrap: wrap; }
.adm-acts { white-space: nowrap; }
.adm-tag { display: inline-flex; padding: 2px 9px; border-radius: var(--r-full); font-size: 12px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }
.adm-tag.blue { background: var(--brand-soft); color: var(--brand-dark); border-color: var(--brand-line); }
.adm-tag.ok { background: var(--ok-soft); color: var(--ok-deep); border-color: var(--ok-line); }
.adm-tag.warn { background: var(--warn-soft); color: var(--warn-deep); border-color: var(--warn-line); }
.adm-tag.plain { background: var(--bg-2); color: var(--muted); }
.adm-dot { font-size: 12.4px; color: var(--faint); }
.adm-dot.ok { color: var(--ok); font-weight: 700; }
.adm-dot.warn { color: var(--warn-deep); font-weight: 700; }
.adm-price { width: 110px; text-align: right; }

.adm-empty { background: #fff; border: 1px dashed var(--line); border-radius: 13px; padding: var(--s8) var(--s5);
  text-align: center; color: var(--muted); font-size: 13.6px; }
.adm-empty code, .adm-warn code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 12.5px; }
.adm-warn { background: var(--warn-soft); border: 1px solid var(--warn-line); color: #92400e; border-radius: 11px;
  padding: 13px var(--s4); font-size: 13.4px; margin-bottom: var(--s3); }

/* ---- 弹窗 ---- */
.adm-mask { position: fixed; inset: 0; background: rgba(10, 17, 32, .55); z-index: 80;
  display: grid; place-items: center; padding: var(--s5); }
.adm-modal { width: 100%; max-width: 640px; background: #fff; border-radius: 15px; box-shadow: var(--shadow-lg);
  max-height: 90vh; overflow-y: auto; }
.adm-modal-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15.5px; }
.adm-modal-body { padding: var(--s5); }
.adm-modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: var(--s4);
  padding-top: var(--s4); border-top: 1px solid var(--line); }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.adm-chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: 7px; }
.adm-pre { margin: var(--s3) 0 0; padding: var(--s3); background: var(--night); color: #cfe1ff;
  border-radius: var(--r-md); font: 12.4px/1.8 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* ---- 提示 ---- */
.adm-toast { position: fixed; right: 22px; bottom: 22px; z-index: 90; background: #0f172a; color: #fff;
  padding: 11px 18px; border-radius: var(--r-md); font-size: 13.6px; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.adm-toast.show { opacity: 1; transform: none; }
.adm-toast.err { background: var(--danger); }

/* ---- 支付配置与自检 ---- */
.paycfg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin-bottom: var(--s3); }
.paycfg-grid > div { display: flex; flex-direction: column; gap: 3px; }
.paycfg-grid span { font-size: 12px; color: var(--muted); }
.paycfg-grid b { font-size: 13.5px; word-break: break-all; }
.paycfg-note { font-size: 12.6px; color: var(--muted); line-height: 1.75; margin-bottom: var(--s3); }
.paycfg-edit, .form-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.paycfg-fields, .form-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s3); }
.paycfg-field, .form-field { display: flex; flex-direction: column; gap: var(--s1); flex: 1 1 220px; }
.paycfg-field > span, .form-field > span { font-size: 12px; color: var(--muted); }
.form-field > em { margin-top: 2px; font-size: 11.6px; font-style: normal; color: var(--faint); }
.paycfg-checks { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 var(--s3); }
.paycfg-check { display: flex; gap: var(--s2); font-size: 13px; line-height: 1.7; }
.paycfg-check i { font-style: normal; flex: 0 0 auto; }
.paycfg-check.ok i { color: var(--ok); }
.paycfg-check.bad i { color: var(--danger); }
.paycfg-check b { flex: 0 0 auto; font-weight: 600; }
.paycfg-hint {
  font-family: var(--mono); font-size: 12px;
  background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 9px 11px; word-break: break-all; margin: var(--s2) 0 var(--s3); color: var(--muted);
  max-height: 130px; overflow: auto;
}
.paycfg-warn { font-size: 12.8px; color: var(--warn-deep); line-height: 1.75; margin-bottom: 10px; }
/* 自检结论：整段只放一句话，成功绿、失败红，避免在一堆检查项里找重点 */
.paycfg-verdict {
  display: flex; gap: var(--s2); align-items: flex-start;
  font-size: 13.4px; line-height: 1.7; font-weight: 600;
  border-radius: var(--r-sm); padding: 10px 12px; margin: var(--s2) 0 var(--s3);
  border: 1px solid var(--line-soft); background: var(--bg);
}
.paycfg-verdict.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.paycfg-verdict.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
/* 勾选项：说明文字缩在复选框右侧，不撑破两列布局 */
.paycfg-toggle { display: flex; gap: var(--s2); align-items: flex-start; font-size: 12.4px; color: var(--muted); line-height: 1.6; }
.paycfg-toggle input { margin-top: 2px; flex: 0 0 auto; }
.paycfg-toggle i { font-style: normal; }
/* 签名诊断：默认折叠，需要核对时展开 */
.paycfg-sign { margin: var(--s2) 0 var(--s3); }
.paycfg-sign summary { cursor: pointer; font-size: 12.8px; color: var(--muted); }
.paycfg-sign summary:hover { color: var(--brand); }
.paycfg-sign .paycfg-hint { margin: 8px 0; max-height: 180px; }
.paycfg-sign .paycfg-hint:last-child { margin-bottom: 0; }

/* ============================================================
   11. 响应式
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s8); }
  .hero h1 { font-size: 38px; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .mech, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan-pick { grid-template-columns: repeat(3, 1fr); }
  .plans.pay-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-steps { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-row { grid-template-columns: 1fr; }
  .pay-query-row { grid-template-columns: 1fr; }
  .adm-kpis, .adm-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .adm-matrix { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { gap: var(--s3); }
  .hero { padding: 64px 0 68px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15px; }
  .section { padding: var(--s9) 0; }
  .section-head { margin-bottom: var(--s7); }
  .section-head h2 { font-size: 25px; }
  .sub-head { margin: var(--s7) 0 var(--s4); }
  .highlights, .plans, .mech, .tool-grid, .steps, .footer-grid,
  .plans.pay-grid, .pay-steps, .adm-kpis, .adm-kpi-row, .adm-matrix, .adm-kv, .adm-grid2,
  .grid-2, .kv-list { grid-template-columns: 1fr; }
  .kv-list > div:nth-last-child(-n+2), .adm-kv > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .kv-list > div:last-child, .adm-kv > div:last-child { border-bottom: 0; }
  .plan-pick { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { gap: var(--s4); }
  .hero-facts div b { font-size: 18px; }
  .cta { padding: var(--s9) 0; }
  .cta h2 { font-size: 24px; }
  .adm-top-in { height: auto; padding: 10px var(--s4); flex-wrap: wrap; gap: 10px; }
  .adm-tabs { order: 3; width: 100%; overflow-x: auto; }
  .adm-main { padding: var(--s3); }
  .adm-modal-body { padding: var(--s4); }
  .paycfg-grid { grid-template-columns: 1fr; }
  .dc-copy { position: static; margin-top: var(--s2); }
}
