/* 半页笔记 · 校园杂志 / 编辑部风格
   奶油纸底 + 电光靛蓝主色，蜜桃橘 / 柠檬黄 / 薄荷 / 葡萄紫点缀；
   大字排版、贴纸、荧光笔、硬阴影与手绘涂鸦。只用系统字体，不请求外部资源。 */

:root {
  --bg: #fcfaf4;
  --paper: #ffffff;
  --bg-soft: #f3f0e7;
  --ink: #1b1c2e;
  --ink-2: #535a70;
  --muted: #8a90a4;
  --line: #e7e2d7;
  --stroke: #1b1c2e;
  --shadow-ink: #1b1c2e;

  --indigo: #3d34e0;
  --peach: #ff6b4a;
  --lemon: #ffd84d;
  --mint: #00bf8f;
  --grape: #a24bff;
  --sky: #2f8fff;

  --indigo-soft: #eceaff;
  --peach-soft: #fff0ea;
  --mint-soft: #e4f8f1;
  --lemon-soft: #fff8d9;
  --hl: #ffe27a;

  --accent: var(--indigo);
  --navy: var(--indigo);
  --mark: var(--hl);
  --footer-bg: #1b1c2e;
  --footer-fg: #fcfaf4;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --serif: Georgia, "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #14151f;
  --paper: #1d1f2d;
  --bg-soft: #242638;
  --ink: #f1f0fa;
  --ink-2: #b6bad0;
  --muted: #858aa2;
  --line: #34374c;
  --stroke: #3a3d55;
  --shadow-ink: #4a4580;

  --indigo: #918bff;
  --peach: #ff8d73;
  --lemon: #ffe27a;
  --mint: #4fd6ae;
  --grape: #c792ff;
  --sky: #6cb6ff;

  --indigo-soft: #2a2748;
  --peach-soft: #3b2622;
  --mint-soft: #173a31;
  --lemon-soft: #3b3519;
  --hl: #5a4c15;
  --footer-bg: #0c0d17;
  --footer-fg: #f1f0fa;
}

/* ---------------- 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--lemon); color: var(--ink); }
.wrap { max-width: 800px; margin: 0 auto; padding: 0 28px; min-width: 0; }

/* ---------------- 顶部滚动条 ---------------- */
.ticker {
  height: 34px; overflow: hidden; display: flex; align-items: center;
  background: var(--indigo); color: #fff;
}
.ticker-track {
  display: flex; white-space: nowrap; flex-shrink: 0;
  animation: marquee 32s linear infinite; will-change: transform;
}
.ticker-track span {
  padding: 0 18px; font-size: 10.5px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; flex-shrink: 0;
}
.ticker-track .ticker-sep { color: var(--lemon); padding: 0 6px; font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- 顶部导航 ---------------- */
.site-header { border-bottom: 2px solid var(--stroke); background: var(--bg); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg, var(--indigo), var(--grape)); color: #fff;
  display: grid; place-items: center; font-family: var(--serif);
  font-size: 21px; font-weight: 700;
  border: 2px solid var(--stroke); box-shadow: 3px 3px 0 var(--shadow-ink);
  transform: rotate(-5deg); transition: transform .2s;
}
.brand:hover .brand-mark { transform: rotate(0deg) translateY(-2px); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text b { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.brand-text small { font-size: 9px; color: var(--indigo); letter-spacing: 2px; font-weight: 800; margin-top: 4px; }
.issue-tag {
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px;
  background: var(--lemon); color: #1b1c2e; padding: 4px 9px;
  border: 1.5px solid var(--stroke); border-radius: 6px;
  transform: rotate(-4deg); flex-shrink: 0;
}
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  text-decoration: none; padding: 5px 2px; position: relative; transition: color .18s;
}
.nav a:hover { color: var(--indigo); }
.nav a:hover::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 7px;
  background: var(--lemon); opacity: .75; z-index: -1; border-radius: 2px;
}
.nav a.active { color: var(--indigo); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 3px; border-radius: 3px; background: var(--peach);
}
.theme-toggle {
  width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center;
  border: 2px solid var(--stroke); border-radius: 50%;
  background: var(--paper); color: var(--ink);
  box-shadow: 2px 2px 0 var(--shadow-ink);
  transition: transform .2s, background .2s;
}
.theme-toggle:hover { background: var(--lemon); color: #1b1c2e; transform: rotate(-15deg); }

/* ---------------- 首页 Hero ---------------- */
.hero { position: relative; padding: 86px 0 68px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -60px -180px; z-index: -2;
  filter: blur(26px); opacity: .9;
  background:
    radial-gradient(circle at 18% 26%, rgba(61, 52, 224, .16), transparent 40%),
    radial-gradient(circle at 84% 16%, rgba(255, 107, 74, .18), transparent 38%),
    radial-gradient(circle at 74% 84%, rgba(0, 191, 143, .16), transparent 40%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(var(--line) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 76%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 76%, transparent);
}
[data-theme="dark"] .hero::before { opacity: .45; }

.hero-deco { position: absolute; pointer-events: none; animation: spin 16s linear infinite; }
.hero-deco svg { width: 100%; height: 100%; display: block; }
.deco-a { width: 40px; height: 40px; left: -34px; top: 130px; color: var(--peach); }
.deco-b { width: 24px; height: 24px; right: 178px; bottom: 96px; color: var(--mint); animation-duration: 22s; }
.deco-c { width: 18px; height: 18px; left: 46%; top: 34px; color: var(--lemon); animation-duration: 28s; }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute; right: 4px; top: 76px; z-index: 2; width: 152px;
  padding: 15px 15px 14px; text-align: left;
  background: var(--lemon); color: #1b1c2e;
  border: 2px solid var(--stroke); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--shadow-ink);
  transform: rotate(7deg); transition: transform .25s;
}
.sticker:hover { transform: rotate(0deg) scale(1.04); }
.sticker-top, .sticker-foot { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: 1.1px; }
.sticker b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 700; margin: 5px 0 7px; line-height: 1.3; }
.sticker-foot { border-top: 1.5px dashed rgba(27, 28, 46, .5); padding-top: 7px; }

