/* ============================================================
   医管思想家 · 王辛 —— 个人网站样式
   浅色极简 · 墨蓝强调色 · 等宽字体点缀
   ============================================================ */

:root {
  --bg: #fbfbf8;
  --panel: #ffffff;
  --ink: #181b20;
  --ink-soft: #3d434c;
  --muted: #7a818c;
  --faint: #a9aeb8;
  --line: #e6e5df;
  --line-strong: #d6d4cb;
  --accent: #0f4c81;         /* 墨蓝 */
  --accent-deep: #0b3a64;
  --accent-soft: #eef3f8;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --maxw: 1080px;
  --articlew: 740px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.85;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 顶部导航 ---------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .dot { color: var(--accent); font-family: var(--mono); }
.brand small {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
  letter-spacing: 0;
}

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: var(--ink-soft);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; background: var(--accent-soft); }
.nav-links a.active { color: var(--accent); font-weight: 600; }
.nav-links a .idx { font-family: var(--mono); font-size: 11px; color: var(--faint); margin-right: 4px; }
.nav-links a.active .idx { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  width: 40px;
  height: 36px;
  font-size: 18px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--mono);
}

/* ---------------- 布局骨架 ---------------- */

main { flex: 1; width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--articlew); margin: 0 auto; padding: 0 24px; }

/* ---------------- 首页 ---------------- */

.hero {
  padding: 88px 0 64px;
  border-bottom: 1px solid var(--line);
}
.hero .kicker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 20em;
}
.hero .sub {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 34em;
}
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 7px;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.btn .arr { font-family: var(--mono); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.stat .num small { font-size: 15px; color: var(--muted); font-weight: 400; }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 4px; }

.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; font-weight: 700; }
.section-head h2 .mono-idx { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-right: 10px; font-weight: 400; }
.section-head .more { font-size: 14px; font-family: var(--mono); color: var(--muted); }
.section-head .more:hover { color: var(--accent); }

/* 精选三列 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feat-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.feat-card .cat-tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.feat-card .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.55; }
.feat-card .dt { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: auto; }
.feat-card:hover .ttl { color: var(--accent-deep); }

/* 首页双栏：工具 + 资讯 */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.mini-list { list-style: none; }
.mini-list li { border-bottom: 1px dashed var(--line); }
.mini-list li:last-child { border-bottom: none; }
.mini-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 2px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
.mini-list a:hover { color: var(--accent); text-decoration: none; }
.mini-list a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.mini-list .meta { font-family: var(--mono); font-size: 12px; color: var(--faint); white-space: nowrap; }

/* ---------------- 页头（内页） ---------------- */

.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.page-head .crumb { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
.page-head h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 700; }
.page-head .lead { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }

/* ---------------- 文章列表页 ---------------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.chip {
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--sans);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .n { font-family: var(--mono); font-size: 11.5px; opacity: 0.75; margin-left: 5px; }

.search-box { margin-left: auto; position: relative; }
.search-box input {
  font-size: 14.5px;
  padding: 8px 14px 8px 34px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--panel);
  width: 220px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
}
.search-box input:focus { border-color: var(--accent); }
.search-box::before {
  content: "⌕";
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 15px;
}

.article-list { list-style: none; padding: 10px 0 60px; }
.article-list li { border-bottom: 1px solid var(--line); }
.article-list a {
  display: grid;
  grid-template-columns: 215px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 17px 4px;
  color: var(--ink);
}
.article-list a:hover { text-decoration: none; }
.article-list a:hover .t { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-list .meta-row { display: flex; flex-direction: column; gap: 2px; }
.article-list .d { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.article-list .c { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.article-list .t { font-size: 16px; font-weight: 500; line-height: 1.6; }

.empty-hint { padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 14px; }

/* ---------------- 文章阅读页 ---------------- */

