@charset "utf-8";
/* ==========================================================================
   汇正企业补贴 · 企业级视觉系统 v4（易优 CMS 适配版）
   --------------------------------------------------------------------------
   设计基调：深墨蓝骨架 + 朱红品牌强调 + 金色细节 / 紧凑栅格 / 细描边 / 组件一致
   兼容：保留易优全部分页、加载更多、搜索、标签、面包屑、单页、上下篇功能
   目录：0 重置 1 变量 2 基础 3 图标 4 头部 5 首屏 6 区块 7 精选 8 列表流
        9 侧栏 10 详情 11 归档/分页 12 单页 13 标签页 14 页脚 15 动效 16 响应式
   ========================================================================== */

/* ---------- 0. 重置（脱离旧 style.css / bootstrap 依赖） ---------- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, img, strong, b, em, i,
ul, ol, li, form, label, fieldset, input, button, table, tr, td, th,
article, aside, footer, header, nav, section, figure, figcaption, time, blockquote {
  margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline;
}
article, aside, footer, header, nav, section, figure, figcaption, time, main { display: block; }
ul, ol { list-style: none; }
table { border-collapse: collapse; border-spacing: 0; width: 100%; }
img { max-width: 100%; height: auto; }

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 品牌 */
  --brand: #D8323F;
  --brand-deep: #A81F2B;
  --brand-soft: #FCEBED;
  --gold: #C6A15B;
  --gold-soft: #F7F1E5;

  /* 墨色体系 */
  --navy: #0E1626;
  --navy-2: #16223A;
  --ink: #0F1723;
  --ink-2: #35404F;
  --ink-3: #6A7686;
  --ink-4: #9AA4B2;

  /* 面与线 */
  --white: #FFFFFF;
  --surface: #F6F8FA;
  --surface-2: #EEF2F6;
  --line: #E7EAF0;
  --line-strong: #D6DCE5;

  /* 字体 */
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
          "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* 尺寸与节奏（8px 基线） */
  --w: 1200px;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 8px;
  --sh-1: 0 1px 2px rgba(15, 23, 35, .04), 0 10px 26px -22px rgba(15, 23, 35, .30);
  --sh-2: 0 2px 6px rgba(15, 23, 35, .04), 0 24px 48px -28px rgba(15, 23, 35, .34);
  /* 卡片体系：纯阴影分层（无边框），浅底 + 三层阴影 */
  --card-bg: #FFFFFF;
  --card-bg-soft: #FCFDFE;
  --card-line: #E6EAF0;
  --sh-card:
    0 1px 2px rgba(15, 23, 35, .07),
    0 4px 10px -2px rgba(15, 23, 35, .09),
    0 18px 36px -14px rgba(15, 23, 35, .24);
  --sh-card-hover:
    0 2px 5px rgba(15, 23, 35, .08),
    0 10px 22px -4px rgba(15, 23, 35, .13),
    0 30px 58px -20px rgba(15, 23, 35, .32);
  --sh-thumb:
    0 1px 3px rgba(15, 23, 35, .10),
    0 8px 18px -10px rgba(15, 23, 35, .26);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 64px;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 15.5px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .22s var(--ease); }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
button { font-family: inherit; cursor: pointer; background: none; color: inherit; }
input, button { -webkit-appearance: none; appearance: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--ink); }
.container { max-width: var(--w); margin: 0 auto; padding: 0 32px; }
.clearfix::after { content: ""; display: table; clear: both; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 通用元信息 / 序号 */
.meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-4); }
.side-panel .en, .section-title .eyebrow, .hero-side .en { font-family: var(--mono); }

/* ---------- 3. 图标（内联 SVG 雪碧图） ---------- */
.ico {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.14em;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- 4. 头部 ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1200;
  background: linear-gradient(90deg, var(--gold), var(--brand));
  transition: width .1s linear;
}
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -26px rgba(15, 23, 35, .55); }
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 28px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.logo img { height: 34px; width: auto; max-width: 230px; object-fit: contain; }
.logo .logo-text { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .04em; color: var(--ink); line-height: 1.2; }