.hero-kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 2px;
  color: var(--ink-2); text-transform: uppercase;
}
.kicker-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 0 4px var(--peach-soft); }
.kicker-line { width: 40px; height: 2px; background: var(--stroke); opacity: .35; }

.hero-title {
  font-family: var(--serif); font-size: clamp(50px, 8.4vw, 84px);
  font-weight: 700; line-height: 1.1; letter-spacing: -3px;
  margin: 26px 0 22px;
}
.hero-title > span { display: block; }
.hero-title .dot { display: inline; }
.hero-title .t2 { position: relative; width: fit-content; color: var(--indigo); }
.hero-title .scribble { position: absolute; left: 1%; bottom: -12px; width: 98%; height: 18px; color: var(--lemon); }
.hero-title .t3 .dot { color: var(--peach); }
.hero-intro {
  position: relative; z-index: 1;
  color: var(--ink-2); font-size: 16px; line-height: 1.9;
  max-width: 520px; margin: 0; font-weight: 500;
}
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 42px; }
.hero-stats > div {
  min-width: 132px; padding: 13px 20px 14px;
  background: var(--paper); border: 2px solid var(--stroke); border-radius: 14px;
  box-shadow: 3px 3px 0 var(--shadow-ink);
  transition: transform .2s;
}
.hero-stats > div:hover { transform: translateY(-4px) rotate(-1deg); }
.hero-stats > div:nth-child(1) { background: var(--indigo-soft); }
.hero-stats > div:nth-child(2) { background: var(--peach-soft); }
.hero-stats > div:nth-child(3) { background: var(--mint-soft); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.2; }
.hero-stats span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; color: var(--ink-2); margin-top: 2px; }

