/* 付钟浩 Alex · 个人网站样式
   浅色 / 深色两套主题，毛玻璃卡片，零外部依赖。 */

:root {
  color-scheme: light;
  --bg: #e0e3ea;
  --bg-deep: #d7dbe3;
  --panel: rgba(255, 255, 255, 0.5);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-inset: rgba(19, 19, 21, 0.03);
  --text: #131315;
  --text-2: #4a4a50;
  --text-3: #83838c;
  --line: rgba(19, 19, 21, 0.13);
  --line-soft: rgba(19, 19, 21, 0.07);
  --line-strong: rgba(19, 19, 21, 0.22);
  --solid: #17171a;
  --solid-text: #fafafa;
  --shadow-sm: 0 1px 1px rgba(15, 15, 18, 0.04), 0 2px 4px -1px rgba(15, 15, 18, 0.06);
  --shadow-md: 0 2px 4px -1px rgba(15, 15, 18, 0.06), 0 12px 24px -12px rgba(15, 15, 18, 0.18);
  --shadow-lg: 0 4px 8px -4px rgba(15, 15, 18, 0.05), 0 24px 56px -28px rgba(15, 15, 18, 0.26);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --code-bg: rgba(19, 19, 21, 0.035);
  --spot: rgba(255, 255, 255, 0.9);
  --grain: 0.05;
  --ok: #2f7a55;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090a;
  --bg-deep: #0d0d0f;
  --panel: rgba(24, 24, 28, 0.6);
  --panel-strong: rgba(28, 28, 33, 0.86);
  --panel-solid: #131316;
  --panel-inset: rgba(255, 255, 255, 0.035);
  --text: #f3f3f5;
  --text-2: #b7b7c0;
  --text-3: #7d7d88;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.26);
  --solid: #f4f4f6;
  --solid-text: #101013;
  --shadow-sm: 0 1px 1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 2px 4px -1px rgba(0, 0, 0, 0.5), 0 12px 28px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 4px 8px -4px rgba(0, 0, 0, 0.5), 0 28px 64px -30px rgba(0, 0, 0, 0.8);
  --rim: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --code-bg: rgba(255, 255, 255, 0.045);
  --spot: rgba(255, 255, 255, 0.05);
  --grain: 0.07;
  --ok: #6fcf97;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* 颗粒质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body::after { mix-blend-mode: screen; }

::selection { background: rgba(19, 19, 21, 0.15); }
html[data-theme="dark"] ::selection { background: rgba(255, 255, 255, 0.2); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
code, pre, .mono { font-family: var(--mono); }

.container { width: 100%; max-width: 1128px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-nav { position: sticky; top: 0; z-index: 50; padding: 12px 0; }
.site-nav .bar {
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 10px 0 16px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--rim), var(--shadow-md);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; margin-right: 22px; letter-spacing: -0.2px; }
.brand-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 3px var(--line-soft); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 12px; border-radius: 12px;
  font-size: 14.5px; color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--panel-inset); }
.nav-links a.active { color: var(--text); font-weight: 600; background: var(--panel-inset); box-shadow: inset 0 0 0 1px var(--line-soft); }
.nav-tools { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--panel-inset); color: var(--text); }
.icon-btn svg.i { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }

/* ---------- 通用卡片 ---------- */
.glass {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--rim), var(--shadow-md);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
}
.corners::before, .corners::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border-color: var(--line-strong); border-style: solid; opacity: 0.8;
}
.corners::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; border-top-left-radius: 3px; }
.corners::after { right: 8px; bottom: 8px; border-width: 0 1px 1px 0; border-bottom-right-radius: 3px; }
/* 鼠标高光 */
.gx { overflow: hidden; }
.gx .spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 60%);
  transition: opacity 0.3s var(--ease);
}
.gx:hover .spot { opacity: 1; }
.gx > *:not(.spot) { position: relative; }
a.glass, .lift { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
a.glass:hover, .lift:hover { transform: translateY(-2px); box-shadow: var(--rim), var(--shadow-lg); border-color: var(--line-strong); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-strong); color: var(--text);
  box-shadow: var(--rim), var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--rim), var(--shadow-md); }
.btn.solid { background: var(--solid); color: var(--solid-text); border-color: transparent; box-shadow: var(--shadow-md); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--panel-inset); }
.btn.sm { height: 36px; padding: 0 13px; font-size: 14px; }
.btn .i { width: 15px; height: 15px; }
.btn-more { margin-top: 26px; font-weight: 600; background: var(--panel-solid); }

