/* ============================================================
   毕昇酒店经 · 设计令牌 v14.0（深墨宋墨默认主题）
   全站统一设计系统 —— 所有工程师/机器人必须遵守，不得另起配色
   ============================================================ */
:root {
  /* v14.0 深墨宋墨：深墨青绿底 + 亮宋墨青绿强调 + 米白正文 */
  --ink-900: #4A9080;      /* 亮宋墨青绿强调（按钮/链接/hover，深底上清晰） */
  --ink-800: #3D7D6F;
  --ink-700: #5BA090;      /* hover 亮一档 */
  --ink-600: #6CB0A0;
  --gold-500: #C9AC6A;     /* 暗金：仅极少量线/印章周边点缀 */
  --gold-400: #D4B87A;
  --gold-300: #CDB278;
  --gold-100: #EFE3C6;
  /* 宋式辅助色 */
  --celadon: #7FA8A0;      /* 汝窑天青 */
  --celadon-deep: #5E8A82;
  --celadon-bg: rgba(127,168,160,.14);
  --cinnabar: #B73A2E;     /* 朱砂红，仅小面积印章点缀 */
  --ink-mountain: #709088;  /* 线描山水/边框（灰青） */
  --ink-gray: #8FA8A0;      /* 灰青：次级按钮/边框文字 */

  /* 中性色（深墨宋墨底）—— 文字对比度满足 WCAG AA */
  --paper: #1B3A32;        /* 深墨青绿主背景（非纯黑，带青底调） */
  --paper-2: #1F4038;      /* 稍亮一档深墨 */
  --card: #24443C;         /* 深墨卡片 */
  --line: #2E4E46;         /* 深墨细边框（1px） */
  --line-2: #3A5C53;       /* 中细边 */
  /* 墨色文字四档：标题 / 正文 / 说明 / 辅助 */
  --ink-title: #F0EBE0;    /* 标题米白偏暖 */
  --text-1: #F0EBE0;       /* 正文米白主色 */
  --text-2: #E0DACC;       /* 卡片正文 */
  --text-3: #8FA8A0;       /* 说明 / 副标题 / 元信息（灰青） */
  --text-4: #748B84;       /* 辅助 */

  /* 功能色（深底上调亮，配半透明底） */
  --green: #4CAF7D;
  --green-bg: rgba(76,175,125,.16);
  --red: #E06B5E;
  --red-bg: rgba(224,107,94,.16);
  --amber: #D4A94A;
  --amber-bg: rgba(212,169,74,.16);
  --blue: #6BA3D6;
  --blue-bg: rgba(107,163,214,.16);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;

  /* 尺寸 */
  --header-h: 64px;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1240px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.25);
  --shadow-md: 0 6px 24px rgba(0,0,0,.32);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.40);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  /* v16.0 新墨绿主底 #1B3A32：极淡宣纸颗粒(feTurbulence≈.022) + 墨青径向透气 + 自上而下深墨渐变 */
  background-color: #1B3A32;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E"),
    radial-gradient(900px 520px at 50% -10%, rgba(74,144,128,.10), transparent 60%),
    linear-gradient(180deg, #1B3A32 0%, #142E28 100%);
  background-attachment: fixed, fixed, fixed;
  color: var(--text-1);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; object-fit: cover; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.30); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

/* 圆形头像不套通用圆角与阴影，保持自身造型 */
.brand-mark, .bc-item .bc-avatar { box-shadow: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.3; color: var(--ink-title); }
h1,h2 { font-weight: 900; letter-spacing: .05em; }
h3,h4 { font-weight: 600; }
.serif { font-family: var(--font-serif); }

/* ---------- 通用工具 ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 400; letter-spacing: .18em;
  color: var(--ink-mountain); text-transform: uppercase;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--ink-mountain); }

/* 标题下 60px 短线（宋式题跋感，灰青线 + 朱砂小点） */
.title-rule {
  display: block; width: 60px; height: 1px; margin: 18px 0 0;
  background: linear-gradient(90deg, var(--ink-mountain), rgba(110,138,133,.35));
  position: relative;
}
.title-rule::after {
  content: ""; position: absolute; left: 0; top: -1.5px;
  width: 5px; height: 4px; background: var(--cinnabar); border-radius: 1px;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: all .2s;
}
/* 主按钮：亮宋墨青绿底白字 */
.btn-primary { background: var(--ink-900); color: #fff; }
.btn-primary:hover { background: var(--ink-700); }
.btn-gold {
  background: var(--ink-900);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 2px 10px rgba(74,144,128,.30);
}
.btn-gold:hover {
  background: var(--ink-700);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 5px 16px rgba(74,144,128,.40);
  transform: translateY(-1px);
}
/* 次按钮：透明底米白边米白字 */
.btn-ghost { background: transparent; color: var(--text-1); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 600; background: rgba(74,144,128,.18); color: #A8D0C4;
}
.tag-blue { background: var(--blue-bg); color: var(--blue); }
.tag-green { background: var(--green-bg); color: var(--green); }
.tag-red { background: var(--red-bg); color: var(--red); }
.tag-amber { background: var(--amber-bg); color: var(--amber); }

/* 状态徽章 */
.badge { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; padding:3px 10px; border-radius:999px; }
.badge::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }
.badge-ok { color: var(--green); background: var(--green-bg); }
.badge-warn { color: var(--amber); background: var(--amber-bg); }
.badge-bad { color: var(--red); background: var(--red-bg); }