.site-nav { flex: 1 1 auto; min-width: 0; }
.site-nav .menu { display: flex; gap: 2px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a {
  display: block; padding: 8px 13px; border-radius: var(--r-sm);
  font-size: 14.8px; font-weight: 500; color: var(--ink-2); letter-spacing: .01em;
  transition: color .22s var(--ease), background .22s var(--ease);
  white-space: nowrap;
}
.site-nav .menu > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav .menu > li > a:hover { color: var(--ink); background: var(--surface); }
.site-nav .menu > li > a:hover::after,
.site-nav .menu > li.current > a::after,
.site-nav .menu > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.site-nav .menu > li.current > a,
.site-nav .menu > li.current-menu-ancestor > a { color: var(--brand); font-weight: 600; }

.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 4px; min-width: 148px;
  background: var(--white); border: 0; border-radius: var(--r);
  padding: 6px; box-shadow: var(--sh-card-hover); z-index: 20;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
}
.site-nav .menu > li:hover .sub-menu,
.site-nav .menu > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; }
.sub-menu a:hover { background: var(--surface); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(15, 23, 35, .04);
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .ico { width: 17px; height: 17px; }

.notice-wrap { position: relative; }
.notice-wrap.open .icon-btn { background: var(--navy); color: #fff; }
.notice-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px;
  background: var(--white); border: 0; border-radius: var(--r);
  padding: 8px; box-shadow: var(--sh-card-hover); z-index: 30;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
}
.notice-wrap.open .notice-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.notice-dropdown li { border-radius: 8px; transition: background .2s var(--ease); }
.notice-dropdown li:hover { background: var(--surface); }
.notice-dropdown a { display: flex; align-items: baseline; gap: 10px; padding: 9px 11px; }
.notice-dropdown .time { font-family: var(--mono); font-size: 11px; color: var(--ink-4); white-space: nowrap; }
.notice-dropdown strong {
  font-weight: 500; font-size: 13.5px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.notice-dropdown li:hover strong { color: var(--brand); }
.notice-more { text-align: center; padding: 8px 0 3px; border-top: 1px solid var(--line); margin-top: 4px; }
.notice-more a { display: block; font-size: 12.5px; color: var(--ink-3); }
.notice-more a:hover { color: var(--brand); }

.nav-toggle { display: none; }

/* 抽屉导航 */
.nav-mask {
  position: fixed; inset: 0; z-index: 1050; background: rgba(14, 22, 38, .42);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.nav-mask.show { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(304px, 84vw); z-index: 1100;
  background: var(--white); padding: 76px 22px 28px; overflow-y: auto;
  transform: translateX(102%); transition: transform .36s var(--ease);
  box-shadow: -24px 0 60px -34px rgba(15, 23, 35, .45);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav li a {
  display: block; padding: 14px 2px; font-size: 15.5px; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.mobile-nav li a:hover { color: var(--brand); padding-left: 6px; }
.mobile-nav .sub-menu {
  position: static; display: block; opacity: 1; visibility: visible;
  transform: none; border: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0;
}
.mobile-nav .sub-menu a { font-size: 13.5px; font-weight: 500; color: var(--ink-3); padding: 10px 2px; }
.mobile-nav-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  border: 0; border-radius: var(--r-sm); background: var(--surface);
  color: var(--ink-2); display: flex; align-items: center; justify-content: center;
}
.mobile-nav-close .ico { width: 16px; height: 16px; }

/* 搜索遮罩 */
.search-overlay {
  position: fixed; inset: 0; z-index: 1150; background: rgba(14, 22, 38, .58);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; padding-top: 21vh;
  opacity: 0; visibility: hidden; transition: opacity .32s var(--ease), visibility .32s;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-box {
  width: min(560px, 88vw); display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: var(--r); padding: 7px 7px 7px 20px;
  box-shadow: var(--sh-2); transform: translateY(-12px);
  transition: transform .32s var(--ease);
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-box .ico { width: 18px; height: 18px; color: var(--ink-4); }
.search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 15.5px; color: var(--ink); min-width: 0; padding: 10px 0;
}
.search-box input::placeholder { color: var(--ink-4); }
.search-box button {
  border: none; border-radius: var(--r-sm); background: var(--navy); color: #fff;
  padding: 10px 20px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .22s var(--ease);
}
.search-box button:hover { background: var(--brand); }
.search-hint { margin-top: 16px; font-size: 12px; letter-spacing: .16em; color: rgba(255, 255, 255, .58); }
.search-close {
  margin-top: 6px; border: none; background: none;
  color: rgba(255, 255, 255, .62); font-size: 12px; letter-spacing: .18em;
}

/* ---------- 5. 首屏 ---------- */
.hero {
  position: relative; padding: 18px 0 22px; overflow: hidden;
  background: linear-gradient(180deg, #F5F8FB 0%, #FAFCFD 58%, var(--white) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 35, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 35, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; width: 600px; height: 600px; right: -170px; top: -310px;
  background: radial-gradient(circle, rgba(216, 50, 63, .07), transparent 62%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 344px; gap: 18px; align-items: stretch; }

.hero-feature {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 326px;
  background: var(--navy); isolation: isolate; box-shadow: var(--sh-card);
}
.hero-feature .slide {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .9s var(--ease), visibility .9s, transform 6s linear;
}
.hero-feature .slide.active { opacity: 1; visibility: visible; transform: scale(1); }
.hero-feature .slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(9, 14, 24, .90) 0%, rgba(9, 14, 24, .48) 44%, rgba(9, 14, 24, .12) 76%),
    linear-gradient(to right, rgba(9, 14, 24, .42), transparent 55%);
}
.hero-feature-body { position: relative; z-index: 2; padding: 22px 26px 24px; width: 100%; color: #fff; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px; letter-spacing: .22em; color: rgba(255, 255, 255, .66);
  text-transform: uppercase; margin-bottom: 10px;
}
.hero-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.chip {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 4px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.7;
}
.hero-feature h2 {
  margin-top: 11px; font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: .005em;
  text-wrap: balance; text-shadow: 0 1px 18px rgba(9, 14, 24, .5);
}
.hero-feature h2 a { color: #fff; }
.hero-feature h2 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.hero-feature-meta {
  display: flex; align-items: center; gap: 14px; margin-top: 11px;
  font-size: 12px; color: rgba(255, 255, 255, .76);
}
.hero-feature-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-feature-meta .ico { width: 13px; height: 13px; }
.hero-dots { position: absolute; top: 20px; right: 22px; z-index: 5; display: flex; gap: 6px; }
.hero-dots button {
  width: 20px; height: 3px; padding: 0; border: none; border-radius: 2px;
  background: rgba(255, 255, 255, .4); transition: width .3s var(--ease), background .3s var(--ease);
}
.hero-dots button.active { width: 30px; background: var(--gold); }

.hero-side {
  display: flex; flex-direction: column; background: var(--card-bg);
  border: 0; border-radius: var(--r-lg);
  padding: 15px 16px 6px; box-shadow: var(--sh-card);
}
.hero-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.hero-side-head h3 {
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; gap: 9px;
}
.hero-side-head h3::before { content: ""; width: 3px; height: 14px; background: var(--brand); border-radius: 1px; }
.hero-side-head a { font-size: 12.5px; color: var(--ink-4); display: inline-flex; align-items: center; gap: 3px; }
.hero-side-head a:hover { color: var(--brand); }
.hero-side-head a .ico { width: 13px; height: 13px; }
.hero-side ol { flex: 1; display: flex; flex-direction: column; }
.hero-side li { flex: 1; display: flex; align-items: center; border-bottom: 0; }
.hero-side li:last-child { border-bottom: none; }
.hero-side li a { display: flex; align-items: center; gap: 11px; padding: 7px 2px; width: 100%; }
.hero-side .rank {
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1;
  color: var(--line-strong); min-width: 26px; transition: color .28s var(--ease);
}
.hero-side li:nth-child(1) .rank { color: var(--brand); }
.hero-side li:nth-child(2) .rank { color: var(--gold); }
.hero-side li a:hover .rank { color: var(--brand); }
.hero-side h4 {
  font-size: 13.8px; font-weight: 500; line-height: 1.6; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease), transform .22s var(--ease);
}
.hero-side li a:hover h4 { color: var(--brand); transform: translateX(3px); }

/* ---------- 6. 区块 ---------- */
.section { padding: 26px 0 0; }
.section-head {
  display: flex; align-items: flex-end; gap: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.section-title { display: flex; flex-direction: column; gap: 3px; }
.section-title .eyebrow {
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 8px;
}
.section-title .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--line-strong); }
.section-title h2 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.section-head > a, .section-head > .more {
  margin-left: auto; font-size: 12.8px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 5px; padding-bottom: 3px;
}
.section-head > a:hover { color: var(--brand); gap: 9px; }
.section-head > a .ico { width: 14px; height: 14px; }

/* ---------- 7. 编辑精选（单卡片融合） ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 2px 16px 16px; }
.feature-item {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r); overflow: hidden; background: var(--surface);
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), background .3s var(--ease);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--sh-thumb); background: var(--card-bg); }
.feature-item:active { transform: translateY(-1px) scale(.995); }
.feature-thumb { aspect-ratio: 16 / 8.8; overflow: hidden; background: var(--surface-2); }
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.feature-item:hover .feature-thumb img { transform: scale(1.05); }
.feature-body { padding: 12px 14px 14px; }
.feature-body .cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .16em; color: var(--ink-3);
}
.feature-body .cat::before { content: ""; width: 14px; height: 1px; background: var(--gold); }
.feature-body h3 {
  margin-top: 5px; font-size: 14.6px; font-weight: 600; line-height: 1.5; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease);
}
.feature-item:hover h3 { color: var(--brand); }

/* ---------- 8. 列表流（主区 + 文章卡片） ---------- */
.layout { display: grid; grid-template-columns: 1fr 318px; gap: 22px; align-items: start; padding-bottom: 34px; }
.main-col { min-width: 0; }
.panel {
  background: var(--card-bg);
  border: 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-card);
}
/* 卡片内标题行（标题融进卡片） */
.panel-head {
  display: flex; align-items: flex-end; gap: 14px;
  padding: 16px 18px 13px;
}
.panel-head > a, .panel-head > .more {
  margin-left: auto; font-size: 12.8px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 5px; padding-bottom: 3px;
}
.panel-head > a:hover { color: var(--brand); gap: 9px; }
.panel-head > a .ico { width: 14px; height: 14px; }
.panel-head .section-title h2 { font-size: 18.5px; }
.panel-foot { border-top: 1px solid var(--line); padding: 10px; text-align: center; background: var(--card-bg-soft); }

/* 条目：同时作为 ajax 加载更多的注入单元 */
.entry {
  display: grid; grid-template-columns: 34px 168px 1fr; gap: 16px;
  padding: 14px 18px 14px 16px; border-bottom: 1px solid rgba(15, 23, 35, .045);
  position: relative; background: var(--card-bg);
  transition: background .3s var(--ease), box-shadow .34s var(--ease), transform .22s var(--ease);
}
/* 悬停时左侧品牌渐变色指示条 */
.entry::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 0 2px 2px 0; opacity: .92;
  background: linear-gradient(180deg, var(--gold), var(--brand));
  transform: scaleY(0); transform-origin: center top;
  transition: transform .34s var(--ease);
}
.entry:last-child { border-bottom: none; }
.entry:hover { background: linear-gradient(90deg, #FBFDFF 0%, #F6F9FC 100%); }
.entry:hover::before, .entry:focus-within::before { transform: scaleY(1); }
.entry:active { transform: scale(.996); }
.entry-no {
  font-family: var(--mono); font-size: 12px; color: var(--ink-4);
  padding-top: 4px; letter-spacing: .04em; transition: color .26s var(--ease);
}
.entry:hover .entry-no { color: var(--brand); }
.entry-thumb {
  position: relative; border-radius: var(--r-sm); overflow: hidden;
  aspect-ratio: 16 / 10.6; background: var(--surface-2); display: block;
  box-shadow: var(--sh-thumb);
  transition: box-shadow .34s var(--ease);
}
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.entry:hover .entry-thumb { box-shadow: 0 2px 4px rgba(15, 23, 35, .07), 0 14px 24px -14px rgba(15, 23, 35, .26); }
.entry:hover .entry-thumb img { transform: scale(1.045); }
.entry-thumb.is-empty {
  background:
    linear-gradient(135deg, #EDF1F6 0%, #F7F9FB 100%);
}
.entry-thumb.is-empty::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 35, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 35, .04) 1px, transparent 1px);
  background-size: 14px 14px;
}
.entry-body { min-width: 0; display: flex; flex-direction: column; }
.entry-cat {
  align-self: flex-start; color: var(--brand); font-size: 11.5px; font-weight: 600;
  letter-spacing: .05em; background: var(--brand-soft); padding: 1px 8px;
  border-radius: 3px; line-height: 1.8;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.entry-cat:hover { background: var(--brand); color: #fff; }
.entry-body h2 {
  margin-top: 6px; font-size: 16.4px; font-weight: 700; line-height: 1.5; letter-spacing: .005em;
}
.entry-body h2 a { transition: color .22s var(--ease); }
.entry:hover .entry-body h2 a { color: var(--brand); }
.entry-ex {
  margin-top: 5px; color: var(--ink-3); font-size: 13.2px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 52em;
}
.entry-ex:empty { display: none; }
.entry-meta {
  margin-top: auto; padding-top: 8px; display: flex; align-items: center;
  gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-4);
}
.entry-meta > span, .entry-meta > a { display: inline-flex; align-items: center; gap: 5px; }
.entry-meta .ico { width: 13px; height: 13px; }
.entry-meta a { color: var(--ink-3); }
.entry-meta a:hover { color: var(--brand); }
.entry-meta .avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

/* 首条主推：更大的图片与标题（用 :first-child 保证 ajax 追加后仍只作用于第一条） */
#index001 > .entry:first-child, #list001 > .entry:first-child {
  grid-template-columns: 34px 236px 1fr; padding: 18px 18px 18px 16px;
}
#index001 > .entry:first-child .entry-thumb,
#list001 > .entry:first-child .entry-thumb { aspect-ratio: 16 / 10.2; border-radius: var(--r); }
#index001 > .entry:first-child .entry-body h2,
#list001 > .entry:first-child .entry-body h2 { font-family: var(--serif); font-size: 18.6px; line-height: 1.45; margin-top: 7px; }
#index001 > .entry:first-child .entry-ex,
#list001 > .entry:first-child .entry-ex { font-size: 13.4px; }
.entry--lead { grid-template-columns: 34px 236px 1fr; padding: 18px 18px 18px 16px; }
.entry--lead .entry-thumb { aspect-ratio: 16 / 10.2; border-radius: var(--r); }
.entry--lead .entry-body h2 { font-family: var(--serif); font-size: 18.6px; line-height: 1.45; margin-top: 7px; }
.entry--lead .entry-ex { font-size: 13.4px; }

/* 加载更多 */
.load-more { text-align: center; padding: 24px 0 4px; }
.load-more .button, .load-more a.button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 30px; border-radius: var(--r-sm); border: 0;
  background: var(--surface); color: var(--ink-2); font-size: 13.4px; font-weight: 500;
  transition: background .26s var(--ease), color .26s var(--ease), border-color .26s var(--ease);
}
.load-more .button:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.load-more .button.is-loading { opacity: .7; pointer-events: none; }
#ajax-load-posts { margin-top: 18px; }

/* 面包屑 / 页头 */
.breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  padding: 18px 0 12px; font-size: 12.5px; color: var(--line-strong);
}
.breadcrumbs a { color: var(--ink-3); }
.breadcrumbs a:hover { color: var(--brand); }
.page-head {
  padding: 4px 0 15px; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.page-head h1 {
  font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); font-weight: 700;
  letter-spacing: .02em; line-height: 1.35;
}
.page-head .desc { color: var(--ink-3); font-size: 13.4px; padding-bottom: 3px; max-width: 40em; }
.page-head .count { font-family: var(--mono); font-size: 12px; color: var(--ink-4); }

