/* ============================================================
   涌现 EMERGENCE · 静态博客样式
   设计：暖白纸感 / 墨黑 / 朱橘，衬线标题 + 网格排印
   ============================================================ */

:root {
  --bg: #FBFAF7;
  --bg-soft: #F5F3ED;
  --surface: #FFFFFF;
  --surface-2: #F8F7F2;
  --text: #1E1D1A;
  --text-2: #4C4A43;
  --muted: #8B887E;
  --border: #E7E4DB;
  --border-strong: #D8D4C8;
  --accent: #E05A2B;
  --accent-ink: #B8411C;
  --accent-soft: #FBEDE4;
  --blue: #3B6EF5;
  --green: #0E9F8A;
  --shadow-sm: 0 1px 2px rgba(30,29,26,.04), 0 6px 18px rgba(30,29,26,.045);
  --shadow-md: 0 6px 16px rgba(30,29,26,.06), 0 22px 48px rgba(30,29,26,.08);
  --shadow-lg: 0 12px 30px rgba(30,29,26,.08), 0 40px 90px rgba(30,29,26,.10);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --maxw: 1200px;
  --header-h: 76px;
  --radius: 15px;
}

[data-theme="dark"] {
  --bg: #141413;
  --bg-soft: #1A1A18;
  --surface: #1E1E1B;
  --surface-2: #242420;
  --text: #F2F0E9;
  --text-2: #C4C1B8;
  --muted: #8E8B81;
  --border: #31312C;
  --border-strong: #43423A;
  --accent: #FF7A4F;
  --accent-ink: #FF9B78;
  --accent-soft: #33231C;
  --blue: #7C9BFF;
  --green: #4FD0B6;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 6px 18px rgba(0,0,0,.22);
  --shadow-md: 0 6px 16px rgba(0,0,0,.25), 0 22px 48px rgba(0,0,0,.32);
  --shadow-lg: 0 12px 30px rgba(0,0,0,.3), 0 40px 90px rgba(0,0,0,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid var(--bg); }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.container.narrow { width: min(100% - 48px, 820px); }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 999; padding: 10px 18px; background: var(--accent); color: #fff; border-radius: 8px; font-size: 14px; }
.skip-link:focus { top: 14px; }

/* ---------------------------------------------------------- 通用元素 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px; font-size: 14px; font-weight: 600;
  letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, background-color .25s, border-color .25s, color .25s;
}
.btn svg { width: 17px; height: 17px; transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(224,90,43,.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(224,90,43,.3); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--accent); font-weight: 600; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s; }
.text-link:hover svg { transform: translateX(4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 26px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 9px transparent; } }
.dot-sep { color: var(--border-strong); margin: 0 2px; }
.section-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--accent); margin: 0 0 12px; font-weight: 600; }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; margin: 0; }
.section-hint { font-size: 13px; color: var(--muted); margin: 0; }
.section { padding: 92px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.accent-word { color: var(--accent); position: relative; }
.accent-word::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.06em; height: .09em; background: var(--accent); opacity: .28; border-radius: 2px; }

/* ---------------------------------------------------------- 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 120; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; font-size: 20px; font-weight: 800; letter-spacing: .02em; line-height: 1; }
.brand-en { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .28em; color: var(--muted); font-weight: 500; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-link { position: relative; font-size: 14px; font-weight: 500; color: var(--text-2); padding: 8px 0; transition: color .2s; }
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--text); font-weight: 700; }
.nav-link.is-active::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-2); transition: background-color .2s, color .2s, transform .2s; }
.icon-btn:hover { background: var(--bg-soft); color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }
.menu-toggle { display: none; }

/* ---------------------------------------------------------- 搜索浮层 */
.search-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(18,17,15,.48); backdrop-filter: blur(6px); padding: 12vh 20px 20px; }
.search-overlay[hidden] { display: none; }
.search-box { width: min(100%, 660px); margin-inline: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.search-input-wrap { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.search-input-wrap input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; }
.search-input-wrap input::placeholder { color: var(--muted); }
kbd { font-family: var(--font-mono); font-size: 10.5px; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); background: var(--bg-soft); }
.search-results { max-height: min(52vh, 420px); overflow-y: auto; padding: 8px; }
.search-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 10px; transition: background-color .15s; }
.search-item:hover, .search-item.is-active { background: var(--bg-soft); }
.search-item-idx { font-family: var(--font-mono); font-size: 11px; color: var(--accent); padding-top: 4px; width: 22px; flex-shrink: 0; }
.search-item-body { flex: 1; min-width: 0; display: block; }
.search-item-title { display: block; font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.search-item-meta { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.search-item-excerpt { display: block; font-size: 12.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-arrow { color: var(--accent); opacity: 0; transition: opacity .15s; }
.search-item:hover .search-item-arrow { opacity: 1; }
.search-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.search-foot { display: flex; justify-content: space-between; padding: 12px 24px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ---------------------------------------------------------- Hero */
.hero { position: relative; padding: 96px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 68px 68px; opacity: .42; -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); mask-image: linear-gradient(to bottom, #000 0%, transparent 78%); }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .16; }
.hero-bg span:nth-child(1) { width: 420px; height: 420px; background: var(--accent); top: -120px; right: -80px; }
.hero-bg span:nth-child(2) { width: 340px; height: 340px; background: var(--blue); bottom: 60px; left: -140px; opacity: .1; }
.hero-bg span:nth-child(3) { width: 260px; height: 260px; background: var(--green); top: 220px; right: 30%; opacity: .08; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; }
.hero-title { font-family: var(--font-serif); font-size: clamp(52px, 6.6vw, 92px); font-weight: 700; line-height: 1.14; letter-spacing: -.035em; margin: 0 0 28px; }
.hero-period { color: var(--accent); }
.hero-desc { font-size: 16.5px; line-height: 1.95; color: var(--text-2); max-width: 500px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-hero-note { display: flex; align-items: center; gap: 12px; margin-top: 44px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.note-line { width: 34px; height: 1px; background: var(--accent); }
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-orbit { position: absolute; width: 400px; height: 400px; border: 1px dashed var(--border-strong); border-radius: 50%; opacity: .6; }
.hero-orbit::after { content: ""; position: absolute; inset: 44px; border: 1px solid var(--border); border-radius: 50%; }
.hero-panel { position: relative; z-index: 2; width: 100%; max-width: 410px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.4deg); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.hero-panel:hover { transform: rotate(0deg); }
.hero-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.window-dots { display: inline-flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.window-dots i:first-child { background: var(--accent); opacity: .8; }
.panel-badge { margin-left: auto; color: var(--accent); font-weight: 700; }
.hero-mini { display: flex; align-items: center; gap: 14px; padding: 17px 20px; border-bottom: 1px solid var(--border); transition: background-color .2s; }
.hero-mini:last-of-type { border-bottom: 0; }
.hero-mini:hover { background: var(--bg-soft); }
.hero-mini-date { font-family: var(--font-mono); font-size: 11px; color: var(--accent); flex-shrink: 0; }
.hero-mini-title { flex: 1; font-size: 13.5px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-mini svg { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; transition: transform .2s, color .2s; }
.hero-mini:hover svg { transform: translateX(3px); color: var(--accent); }
.hero-panel-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; background: var(--bg-soft); font-size: 12px; font-weight: 600; color: var(--accent); }
.hero-panel-foot svg { width: 15px; height: 15px; }
.hero-float { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); animation: float 5s ease-in-out infinite; }
.hero-float-a { top: 12px; right: -12px; }
.hero-float-b { bottom: 18px; left: -18px; animation-delay: -2.5s; }
.float-num, .float-symbol { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--accent); }
.float-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 82px; padding: 34px 0 40px; border-top: 1px solid var(--border); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat strong { font-family: var(--font-serif); font-size: 38px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.stat strong em { font-style: normal; font-size: 20px; margin-left: 2px; }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- 精选 */
.featured-section { background: var(--bg); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature-card { display: grid; grid-template-columns: 44% 1fr; min-height: 310px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature-media { position: relative; overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.feature-card:hover .feature-media img { transform: scale(1.06); }
.feature-index { position: absolute; top: 16px; left: 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #fff; background: rgba(30,29,26,.55); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 6px; letter-spacing: .1em; }
.feature-body { padding: 28px 26px; display: flex; flex-direction: column; }
.feature-body h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; margin: 16px 0 12px; }
.feature-body > p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.byline-mini { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--muted); font-family: var(--font-mono); }
.byline-mini img { width: 24px; height: 24px; border-radius: 50%; }
.arrow-circle { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; transition: background-color .25s, color .25s, transform .25s; }
.arrow-circle svg { width: 16px; height: 16px; }
.feature-card:hover .arrow-circle { background: var(--accent); color: #fff; transform: translateX(3px); }

/* ---------------------------------------------------------- 文章卡片网格 */
.latest-section { background: var(--bg-soft); border-block: 1px solid var(--border); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-card-media { position: relative; aspect-ratio: 16 / 9.6; overflow: hidden; background: var(--bg-soft); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.post-card:hover .post-card-media img { transform: scale(1.055); }
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 6px; background: var(--surface); color: var(--cat, var(--accent)); font-size: 11px; font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.08); letter-spacing: .02em; }
.cat-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat, var(--accent)); }
.post-card-media .cat-badge { position: absolute; top: 14px; left: 14px; }
.post-card-body { padding: 21px 22px 19px; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 11px; }
.post-card-title { font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-excerpt { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-tag { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); background: var(--bg-soft); padding: 3px 7px; border-radius: 5px; }
.read-more { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.read-more svg { width: 14px; height: 14px; transition: transform .25s; }
.post-card:hover .read-more svg { transform: translateX(4px); }
.section-more { display: flex; justify-content: center; margin-top: 46px; }

/* ---------------------------------------------------------- 栏目 */
.topics-section { background: var(--bg); }
.topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.topic-card { position: relative; display: block; padding: 24px 22px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden; }
.topic-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cat); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.topic-card:hover::after { transform: scaleX(1); }
.topic-dot { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--cat); margin-bottom: 20px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat) 15%, transparent); }
.topic-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; margin: 0 0 9px; }
.topic-count { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.topic-card p { font-size: 12.5px; line-height: 1.75; color: var(--muted); margin: 0; }
.topic-arrow { position: absolute; right: 18px; bottom: 20px; color: var(--cat); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.topic-arrow svg { width: 18px; height: 18px; }
.topic-card:hover .topic-arrow { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Newsletter */
.newsletter-section { padding: 0 0 96px; background: var(--bg); }
.newsletter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 56px 60px; border-radius: 22px; overflow: hidden; background: linear-gradient(125deg, #24221E 0%, #2E2A24 55%, #3A2C22 100%); color: #F5F2EA; box-shadow: var(--shadow-lg); }
.newsletter .section-kicker { color: #FF9B78; }
.newsletter-copy h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 700; margin: 0 0 14px; letter-spacing: -.02em; }
.newsletter-copy p:last-child { font-size: 14px; line-height: 1.85; color: rgba(245,242,234,.68); margin: 0; max-width: 400px; }
.newsletter-deco { position: absolute; width: 440px; height: 440px; border-radius: 50%; right: -160px; top: -180px; background: radial-gradient(circle, rgba(224,90,43,.35), transparent 68%); pointer-events: none; }
.newsletter-deco::after { content: ""; position: absolute; inset: 60px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.newsletter-form { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.newsletter-form input { flex: 1; min-width: 200px; padding: 14px 18px; border-radius: 11px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07); color: #fff; outline: 0; font-size: 14px; transition: border-color .2s, background-color .2s; }
.newsletter-form input::placeholder { color: rgba(245,242,234,.45); }
.newsletter-form input:focus { border-color: #FF9B78; background: rgba(255,255,255,.12); }
.newsletter-form .btn-solid { background: var(--accent); color: #fff; }
.newsletter-form .btn-solid:hover { background: #FF7A4F; }
.form-hint { flex-basis: 100%; font-family: var(--font-mono); font-size: 11px; color: rgba(245,242,234,.5); }
.form-hint a { color: #FF9B78; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- 页脚 */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 68px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr .8fr .8fr 1.3fr; gap: 44px; padding-bottom: 56px; }
.footer-about p { font-size: 13px; line-height: 1.85; color: var(--muted); margin: 20px 0 22px; max-width: 320px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { font-family: var(--font-mono); font-size: 11px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 7px; color: var(--text-2); transition: all .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.footer-col h4, .footer-sub h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin: 6px 0 20px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 12px; transition: color .2s, transform .2s; }
.footer-col a:hover { color: var(--accent); transform: translateX(3px); }
.footer-sub p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 16px; }
.subscribe-form { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 5px; }
.subscribe-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 10px; font-size: 13px; }
.subscribe-form button { width: 36px; height: 36px; border-radius: 7px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
.subscribe-form button:hover { transform: translateX(2px); }
.subscribe-form button svg { width: 16px; height: 16px; }
.subscribe-note { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 26px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.footer-meta a { color: var(--text-2); }
.footer-meta a:hover { color: var(--accent); }
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 19px; height: 19px; }

/* ---------------------------------------------------------- 页头（列表/归档/关于） */
.page-head { position: relative; padding: 84px 0 46px; border-bottom: 1px solid var(--border); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--border-strong) 1px, transparent 1px); background-size: 22px 22px; opacity: .3; -webkit-mask-image: linear-gradient(to right, #000, transparent 70%); mask-image: linear-gradient(to right, #000, transparent 70%); pointer-events: none; }
.page-head .container { position: relative; }
.page-title { font-family: var(--font-serif); font-size: clamp(42px, 5.4vw, 68px); font-weight: 700; line-height: 1.16; letter-spacing: -.035em; margin: 0 0 20px; }
.page-desc { font-size: 16px; line-height: 1.9; color: var(--text-2); max-width: 660px; margin: 0; }
.archive-summary { display: flex; flex-wrap: wrap; gap: 46px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--border); }
.archive-summary div { display: flex; flex-direction: column; gap: 2px; }
.archive-summary strong { font-family: var(--font-serif); font-size: 30px; line-height: 1; }
.archive-summary span { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------- 文章列表页 */
.blog-section { padding-top: 48px; }
.blog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.blog-search { display: flex; align-items: center; gap: 11px; flex: 1; max-width: 380px; min-width: 240px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s, box-shadow .2s; }
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.blog-search svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; }
.blog-search input::placeholder { color: var(--muted); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip { padding: 8px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; color: var(--text-2); transition: all .2s; }
.filter-chip span { font-family: var(--font-mono); font-size: 10.5px; opacity: .65; margin-left: 3px; }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.result-line { display: flex; justify-content: space-between; padding: 26px 2px 18px; font-size: 12.5px; color: var(--muted); }
.result-line strong { color: var(--accent); font-family: var(--font-mono); }
.sort-note { font-family: var(--font-mono); font-size: 11px; }
.list-cards { display: flex; flex-direction: column; gap: 18px; }
.list-card { display: grid; grid-template-columns: 268px 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s; }
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.list-card[hidden] { display: none; }
.list-card-media { overflow: hidden; min-height: 210px; }
.list-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.list-card:hover .list-card-media img { transform: scale(1.05); }
.list-card-body { padding: 24px 28px; display: flex; flex-direction: column; }
.list-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.list-card-top time { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.list-card-body h3 { font-family: var(--font-serif); font-size: 23px; font-weight: 700; line-height: 1.45; letter-spacing: -.01em; margin: 0 0 10px; }
.list-card-body > p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0; }
.list-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.list-card-foot > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.list-card-foot svg { width: 14px; height: 14px; color: var(--accent); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state[hidden] { display: none; }
.empty-mark { font-family: var(--font-serif); font-size: 56px; color: var(--border-strong); }
.empty-state h3 { font-family: var(--font-serif); font-size: 22px; margin: 10px 0 8px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.empty-state a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------- 归档页 */
.archive-section { padding-top: 60px; }
.archive-group { margin-bottom: 54px; }
.archive-month { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 2px solid var(--border); margin-bottom: 6px; }
.month-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -.04em; }
.month-label { font-size: 15px; font-weight: 600; }
.month-count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.archive-row { display: grid; grid-template-columns: 62px 84px 1fr 66px 18px; align-items: center; gap: 16px; padding: 17px 12px; border-bottom: 1px solid var(--border); border-radius: 8px; transition: background-color .2s, transform .2s; }
.archive-row:hover { background: var(--surface); transform: translateX(5px); }
.archive-date { font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--text-2); }
.archive-date small { font-size: 10px; color: var(--muted); }
.archive-cat { font-size: 11.5px; color: var(--cat); font-weight: 600; }
.archive-title { font-size: 15.5px; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-meta { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; }
.archive-row > svg { width: 16px; height: 16px; color: var(--accent); opacity: 0; transition: opacity .2s; }
.archive-row:hover > svg { opacity: 1; }

/* ---------------------------------------------------------- 关于页 */
.about-hero { padding: 80px 0 20px; }
.about-intro { display: grid; grid-template-columns: 210px 1fr; gap: 58px; align-items: center; }
.about-avatar { position: relative; width: 190px; height: 190px; }
.about-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-ring { position: absolute; inset: -10px; border: 1px dashed var(--accent); border-radius: 50%; opacity: .5; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.about-copy .eyebrow { margin-bottom: 20px; }
.about-role { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin: 0 0 22px; }
.about-lead { font-size: 17px; line-height: 1.95; color: var(--text-2); max-width: 620px; margin: 0 0 30px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.about-body { padding-top: 40px; padding-bottom: 40px; }
.now-section { background: var(--bg-soft); border-block: 1px solid var(--border); }
.now-list { list-style: none; padding: 0; margin: 0 0 40px; }
.now-list li { position: relative; padding: 13px 0 13px 30px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--text-2); line-height: 1.8; }
.now-list li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 2px; transform: rotate(45deg); }
.skills-wrap h3 { font-size: 15px; margin: 0 0 18px; }
.skills { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-tag { font-size: 12.5px; padding: 8px 14px; border: 1px solid var(--border); background: var(--surface); border-radius: 8px; color: var(--text-2); }
.timeline { position: relative; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 79px; top: 12px; bottom: 12px; width: 1px; background: var(--border-strong); }
.tl-item { display: grid; grid-template-columns: 70px 20px 1fr; gap: 22px; align-items: start; padding-bottom: 30px; }
.tl-year { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.tl-dot { position: relative; z-index: 1; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); margin-top: 8px; margin-left: 4px; }
.tl-body h3 { font-size: 16px; margin: 0 0 6px; }
.tl-body p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0; }
.contact-section { padding-top: 20px; }
.contact-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 26px; padding: 44px 48px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; }
.contact-card h2 { font-family: var(--font-serif); font-size: 28px; margin: 0 0 10px; }
.contact-card p { font-size: 14px; color: var(--muted); margin: 0; max-width: 480px; line-height: 1.8; }

/* ---------------------------------------------------------- 文章正文页 */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 350; background: transparent; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .1s linear; }
.post-page { padding: 40px 0 10px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 44px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span:not(:last-child) { color: var(--border-strong); }
.post-header { margin-bottom: 40px; }
.post-head-tags { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.post-number { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.post-title { font-family: var(--font-serif); font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1.28; letter-spacing: -.03em; margin: 0 0 20px; }
.post-lede { font-size: 18px; line-height: 1.85; color: var(--text-2); margin: 0; max-width: 720px; }
.post-byline { display: flex; align-items: center; gap: 13px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.byline-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.byline-text { display: flex; flex-direction: column; line-height: 1.4; }
.byline-text strong { font-size: 13.5px; }
.byline-text span { font-size: 11px; color: var(--muted); }
.byline-sep { width: 1px; height: 28px; background: var(--border); margin: 0 6px; }
.byline-meta { display: flex; flex-direction: column; line-height: 1.5; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.post-cover { margin: 0 0 52px; }
.post-cover img { width: 100%; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.post-cover figcaption, .article-figure figcaption { text-align: center; font-size: 12px; color: var(--muted); margin-top: 13px; line-height: 1.7; }

/* ---------------------------------------------------------- 正文排版 */
.prose { font-size: 17px; line-height: 1.98; color: var(--text-2); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.55em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 { font-family: var(--font-serif); font-size: 27px; font-weight: 700; color: var(--text); line-height: 1.5; letter-spacing: -.015em; margin: 2.5em 0 .9em; padding-left: 18px; border-left: 3px solid var(--accent); }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--text); margin: 2em 0 .7em; }
.prose a.inline-link { color: var(--accent-ink); border-bottom: 1px dashed var(--accent); padding-bottom: 1px; font-weight: 600; transition: color .2s, border-color .2s; }
.prose a.inline-link:hover { color: var(--accent); border-bottom-style: solid; }
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--accent-soft); color: var(--accent-ink); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.7em; }
.prose li { margin: .55em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 2em 0; padding: 22px 28px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.85; color: var(--text); }
.prose .note { margin: 2em 0; padding: 20px 24px; background: color-mix(in srgb, var(--blue) 6%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--border)); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.prose .note strong { color: var(--blue); }
.prose .formula { margin: 1.9em 0; padding: 24px 26px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; text-align: center; font-family: "Cambria Math", Georgia, var(--font-serif); font-size: 20px; line-height: 1.8; color: var(--text); overflow-x: auto; white-space: nowrap; }
.prose .formula sub, .prose .formula sup { font-size: .65em; }
.prose .formula strong { color: var(--accent); }
.prose .code-block { margin: 2em 0; border-radius: 12px; overflow: hidden; background: #1C1C1A; border: 1px solid #33332E; box-shadow: var(--shadow-sm); }
.prose .code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 20px; background: rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.07); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: #8E8B81; }
.prose .code-lang { color: #FF9B78; font-weight: 700; }
.prose .code-block pre { margin: 0; padding: 22px 24px; overflow-x: auto; }
.prose .code-block code { display: block; padding: 0; background: none; color: #E6E3DA; font-family: var(--font-mono); font-size: 13px; line-height: 1.85; white-space: pre; border-radius: 0; }
.prose .article-figure { margin: 2.6em 0; }
.prose .article-figure img { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #FCFBF8; }
.prose .divider { border: 0; text-align: center; margin: 3em 0; height: 20px; }
.prose .divider::before { content: "· · ·"; font-family: var(--font-serif); font-size: 22px; letter-spacing: .6em; color: var(--accent); }
.prose .postscript { font-size: 14px; color: var(--muted); }
.post-endmark { display: flex; justify-content: center; gap: 7px; margin: 52px 0 34px; }
.post-endmark span { width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: rotate(45deg); opacity: .8; }
.post-endmark span:nth-child(2) { opacity: .5; }
.post-endmark span:nth-child(3) { opacity: .25; }
.post-tags-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 24px 0; border-top: 1px solid var(--border); }
.tags-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); margin-right: 6px; }
.tag-pill { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); background: var(--surface); transition: all .2s; }
.tag-pill:hover { border-color: var(--accent); color: var(--accent); }
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 20px 0 0; font-size: 13px; color: var(--muted); }
.share-btn { padding: 8px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--text-2); background: var(--surface); transition: all .2s; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.post-nav-section { padding: 50px 0 0; }
.pn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pn-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pn-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-sm); }
.pn-card span { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.pn-card strong { font-size: 15px; line-height: 1.55; font-weight: 600; }
.pn-next { text-align: right; }
.comments-section { padding: 70px 0 0; }
.comments-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.comments-head h2 { font-family: var(--font-serif); font-size: 24px; margin: 0; }
.comments-head h2 span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.comments-head p { font-size: 12.5px; color: var(--muted); margin: 0; }
.comments-head a { color: var(--accent); }
.comment-list { padding: 8px 0; }
.comment { display: flex; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.comment-avatar { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; background: var(--c); }
.comment-body { flex: 1; }
.comment-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 7px; }
.comment-head strong { font-size: 13.5px; }
.comment-head time { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.comment-body p { font-size: 14px; line-height: 1.85; color: var(--text-2); margin: 0 0 8px; }
.comment-reply { font-size: 11.5px; color: var(--muted); padding: 0; }
.comment-reply:hover { color: var(--accent); }
.comment-form { margin-top: 26px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.comment-form textarea { width: 100%; resize: vertical; border: 0; outline: 0; background: transparent; font-size: 14px; line-height: 1.8; padding: 4px; }
.comment-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); }
.comment-form-foot span { font-size: 11.5px; color: var(--muted); }
.comment-form-foot .btn { padding: 9px 18px; font-size: 12.5px; }
.related-section { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 90px; }
.related-grid { grid-template-columns: repeat(2, 1fr); }

/* ---------------------------------------------------------- 滚动出现动画 */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-title { font-size: clamp(46px, 6vw, 72px); }
  .hero-float-a { right: 0; }
  .hero-float-b { left: 0; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-sub { grid-column: 1 / -1; }
  .feature-card { grid-template-columns: 40% 1fr; }
}

@media (max-width: 900px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .nav.is-open { display: flex; }
  .nav-link { padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-link.is-active::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-visual { min-height: 360px; }
  .hero-panel { transform: none; }
  .hero-orbit { width: 340px; height: 340px; }
  .hero-stats { margin-top: 54px; }
  .feature-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { grid-template-columns: 1fr; gap: 32px; padding: 44px 38px; }
  .list-card { grid-template-columns: 200px 1fr; }
  .about-intro { grid-template-columns: 150px 1fr; gap: 34px; }
  .about-avatar { width: 140px; height: 140px; }
}

@media (max-width: 640px) {
  .container, .container.narrow { width: min(100% - 32px, var(--maxw)); }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .header-inner { gap: 12px; }
  .brand-name { font-size: 18px; }
  .hero-title { font-size: clamp(42px, 11vw, 60px); }
  .hero-desc { font-size: 15px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; margin-top: 44px; }
  .stat strong { font-size: 30px; }
  .hero-visual { min-height: 320px; }
  .hero-float { display: none; }
  .hero-orbit { width: 280px; height: 280px; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-media { aspect-ratio: 16 / 9; }
  .feature-body { padding: 24px 22px; }
  .post-grid, .related-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter { padding: 36px 26px; }
  .newsletter-copy h2 { font-size: 27px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .list-card { grid-template-columns: 1fr; }
  .list-card-media { min-height: 0; aspect-ratio: 16 / 8; }
  .list-card-body { padding: 20px 22px; }
  .list-card-body h3 { font-size: 20px; }
  .list-card-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .blog-search { max-width: none; }
  .page-head { padding: 56px 0 34px; }
  .archive-summary { gap: 26px; }
  .archive-row { grid-template-columns: 46px 1fr 16px; gap: 10px; padding: 15px 8px; }
  .archive-cat, .archive-meta { display: none; }
  .archive-date { font-size: 13px; }
  .archive-title { font-size: 14px; white-space: normal; }
  .about-intro { grid-template-columns: 1fr; gap: 26px; }
  .about-avatar { width: 110px; height: 110px; }
  .about-lead { font-size: 15.5px; }
  .timeline::before { left: 59px; }
  .tl-item { grid-template-columns: 52px 16px 1fr; gap: 14px; }
  .contact-card { padding: 32px 26px; }
  .post-page { padding-top: 28px; }
  .breadcrumb { margin-bottom: 30px; }
  .post-title { font-size: clamp(30px, 8vw, 40px); }
  .post-lede { font-size: 16px; }
  .post-byline { flex-wrap: wrap; gap: 10px; }
  .byline-sep { display: none; }
  .byline-meta { flex-basis: 100%; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose h2 { font-size: 23px; }
  .prose .formula { font-size: 16px; padding: 18px 14px; }
  .prose .code-block code { font-size: 12px; }
  .prose .code-block pre { padding: 18px 16px; }
  .prose blockquote { font-size: 17px; padding: 18px 20px; }
  .pn-grid { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .post-share { gap: 8px; }
  .search-overlay { padding-top: 8vh; }
  .search-input-wrap { padding: 16px 18px; }
  .search-foot { padding: 10px 18px; }
}

@media (max-width: 380px) {
  .topic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; padding: 12px 16px; }
}

/* ---------------------------------------------------------- 交互反馈 */
.site-toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 500;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  transition: opacity .28s, transform .28s; white-space: nowrap; max-width: calc(100vw - 32px);
}
.site-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.form-success { display: flex; align-items: center; gap: 14px; }
.form-success > span { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.form-success strong { font-size: 14px; display: block; }
.form-success p { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin: 2px 0 0; }
.subscribe-form:has(.form-success) { padding: 12px 16px; background: var(--surface-2); }
.newsletter-form:has(.form-success) { color: #fff; }
.newsletter-form .form-success p { color: rgba(245,242,234,.7); }
