/* ═══════════════════════════════════════════════════════════════
   Orion. Blog — Premium Dark Theme
   设计语言: 深色底 · 粉紫品牌渐变 · 细腻描边 · 克制动效
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* 背景层级 */
  --bg0: #0a0d13;
  --bg1: #0e131c;
  --bg2: #141a25;
  --card: #111722;
  --card-hover: #151d2b;
  /* 描边 */
  --line: rgba(148, 163, 184, .14);
  --line-soft: rgba(148, 163, 184, .08);
  /* 文字 */
  --text: #e8edf5;
  --muted: #9aa7b8;
  --faint: #5f6b7c;
  /* 品牌色 */
  --rose: #ff6fb5;
  --violet: #a78bfa;
  --blue: #7fb2ff;
  --grad: linear-gradient(120deg, #ff6fb5 10%, #a78bfa 90%);
  /* 圆角/阴影 */
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "SF Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg0);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* 环境光背景 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(820px 420px at 12% -8%, rgba(255, 111, 181, .08), transparent 62%),
    radial-gradient(900px 480px at 88% -12%, rgba(167, 139, 250, .09), transparent 62%),
    radial-gradient(1100px 620px at 50% 118%, rgba(99, 60, 160, .14), transparent 68%);
}
::selection { background: var(--rose); color: #0a0d13; }
a { color: var(--blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--rose); }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg0); }
::-webkit-scrollbar-thumb { background: #232c3b; border-radius: 8px; border: 2px solid var(--bg0); }
::-webkit-scrollbar-thumb:hover { background: #31405a; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 860px; }
.mono { font-family: var(--mono); color: var(--rose); font-size: .92em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  font-family: var(--mono); font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rose);
}

/* 动画状态（无 JS 时内容直接可见） */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════ 导航栏 ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 19, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #0a0d13; font-weight: 900; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(255, 111, 181, .35);
}
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: .02em; }
.brand-name .accent { color: var(--rose); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-size: .95rem; font-weight: 600;
  padding: 7px 15px; border-radius: 9px; transition: all .18s ease;
}
.nav-links a:hover { color: var(--text); background: var(--line-soft); text-decoration: none; }
.nav-links a.active { color: #fff; background: rgba(255, 111, 181, .12); box-shadow: inset 0 0 0 1px rgba(255, 111, 181, .35); }
.nav-gh { display: inline-flex !important; align-items: center; gap: 7px; margin-left: 8px; }
.nav-burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; flex-direction: column; gap: 4px; }
.nav-burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ═══════════ 按钮 ═══════════ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; line-height: 1;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(255, 111, 181, .22); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 10px 28px rgba(255, 111, 181, .34); text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); text-decoration: none; }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-color: var(--line); color: var(--muted); border-radius: 12px; }
.btn-icon:hover { border-color: var(--rose); color: var(--rose); transform: translateY(-2px); text-decoration: none; }

/* ═══════════ Hero（首页） ═══════════ */
.hero { position: relative; padding: 92px 0 64px; text-align: center; }
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(720px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 111, 181, .45), rgba(167, 139, 250, .45), transparent);
}
.hero-avatar { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 50%; padding: 3px; background: var(--grad); }
.hero-avatar img { width: 100%; height: 100%; border-radius: 50%; display: block; background: var(--bg2); }
.hero-title {
  margin: 18px 0 0; font-size: clamp(2.7rem, 6.5vw, 4.4rem);
  font-weight: 850; line-height: 1.15; letter-spacing: -0.02em;
}
.hero-sub { margin: 20px auto 0; max-width: 640px; color: var(--muted); font-size: 1.06rem; }
.hero-sub em { color: var(--text); font-style: normal; }
.hero-cta { margin-top: 30px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 34px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 0; color: var(--faint); font-family: var(--mono); font-size: .82rem; letter-spacing: .04em;
}
.hero-meta span { padding: 0 14px; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); opacity: .7; }
.hero-meta .badge { color: inherit; }
.hero-meta span:first-child { padding-left: 0; }
.hero-meta span:last-child { padding-right: 0; }