/* 空状态 */
.empty-state {
  padding: 56px 20px; text-align: center; background: var(--white);
  border: 0; border-radius: var(--r-lg); box-shadow: var(--sh-card);
}
.empty-state .mark {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--surface); color: var(--ink-4);
  display: flex; align-items: center; justify-content: center;
}
.empty-state .mark .ico { width: 22px; height: 22px; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--ink-2); }
.empty-state p { margin-top: 6px; font-size: 13.4px; color: var(--ink-4); }
.empty-state .btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 9px 20px; border-radius: var(--r-sm); background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 500;
}
.empty-state .btn:hover { background: var(--brand); }

/* ---------- 9. 侧栏 ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.side-panel {
  background: var(--card-bg); border: 0; border-radius: var(--r);
  padding: 14px 15px 6px; box-shadow: var(--sh-card);
  transition: box-shadow .34s var(--ease);
}
.side-panel:hover { box-shadow: var(--sh-card-hover); }
.side-panel > h3 {
  font-size: 13.6px; font-weight: 700; letter-spacing: .05em;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.side-panel > h3 .en {
  font-size: 9px; color: var(--ink-4); letter-spacing: .14em; font-weight: 400;
  text-transform: uppercase;
}
.side-feature { position: relative; display: block; border-radius: var(--r-sm); overflow: hidden; margin: 9px 0 2px; }
.side-feature img { width: 100%; height: 112px; object-fit: cover; transition: transform .6s var(--ease); }
.side-feature:hover img { transform: scale(1.04); }
.side-feature::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 24, .80), transparent 62%);
}
.side-feature .t {
  position: absolute; left: 12px; right: 12px; bottom: 9px; z-index: 2; color: #fff;
  font-size: 13.2px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.side-feature time {
  position: absolute; left: 12px; top: 10px; z-index: 2;
  font-family: var(--mono); font-size: 10px; color: rgba(255, 255, 255, .8);
  background: rgba(9, 14, 24, .38); padding: 1px 6px; border-radius: 3px;
}
.side-item {
  display: flex; gap: 10px; padding: 8px 0; align-items: center;
  border-bottom: 1px solid var(--line);
}
.side-item:last-child { border-bottom: none; padding-bottom: 4px; }
.side-item .img { flex: 0 0 58px; height: 42px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: block; }
.side-item .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.side-item:hover .img img { transform: scale(1.05); }
.side-item .txt { min-width: 0; }
.side-item h4 {
  font-size: 13.2px; font-weight: 500; color: var(--ink-2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease);
}
.side-item:hover h4 { color: var(--brand); }
.side-item time { display: block; margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }

.rank-item { display: flex; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rank-item:last-child { border-bottom: none; padding-bottom: 4px; }
.rank-item > a { display: grid; grid-template-columns: 16px 1fr; column-gap: 9px; align-items: baseline; width: 100%; }
.rank-item .no { font-family: var(--mono); font-size: 12px; color: var(--line-strong); grid-row: 1 / 3; }
.rank-item:nth-child(-n+3) .no { color: var(--brand); }
.rank-item h4 {
  font-size: 13.2px; font-weight: 500; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease);
}
.rank-item a:hover h4 { color: var(--brand); }
.rank-item .clk { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-4); }

/* 栏目导航（侧栏） */
.cat-nav { padding: 4px 0 6px; }
.cat-nav li { border-bottom: 1px solid var(--line); }
.cat-nav li:last-child { border-bottom: none; }
.cat-nav > li > a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 0; font-size: 13.4px; font-weight: 500; color: var(--ink-2);
  transition: color .22s var(--ease), padding-left .22s var(--ease);
}
.cat-nav > li > a:hover { color: var(--brand); padding-left: 4px; }
.cat-nav > li > a .ico { width: 13px; height: 13px; color: var(--line-strong); }
.cat-nav .children { padding-left: 12px; }
.cat-nav .children a {
  display: block; padding: 7px 0; font-size: 12.8px; color: var(--ink-3);
}
.cat-nav .children a:hover { color: var(--brand); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 0 4px; }
.tag-cloud a {
  padding: 4px 11px; border-radius: var(--r-sm); font-size: 12px;
  color: var(--ink-3); background: var(--surface); border: 0;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.tag-cloud a:hover {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 35, .06), 0 6px 14px -10px rgba(15, 23, 35, .24);
}
/* 无标签时自动隐藏整块，避免空面板 */
.side-panel--tags:has(.tag-cloud:empty) { display: none; }

