/* ============================================================
   主题组件（三套：Glass 玻璃拟态 / Ink 东方雅韵 / Modern 现代简约）
   由 gen_site.py 的 shell() 作为公共构件注入到每个页面，保证全站一致。

   结构：
     A. 三套主题调色板（仅 CSS 变量，切换 data-theme 即换肤）
     B. 固定组件（util-bar/site-head/ticker/footer/to-top/tbadge 等）的主题细化
     C. 顶部主题切换器（.theme-pick 下拉）样式
   说明：全局基底在 global.css，本文件【前置】注入——纯 :root 默认板与 global.css
   的 :root 同高优先级，因后者更靠后成为无 data-theme 时的默认；带 data-theme="X"
   的规则特异性更高，总能压下基底。切勿把本文件的 :root 移到 global.css 之后。
   ============================================================ */

/* ---------- A. 三套主题调色板 ---------- */
:root, html[data-theme="glass"] {
  --paper: #eef2fa;
  --paper-2: rgba(255,255,255,.72);
  --surface: rgba(255,255,255,.5);
  --ink: #1f2430;
  --ink-2: #525a6e;
  --muted: #8b93a7;
  --line: rgba(255,255,255,.65);
  --accent: #4f6df5;
  --accent-soft: rgba(79,109,245,.14);
  --accent-2: #7fc7f5;
  --accent-border: rgba(79,109,245,.55);
  --navy: #2b3553;
  --navy-2: #3a476e;
  --hot-2: #f27eb8;
  --hot-3: #3dd6d0;
  --bg-glow: rgba(79,109,245,.10);
  --shadow: 0 18px 40px -18px rgba(60,80,160,.28), 0 6px 16px -8px rgba(60,80,160,.12);
  --serif: "Fraunces", "Noto Serif SC", Georgia, "Songti SC", serif;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
}
/* 东方雅韵（Ink）：宣纸底 · 朱砂印章 · 宋体标题 · 近直角 */
html[data-theme="ink"] {
  --paper: #f6f1e3;
  --paper-2: #efe9d8;
  --surface: #fbf8f0;
  --ink: #232019;
  --ink-2: #5b554a;
  --muted: #98907f;
  --line: #ddd5c2;
  --accent: #c23b2a;
  --accent-soft: #f4e2dc;
  --accent-2: #3e6b6e;
  --accent-border: rgba(194,59,42,.4);
  --navy: #232019;
  --navy-2: #302a22;
  --hot-2: #3e6b6e;
  --hot-3: #a06a4b;
  --bg-glow: rgba(194,59,42,.05);
  --shadow: 0 2px 0 rgba(35,32,25,.04), 0 12px 26px -20px rgba(35,32,25,.28);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --r-lg: 10px;
  --r-md: 6px;
  --r-sm: 4px;
}
/* 现代简约（Clarity）：白底 · 墨黑 · 蓝强调 */
html[data-theme="modern"] {
  --paper: #ffffff;
  --paper-2: #f1f4f9;
  --surface: #ffffff;
  --ink: #0f1115;
  --ink-2: #3d4554;
  --muted: #6b7280;
  --line: #e6e9ef;
  --accent: #2563eb;
  --accent-soft: #e8effd;
  --accent-2: #93b4f5;
  --accent-border: rgba(37,99,235,.45);
  --navy: #0f172a;
  --navy-2: #1d2b3f;
  --hot-2: #3b82f6;
  --hot-3: #60a5fa;
  --bg-glow: rgba(37,99,235,.05);
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 12px 32px -18px rgba(15,23,42,.18);
  --serif: "Fraunces", "Noto Serif SC", Georgia, "Songti SC", serif;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
}
/* 系统暗色：仅 modern 跟随；glass / ink 恒为浅色 */
@media (prefers-color-scheme: dark) {
  html[data-theme="modern"] {
    --paper: #13161d;
    --paper-2: #1a1e27;
    --surface: #1b2029;
    --ink: #e9e7e2;
    --ink-2: #c3c8d2;
    --muted: #8b93a3;
    --line: #2a3140;
    --accent: #60a5fa;
    --accent-soft: #1b2a44;
    --accent-2: #7da5e8;
    --accent-border: rgba(96,165,250,.5);
    --bg-glow: rgba(96,165,250,.08);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.6);
  }
}