/* ---------------- 区块标题 / 筛选 ---------------- */
.section-head { display: flex; align-items: flex-end; gap: 16px; margin: 54px 0 4px; }
.section-title-wrap { display: flex; flex-direction: column; }
.section-en { font-size: 10px; font-weight: 800; letter-spacing: 2.6px; color: var(--peach); }
.section-head h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin: 2px 0 0; letter-spacing: -1px; line-height: 1.2; }
.section-line {
  flex: 1; height: 3px; margin-bottom: 11px;
  background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 14px);
}
.section-note { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: var(--muted); white-space: nowrap; margin-bottom: 8px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 24px 0 8px; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; }
.chip {
  border: 2px solid var(--stroke); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 5px 15px; font-size: 12.5px; font-weight: 800; line-height: 1.6;
  box-shadow: 2px 2px 0 var(--shadow-ink);
  transition: transform .15s, box-shadow .15s, background .18s, color .18s;
}
.chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--shadow-ink); }
.chip.active { background: var(--chip, var(--indigo)); color: #fff; }
[data-theme="dark"] .chip.active { color: #14151f; }
.filter-right { display: flex; align-items: center; gap: 12px; }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--stroke); border-radius: 999px;
  padding: 5px 14px; color: var(--muted); background: var(--paper);
  box-shadow: 2px 2px 0 var(--shadow-ink);
}
.search:focus-within { border-color: var(--indigo); color: var(--indigo); }
.search input { border: none; outline: none; background: transparent; color: var(--ink); width: 176px; font-size: 12.5px; font-weight: 600; }
.search input::placeholder { color: var(--muted); font-weight: 500; }
.count { font-size: 11.5px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.empty-state { text-align: center; color: var(--muted); font-size: 14px; padding: 56px 0; font-weight: 600; }

/* ---------------- 文章卡片 ---------------- */
.post-list { display: grid; gap: 18px; margin-top: 22px; }
.post-card {
  position: relative; display: flex; gap: 18px; overflow: hidden;
  background: var(--paper); border: 2px solid var(--stroke); border-radius: 18px;
  padding: 23px 24px 21px; box-shadow: 4px 4px 0 var(--shadow-ink);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s;
}
.post-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: var(--card, var(--indigo)); }
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--card, var(--indigo)); }
.card-index {
  flex-shrink: 0; width: 62px; font-family: var(--serif); font-size: 48px;
  font-weight: 700; line-height: 1; color: var(--card, var(--indigo)); opacity: .28;
  letter-spacing: -3px;
}
.card-body { flex: 1; min-width: 0; }
.post-meta { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.subject-pill {
  background: var(--card, var(--indigo)); color: #fff;
  padding: 3px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .3);
}
[data-theme="dark"] .subject-pill { color: #14151f; text-shadow: none; }
.read-time { letter-spacing: .3px; }
.post-card h2 { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.4; margin: 12px 0 8px; letter-spacing: -.6px; }
.post-card h2 a { text-decoration: none; transition: color .18s; }
.post-card:hover h2 a { color: var(--card, var(--indigo)); }
.excerpt { color: var(--ink-2); font-size: 14.5px; line-height: 1.85; margin: 0; }
.post-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.read-more { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap; }
.read-more b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--card, var(--indigo)); color: #fff; font-size: 15px; font-weight: 500;
  transition: transform .2s;
}
[data-theme="dark"] .read-more b { color: #14151f; }
.post-card:hover .read-more b { transform: translateX(4px) rotate(-20deg); }

/* ---------------- 归档 / 内页标题 ---------------- */
.page-head { position: relative; padding: 68px 0 24px; }
.page-head .hero-kicker { color: var(--peach); }
.page-head h1 { font-family: var(--serif); font-size: clamp(42px, 7vw, 64px); font-weight: 700; letter-spacing: -2px; margin: 16px 0 10px; line-height: 1.15; }
.page-head h1::after { content: ""; display: block; width: 96px; height: 11px; border-radius: 8px; background: var(--lemon); transform: rotate(-2deg); margin-top: 8px; }
.page-head p { color: var(--ink-2); margin: 18px 0 0; font-size: 15px; }

.archive-list { margin-top: 20px; padding-bottom: 20px; }
.archive-year { margin-bottom: 40px; }
.year { font-family: var(--serif); font-size: 44px; font-weight: 700; margin: 0 0 18px; letter-spacing: -2px; color: var(--indigo); }
.year small { font-size: 15px; color: var(--muted); font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
.archive-month { margin-bottom: 24px; }
.archive-month h3 { font-size: 11px; color: var(--peach); letter-spacing: 2px; font-weight: 800; margin: 0 0 10px; text-transform: uppercase; }
.archive-month ul { list-style: none; margin: 0; padding: 0; }
.archive-item {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 18px; margin-bottom: 10px;
  border: 2px solid var(--line); border-radius: 13px; background: var(--paper);
  transition: transform .18s, border-color .18s;
}
.archive-item:hover { border-color: var(--indigo); transform: translateX(5px); }
.archive-item time { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--indigo); }
.archive-item a { font-size: 15.5px; font-weight: 650; text-decoration: none; }
.archive-item a:hover { color: var(--indigo); }
.archive-subject { font-size: 11px; font-weight: 800; color: var(--muted); background: var(--bg-soft); padding: 3px 10px; border-radius: 999px; }

/* ---------------- 文章页 ---------------- */
.post { padding-top: 46px; }
.back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; color: var(--ink); text-decoration: none;
  border: 2px solid var(--stroke); border-radius: 999px; padding: 5px 15px;
  background: var(--paper); box-shadow: 2px 2px 0 var(--shadow-ink);
  transition: transform .18s;
}
.back:hover { transform: translate(-2px, -2px); background: var(--lemon-soft); }
.post-head { position: relative; margin-top: 38px; padding-top: 28px; border-top: 4px solid var(--stroke); }
.post-head::before { content: ""; position: absolute; top: -4px; left: 0; width: 116px; height: 4px; background: var(--card, var(--indigo)); }
.post-head h1 { font-family: var(--serif); font-size: clamp(34px, 6vw, 52px); font-weight: 700; line-height: 1.28; letter-spacing: -1.5px; margin: 18px 0 14px; }
.post-head h1::after { content: ""; display: block; width: 42%; height: 12px; border-radius: 8px; background: var(--lemon); opacity: .85; transform: rotate(-1.5deg); margin-top: 6px; }
.post-summary { color: var(--ink-2); font-size: 16px; line-height: 1.85; margin: 22px 0 0; font-weight: 500; }
.post-head-line { width: 110px; height: 7px; border-radius: 999px; background: linear-gradient(90deg, var(--lemon), var(--peach)); transform: rotate(-1deg); margin: 28px 0 40px; }