/* 社交 */
.social-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 9px 0 5px; }
.social-list a {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 0; border-radius: var(--r-sm); background: var(--surface);
  font-size: 12.5px; color: var(--ink-2);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.social-list a:hover {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 35, .06), 0 6px 14px -10px rgba(15, 23, 35, .24);
}
.social-list .ico { width: 15px; height: 15px; color: var(--brand); }
.social-qr { padding: 8px 0 4px; text-align: center; }
.social-qr img { width: 132px; height: 132px; object-fit: contain; margin: 0 auto 6px; border: 0; border-radius: var(--r-sm); padding: 5px; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 35, .06), 0 8px 18px -12px rgba(15, 23, 35, .28); }
.social-qr span { display: block; font-size: 11.5px; color: var(--ink-4); }

/* 沉浸提示卡 */
.info-card li { display: flex; gap: 8px; font-size: 12.6px; line-height: 1.75; color: var(--ink-3); padding: 7px 0; }
.info-card li .ico { color: var(--gold); margin-top: 5px; width: 13px; height: 13px; }
.info-card li:last-child { padding-bottom: 4px; }

/* 目录 TOC */
.toc-list { padding-top: 5px; }
.toc-list a {
  display: block; padding: 6px 0 6px 10px; font-size: 12.6px; line-height: 1.6;
  color: var(--ink-3); border-left: 2px solid var(--line);
  transition: color .22s var(--ease), border-color .22s var(--ease);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.toc-list a:hover { color: var(--ink); border-left-color: var(--gold); }
.toc-list a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.side-panel--toc:has(.toc-list:empty) { display: none; }

/* ---------- 10. 详情 ---------- */
.article-panel {
  background: var(--card-bg); border: 0;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-card);
}
.article-cover { position: relative; height: 264px; overflow: hidden; background: var(--surface-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 24, .30), transparent 55%);
}
.article-head { padding: 24px 34px 0; }
.article-head .kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 13px; }
.article-head .kicker .tag {
  font-size: 11px; letter-spacing: .1em; color: var(--ink-3);
  background: var(--surface); padding: 2px 9px; border-radius: 3px;
}
.article-head .kicker .tag:hover { background: var(--brand-soft); color: var(--brand); }
.article-head h1 {
  font-family: var(--serif); font-size: clamp(23px, 2.5vw, 31px); font-weight: 700;
  line-height: 1.48; letter-spacing: .005em; text-wrap: balance;
}
.article-meta {
  display: flex; align-items: center; gap: 13px; flex-wrap: wrap;
  margin-top: 16px; padding: 13px 0; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); font-size: 12.4px; color: var(--ink-4);
}
.article-meta span, .article-meta a { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .ico { width: 13px; height: 13px; }
.article-meta a { color: var(--ink-3); }
.article-meta a:hover { color: var(--brand); }
.article-meta .avatar { width: 24px; height: 24px; border-radius: 50%; }

/* 正文排版：兼容微信编辑器内联样式 */
.post-content {
  padding: 22px 34px 28px; max-width: 800px;
  font-size: 16.4px; line-height: 1.95; color: var(--ink-2);
  word-wrap: break-word; overflow-wrap: break-word;
}
.post-content > *:first-child { margin-top: 0 !important; }
.post-content p {
  margin: 1.1em 0 !important; font-size: inherit !important;
  line-height: 1.95 !important; color: inherit;
}
.post-content p:empty { display: none; }
.post-content section, .post-content div { max-width: 100%; }
.post-content strong, .post-content b { color: var(--ink); font-weight: 700; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--serif); color: var(--ink); position: relative;
  letter-spacing: .01em; scroll-margin-top: calc(var(--header-h) + 16px);
}
.post-content h2 {
  font-size: 19.5px !important; line-height: 1.55 !important;
  margin: 1.8em 0 .75em !important; padding-left: 14px !important;
}
.post-content h3 {
  font-size: 17.4px !important; line-height: 1.6 !important;
  margin: 1.6em 0 .65em !important; padding-left: 12px !important;
}
.post-content h4 { font-size: 16.4px !important; line-height: 1.65 !important; margin: 1.4em 0 .6em !important; }
.post-content h2::before, .post-content h3::before {
  content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 4px;
  border-radius: 1px; background: linear-gradient(180deg, var(--gold), var(--brand));
}
.post-content blockquote {
  margin: 1.3em 0; padding: 14px 20px; border-radius: var(--r-sm);
  background: var(--gold-soft); border-left: 3px solid var(--gold); color: var(--ink-2);
  font-size: .96em;
}
.post-content blockquote p { margin: .4em 0 !important; }
.post-content ul, .post-content ol { margin: 1em 0; padding-left: 1.3em; }
.post-content ul li { list-style: none; position: relative; padding-left: 14px; margin: .45em 0; }
.post-content ul li::before {
  content: ""; position: absolute; left: 0; top: .82em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--gold);
}
.post-content ol li { list-style: decimal; margin: .45em 0; }
.post-content img { border-radius: var(--r-sm); margin: 1.3em auto; height: auto !important; max-width: 100% !important; }
.post-content a { color: var(--brand); border-bottom: 1px solid rgba(216, 50, 63, .28); }
.post-content a:hover { border-bottom-color: var(--brand); }
.post-content table { margin: 1.3em 0; font-size: .94em; }
.post-content table td, .post-content table th {
  border: 1px solid var(--line); padding: 8px 12px; line-height: 1.7;
}
.post-content table th { background: var(--surface); font-weight: 600; color: var(--ink); }
.post-content hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }
.post-content iframe, .post-content video { max-width: 100%; border-radius: var(--r-sm); }