.post { padding: 48px 0 24px; }
.post-head { margin-bottom: 36px; }
.post-head .meta-line {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.post-head .meta-line .sep { color: var(--line-strong); }
.post-head h1 { font-size: clamp(25px, 3.6vw, 32px); line-height: 1.45; font-weight: 700; }
.post-head .orig { margin-top: 14px; font-size: 13.5px; color: var(--faint); font-family: var(--mono); }
.post-head .orig a { color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.post-head .orig a:hover { color: var(--accent); }

/* 正文排版 —— 重新设计的网页阅读样式 */
.post-body { font-size: 17px; line-height: 1.95; color: var(--ink); }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 1.1em 0; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4 {
  font-weight: 700;
  line-height: 1.5;
  margin: 1.9em 0 0.8em;
  color: var(--ink);
}
.post-body h1 { font-size: 22px; padding-top: 0.5em; }
.post-body h2 {
  font-size: 20px;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
}
.post-body h3 { font-size: 17.5px; }
.post-body h4 { font-size: 16.5px; }
.post-body strong { font-weight: 700; color: var(--ink); }
.post-body em { font-style: normal; border-bottom: 2px solid var(--accent-soft); padding-bottom: 1px; }
.post-body a { word-break: break-all; }
.post-body ul, .post-body ol { margin: 1.1em 0; padding-left: 1.6em; }
.post-body li { margin: 0.45em 0; }
.post-body li::marker { color: var(--accent); font-family: var(--mono); font-size: 0.85em; }
.post-body blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  background: linear-gradient(to right, var(--accent-soft), transparent 70%);
}
.post-body hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: #f1f1ec;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5px 6px;
  color: var(--accent-deep);
}
.post-body pre {
  background: #20242b;
  color: #e8eaed;
  border-radius: 8px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.4em 0;
  font-size: 14px;
  line-height: 1.7;
}
.post-body pre code { background: none; border: none; padding: 0; color: inherit; font-size: inherit; }
.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.6em auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.post-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.6em 0;
  font-size: 15px;
  line-height: 1.7;
  display: block;
  overflow-x: auto;
}
.post-body th {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.post-body th, .post-body td {
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
}
.post-body tr:nth-child(even) td { background: #fafaf7; }

.post-foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.post-foot a { font-size: 14.5px; color: var(--ink-soft); }
.post-foot a:hover { color: var(--accent); }
.post-foot .dir { font-family: var(--mono); font-size: 12px; color: var(--faint); display: block; margin-bottom: 4px; }

/* ---------------- 工具箱卡片 ---------------- */

.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 36px 0 60px; }
.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tool-card .tag {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 4px;
}
.tool-card .typ { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.tool-card h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.tool-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; flex: 1; }
.tool-card .links { display: flex; gap: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.tool-card .links a { font-size: 13.5px; font-family: var(--mono); }
.tool-card .links a.dis { color: var(--faint); pointer-events: none; }

/* ---------------- 资讯页 ---------------- */

.news-list { list-style: none; padding: 10px 0 60px; }
.news-item { border-bottom: 1px solid var(--line); }
.news-item a {
  display: grid;
  grid-template-columns: 110px 130px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 4px;
  color: var(--ink);
}
.news-item a:hover { text-decoration: none; }
.news-item a:hover .t { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.news-item .d { font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.news-item .s { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.news-item .t { font-size: 15.5px; line-height: 1.65; font-weight: 500; }
.news-note {
  margin: 26px 0 0;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ---------------- 关于 / 联系 ---------------- */

.prose p { margin: 1.1em 0; max-width: 40em; }
.prose h2 { font-size: 20px; margin: 2em 0 0.6em; }
.prose ul { padding-left: 1.5em; margin: 1em 0; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--accent); }

.fact-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 22px 26px;
  margin: 22px 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 20px;
  font-size: 15.5px;
}
.fact-card .k { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; }
.fact-card .v { color: var(--ink); }
.fact-card .v a { word-break: break-all; }

/* ---------------- 页脚 ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 34px 0 40px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: baseline; }
.site-footer .brand-line { font-weight: 600; font-size: 15px; }
.site-footer .mono-line { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.site-footer nav { display: flex; gap: 18px; }
.site-footer nav a { font-size: 13.5px; color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .feat-grid { grid-template-columns: 1fr; }
  .duo-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 16px; }
  .hero { padding: 56px 0 44px; }
  .tool-grid { grid-template-columns: 1fr; }
  .article-list a { grid-template-columns: 1fr; gap: 4px; padding: 15px 2px; }
  .article-list .meta-row { display: flex; gap: 12px; }
  .news-item a { grid-template-columns: 1fr; gap: 4px; }
  .search-box { margin-left: 0; width: 100%; }
  .search-box input { width: 100%; }
  .fact-card { grid-template-columns: 1fr; }
  .post-body table { font-size: 14px; }
}

/* ============================================================
   UPGRADE · 品牌质感增强层
   衬线标题 / 终端卡片 / 精选专栏 / 滚动渐显 / 阅读进度条
   ============================================================ */

:root {
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --shadow-sm: 0 1px 2px rgba(24, 27, 32, 0.04), 0 4px 14px rgba(24, 27, 32, 0.05);
  --shadow-md: 0 2px 4px rgba(24, 27, 32, 0.05), 0 12px 32px rgba(15, 76, 129, 0.10);
}

/* ---------- 字体气质：标题衬线化 ---------- */
.hero h1, .page-head h1 {
  font-family: var(--serif);
  font-weight: 900;
  letter-spacing: 0.02em;
}
.section-head h2 { font-family: var(--serif); font-weight: 800; }
.post-head h1 { font-family: var(--serif); font-weight: 800; }
.site-footer .brand-line { font-family: var(--serif); font-size: 21px; font-weight: 800; letter-spacing: 0.04em; }
.stat .num { font-family: var(--serif); font-weight: 800; }

/* ---------- 导航滚动阴影 ---------- */
.site-nav { transition: box-shadow 0.25s ease; }
.site-nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(24, 27, 32, 0.06); }

/* ---------- Hero 2.0：双栏 + 终端卡片 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #e2e1d8 1px, transparent 1.2px);
  background-size: 24px 24px;
  opacity: 0.55;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { max-width: none; font-size: clamp(32px, 4.4vw, 46px); }
.hero .sub { max-width: 30em; }

/* 终端风格个人卡 */
.term-card {
  background: #1d2129;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  font-family: var(--mono);
  transform: rotate(0.5deg);
  transition: transform 0.3s ease;
}
.term-card:hover { transform: rotate(0deg) translateY(-3px); }
.term-card .bar {
  display: flex; align-items: center; gap: 7px;
  background: #2a2f3a;
  padding: 11px 16px;
}
.term-card .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-card .bar i:nth-child(1) { background: #ff5f57; }
.term-card .bar i:nth-child(2) { background: #febc2e; }
.term-card .bar i:nth-child(3) { background: #28c840; }
.term-card .bar span { color: #7d8590; font-size: 11.5px; margin-left: 8px; letter-spacing: 0.06em; }
.term-card .body { padding: 20px 22px 24px; color: #c9d1d9; font-size: 13px; line-height: 2.05; }
.term-card .prompt { color: #58a6ff; }
.term-card .out { color: #8b949e; }
.term-card .hl { color: #7ee787; }
.term-card .caret {
  display: inline-block; width: 8px; height: 16px;
  background: #58a6ff; vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 精选专栏 ---------- */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.series-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px 22px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.series-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
.series-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.series-card:hover::after { transform: scaleY(1); }
.series-card .s-no { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: 0.1em; }
.series-card:hover .s-no { color: var(--accent); }
.series-card .s-name { font-family: var(--serif); font-size: 18.5px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.series-card:hover .s-name { color: var(--accent-deep); }
.series-card .s-desc { font-size: 14px; color: var(--muted); line-height: 1.7; flex: 1; }
.series-card .s-meta { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 6px; }

/* ---------- 卡片质感升级 ---------- */
.feat-card, .tool-card { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.feat-card:hover, .tool-card:hover { box-shadow: var(--shadow-md); }
.btn { transition: all 0.2s ease; }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(15, 76, 129, 0.28); }
.chip { transition: all 0.15s ease; }
.mini-list a { transition: color 0.15s ease; }

/* 首页统计数字加大衬线 */
.stat { padding: 36px 28px; }
.stat .num { font-size: 38px; }

/* ---------- 阅读进度条 ---------- */
#readProgress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: var(--accent);
  z-index: 99;
  transition: width 0.1s linear;
}

/* ---------- 滚动渐显 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .term-card .caret { animation: none; }
}

/* ---------- 页脚升级 ---------- */
.site-footer { padding: 46px 0 48px; }
.site-footer .mono-line { margin-top: 6px; letter-spacing: 0.08em; }

/* ---------- 响应式补充 ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 52px; }
  .term-card { max-width: 480px; }
  .series-grid { grid-template-columns: 1fr; }
}