/* ---------------- 正文 ---------------- */
.prose { font-size: 16.5px; line-height: 1.95; color: var(--ink); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--serif); font-weight: 700; line-height: 1.45; color: var(--ink); }
.prose h2 { font-size: 26px; margin: 2.1em 0 .85em; letter-spacing: -.5px; }
.prose h2::before { content: "✳"; font-family: var(--sans); color: var(--peach); font-size: .62em; vertical-align: .16em; margin-right: 10px; }
.prose h3 { font-size: 21px; margin: 1.9em 0 .7em; }
.prose h4 { font-size: 17.5px; margin: 1.6em 0 .6em; }
.prose strong { font-weight: 800; }
.prose em { font-style: italic; }
.prose mark { background: var(--hl); color: inherit; padding: 1px 4px; border-radius: 3px; font-weight: 650; }
.prose del { color: var(--muted); }
.prose a { color: var(--indigo); font-weight: 650; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--lemon); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: var(--peach); }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 1.5em; }
.prose li { margin: .5em 0; }
.prose li::marker { color: var(--indigo); font-weight: 800; }
.prose blockquote {
  position: relative; margin: 1.9em 0; padding: 20px 22px 18px 36px;
  border-left: 6px solid var(--indigo); border-radius: 0 16px 16px 0;
  background: var(--indigo-soft); color: var(--ink-2); font-size: 15.5px;
}
.prose blockquote::before { content: "“"; position: absolute; left: 12px; top: 0; font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--indigo); opacity: .45; }
.prose hr { border: none; text-align: center; margin: 2.6em 0; }
.prose hr::after { content: "✳ ✳ ✳"; color: var(--peach); letter-spacing: 12px; font-size: 12px; }
.prose code { font-family: var(--mono); font-size: .84em; background: var(--indigo); color: var(--bg); padding: 2px 7px; border-radius: 5px; font-weight: 600; }
.prose pre.code-block {
  position: relative; background: #171a2e; color: #edf0ff;
  padding: 26px 20px 20px; border-radius: 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; margin: 1.9em 0;
  border: 2px solid var(--stroke);
}
.prose pre.code-block::after {
  content: ""; position: absolute; top: 11px; left: 16px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--peach);
  box-shadow: 14px 0 0 var(--lemon), 28px 0 0 var(--mint);
}
.prose pre.code-block code { background: none; color: inherit; padding: 0; font-size: inherit; font-weight: 400; }
.prose pre.code-block[data-lang]::before {
  content: attr(data-lang); position: absolute; top: 10px; right: 16px;
  font-size: 9.5px; letter-spacing: 1.4px; color: #8e99bd; text-transform: uppercase;
}
.prose .table-wrap { overflow-x: auto; margin: 1.9em 0; border-radius: 12px; border: 2px solid var(--stroke); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 15px; text-align: left; }
.prose th { background: var(--indigo); color: #fff; font-weight: 800; white-space: nowrap; }
[data-theme="dark"] .prose th { color: #14151f; }
.prose tr:last-child td { border-bottom: none; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; display: block; margin: 1.7em auto; border: 2px solid var(--stroke); }
.prose .task-item { list-style: none; margin-left: -1.2em; }
.task-box { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 2px solid var(--stroke); border-radius: 5px; margin-right: 9px; font-size: 10px; vertical-align: -2px; font-weight: 800; }
.task-box.checked { background: var(--mint); border-color: var(--stroke); color: #fff; }
.task-item.done { color: var(--muted); }

.post-end { margin-top: 62px; padding-top: 24px; border-top: 2px dashed var(--line); }
.post-tags { display: flex; gap: 9px; flex-wrap: wrap; font-size: 11.5px; font-weight: 800; color: var(--ink-2); margin-bottom: 26px; }
.post-tags span { background: var(--lemon-soft); padding: 4px 11px; border-radius: 999px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: flex; flex-direction: column; gap: 5px; padding: 16px 19px; border: 2px solid var(--stroke); border-radius: 14px; text-decoration: none; background: var(--paper); box-shadow: 3px 3px 0 var(--shadow-ink); transition: transform .18s, background .18s; }
.post-nav a:hover { transform: translate(-2px, -2px); background: var(--indigo-soft); }
.post-nav small { font-size: 11px; font-weight: 800; color: var(--muted); }
.post-nav b { font-size: 14.5px; font-weight: 700; line-height: 1.5; }
.nav-older { text-align: right; align-items: flex-end; }

.about-prose { margin-top: 14px; }
.about-card { margin: 46px 0 10px; padding: 24px 28px; background: var(--lemon-soft); border: 2px solid var(--stroke); border-radius: 16px; box-shadow: 4px 4px 0 var(--shadow-ink); transform: rotate(-.6deg); }
.about-card-title { font-size: 12px; font-weight: 800; color: var(--peach); letter-spacing: 1.4px; margin-bottom: 10px; text-transform: uppercase; }
.about-card ol { margin: 0; padding-left: 1.4em; font-size: 14.5px; color: var(--ink-2); }
.about-card li { margin: .45em 0; }
.about-card code { font-family: var(--mono); font-size: .88em; background: var(--indigo); color: var(--bg); padding: 1px 6px; border-radius: 4px; }

.notfound { text-align: center; padding: 110px 0 100px; position: relative; }
.notfound::before { content: "✳"; position: absolute; left: 50%; top: 24px; transform: translateX(-50%); font-size: 60px; color: var(--lemon); }
.notfound h1 { font-family: var(--serif); font-size: 36px; font-weight: 700; margin: 18px 0 12px; }
.notfound p { color: var(--ink-2); margin: 0 0 28px; }
.btn { display: inline-block; border: 2px solid var(--stroke); background: var(--lemon); color: #1b1c2e; text-decoration: none; border-radius: 999px; padding: 9px 24px; font-size: 14px; font-weight: 800; box-shadow: 3px 3px 0 var(--shadow-ink); }

/* ---------------- 页脚 / 悬浮 ---------------- */
.site-footer { position: relative; overflow: hidden; margin-top: 96px; padding: 52px 0 40px; background: var(--footer-bg); color: var(--footer-fg); border-top: 4px solid var(--indigo); }
.site-footer::before { content: "✳"; position: absolute; right: -24px; top: -70px; font-size: 230px; line-height: 1; color: var(--indigo); opacity: .22; transform: rotate(14deg); pointer-events: none; }
.footer-slogan { position: relative; z-index: 1; font-family: var(--serif); font-size: clamp(32px, 6vw, 52px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 30px; }
.footer-slogan em { font-style: italic; color: var(--lemon); }
.slogan-star { display: inline-block; color: var(--peach); animation: spin 14s linear infinite; }
.footer-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12.5px; font-weight: 600; color: var(--footer-fg); opacity: .8; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 18px; }
.footer-links a { margin-left: 20px; text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: var(--lemon); }
.footer-note { position: relative; z-index: 1; font-family: var(--serif); font-size: 13px; margin-top: 12px; opacity: .65; }
.to-top {
  position: fixed; right: 28px; bottom: 28px; width: 44px; height: 44px;
  border: 2px solid var(--stroke); border-radius: 50%; background: var(--lemon);
  color: #1b1c2e; font-size: 18px; font-weight: 800;
  box-shadow: 3px 3px 0 var(--shadow-ink);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px) rotate(-8deg); }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 20; display: none; }
.page-post .reading-progress { display: block; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--peach), var(--lemon)); transition: width .08s linear; }