/* 打赏 */
.article-foot-tools {
  margin: 0 34px 22px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.article-foot-tools .tips { font-size: 12.6px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; }
.article-foot-tools .tips .ico { color: var(--gold); width: 14px; height: 14px; }
.share-row { display: flex; align-items: center; gap: 8px; }
.share-row button, .share-row a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--r-sm); border: 0; background: var(--surface);
  font-size: 12.4px; color: var(--ink-2); transition: background .2s var(--ease), color .2s var(--ease);
}
.share-row button:hover, .share-row a:hover { background: var(--navy); color: #fff; }
.share-row .ico { width: 13px; height: 13px; }

/* 上下篇 */
.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 34px 22px; }
.np-card {
  position: relative; border-radius: var(--r); min-height: 92px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 16px 18px; background: var(--card-bg); border: 0;
  box-shadow: var(--sh-card);
  transition: border-color .3s var(--ease), box-shadow .34s var(--ease), transform .3s var(--ease);
}
.np-card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-3px); }
.np-card:active { transform: translateY(-1px) scale(.997); }
.np-card .label {
  font-size: 10px; letter-spacing: .2em; color: var(--ink-4); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.np-card .label .ico { width: 12px; height: 12px; }
.np-card h4 {
  margin-top: 6px; font-size: 14.2px; font-weight: 600; line-height: 1.55; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .22s var(--ease);
}
.np-card:hover h4 { color: var(--brand); }
.np-card a::after { content: ""; position: absolute; inset: 0; }
.np-card--empty { background: var(--surface); box-shadow: none; justify-content: center; }
.np-card--empty h4 { color: var(--ink-4); font-weight: 400; }

/* 相关阅读 */
.related { padding: 0 34px 26px; }
.related-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.related-head h3 { font-family: var(--serif); font-size: 17.4px; font-weight: 700; letter-spacing: .04em; }
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.related-list a {
  display: flex; gap: 9px; align-items: baseline; padding: 11px 0;
  border-bottom: 1px solid var(--line); font-size: 13.8px; color: var(--ink-2);
}
.related-list .no { font-family: var(--mono); font-size: 11.5px; color: var(--ink-4); min-width: 16px; }
.related-list h4 {
  font-weight: 500; line-height: 1.55; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  transition: color .22s var(--ease);
}
.related-list a:hover h4 { color: var(--brand); }

/* 文章底部导航（同栏目） */
.article-actions { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 0 6px; }

/* ---------- 11. 归档 / 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 22px 0 8px; }
.pager .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 11px; border-radius: var(--r-sm);
  border: 0; background: var(--surface);
  font-size: 13px; color: var(--ink-2); font-family: var(--mono);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
a.page-numbers:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.pager .page-numbers.current {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}
.pager .page-numbers.dots { border-color: transparent; background: transparent; color: var(--ink-4); }
/* 兼容易优 pagelist 容器 */
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
nav.navigation { padding: 4px 0; }
nav.navigation .nav-links { justify-content: center; padding: 20px 0 8px; }
nav.navigation .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 11px; border-radius: var(--r-sm);
  border: 0; background: var(--surface);
  font-size: 13px; color: var(--ink-2); font-family: var(--mono);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
nav.navigation .nav-links a.page-numbers:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
nav.navigation .nav-links .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

/* 搜索页头 */
.search-head { padding: 18px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.search-head h1 { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); font-weight: 700; line-height: 1.45; }
.search-head h1 em { font-style: normal; color: var(--brand); }
.search-head .sub { margin-top: 6px; font-size: 12.8px; color: var(--ink-4); }

/* ---------- 12. 单页 ---------- */
.single-head { padding: 24px 34px 0; }
.single-head h1 { font-family: var(--serif); font-size: clamp(23px, 2.5vw, 30px); font-weight: 700; line-height: 1.45; }
.single-head .lead { margin-top: 10px; font-size: 13.6px; color: var(--ink-3); }
.single-body { padding: 18px 34px 30px; max-width: 820px; font-size: 16.2px; line-height: 1.95; color: var(--ink-2); }
.single-body p { margin: 1.05em 0 !important; font-size: inherit !important; line-height: 1.95 !important; }
.single-body h2, .single-body h3 {
  font-family: var(--serif); font-size: 19px; margin: 1.7em 0 .7em; color: var(--ink);
  padding-left: 13px; position: relative;
}
.single-body h2::before, .single-body h3::before {
  content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 4px;
  border-radius: 1px; background: linear-gradient(180deg, var(--gold), var(--brand));
}
.single-body img { border-radius: var(--r-sm); margin: 1.3em auto; height: auto !important; max-width: 100% !important; }
.single-body ul, .single-body ol { margin: 1em 0; padding-left: 1.3em; }
.single-body li { margin: .45em 0; }
.single-body a { color: var(--brand); }
.single-body table td, .single-body table th { border: 1px solid var(--line); padding: 8px 12px; }

/* ---------- 13. 标签页 ---------- */
.tag-hero { padding: 22px 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tag-hero h1 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); font-weight: 700; }
.tag-hero h1 span { color: var(--brand); }
.tag-hero .sub { margin-top: 7px; font-size: 13.2px; color: var(--ink-3); }
.tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 4px 0 8px; }
.tag-grid a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border: 0; border-radius: var(--r-sm); box-shadow: 0 1px 2px rgba(15, 23, 35, .05), 0 8px 18px -14px rgba(15, 23, 35, .22);
  background: var(--white); font-size: 13.4px; color: var(--ink-2);
  transition: border-color .22s var(--ease), background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.tag-grid a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.tag-grid .n { font-family: var(--mono); font-size: 11px; color: var(--ink-4); }