/* ═══════════ 统计带 ═══════════ */
.stat-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 58px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--mono); font-size: 1.9rem; font-weight: 800; line-height: 1.2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 4px; color: var(--faint); font-size: .8rem; letter-spacing: .12em; }

/* ═══════════ 区块通用 ═══════════ */
.section { padding: 84px 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015) 8%, rgba(255, 255, 255, .015) 92%, transparent); }
.section-top-none { padding-top: 24px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-head h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 8px; }
.sec-link { font-size: .92rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.sec-link:hover { color: var(--rose); text-decoration: none; }

/* ═══════════ 文章行 ═══════════ */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-row {
  display: flex; gap: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.post-row:hover { transform: translateY(-3px); border-color: rgba(255, 111, 181, .4); box-shadow: 0 16px 44px rgba(0, 0, 0, .35); }
.post-cover { flex: 0 0 236px; min-height: 168px; display: block; position: relative; overflow: hidden; }
.cover { position: absolute; inset: 0; }
.cover-num {
  position: absolute; right: 14px; bottom: -20px;
  font-family: var(--mono); font-weight: 900; font-size: 5.4rem; line-height: 1;
  color: rgba(255, 255, 255, .22); user-select: none;
}
.cover-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(10, 13, 19, .45); color: #fff; backdrop-filter: blur(6px);
  font-size: .74rem; letter-spacing: .1em; padding: 3px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
}
.cover-grid { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.cover-glow { position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 110%, rgba(255, 255, 255, .28), transparent 55%); }
.post-body { flex: 1; padding: 26px 30px; min-width: 0; }
.post-meta { font-family: var(--mono); font-size: .8rem; color: var(--faint); letter-spacing: .05em; }
.post-meta .dot { margin: 0 8px; color: var(--rose); }
.post-body h3 { margin: 8px 0 10px; font-size: 1.3rem; line-height: 1.4; font-weight: 750; letter-spacing: -0.01em; }
.post-body h3 a { color: var(--text); }
.post-body h3 a:hover { color: var(--rose); text-decoration: none; }
.excerpt { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: .74rem; color: var(--muted); background: var(--line-soft);
  border: 1px solid var(--line); padding: 2px 12px; border-radius: 999px;
  font-family: var(--mono); letter-spacing: .04em;
}
.more { font-size: .9rem; font-weight: 700; color: var(--text); }
.more:hover { color: var(--rose); text-decoration: none; }
.more span { color: var(--rose); transition: transform .2s; display: inline-block; }
.more:hover span { transform: translateX(4px); }

/* 纯文本列表（文章归档页） */
.post-list-plain .post-row {
  padding: 0; align-items: stretch;
  border-left: 3px solid transparent;
}
.post-list-plain .post-row:hover { border-left-color: var(--rose); }
.post-list-plain .post-body { display: flex; flex-direction: column; }

/* ═══════════ 仓库卡片 ═══════════ */
.repo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.repo-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.repo-card:hover { transform: translateY(-4px); border-color: rgba(167, 139, 250, .5); box-shadow: 0 18px 46px rgba(0, 0, 0, .4); }
.repo-top { display: flex; align-items: center; gap: 9px; min-width: 0; flex-wrap: wrap; }
.repo-name { font-family: var(--mono); font-size: 1.02rem; font-weight: 800; color: var(--text); letter-spacing: .01em; }
.repo-badge {
  font-size: .68rem; color: #0a0d13; font-weight: 800;
  background: var(--grad); padding: 2px 9px; border-radius: 999px; letter-spacing: .06em;
}
.repo-owner { font-size: .78rem; color: var(--violet); font-family: var(--mono); }
.lang-name { margin-left: auto; font-size: .78rem; color: var(--faint); font-family: var(--mono); }
.lang-dot { font-size: .8rem; }
.repo-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.repo-meta { display: flex; align-items: center; gap: 20px; font-family: var(--mono); font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }
.repo-stat { display: inline-flex; align-items: center; gap: 6px; }
.repo-stat .st { color: #f5c04e; }
.last-push { color: var(--faint); margin-left: auto; }
.repo-link { font-size: .9rem; font-weight: 700; color: var(--text); }
.repo-link:hover { color: var(--rose); text-decoration: none; }
.repo-link svg { vertical-align: -3px; margin-left: 2px; }

/* ═══════════ CTA 带 ═══════════ */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 111, 181, .1), rgba(167, 139, 250, .12));
  border: 1px solid rgba(255, 111, 181, .25);
  border-radius: 20px; padding: 40px 44px; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 140% at 100% 0%, rgba(255,255,255,.08), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: 1.55rem; font-weight: 800; margin: 10px 0 6px; letter-spacing: -0.01em; }
