/* ============================================================
 *  CBS 展示中枢 · 主样式表（v2 · 浅色精简单页）
 *  白 / 白灰为主，蓝色为唯一强调色，留白充足、层级靠字重与间距。
 * ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;        /* 白灰 */
  --bg-tint: #eef3f9;        /* 浅蓝灰区块 */
  --text: #1f2933;
  --text-2: #586174;
  --muted: #8a94a6;
  --brand: #185fa5;          /* CBS 蓝：点缀色（高亮词 / 链接 / 少量强调） */
  --brand-ink: #134b85;
  --brand-soft: #e8f0f9;
  --ink: #111418;            /* 主操作色：按钮、卡片悬停描边（黑白极简基调） */
  --ink-2: #3a414c;
  --ink-soft: #6b7280;
  --line: #e8ebef;           /* 细边框 */
  --surface: #f5f7f9;        /* 浅灰面 */
  --brand-2: #0aa5c4;
  --ok: #2f9e57;
  --warn: #c47d12;
  --border: #e7ebf0;
  --border-2: #eef1f5;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
  --shadow-h: 0 6px 22px rgba(16, 24, 40, .09);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  position: relative;
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  height: 60px; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff; font-weight: 900; font-size: 15px;
  display: grid; place-items: center; letter-spacing: .5px;
}
.brand-txt { font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: -.01em; display: flex; flex-direction: column; }
.brand-sub { font-size: 9.5px; letter-spacing: 2.2px; color: var(--muted); font-weight: 700; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--text-2); transition: .15s; white-space: nowrap;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-ink); }
.nav-links a.primary.active { background: var(--brand); color: #fff; }

/* 四模块横向滚动快速切换（顶栏右侧，清晰可见） */
.nav-switcher {
  display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none; padding: 4px 5px; flex: none;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px;
}
.nav-switcher::-webkit-scrollbar { display: none; }
.nav-switcher a {
  flex: none; scroll-snap-align: center; padding: 8px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--text-2); background: transparent;
  border: 1px solid transparent; transition: .15s; white-space: nowrap; cursor: pointer;
}
.nav-switcher a:hover { color: var(--text); background: rgba(255,255,255,.75); border-color: var(--border); }
.nav-switcher a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.nav-switcher a.active:hover { background: #145a8c; }

/* 右上角搜索入口（仅放大镜图标） */
.nav-search-btn {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--border); cursor: pointer; transition: .15s;
}
.nav-search-btn:hover, .nav-search-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 搜索下拉面板 */
.search-drop {
  position: absolute; top: 56px; right: 22px; width: 360px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-h); z-index: 60; padding: 10px; overflow: hidden;
}
.search-drop[hidden] { display: none; }
.search-drop-head { display: flex; align-items: center; gap: 10px; }
.search-drop-ico { font-size: 15px; opacity: .55; flex: none; }
#siteSearch {
  flex: 1; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-soft); color: var(--text); font-size: 14px; outline: none; transition: .15s;
}
#siteSearch:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px var(--brand-soft); }
#siteSearch::-webkit-search-cancel-button { cursor: pointer; }
.search-drop-close {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 14px; color: var(--text-2);
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: .15s;
}
.search-drop-close:hover { background: var(--bg-soft); color: var(--text); border-color: var(--border); }
.search-results {
  margin-top: 8px; max-height: 360px; overflow-y: auto;
  background: #fff; border-radius: 10px; padding: 4px;
}
.search-results[hidden] { display: none; }
.search-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  background: none; border: none; padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: .12s;
}
.search-item:hover { background: var(--bg-soft); }
.si-type {
  flex: none; font-size: 11px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 2px 8px; border-radius: 999px; margin-top: 2px;
}
.si-body { display: flex; flex-direction: column; min-width: 0; }
.si-title { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.si-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { padding: 16px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 22px 56px; }
.hero-badge {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--brand-ink);
  background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 40px; line-height: 1.22; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .hl { color: var(--brand); }
.hero .lead { font-size: 16.5px; color: var(--text-2); max-width: 720px; margin-top: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
  border-radius: 10px; font-weight: 700; font-size: 15px; transition: .15s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- 区块通用 ---------- */
.section { padding: 58px 0; border-bottom: 1px solid var(--border-2); }
.section:last-of-type { border-bottom: none; }
.section--tint { background: var(--bg-soft); }
.section-head { margin-bottom: 30px; }
.sec-kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brand); margin-bottom: 10px;
}
.sec-title { font-size: 27px; font-weight: 900; letter-spacing: -.4px; }
.sec-desc { font-size: 15px; color: var(--text-2); margin-top: 10px; max-width: 760px; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: .15s;
}
.card:hover { box-shadow: var(--shadow-h); }