.tag-grid a:hover .n { color: var(--brand); }

/* ---------- 14. 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .64); margin-top: 36px; position: relative; }
.site-footer::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--brand) 42%, transparent 42%);
  opacity: .85;
}
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 34px; padding: 30px 0 22px; }
.footer-brand .f-logo { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.footer-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand .f-name { font-family: var(--serif); font-size: 16.5px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.footer-brand p { font-size: 12.6px; line-height: 1.95; color: rgba(255, 255, 255, .46); max-width: 34em; }
.footer-contact { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-contact a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px;
  border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.2px; color: rgba(255, 255, 255, .66);
  transition: background .22s var(--ease), border-color .22s var(--ease), color .22s var(--ease);
}
.footer-contact a:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); color: #fff; }
.footer-contact .ico { width: 13px; height: 13px; }
.footer-col h4 {
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .14em;
  margin-bottom: 13px; text-transform: uppercase;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 12.8px; color: rgba(255, 255, 255, .56); transition: color .22s var(--ease), padding-left .22s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 3px; }
.footer-qr { margin-top: 4px; }
.footer-qr img { width: 104px; height: 104px; object-fit: contain; border-radius: 6px; background: #fff; padding: 5px; }
.footer-qr span { display: block; margin-top: 6px; font-size: 11px; color: rgba(255, 255, 255, .42); }
.footer-links {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 14px 0;
  font-size: 11.8px; line-height: 2; color: rgba(255, 255, 255, .38);
}
.footer-links strong { color: rgba(255, 255, 255, .62); font-weight: 500; margin-right: 8px; }
.footer-links a { color: rgba(255, 255, 255, .5); margin-right: 12px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; font-size: 11.8px; color: rgba(255, 255, 255, .38);
}
.footer-bottom a { color: rgba(255, 255, 255, .56); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .f-nav { display: flex; flex-wrap: wrap; gap: 14px; }

/* 返回顶部 */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s var(--ease), color .2s var(--ease);
}
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--navy); color: #fff; }
.back-top .ico { width: 16px; height: 16px; }