.cta-band p { color: var(--muted); }
.cta-band .btn { position: relative; z-index: 1; }

/* ═══════════ 页面头（文章/关于归档） ═══════════ */
.page-head { padding: 84px 0 56px; }
.page-title { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 850; letter-spacing: -0.02em; margin-top: 12px; display: flex; align-items: center; gap: 16px; }
.page-title .count {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--rose);
  background: rgba(255, 111, 181, .1); border: 1px solid rgba(255, 111, 181, .3);
  padding: 2px 14px; border-radius: 999px; letter-spacing: .04em;
}
.page-sub { margin-top: 14px; color: var(--muted); max-width: 620px; }

/* 筛选 chips */
.filter-bar { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; }
.f-chip {
  background: var(--card); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 18px; font-size: .9rem; font-weight: 600;
  transition: all .18s ease;
}
.f-chip:hover { color: var(--text); border-color: var(--violet); }
.f-chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 16px rgba(255, 111, 181, .3); }
.f-chip em { font-style: normal; opacity: .8; font-family: var(--mono); font-size: .78rem; margin-left: 4px; }
.empty-state { color: var(--faint); text-align: center; padding: 60px 0; font-family: var(--mono); }

/* ═══════════ 文章页 ═══════════ */
.reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 200; background: transparent; pointer-events: none; }
.reading-progress i { display: block; height: 100%; width: 0%; background: var(--grad); box-shadow: 0 0 12px rgba(255, 111, 181, .6); }
.article { max-width: 780px; margin: 0 auto; padding: 56px 28px 40px; }
.back-link { font-family: var(--mono); font-size: .88rem; color: var(--faint); }
.back-link:hover { color: var(--rose); text-decoration: none; }
.article-head { margin-top: 22px; }
.cover-banner {
  position: relative; height: 220px; border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 30px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.cb-num {
  font-family: var(--mono); font-weight: 900; font-size: clamp(5rem, 16vw, 8.5rem);
  color: rgba(255, 255, 255, .28); letter-spacing: -.02em; user-select: none; z-index: 1;
}
.cover-banner .cover-grid { opacity: .12; }
.cover-banner .cover-glow { background: radial-gradient(80% 120% at 50% 130%, rgba(255,255,255,.3), transparent 60%); }
.article-meta { font-family: var(--mono); font-size: .84rem; color: var(--faint); letter-spacing: .05em; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.article-meta .tag { font-size: .72rem; }
.article-meta .dot { margin: 0 10px; color: var(--rose); }
.article-head h1 { margin: 16px 0 14px; font-size: clamp(1.85rem, 4.4vw, 2.6rem); font-weight: 850; line-height: 1.3; letter-spacing: -0.015em; }
.lead { color: var(--muted); font-size: 1.13rem; line-height: 1.9; }
.article-body { margin-top: 34px; }
.article-body p { margin-bottom: 20px; color: #c6cfdb; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--rose); font-style: normal; }
.article-body a { border-bottom: 1px solid rgba(127, 178, 255, .4); }
.article-body a:hover { border-color: var(--rose); text-decoration: none; }
.article-body h2 {
  margin: 46px 0 16px; padding-top: 8px;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
.article-body h2::before {
  content: ""; width: 4px; height: 1.35em; border-radius: 4px;
  background: var(--grad); flex: 0 0 auto;
}
.article-body h3 { margin: 32px 0 12px; font-size: 1.2rem; font-weight: 750; color: var(--violet); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 6px; list-style: none; }
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 26px; margin-bottom: 10px; color: #c6cfdb;
}
.article-body ul li::before { content: "→"; position: absolute; left: 2px; color: var(--rose); font-weight: 700; }
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--violet);
}
.article-body code {
  font-family: var(--mono); font-size: .86em;
  background: rgba(167, 139, 250, .12); color: #d8c8ff;
  border: 1px solid rgba(167, 139, 250, .2);
  padding: 1px 8px; border-radius: 6px; white-space: nowrap;
}
.article-body pre {
  background: #0b0f16; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; overflow-x: auto; margin: 26px 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.article-body pre code { background: none; border: none; padding: 0; color: #b9c6d8; white-space: pre; font-size: .86rem; line-height: 1.75; }
.article-body blockquote {
  margin: 28px 0; padding: 18px 24px;
  background: rgba(255, 111, 181, .05);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--muted);
}
.article-body blockquote strong { color: var(--text); }
.article-end { display: flex; align-items: center; gap: 16px; margin: 56px 0 20px; }
.ae-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.ae-mark { color: var(--rose); font-size: .7rem; }
.pn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.pn {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 18px 22px;
  transition: all .2s ease; color: var(--text);
}
.pn:hover { transform: translateY(-2px); border-color: rgba(255, 111, 181, .45); color: var(--text); text-decoration: none; }
.pn:last-child { text-align: right; }
.pn-dir { font-family: var(--mono); font-size: .76rem; color: var(--faint); letter-spacing: .14em; }
.pn-title { font-weight: 700; font-size: .98rem; }
.pn:hover .pn-title { color: var(--rose); }

/* ═══════════ 关于页 ═══════════ */
.about-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 40px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 42px; box-shadow: var(--shadow);
}
.about-avatar { width: 190px; height: 190px; border-radius: 20px; padding: 4px; background: var(--grad); }
.about-avatar img { width: 100%; height: 100%; border-radius: 16px; display: block; background: var(--bg2); }
.about-info h2 { font-size: 1.7rem; font-weight: 850; letter-spacing: -0.01em; }
.about-role { font-size: .95rem; color: var(--faint); font-family: var(--mono); margin: 6px 0 16px; }
.about-info > p { color: var(--muted); max-width: 620px; }
.about-info > p b { color: var(--text); }
.about-links { margin: 24px 0 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.about-tags span {
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
  border: 1px solid var(--line); background: var(--line-soft);
  padding: 4px 14px; border-radius: 999px;
}

/* focus 卡片 */
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.focus-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; position: relative; overflow: hidden;
  transition: all .22s ease;
}
.focus-card:hover { transform: translateY(-3px); border-color: rgba(255, 111, 181, .4); }
.focus-idx {
  font-family: var(--mono); font-size: .82rem; font-weight: 800; color: var(--rose);
  letter-spacing: .18em; display: block; margin-bottom: 14px;
}
.focus-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .25s;
}
.focus-card:hover::after { opacity: 1; }
.focus-card h3 { font-size: 1.12rem; font-weight: 750; margin-bottom: 10px; }
.focus-card p { color: var(--muted); font-size: .92rem; }