/* ---------- B. 固定组件主题细化 ---------- */
/* 玻璃拟态 Glass */
html[data-theme="glass"] body {
  background:
    radial-gradient(720px 400px at 10% 6%, rgba(79,109,245,.20), transparent 62%),
    radial-gradient(640px 380px at 90% 12%, rgba(242,126,184,.18), transparent 62%),
    radial-gradient(760px 440px at 45% 100%, rgba(61,214,208,.16), transparent 62%),
    linear-gradient(135deg, #e9f0fa, #f6ebf5 50%, #e6f6f5);
  background-attachment: fixed;
}
html[data-theme="glass"] .util-bar { background: rgba(43,53,83,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="glass"] .site-head {
  background: rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,.55);
}
html[data-theme="glass"] .ticker { background: rgba(255,255,255,.4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: rgba(255,255,255,.5); }
html[data-theme="glass"] .card,
html[data-theme="glass"] .feat-item,
html[data-theme="glass"] .hl-lead,
html[data-theme="glass"] .hl-item,
html[data-theme="glass"] .aside-card,
html[data-theme="glass"] .region-tile,
html[data-theme="glass"] .tb-lead,
html[data-theme="glass"] .empty,
html[data-theme="glass"] .auth-box {
  background: rgba(255,255,255,.5);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border-color: rgba(255,255,255,.6);
}
html[data-theme="glass"] .feat-item { background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.35)); }
html[data-theme="glass"] .feat-item:hover,
html[data-theme="glass"] .region-tile:hover,
html[data-theme="glass"] .card:hover { border-color: var(--accent-border); }
html[data-theme="glass"] .sub-card {
  background: linear-gradient(135deg, rgba(43,53,83,.92), rgba(58,71,110,.88));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.25);
}
html[data-theme="glass"] .aside-sub {
  background: linear-gradient(135deg, rgba(43,53,83,.92), rgba(58,71,110,.88));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22);
}
html[data-theme="glass"] footer {
  background: rgba(31,36,48,.9);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,.12);
}
html[data-theme="glass"] .to-top { background: var(--accent); box-shadow: 0 10px 24px -10px rgba(79,109,245,.7); }
html[data-theme="glass"] .hl-item:hover { background: rgba(255,255,255,.6); }
html[data-theme="glass"] .head-actions a.rss { border-color: rgba(255,255,255,.7); }
html[data-theme="glass"] .head-actions a.sub-btn { background: var(--accent); }
html[data-theme="glass"] .head-actions a.sub-btn:hover { background: var(--navy); }
html[data-theme="glass"] .chip:hover { background: rgba(255,255,255,.55); }
html[data-theme="glass"] .acct .acct-menu { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html[data-theme="glass"] .acct .acct-menu a:hover, html[data-theme="glass"] .acct .acct-menu .menu-item:hover { background: rgba(255,255,255,.85); }

/* 东方雅韵 Ink */
html[data-theme="ink"] body {
  background:
    radial-gradient(1100px 460px at 88% -6%, rgba(195,173,128,.12), transparent 60%),
    radial-gradient(820px 400px at -6% 34%, rgba(62,107,110,.08), transparent 55%),
    var(--paper);
}
html[data-theme="ink"] .site-head {
  background: rgba(246,241,227,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
html[data-theme="ink"] .brand { letter-spacing: .06em; }
html[data-theme="ink"] .brand .dot { color: var(--accent); }
html[data-theme="ink"] .section-head { border-bottom-color: var(--ink); }
html[data-theme="ink"] .hl-lead::before { background: linear-gradient(90deg, var(--accent), transparent 70%); }
html[data-theme="ink"] .card, html[data-theme="ink"] .hl-item,
html[data-theme="ink"] .aside-card, html[data-theme="ink"] .region-tile,
html[data-theme="ink"] .tb-lead, html[data-theme="ink"] .feat-item,
html[data-theme="ink"] .empty, html[data-theme="ink"] .auth-box { box-shadow: var(--shadow); }
html[data-theme="ink"] .feat-item { background: linear-gradient(135deg, var(--surface), var(--paper-2)); }
html[data-theme="ink"] .hl-item:hover { background: var(--paper-2); }
html[data-theme="ink"] .head-actions a.rss { border-color: var(--line); }
html[data-theme="ink"] .head-actions a.sub-btn { background: var(--navy); }
html[data-theme="ink"] .head-actions a.sub-btn:hover { background: var(--accent); }
/* 印章化类型标签 */
html[data-theme="ink"] .tbadge {
  color: #fdf9ef; border-radius: 3px; letter-spacing: .12em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
html[data-theme="ink"] .tbadge.brief { background: var(--accent); }
html[data-theme="ink"] .tbadge.feature { background: #3e6b6e; }
html[data-theme="ink"] .tbadge.deep { background: var(--navy); }
html[data-theme="ink"] .card .pill { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
/* 订阅卡：墨色 + 朱砂按钮 + 卷字水印 */
html[data-theme="ink"] .sub-card { position: relative; overflow: hidden; border: 1px solid rgba(253,249,239,.08); }
html[data-theme="ink"] .sub-card::after {
  content: "卷"; position: absolute; right: 26px; top: -14px;
  font-family: var(--serif); font-size: 120px; font-weight: 700;
  color: rgba(253,249,239,.06); line-height: 1; pointer-events: none;
}
html[data-theme="ink"] .sub-form button.btn, html[data-theme="ink"] .sub-form .btn { background: var(--accent); border-color: var(--accent); }
html[data-theme="ink"] .sub-form .btn:hover { background: #9e2f21; }
html[data-theme="ink"] footer { background: var(--navy); }
html[data-theme="ink"] .to-top { background: var(--accent); }
html[data-theme="ink"] .to-top:hover { background: var(--navy); }

/* ---------- C. 顶部主题切换器 ---------- */
.theme-pick { position: relative; }
.tp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); border-radius: 999px; padding: 6px 13px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .15s ease, color .15s ease;
}
html[data-theme="glass"] .tp-btn, html[data-theme="glass"] .tp-menu { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tp-btn:hover { border-color: var(--accent); color: var(--accent); }
.tp-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; background: #9aa3b2; }
.tp-dot.glass { background: #4f6df5; }
.tp-dot.ink { background: #c23b2a; }
.tp-dot.modern { background: #2563eb; }
.tp-arrow { font-size: 10px; opacity: .6; transition: transform .18s ease; }
.theme-pick.open .tp-arrow { transform: rotate(180deg); }
.tp-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 95;
  min-width: 156px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: none;
}
.theme-pick.open .tp-menu { display: block; }
.tp-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border: 0; background: none; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; font-family: inherit; text-align: left;
  transition: background .15s ease, color .15s ease;
}
.tp-menu button:hover { background: var(--paper-2); color: var(--ink); }
.tp-menu button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tp-menu button[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: var(--accent); font-weight: 700; }
@media (max-width: 767px) {
  .tp-btn { padding: 6px 10px; font-size: 12.5px; }
  .tp-menu { min-width: 140px; }
}
/* 自托管品牌字体（Fraunces/Inter），CJK 走系统字体 */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-01.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-02.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-03.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-04.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-05.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-06.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-07.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-08.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-09.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-10.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-11.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-12.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-13.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-14.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-15.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-16.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-17.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-18.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-19.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-20.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-21.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-22.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-23.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-24.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-25.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-26.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-27.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-28.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-29.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-30.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* 自托管品牌字体（Fraunces/Inter），CJK 走系统字体 */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-01.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-02.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Fraunces-500-03.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-04.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-05.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Fraunces-600-06.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-07.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-08.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 650; font-display: swap; src: url('../fonts/Fraunces-650-09.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-10.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-11.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-12.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-13.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-14.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-15.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-400-16.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-17.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-18.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-19.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-20.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-21.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-22.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-500-23.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-24.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-25.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-26.woff2') format('woff2'); unicode-range: U+1F00-1FFF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-27.woff2') format('woff2'); unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-28.woff2') format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-29.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-600-30.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ============ 牛金金天天译站 · 门户版设计系统 v2 ============ */
:root {
  --paper: #f6f3ef;
  --paper-2: #efece6;
  --surface: #ffffff;
  --ink: #1b1f27;
  --ink-2: #3a4150;
  --muted: #6d7586;
  --line: #e4ded6;
  --accent: #b4532a;      /* 陶土橙 */
  --accent-soft: #f3e4da;
  --navy: #14202e;
  --navy-2: #1d2f42;
  --shadow: 0 1px 2px rgba(20,32,46,.04), 0 10px 30px -18px rgba(20,32,46,.25);
  --serif: "Fraunces", "Noto Serif SC", Georgia, "Songti SC", serif;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --container: 1240px;
  --aside-w: 320px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13161d;
    --paper-2: #1a1e27;
    --surface: #1b2029;
    --ink: #e9e7e2;
    --ink-2: #c3c8d2;
    --muted: #8b93a3;
    --line: #2a3140;
    --accent: #d4713f;
    --accent-soft: #3a2a20;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -18px rgba(0,0,0,.6);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(180,83,42,.06), transparent 60%),
    var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-skip-ink: auto; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip {
  position: absolute; left: -999em; top: 10px;
  background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 14px;
}
.skip:focus { left: 12px; z-index: 100; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 工具条（日期 + 地区切换） ---------- */
.util-bar {
  background: var(--navy); color: #9fb0bf; font-size: 12.5px;
}
.util-bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; gap: 16px;
}
.util-left { display: flex; gap: 14px; align-items: center; white-space: nowrap; color: #c7d3df; }
.util-left .dot-live {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80;
  display: inline-block; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
/* 工具行（站点工具：首页/档案/搜索/关于，非分类导航） */
.tool-nav { display: flex; gap: 2px; align-items: center; white-space: nowrap; }
.tool-nav a {
  color: #9fb0bf; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12.5px;
}
.tool-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ---------- 三排分类导航（地区一排 + 主题两排，全平铺，无折叠/滚动隐藏） ---------- */
.nav-rows {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-rows .wrap { padding-top: 7px; padding-bottom: 7px; }
.nav-row {
  display: flex; align-items: center; flex-wrap: nowrap;
  overflow: visible; white-space: nowrap;
  min-height: 27px;
}
.nav-row + .nav-row { margin-top: 3px; }
.footer-themes {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 3px 14px;
  align-items: start;
  justify-content: start;
}
.footer-themes p { margin: 0; line-height: 1.6; }
.nav-row__label {
  color: #7e91a2; font-size: 12.5px; margin-right: 10px;
  white-space: nowrap; flex: none; width: 2.2em;
}
.nav-row a.nav-item, .nav-row span.nav-off {
  padding: 3px 10px; border-radius: 999px; font-size: 13px; margin-right: 4px;
  white-space: nowrap;
}
.nav-row a.nav-item { color: var(--ink-2); }
.nav-row a.nav-item:hover { background: var(--paper-2); }
.nav-row a.nav-item.active { background: var(--accent); color: #fff; }
.nav-row span.nav-off { color: #9aa7b3; cursor: default; }

/* ---------- 主头部（品牌 + 操作） ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,239,.9);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { .site-head { background: rgba(19,22,29,.9); } }
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 22px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--ink); font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .2px;
  white-space: nowrap;
}
.brand .dot { color: var(--accent); }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.head-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.head-actions a.rss {
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; font-size: 13px;
}
.head-actions a.rss:hover { background: var(--accent-soft); }
.head-actions a.sub-btn {
  background: var(--navy); color: #fff; padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.head-actions a.sub-btn:hover { background: var(--navy-2); }

/* ---------- 快讯跑马灯 ---------- */
.ticker {
  border-bottom: 1px solid var(--line); background: var(--surface);
  display: flex; align-items: stretch; overflow: hidden; height: 40px;
}
.ticker .tk-label {
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; padding: 0 14px; letter-spacing: .08em; white-space: nowrap;
}
.ticker .tk-view { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker .tk-track {
  display: flex; gap: 44px; white-space: nowrap; padding-left: 24px;
  animation: ticker-scroll 36s linear infinite; will-change: transform;
}
.ticker .tk-track:hover { animation-play-state: paused; }
.ticker .tk-item { font-size: 13.5px; color: var(--ink-2); }
.ticker .tk-item a { color: inherit; }
.ticker .tk-item a:hover { color: var(--accent); }
.ticker .tk-item .tk-cat { color: var(--accent); font-weight: 600; margin-right: 6px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .ticker .tk-track { animation: none; } }

/* ---------- 面包屑 ---------- */
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { opacity: .5; }

/* ---------- 页头（频道页共用） ---------- */
.pagehead { padding: 34px 0 6px; }
.pagehead .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pagehead h1 { font-family: var(--serif); font-size: clamp(28px, 4.6vw, 42px); line-height: 1.12; margin-top: 10px; font-weight: 650; }
.pagehead .lead { color: var(--muted); font-size: 15px; max-width: 66ch; margin-top: 10px; }
.pagehead .stats { display: flex; gap: 22px; margin-top: 16px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.pagehead .stats b { color: var(--ink); font-family: var(--serif); font-size: 19px; margin-right: 4px; }

/* ---------- 门户布局：主列 + 侧栏 ---------- */
.portal { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside-w); gap: 34px; padding: 26px 0 10px; align-items: start; }
@media (max-width: 1020px) { .portal { grid-template-columns: 1fr; } }
.aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1020px) { .aside { position: static; } }
.aside-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px;
}
.aside-card h3 { font-size: 15px; font-family: var(--serif); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.aside-card h3 .more { font-size: 12px; color: var(--muted); font-family: var(--sans); font-weight: 500; }

/* 热榜 */
.hot-list { list-style: none; counter-reset: hot; }
.hot-list li { counter-increment: hot; display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.hot-list li:last-child { border-bottom: none; }
.hot-list li::before {
  content: counter(hot); flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px;
  border-radius: 6px; background: var(--paper-2); color: var(--muted);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.hot-list li:nth-child(1)::before { background: var(--accent); color: #fff; }
.hot-list li:nth-child(2)::before { background: #c9714a; color: #fff; }
.hot-list li:nth-child(3)::before { background: #d99e77; color: #fff; }
.hot-list a { color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.hot-list a:hover { color: var(--accent); }
.hot-list .hl-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- 头条区（主编精选） ---------- */
.headlines { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .headlines { grid-template-columns: 1fr; } }
.hl-lead {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hl-lead::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}
.hl-lead .kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hl-lead h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); line-height: 1.25; font-weight: 650; }
.hl-lead h2 a { color: var(--ink); }
.hl-lead h2 a:hover { color: var(--accent); }
.hl-lead p { color: var(--muted); font-size: 15px; }
.hl-lead .meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.hl-side { display: flex; flex-direction: column; }
.hl-item {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.hl-item:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.hl-item:last-child { border-bottom: none; border-radius: 0 0 var(--r-md) var(--r-md); }
.hl-item:hover { background: var(--paper-2); }
.hl-item .t { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.45; font-family: var(--serif); }
.hl-item:hover .t { color: var(--accent); }
.hl-item .m { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }

/* ---------- 编辑部精选 ---------- */
.feat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.feat-item {
  display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(135deg, var(--surface), var(--paper-2));
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 18px 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(180,83,42,.45); }
.feat-top { display: flex; align-items: center; gap: 8px; }
.feat-cat { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.feat-title { font-family: var(--serif); font-size: 17.5px; line-height: 1.45; font-weight: 640; color: var(--ink); }
.feat-item:hover .feat-title { color: var(--accent); }
.feat-meta { font-size: 12px; color: var(--muted); }

/* ---------- 区块标题 ---------- */
.section { padding: 26px 0 8px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px;
}
.section-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 650; display: flex; align-items: baseline; gap: 8px; }
.section-head h2 .en { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-family: var(--sans); font-weight: 600; }
.section-head a { font-size: 13.5px; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* ---------- 地区速览 ---------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.region-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.region-tile:hover { transform: translateY(-3px); border-color: rgba(180,83,42,.45); box-shadow: var(--shadow); }
.region-tile .rn { font-family: var(--serif); font-size: 18px; font-weight: 650; color: var(--ink); }
.region-tile .rc { font-size: 12.5px; color: var(--muted); }
.region-tile .flag { font-size: 20px; margin-bottom: 2px; }
.region-tile.off { opacity: .55; }

/* ---------- 筛选 chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 24px; }
.chip {
  padding: 6px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); color: var(--ink-2); background: transparent;
}
.chip:hover { background: var(--surface); border-color: rgba(20,32,46,.25); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip .cnt { opacity: .6; font-size: 11.5px; }
.chip.disabled { opacity: .5; pointer-events: none; }

/* 类型 tabs */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin: 6px 0 24px; }
.tabs a {
  padding: 9px 18px; font-size: 14px; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* 分页导航 */
.pager {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 30px 0 6px; padding-top: 20px; border-top: 1px solid var(--line);
}
.pager .pg {
  min-width: 34px; height: 34px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 9px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface);
}
.pager .pg:hover { border-color: var(--accent); color: var(--accent); }
.pager .pg.current { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.pager .pg.prev, .pager .pg.next { font-weight: 600; }
.pager .pg.dots { border: none; background: transparent; min-width: auto; padding: 0 2px; color: var(--muted); }
.pager .pg-info { margin-left: auto; font-size: 12.5px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 1px 2px rgba(20,32,46,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(180,83,42,.4); box-shadow: var(--shadow); }
.card .meta { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.card .pill { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--accent); border: 1px solid var(--accent-soft); background: var(--accent-soft); padding: 1px 8px; border-radius: 999px; }
.card h3 { font-family: var(--serif); font-size: 18.5px; line-height: 1.42; font-weight: 640; color: var(--ink); }
.card h3 a { color: inherit; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: 14px; }
.card .more { margin-top: auto; font-size: 13.5px; font-weight: 600; }

/* 类型徽标 */
.tbadge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; letter-spacing: .04em; }
.tbadge.brief { background: var(--accent-soft); color: var(--accent); }
.tbadge.feature { background: rgba(20,32,46,.08); color: var(--ink-2); }
.tbadge.deep { background: var(--navy); color: #fff; }

/* 横向列表条目（快讯/档案） */
.rows { display: flex; flex-direction: column; }
.row-item {
  display: flex; gap: 16px; align-items: baseline; padding: 13px 6px;
  border-bottom: 1px dashed var(--line);
}
.row-item:last-child { border-bottom: none; }
.row-item .ri-date { flex: 0 0 76px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item .ri-title { color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.5; }
.row-item .ri-title:hover { color: var(--accent); }
.row-item .ri-meta { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }

/* 主题板块（首页） */
.theme-block { margin-bottom: 8px; }
.theme-block .tb-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; }
@media (max-width: 860px) { .theme-block .tb-grid { grid-template-columns: 1fr; } }
.tb-lead {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 8px;
}
.tb-lead h3 { font-family: var(--serif); font-size: 20px; line-height: 1.4; font-weight: 640; }
.tb-lead h3 a { color: var(--ink); }
.tb-lead h3 a:hover { color: var(--accent); }
.tb-lead p { color: var(--muted); font-size: 14px; }
.tb-list { display: flex; flex-direction: column; justify-content: space-between; }
.tb-list .row-item:first-child { padding-top: 4px; }

/* ---------- 文章正文页 ---------- */
.post-wrap { max-width: 800px; margin: 0 auto 40px; }
.post-head { padding: 30px 0 6px; }

/* 排版化头图（无外链图，纯 CSS 渐变 + 分类配色） */
.post-hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  margin: 22px 0 4px; padding: 34px 30px 30px;
  background: linear-gradient(135deg, var(--navy), #1d3a55 78%);
  color: #eef2f5; box-shadow: var(--shadow);
}
.post-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(340px 220px at 88% -10%, rgba(224,178,143,.28), transparent 65%),
    radial-gradient(260px 200px at -8% 110%, rgba(180,83,42,.32), transparent 60%);
}
.post-hero::after {
  content: "❝"; position: absolute; right: 26px; top: -18px;
  font-family: var(--serif); font-size: 120px; line-height: 1;
  color: rgba(255,255,255,.07); pointer-events: none;
}
.post-hero .ph-kicker {
  position: relative; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e0b28f; font-weight: 700;
}
.post-hero .ph-title {
  position: relative; font-family: var(--serif); font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.24; margin: 14px 0 12px; font-weight: 640; color: #fff;
}
.post-hero .ph-meta {
  position: relative; display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: #b9c8d6;
}
.post-hero .ph-meta b { color: #eef2f5; font-weight: 600; }
.post-hero .ph-tag {
  font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #e0b28f; letter-spacing: .05em;
}
@media (prefers-color-scheme: dark) {
  .post-hero { background: linear-gradient(135deg, #0f1823, #16283c 78%); }
}
.post .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.post h1 { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 44px); line-height: 1.16; margin: 12px 0 16px; font-weight: 630; letter-spacing: -.01em; }
.post .byline { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13.5px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.post .provenance {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 13px 16px; margin: 24px 0; font-size: 13.5px; color: var(--ink-2);
}
.post .body { font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.post .body p { margin: 0 0 1.1em; }
.post .body h3 {
  font-family: var(--serif); font-size: 20px; line-height: 1.4;
  margin: 1.7em 0 .55em; font-weight: 650; color: var(--ink-1);
}
.post .body ul { margin: 0 0 1.1em; padding-left: 1.45em; list-style: disc; }
.post .body li { margin: 0 0 .45em; line-height: 1.8; }
.post .body blockquote {
  margin: 0 0 1.1em; padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent); color: var(--muted);
}
@media (max-width: 560px) {
  .post .body { font-size: 16px; line-height: 1.9; }
  .post .body h3 { font-size: 18px; }
}
.post-img { margin: 0 0 18px; }
.post-img img { width: 100%; height: auto; border-radius: var(--r-sm); display: block; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 0; }
.tag-row .tag-label { font-size: 12.5px; color: var(--muted); align-self: center; }
.tag {
  font-size: 12px; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); padding: 2px 11px; border-radius: 999px;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.post .post-footer { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 文章页订阅 CTA（SEO 转化优化） ---------- */
.post-subscribe-cta {
  margin: 32px 0 0; padding: 24px 26px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--surface) 0%, var(--paper-2) 100%);
  border: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.post-subscribe-cta .psc-copy { flex: 1; min-width: 240px; }
.post-subscribe-cta .psc-kicker {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 6px;
}
.post-subscribe-cta h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.post-subscribe-cta p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }
.post-subscribe-cta .btn { flex-shrink: 0; }

/* ---------- 延伸阅读分组（内链增强） ---------- */
.rel-group { margin-bottom: 22px; }
.rel-group:last-child { margin-bottom: 0; }
.rel-group h3 {
  font-size: 14.5px; font-weight: 700; color: var(--accent);
  margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--accent);
}

/* ---------- 阅读工具条（进度条 / 字号 / 分享） ---------- */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: transparent; pointer-events: none;
}
.read-progress #readbar {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #d99e77);
  transition: width .08s linear;
}
.post-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 12px 0 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.fs-tools, .share-row { display: flex; align-items: center; gap: 6px; }
.tool-label { font-size: 12px; color: var(--muted); letter-spacing: .08em; margin-right: 2px; }
.tool-btn {
  min-width: 30px; height: 30px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer; font-weight: 600;
}
.tool-btn:hover { border-color: var(--accent); color: var(--accent); }
.tool-btn.share { font-size: 12px; }
#copy-link { font-weight: 500; }

/* ---------- 订阅区块 ---------- */
.sub-card {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: center;
  background: linear-gradient(135deg, var(--navy), #1d3a55 80%);
  color: #eef2f5; border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow);
  margin: 34px 0 10px;
}
@media (max-width: 760px) { .sub-card { grid-template-columns: 1fr; } }
.sub-copy .kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #e0b28f; font-weight: 700; }
.sub-copy h2 { font-family: var(--serif); font-size: 23px; line-height: 1.35; margin: 10px 0; font-weight: 620; }
.sub-copy p { color: #c2d0dc; font-size: 14px; }
.sub-copy a { color: #f0c9a6; }
.sub-form { display: flex; flex-direction: column; gap: 10px; }
.sub-form input {
  padding: 12px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font-size: 14.5px;
}
.sub-form input::placeholder { color: #93a7b8; }
.sub-form input:focus { outline: none; border-color: var(--accent); }
.sub-form .btn { justify-content: center; background: var(--accent); border-color: var(--accent); }
.sub-form .btn:hover { background: #c96a3a; }
.sub-hint { font-size: 12px; color: #93a7b8; }
.sub-hint a { color: #c2d0dc; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* ---------- 侧栏订阅/关于小卡 ---------- */
.aside-sub {
  background: linear-gradient(135deg, var(--navy), #1d3a55); border-radius: var(--r-md);
  padding: 20px; color: #eef2f5;
}
.aside-sub p { font-size: 13px; color: #c2d0dc; margin: 6px 0 14px; }
.aside-sub a.btn { background: var(--accent); color: #fff; font-size: 13.5px; padding: 9px 16px; }

/* ---------- 档案页 ---------- */
.archive-group { margin-bottom: 26px; }
.archive-group h3 {
  font-family: var(--mono); font-size: 14px; color: var(--accent);
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.archive-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 搜索页 ---------- */
.search-box { display: flex; gap: 10px; margin: 8px 0 26px; }
.search-box input {
  flex: 1; padding: 13px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 15px;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box .btn { background: var(--navy); color: #fff; }
.search-empty { color: var(--muted); font-size: 14px; padding: 30px 0; text-align: center; }

/* ---------- 空状态 ---------- */
.empty { color: var(--muted); font-size: 14.5px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 34px; text-align: center; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; box-shadow: var(--shadow); opacity: .85;
}
.to-top:hover { opacity: 1; background: var(--accent); }

/* ---------- 页脚 ---------- */
footer { background: var(--navy); color: #9fb0bf; padding: 40px 0 30px; margin-top: 56px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .cols { grid-template-columns: 1fr; } }
footer h4 { color: #dbe4ec; font-family: var(--serif); font-size: 16px; margin-bottom: 12px; }
footer a { color: #c7d3df; }
footer a:hover { color: #fff; }
footer .f-off { color: #5d6f80; }
footer p { font-size: 13.5px; margin: 4px 0; }
footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px; font-size: 12.5px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .util-bar .wrap { height: auto; padding: 6px 16px; flex-wrap: wrap; }
  .util-left { flex-wrap: wrap; row-gap: 2px; }
  .site-head .wrap { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .wrap { padding: 0 16px; }
}
/* 移动端：三排导航换行平铺，每项永远完整可见（不折叠、不横向滚动隐藏） */
@media (max-width: 1023.98px) {
  .nav-row { flex-wrap: wrap; row-gap: 3px; }
  .nav-row a.nav-item, .nav-row span.nav-off { font-size: 12px; padding: 2px 8px; }
  .nav-row__label { font-size: 12px; }
}

/* 动效 */
.card, .btn, .region-tile, .hl-item { will-change: transform; }

/* ---------- 账户登录 / 导航账户区（认证后端） ---------- */
.acct { position: relative; display: inline-flex; align-items: center; }
.acct button.acct-btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 6px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.acct button.acct-btn:hover { background: var(--accent-2, #d99e77); }
.acct .acct-label {
  cursor: pointer; color: var(--ink-1); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.acct .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.acct .acct-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; z-index: 90;
}
.acct .acct-menu.open { display: block; }
.acct .acct-menu a, .acct .acct-menu .menu-item {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-1);
  font-size: 13.5px; text-decoration: none; background: none; border: 0; width: 100%;
  text-align: left; cursor: pointer; font-family: inherit;
}
.acct .acct-menu a:hover, .acct .acct-menu .menu-item:hover { background: var(--paper-2); }
.acct .acct-menu .menu-divider { border-top: 1px solid var(--line); margin: 6px 0; }
.acct .acct-menu .menu-email { font-size: 12px; color: var(--ink-3); padding: 6px 12px; word-break: break-all; }

/* ---------- 登录 / 注册弹窗 ---------- */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(20,32,46,.5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-overlay.open { display: flex; }
.auth-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 400px; padding: 26px; box-shadow: var(--shadow-lg, var(--shadow));
  animation: auth-in .18s ease;
}
@keyframes auth-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth-box h3 { font-family: var(--serif); margin: 0 0 4px; font-size: 21px; }
.auth-box .auth-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 18px; }
.auth-box .auth-close { float: right; background: none; border: 0; font-size: 20px; color: var(--ink-3); cursor: pointer; line-height: 1; }
.auth-box label { display: block; font-size: 13px; color: var(--ink-2); margin: 12px 0 4px; }
.auth-box input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 9px; font-size: 14px; background: var(--paper); color: var(--ink-1);
}
.auth-box input:focus { outline: none; border-color: var(--accent); }
.auth-pass { position: relative; }
.auth-pass input { padding-right: 42px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink-3);
  border-radius: 6px; line-height: 0;
}
.pw-toggle:hover { color: var(--ink-1); background: var(--bg-2, rgba(0,0,0,.05)); }
.pw-toggle svg { width: 18px; height: 18px; display: block; }
.pw-toggle .ic-hide { display: none; }
.pw-toggle.on .ic-show { display: none; }
.pw-toggle.on .ic-hide { display: block; }
.auth-box .auth-err { color: #c0392b; font-size: 13px; min-height: 18px; margin: 8px 0 2px; }
.auth-box button.auth-submit {
  width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.auth-box button.auth-submit:hover { background: var(--accent-2, #d99e77); }
.auth-box .auth-switch { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.auth-box .auth-switch a { color: var(--accent); cursor: pointer; }

/* ---------- 文章页：收藏按钮 + 评论区 ---------- */
.bm-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; color: var(--ink-2); font-family: inherit;
}
.bm-btn.on { color: #d99e00; border-color: #e6c36a; background: #fffbe6; }
.comments { margin-top: 44px; }
.comments .c-form textarea {
  width: 100%; box-sizing: border-box; min-height: 96px; padding: 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; background: var(--paper); color: var(--ink-1); resize: vertical; font-family: inherit;
}
.comments .c-form textarea:focus { outline: none; border-color: var(--accent); }
.comments .c-item { border-top: 1px solid var(--line); padding: 12px 0; }
.comments .c-item .c-meta { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.comments .c-item .c-body { font-size: 14.5px; line-height: 1.7; }
.comments .c-hint { color: var(--ink-3); font-size: 13px; }

/* ---------- 个人中心页 ---------- */
.profile-wrap { max-width: 720px; margin: 0 auto; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin-bottom: 22px; }
.profile-card h3 { font-family: var(--serif); margin: 0 0 14px; font-size: 18px; }
.profile-row { display: flex; gap: 10px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.profile-row input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: var(--paper); color: var(--ink-1); }
.profile-actions { margin-top: 16px; }
.profile-actions .btn { margin-right: 8px; }
.account-needed { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.account-needed .btn { margin-top: 18px; }
.status-flash { font-size: 13.5px; margin-top: 10px; min-height: 18px; }
.bm-list { list-style: none; padding: 0; margin: 0; }
.bm-list li { border-top: 1px solid var(--line); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.bm-list li a { color: var(--ink-1); font-size: 14.5px; line-height: 1.5; }
.bm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bm-tag { display: inline-block; font-size: 12px; color: var(--ink-2); background: #f2f2f0; border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.bm-region { color: #8a5a1f; background: #faf3e3; }
.bm-time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.bm-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bm-filter { padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--ink-1); background: var(--surface); }
.fb-form { margin: 14px 0 6px; }
.fb-form textarea { width: 100%; box-sizing: border-box; min-height: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink-1); }
.fb-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fb-row input { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; background: var(--surface); color: var(--ink-1); }
.fb-status { margin-top: 10px; font-size: 13px; min-height: 18px; }
.post-img-more { margin: 14px 0 6px; font-size: 13px; color: var(--ink-3); }
.post-img-more a { color: var(--accent, inherit); }
/* ---- 订阅偏好（个人中心） ---- */
.pref-group { margin: 12px 0; }
.pref-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pref-chips .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--surface); color: var(--ink-1); user-select: none; transition: all .15s; }
.pref-chips .chip input { position: absolute; opacity: 0; pointer-events: none; }
.pref-chips .chip.on { border-color: var(--accent, #b4532a); color: var(--accent, #b4532a);
  background: color-mix(in srgb, var(--accent, #b4532a) 10%, transparent); }