/* ---------- 15. 动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .06s; }
.reveal[data-delay="2"] { transition-delay: .12s; }
.reveal[data-delay="3"] { transition-delay: .18s; }
.reveal[data-delay="4"] { transition-delay: .24s; }

.ripple-host { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(216, 50, 63, .16), rgba(216, 50, 63, .05) 46%, transparent 70%);
  transform: scale(0); animation: rippleAnim .6s var(--ease) forwards;
}
@keyframes rippleAnim { to { transform: scale(1); opacity: 0; } }

.click-particle { position: fixed; z-index: 2000; pointer-events: none; border-radius: 50%; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 2100; border-radius: 50%; }
.cursor-dot { width: 5px; height: 5px; background: var(--brand); }
.cursor-ring {
  width: 28px; height: 28px; border: 1px solid rgba(216, 50, 63, .36);
  transition: width .26s var(--ease), height .26s var(--ease), border-color .26s var(--ease);
}
.cursor-ring.hovering { width: 42px; height: 42px; border-color: rgba(198, 161, 91, .85); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring, .click-particle { display: none; }
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: 1fr 292px; gap: 20px; }
  .hero-grid { grid-template-columns: 1fr 320px; }
  .entry { grid-template-columns: 30px 172px 1fr; gap: 15px; }
  .entry--lead { grid-template-columns: 30px 232px 1fr; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 26px; }
}
@media (max-width: 980px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .container { padding: 0 24px; }
  .hero { padding: 16px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-feature { min-height: 316px; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-item:last-child { display: none; }
  .layout { grid-template-columns: 1fr; gap: 22px; }
  .sidebar { position: static; }
  .entry { grid-template-columns: 168px 1fr; padding: 16px; }
  .entry-no { display: none; }
  .entry--lead { grid-template-columns: 1fr; }
  .entry--lead .entry-thumb { aspect-ratio: 16 / 8.4; }
  .article-head, .post-content, .next-prev, .related, .single-head, .single-body { padding-left: 22px; padding-right: 22px; }
  .article-foot-tools { margin-left: 22px; margin-right: 22px; }
  .article-cover { height: 226px; }
  .related-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .logo img { height: 30px; }
  .hero-feature { min-height: 292px; border-radius: var(--r); }
  .hero-feature-body { padding: 20px 18px 22px; }
  .hero-side { padding: 14px 14px 6px; border-radius: var(--r); }
  .section { padding-top: 22px; }
  .section-title h2 { font-size: 18.5px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item:last-child { display: block; }
  .feature-thumb { aspect-ratio: 16 / 8.6; }
  .panel-head { padding: 14px 14px 11px; }
  .page-head h1 { font-size: 23px; }
  .entry { grid-template-columns: 1fr; gap: 10px; padding: 16px 14px; }
  .entry-thumb { aspect-ratio: 16 / 8.6; }
  .entry-body h2 { font-size: 16.2px; margin-top: 4px; }
  .entry--lead .entry-body h2 { font-size: 17.4px; }
  .entry-meta { gap: 10px; }
  .next-prev { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 21.5px; }
  .post-content { font-size: 16px; padding-top: 20px; line-height: 1.9; }
  .article-foot-tools { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; padding: 26px 0 18px; }
  .back-top { right: 14px; bottom: 14px; width: 38px; height: 38px; }
  .social-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- 17. 细节补丁 ---------- */