/* 时间线 */
.timeline { position: relative; padding-left: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--rose), var(--violet), transparent); opacity: .5; }
.tl-item { position: relative; display: grid; grid-template-columns: 104px 1fr; gap: 20px; margin-bottom: 26px; }
.tl-dot { position: absolute; left: 0; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--bg0); border: 3px solid var(--rose); }
.tl-dot-now { border-color: var(--violet); box-shadow: 0 0 0 5px rgba(167, 139, 250, .18); }
.tl-date { padding-top: 1px; font-family: var(--mono); font-size: .88rem; color: var(--faint); text-align: left; }
.tl-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 22px; transition: border-color .2s; }
.tl-card:hover { border-color: rgba(167, 139, 250, .45); }
.tl-card h3 { font-size: 1.02rem; font-weight: 750; margin-bottom: 4px; }
.tl-card p { color: var(--muted); font-size: .9rem; }
.tl-card p a { font-size: .88rem; }

/* 技能条 */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 44px; }
.skill-top { display: flex; justify-content: space-between; font-size: .93rem; font-weight: 600; margin-bottom: 8px; }
.skill-pct { font-family: var(--mono); color: var(--faint); font-size: .84rem; }
.bar { height: 6px; background: var(--line-soft); border-radius: 999px; overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--grad); transition: width 1.1s cubic-bezier(.22, .8, .3, 1);
}
.js .skill.in .bar i { transition-delay: .05s; }
.skill.in .bar i { animation: none; }