/* ---------- 顶部导航（深墨半透明毛玻璃，米白文字） ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* 深墨半透明：近实深墨底 + blur(12px) 毛玻璃 */
  background: rgba(27,58,50,.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
/* 品牌名 + 朱砂小印章 同行 */
.brand-name-row { display: flex; align-items: center; gap: 9px; }
.brand-seal { margin-top: 1px; flex-shrink: 0; }
/* 圆形品牌头像：圆形裁剪 + 亮宋墨青绿细描边 */
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; display: block;
  border: 1.5px solid rgba(74,144,128,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.30);
}
.brand-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--ink-title); line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--text-3); letter-spacing: .08em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-1);
  transition: all .15s;
}
.nav-links a:hover { color: #ECF5F1; background: rgba(74,144,128,.18); }
.nav-links a.active { color: #C8E6DC; font-weight: 700; background: rgba(74,144,128,.22); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.ai-pill {
  display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px;
  background: rgba(127,168,160,.14); border: 0.5px solid rgba(127,168,160,.45);
  color: #A8D0C4; font-size:13px; font-weight:600;
}
.ai-pill .dot { width:7px;height:7px;border-radius:50%;background:var(--celadon); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.nav-icon-btn { color: var(--text-1); }
.nav-icon-btn:hover { border-color: var(--ink-900); background: rgba(74,144,128,.18); color: #ECF5F1; }

/* 汉堡按钮（桌面隐藏，≤768px 显示） */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line-2); flex-shrink: 0;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--text-1);
  border-radius: 2px; transition: transform .25s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 页脚（深墨青绿渐变 + 极淡山影光） ---------- */
.site-footer {
  background:
    radial-gradient(720px 360px at 85% -10%, rgba(74,144,128,.20), transparent 60%),
    radial-gradient(520px 300px at 8% 110%, rgba(0,0,0,.45), transparent 60%),
    linear-gradient(160deg, #224840 0%, #1B3A32 60%, #142A25 100%);
  background-color: #1B3A32; /* 渐变失效时深墨青绿实心底兜底 */
  color: #C9D8D5; margin-top: 88px;
}
.footer-top { padding: 72px 0 48px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  position: relative; }
/* 页脚顶部 1px 淡墨山影线 */
.footer-top::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156,176,172,.45) 20%, rgba(156,176,172,.45) 80%, transparent);
}
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; color: #C2D2CF; margin-top: 14px; max-width: 320px; line-height: 1.9; }
.footer-col h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; font-family: var(--font-sans); letter-spacing: .05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #C6D5D2; }
.footer-col a:hover { color: #E8F0EE; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
  display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  font-size: 13px; color: #A9BDB9; text-align: center;
}
.footer-slogan { color: #C8E6DC; font-family: var(--font-serif); font-weight: 600; letter-spacing: .08em; }
.footer-copyline { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ---------- 朱砂印章（宋式题跋点缀） ---------- */
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 2px;   /* 方角印章 */
  background: #B73A2E; color: #fff;
  font-family: var(--font-serif); font-size: 8px; font-weight: 700;
  line-height: 1.05; text-align: center; letter-spacing: 0;
  /* 印泥质感：内描边 + 印泥沉淀 + 落印投影 */
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset 0 0 5px rgba(0,0,0,.18),
    0 1px 3px rgba(183,58,46,.38);
  vertical-align: middle; padding: 2px;
}
.seal--sm { width: 20px; height: 20px; font-size: 6.5px; border-radius: 1.5px; }
.seal--lg { width: 36px; height: 36px; font-size: 11px; border-radius: 3px; }

/* ---------- 宋式卡片（深墨 + 1px 边 + 顶部 2px 亮宋墨青绿釉口） ---------- */
.card {
  background: var(--card); border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden; transition: all .28s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.20), 0 8px 24px rgba(0,0,0,.28);
  position: relative;
}
/* 卡片顶部 2px 亮宋墨青绿细边（宋式釉口） */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--ink-900); z-index: 1; pointer-events: none;
}
/* hover 时浮现极淡青绿描边（渐变模拟） */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74,144,128,.0), rgba(74,144,128,.55), rgba(74,144,128,.0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .28s ease;
}
.card:hover::after { opacity: 1; }
.card:hover {
  border-color: var(--ink-mountain);
  box-shadow: 0 4px 12px rgba(0,0,0,.30), 0 16px 40px rgba(0,0,0,.40);
  transform: translateY(-3px);
}

/* 玉质感卡片（深底版汝窑釉面） */
.jade-card {
  background: linear-gradient(145deg, #2A4C43 0%, #1F3B34 100%);
  border: 0.5px solid rgba(127,168,160,.30);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.25);
}
.jade-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 28px rgba(0,0,0,.35); transform: translateY(-2px); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
/* 响应式断点统一置于文件后半部分（980/768/640/375） */

.section { padding: 120px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-head h2 { font-size: 34px; }
.section-head h2 + .title-rule { margin-top: 16px; }
.more-link { font-size: 14px; font-weight: 600; color: var(--ink-900); }

/* ---------- 表格横向滚动容器（全站通用） ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table { min-width: 540px; }

/* ---------- Hero 右侧极淡水墨远山剪影（CSS 渐变，opacity .14） ---------- */
.hero, .ab-hero, .cat-hero, .report-hero {
  position: relative;
}
.hero::after, .ab-hero::after, .cat-hero::after, .report-hero::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 78%;
  pointer-events: none; z-index: 0; opacity: .14;
  background:
    radial-gradient(ellipse 60% 42% at 70% 90%, var(--ink-900), transparent 70%),
    radial-gradient(ellipse 48% 34% at 48% 82%, var(--ink-800), transparent 70%),
    radial-gradient(ellipse 36% 26% at 30% 76%, var(--ink-700), transparent 70%);
  filter: blur(2px);
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 90%);
          mask-image: linear-gradient(180deg, transparent 30%, #000 90%);
}

/* ============================================================
   全站响应式断点
   980px 平板横排 → 768px 导航抽屉 → 640px 手机 → 375px 小屏
   ============================================================ */

/* 平板横排：多列网格降为两列 */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* ≤768px：导航折叠为汉堡抽屉；品牌区/CTA 缩放 */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-bar { flex-wrap: wrap; height: auto; min-height: var(--header-h); row-gap: 0; padding: 10px 0; }
  .nav-toggle { display: flex; order: 3; }
  .nav-collapse { flex-basis: 100%; order: 4; display: none; }
  .nav-collapse.open { display: block; }
  .nav-links {
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 0 14px; border-top: 1px solid var(--line); margin-top: 10px;
  }
  .nav-links a { padding: 12px 10px; font-size: 16px; border-radius: 8px; }
  .ai-pill { display: none; }
  .nav-cta { gap: 8px; }
  .nav-cta-btn { padding: 8px 14px !important; font-size: 13px !important; }
  .brand-sub { display: none; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 { font-size: 26px; }
  .site-footer { margin-top: 48px; }
  .footer-bottom { gap: 8px; align-items: center; text-align: center; }
}