/* 文章序号：CSS 计数器，保证 ajax 追加后编号连续 */
#index001, #list001, .posts-con { counter-reset: entryno 0; }
.entry { counter-increment: entryno; }
.entry-no::before { content: counter(entryno, decimal-leading-zero); }
/* 首页高亮 */
body.home .site-nav .menu > li:first-child > a { color: var(--brand); font-weight: 600; }
body.home .site-nav .menu > li:first-child > a::after { transform: scaleX(1); }
/* 标签为空时不占位 */
.kicker:empty { display: none; }
.article-head .kicker { min-height: 0; }
/* 正文表格横向滚动 */
.table-wrap { margin: 1.3em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; min-width: 520px; }
/* 目录面板在无标题列表页隐藏 */
.side-panel--toc:has(.toc-list:not(:empty)) { display: block; }
/* 复制成功反馈 */
.share-row button.done { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 归档页空列表时给出留白 */
.ajax-load-box:empty { min-height: 0; }
/* 图片懒加载占位（含加载失败） */
.entry-thumb img[src=""], .entry-thumb img:not([src]) { opacity: 0; }
.entry-thumb.is-empty { background: linear-gradient(135deg, #EDF1F6 0%, #F7F9FB 100%); }

/* ---------- 18. 交互反馈（悬停 / 按压 / 焦点） ---------- */
.icon-btn, .search-box button, .load-more .button, .share-row button, .share-row a,
.tag-cloud a, .social-list a, .footer-contact a, .page-numbers, .empty-state .btn {
  transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease),
              box-shadow .24s var(--ease), transform .14s var(--ease);
}
/* 悬停：浅色底 + 一层柔和投影，暗示"可按" */
.icon-btn:hover, .tag-cloud a:hover, .social-list a:hover, .footer-contact a:hover {
  box-shadow: 0 1px 2px rgba(15, 23, 35, .04), 0 8px 16px -12px rgba(15, 23, 35, .26);
}
.icon-btn:active, .search-box button:active, .share-row button:active, .share-row a:active,
.tag-cloud a:active, .social-list a:active, .footer-contact a:active,
.page-numbers:active, .empty-state .btn:active, .back-top:active {
  transform: scale(.955);
}
.load-more .button:active { transform: scale(.975); }
/* 侧栏条目：文字轻微跟随 */
.side-item .txt, .rank-item h4 { transition: transform .28s var(--ease), color .22s var(--ease); }
.side-item:hover .txt { transform: translateX(2px); }
.rank-item a:hover h4 { transform: translateX(2px); }
/* 侧栏图片卡悬停加深投影 */
.side-feature { box-shadow: 0 1px 2px rgba(15, 23, 35, .05); transition: box-shadow .34s var(--ease); }
.side-feature:hover { box-shadow: 0 2px 6px rgba(15, 23, 35, .08), 0 16px 28px -18px rgba(15, 23, 35, .30); }
/* 焦点可见性（键盘） */
.entry:focus-within { background: linear-gradient(90deg, #FBFDFF 0%, #F6F9FC 100%); }

/* ---------- 19. 页面切换过渡 ---------- */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
#page-content { animation: pageEnter .44s var(--ease) backwards; }
/* 离场：整页轻微上移淡出，交由 JS 在 150ms 后跳转 */
body.is-leaving #page-content,
body.is-leaving .site-footer {
  animation: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .16s ease, transform .16s ease;
}
body.is-leaving .site-footer { transform: none; }
/* 正文页载入时内容渐显（不改变布局） */
.article-panel, .page-head, .search-head, .tag-hero { animation: contentFade .5s var(--ease) backwards; }
@keyframes contentFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  #page-content, .article-panel, .page-head, .search-head, .tag-hero { animation: none; }
  body.is-leaving #page-content { opacity: 1; transform: none; }
  .entry:active, .rec-card:active, .np-card:active { transform: none; }
}
/* 加载更多追加的条目：轻量入场 */
@keyframes entryIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.entry-in { animation: entryIn .52s var(--ease) backwards; }