/* 站点信息 */
.colophon { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.col { background: var(--card); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.col-k { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; color: var(--faint); text-transform: uppercase; }
.col-v { font-weight: 700; font-size: .98rem; color: var(--text); }

/* ═══════════ 404 ═══════════ */
.nf404 { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; gap: 8px; }
.nf-title { font-size: clamp(6rem, 18vw, 11rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.nf404 p { color: var(--muted); }

/* ═══════════ 页脚 ═══════════ */
.footer { margin-top: 60px; border-top: 1px solid var(--line-soft); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .012)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 60px 28px 44px; }
.f-brand p { color: var(--faint); font-size: .92rem; margin-top: 16px; max-width: 300px; }
.f-col { display: flex; flex-direction: column; gap: 10px; }
.f-col h4 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; font-weight: 700; }
.f-col a { color: var(--muted); font-size: .93rem; }
.f-col a:hover { color: var(--rose); text-decoration: none; }
.f-tech { color: var(--faint); font-size: .9rem; font-family: var(--mono); }
.f-bottom {
  border-top: 1px solid var(--line-soft); padding: 20px 28px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--faint); font-size: .85rem;
}
.f-bottom a { color: var(--faint); font-family: var(--mono); }
.f-bottom a:hover { color: var(--rose); }

/* 返回顶部 */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  display: grid; place-items: center; font-size: 1.05rem;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all .25s ease; backdrop-filter: blur(8px);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--rose); color: var(--rose); }

