/* =========================================================
   数学与教育手记 · 站点样式
   设计参考：高校门户的秩序感 + 现代排版的留白
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f6f8f2;
  --paper-2: #eef3e8;
  --surface: #ffffff;
  --surface-2: #f1f5ec;
  --ink: #15241b;
  --text: #35473b;
  --muted: #5c6e61;
  --line: #dfe7d7;
  --line-strong: #c9d5c0;

  --brand: #138c4a;
  --brand-600: #0f7a41;
  --brand-700: #0b5f34;
  --brand-800: #084027;
  --brand-900: #052a19;
  --lime: #c9dd8f;
  --lime-soft: #e6efc8;
  --chip-ink: #0b5f34;
  --gold: #b98b3c;

  --on-dark: #f3f8ef;
  --on-dark-muted: rgba(243, 248, 239, 0.68);
  --on-dark-line: rgba(255, 255, 255, 0.14);

  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --shadow-sm: 0 1px 2px rgba(9, 40, 24, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(9, 40, 24, 0.22);
  --shadow-lg: 0 30px 70px -30px rgba(9, 40, 24, 0.35);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1200px;
  --nav-h: 54px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #0c1310;
  --paper-2: #101a14;
  --surface: #131d17;
  --surface-2: #18241c;
  --ink: #eaf2e8;
  --text: #c2d1c5;
  --muted: #8ea294;
  --line: #26352b;
  --line-strong: #35493b;

  --brand: #34b26d;
  --brand-600: #2ea363;
  --brand-700: #1c7b49;
  --brand-800: #0f4a2c;
  --brand-900: #07120c;
  --lime: #cfe39a;
  --lime-soft: #2b3a24;
  --chip-ink: #d6e7a8;
  --gold: #d0a458;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.75);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. 顶部工具条 ---------- */
.topbar {
  background: var(--brand-900);
  color: var(--on-dark-muted);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.topbar-note .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(201, 221, 143, 0.16);
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar-links a { transition: color 0.2s; }
.topbar-links a:hover { color: var(--lime); }
.topbar-links .sep { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.16); }

