/* ══════════════════════════════════════════════════════
   合作工作台 · 三主题
   theme-a 素雅杂志 / theme-b 奶油甜卡 / theme-c 墨蓝研报
   ══════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font: 15px/1.78 -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text);
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 72px; }
a { text-decoration: none; color: inherit; }

/* ── 布局骨架：手机单列；≥960px 时左侧出现目录侧栏 ── */
.layout { display: block; }
.side { display: none; }
@media (min-width: 960px) {
  .layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); max-width: 960px; margin: 0 auto; gap: 8px; }
  .side { display: block; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 26px 8px 26px 18px; }
  .side-title { font-size: 17px; font-weight: 800; padding: 0 12px 14px; }
  .side-title span { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); letter-spacing: .2em; margin-top: 2px; }
  .side-nav a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 8px; margin-bottom: 2px;
    font-size: 13.5px; font-weight: 600; color: var(--text-2);
  }
  .side-nav a:hover { background: rgba(0,0,0,.04); }
  .side-nav a.on { background: var(--accent); color: #fff; }
  .side-nav a.on .dot { background: #fff !important; }
  .side-nav a.on em { color: rgba(255,255,255,.75); }
  .side-nav .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
  .side-nav em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }
  .layout .toc, .theme-c .toc { display: none !important; }
}

/* ── 知识库折叠区 ── */
.kb-divider { margin: 34px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
details.kb { margin-top: 8px; }
details.kb .kb-sum {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--sec, var(--accent));
  border-radius: 8px; padding: 12px 14px;
}
details.kb .kb-sum::-webkit-details-marker { display: none; }
details.kb .kb-sum::after { content: "›"; margin-left: 4px; color: var(--text-3); font-size: 16px; transition: transform .15s; }
details.kb[open] .kb-sum::after { transform: rotate(90deg); }
details.kb .kb-sum .icon { font-size: 18px; flex: none; }
details.kb .kb-sum .t { flex: 1; min-width: 0; }
details.kb .kb-sum .t b { display: block; font-size: 15px; font-weight: 700; }
details.kb .kb-sum .t i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
details.kb .kb-sum .kb-n { flex: none; font-size: 11.5px; color: var(--text-3); }
details.kb[open] .kb-sum { border-radius: 8px 8px 0 0; }
details.kb .item { margin-top: 8px; }
details.kb .item:first-of-type { margin-top: 10px; }