/* ============================================================
 *  模块一 · 小程序功能介绍（核心）
 * ============================================================ */
.mod1-intro { font-size: 15px; color: var(--text-2); margin-bottom: 22px; line-height: 1.8; }

/* 角色切换 */
.role-switch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.role-tab {
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 12px;
  text-align: center; cursor: pointer; transition: .15s; position: relative;
}
.role-tab:hover { border-color: var(--brand); }
.role-tab.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rt-icon { font-size: 24px; }
.rt-name { font-weight: 800; font-size: 14.5px; margin-top: 4px; }
.rt-code { font-size: 10px; color: var(--muted); font-family: ui-monospace, monospace; letter-spacing: 1px; }

/* 四角色首页手机卡 */
.role-phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.phone-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
  cursor: pointer; transition: .2s; box-shadow: var(--shadow);
}
.phone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: var(--brand); }
.phone-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); transform: translateY(-4px); }
.phone-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border-2); background: #f5f5f5; }
.phone-frame img { width: 100%; height: auto; display: block; }
.phone-label { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--text); }
.pl-dot { width: 10px; height: 10px; border-radius: 50%; }

.role-panel { display: none; }
.role-panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rp-hero { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.rp-top { display: flex; align-items: center; gap: 14px; }
.rp-avatar { width: 50px; height: 50px; border-radius: 13px; background: var(--brand-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.rp-top h3 { font-size: 20px; font-weight: 900; }
.rp-tag { font-size: 13px; color: var(--brand); font-weight: 700; }
.rp-desc { font-size: 14.5px; color: var(--text-2); margin-top: 14px; line-height: 1.8; }
.id-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.id-item { background: var(--bg-soft); border-radius: 9px; padding: 11px 12px; }
.id-label { font-size: 11px; color: var(--muted); font-weight: 700; }
.id-value { font-size: 12.5px; font-weight: 600; margin-top: 3px; color: var(--text); }

.block-title { font-size: 16px; font-weight: 800; margin: 26px 0 14px; display: flex; align-items: center; gap: 10px; }
.block-title::before { content: ""; width: 4px; height: 17px; background: var(--brand); border-radius: 2px; }
.bt-hint { font-size: 12.5px; font-weight: 600; color: var(--muted); }

/* 权限表 */
.acc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.acc-table th, .acc-table td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border-2); }
.acc-table th { background: var(--bg-soft); font-weight: 700; color: var(--text-2); font-size: 12.5px; }
.acc-table tr:last-child td { border-bottom: none; }
.acc-code { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 800; color: var(--brand); }
.acc-name { font-weight: 600; }
.acc-note { color: var(--text-2); }

/* 权限等级 badge */
.lv { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.lv-full { background: #e6f4ec; color: #1f7a45; }
.lv-partial { background: #fff3e0; color: #b06a0d; }
.lv-readonly { background: #eef1f5; color: #5b6770; }
.lv-preview { background: #eef0fb; color: #4a52a8; }
.lv-none { background: #fbe9e9; color: #c0392b; }

/* 权限边界两列 */
.perm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.perm-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: #fff; }
.perm-box h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.perm-box.can h4::before { content: "✓"; color: var(--ok); font-weight: 900; }
.perm-box.cannot h4::before { content: "×"; color: #c0392b; font-weight: 900; }
.perm-box ul { list-style: none; display: grid; gap: 8px; }
.perm-box li { font-size: 13.5px; color: var(--text-2); padding-left: 16px; position: relative; line-height: 1.65; }
.perm-box.can li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.perm-box.cannot li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: #c0392b; }

/* 核心功能 */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.feat-card h5 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.feat-card p { font-size: 13.5px; color: var(--text-2); line-height: 1.7; }

/* 场景 */
.scene { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.scene-head { display: flex; gap: 12px; align-items: flex-start; }
.scene-idx { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.scene-head h5 { font-size: 15px; font-weight: 800; }
.situation { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.scene-flow { margin: 12px 0 0 4px; padding-left: 22px; }
.scene-flow li { font-size: 13.5px; color: var(--text-2); margin: 5px 0; }

/* 页面 chips */
.page-list { display: flex; flex-wrap: wrap; gap: 8px; }
.page-chip { font-family: ui-monospace, monospace; font-size: 11.5px; background: var(--bg-soft); border: 1px solid var(--border-2); padding: 4px 9px; border-radius: 7px; color: var(--text-2); }

/* 模块全景网格 */
.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mod-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: .15s; }
.mod-card:hover { box-shadow: var(--shadow-h); }
.mod-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; cursor: pointer; }
.mod-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; flex: none; }
.mod-code { font-family: ui-monospace, monospace; font-size: 11px; font-weight: 800; color: var(--brand); letter-spacing: 1px; }
.mod-name { font-size: 15px; font-weight: 800; }
.mod-sum { font-size: 13px; color: var(--text-2); padding: 0 16px 14px; line-height: 1.6; }
.mod-toggle { font-size: 12px; color: var(--brand); font-weight: 700; padding: 0 16px 14px; cursor: pointer; }
.mod-detail { display: none; padding: 0 16px 16px; border-top: 1px solid var(--border-2); margin-top: 4px; }
.mod-detail.open { display: block; }
.mod-detail p { font-size: 13px; color: var(--text-2); line-height: 1.7; margin: 12px 0; }
.mod-detail ul { list-style: none; display: grid; gap: 6px; }
.mod-detail li { font-size: 13px; color: var(--text); padding-left: 15px; position: relative; }
.mod-detail li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.mod-foot { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, monospace; padding: 0 16px 16px; }

/* ============================================================
 *  模块二 / 三 · 公众号 & 知识星球 文章
 * ============================================================ */
/* 来源状态条：数据来源 / 接入方式 / 同步时间 / 更新机制 */
.feed-bar {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.fb-mode {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-2); border: 1px solid var(--border);
}
.fb-mode i { font-style: normal; font-size: 9px; line-height: 1; }
.fb-auto { background: #e6f4ec; color: #1f7a45; border-color: #cbe7d6; }
.fb-semi { background: var(--brand-soft); color: var(--brand-ink); border-color: #cfe0f2; }
.fb-manual { background: #fff3e0; color: #b06a0d; border-color: #f3e0c2; }
.fb-main { flex: 1; min-width: 220px; }
.fb-name { font-size: 13.5px; font-weight: 700; color: var(--text); }
.fb-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.fb-warn { font-size: 12px; color: #b06a0d; margin-top: 5px; line-height: 1.6; }
.fb-how { flex: none; }
.fb-how summary {
  cursor: pointer; list-style: none; font-size: 12.5px; font-weight: 700; color: var(--brand);
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-soft);
  transition: .15s; user-select: none;
}
.fb-how summary::-webkit-details-marker { display: none; }
.fb-how summary::after { content: " ▾"; color: var(--muted); }
.fb-how[open] summary::after { content: " ▴"; }
.fb-how summary:hover { border-color: var(--brand); background: var(--brand-soft); }
.fb-how-body { flex-basis: 100%; margin-top: 12px; border-top: 1px dashed var(--border); padding-top: 12px; }
.fb-how[open] { flex-basis: 100%; }
.fb-how-row { display: flex; gap: 12px; padding: 7px 0; align-items: flex-start; }
.fb-how-k {
  flex: none; width: 108px; font-size: 12px; font-weight: 800; color: var(--brand-ink);
  background: var(--brand-soft); border-radius: 6px; padding: 3px 8px; text-align: center;
}
.fb-how-v { font-size: 12.5px; color: var(--text-2); line-height: 1.75; }

.channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.chip-pill { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: #fff; }
.chip-pill .cp-name { font-weight: 800; font-size: 14px; }
.chip-pill .cp-n { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.chip-pill .cp-desc { font-size: 12px; color: var(--text-2); margin-top: 7px; line-height: 1.5; }

.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.art-card { display: flex; gap: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); transition: .15s; }
.art-card:hover { box-shadow: var(--shadow-h); }
.art-date { flex: none; width: 52px; text-align: center; border-right: 1px solid var(--border-2); padding-right: 12px; }
.art-day { font-size: 24px; font-weight: 900; line-height: 1; }
.art-month { font-size: 11px; color: var(--muted); margin-top: 3px; }
.art-week { font-size: 11px; color: var(--brand); font-weight: 700; margin-top: 2px; }
.art-body { flex: 1; min-width: 0; }
.art-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 7px; }
.col-pill { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.art-title { font-size: 15.5px; font-weight: 800; line-height: 1.45; }
.art-digest { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.65; }
.art-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.art-tag { font-size: 11.5px; color: var(--muted); }
/* 已挂原文链接的条目：整卡可点，跳转公众号 / 星球原文 */
.art-card.art-linked { cursor: pointer; }
.art-card.art-linked:hover { border-color: var(--brand); }
.art-card.art-linked:hover .art-title { color: var(--brand); }
.art-go { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.art-stat { font-size: 11.5px; color: var(--muted); }

/* 状态标签 */
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--text-2); }
.tag-ok { background: #e6f4ec; color: #1f7a45; }
.tag-primary { background: var(--brand-soft); color: var(--brand-ink); }
.tag-warn { background: #fff3e0; color: #b06a0d; }

/* ============================================================
 *  模块四 · 个人分享
 * ============================================================ */
.share-about { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow); }
.share-av { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center; flex: none; }
.share-about h3 { font-size: 18px; font-weight: 900; }
.share-about .bio { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.8; }
.share-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.share-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.share-link { display: block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; transition: .15s; }
.share-link:hover { border-color: var(--brand); background: var(--brand-soft); }
.share-link .sl-name { font-weight: 800; font-size: 13.5px; }
.share-link .sl-note { font-size: 12px; color: var(--text-2); margin-top: 3px; }

.post-list { display: grid; gap: 12px; }
.post-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; display: flex; gap: 16px; align-items: flex-start; transition: .15s; }
.post-item:hover { box-shadow: var(--shadow-h); }
.post-date { flex: none; width: 46px; text-align: center; }
.post-date .pd-d { font-size: 20px; font-weight: 900; }
.post-date .pd-m { font-size: 11px; color: var(--muted); }
.post-main { flex: 1; }
.post-main h4 { font-size: 15.5px; font-weight: 800; }
.post-main p { font-size: 13.5px; color: var(--text-2); margin-top: 5px; line-height: 1.65; }
.post-ptag { font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 9px; border-radius: 999px; flex: none; }

.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); transition: .15s; }
.res-card:hover { box-shadow: var(--shadow-h); border-color: var(--brand); }
.res-card h4 { font-size: 15.5px; font-weight: 800; }
.res-card p { font-size: 13px; color: var(--text-2); margin-top: 7px; line-height: 1.65; min-height: 42px; }
.res-cta { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--brand); }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 34px 0 26px; }
.footer-inner { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer h5 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.footer p { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.footer ul { list-style: none; display: grid; gap: 7px; }
.footer ul a { font-size: 13px; color: var(--text-2); }
.footer ul a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
/* 备案信息（工信部 + 公安）——号码在 assets/data/site.js 的 beian 里填，留空自动隐藏 */
.footer-beian { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.footer-beian a { color: var(--muted); transition: .15s; }
.footer-beian a:hover { color: var(--brand); }
.footer-beian .fb-sep { opacity: .5; }

/* ============================================================
 *  v3 多页版：首页入口卡片 + 子页页头
 * ============================================================ */

/* 首页 Hero：居中式排版（参考 LightVela —— 大标题 / 克制小标签 / 黑色胶囊 CTA） */
.hero--home { text-align: center; }
.hero--home .hero-inner { padding: 74px 22px 58px; max-width: 900px; }
.hero--home .hero-badge {
  display: inline-block; margin-bottom: 18px; padding: 0;
  background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; letter-spacing: .4px;
}
.hero--home h1 { font-size: 46px; line-height: 1.16; letter-spacing: -1px; }
.hero--home .lead { margin: 18px auto 0; max-width: 640px; font-size: 16.5px; }

/* 首页主 CTA：黑色胶囊（视觉焦点），与品牌蓝的高亮词形成对比 */
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 30px; padding: 13px 22px 13px 26px;
  background: #111418; color: #fff; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 6px 18px rgba(17, 20, 24, .16); transition: .18s;
}
.hero-cta:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(17, 20, 24, .22); }
.hero-cta .cta-ico {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .18); display: grid; place-items: center;
  font-size: 12px; line-height: 1; transition: .18s;
}
.hero-cta:hover .cta-ico { background: rgba(255, 255, 255, .3); transform: translateX(2px); }

/* 标题统一收紧字距（现代无衬线观感） */
.hero h1, .sec-title, .entry-title { letter-spacing: -.02em; }

/* 首页模块入口（黑白极简：白底细边，悬停描黑 + 轻浮起，参考 LightVela 的克制感） */
.entries { padding: 44px 0 64px; }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entry-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 15px;
  padding: 24px; background: #fff;
  border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.entry-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(17, 20, 24, .09);
}
/* 主推卡片：横跨整行，用深色图标做唯一重色焦点（不再用蓝色渐变底） */
.entry-card.is-primary { grid-column: 1 / -1; }

/* 开发中的模块（status: 'soon'）：虚线边，点击只提示不跳转 */
.entry-card.is-soon { cursor: pointer; border-style: dashed; background: #fcfdfe; }
.entry-card.is-soon .entry-ico { filter: grayscale(1); opacity: .55; }
.entry-card.is-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }

.entry-badge {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 11px; font-weight: 700; color: var(--warn);
  background: #fdf3e2; border: 1px solid #f2ddb8; padding: 2px 8px; border-radius: 999px;
}
.entry-tip {
  position: absolute; left: 22px; right: 22px; bottom: 12px;
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; animation: tip-in .16s ease-out;
}
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 图标：浅灰底方块；主推卡片用深色块 */
.entry-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 21px; line-height: 1;
  background: var(--surface); transition: background .18s;
}
.entry-card.is-primary .entry-ico { background: var(--ink); }
.entry-card:hover .entry-ico { background: #eceff3; }
.entry-card.is-primary:hover .entry-ico { background: #000; }

.entry-body { flex: 1; min-width: 0; }
.entry-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.entry-desc { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.65; }
.entry-meta {
  display: inline-block; margin-top: 13px; padding: 4px 10px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  color: var(--ink-2); background: var(--surface);
}
.entry-go { flex: none; align-self: center; font-size: 17px; font-weight: 800; color: #c3cad4; transition: .18s; }
.entry-card:hover .entry-go { color: var(--ink); transform: translateX(4px); }

/* 子页页头（与首页一致：收紧字距、加大留白） */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 46px 0 40px; }
.page-head .sec-kicker { margin-bottom: 9px; }
.page-head .sec-title { font-size: 34px; letter-spacing: -.02em; }
.crumb {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  font-size: 13px; font-weight: 700; color: var(--text-2); transition: .15s;
}
.crumb:hover { color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .hero h1 { font-size: 30px; }
  .g3, .g4, .mod-grid, .channels, .res-grid, .share-links { grid-template-columns: repeat(2, 1fr); }
  .id-grid { grid-template-columns: repeat(2, 1fr); }
  .perm-cols, .feat-grid { grid-template-columns: 1fr; }
  .role-switch { grid-template-columns: repeat(2, 1fr); }
  .role-phones { grid-template-columns: repeat(2, 1fr); }
  .nav-switcher { max-width: 280px; padding: 3px 4px; }
  .nav-switcher a { padding: 7px 12px; font-size: 13.5px; }
  .search-drop { right: 14px; width: 340px; }
}
@media (max-width: 560px) {
  .hero-inner { padding: 44px 20px 40px; }
  .hero--home h1 { font-size: 25px; }
  .entry-grid { grid-template-columns: 1fr; }
  .entry-card { padding: 20px; gap: 13px; }
  .entry-ico { width: 40px; height: 40px; font-size: 19px; }
  .page-head { padding: 28px 0 26px; }
  .page-head .sec-title { font-size: 23px; }
  .sec-title { font-size: 22px; }
  .g2, .g3, .g4, .mod-grid, .channels, .res-grid, .share-links, .art-grid, .id-grid { grid-template-columns: 1fr; }
  .role-switch { grid-template-columns: repeat(2, 1fr); }
  .role-phones { grid-template-columns: 1fr; }
  .phone-card { max-width: 280px; margin: 0 auto; }
  .nav-inner { gap: 10px; padding: 0 14px; }
  .nav-switcher { max-width: calc(100vw - 150px); padding: 3px 3px; gap: 2px; }
  .nav-switcher a { padding: 6px 10px; font-size: 13px; }
  .nav-search-btn { width: 36px; height: 36px; font-size: 15px; }
  .search-drop { right: 10px; width: calc(100vw - 20px); }
  .brand-sub { display: none; }
  .feed-bar { padding: 12px 13px; gap: 10px; }
  .fb-how { width: 100%; }
  .fb-how summary { display: block; text-align: center; }
  .fb-how-row { flex-direction: column; gap: 4px; }
  .fb-how-k { width: auto; align-self: flex-start; }
  .art-go { margin-left: 0; }
}

/* ---------- 手机截图放大预览层（lightbox） ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20, 28, 40, .62); backdrop-filter: blur(2px); }
.lightbox-panel { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; max-height: 92vh; animation: lb-in .18s ease-out; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.lightbox-close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: none; background: #fff; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-h); z-index: 2; }
.lightbox-close:hover { color: var(--brand); }
.lightbox-phone { background: #0d1117; border-radius: 30px; padding: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); max-height: 80vh; }
.lightbox-phone img { display: block; max-height: 80vh; width: auto; border-radius: 20px; }
.lightbox-caption { margin-top: 14px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .5px; }

/* 手机卡 hover 放大提示 */
.phone-card { cursor: zoom-in; }
.phone-frame::after {
  content: "🔍 点击放大";
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  background: rgba(20,28,40,.78); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; opacity: 0; transition: .15s; pointer-events: none;
}
.phone-card:hover .phone-frame::after { opacity: 1; }

/* ============================================================
 *  v3.2 · 危化品存储分类查询（hazmat）
 * ============================================================ */

/* 数据状态提示条 */
.hz-notice { border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-sm); padding: 14px 16px; background: var(--bg-soft); }
.hz-notice.is-warn { border-left-color: var(--warn); background: #fdfaf3; }
.hz-notice.is-ok { border-left-color: var(--ok); }
.hz-notice-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; }
.hz-notice-head strong { font-weight: 800; }
.hz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.hz-notice.is-ok .hz-dot { background: var(--ok); }
.hz-chip { font-size: 12px; font-weight: 700; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.hz-notice-text { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.7; }

/* 查询面板 Tab */
.hz-tabs { display: flex; gap: 6px; margin: 22px 0 16px; border-bottom: 1px solid var(--border); }
.hz-tab { appearance: none; border: none; background: transparent; cursor: pointer; padding: 10px 16px; font-size: 14.5px; font-weight: 700; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.hz-tab:hover { color: var(--text); }
.hz-tab.active { color: var(--ink); border-bottom-color: var(--ink); }
.hz-panel { display: none; }
.hz-panel.active { display: block; }

/* 搜索 */
.hz-search { margin-bottom: 16px; }
#hzKeyword { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 15px; outline: none; transition: .15s; }
#hzKeyword:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hz-hint { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hz-empty { display: block; padding: 18px; font-size: 13.5px; color: var(--text-2); background: var(--bg-soft); border: 1px dashed var(--border); border-radius: var(--radius-sm); line-height: 1.75; }

/* 品种卡片 */
.hz-list { display: grid; gap: 12px; }
.hz-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.hz-item-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hz-item-head h4 { font-size: 16.5px; font-weight: 800; }
.hz-tag { font-size: 12px; font-weight: 700; color: var(--tc); background: var(--bg-soft); border: 1px solid var(--border); padding: 2px 9px; border-radius: 999px; }
.hz-item-alias { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.hz-kv { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.hz-kv-row { display: flex; gap: 8px; font-size: 13px; }
.hz-kv-k { color: var(--muted); flex: none; min-width: 88px; }
.hz-kv-v { color: var(--text); font-weight: 600; }
.hz-block { margin-top: 12px; }
.hz-block h5 { font-size: 13px; font-weight: 800; color: var(--text-2); margin-bottom: 6px; }
.hz-block ul { margin-left: 18px; font-size: 13px; color: var(--text-2); line-height: 1.75; }
.hz-block p { font-size: 13px; color: var(--text-2); }
.hz-item-src { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); font-size: 12px; color: var(--muted); }

/* 危险性类别 */
.hz-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hz-class { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--hc); border-radius: var(--radius-sm); padding: 12px 14px; }
.hz-class-code { font-size: 13px; font-weight: 900; color: var(--hc); min-width: 32px; }
.hz-class-name { font-size: 14px; font-weight: 700; }
.hz-class-item { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* 储存方式 */
.hz-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hz-mode { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.hz-mode-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hz-mode-name { font-size: 15.5px; font-weight: 800; color: var(--mc); }
.hz-mode-lv { font-size: 11.5px; font-weight: 700; color: var(--text-2); background: var(--bg-soft); border-radius: 999px; padding: 2px 9px; }
.hz-mode-desc { margin-top: 9px; font-size: 13px; color: var(--text-2); line-height: 1.72; }

/* 混存判断 */
.hz-compat { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.hz-field { flex: 1; min-width: 200px; }
.hz-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-bottom: 6px; }
.hz-field select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-size: 14px; outline: none; }
.hz-field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.hz-vs { font-size: 18px; font-weight: 800; color: var(--muted); padding-bottom: 10px; }
.hz-go { height: 42px; padding: 0 24px; border: none; border-radius: 9px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: .15s; }
.hz-go:hover { background: #000; }
.hz-cmp { margin-top: 16px; }
.hz-cmp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hz-cmp-a, .hz-cmp-b { font-size: 14px; font-weight: 800; color: var(--tc); background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }
.hz-cmp-x { font-size: 16px; font-weight: 800; color: var(--muted); }
.hz-cmp-none { margin-top: 12px; padding: 16px; background: #fdfaf3; border: 1px solid #f2ddb8; border-radius: var(--radius-sm); }
.hz-cmp-none strong { font-size: 14.5px; color: var(--warn); }
.hz-cmp-none p { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.75; }
.hz-cmp-result { margin-top: 12px; padding: 18px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--rc); border-radius: var(--radius-sm); }
.hz-rc-name { font-size: 18px; font-weight: 900; color: var(--rc); }
.hz-rc-desc { margin-top: 8px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.hz-rc-src { margin-top: 12px; font-size: 12px; color: var(--muted); }

/* 数据来源与免责声明 */
.hz-foot-box { margin-top: 34px; padding: 20px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.hz-foot-box h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.hz-std { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; }
.hz-std li { font-size: 13px; color: var(--text-2); }
.hz-std li span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.hz-disclaimer { font-size: 12.5px; color: var(--text-2); line-height: 1.8; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }

@media (max-width: 860px) {
  .hz-classes, .hz-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hz-classes, .hz-modes { grid-template-columns: 1fr; }
  .hz-kv { grid-template-columns: 1fr; }
  .hz-compat { flex-direction: column; align-items: stretch; }
  .hz-vs { display: none; }
  .hz-go { width: 100%; }
}
