/* ============================================================================
   超容源 Chaorogen · 站点样式
   结构：变量 → 基础 → 布局 → 组件 → 页面区块 → 账号 → 响应式
   改配色只改 :root，改间距只改 --sp-*
   ========================================================================== */

:root {
  /* 底色：从深到浅三层，卡片永远比页面背景亮一档 */
  --bg: #070d14;
  --bg-soft: #0a131d;
  --panel: #0d1a26;
  --panel-2: #101f2d;
  --border: #1b3044;
  --border-soft: #16283a;

  /* 文字 */
  --text: #e9f1f8;
  --text-2: #b9cadb;
  --muted: #8ba1b8;
  --muted-2: #6d8399;

  /* 品牌色 */
  --brand: #4d7cf0;
  --brand-2: #6f9bff;
  --mint: #6fd7bd;
  --amber: #f0b429;

  /* 间距节奏（8px 基准） */
  --sp-1: 6px;
  --sp-2: 10px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 34px;
  --sp-6: 48px;
  --sp-7: 76px;
  --sp-8: 104px;

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
  --ring: 0 0 0 3px rgba(77, 124, 240, .28);
}

* { box-sizing: border-box; }

/* hidden 属性必须真的隐藏：.btn 之类设置了 display 会把 UA 的 [hidden] 覆盖掉 */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15.5px/1.75 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 顶部一层极淡冷光，避免大面积纯黑发闷 */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 520px;
  background:
    radial-gradient(760px 320px at 22% -8%, rgba(77, 124, 240, .17), transparent 70%),
    radial-gradient(620px 260px at 82% -12%, rgba(111, 215, 189, .09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--brand-2); text-decoration: none; transition: color .16s ease; }
a:hover { color: #a8c4ff; }
img { max-width: 100%; }
::selection { background: rgba(77, 124, 240, .35); color: #fff; }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-2);
  line-height: 1.3;
  letter-spacing: -.012em;
  color: #f2f7fb;
}
h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.22; }
h2 { font-size: clamp(22px, 2.2vw, 28px); }
h3 { font-size: 16.5px; }
p { margin: 0 0 var(--sp-3); color: var(--text-2); }

:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 26px; position: relative; z-index: 1; }
main { position: relative; z-index: 1; }

/* ── 头部 ───────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 20, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
header.site .nav { display: flex; align-items: center; gap: var(--sp-4); height: 62px; }
header.site .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 15.5px; letter-spacing: -.01em;
  color: #f4f9fd; white-space: nowrap;
}
header.site .brand:hover { color: #fff; }
header.site .mark { display: flex; }
header.site nav {
  display: flex; gap: 3px; margin-left: var(--sp-3);
  flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none;
}
header.site nav::-webkit-scrollbar { display: none; }
header.site nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 7px 11px; border-radius: 8px; white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
header.site nav a:hover { color: #e6eef7; background: rgba(255, 255, 255, .05); }
header.site nav a.on { color: #fff; background: rgba(77, 124, 240, .18); }
header.site .cta { display: flex; gap: 9px; align-items: center; }

/* ── 按钮 ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 9px; border: 1px solid #294a6c; background: #12283c;
  color: #dce9f6; font-size: 14px; font-weight: 600; white-space: nowrap;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { background: #17334b; border-color: #366089; color: #fff; }
.btn.primary {
  background: linear-gradient(180deg, #5a86f5, #3f6de0);
  border-color: #4a76e6; color: #fff;
  box-shadow: 0 10px 24px -14px rgba(77, 124, 240, .95);
}
.btn.primary:hover { background: linear-gradient(180deg, #6b94ff, #4b79ea); border-color: #6b94ff; }
.btn.ghost { background: transparent; border-color: #24405c; color: var(--text-2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn:active { transform: translateY(1px); }

/* ── 区块与标题 ─────────────────────────────────────── */
section.block { padding: var(--sp-7) 0; border-top: 1px solid var(--border-soft); }
section.block.first { border-top: 0; padding-top: var(--sp-6); }
section.block.tight { padding: var(--sp-4) 0; }
section[id] { scroll-margin-top: 78px; }

.eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: var(--sp-2);
}
.section-head { max-width: 660px; margin-bottom: var(--sp-5); }
.section-head h2 { margin-bottom: 8px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── 首屏 ───────────────────────────────────────────── */
.hero { padding: var(--sp-8) 0 var(--sp-7); position: relative; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-2); padding: 5px 12px;
  border: 1px solid #24405c; border-radius: 999px;
  background: rgba(77, 124, 240, .08); margin-bottom: var(--sp-4);
}
.hero h1 { margin-bottom: var(--sp-3); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #7fa0ff 10%, #6fd7bd 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 16px; line-height: 1.85; color: var(--text-2); max-width: 620px; margin-bottom: var(--sp-4); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 11px; }
.hero .pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }
.hero.center { text-align: center; padding-top: var(--sp-7); }
.hero.center .lead { margin-inline: auto; }
.hero.center .actions { justify-content: center; }
.hero.center .pill-row { justify-content: center; }
.pill {
  font-size: 12.5px; color: #a9c0d6; padding: 5px 12px;
  border-radius: 999px; border: 1px solid #20374d; background: #0c1725;
}

/* 首屏：左文右流程卡 */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--sp-6); align-items: center; }
.flow-card {
  background: linear-gradient(180deg, #0e1c29, #0a141f);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; box-shadow: var(--shadow);
}
.flow-card .fc-top {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--muted-2);
}
.flow-card .dot { width: 8px; height: 8px; border-radius: 50%; background: #23405c; }
.flow-card .dot.on { background: var(--mint); box-shadow: 0 0 0 4px rgba(111, 215, 189, .14); }
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 11px 0; }
.flow li + li { border-top: 1px dashed #17293a; }
.flow .idx {
  width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: 8px; background: #142a3f; border: 1px solid #26445f;
  color: #9db9d4; font-size: 12px; font-weight: 800;
}
.flow b { display: block; font-size: 14.5px; color: #e8f1f9; }
.flow span { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── 栅格与卡片 ─────────────────────────────────────── */
.grid { display: grid; gap: var(--sp-3); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card:hover { border-color: #26445f; transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; }
.card ul { margin: 0; padding-left: 18px; }
.card li { font-size: 14px; color: var(--muted); line-height: 1.85; }
.card li b { color: var(--text-2); }

/* ── 产品卡 ─────────────────────────────────────────── */
.prod {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start;
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.prod:hover { border-color: #2c5177; transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.prod .ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(150deg, #17375c, #28559b); border: 1px solid #35618f;
}
.prod .ico svg { width: 27px; height: 27px; }
.prod h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 7px; font-size: 17px; }
.prod p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.75; max-width: 74ch; }
.prod .feat { display: flex; flex-wrap: wrap; gap: 7px; }
.prod .feat span {
  font-size: 12px; padding: 3px 9px; border-radius: 6px;
  border: 1px solid #22384e; background: #0c1725; color: #9db6cd;
}

.tag {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 5px;
  border: 1px solid #2a4360; background: #12263a; color: #a9c3d9; letter-spacing: .02em;
}
.tag.green { border-color: #23604f; background: #0d2c25; color: #8fe6cd; }
.tag.indigo { border-color: #33407e; background: #141a3a; color: #b3c0ff; }
.tag.amber { border-color: #5c4a1f; background: #241c0b; color: #e8cf9a; }

/* ── 步骤条 ─────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.step i {
  display: block; font-style: normal; font-size: 11.5px; font-weight: 800;
  letter-spacing: .1em; color: var(--brand-2); margin-bottom: 8px;
}
.step b { display: block; font-size: 14.5px; margin-bottom: 5px; color: #e8f1f9; }
.step span { color: var(--muted); font-size: 13px; line-height: 1.7; }

/* ── 场景卡 ─────────────────────────────────────────── */
.scene {
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px; transition: border-color .18s ease;
}
.scene:hover { border-color: #26445f; }
.scene b { color: #eaf3fb; display: block; margin-bottom: 6px; font-size: 14.5px; }
.scene span { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ── FAQ（details 折叠） ────────────────────────────── */
.faq { border-top: 1px solid var(--border-soft); }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 15px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: #e4eef7;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; width: 20px; height: 20px; flex: none;
  display: grid; place-items: center; border-radius: 6px;
  border: 1px solid #294563; background: #10202f;
  color: var(--brand-2); font-size: 13px; font-weight: 700;
}
.faq details[open] summary::before { content: "−"; }
.faq details[open] summary { color: #fff; }
.faq p { margin: 10px 0 0 30px; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ── 提示条 ─────────────────────────────────────────── */
.note {
  border: 1px solid #3a4a2a; background: #16200f; color: #cfd9b8;
  border-radius: 11px; padding: 13px 15px; font-size: 13.5px; line-height: 1.75;
}
.note.blue { border-color: #24405c; background: #0d1e2e; color: #a9c3d9; }
.note.warn { border-color: #5c4a1f; background: #241c0b; color: #e8cf9a; }

/* ── 表格 ───────────────────────────────────────────── */
table.dl {
  width: 100%; border-collapse: collapse; font-size: 14px;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
table.dl th, table.dl td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); vertical-align: middle;
}
table.dl thead th {
  background: #0e1c29; color: #c3d6e7; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
table.dl tbody tr:last-child td { border-bottom: 0; }
table.dl td { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; font-size: 12.8px; }

/* ── 定价 ───────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); align-items: stretch; }
.price {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: 16px; padding: 24px;
}
.price.featured { border-color: #35618f; box-shadow: 0 0 0 1px rgba(77, 124, 240, .25), var(--shadow); }
.price .name { font-size: 15px; font-weight: 700; color: #eaf3fb; margin-bottom: 10px; }
.price .amount { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 4px; }
.price .amount small { font-size: 13px; font-weight: 500; color: var(--muted); }
.price .soon { font-size: 12.5px; color: var(--muted-2); margin-bottom: 14px; }
.price ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.price li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 2; }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: #2f6bd8;
}
.price .btn { width: 100%; }
.badge-top {
  position: absolute; top: -11px; left: 24px;
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #5a86f5, #3f6de0); color: #fff;
}

/* ── 页脚 ───────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border-soft);
  margin-top: var(--sp-7); padding: var(--sp-6) 0 var(--sp-5);
  color: var(--muted); font-size: 13px; position: relative; z-index: 1;
}
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--sp-4); }
footer.site h4 {
  margin: 0 0 12px; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: #c4d8e8;
}
footer.site a { color: #9db6cd; display: block; margin: 6px 0; }
footer.site a:hover { color: #fff; }
footer.site .legal {
  margin-top: var(--sp-5); padding-top: var(--sp-3);
  border-top: 1px solid var(--border-soft);
  color: var(--muted-2); line-height: 1.9; font-size: 12.5px;
}

/* ── 法律页正文 ─────────────────────────────────────── */
.doc { max-width: 820px; padding: var(--sp-6) 0 var(--sp-7); }
.doc h1 { font-size: 27px; margin-bottom: 6px; }
.doc .updated { color: var(--muted-2); font-size: 13px; margin-bottom: var(--sp-4); }
.doc h2 { font-size: 17px; margin: var(--sp-5) 0 10px; }
.doc p, .doc li { color: #a9bdd2; font-size: 14.5px; line-height: 1.85; }
.doc ol, .doc ul { padding-left: 22px; }

/* ── 账号：登录 / 注册 / 找回 / 中心 ────────────────── */
.auth-wrap { max-width: 460px; margin: 0 auto; padding: var(--sp-5) 0 var(--sp-7); }
.auth-card {
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.auth-tabs {
  display: flex; gap: 5px; background: #0a1520; border: 1px solid var(--border);
  border-radius: 10px; padding: 4px; margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1; appearance: none; border: 0; background: none; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 600; padding: 9px 0;
  border-radius: 8px; cursor: pointer; transition: background .15s ease, color .15s ease;
}
.auth-tabs button:hover { color: #dbe8f4; }
.auth-tabs button.on { background: #17334f; color: #eaf3fb; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: #0a1520; color: var(--text);
  border: 1px solid #26445f; border-radius: 10px; padding: 11px 13px;
  font: inherit; font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #5d7288; }
.field input:focus { outline: none; border-color: #4a76e6; box-shadow: var(--ring); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; line-height: 1.6; }
.auth-card .btn { width: 100%; margin-top: 4px; }
.auth-msg { display: none; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; line-height: 1.6; }
.auth-msg.show { display: block; }
.auth-msg.err { border: 1px solid #5c2630; background: #2a1218; color: #ffb4b4; }
.auth-msg.ok { border: 1px solid #24405c; background: #0d1e2e; color: #a9c3d9; }
.auth-foot { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 16px; line-height: 1.9; }

.acct-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.acct-head .who { font-size: 17px; font-weight: 700; color: #eaf3fb; }
.acct-head .mail { color: var(--muted); font-size: 13px; }
.acct-head .sp { flex: 1; }
.pill-state {
  font-size: 12px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid #26445f; background: #0f2436; color: #a9c3d9;
}
.pill-state.warn { border-color: #5c4a1f; background: #241c0b; color: #e8cf9a; }
.danger-zone { border: 1px solid #5c2630; background: #1c1015; border-radius: 12px; padding: 18px; margin-top: 18px; }
.danger-zone h3 { color: #ffb4b4; margin-bottom: 8px; font-size: 15px; }
.danger-zone p { color: #d8a8ad; font-size: 13px; margin-bottom: 12px; }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  :root { --sp-7: 54px; --sp-8: 66px; }
  .wrap { padding: 0 18px; }
  header.site .nav { height: 56px; gap: 10px; }
  header.site nav { margin-left: 0; }
  header.site .cta .btn.ghost { display: none; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; gap: 13px; }
  .prod .ico { width: 44px; height: 44px; border-radius: 12px; }
  .prod .ico svg { width: 22px; height: 22px; }
  .hero .lead { font-size: 15px; }
  table.dl { font-size: 13px; }
  table.dl th, table.dl td { padding: 10px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
  .card:hover, .prod:hover { transform: none; }
}

/* compat: legacy small subtitle */
.sub { color: var(--muted); font-size: 15px; }

/* ── 插件目录（全量清单 + 分类筛选） ─────────────────── */
.cat-stats {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  padding: 14px 0 0; margin: 0;
  border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--muted);
}
.cat-stats b { color: #dce9f6; font-size: 15px; margin-right: 4px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.cat-chips button {
  appearance: none; cursor: pointer; font: inherit;
  font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid #22384e; background: #0c1725; color: var(--muted);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.cat-chips button:hover { color: #e6eef7; border-color: #2f5378; }
.cat-chips button.on {
  color: #fff; border-color: #4a76e6;
  background: rgba(77, 124, 240, .2);
}
.cat-chips button span { color: #7f96ad; margin-left: 6px; font-weight: 500; }
.cat-chips button.on span { color: #b9cdf0; }

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 12px;
}
.plugin {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.plugin:hover { border-color: #2c5177; transform: translateY(-2px); box-shadow: var(--shadow); }
.plugin[hidden] { display: none; }
.plugin .pi {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #17375c, #28559b);
  border: 1px solid #35618f;
}
.plugin .pi svg { width: 21px; height: 21px; }
.plugin b { display: block; font-size: 14.5px; color: #eaf3fb; margin-bottom: 3px; line-height: 1.4; }
.plugin em { font-style: normal; font-size: 12.5px; color: var(--muted); line-height: 1.55; display: block; }
.plugin .cnt {
  font-size: 11.5px; font-weight: 700;
  color: #9db9d4; padding: 3px 8px; border-radius: 6px;
  border: 1px solid #24384e; background: #0b1723;
  white-space: nowrap;
}
.plugin .cnt.soon { color: #e8cf9a; border-color: #4a3d18; background: #201a0c; }

.cat-empty { color: var(--muted-2); font-size: 13.5px; padding: 18px 0; }

@media (max-width: 760px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .plugin { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 11px; padding: 13px 14px; }
  .plugin .pi { width: 36px; height: 36px; border-radius: 10px; }
  .plugin .pi svg { width: 19px; height: 19px; }
}

/* ── 后台控制台（/account/admin.html） ───────────────── */
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 var(--sp-4); }
.adm-tabs button {
  appearance: none; cursor: pointer; font: inherit;
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 9px;
  border: 1px solid var(--border); background: #0c1725; color: var(--muted);
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.adm-tabs button:hover { color: #e6eef7; border-color: #2f5378; }
.adm-tabs button.on { color: #fff; background: #17334f; border-color: #35618f; }

.adm-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: var(--sp-4); }
.adm-kpi .k {
  background: linear-gradient(180deg, var(--panel), #0a1622);
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
}
.adm-kpi .k span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.adm-kpi .k b { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.adm-kpi .k.warn b { color: var(--amber); }

.sys-info { font-size: 13px; color: var(--muted); padding: 12px 14px;
  border: 1px solid var(--border-soft); border-radius: 10px; background: #0a1622; }

table.adm { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.adm thead th {
  text-align: left; padding: 10px 12px; background: #0e1c29; color: #c3d6e7;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.adm td { padding: 11px 12px; border-bottom: 1px solid var(--border-soft); color: var(--muted); vertical-align: middle; }
table.adm tbody tr:hover td { background: rgba(77, 124, 240, .06); }
table.adm td b { color: #e9f1f8; font-weight: 600; }
.adm-ops { display: flex; gap: 6px; flex-wrap: wrap; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.danger { border-color: #5c2630; color: #ff9f9f; }
.btn.danger:hover { background: #2a1218; border-color: #7a3040; color: #ffb4b4; }
.adm-empty { text-align: center; color: var(--muted-2); padding: 22px 0 !important; }
.adm-log { font-size: 13px; color: var(--muted); padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.adm-log b { color: #dce9f6; }
.adm-search { display: flex; gap: 10px; margin-bottom: 14px; }
.adm-search input {
  flex: 1; max-width: 320px; background: #0a1520; color: var(--text);
  border: 1px solid #26445f; border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 14px;
}
.adm-search input:focus { outline: none; border-color: #4a76e6; box-shadow: var(--ring); }
.adm-link-out { display: flex; gap: 10px; align-items: center; margin-bottom: var(--sp-4); }
.adm-link-out input {
  flex: 1; background: #0a1520; color: #9cc6ff; border: 1px solid #26445f; border-radius: 10px;
  padding: 10px 12px; font-family: ui-monospace, Consolas, monospace; font-size: 13px;
}
.adm-meta { font-size: 13px; color: var(--muted-2); margin-bottom: 10px; }

@media (max-width: 760px) {
  .adm-kpi { grid-template-columns: 1fr 1fr; }
  table.adm { font-size: 12.5px; }
  table.adm thead th, table.adm td { padding: 9px 8px; }
}

/* admin: role select + muted text */
.role-sel { appearance: none; background: #0b1723; color: #cfe0f0; border: 1px solid #26445f; border-radius: 6px; padding: 3px 6px; font: inherit; font-size: 12px; margin-left: 6px; cursor: pointer; }
.role-sel:focus { outline: none; border-color: #4a76e6; box-shadow: var(--ring); }
.adm-muted { color: var(--muted-2); font-size: 12px; }

/* 2FA: secret box + backup codes */
.tfa-secret { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.tfa-secret code { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: .12em; color: #9cc6ff; background: #0a1520; border: 1px solid #26445f; border-radius: 8px; padding: 8px 12px; }
.tfa-backup { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; line-height: 1.9; color: #e8cf9a; background: #1a1509; border: 1px solid #4a3d18; border-radius: 10px; padding: 12px 14px; margin: 0; white-space: pre-wrap; }


/* ── 展示图集 ────────────────────────────── */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shot-card {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; background: #0a1622;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.shot-card:hover { border-color: #2c5177; transform: translateY(-2px); box-shadow: var(--shadow); }
.shot-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot-card span {
  display: block; padding: 9px 12px; font-size: 12.5px; color: var(--muted);
  border-top: 1px solid var(--border-soft);
}
@media (max-width: 760px) { .shot-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ── 注册后引导 ──────────────────────────── */
.onboard { border-color: #35618f; }
.onboard-list { list-style: none; margin: 0 0 12px; padding: 0; }
.onboard-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
  padding: 11px 0; border-top: 1px solid var(--border-soft);
}
.onboard-list li:first-child { border-top: 0; }
.onboard-list li b { color: #eaf3fb; font-size: 14.5px; }
.onboard-list li span { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.onboard-list li a { grid-row: 1 / span 2; grid-column: 2; }
.onboard-list li.done b { color: var(--mint); }
.onboard-list li.done b::after { content: " ✓"; }
.onboard-list li.done { opacity: .72; }


/* ── 成果图轮播 ──────────────────────────── */
.carousel { position: relative; }
.carousel .track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; border-radius: 14px;
  border: 1px solid var(--border); background: #0a1622;
  -webkit-overflow-scrolling: touch;
}
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide {
  flex: 0 0 100%; scroll-snap-align: center; margin: 0;
  display: flex; flex-direction: column;
}
/* 图不裁切：科学图的坐标轴与图例不能被切掉 */
.carousel .slide img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain;
  background: #060d14;
}
.carousel figcaption {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; border-top: 1px solid var(--border-soft); font-size: 13px;
}
.carousel figcaption b { color: #eaf3fb; font-weight: 600; }
.carousel figcaption span { color: var(--muted-2); font-size: 12.5px; }
.carousel .nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid #2c5177; background: rgba(10, 21, 32, .82); color: #dce9f6;
  font-size: 20px; line-height: 1; display: grid; place-items: center;
  transition: background .15s ease, border-color .15s ease;
}
.carousel .nav:hover { background: #17334f; border-color: #4a76e6; }
.carousel .nav.prev { left: 10px; }
.carousel .nav.next { right: 10px; }
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 14px; }
.dots .dot {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: #24405c; transition: background .15s ease, transform .15s ease;
}
.dots .dot.on { background: var(--brand-2); transform: scale(1.25); }
@media (max-width: 760px) {
  .carousel .nav { width: 32px; height: 32px; font-size: 17px; }
  .carousel .slide img { aspect-ratio: 4 / 3; }
}

.carousel figcaption .fig-dl { color: var(--brand-2); text-decoration: none; border-bottom: 1px dashed #3a5f8a; }
.carousel figcaption .fig-dl:hover { color: #a8c4ff; }
