/* MST 开发者中心 · 黑白自适应（跟随系统深浅色） */
:root {
  --bg: #f3f6fc;
  --panel: #ffffff;
  --card: #ffffff;
  --input-bg: #f2f6fc;
  --blue: #2f6df6;
  --blue-2: #1d55c9;
  --cyan: #0891b2;
  --line: #e2e9f3;
  --text: #182238;
  --muted: #5d6b84;
  --ok: #16a36a;
  --warn: #b7791f;
  --err: #dc2626;
  --radius: 18px;
  --maxw: 1080px;
  --shadow: 0 18px 44px rgba(30, 58, 138, .12);
  --body-bg: radial-gradient(1100px 620px at 50% -12%, rgba(47,109,246,.14), transparent 62%),
             radial-gradient(760px 520px at 88% 4%, rgba(53,224,255,.10), transparent 60%),
             linear-gradient(180deg, #f7faff 0%, #f3f6fc 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  background: var(--body-bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px 64px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .3px; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), #1e40af);
  box-shadow: 0 6px 20px rgba(47, 109, 246, .35);
  font-size: 16px; color: #fff;
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 1px; }
.topnav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topnav a {
  padding: 7px 12px; border-radius: 10px; font-size: 14px; color: var(--muted);
  transition: .18s;
}
.topnav a:hover { color: var(--text); background: var(--line); }
.topnav a.btn { color: #fff; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .2s;
  background: linear-gradient(145deg, #3470ff, #1c4ed8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 109, 246, .30);
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(47, 109, 246, .42); }
.btn:active { transform: translateY(0); opacity: .9; }
.btn.ghost {
  background: var(--input-bg);
  border-color: var(--line);
  box-shadow: none; color: var(--text);
}
.btn.ghost:hover { background: var(--line); }
.btn.sm { padding: 8px 16px; font-size: 13.5px; border-radius: 12px; }
.btn.danger { background: linear-gradient(145deg, #ef4444, #b91c1c); box-shadow: 0 8px 20px rgba(239, 68, 68, .28); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 首页 hero ---------- */
.hero { padding: 74px 0 26px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(47, 109, 246, .10);
  color: var(--blue-2); font-size: 12.5px; letter-spacing: .4px; margin-bottom: 22px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(30px, 6vw, 52px); line-height: 1.18; font-weight: 800;
  letter-spacing: -.5px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #6ea8ff, #35e0ff 45%, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 16px; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 特性 ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 44px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: .22s;
}
.card:hover { border-color: rgba(110, 168, 255, .45); transform: translateY(-2px); }
.card h3 { font-size: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.card h3 .ico { font-size: 18px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- 流程 ---------- */
.section { margin-top: 56px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.section-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step {
  border: 1px solid var(--line); border-radius: 16px; padding: 18px;
  background: var(--card);
  position: relative; overflow: hidden;
}
.step::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, .55), transparent);
}
.step .n { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--blue-2); letter-spacing: 1px; }
.step h4 { margin: 6px 0 6px; font-size: 15px; }
.step p { color: var(--muted); font-size: 13.5px; }

/* ---------- 代码块 ---------- */
.code {
  position: relative;
  background: #0f172a;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.7; color: #c8d8ff;
  white-space: pre; margin: 12px 0;
}
.code .k { color: #7dd3fc; }
.code .s { color: #86efac; }

/* ---------- 登录/表单面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 26px; margin-top: 26px;
  box-shadow: var(--shadow);
}
.auth-card { max-width: 420px; margin: 46px auto 0; text-align: center; }
.auth-card h2 { font-size: 22px; margin-bottom: 8px; }
.auth-card p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-card .btn { width: 100%; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; letter-spacing: .2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-size: 15px; outline: none; font-family: inherit;
  transition: .18s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(110, 168, 255, .65);
  background: var(--input-bg);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .16);
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- 徽章 / 提示 ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; border: 1px solid; }
.badge.ok { color: var(--ok); border-color: rgba(22,163,106,.35); background: rgba(22,163,106,.10); }
.badge.warn { color: var(--warn); border-color: rgba(183,121,31,.35); background: rgba(183,121,31,.10); }
.badge.err { color: var(--err); border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.10); }
.badge.mute { color: var(--muted); border-color: var(--line); background: var(--input-bg); }

.notice { border-radius: 14px; padding: 13px 16px; font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.notice.ok { color: var(--ok); background: rgba(22,163,106,.10); border-color: rgba(22,163,106,.28); }
.notice.err { color: var(--err); background: rgba(220,38,38,.10); border-color: rgba(220,38,38,.28); }
.notice.warn { color: var(--warn); background: rgba(183,121,31,.10); border-color: rgba(183,121,31,.28); }

/* ---------- 列表 ---------- */
.list { display: grid; gap: 12px; margin-top: 16px; }
.row {
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  background: var(--card);
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
}
.row .grow { min-width: 0; flex: 1 1 260px; }
.row .title { font-weight: 650; font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .meta { color: var(--muted); font-size: 12.5px; margin-top: 6px; word-break: break-all; }
.row .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; font-size: 14px; margin-top: 8px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { word-break: break-all; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* ---------- 文档 ---------- */
.doc { margin-top: 22px; }
.doc h2 { font-size: 19px; margin: 30px 0 10px; padding-left: 12px; border-left: 3px solid var(--blue); }
.doc h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
.doc p, .doc li { color: var(--muted); font-size: 14.5px; }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc th { background: rgba(47,109,246,.08); color: var(--text); font-weight: 600; }
.doc td { color: var(--muted); }
.doc code.inline { background: var(--input-bg); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; }

/* ---------- 首屏数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin: 42px auto 0; max-width: 860px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card);
  overflow: hidden;
}
.stat { padding: 18px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b {
  display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px;
  background: linear-gradient(120deg, var(--text), var(--blue-2) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat b span { font-size: 13px; font-weight: 500; margin-left: 2px; }
.stat > span { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }

/* ---------- 能力矩阵 ---------- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); gap: 16px; margin-top: 8px; }
.cap {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 20px 18px;
  background: var(--card);
  transition: .25s;
}
.cap::after {
  content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 168, 255, .5), transparent);
  opacity: 0; transition: .25s;
}
.cap:hover { transform: translateY(-3px); border-color: rgba(110, 168, 255, .42); box-shadow: var(--shadow); }
.cap:hover::after { opacity: 1; }
.cap-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cap-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; background: rgba(47,109,246,.12);
  border: 1px solid rgba(110, 168, 255, .22);
}
.cap h3 { font-size: 16.5px; letter-spacing: .2px; }
.cap > p { color: var(--muted); font-size: 13.5px; margin: 6px 0 12px; }
.cap ul { list-style: none; padding: 0; display: grid; gap: 7px; }
.cap li {
  position: relative; padding-left: 15px; font-size: 13px; color: var(--muted);
}
.cap li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-2);
}
.tag { font-size: 11.5px; padding: 3px 10px; border-radius: 999px; border: 1px solid; letter-spacing: .3px; }
.tag.ok { color: var(--ok); border-color: rgba(22,163,106,.35); background: rgba(22,163,106,.09); }
.tag.beta { color: var(--warn); border-color: rgba(183,121,31,.35); background: rgba(183,121,31,.09); }
.tag.soon { color: var(--muted); border-color: var(--line); background: var(--input-bg); }

/* ---------- 双栏区块 ---------- */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.mini-title { font-size: 13px; color: var(--blue-2); letter-spacing: 1px; margin-bottom: 2px; }
.muted-line { color: var(--muted); font-size: 13px; }
.muted-line a { color: var(--blue-2); }
.linklist { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 10px; }
.linklist li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 13px; background: var(--card);
  transition: .18s;
}
.linklist li:hover { border-color: rgba(110, 168, 255, .4); background: rgba(47,109,246,.06); }
.linklist a { font-size: 14px; font-weight: 600; }
.linklist li span { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--card);
  margin-bottom: 10px; overflow: hidden;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--blue-2); font-size: 18px; transition: .2s; }
.faq[open] summary span { transform: rotate(45deg); }
.faq[open] { border-color: rgba(110, 168, 255, .38); background: rgba(47,109,246,.05); }
.faq p { padding: 0 18px 16px; color: var(--muted); font-size: 14px; }

/* ---------- 底部 CTA ---------- */
.cta-band {
  margin-top: 58px; padding: 30px 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border: 1px solid rgba(110, 168, 255, .28); border-radius: 24px;
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(47, 109, 246, .18), transparent 70%),
    var(--card);
  box-shadow: var(--shadow);
}
.cta-band h2 { font-size: 22px; margin-bottom: 6px; }
.cta-band p { color: var(--muted); font-size: 14px; }
.cta-acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 发布到商店 ---------- */
.publish-head {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  margin: 30px 0 8px;
}
.publish-head .btn { margin-left: auto; }
.publish-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 18px; align-items: start; }
.publish-form { margin-top: 12px; padding: 24px; }
.publish-side { display: grid; gap: 14px; margin-top: 12px; }
.publish-side .panel { margin-top: 0; padding: 20px; border-radius: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-line input[type=file] { flex: 1 1 200px; font-size: 13.5px; color: var(--muted); }
.file-name { color: var(--muted); font-size: 12.5px; word-break: break-all; }
#iconPreview { display: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.uploader {
  margin: 6px 0 18px; padding: 14px 16px;
  border: 1px dashed rgba(110, 168, 255, .32); border-radius: 14px;
  background: rgba(47, 109, 246, .06);
}
.up-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.up-speed { font-family: ui-monospace, Menlo, monospace; color: var(--blue-2); font-size: 12.5px; }
.up-track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
#upBar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #2f6df6, #35e0ff); transition: width .2s; }
.up-chunks { margin-top: 6px; font-size: 12px; color: var(--muted); min-height: 16px; font-family: ui-monospace, Menlo, monospace; }
.pub-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pub-actions .btn { min-width: 150px; }
.sub-list { list-style: none; padding: 0; display: grid; gap: 10px; margin-top: 12px; }
.sub-list li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.sub-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; flex-wrap: wrap; }
.sub-meta { color: var(--muted); font-size: 12px; margin-top: 4px; word-break: break-all; }
.rule-list { padding-left: 16px; margin: 10px 0 0; display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.rule-list li { list-style: disc; }

@media (max-width: 860px) {
  .publish-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .publish-form { padding: 18px 15px; }
  .pub-actions .btn { flex: 1 1 100%; }
}

/* ---------- 页脚 ---------- */
.foot { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.foot .sp { margin-left: auto; }

/* ---------- 深色模式（跟随系统） ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070d;
    --panel: rgba(255, 255, 255, .04);
    --card: rgba(255, 255, 255, .035);
    --input-bg: rgba(255, 255, 255, .045);
    --blue: #2f6df6;
    --blue-2: #6ea8ff;
    --cyan: #35e0ff;
    --line: rgba(140, 170, 255, .14);
    --text: #e9efff;
    --muted: #93a4c4;
    --ok: #34d399;
    --warn: #fbbf24;
    --err: #f87171;
    --shadow: 0 24px 60px rgba(0, 0, 0, .45);
    --body-bg: radial-gradient(1100px 620px at 50% -12%, rgba(47, 109, 246, .30), transparent 62%),
               radial-gradient(760px 520px at 88% 4%, rgba(53, 224, 255, .12), transparent 60%),
               radial-gradient(900px 700px at 8% 92%, rgba(84, 60, 255, .14), transparent 62%),
               linear-gradient(180deg, #060a14 0%, #04060c 100%);
  }
  .code { background: linear-gradient(180deg, rgba(10, 18, 32, .95), rgba(6, 10, 18, .95)); }
  .topbar { background: rgba(5, 8, 15, .72); }
  .topnav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
  .brand .mark { box-shadow: 0 6px 20px rgba(47, 109, 246, .45); }
  .card:hover, .cap:hover { border-color: rgba(110, 168, 255, .38); }
  .linklist li:hover { background: rgba(47, 109, 246, .09); }
  .faq[open] { background: rgba(47, 109, 246, .07); }
  .cta-band { background: radial-gradient(600px 220px at 12% 0%, rgba(47, 109, 246, .28), transparent 70%), linear-gradient(180deg, rgba(47, 109, 246, .12), rgba(255, 255, 255, .02)); }
  .stat b { background: linear-gradient(120deg, #cfe0ff, #6ea8ff 55%, #35e0ff); -webkit-background-clip: text; background-clip: text; }
}

/* ---------- 移动端补充 ---------- */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { padding: 22px 18px; }
  .cta-acts { margin-left: 0; width: 100%; }
  .cta-acts .btn { flex: 1 1 130px; }
  .topnav a.nav-extra { display: none; }
  .cap { padding: 18px 16px; }
  .wrap { padding: 0 14px 48px; }
  .topbar-in { padding: 10px 14px; gap: 8px; }
  .brand small { display: none; }
  .topnav a { padding: 6px 9px; font-size: 13px; }
  .hero { padding: 48px 0 10px; }
  .hero p { font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .panel { padding: 20px 16px; border-radius: 18px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .row .acts { width: 100%; }
  .doc table { font-size: 12.5px; }
  .doc th, .doc td { padding: 7px 8px; }
}

/* ---------- 发布页美化补强 ---------- */
.publish-form { display: flex; flex-direction: column; gap: 2px; }
.publish-form .field { margin-bottom: 18px; }
.publish-form .field label { font-weight: 600; color: var(--text); font-size: 13.5px; }
.publish-form .field label::before { content: "·"; color: var(--blue); margin-right: 6px; font-weight: 800; }
.publish-form .row2 .field { margin-bottom: 18px; }
.field select { appearance: none; -webkit-appearance: none; }
.file-line { background: var(--input-bg); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; }
.file-line input[type=file] { background: transparent; border: 0; padding: 0; color: var(--muted); }
#iconPreview { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 6px 16px rgba(30,58,138,.18); }
.uploader { transition: border-color .18s, background .18s; }
.uploader.dragging { border-color: rgba(110,168,255,.6); background: rgba(47,109,246,.10); }
.sub-list li { transition: transform .16s, border-color .16s, box-shadow .16s; }
.sub-list li:hover { transform: translateY(-2px); border-color: rgba(110,168,255,.38); box-shadow: 0 10px 22px rgba(22,43,77,.10); }
.pub-actions .btn { border-radius: 13px; font-weight: 700; box-shadow: 0 10px 24px rgba(47,109,246,.28); }
.mini-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.rule-list li { line-height: 1.7; }
.badge { font-weight: 700; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }

/* ---------- 文档中心（多篇 + 后台管理） ---------- */
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; margin-top: 22px; }
.docs-side { position: sticky; top: 18px; display: grid; gap: 10px; }
.docs-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.docs-item { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 12px;
  border: 1px solid transparent; color: var(--text); font-size: 14px; font-weight: 600; transition: .15s; }
.docs-item:hover { background: var(--input-bg); }
.docs-item.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.docs-item.active .badge { background: rgba(255,255,255,.18); color: #fff; border-color: transparent; }
.docs-main { min-width: 0; }
.doc-body { margin-top: 14px; }
.doc-body h2, .doc h2 { font-size: 19px; margin: 30px 0 10px; padding-left: 12px; border-left: 3px solid var(--blue); }
.doc-body h3, .doc h3 { font-size: 16px; margin: 22px 0 8px; color: var(--text); }
.doc-body p, .doc p, .doc-body li, .doc li { color: var(--muted); font-size: 14.5px; }
.doc-body ul, .doc ul { padding-left: 20px; margin: 8px 0; }
.doc-body table, .doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.doc-body th, .doc th, .doc-body td, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.doc-body th, .doc th { background: rgba(47,109,246,.08); color: var(--text); font-weight: 600; }
.doc-body td, .doc td { color: var(--muted); }
.doc-body code.inline, .doc code.inline { background: var(--input-bg); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; }
.doc-body strong { color: var(--text); }

.docs-admin-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 18px; align-items: start; margin-top: 18px; }
.admin-doc-form { display: flex; flex-direction: column; gap: 16px; }
.doc-editor { width: 100%; min-height: 320px; padding: 14px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--input-bg); color: var(--text); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7; resize: vertical; }
.doc-editor:focus { outline: none; border-color: rgba(110,168,255,.65); box-shadow: 0 0 0 3px rgba(47,109,246,.16); }
.panel-head h2 { font-size: 17px; font-weight: 800; }

@media (max-width: 860px) {
  .docs-layout, .docs-admin-grid { grid-template-columns: 1fr; }
  .docs-side { position: static; }
}
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