/* ≤640px：单列布局 */
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-brand p { max-width: none; }
  /* 文章/工具表格窄屏横向滚动（无需逐页包 .table-wrap） */
  .article-body .invest-table, .article-body .compare-table,
  .panel table.tbl, .panel table.bench, .panel table.matrix {
    display: block; width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch; white-space: nowrap;
  }
  /* 文章正文：小屏字号收紧，行宽自适应容器 */
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 21px; }
}

/* ≤375px：小屏收紧内边距、字号，避免溢出/重叠 */
@media (max-width: 375px) {
  .container { padding: 0 14px; }
  .nav-cta-btn { padding: 7px 11px !important; font-size: 12.5px !important; }
  .brand-name { font-size: 17px; }
  .section { padding: 32px 0; }
  .section-head h2 { font-size: 21px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .art-body { padding: 16px; }
  .art-title { font-size: 18px; }
}

/* 文章卡片 */
.art-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg,var(--ink-700),var(--ink-900)); background-color: var(--ink-800); position: relative; overflow:hidden; }
.art-thumb .thumb-icon { position:absolute; inset:0; display:grid; place-items:center; color: rgba(255,255,255,.4); font-size:48px; }
.art-body { padding: 32px; }
.art-meta { font-size: 12px; color: var(--text-3); margin-bottom: 8px; display:flex; gap:10px; align-items:center; }
.art-title { font-family: var(--font-serif); font-size: 19px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; color: var(--ink-title); }
.art-title a:hover { color: var(--ink-900); }
.art-summary { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ============================================================
   v7.2 宋式美学校准
   说明：index.html 内联 <style> 在 main.css 之后加载，此处一律用
   更高优先级选择器（多一层父级）覆盖，不改任何 HTML。
   ============================================================ */
/* 四大内核 / 五能力：图标圆形底 → 亮宋墨青绿实色（小色块点缀，不铺大面） */
.core-grid .core-card .core-ic,
.cap-grid .cap-cell .cap-ic {
  background: var(--ink-900);
  border-color: rgba(255,255,255,.30);
}
/* 首页大卡片统一宋式：深墨底 + 1px 边 + 顶部 2px 亮宋墨青绿釉口 */
.core-grid .core-card,
.col-grid .col-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink-900);
}
/* hover：边加深 + 顶部青绿保留（压过内联同优先级 hover） */
.core-grid .core-card:hover,
.col-grid .col-card:hover {
  border-color: var(--ink-mountain);
  border-top-color: var(--ink-900);
}

/* 页脚小尺寸圆形 IP 头像 */
.footer-brand .brand-mark { width: 32px; height: 32px; }

/* ============================================================
   渐进增强组件 v1.1（由 main.js 注入 DOM，样式统一在此维护）
   搜索图标 / RSS / 明暗切换 / 回顶部 / 阅读进度 / 自动目录 / 分享 / 评论 / 订阅 / 懒加载
   ============================================================ */

/* 顶部圆形图标按钮（搜索 / 明暗切换） */
.nav-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-2); background: var(--card);
  color: var(--text-1); font-size: 17px; line-height: 1; transition: all .15s;
}
.nav-icon-btn:hover { border-color: var(--ink-900); background: rgba(74,144,128,.18); color: #ECF5F1; }

/* 页脚 RSS */
.footer-rss {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 14px;
  font-size: 13px; color: #C7D5D2; border: 1px solid rgba(255,255,255,.18);
  padding: 4px 12px; border-radius: 999px; transition: all .15s; vertical-align: middle;
}
.footer-rss:hover { color: #142826; background: #A8D0C4; border-color: #A8D0C4; }

/* ---------- ICP 备案号（合规展示，链接工信部查询站） ---------- */
.footer-beian {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 14px;
  font-size: 13px; color: #C7D5D2; border: 1px solid rgba(255,255,255,.18);
  padding: 4px 12px; border-radius: 999px; transition: all .15s; vertical-align: middle;
}
.footer-beian:hover { color: #142826; background: #A8D0C4; border-color: #A8D0C4; }
[data-theme="light"] .footer-beian { color: #C7D0DC; }
[data-theme="light"] .footer-beian:hover { color: #1F4543; background: #C8E6DC; border-color: #C8E6DC; }

/* ---------- 阅读进度条 ---------- */
.bisheng-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--ink-900), var(--ink-600));
  z-index: 200; transition: width .1s linear;
}

/* ---------- 回到顶部 ---------- */
.bisheng-totop {
  position: fixed; right: 22px; bottom: 28px; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--ink-900); color: #fff;
  border: 1px solid rgba(255,255,255,.25); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .25s; box-shadow: var(--shadow-md);
}
.bisheng-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.bisheng-totop:hover { background: var(--ink-700); color: #fff; }

/* ---------- 文章自动目录 TOC ---------- */
.bisheng-toc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin: 0 0 28px; font-size: 14px;
}
.bisheng-toc .toc-title {
  font-family: var(--font-serif); font-weight: 700; color: var(--ink-title);
  font-size: 15px; margin-bottom: 10px;
}
.bisheng-toc .toc-title::before { content: "§"; color: var(--ink-mountain); margin-right: 6px; }
.bisheng-toc ul { list-style: none; }
.bisheng-toc a {
  display: block; padding: 6px 10px; border-left: 2px solid var(--line-2);
  color: var(--text-2); transition: all .15s; line-height: 1.4;
}
.bisheng-toc a.toc-h3 { padding-left: 26px; font-size: 13px; }
.bisheng-toc a:hover { color: var(--ink-900); }
.bisheng-toc a.active { border-left-color: var(--ink-900); color: var(--ink-900); font-weight: 600; background: rgba(74,144,128,.12); }
@media (min-width: 1280px) {
  .bisheng-toc {
    position: fixed; top: 92px; right: 24px; width: 224px; margin: 0;
    max-height: calc(100vh - 120px); overflow-y: auto;
  }
}

/* ---------- 分享栏 ---------- */
.bisheng-share {
  max-width: 820px; margin: 36px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.bisheng-share .share-label { font-size: 14px; font-weight: 600; color: var(--text-3); margin-right: 4px; }
.bisheng-share .share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); transition: all .15s;
}
.bisheng-share .share-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.bisheng-share .share-btn .ic { font-size: 15px; }