/* ── 内容页导航：面包屑 / 上下篇 / 同栏目 / 跨栏目跳转 ── */
.crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 2px 12px; font-size: 12.5px; color: var(--text-3); }
.crumb a { color: var(--text-2); font-weight: 600; }
.crumb a:last-child { color: var(--sec, var(--accent)); }
.pager { display: grid; gap: 8px; margin-top: 22px; }
@media (min-width: 560px) { .pager { grid-template-columns: 1fr 1fr; } }
.pg { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; }
.pg span { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.pg b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.pg.next { text-align: right; }
.more { margin-top: 22px; }
.more-head { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.more-item { display: block; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--sec, var(--accent)); border-radius: 6px; padding: 9px 12px; margin-bottom: 6px; font-size: 13.5px; line-height: 1.5; }
.jump { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.jump-head { font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 9px; }
/* 顶部栏目导航：吸顶、可横滑 */
.jump.top {
  margin: 0 -16px 14px; padding: 8px 16px; border-top: 0;
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.jump.top .jump-chips { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jump.top .jump-chips a { flex: none; }
.jump-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.jump-chips a { display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.jump-chips a.on { background: var(--sec, var(--accent)); color: #fff; border-color: transparent; }
.jump-chips a.on .dot { background: #fff !important; }
.jump-chips .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ── 本月焦点 ── */
.focus { margin-top: 14px; }
.focus-head { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--text-2); margin-bottom: 8px; }
.focus-card { display: block; margin-bottom: 8px; }
.focus-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.focus-chip { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; }

/* 区块色：主题决定是用各栏目原色(raw)还是统一强调色 */
.section, .cpage { --sec: var(--sec-raw, var(--accent)); --sec-soft: var(--sec-soft-raw, var(--accent-soft)); }

/* ── 通用骨架 ── */
.hero-in { position: relative; }
.hi { font-weight: 800; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.toc { display: flex; gap: 8px; flex-wrap: wrap; }
.toc .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.toc a { display: flex; align-items: center; gap: 6px; }
.section { margin-top: 30px; }
.sec-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.sec-head .t { min-width: 0; flex: 1; }
.sec-head h2 { line-height: 1.3; }
.sec-head .hint { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.sec-head .count { flex: none; font-size: 12px; color: var(--text-3); }
.item { display: block; position: relative; }
.item h3 { font-size: 16px; font-weight: 700; line-height: 1.55; padding-right: 18px; }
.item .summary { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 1.7; }
.item .meta { margin-top: 9px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.item .arrow { position: absolute; right: 14px; top: 15px; color: var(--text-3); }
.badge { font-size: 11px; font-weight: 600; padding: 1.5px 8px; }
.empty-line { text-align: center; font-size: 13px; color: var(--text-3); padding: 18px 14px; }
details.archive summary { list-style: none; cursor: pointer; text-align: center; font-size: 12.5px; color: var(--text-3); padding: 8px; }
details.archive summary::-webkit-details-marker { display: none; }
details.archive summary::after { content: " ▾"; }
details.archive[open] summary::after { content: " ▴"; }
.fee-lock { text-align: center; }
.fee-lock .lk { font-size: 28px; }
.fee-lock p { font-size: 13px; margin: 8px 0 12px; line-height: 1.7; }
.fee-lock form { display: flex; gap: 8px; max-width: 320px; margin: 0 auto; }
.fee-lock input { flex: 1; min-width: 0; font: inherit; text-align: center; }
.fee-lock button { flex: none; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.fee-lock .err { color: #d64541; font-size: 12.5px; margin-top: 8px; }
.fee-note { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 8px; }
.foot { margin-top: 48px; text-align: center; font-size: 12px; color: var(--text-3); line-height: 2.1; }
.topnav { padding: 4px 2px 12px; }
.topnav a { font-size: 14px; font-weight: 600; color: var(--text-2); }
.article .secpill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.article h1.title { margin-top: 12px; font-size: 22px; font-weight: 800; line-height: 1.5; }
.article > .meta { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }
.body { margin-top: 18px; font-size: 15.5px; }
.body h1, .body h2 { font-size: 17.5px; font-weight: 800; margin: 28px 0 10px; line-height: 1.5; }
.body h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; }
.body p { margin: 12px 0; }
.body ul, .body ol { margin: 12px 0; padding-left: 22px; }
.body li { margin: 5px 0; }
.body blockquote { margin: 14px 0; padding: 10px 16px; color: var(--text-2); font-size: 14px; }
.body blockquote p { margin: 4px 0; }
.body hr { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }
.body img { max-width: 100%; }
.body code { background: rgba(0,0,0,.05); border-radius: 5px; padding: 1px 6px; font-size: 13.5px; }
.body a { color: var(--sec); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.tblwrap { overflow-x: auto; margin: 14px -20px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
.body table { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; white-space: nowrap; }
.body th { padding: 9px 13px; text-align: left; font-weight: 700; }
.body td { padding: 9px 13px; border-bottom: 1px solid var(--line); }
.copyblock { position: relative; }
.copybtn { position: absolute; top: 0; right: 0; border: 0; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.g-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin: 26px 0 12px; }
.g-head::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.gallery .imgs { display: grid; gap: 12px; }
.gallery img { width: 100%; display: block; }
.gallery .tip { margin-top: 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.file-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; margin-bottom: 9px; }
.file-card .ext { flex: none; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; font-weight: 800; background: #64748b; }
.file-card.ext-pdf .ext { background: #c4544a; }
.file-card.ext-xlsx .ext, .file-card.ext-xls .ext { background: #2e8b60; }
.file-card.ext-docx .ext, .file-card.ext-doc .ext { background: #3f6fb5; }
.file-card.ext-pptx .ext, .file-card.ext-ppt .ext { background: #d07a3e; }
.file-card .info { min-width: 0; flex: 1; }
.file-card .name { font-size: 13.5px; font-weight: 600; line-height: 1.45; word-break: break-all; }
.file-card .size { font-size: 11.5px; color: var(--text-3); }
.file-card .dl { flex: none; font-size: 12px; font-weight: 700; }
.void { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 30px; }
/* 登录门 */
.gate { width: 100%; max-width: 340px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; padding: 30px 26px 24px; }
.gate-hi { font-size: 21px; font-weight: 800; }
.gate-sub { font-size: 12px; color: var(--text-3); letter-spacing: .12em; margin: 4px 0 20px; }
.gate-err { font-size: 12.5px; color: #d64541; margin-bottom: 10px; }
.gate input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; text-align: center; letter-spacing: .1em; margin-bottom: 10px; background: var(--bg); }
.gate input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.gate button { width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 11px; font: inherit; font-weight: 700; letter-spacing: .2em; cursor: pointer; }
.gate-note { margin-top: 14px; font-size: 11.5px; color: var(--text-3); line-height: 1.8; }
.void .emoji { font-size: 48px; margin-bottom: 16px; }
.void h1 { font-size: 20px; font-weight: 800; }
.void p { margin-top: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.9; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero { animation: rise .4s ease both; }
.toc { animation: rise .4s ease .06s both; }
.section { animation: rise .45s ease both; }
.section:nth-of-type(1) { animation-delay: .1s; }
.section:nth-of-type(2) { animation-delay: .16s; }
.section:nth-of-type(3) { animation-delay: .22s; }
.section:nth-of-type(4) { animation-delay: .28s; }
.section:nth-of-type(5) { animation-delay: .34s; }
.article { animation: rise .4s ease both; }

/* ══════════ 主题 A · 素雅杂志 ══════════ */
.theme-a {
  --bg: #faf9f6; --text: #212721; --text-2: #5c665e; --text-3: #98a09a;
  --line: #e5e2d8; --accent: #1f6b50; --accent-soft: #e9f1ec;
}
.theme-a .section { --sec: var(--accent); --sec-soft: var(--accent-soft); }
.theme-a .cpage { --sec: var(--accent); --sec-soft: var(--accent-soft); }
.theme-a .section.is-fee, .theme-a .cpage.is-fee { --sec: #a4791f; --sec-soft: #f5eed9; }
.theme-a .wrap { padding-top: 34px; }
.theme-a .hero .hi-pre, .theme-a .hero .wave { display: none; }
.theme-a .hero .hi { font-size: 30px; letter-spacing: .02em; }
.theme-a .hero .suffix { margin-top: 4px; font-size: 13px; letter-spacing: .32em; color: var(--text-2); }
.theme-a .hero .chips { margin-top: 16px; }
.theme-a .hero .chip { font-size: 12px; color: var(--text-3); letter-spacing: .04em; }
.theme-a .hero .chip + .chip::before { content: "·"; margin-right: 8px; color: var(--line); }
.theme-a .hero { padding-bottom: 18px; border-bottom: 2px solid var(--text); position: relative; }
.theme-a .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; border-bottom: 1px solid var(--text); }
.theme-a .toc { margin-top: 18px; }
.theme-a .toc a { font-size: 12.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: #fff; }
.theme-a .section { counter-increment: sec; margin-top: 40px; }
.theme-a .sec-head { align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.theme-a .sec-head .icon { display: none; }
.theme-a .sec-head .t::before {
  content: "0" counter(sec); display: block;
  font-size: 11px; font-weight: 800; letter-spacing: .38em; color: var(--sec); margin-bottom: 3px;
}
.theme-a .sec-head h2 { font-size: 21px; font-weight: 800; letter-spacing: .02em; }
.theme-a .sec-head .count { font-weight: 700; }
.theme-a .item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px 13px; margin-bottom: 10px; }
.theme-a .item:active { background: #f4f3ee; }
.theme-a .badge { border-radius: 999px; }
.theme-a .badge.month { background: var(--sec-soft); color: var(--sec); }
.theme-a .badge.new { background: var(--sec); color: #fff; }
.theme-a .badge.att { background: #f0efe9; color: var(--text-2); }
.theme-a .badge.pin { background: #f5eed9; color: #a4791f; }
.theme-a .empty-line { border: 1px dashed var(--line); border-radius: 12px; background: #fffdf8; }
.theme-a .fee-lock { background: #fbf7ec; border: 1px solid #eadfc2; border-radius: 12px; padding: 20px 16px; }
.theme-a .fee-lock p { color: #8a713a; }
.theme-a .fee-lock input { border: 1px solid #e0d3ab; border-radius: 8px; padding: 9px 12px; background: #fff; }
.theme-a .fee-lock button { background: #a4791f; color: #fff; border-radius: 8px; padding: 9px 18px; }
.theme-a .article { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 20px; }
.theme-a .article .secpill { color: var(--sec); letter-spacing: .18em; font-size: 12px; }
.theme-a .article .secpill::before { content: ""; width: 18px; border-top: 2px solid var(--sec); margin-right: 2px; }
.theme-a .body h1, .theme-a .body h2 { border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.theme-a .body strong { color: var(--sec); }
.theme-a .body blockquote { border-left: 3px solid var(--sec); background: #f7f6f1; border-radius: 0 8px 8px 0; }
.theme-a .body th { background: var(--text); color: #faf9f6; }
.theme-a .body td { background: #fff; }
.theme-a .body tr:nth-child(even) td { background: #f7f6f1; }
.theme-a .copybtn { background: var(--sec-soft); color: var(--sec); border-radius: 999px; }
.theme-a .gallery img { border-radius: 8px; border: 1px solid var(--line); }
.theme-a .file-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.theme-a .file-card .ext { border-radius: 8px; }
.theme-a .file-card .dl { color: var(--sec); }

/* ══════════ 主题 B · 奶油甜卡 ══════════ */
.theme-b {
  --bg: #f6f1e8; --text: #443a2e; --text-2: #7d7365; --text-3: #ab9f8e;
  --line: #ece4d4; --accent: #d98a4e; --accent-soft: #f8e9dc;
}
.theme-b .hero {
  background: linear-gradient(140deg, #fffdf8, #fdf4e4);
  border: 1px solid #f0e5cf; border-radius: 24px; padding: 26px 22px;
  box-shadow: 0 8px 24px rgba(180, 140, 80, .12);
  position: relative; overflow: hidden;
}
.theme-b .hero::before { content: "☀️"; position: absolute; right: 18px; top: 16px; font-size: 34px; opacity: .9; }
.theme-b .hero .hi { font-size: 25px; }
.theme-b .hero .suffix { margin-top: 4px; font-size: 13.5px; color: var(--text-2); font-weight: 600; }
.theme-b .hero .chips { margin-top: 14px; }
.theme-b .hero .chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.theme-b .toc { margin-top: 14px; }
.theme-b .toc a { font-size: 12.5px; font-weight: 700; color: var(--text-2); background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; box-shadow: 0 1px 3px rgba(180,140,80,.08); }
.theme-b .sec-head .icon {
  flex: none; width: 44px; height: 44px; border-radius: 15px; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sec-soft); transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.theme-b .sec-head h2 { font-size: 18.5px; font-weight: 800; }
.theme-b .sec-head .count { background: #fffdf8; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.theme-b .item {
  background: #fffdf9; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px 17px 14px; margin-bottom: 11px;
  box-shadow: 0 3px 10px rgba(180, 140, 80, .08);
  border-top: 4px solid var(--sec);
}
.theme-b .item:active { transform: scale(.98); }
.theme-b .badge { border-radius: 999px; padding: 2px 10px; }
.theme-b .badge.month { background: var(--sec-soft); color: var(--sec); }
.theme-b .badge.new { background: #ffe1e1; color: #d64541; }
.theme-b .badge.att { background: #f3ede1; color: var(--text-2); }
.theme-b .badge.pin { background: #fff3d1; color: #b7860f; }
.theme-b .empty-line { background: #fffdf9; border: 2px dashed var(--line); border-radius: 18px; }
.theme-b .fee-lock { background: linear-gradient(140deg, #fff8e5, #fdeecb); border: 1px solid #f0dfae; border-radius: 18px; padding: 20px 16px; }
.theme-b .fee-lock p { color: #96793a; }
.theme-b .fee-lock input { border: 1px solid #ecd9a4; border-radius: 12px; padding: 9px 12px; background: #fff; }
.theme-b .fee-lock button { background: #d9a83e; color: #fff; border-radius: 12px; padding: 9px 18px; }
.theme-b .article { background: #fffdf9; border: 1px solid var(--line); border-radius: 22px; padding: 25px 20px; box-shadow: 0 4px 14px rgba(180,140,80,.09); }
.theme-b .article .secpill { background: var(--sec-soft); color: var(--sec); border-radius: 999px; padding: 4px 13px; }
.theme-b .body h1::before, .theme-b .body h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sec); margin-right: 8px; }
.theme-b .body strong { color: var(--sec); }
.theme-b .body blockquote { background: var(--sec-soft); border-radius: 12px; }
.theme-b .body th { background: var(--sec); color: #fff; }
.theme-b .body th:first-child { border-radius: 10px 0 0 0; }
.theme-b .body th:last-child { border-radius: 0 10px 0 0; }
.theme-b .body td { background: #fffdf9; }
.theme-b .body tr:nth-child(even) td { background: #faf5ea; }
.theme-b .copybtn { background: var(--sec-soft); color: var(--sec); border-radius: 999px; }
.theme-b .gallery img { border-radius: 14px; border: 1px solid var(--line); }
.theme-b .file-card { background: #fbf6ec; border: 1px solid var(--line); border-radius: 14px; }
.theme-b .file-card .ext { border-radius: 12px; }
.theme-b .file-card .dl { background: var(--sec); color: #fff; border-radius: 999px; padding: 5px 14px; }

/* ══════════ 主题 C · 墨蓝研报 ══════════ */
/* 色调（参照小米 SU7 车色）：默认海湾蓝，可切霞光紫 / 橄榄绿 */
.theme-c {
  --bg: #edf1f9; --text: #202b40; --text-2: #566179; --text-3: #93a0b5;
  --line: #dbe3f0; --accent: #3565e3; --accent-soft: #e7edfc;
  --gold: #b9963f; --surface-2: #f3f6fc;
  --hero-1: #2f5fd8; --hero-2: #5c8cf5;
}
.theme-c.tone-purple {
  --bg: #f1eef8; --text: #2b2542; --text-2: #5d5678; --text-3: #9c94b5;
  --line: #e2ddf0; --accent: #7458cc; --accent-soft: #eee9fa;
  --surface-2: #f7f4fc; --hero-1: #6750c0; --hero-2: #9b84e6;
}
.theme-c.tone-green {
  --bg: #eef2ea; --text: #253026; --text-2: #58685a; --text-3: #97a696;
  --line: #dce4d6; --accent: #4d7350; --accent-soft: #e9f0e6;
  --surface-2: #f3f7f0; --hero-1: #48663f; --hero-2: #7d9c6a;
}
.theme-c .section, .theme-c .cpage { --sec: var(--accent); --sec-soft: var(--accent-soft); }
.theme-c .section.is-fee, .theme-c .cpage.is-fee { --sec: var(--gold); --sec-soft: #f5efdc; }
.theme-c .hero { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); border-radius: 10px; padding: 24px 22px 20px; color: #fff; position: relative; overflow: hidden; }
.theme-c .hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--gold), #e3cf8e, var(--gold)); }
.theme-c .hero::after {
  content: "WORKSPACE"; position: absolute; right: 16px; top: 16px;
  font-size: 10px; letter-spacing: .35em; color: rgba(255,255,255,.28); font-weight: 700;
}
.theme-c .hero .hi-pre, .theme-c .hero .wave { display: none; }
.theme-c .hero .hi { font-size: 26px; letter-spacing: .04em; }
.theme-c .hero .suffix { margin-top: 3px; font-size: 13px; color: #bcd0e4; letter-spacing: .14em; }
.theme-c .hero .chips { margin-top: 14px; }
.theme-c .hero .chip { background: rgba(255,255,255,.13); border-radius: 4px; padding: 3px 10px; font-size: 12px; color: #dbe6f1; }
.theme-c .toc {
  margin: 14px -16px 0; padding: 10px 16px;
  position: sticky; top: 0; z-index: 20;
  background: var(--bg); border-bottom: 1px solid var(--line);
  flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.theme-c .toc a { flex: none; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 4px 11px; }
.theme-c .toc .dot { border-radius: 1px; }
.theme-c .focus-card {
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2));
  border-radius: 10px; padding: 14px 16px; color: #fff;
  border-top: 3px solid var(--gold);
}
.theme-c .fc-tag { font-size: 11px; letter-spacing: .1em; opacity: .85; margin-bottom: 4px; }
.theme-c .fc-title { font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.theme-c .fc-sub { font-size: 12px; opacity: .85; margin-top: 4px; line-height: 1.6; }
.theme-c .focus-chip.new { background: #b02a25; color: #fff; }
.theme-c .focus-chip.fee { background: #f5efdc; color: #8a6d1d; border: 1px solid #e6d9ae; }
.theme-c .section { counter-increment: sec; }
.theme-c .sec-head .icon {
  flex: none; width: 38px; height: 38px; border-radius: 6px;
  background: var(--sec); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0;
}
.theme-c .sec-head .icon::after { content: "0" counter(sec); font-size: 15px; font-weight: 800; color: #fff; letter-spacing: .05em; }
.theme-c .section.is-fee .sec-head .icon::after { content: "¥"; font-size: 17px; }
.theme-c .sec-head h2 { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.theme-c .sec-head .count { font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 1px 9px; }
.theme-c .item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--sec); border-radius: 8px; padding: 15px 16px 13px; margin-bottom: 9px; box-shadow: 0 1px 2px rgba(30,44,64,.05); }
.theme-c .item:active { background: var(--surface-2); }
.theme-c .badge { border-radius: 4px; }
.theme-c .badge.month { background: var(--sec-soft); color: var(--sec); }
.theme-c .badge.new { background: #b02a25; color: #fff; }
.theme-c .badge.att { background: #eef1f5; color: var(--text-2); }
.theme-c .badge.pin { background: #f5efdc; color: #8a6d1d; }
.theme-c .empty-line { background: #fff; border: 1px dashed var(--line); border-radius: 8px; }
.theme-c .fee-lock { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 20px 16px; }
.theme-c .fee-lock p { color: var(--text-2); }
.theme-c .fee-lock input { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: var(--surface-2); }
.theme-c .fee-lock button { background: var(--gold); color: #fff; border-radius: 6px; padding: 9px 18px; }
.theme-c .article { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sec); border-radius: 10px; padding: 25px 20px; }
.theme-c .article .secpill { background: var(--sec); color: #fff; border-radius: 4px; padding: 3px 12px; letter-spacing: .06em; }
.theme-c .body h1, .theme-c .body h2 { padding-left: 11px; border-left: 4px solid var(--sec); }
.theme-c .body strong { color: var(--sec); }
.theme-c .body blockquote { background: var(--sec-soft); border-left: 3px solid var(--sec); }
.theme-c .body th { background: var(--sec); color: #fff; }
.theme-c .body td { background: #fff; }
.theme-c .body tr:nth-child(even) td { background: var(--surface-2); }
.theme-c .copybtn { background: var(--sec-soft); color: var(--sec); border-radius: 4px; }
.theme-c .gallery img { border-radius: 6px; border: 1px solid var(--line); }
.theme-c .file-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
.theme-c .file-card .ext { border-radius: 6px; }
.theme-c .file-card .dl { background: var(--sec); color: #fff; border-radius: 4px; padding: 5px 14px; }

/* 无主题 class 的兜底页（home / denied） */
body:not([class*="theme-"]) { --bg: #f5f6f8; --text: #222; --text-2: #666; --text-3: #999; --line: #e5e5e5; --accent: #1f4e79; --accent-soft: #e7eef5; }