/* ---------- 首屏 ---------- */
.hero { margin-top: 36px; padding: 56px 56px 0; border-radius: 22px; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.kicker .i { width: 13px; height: 13px; }
.hero h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; margin: 18px 0 14px; }
.hero .role { font-size: 20px; font-weight: 500; color: var(--text-2); margin: 0 0 18px; letter-spacing: -0.01em; }
.hero .tagline { font-size: 16px; color: var(--text-2); margin: 0 0 26px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.avatar-wrap { position: relative; width: 188px; height: 188px; flex: none; margin-right: 8px; }
.avatar-wrap::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed var(--line); }
.avatar {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--panel-solid); box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #f4f1ea 0%, #dfe5ee 100%);
  display: flex; align-items: center; justify-content: center;
}
html[data-theme="dark"] .avatar { background: linear-gradient(145deg, #2a2a31 0%, #17171b 100%); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .mono-letter { font-size: 72px; font-weight: 600; letter-spacing: -0.04em; color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px dashed var(--line); }
.stats div { padding: 26px 0 30px; }
.stats b { display: block; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--text-3); }
.scroll-cue { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 26px 0 0; font-size: 13px; color: var(--text-3); }
.scroll-cue .i { width: 14px; height: 14px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- 版块 ---------- */
.section { margin-top: 96px; scroll-margin-top: 90px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.eyebrow .num { opacity: 0.85; }
.eyebrow .sep { opacity: 0.5; }
.eyebrow .i { width: 14px; height: 14px; }
.section h2 { font-size: 32px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 12px 0 10px; }
.section .desc { color: var(--text-2); margin: 0 0 26px; }
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }

/* 关于 + 终端 */
.about { display: grid; grid-template-columns: 1.08fr 1fr; gap: 18px; align-items: stretch; }
.about-card { padding: 26px; }
.about-card p { margin: 0 0 14px; color: var(--text-2); }
.about-card p.lead { color: var(--text); }
.about-card p:last-child { margin-bottom: 0; }
.term { display: flex; flex-direction: column; min-height: 420px; font-family: var(--mono); font-size: 13px; }
.term-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); }
.term-head .who { display: inline-flex; align-items: center; gap: 8px; }
.term-head small { font-family: var(--sans); font-size: 12px; color: var(--text-3); }
.term-out { flex: 1; padding: 16px 18px; overflow-y: auto; max-height: 300px; color: var(--text-2); line-height: 1.75; }
.term-out .line { white-space: pre-wrap; word-break: break-word; }
.term-out .cmd { color: var(--text); }
.term-out .cmd::before { content: "$ "; color: var(--text-3); }
.term-out b { color: var(--text); font-weight: 600; }
.term-out a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.term-out .muted { color: var(--text-3); }
.term-foot { border-top: 1px solid var(--line-soft); padding: 12px 18px 16px; }
.term-input { display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.term-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-strong);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }

/* 标签 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono); font-size: 12.5px; line-height: 1; color: var(--text-2);
  padding: 8px 9px; border-radius: 6px; border: 1px solid var(--line-soft); background: var(--panel-inset);
}
.skill-card { padding: 24px; }
.skill-card h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; margin: 0 0 16px; }

/* 项目卡片 */
.project-card { padding: 24px; display: flex; flex-direction: column; }
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--panel-strong); box-shadow: var(--rim);
}
.icon-tile .i { width: 20px; height: 20px; }
.pc-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--text); border: 1px solid var(--line); background: var(--panel-inset);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.badge.private::before { background: transparent; box-shadow: inset 0 0 0 1px var(--text-2); }
.project-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }
.sub { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin: 0 0 14px; }
.project-card .text { font-size: 14.5px; color: var(--text-2); margin: 0 0 16px; }
.project-card .tags { margin-bottom: 22px; }
.pc-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }

/* 网站卡片 */
.site-card { padding: 24px; display: flex; flex-direction: column; }
.site-card .sc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.site-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.site-card .text { font-size: 14.5px; color: var(--text-2); margin: 0 0 18px; }
.site-card .domain { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); word-break: break-all; }
.site-card .domain .i { width: 13px; height: 13px; }

/* 文章卡片 */
.post-card { padding: 22px 24px; display: block; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); display: flex; gap: 12px; flex-wrap: wrap; }
.post-card h3 { font-size: 19px; font-weight: 500; line-height: 1.55; margin: 10px 0 10px; letter-spacing: -0.01em; }
.post-card p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* 联系 */
.contact-card { padding: 26px; }
.contact-group + .contact-group { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); }
.contact-group .label { font-size: 12.5px; color: var(--text-3); margin-bottom: 12px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-item {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 6px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel-solid); font-size: 14.5px; box-shadow: var(--shadow-sm);
}
.contact-item.no-copy { padding-right: 16px; }
.contact-item .i { width: 16px; height: 16px; }
.contact-item .val.todo { color: var(--text-3); }
.contact-item .k { color: var(--text-3); font-size: 13px; }
.copy-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--panel-inset); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.copy-btn:hover { color: var(--text); }
.copy-btn .i { width: 14px; height: 14px; }
.copy-btn.done { color: var(--ok); }

/* 页脚 */
.site-foot { margin-top: 110px; border-top: 1px solid var(--line-soft); }
.site-foot .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 40px; font-size: 13px; color: var(--text-3); flex-wrap: wrap; }
.site-foot .left { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; }
.site-foot .right { font-family: var(--mono); font-size: 12px; }