/* ---------- 评论区 ---------- */
.bisheng-comments { max-width: 820px; margin: 28px auto 0 0; }
.bisheng-comments h3 { font-size: 20px; margin-bottom: 16px; }
.bc-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bc-form .bc-row { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
/* 表单深底浅边白字 */
.bc-form input[type=text], .bc-form textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; font-family: inherit; background: var(--paper); color: var(--text-1);
}
.bc-form textarea { resize: vertical; min-height: 76px; }
.bc-form .bc-emoji { font-size: 26px; }
.bc-form .bc-submit {
  align-self: flex-end; padding: 9px 22px; border-radius: 999px;
  background: var(--ink-900); color: #fff; font-size: 14px; font-weight: 600; border: 1px solid var(--ink-900);
}
.bc-form .bc-submit:hover { background: var(--ink-700); color: #fff; }
.bc-list { margin-top: 20px; }
.bc-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.bc-item .bc-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.bc-item .bc-main { flex: 1; min-width: 0; }
.bc-item .bc-head { display: flex; align-items: baseline; gap: 10px; }
.bc-item .bc-nick { font-weight: 700; font-size: 14px; color: var(--ink-title); }
.bc-item .bc-time { font-size: 12px; color: var(--text-4); }
.bc-item .bc-text { font-size: 14.5px; color: var(--text-2); margin: 6px 0; white-space: pre-wrap; word-break: break-word; }
.bc-item .bc-actions { display: flex; gap: 14px; font-size: 12.5px; }
.bc-item .bc-actions button { background: none; color: var(--text-3); padding: 0; }
.bc-item .bc-actions button:hover { color: var(--ink-900); }
.bc-replies { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line); }
.bc-empty { font-size: 13.5px; color: var(--text-3); padding: 8px 0; }