/* ---------- 4. 页头 ---------- */
.site-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 300px at 82% -40%, rgba(201, 221, 143, 0.16), transparent 62%),
    linear-gradient(112deg, #04281a 0%, #073b25 44%, #0b5333 100%);
  color: var(--on-dark);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(25deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.header-inner {
  position: relative;
  height: 116px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand-mark {
  position: relative;
  flex: none;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  color: #f2f7d9;
  background: radial-gradient(circle at 32% 28%, #15804a, #063a24 70%);
  border: 1px solid rgba(201, 221, 143, 0.55);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.05), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.profile-avatar img, .author-box .avatar img, .post-meta-row .avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.brand-mark::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid rgba(201, 221, 143, 0.16);
}
.brand-text { min-width: 0; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  white-space: nowrap;
}
.brand-en {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: rgba(243, 248, 239, 0.48);
  text-transform: uppercase;
  white-space: nowrap;
}
.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  width: 220px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  padding: 0 6px 0 16px;
  transition: border-color 0.25s, background 0.25s;
}
.header-search:focus-within {
  border-color: rgba(201, 221, 143, 0.7);
  background: rgba(255, 255, 255, 0.11);
}
.header-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  outline: none;
  color: var(--on-dark);
  font-size: 13px;
}
.header-search input::placeholder { color: rgba(243, 248, 239, 0.45); }
.header-search button {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(243, 248, 239, 0.7);
  transition: background 0.2s, color 0.2s;
}
.header-search button:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lime {
  background: var(--lime);
  color: #0a2b1b;
  box-shadow: 0 6px 18px -8px rgba(201, 221, 143, 0.8);
}
.btn-lime:hover { background: #d7e8a6; }
.btn-green { background: var(--brand); color: #fff; }
.btn-green:hover { background: var(--brand-600); }
[data-theme="dark"] .btn-green { color: #07130c; }
[data-theme="dark"] .tag-cloud a:hover { color: #07130c; }
.btn-outline { border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(243, 248, 239, 0.85);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* 主题切换（页头内为浅色） */
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ---------- 5. 导航 ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #06351f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
}
[data-theme="dark"] .site-nav { background: #061a10; }
.nav-inner {
  display: flex;
  align-items: stretch;
  height: var(--nav-h);
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.is-active { color: #fff; font-weight: 600; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 20px; right: 20px; bottom: 0;
  height: 3px;
  background: var(--lime);
}
.nav-extra {
  margin-left: auto;
  display: flex;
  align-items: center;
  padding-left: 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}
.nav-extra a { color: rgba(255, 255, 255, 0.6); }
.nav-extra a:hover { color: var(--lime); }

/* ---------- 6. 首页轮播 ---------- */
.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--brand-900);
  isolation: isolate;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
  will-change: opacity;
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s linear;
  will-change: transform;
}
.hero-slide.is-active .hero-bg { transform: scale(1.08); }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 20, 13, 0.9) 0%, rgba(3, 20, 13, 0.68) 38%, rgba(3, 20, 13, 0.18) 68%, rgba(3, 20, 13, 0.35) 100%),
    linear-gradient(0deg, rgba(3, 20, 13, 0.55), transparent 45%);
}
.hero-slide-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 30px;
}
.hero-copy {
  max-width: 680px;
  color: #fff;
  opacity: 0;
  transform: translateY(22px);
}
.hero-slide.is-active .hero-copy {
  animation: heroIn 0.85s var(--ease) 0.12s forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: none; }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--lime);
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--lime);
}
.hero-kicker .cat {
  padding: 3px 9px;
  border: 1px solid rgba(201, 221, 143, 0.45);
  border-radius: 3px;
  letter-spacing: 0.1em;
  color: #e9f3cf;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}
.hero-title a { transition: color 0.25s; }
.hero-title a:hover { color: var(--lime-soft); }
.hero-desc {
  margin-top: 20px;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.76);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dot {
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  transition: background 0.3s, width 0.3s;
}
.hero-dot.is-active { background: var(--lime); width: 54px; }
.hero-dot:hover { background: rgba(255, 255, 255, 0.65); }

.hero-ctrl {
  position: absolute;
  z-index: 5;
  right: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.hero-count {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}
.hero-count b { color: #fff; font-size: 18px; font-weight: 600; }
.hero-arrow {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero-arrow:hover { background: var(--lime); border-color: var(--lime); color: #0a2b1b; }
.hero-mark {
  position: absolute;
  z-index: 4;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

/* ---------- 7. 滚动要闻 ---------- */
.ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.ticker-inner {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
.ticker-label {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.ticker-label::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
}
.ticker-view {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  position: absolute;
  pointer-events: none;
}
.ticker-item.is-active { opacity: 1; transform: none; pointer-events: auto; position: static; }
.ticker-item .date {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ticker-item:hover { color: var(--brand); }
.ticker-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.ticker-more:hover { color: var(--brand); }

/* ---------- 8. 区块与标题 ---------- */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-alt { background: var(--paper-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.section-title {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 7px; bottom: 7px;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}
.section-title small {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--muted);
  text-transform: uppercase;
}
.section-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 4px;
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s, gap 0.2s;
}
.section-more:hover { color: var(--brand); gap: 9px; }

/* ---------- 9. 首页两栏 ---------- */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 48px;
  align-items: start;
}

.tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}
.tab {
  position: relative;
  padding: 0 0 12px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand);
}
.tab .count {
  margin-left: 4px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.post-list { border-top: 1px solid transparent; }
.post-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 20px 8px 20px 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
  transition: background 0.25s, padding-left 0.25s;
}
.post-row:hover { background: var(--surface); padding-left: 10px; }
.post-date {
  flex: none;
  text-align: center;
  padding: 7px 2px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.post-date b {
  display: block;
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.post-date span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.post-row:hover .post-date {
  background: var(--brand-800);
  border-color: var(--brand-800);
}
.post-row:hover .post-date b,
.post-row:hover .post-date span { color: #fff; }

.post-body { min-width: 0; }
.post-title {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-title:hover { color: var(--brand); }
.post-excerpt {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--muted);
}
.post-meta .tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.post-meta .tag:hover { background: var(--lime-soft); color: var(--brand-700); }
.post-meta .dot { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.post-arrow {
  align-self: center;
  color: var(--line-strong);
  transition: transform 0.25s var(--ease), color 0.25s;
}
.post-row:hover .post-arrow { color: var(--brand); transform: translateX(4px); }

/* ---------- 10. 侧栏 ---------- */
.side-stack { display: grid; gap: 22px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.panel-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.panel-title small {
  margin-left: 7px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 400;
}

.profile-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  padding: 26px 24px;
  color: #fff;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(201, 221, 143, 0.22), transparent 60%),
    linear-gradient(150deg, #0b4a2c 0%, #06341f 60%, #04281a 100%);
  box-shadow: var(--shadow-md);
}
.profile-card::after {
  content: "";
  position: absolute;
  right: -60px; bottom: -70px;
  width: 190px; height: 190px;
  border: 1px solid rgba(201, 221, 143, 0.18);
  border-radius: 50%;
}
.profile-card::before {
  content: "";
  position: absolute;
  right: -20px; bottom: -30px;
  width: 110px; height: 110px;
  border: 1px solid rgba(201, 221, 143, 0.14);
  border-radius: 50%;
}
.profile-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profile-avatar {
  flex: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 25px;
  color: #f2f7d9;
  background: radial-gradient(circle at 30% 25%, #1c9a5a, #07512f 70%);
  border: 1px solid rgba(201, 221, 143, 0.55);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.profile-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.profile-role {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}
.profile-bio {
  position: relative;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.7);
}
.profile-facts {
  position: relative;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.profile-facts li { display: flex; align-items: center; gap: 8px; }
.profile-facts svg { flex: none; color: var(--lime); opacity: 0.85; }
.profile-actions {
  position: relative;
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.profile-actions .btn { flex: 1; padding: 8px 10px; font-size: 12.5px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
}
.tag-cloud a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.tag-cloud a .n { margin-left: 4px; font-size: 10px; opacity: 0.6; }

.side-list { display: grid; gap: 12px; }
.side-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  transition: color 0.2s;
}
.side-item .num {
  flex: none;
  width: 18px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.side-item:hover { color: var(--brand); }
.side-item .date { display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted); }

/* ---------- 11. 精选项目 ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.project-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  isolation: isolate;
}
.project-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 16px);
  opacity: 0.55;
}
.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(2, 16, 10, 0.55), transparent 65%);
}
.project-cover .num {
  position: absolute;
  top: -8px; right: 10px;
  font-family: var(--font-serif);
  font-size: 86px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: -0.04em;
  z-index: 1;
}
.project-cover .label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cover-1 { background: linear-gradient(135deg, #063a24 0%, #12734a 55%, #46b47b 100%); }
.cover-2 { background: linear-gradient(135deg, #072e2a 0%, #0e5f4c 55%, #2f9d7a 100%); }
.cover-3 { background: linear-gradient(135deg, #123c2b 0%, #3a7038 55%, #a8c66a 100%); }
.cover-4 { background: linear-gradient(135deg, #071f2b 0%, #0c4f5e 55%, #2b8f8a 100%); }
.cover-5 { background: linear-gradient(135deg, #2b2e14 0%, #67752a 55%, #c3cf74 100%); }
.cover-6 { background: linear-gradient(135deg, #17202b 0%, #33506b 55%, #7c9cb0 100%); }
.cover-7 { background: linear-gradient(135deg, #2a1f16 0%, #6b4a2a 55%, #c39a63 100%); }
.cover-8 { background: linear-gradient(135deg, #221a2c 0%, #4c3560 55%, #8b6fa8 100%); }

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}
.project-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.project-name .status {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--chip-ink);
  background: var(--lime-soft);
}
.project-en {
  margin-top: 2px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}
.project-desc {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.project-tags span {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}
.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--brand);
}
.project-link:hover { gap: 9px; }

/* ---------- 12. 数字条 ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at 15% 0%, rgba(201, 221, 143, 0.14), transparent 60%),
    linear-gradient(115deg, #04281a, #07402a 55%, #0a5333);
  color: #fff;
  padding: 58px 0;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 70px);
  pointer-events: none;
}
.stats-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  align-items: center;
}
.stats-lead h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.stats-lead p {
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, 0.14); }
.stat b {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.stat b i { font-style: normal; font-family: var(--font-sans); font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.stat span { display: block; margin-top: 8px; font-size: 12px; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.6); }

/* ---------- 13. 关注领域 ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.focus-tile {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.focus-tile::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.focus-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.focus-tile:hover::after { transform: scaleX(1); }
.focus-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--lime-soft);
  margin-bottom: 18px;
}
.focus-tile h3 {
  font-family: var(--font-serif);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.focus-tile .en {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.focus-tile p {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 14. CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  right: -80px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  opacity: 0.5;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 58px 0;
}
.cta h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-wrap: balance;
}
.cta p { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 15. 页脚 ---------- */
.site-footer {
  background: #04241a;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12.5px;
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--lime) 55%, transparent);
  opacity: 0.8;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 42px;
  padding: 54px 0 40px;
}
.footer-brand .brand-name { font-size: 21px; color: #fff; }
.footer-brand .brand-en { letter-spacing: 0.3em; }
.footer-desc {
  margin-top: 16px;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.45);
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.footer-social a {
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--lime); border-color: var(--lime); color: #0a2b1b; }
.footer-col h3 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
}
.footer-col h3 span { margin-left: 6px; font-size: 9px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.3); }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--lime); padding-left: 3px; }
.footer-contact li { display: flex; gap: 8px; line-height: 1.7; }
.footer-contact svg { flex: none; margin-top: 3px; color: rgba(201, 221, 143, 0.6); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.35);
}
.footer-bottom a:hover { color: rgba(255, 255, 255, 0.7); }
.footer-bottom .sep { margin: 0 8px; opacity: 0.4; }

/* ---------- 16. 内页头部 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 260px at 80% -30%, rgba(201, 221, 143, 0.16), transparent 60%),
    linear-gradient(112deg, #04281a, #073b25 55%, #0b5333);
  padding: 46px 0 50px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 58px);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .sep { opacity: 0.4; }
.page-title {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.35;
}
.page-desc {
  margin-top: 12px;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.65);
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}
.page-hero-meta b { color: var(--lime); font-family: var(--font-serif); font-size: 17px; margin-right: 4px; }

/* ---------- 17. 文章列表页 ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
  padding: 44px 0 80px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.chip {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  transition: all 0.2s;
  white-space: nowrap;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.filter-spacer { flex: 1; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.search-box:focus-within { border-color: var(--brand); }
.search-box input {
  width: 150px;
  border: 0;
  background: none;
  outline: none;
  font-size: 12.5px;
}
.search-box input::placeholder { color: var(--muted); opacity: 0.8; }

.result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.result-line b { color: var(--ink); }

.article-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 10px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, padding-left 0.25s;
}
.article-card:hover { background: var(--surface); padding-left: 12px; }
.article-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: #fff;
}
.article-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 14px);
  opacity: 0.6;
}
.article-thumb .no {
  position: relative;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  opacity: 0.85;
}
.article-body { min-width: 0; }
.article-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--brand);
  font-weight: 600;
}
.article-cat::before { content: ""; width: 12px; height: 1px; background: currentColor; }
.article-title {
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  transition: color 0.2s;
}
.article-title:hover { color: var(--brand); }
.article-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}
.article-meta .tag {
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--surface-2);
  font-size: 10px;
}
.article-meta .dot { width: 2px; height: 2px; background: currentColor; border-radius: 50%; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.empty-state strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
}
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-info { margin-left: 6px; font-size: 11.5px; color: var(--muted); }

.archive-list { display: grid; gap: 10px; }
.archive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text);
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  transition: color 0.2s;
}
.archive-row:hover { color: var(--brand); }
.archive-row span { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 18. 文章详情 ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--lime));
  box-shadow: 0 0 12px rgba(19, 140, 74, 0.5);
  transition: width 0.1s linear;
}
.post-wrap { padding-bottom: 80px; }
.post-header { padding: 46px 0 0; }
.post-header .container { max-width: 900px; }
.post-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 3px;
  background: var(--lime-soft);
  color: var(--chip-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.post-h1 {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.post-sub {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 720px;
}
.post-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.post-meta-row .author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
}
.post-meta-row .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-800);
  color: var(--lime);
  font-family: var(--font-serif);
  font-size: 12px;
}
.post-meta-row .dot { width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
.post-hero-cover {
  position: relative;
  height: 300px;
  margin-top: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 26px 30px;
  color: #fff;
}
.post-hero-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(560px 260px at 82% 6%, rgba(255, 255, 255, 0.24), transparent 62%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 20px);
  opacity: 0.85;
}
.post-hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 16, 10, 0.6), transparent 70%);
}
.post-hero-cover .cap {
  position: relative;
  z-index: 1;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.post-hero-cover .big {
  position: absolute;
  right: 26px; bottom: 10px;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 96px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.05em;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  gap: 60px;
  justify-content: center;
  padding-top: 48px;
}
.prose {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
}
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.35em; }
.prose h2 {
  position: relative;
  margin: 2.4em 0 0.9em;
  padding-left: 15px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: 0.01em;
  scroll-margin-top: 90px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.3em;
  width: 4px;
  border-radius: 2px;
  background: var(--brand);
}
.prose h3 {
  margin: 1.8em 0 0.6em;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--brand-700); font-style: normal; background: linear-gradient(transparent 60%, var(--lime-soft) 60%); }
.prose a { color: var(--brand); border-bottom: 1px solid rgba(19, 140, 74, 0.3); }
.prose a:hover { border-color: var(--brand); }
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  margin-bottom: 0.5em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.05em; top: 0.72em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brand);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-bottom: 0.5em; padding-left: 0.2em; }
.prose ol li::marker { color: var(--brand); font-weight: 600; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose pre {
  margin: 1.6em 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: #0b1a12;
  color: #d5e6d1;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.prose pre code { font-family: inherit; background: none; padding: 0; color: inherit; }
.prose code {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.87em;
  color: var(--brand-700);
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 13.5px; }
.prose th, .prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); color: var(--ink); }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
}
.toc-title {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: all 0.2s;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.toc-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.toc-meta b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.post-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}
.post-end .tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 11px;
}
.post-end .license { margin-left: auto; }

.author-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.author-box > div { flex: 1; min-width: 180px; }
.author-box .author-mail { margin-left: auto; }
.author-box .avatar {
  flex: none;
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #1c9a5a, #07512f 70%);
  color: #f2f7d9;
  font-family: var(--font-serif);
  font-size: 24px;
  border: 1px solid rgba(19, 140, 74, 0.4);
}
.author-box h3 { font-family: var(--font-serif); font-size: 17px; color: var(--ink); }
.author-box p { margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--muted); }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.post-nav a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.25s;
}
.post-nav a:hover { border-color: var(--brand); transform: translateY(-2px); }
.post-nav .k {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}
.post-nav .t {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav .next { text-align: right; }
.post-nav-empty {
  padding: 18px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.post-nav-empty .t { color: var(--muted); font-weight: 400; }

.related {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  margin-bottom: 18px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.related-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.related-item .cat { font-size: 10px; color: var(--brand); letter-spacing: 0.1em; }
.related-item .t {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}
.related-item .d { display: block; margin-top: 8px; font-size: 10.5px; color: var(--muted); }

/* ---------- 19. 项目页 ---------- */
.projects-page { padding: 44px 0 80px; }
.projects-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
  font-size: 12.5px;
  color: var(--muted);
}
.projects-summary b { color: var(--ink); }
.projects-summary .legend { display: flex; gap: 18px; }
.projects-summary .legend span { display: inline-flex; align-items: center; gap: 6px; }
.projects-summary .legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.project-grid.lg .project-cover { aspect-ratio: 16 / 9; }
.project-grid.lg { gap: 28px; }

/* ---------- 20. 简历 ---------- */
.resume-page { background: var(--paper-2); }
.resume-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 26px;
}
.resume-toolbar .hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.resume-toolbar .hint svg { color: var(--brand); }
.resume-actions { display: flex; gap: 10px; }

.resume-paper {
  max-width: 940px;
  margin: 0 auto 70px;
  padding: 54px 60px 58px;
  background: #fff;
  color: #1b2a21;
  border-radius: 4px;
  box-shadow: 0 24px 60px -30px rgba(8, 40, 25, 0.4);
  font-size: 12.5px;
  line-height: 1.75;
}
.r-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 2px solid #0f6b40;
}
.r-name {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: #10251a;
}
.r-role {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #0f6b40;
  font-weight: 600;
}
.r-contact {
  display: grid;
  gap: 4px;
  text-align: right;
  font-size: 11.5px;
  color: #4d6054;
  font-variant-numeric: tabular-nums;
}
.r-contact span { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.r-contact svg { color: #0f6b40; }

.r-summary {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f2f6ee;
  border-left: 3px solid #138c4a;
  font-size: 12px;
  line-height: 1.85;
  color: #33463a;
}
.r-section { margin-top: 26px; }
.r-section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #dfe7d7;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #10251a;
}
.r-section-title span {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #8a9a8e;
  text-transform: uppercase;
}
.r-entry { position: relative; padding-left: 16px; margin-bottom: 16px; }
.r-entry::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #138c4a;
  box-shadow: 0 0 0 3px #e7f0e2;
}
.r-entry:last-child { margin-bottom: 0; }
.r-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.r-entry-head h3 { font-size: 13.5px; font-weight: 700; color: #10251a; }
.r-entry-head .date {
  flex: none;
  font-size: 10.5px;
  color: #6d7e71;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.r-org {
  margin-top: 2px;
  font-size: 11.5px;
  color: #0f6b40;
  font-weight: 600;
}
.r-bullets { margin-top: 7px; display: grid; gap: 3px; }
.r-bullets li {
  position: relative;
  padding-left: 13px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #3d5145;
}
.r-bullets li::before {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #9cae9f;
}
.r-bullets strong { color: #10251a; font-weight: 600; }
.r-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.r-columns .r-section { margin-top: 22px; }
.r-skills { display: grid; gap: 7px; }
.r-skill {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #3d5145;
}
.r-bar { height: 4px; border-radius: 99px; background: #e7eee2; overflow: hidden; }
.r-bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #138c4a, #9bbb54);
}
.r-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.r-tags span {
  padding: 2px 8px;
  border-radius: 2px;
  background: #f1f5ec;
  border: 1px solid #e2eada;
  font-size: 10.5px;
  color: #42574a;
}
.r-note {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px dashed #dfe7d7;
  font-size: 10px;
  color: #8a9a8e;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 21. 关于页 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 56px 0 20px;
}
.about-card {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  padding: 28px 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #0b4a2c, #04281a);
  color: #fff;
  overflow: hidden;
}
.about-card::after {
  content: "";
  position: absolute;
  right: -70px; bottom: -80px;
  width: 220px; height: 220px;
  border: 1px solid rgba(201, 221, 143, 0.16);
  border-radius: 50%;
}
.about-avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 34px;
  color: #f2f7d9;
  background: radial-gradient(circle at 30% 25%, #1c9a5a, #07512f 70%);
  border: 1px solid rgba(201, 221, 143, 0.5);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.05);
}
.about-card h2 { margin-top: 16px; font-family: var(--font-serif); font-size: 24px; letter-spacing: 0.08em; }
.about-card .role { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.about-facts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}
.about-facts li { display: flex; gap: 8px; align-items: flex-start; }
.about-facts svg { flex: none; margin-top: 3px; color: var(--lime); opacity: 0.85; }
.about-social { display: flex; gap: 8px; margin-top: 20px; }
.about-social a {
  flex: 1;
  padding: 8px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
}
.about-social a:hover { background: var(--lime); border-color: var(--lime); color: #0a2b1b; }

.about-body h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.about-body p { margin-bottom: 1.2em; font-size: 14.5px; line-height: 2; color: var(--text); }
.about-body p.lead {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
}
.about-body .mark {
  background: linear-gradient(transparent 62%, var(--lime-soft) 62%);
  padding: 0 2px;
}
.about-quote {
  margin: 26px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
}

.timeline { position: relative; padding-left: 26px; margin-top: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-strong);
}
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 7px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-item .when {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.timeline-item h3 { margin-top: 3px; font-size: 15px; font-weight: 600; color: var(--ink); }
.timeline-item p { margin-top: 3px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 10px;
}
.about-mini {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.about-mini h4 { font-size: 12px; letter-spacing: 0.1em; color: var(--brand); margin-bottom: 8px; }
.about-mini p { font-size: 12px; line-height: 1.8; color: var(--muted); }

/* ---------- 22. 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(201, 221, 143, 0.18), transparent 70%),
    var(--paper);
}
.notfound .code {
  font-family: var(--font-serif);
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  opacity: 0.9;
  letter-spacing: -0.04em;
}
.notfound h1 { margin-top: 18px; font-family: var(--font-serif); font-size: 26px; color: var(--ink); }
.notfound p { margin-top: 10px; font-size: 13px; color: var(--muted); }
.notfound .actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- 23. 工具 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 90;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease);
}
.back-top.is-show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  z-index: 300;
  transform: translate(-50%, 20px);
  padding: 11px 22px;
  border-radius: 999px;
  background: #0b1a12;
  color: #eaf3e7;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 23.5 组件补充 ---------- */
.brand-name,
.brand-en { display: block; }
.topbar-note .sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.14);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; }

.post-header .container { max-width: 1070px; }
.post-layout {
  max-width: 1070px;
  grid-template-columns: minmax(0, 760px) 250px;
  gap: 60px;
}
.post-aside { min-width: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--brand); }
.blog-side { display: grid; gap: 22px; align-content: start; }
.about-body h2:not(:first-child) { margin-top: 40px; }
.r-bar { display: block; overflow: hidden; }
.notfound { min-height: 64vh; }

@media (max-width: 1040px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* ---------- 23.6 工作轨迹 ---------- */
.track-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.track-card::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
  opacity: 0.9;
}
.track-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.track-date {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.track-org {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.track-role {
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}
.track-points {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text);
}
.track-points li {
  position: relative;
  padding-left: 13px;
}
.track-points li::before {
  content: "";
  position: absolute;
  left: 1px; top: 0.65em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}
.track-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.track-link:hover { gap: 9px; }

/* ---------- 23.7 青辰数学社 band ---------- */
.club-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  color: #fff;
  background:
    radial-gradient(700px 320px at 12% 0%, rgba(201, 221, 143, 0.16), transparent 62%),
    linear-gradient(118deg, #04281a 0%, #07402a 52%, #0a5333 100%);
}
.club-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 64px);
  pointer-events: none;
}
.club-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.club-left {
  display: flex;
  align-items: center;
  gap: 26px;
}
.club-emblem {
  flex: none;
  width: 156px;
  height: 156px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}
.club-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  color: var(--lime);
  text-transform: uppercase;
}
.club-kicker::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--lime);
}
.club-title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
.club-desc {
  margin-top: 12px;
  max-width: 460px;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
}
.club-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.club-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
}
.club-stat {
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.club-stat b {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.club-stat b i {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 15px;
  color: var(--lime);
  opacity: 0.75;
  margin-left: 2px;
}
.club-tabs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.club-tabs a { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid rgba(201,221,143,.28); border-radius: 999px; color: rgba(255,255,255,.78); font-size: 13px; }
.club-tabs a.active { background: var(--lime); color: #06351f; border-color: var(--lime); font-weight: 600; }
.club-status { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #eaf3e4; color: var(--green-dark); font-size: 12px; font-weight: 600; }
.club-now-list { list-style: none; padding: 0; margin: 14px 0 26px; display: grid; gap: 8px; }
.club-now-list li { padding: 11px 14px 11px 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); position: relative; font-size: 14px; }
.club-now-list li::before { content: "·"; position: absolute; left: 16px; color: var(--green); font-weight: 700; }
.club-message { margin: 22px 0; padding: 16px 20px; border-left: 3px solid var(--green); background: var(--surface-2); font-family: var(--font-serif); font-size: 15px; color: var(--text); }
.club-stat span {
  display: block;
  margin-top: 7px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 23.8 数学思考卡片 ---------- */
.essay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.essay-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 30px 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.essay-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.essay-card.is-feature {
  color: #fff;
  border: 0;
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(201, 221, 143, 0.22), transparent 60%),
    linear-gradient(145deg, #0b4a2c, #04281a);
}
.essay-cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--brand);
  font-weight: 600;
}
.essay-card.is-feature .essay-cat { color: var(--lime); }
.essay-cat::before {
  content: "";
  width: 12px; height: 1px;
  background: currentColor;
}
.essay-title {
  margin-top: 12px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.essay-card.is-feature .essay-title { color: #fff; font-size: 24px; }
.essay-excerpt {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
}
.essay-card.is-feature .essay-excerpt { color: rgba(255, 255, 255, 0.68); }
.essay-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.essay-card.is-feature .essay-meta { color: rgba(255, 255, 255, 0.5); }
.essay-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--brand);
}
.essay-card.is-feature .essay-more { color: var(--lime); }

/* ---------- 23.9 AI 画廊 ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.gallery-item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #061810;
}
.gallery-cap {
  padding: 14px 16px 16px;
}
.gallery-cap h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 15.5px;
  color: var(--ink);
}
.gallery-cap h3 span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}
.gallery-cap p {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}
.gallery-tag {
  display: inline-block;
  margin-top: 9px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--chip-ink);
  font-size: 10px;
}

/* ---------- 23.10 页面辅助 ---------- */
.page-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 48px;
  align-items: start;
  padding: 52px 0 20px;
}
.page-prose p {
  margin-bottom: 1.15em;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
}
.page-prose p.lead {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.9;
  color: var(--ink);
}
.page-prose h2 {
  margin: 34px 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--ink);
}
.page-prose blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: var(--surface);
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--ink);
}
.fact-list {
  display: grid;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text);
}
.fact-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
}
.fact-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-list svg { flex: none; margin-top: 4px; color: var(--brand); }