/* 右侧进度轨 */
.rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.rail a { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 20px; }
.rail a .dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: all 0.25s var(--ease); }
.rail a::after { content: ""; position: absolute; right: 4px; top: 15px; width: 1px; height: 10px; background: var(--line); }
.rail a:last-child::after { display: none; }
.rail a .lbl { font-size: 12px; color: var(--text-2); opacity: 0; transform: translateX(4px); transition: all 0.25s var(--ease); white-space: nowrap; }
.rail a.on .dot { background: var(--text); border-color: var(--text); transform: scale(1.15); }
.rail a.on .lbl, .rail a:hover .lbl { opacity: 1; transform: none; }

/* ---------- 子页面 ---------- */
.page-head { margin-top: 44px; }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.back:hover { color: var(--text); }
.page-head h1 { font-size: 40px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 600; margin: 26px 0 12px; }
.page-head .desc { font-size: 17px; color: var(--text-2); margin: 0; }
.filters { display: flex; gap: 10px; margin: 34px 0 18px; }
.filters button {
  height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-solid);
  font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.filters button span { font-family: var(--mono); color: var(--text-3); }
.filters button.on { background: var(--solid); color: var(--solid-text); border-color: transparent; }
.filters button.on span { color: inherit; opacity: 0.7; }
.is-hidden { display: none !important; }

/* 详情页 */
.detail-badges { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-family: var(--mono); font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.detail-badges .badge { height: 30px; padding: 0 12px; font-weight: 600; }
.detail h1 { font-size: 40px; letter-spacing: -0.03em; margin: 16px 0 12px; line-height: 1.2; font-weight: 600; }
.detail .lead { font-size: 17px; color: var(--text-2); margin: 0 0 24px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow-sm); }
.facts div { padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.facts div:last-child { border-right: 0; }
.facts span { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.facts b { font-size: 15.5px; font-weight: 600; }
.private-note { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 16px 20px; border-radius: 14px; border: 1px dashed var(--line-strong); background: var(--panel-inset); color: var(--text-2); font-size: 14px; }
.list-card { padding: 22px 26px; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { position: relative; padding-left: 24px; margin: 0 0 12px; color: var(--text-2); }
.dash-list li:last-child { margin-bottom: 0; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--text-3); }
.story-card { padding: 24px 26px; }
.story-card p { margin: 0 0 14px; color: var(--text-2); }
.story-card p:first-child { color: var(--text); }
.story-card p:last-child { margin-bottom: 0; }
.source-card { padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.source-card .repo { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 14px; }
.source-card .repo-meta { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 4px; }
.detail-tags { margin-top: 44px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; }
.pager a { padding: 18px 22px; display: block; }
.pager a small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.pager a b { display: block; margin-top: 6px; font-size: 16px; font-weight: 600; }
.pager .next { text-align: right; }
.pager .next small { justify-content: flex-end; }

/* 文章页 */
.article-layout { display: grid; grid-template-columns: 210px 1fr; gap: 34px; margin-top: 30px; align-items: start; }
.toc { position: sticky; top: 100px; }
.toc .kicker { margin-bottom: 14px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); line-height: 1.5; }
.toc a:hover, .toc a.on { color: var(--text); border-left-color: var(--text); }
.article { padding: 34px 40px 40px; }
.article .post-meta { margin-bottom: 14px; }
.article h1 { font-size: 34px; line-height: 1.3; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.prose h2 { font-size: 21px; font-weight: 600; margin: 38px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.prose p { margin: 0 0 16px; color: var(--text-2); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-2); }
.prose li { margin: 6px 0; }
.prose code { font-size: 0.88em; padding: 2px 6px; border-radius: 6px; background: var(--code-bg); border: 1px solid var(--line-soft); }
.prose pre { margin: 0 0 18px; padding: 16px 18px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--line-soft); overflow-x: auto; font-size: 13px; line-height: 1.7; }
.prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--text); }

/* 出现动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) { .rail { display: none; } }
@media (max-width: 960px) {
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .site-nav .bar { padding: 0 8px 0 14px; }
  .brand { margin-right: 8px; }
  .nav-links a { padding: 0 9px; }
  .nav-links a span { display: none; }
  .hero { padding: 34px 24px 0; margin-top: 20px; }
  .hero-top { flex-direction: column-reverse; align-items: flex-start; }
  .avatar-wrap { width: 112px; height: 112px; }
  .avatar .mono-letter { font-size: 44px; }
  .hero h1 { font-size: 40px; }
  .hero .role { font-size: 17px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 34px; }
  .stats div { padding: 18px 0; }
  .section { margin-top: 72px; }
  .section h2 { font-size: 27px; }
  .grid.c2, .grid.c3 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .page-head h1, .detail h1 { font-size: 32px; }
  .pager { grid-template-columns: 1fr; }
  .article { padding: 24px 20px 28px; }
  .article h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .i { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