/* ---------------- 入场动画 ---------------- */
.reveal { transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1); }
.js-anim .reveal { opacity: 0; transform: translateY(22px); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .sticker { right: 0; top: 82px; width: 132px; }
  .deco-b { right: 140px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .ticker { height: 30px; }
  .ticker-track span { font-size: 9px; letter-spacing: 1.2px; padding: 0 12px; }
  .header-inner { flex-wrap: wrap; gap: 12px 14px; padding: 15px 0; min-height: 0; }
  .brand-mark { width: 36px; height: 36px; font-size: 18px; }
  .brand-text b { font-size: 15.5px; }
  .issue-tag { font-size: 8px; padding: 3px 7px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 22px; }
  .theme-toggle { margin-left: auto; width: 34px; height: 34px; }

  .hero { padding: 56px 0 44px; }
  .hero-title { font-size: clamp(42px, 12vw, 60px); letter-spacing: -2px; margin: 20px 0 18px; }
  .hero-title .scribble { bottom: -8px; height: 14px; }
  .hero-kicker { font-size: 9px; letter-spacing: 1.2px; gap: 7px; }
  .kicker-line { width: 20px; }
  .hero-intro { font-size: 15px; }
  .deco-a { width: 26px; height: 26px; left: -10px; top: 60px; }
  .deco-b { width: 18px; height: 18px; right: 12px; bottom: 12px; }
  .deco-c { display: none; }
  .sticker {
    position: static; z-index: 0; width: fit-content; margin: 20px 0 26px;
    padding: 11px 14px; transform: rotate(-3deg);
    display: flex; align-items: center; gap: 12px;
  }
  .sticker:hover { transform: rotate(0deg); }
  .sticker b { font-size: 16px; margin: 0; }
  .sticker-foot { border-top: none; padding: 0; }
  .hero-stats { margin-top: 30px; gap: 8px; }
  .hero-stats > div { flex: 1; min-width: 0; padding: 10px 12px 11px; }
  .hero-stats b { font-size: 22px; }
  .hero-stats span { font-size: 9px; letter-spacing: .6px; }

  .section-head { margin-top: 42px; }
  .section-head h2 { font-size: 27px; }
  .section-line { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; min-width: 0; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .filter-right { justify-content: space-between; min-width: 0; }
  .search { flex: 1; min-width: 0; }
  .search input { width: 100%; min-width: 0; }

  .post-list { gap: 14px; }
  .post-card { gap: 12px; padding: 18px 16px 17px; border-radius: 15px; }
  .card-index { width: 38px; font-size: 32px; letter-spacing: -2px; }
  .post-card h2 { font-size: 21px; margin: 10px 0 7px; }
  .excerpt { font-size: 13.8px; }
  .post-foot { margin-top: 13px; }
  .read-more span { display: none; }
  .tags { font-size: 10.5px; gap: 7px; }

  .page-head { padding: 48px 0 18px; }
  .page-head h1 { font-size: 38px; }
  .year { font-size: 34px; }
  .archive-item { grid-template-columns: 42px 1fr; gap: 10px; padding: 10px 13px; }
  .archive-item time { font-size: 18px; }
  .archive-subject { display: none; }

  .post { padding-top: 32px; }
  .post-head { margin-top: 30px; }
  .post-head h1 { font-size: 32px; }
  .post-summary { font-size: 15px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; }
  .post-nav { grid-template-columns: 1fr; }
  .nav-older { text-align: left; align-items: flex-start; }
  .about-card { padding: 20px; transform: none; }

  .site-footer { margin-top: 64px; padding: 42px 0 32px; }
  .footer-slogan { font-size: 30px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links a { margin: 0 18px 0 0; }
  .to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .hero-deco, .slogan-star { animation: none !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
  * { transition-duration: .01ms !important; }
}