.page-hero-emblem {
  position: absolute;
  right: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  top: 50%;
  width: 150px;
  height: 150px;
  transform: translateY(-50%);
  opacity: 0.95;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.3));
}
.friend-links {
  display: grid;
  gap: 8px;
}
.friend-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text);
  transition: all 0.2s;
}
.friend-links a:hover { border-color: var(--brand); color: var(--brand); }
.friend-links span { font-size: 9px; letter-spacing: 0.14em; color: var(--muted); }

/* ---------- 24. 响应式 ---------- */
@media (max-width: 1180px) {
  .header-search { width: 190px; }
  .home-grid { gap: 38px; }
  .hero-ctrl { right: 24px; }
}

@media (max-width: 1040px) {
  .home-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .stats-inner { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-card { position: static; }
  .footer-main { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 50px; }
  .container { width: calc(100% - 36px); }
  .topbar-links a:not(.keep) { display: none; }
  .topbar-links .sep { display: none; }
  .header-inner { height: 96px; }
  .brand-name { font-size: 24px; }
  .brand-en { font-size: 8.5px; letter-spacing: 0.3em; }
  .brand-mark { width: 50px; height: 50px; font-size: 22px; }
  .header-search { display: none; }
  .hero { height: 500px; }
  .hero-desc { font-size: 14px; -webkit-line-clamp: 3; }
  .section { padding: 54px 0; }
  .section-title { font-size: 25px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .stat b { font-size: 34px; }
  .hero-slide-inner { padding-bottom: 10px; }
  .hero-ctrl { display: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 0; }
  .cta h2 { font-size: 26px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 42px 0 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-col { grid-column: auto; }
  .article-card { grid-template-columns: 140px minmax(0, 1fr); gap: 18px; }
  .post-hero-cover { height: 220px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .r-columns { grid-template-columns: 1fr; gap: 0; }
  .resume-paper { padding: 38px 34px 42px; }
  .resume-toolbar { padding: 20px 0; }
  .blog-side { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .container { width: calc(100% - 32px); }
  .topbar-note span.full { display: none; }
  .nav-link { padding: 0 14px; font-size: 14px; }
  .nav-link.is-active::after { left: 14px; right: 14px; }
  .nav-extra { display: none; }
  .brand { gap: 12px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 44px; height: 44px; font-size: 19px; }
  .header-inner { height: 84px; }
  .header-tools .btn-contact { display: none; }
  .hero { height: 470px; }
  .hero-kicker { margin-bottom: 16px; font-size: 10.5px; }
  .hero-title { font-size: 27px; }
  .hero-desc { margin-top: 14px; font-size: 13.5px; }
  .hero-actions { margin-top: 22px; }
  .hero-actions .btn { padding: 9px 16px; font-size: 13px; }
  .hero-dots { bottom: 22px; }
  .ticker-inner { height: 48px; }
  .ticker-more { display: none; }
  .section { padding: 44px 0; }
  .section-head { margin-bottom: 24px; }
  .section-title { font-size: 22px; }
  .section-more { font-size: 11.5px; }
  .post-row { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 16px 0; }
  .post-arrow { display: none; }
  .post-date b { font-size: 18px; }
  .post-title { font-size: 15px; }
  .post-excerpt { display: none; }
  .side-stack { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .stats-lead h2 { font-size: 21px; }
  .stat { padding-left: 14px; }
  .stat b { font-size: 30px; }
  .article-card { grid-template-columns: 1fr; padding: 20px 0; }
  .article-thumb { aspect-ratio: 16 / 7; }
  .article-title { font-size: 17px; }
  .post-h1 { font-size: 26px; }
  .post-hero-cover { height: 170px; padding: 18px; }
  .post-hero-cover .big { font-size: 64px; }
  .prose { font-size: 15.5px; }
  .prose h2 { font-size: 21px; }
  .post-layout { padding-top: 34px; }
  .author-box { align-items: flex-start; }
  .author-box .author-mail { margin-left: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
  .hero-actions .btn-ghost-light { display: none; }
  .resume-paper { padding: 28px 22px 32px; font-size: 12px; }
  .r-head { flex-direction: column; gap: 14px; }
  .r-contact { text-align: left; }
  .r-contact span { justify-content: flex-start; }
  .r-name { font-size: 28px; }
  .r-entry-head { flex-direction: column; gap: 2px; }
  .about-cards { grid-template-columns: 1fr; }
  .page-hero { padding: 32px 0 36px; }
  .toast { width: calc(100% - 40px); text-align: center; }
}

/* ---------- 24.5 新版块响应式 ---------- */
@media (max-width: 1040px) {
  .track-grid { grid-template-columns: 1fr 1fr; }
  .club-inner { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .page-split { grid-template-columns: 1fr; }
  .page-hero-emblem { display: none; }
}

@media (max-width: 760px) {
  .track-grid { grid-template-columns: 1fr; }
  .essay-grid { grid-template-columns: 1fr; }
  .club-band { padding: 44px 0; }
  .club-left { gap: 18px; }
  .club-emblem { width: 120px; height: 120px; }
  .club-stats { gap: 18px 14px; }
  .club-stat b { font-size: 28px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .club-left { flex-direction: column; align-items: flex-start; }
  .club-emblem { width: 104px; height: 104px; }
  .essay-card { padding: 24px 22px; }
  .essay-card.is-feature .essay-title { font-size: 21px; }
  .page-prose p.lead { font-size: 17px; }
  .nav-link { padding: 0 11px; font-size: 13.5px; }
  .nav-link.is-active::after { left: 11px; right: 11px; }
}

/* ---------- 25. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide,
  .hero-bg { transform: none !important; }
}

/* ---------- 26. 打印 ---------- */
@media print {
  @page { size: A4; margin: 12mm 13mm; }
  body { background: #fff !important; color: #000; font-size: 10.5pt; }
  .topbar, .site-header, .site-nav, .site-footer, .resume-toolbar,
  .page-hero, .back-top, .toast, .progress, .skip-link { display: none !important; }
  .resume-page { background: #fff; }
  .resume-paper {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    font-size: 9.6pt;
  }
  .r-section { break-inside: avoid; }
  .r-entry { break-inside: avoid; }
  a { color: inherit !important; text-decoration: none !important; }
}