/* ═══════════ 响应式 ═══════════ */
@media (max-width: 960px) {
  .post-cover { flex-basis: 200px; }
  .about-card { grid-template-columns: 130px 1fr; gap: 26px; padding: 30px; }
  .about-avatar { width: 130px; height: 130px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 44px; }
  .hero-avatar { width: 84px; height: 84px; }
  .stat-band { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .section { padding: 62px 0; }
  .sec-head h2 { font-size: 1.55rem; }
  .post-row { flex-direction: column; }
  .post-cover { flex: none; height: 150px; min-height: 0; }
  .post-body { padding: 22px 24px; }
  .post-body h3 { font-size: 1.18rem; }
  .cta-band { padding: 30px 24px; }
  .page-head { padding: 60px 0 40px; }
  .article { padding: 36px 20px 20px; }
  .cover-banner { height: 160px; }
  .pn-grid { grid-template-columns: 1fr; }
  .pn:last-child { text-align: left; }
  .about-card { grid-template-columns: 1fr; text-align: left; }
  .about-avatar { width: 110px; height: 110px; }
  .skills-grid { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 86px 1fr; }
  .hero-meta span { padding: 0 8px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(10, 13, 19, .97); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 14px; border-radius: 10px; }
  .nav-gh { margin-left: 0; }
}

/* ═══════════ 文章目录 TOC ═══════════ */
.article h2[id], .article h3[id] { scroll-margin-top: 96px; }
.toc {
  margin: 34px 0 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px 20px;
}
.toc-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: .92rem; margin-bottom: 10px; }
.toc-top { color: var(--faint); font-size: .9rem; }
.toc-top:hover { color: var(--rose); text-decoration: none; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  color: var(--muted); font-size: .93rem; display: inline-block;
  padding: 3px 10px 3px 0; border-radius: 8px; margin: 1px 0;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono); font-size: .78rem; color: var(--violet);
  margin-right: 10px;
}
.toc a:hover { color: var(--rose); text-decoration: none; background: var(--line-soft); }
.toc a.active { color: #fff; background: rgba(255, 111, 181, .14); box-shadow: inset 0 0 0 1px rgba(255, 111, 181, .32); }
.toc .toc-h3 { padding-left: 26px; }

/* ═══════════ 搜索页 ═══════════ */
.search-form { display: flex; gap: 12px; margin-top: 30px; }
.search-form input {
  flex: 1; min-width: 0; background: var(--card);
  border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 13px 18px; font-size: 1rem; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search-form input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(167, 139, 250, .16); }
.search-form input::placeholder { color: var(--faint); }
.search-status { margin-top: 18px; color: var(--faint); font-size: .84rem; min-height: 1.4em; }
.search-hit h3 a { color: var(--text); }
.search-hit h3 a:hover { color: var(--rose); text-decoration: none; }
mark { background: rgba(255, 111, 181, .28); color: #ffd9ec; border-radius: 4px; padding: 0 3px; }

/* ═══════════ 分享栏（文章页） ═══════════ */
.share-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 24px; margin-top: 10px;
}
.share-title { font-weight: 800; font-size: .98rem; display: block; }
.share-sub { color: var(--faint); font-size: .78rem; word-break: break-all; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .86rem; font-weight: 600; color: var(--muted);
  background: var(--line-soft); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; transition: all .18s ease;
  text-decoration: none;
}
.share-btn:hover { text-decoration: none; transform: translateY(-1px); }
.share-main { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 4px 14px rgba(255, 111, 181, .25); }
.share-main:hover { color: #fff; }
.share-copy:hover { color: var(--rose); border-color: rgba(255, 111, 181, .4); }
.share-tg:hover { color: #fff; background: #229ed9; border-color: #229ed9; }
.share-qq:hover { color: #fff; background: #12b7f5; border-color: #12b7f5; }
.share-x:hover { color: #fff; background: #333; border-color: #333; }
.share-wx:hover { color: #fff; background: #07c160; border-color: #07c160; }

/* 微信二维码弹窗 */
.qr-modal {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: rgba(5, 8, 14, .74); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.qr-modal.show { opacity: 1; pointer-events: auto; }
.qr-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 32px 24px; text-align: center;
  box-shadow: var(--shadow); width: min(360px, 86vw);
  transform: translateY(10px); transition: transform .2s ease;
}
.qr-modal.show .qr-card { transform: none; }
.qr-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  color: var(--faint); font-size: 1rem; line-height: 1; padding: 6px;
}
.qr-close:hover { color: var(--rose); }
.qr-title { font-weight: 800; font-size: 1.1rem; }
.qr-sub { color: var(--muted); font-size: .9rem; margin: 4px 0 18px; }
.qr-canvas-wrap { display: inline-block; background: #fff; padding: 10px; border-radius: 14px; }
.qr-canvas-wrap img, .qr-canvas-wrap canvas { display: block; }
.qr-hint { color: var(--faint); font-size: .82rem; line-height: 1.7; margin-top: 16px; }

/* 复制提示 Toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  background: #1b2331; color: var(--text); border: 1px solid rgba(255, 111, 181, .4);
  padding: 10px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════ 评论区（giscus） ═══════════ */
.giscus-wrap { margin-top: 72px; }
.giscus-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.giscus-title::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--grad); flex: 0 0 auto; }

/* ═══════════ 代码高亮与本站样式融合 ═══════════ */
.article-body pre code.hljs {
  display: block; overflow-x: auto; padding: 0;
  background: transparent;
}
.hljs { color: #c9d1d9; }

@media (max-width: 560px) {
  .search-form { flex-direction: column; }
  .search-form .btn { justify-content: center; }
  .toc { padding: 16px 16px 18px; }
}