/* ---------- 邮件订阅卡片（首页 / 关于页） ---------- */
.bisheng-newsletter { max-width: var(--maxw); margin: 0 auto 48px; padding: 0 28px; }
.bisheng-newsletter .nl-card {
  background:
    radial-gradient(520px 260px at 90% -20%, rgba(74,144,128,.25), transparent 60%),
    linear-gradient(160deg, #224840 0%, #1B3A32 60%, #142A25 100%);
  background-color: #1B3A32;
  border: 0.5px solid rgba(156,176,172,.28); border-radius: 16px;
  padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.bisheng-newsletter h3 { color: #F2F0E6; font-size: 24px; margin-bottom: 8px; font-weight: 700; }
.bisheng-newsletter p { color: #C6D5D2; font-size: 14px; line-height: 1.8; }
.bisheng-newsletter .nl-form { display: flex; gap: 10px; flex: 1; min-width: 280px; }
.bisheng-newsletter input[type=email] {
  flex: 1; border: 0.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06);
  border-radius: 999px; padding: 12px 18px; color: #fff; font-size: 14px;
}
.bisheng-newsletter input::placeholder { color: #9FB5B2; }
.bisheng-newsletter .nl-btn {
  background: #F0EBE0; color: #1B3A32; font-weight: 700;
  padding: 12px 26px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.bisheng-newsletter .nl-btn:hover { background: #E8E0D0; }
.bisheng-newsletter .nl-ok { color: #C8E6DC; font-weight: 600; font-size: 14px; }

/* ---------- Toast 轻提示 ---------- */
.bisheng-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: var(--ink-900); color: #fff; border: 1px solid rgba(255,255,255,.22);
  padding: 11px 22px; border-radius: 999px; font-size: 14px; z-index: 300;
  opacity: 0; visibility: hidden; transition: all .25s; box-shadow: var(--shadow-md);
}
.bisheng-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 768px) {
  .bisheng-newsletter .nl-card { padding: 28px 22px; }
  .bisheng-newsletter .nl-form { flex-direction: column; }
  .bisheng-newsletter .nl-btn { width: 100%; }
  .bisheng-totop { right: 16px; bottom: 20px; width: 42px; height: 42px; }
  .bisheng-comments { margin-left: auto; }
}
@media (max-width: 375px) {
  .bisheng-share { gap: 8px; }
  .bisheng-share .share-btn { padding: 7px 12px; font-size: 12.5px; }
  .nav-icon-btn { width: 34px; height: 34px; font-size: 15px; }
}

/* ---------- 导航右侧区防挤压：新增图标按钮后保证窄屏不竖排换行 ---------- */
.nav-cta { flex-shrink: 0; }
.ai-pill, .nav-cta-btn, .nav-login-link, .nav-username { white-space: nowrap; }
/* 中窄屏（769–1080）隐藏装饰性 AI 徽章，给搜索/明暗/用户区让出横向空间 */
@media (max-width: 1080px) {
  .ai-pill { display: none; }
}

/* ============================================================
   v14.0 快讯条：#2D5F5D 底白字（深墨主题下固定色，不随 --ink-900）
   ============================================================ */
.ticker {
  background: #4A9080 !important;
  border-bottom-color: rgba(255,255,255,.14) !important;
}
.ticker .ticker-label {
  background: rgba(255,255,255,.16) !important; color: #fff !important;
  border: 1px solid rgba(255,255,255,.35);
}
.ticker .ticker-items span { color: rgba(255,255,255,.88) !important; }
.ticker .ticker-items span b { color: #fff !important; }

/* ============================================================
   v14.0 浅色回退主题 [data-theme="light"]
   —— 深墨宋墨为默认；用户主动切换浅色时启用此块
   ============================================================ */
[data-theme="light"] {
  --ink-900: #2D5F5D;
  --ink-800: #244F4D;
  --ink-700: #3A706D;
  --ink-600: #488079;
  --gold-500: #8A6D3B;
  --gold-400: #B8975A;
  --gold-300: #CDB278;
  --gold-100: #EFE3C6;
  --celadon: #7FA8A0;
  --celadon-deep: #5E8A82;
  --celadon-bg: #E4ECE8;
  --cinnabar: #B73A2E;
  --ink-mountain: #8B9DAF;
  --ink-gray: #4A5568;
  --paper: #F5F0E6;
  --paper-2: #EDE4D0;
  --card: #E8E0D0;
  --line: #E0DCD5;
  --line-2: #C4C0B8;
  --ink-title: #1a1a1a;
  --text-1: #2D2D2D;
  --text-2: #3D3D3D;
  --text-3: #4A4A4A;
  --text-4: #6B6B6B;
  --green: #2E7D52;
  --green-bg: #E6F2EB;
  --red: #C0392B;
  --red-bg: #FBE9E7;
  --amber: #B8860B;
  --amber-bg: #FBF3D9;
  --blue: #2C5F8A;
  --blue-bg: #E8F0F7;
  --shadow-sm: 0 1px 3px rgba(45,95,93,.06);
  --shadow-md: 0 6px 24px rgba(45,95,93,.08);
  --shadow-lg: 0 16px 48px rgba(45,95,93,.12);
}
[data-theme="light"] body {
  background-color: #F5F0E6;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E"),
    radial-gradient(900px 520px at 50% -10%, rgba(45,95,93,.06), transparent 60%),
    linear-gradient(180deg, #F5F0E6 0%, #EFE9DC 100%);
}
[data-theme="light"] .site-header { background: rgba(255,255,255,.88); border-bottom-color: var(--line); }
[data-theme="light"] .nav-links a { color: #1a1a1a; }
[data-theme="light"] .nav-links a:hover { color: var(--ink-900); background: rgba(45,95,93,.10); }
[data-theme="light"] .nav-links a.active { color: var(--ink-900); background: rgba(45,95,93,.12); }
[data-theme="light"] .nav-toggle span { background: var(--ink-900); }
[data-theme="light"] .ai-pill { color: var(--celadon-deep); }
[data-theme="light"] .ai-pill .dot { background: var(--celadon-deep); }
[data-theme="light"] .btn-ghost { background: #fff; color: var(--ink-gray); }
[data-theme="light"] .tag { background: #ECE7DB; color: var(--ink-gray); }
[data-theme="light"] .art-thumb { background-color: var(--ink-900); }
[data-theme="light"] .jade-card {
  background: linear-gradient(145deg, #E8EDE8 0%, #D5DED8 100%);
  border: 0.5px solid rgba(127,168,160,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 16px rgba(127,168,160,.15);
}
[data-theme="light"] .card { box-shadow: 0 2px 8px rgba(45,95,93,.05), 0 8px 24px rgba(45,95,93,.07); }
[data-theme="light"] .card:hover { box-shadow: 0 4px 12px rgba(45,95,93,.07), 0 16px 40px rgba(45,95,93,.12); }
[data-theme="light"] .core-grid .core-card .core-ic,
[data-theme="light"] .cap-grid .cap-cell .cap-ic { background: #7FA8A0; }
[data-theme="light"] .footer-rss { color: #C7D0DC; }
[data-theme="light"] .footer-rss:hover { color: #1F4543; background: #C8E6DC; border-color: #C8E6DC; }
[data-theme="light"] .bisheng-newsletter .nl-card {
  background:
    radial-gradient(520px 260px at 90% -20%, rgba(72,128,121,.30), transparent 60%),
    linear-gradient(160deg, #2D5F5D 0%, #244F4D 60%, #1F4543 100%);
  background-color: #244F4D;
  border: 0.5px solid rgba(191,224,217,.40);
  box-shadow: 0 8px 28px rgba(45,95,93,.22);
}
[data-theme="light"] .bisheng-newsletter .nl-btn { background: #fff; color: var(--ink-900); }
[data-theme="light"] .bisheng-newsletter .nl-btn:hover { background: #ECF5F1; }
[data-theme="light"] .ticker { background: #4A9080 !important; }
[data-theme="light"] img { box-shadow: 0 2px 10px rgba(45,95,93,.08); }
[data-theme="light"] .brand-mark { border-color: rgba(45,95,93,.55); box-shadow: 0 2px 8px rgba(45,95,93,.18); }
[data-theme="light"] .nav-icon-btn { color: var(--ink-900); }
[data-theme="light"] .nav-icon-btn:hover { border-color: var(--ink-900); background: rgba(45,95,93,.12); color: var(--ink-900); }

/* ============================================================
   G2 视觉升级 · v17.0（深墨绿板）
   背景粒子光点 / 文章卡片 hover / 数字人对话界面 / 首页标题打字机
   全部由 main.js 注入 DOM，样式统一在此维护，不改任何 HTML
   ============================================================ */

/* ---------- 1. 背景粒子浮动光点 Canvas ---------- */
/* 负层置于 body 背景之上、正文之下；pointer-events 穿透，不影响交互 */
#bs-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; display: block;
}
/* 浅色主题下粒子压低亮度，避免过曝 */
[data-theme="light"] #bs-particles { opacity: .5; }

/* ---------- 2. 文章卡片 hover 动效 ---------- */
/* 首页文章流 .bs-item：整行轻微洗色 + 圆角，缩略图光晕 */
.bs-item {
  border-radius: 12px;
  transition: background .25s ease, box-shadow .25s ease;
}
.bs-item:hover { background: rgba(74,144,128,.06); }
.bs-item .bs-item-thumb {
  transition: transform .35s ease, border-color .3s ease, box-shadow .3s ease;
}
.bs-item:hover .bs-item-thumb {
  border-color: rgba(111,179,164,.55);
  box-shadow: 0 6px 22px rgba(74,144,128,.30);
}
.bs-item .bs-item-title { transition: color .2s ease, letter-spacing .2s ease; }
.bs-item:hover .bs-item-title { letter-spacing: .01em; }
/* 通用文章卡片 .art-thumb：hover 微光扫过（斜向高光带从左掠到右） */
.art-thumb { position: relative; }
.art-thumb::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.16), transparent);
  transform: skewX(-20deg); transition: left .65s ease; pointer-events: none;
}
.card:hover .art-thumb::after { left: 130%; }
/* 卡片 hover：顶部青绿釉口外溢一层柔和投影 */
.card { transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease; }
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.30), 0 18px 44px rgba(0,0,0,.42),
              0 0 0 1px rgba(111,179,164,.18);
}
@media (prefers-reduced-motion: reduce) {
  .art-thumb::after, .card, .bs-item, .bs-item .bs-item-thumb, .bs-item .bs-item-title { transition: none !important; }
}

/* ---------- 3. 首页标题打字机（注入 .bs-hero） ---------- */
.bs-typewriter {
  position: absolute; left: 7%; top: 54%; z-index: 3;
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(18px, 2.4vw, 28px); line-height: 1.4;
  color: #F0EBE0; letter-spacing: .06em; white-space: nowrap;
  text-shadow: 0 2px 18px rgba(0,0,0,.55), 0 0 24px rgba(168,208,196,.35);
  min-height: 1.4em; pointer-events: none;
}
.bs-typewriter::after {
  content: ""; display: inline-block; width: 2px; height: .92em; margin-left: 7px;
  background: #A8D0C4; vertical-align: -0.12em;
  box-shadow: 0 0 8px rgba(168,208,196,.7);
  animation: bsTwBlink 1.05s steps(1) infinite;
}
.bs-typewriter.done::after { animation: bsTwBlink 1.3s ease infinite; opacity: .85; }
@keyframes bsTwBlink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bs-typewriter::after { animation: none; opacity: .85; }
}
@media (max-width: 640px) {
  .bs-typewriter { left: 6%; top: 50%; font-size: 16px; white-space: normal; max-width: 80%; }
}

/* ---------- 4. 数字人对话界面（注入 .bs-chat-* 的补强，深色板） ---------- */
.bs-chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.bs-chat-row.bot { align-self: flex-start; }
.bs-chat-row.me { align-self: flex-end; flex-direction: row-reverse; }
.bs-chat-avatar {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  font-family: var(--font-serif);
}
.bs-chat-row.bot .bs-chat-avatar {
  background: linear-gradient(135deg, #1E5A48, #4A9080);
  box-shadow: 0 0 10px rgba(74,144,128,.55);
}
.bs-chat-row.me .bs-chat-avatar { background: #2A4D44; border: 1px solid rgba(168,208,196,.3); }
.bs-chat-msg { animation: bsMsgIn .26s ease; }
@keyframes bsMsgIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bs-typing { display: flex; gap: 5px; align-items: center; padding: 12px 14px !important; }
.bs-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #9FB5B2;
  animation: bsDotBounce 1.2s infinite;
}
.bs-typing span:nth-child(2) { animation-delay: .18s; }
.bs-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes bsDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-chat-msg, .bs-typing span { animation: none; }
}

/* ============================================================
   J3 视觉升级 · v18.0（深墨绿板）
   1) 首页 Hero 滚动视差   2) 文章阅读时间徽标   3) 字体预载就绪态
   4) 明暗宋式配色切换过渡  5) 页面切换过渡动画
   全部由 main.js 注入/驱动，不改动任何 HTML
   ============================================================ */

/* ---------- 1. 首页 Hero 滚动视差 ---------- */
/* 图片与远山 ::after 分层差速位移；scale 兜底防止位移露白 */
.bs-hero { overflow: hidden; }
.bs-pillbar { margin-top: -100px; position: relative; z-index: 10; }
.bs-hero img {
  width: 100%; height: auto; display: block;
}
.bs-hero::after {
  transform: translate3d(0, var(--bs-p-mtn, 0px), 0);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .bs-hero img, .bs-hero::after { transform: none !important; }
}
@media (max-width: 768px) {
  /* 窄屏降倍率，避免位移过大裁切主体 */
  .bs-hero img { transform: translate3d(0, var(--bs-p-img, 0px), 0) scale(1.1); }
}

/* ---------- 2. 文章阅读时间徽标（注入 .article-head） ---------- */
.bs-readtime {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--celadon-deep);
  background: var(--celadon-bg);
  border: 1px solid rgba(127,168,160,.35);
  border-radius: 999px;
}
[data-theme="light"] .bs-readtime { color: var(--celadon-deep); }
.bs-readtime .bs-rt-ic { font-size: 13px; line-height: 1; }

/* ---------- 3. 中文字体预载就绪态 ---------- */
/* 字体未就绪时用系统宋体兜底，就绪后切 Noto Serif SC 并淡入，避免 FOIT 闪白 */
html.fonts-loaded body {
  font-family: var(--font-sans);
}
.fonts-loaded .bs-title,
.fonts-loaded .article-head h1,
.fonts-loaded h2,
.fonts-loaded .brand-name {
  transition: color .2s ease;
}
/* 预载期不做特殊隐藏，仅标记；Google Fonts 已 font-display:swap */

/* ---------- 4. 明暗宋式配色切换过渡 ---------- */
/* 仅在切换瞬间挂 .theme-anim，对色彩/边框/阴影做统一过渡，避免全站 hover 态被拖累 */
html.theme-anim *,
html.theme-anim *::before,
html.theme-anim *::after {
  transition:
    background-color .45s ease,
    border-color .45s ease,
    color .45s ease,
    fill .45s ease,
    stroke .45s ease,
    box-shadow .45s ease !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after { transition: none !important; }
}

/* ---------- 5. 页面切换过渡动画 ---------- */
/* 进入：整体淡入上抬；离开：全屏遮罩淡出（由 JS 拦截站内跳转） */
.bs-page-fade {
  opacity: 0;
  transition: opacity .42s ease;
}
.bs-page-fade.bs-page-in {
  opacity: 1;
}
#bs-page-mask {
  position: fixed; inset: 0; z-index: 2147483646;
  background: #1B3A32; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
#bs-page-mask.show { opacity: 1; pointer-events: all; }
@media (prefers-reduced-motion: reduce) {
  .bs-page-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  #bs-page-mask { transition: none !important; }
}

/* ============================================================
   L5 品牌质感统一 · v19.0（深墨宋墨板）
   1) 字体统一：宋体标题 + 黑体正文（全站锁死，不另起字体）
   2) 卡片 hover 微交互：统一上抬/描边/投影/缩略图缩放
   3) 滚动动效：全站滚动淡入 reveal + 网格交错（main.js 驱动）
   4) 手机端最终适配：安全区/触控/间距
   5) 404 / 500 错误页美化（宋式留白 + 釉口 + 入场动效）
   说明：仅追加，不改既有规则；所有新选择器均用现有设计令牌
   ============================================================ */

/* ---------- 1. 字体统一：宋体标题 + 黑体正文 ---------- */
/* 标题体系：凡「标题/品名/数字大字/品牌名」一律宋体（衬线） */
h1, h2, h3, h4,
.art-title, .bs-card-h-a, .bs-hl-title, .bs-about-name,
.brand-name, .footer-slogan, .bs-readtime,
.section-head h2, .report-card .rc-title, .case-card .cc-title,
.kpi-card .kpi-num, .stat-cell .stat-num, .metric-box .metric-num,
.tk-card .tk-title, .bk-card .bk-title, .city-card .cc-name,
.data-card .dc-title, .art-card .ac-title {
  font-family: var(--font-serif);
  letter-spacing: .03em;
}
/* 正文/UI/标签/按钮：一律黑体（无衬线），不出现宋体误用 */
body, p, span, a, button, input, select, textarea,
.nav-links, .btn, .tag, .badge, .meta, .art-meta, .art-summary,
.kicker, .footer-col a, .footer-quicklinks, .bs-item, .bs-hl-sum,
.bs-about-stats, .panel-body, .cl-item, .tl-item, .faq-item,
.chip, .field label, .bc-text, .share-btn, .toc a {
  font-family: var(--font-sans);
}
/* 强调数字大字：宋体更有「活字」韵味，但保持字重清晰 */
.bs-kpi .num, .bs-screen-kpis .kpi-num, .kpi-card .kpi-num {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: .01em;
}
/* 正文行高在移动端略收紧，避免阅读节奏过松 */
.article-body, .art-summary, .bs-hl-sum { line-height: 1.9; }

/* ---------- 2. 卡片 hover 微交互（全站统一） ---------- */
/* 通用卡片：上抬 3px + 釉口投影 + 青绿描边（与既有 .card 一致，扩展到各业务卡） */
.bs-card, .art-card, .report-card, .case-card, .tk-card, .bk-card,
.city-card, .data-card, .kpi-card, .side-box, .result-box,
.bs-hot-card, .bs-first-card, .bs-tool, .brand-card {
  transition: transform .28s cubic-bezier(.22,.61,.36,1),
              border-color .28s ease, box-shadow .28s ease;
  will-change: transform;
}
.bs-card:hover, .art-card:hover, .report-card:hover, .case-card:hover,
.tk-card:hover, .bk-card:hover, .city-card:hover, .data-card:hover,
.kpi-card:hover, .side-box:hover, .result-box:hover,
.bs-hot-card:hover, .bs-first-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink-mountain);
  box-shadow: 0 4px 12px rgba(0,0,0,.30), 0 18px 44px rgba(0,0,0,.42),
              0 0 0 1px rgba(111,179,164,.16);
}
/* 工具砖：hover 图标微放大 + 底色微亮（已有 .bs-tool .ic scale，此处统一力度） */
.bs-tool { border: 1px solid var(--line); }
.bs-tool:hover {
  transform: translateY(-3px);
  border-color: var(--ink-900);
  box-shadow: 0 10px 26px rgba(0,0,0,.38), 0 0 0 1px rgba(111,179,164,.20);
}
/* 列表行/条目：hover 整行洗色 + 轻微右移箭头感 */
.bs-item, .side-item, .cl-item, .tl-item, .faq-item, .inv-item, .wk-item {
  transition: background .22s ease, transform .22s ease;
}
.bs-item:hover, .side-item:hover, .cl-item:hover, .tl-item:hover,
.faq-item:hover, .inv-item:hover, .wk-item:hover {
  background: rgba(74,144,128,.06);
}
/* 卡片内缩略图 hover 微缩放（不撑破圆角，overflow 由卡片裁剪） */
.art-card .art-thumb, .report-card .rc-thumb, .case-card .cc-thumb,
.tk-card .tk-thumb, .bk-card .bk-thumb, .bs-hot-card .bs-item-thumb {
  transition: transform .45s ease;
}
.art-card:hover .art-thumb, .report-card:hover .rc-thumb,
.case-card:hover .cc-thumb, .tk-card:hover .tk-thumb,
.bk-card:hover .tk-thumb, .bs-hot-card:hover .bs-item-thumb {
  transform: scale(1.04);
}
/* 标题 hover 字距微动（宋式题跋感） */
.art-card .art-title a, .report-card .rc-title, .case-card .cc-title,
.bs-hl-title, .tk-card .tk-title, .bk-card .bk-title {
  transition: color .2s ease, letter-spacing .25s ease;
}
.art-card:hover .art-title a, .bs-hot-card:hover .bs-hl-title,
.report-card:hover .rc-title, .case-card:hover .cc-title {
  color: var(--ink-900);
}
/* 浅色主题下 hover 投影翻为青绿淡影 */
[data-theme="light"] .bs-card:hover, [data-theme="light"] .art-card:hover,
[data-theme="light"] .report-card:hover, [data-theme="light"] .case-card:hover,
[data-theme="light"] .tk-card:hover, [data-theme="light"] .bk-card:hover,
[data-theme="light"] .city-card:hover, [data-theme="light"] .data-card:hover,
[data-theme="light"] .kpi-card:hover, [data-theme="light"] .bs-hot-card:hover,
[data-theme="light"] .bs-first-card:hover {
  box-shadow: 0 4px 12px rgba(45,95,93,.08), 0 16px 40px rgba(45,95,93,.14);
}
@media (prefers-reduced-motion: reduce) {
  .bs-card, .art-card, .report-card, .case-card, .tk-card, .bk-card,
  .city-card, .data-card, .kpi-card, .bs-hot-card, .bs-first-card, .bs-tool,
  .art-card .art-thumb, .bs-item, .side-item, .cl-item, .tl-item {
    transition: none !important; transform: none !important;
  }
}

/* ---------- 3. 滚动动效：全站滚动淡入 reveal（main.js 驱动） ---------- */
/* 与 index.html 内联定义一致，此处抽为全站公共规则，子页直接可用 */
.bs-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .72s cubic-bezier(.22,.61,.36,1),
              transform .72s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.bs-reveal.in { opacity: 1; transform: none; }
/* 网格交错：同行卡片按序号依次入场（main.js 自动写入 --bs-rev） */
.bs-reveal { transition-delay: var(--bs-rev, 0s); }
/* 手动档位：1~4 档交错（无需 JS 也能用于静态网格） */
.bs-reveal--d1 { transition-delay: .08s; }
.bs-reveal--d2 { transition-delay: .16s; }
.bs-reveal--d3 { transition-delay: .24s; }
.bs-reveal--d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .bs-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- 4. 手机端最终适配 ---------- */
/* 触控目标 ≥44px；表单/按钮在手机上更好点 */
@media (max-width: 768px) {
  .btn { padding: 12px 22px; }
  .share-btn, .footer-quicklinks a { min-height: 40px; }
  /* 浮窗聊天面板贴边并留安全区 */
  .bs-chat-panel { bottom: 88px; }
  .bisheng-totop { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  /* 表格/卡片在窄屏不贴边 */
  .table-wrap { margin: 0 -4px; }
}
/* 刘海屏底部安全区 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .bisheng-toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
}
/* 超窄屏（≤360）：进一步收紧大数字与标题，避免换行溢出 */
@media (max-width: 360px) {
  .section-head h2 { font-size: 20px; }
  .bs-kpi .num, .kpi-card .kpi-num { font-size: 26px; }
  .art-body { padding: 22px; }
}
/* 横屏矮高手机：压缩 section 纵向留白，避免一屏看不完一整段 */
@media (max-height: 520px) and (orientation: landscape) {
  .section { padding: 48px 0; }
}

/* ---------- 5. 404 / 500 错误页美化（宋式留白 + 釉口 + 入场动效） ---------- */
/* 错误页统一容器：与全站深墨宋墨一致，居中留白 */
.nf-wrap { position: relative; }
/* 入场动效：错误码/标题/表单依次浮入（main.js 不参与，纯 CSS 动画） */
.nf-code, .nf-title, .nf-desc, .nf-search, .nf-home, .nf-quick {
  animation: nfRise .8s cubic-bezier(.22,.61,.36,1) both;
}
.nf-code  { animation-delay: .05s; }
.nf-title { animation-delay: .18s; }
.nf-desc  { animation-delay: .30s; }
.nf-search{ animation-delay: .42s; }
.nf-home  { animation-delay: .52s; }
.nf-quick { animation-delay: .62s; }
@keyframes nfRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
/* 错误码描边字：hover 时青绿微微呼吸 */
.nf-code {
  -webkit-text-stroke: 2px var(--ink-900);
  transition: -webkit-text-stroke-color .3s ease, filter .3s ease;
}
.nf-wrap:hover .nf-code { -webkit-text-stroke-color: var(--ink-700); filter: drop-shadow(0 0 18px rgba(74,144,128,.35)); }
/* 搜索框：focus 时青绿釉边 + 柔光 */
.nf-search input { transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.nf-search input:focus {
  border-color: var(--ink-900);
  background: rgba(255,255,255,.09);
  box-shadow: 0 0 0 3px rgba(74,144,128,.18);
}
.nf-search button { transition: background .2s ease, transform .2s ease; }
.nf-search button:hover { transform: translateY(-1px); }
/* 热门直达 chip：hover 上抬 + 釉边 */
.nf-quick a { transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.nf-quick a:hover { transform: translateY(-2px); }
/* 返回首页按钮：hover 填充青绿 */
.nf-home { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.nf-home:hover { transform: translateY(-1px); }
/* 500 页脚提示条（区别于 404 的「走丢」，500 是「出故障」） */
.nf-note {
  position: relative; z-index: 1; margin-top: 30px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--amber);
  background: var(--amber-bg); border: 1px solid rgba(212,169,74,.35);
  padding: 8px 16px; border-radius: 999px;
}
/* 浅色主题下错误页文字/边框翻深（404 内联为深底硬编码，此处仅补足 500 与浮层） */
[data-theme="light"] .nf-code { -webkit-text-stroke-color: var(--ink-900); }
[data-theme="light"] .nf-search input { background: rgba(45,95,93,.06); color: var(--text-1); border-color: var(--line-2); }
[data-theme="light"] .nf-search input::placeholder { color: var(--text-4); }
@media (prefers-reduced-motion: reduce) {
  .nf-code, .nf-title, .nf-desc, .nf-search, .nf-home, .nf-quick {
    animation: none !important;
  }
}

/* ===== 列表页通用分页器（data-bs-paginate 自动生成） ===== */
.pager { display:flex; justify-content:center; align-items:center; gap:8px; margin-top:30px; flex-wrap:wrap; }
.pager button { padding:8px 14px; border-radius:8px; font-size:14px; border:1px solid var(--line); background:var(--card); color:var(--text-1); cursor:pointer; transition:all .15s; }
.pager button:hover:not([disabled]) { border-color:var(--ink-800); color:var(--ink-800); }
.pager button.active { background:var(--ink-800); color:#fff; border-color:var(--ink-800); }
.pager button[disabled] { opacity:.4; cursor:not-allowed; }

/* 分页隐藏页外条目（与分类筛选 is-hidden 共存） */
.bs-page-hidden { display:none !important; }
