:root {
  color-scheme: light;
  --bg: #fff8f0;
  --surface: #fff4e6;
  --surface-strong: #ffedd5;
  --text: #1a1a1a;
  --muted: #64748b;
  --faint: #94a3b8;
  --border: #fed7aa;
  --accent: #ff6b35;
  --accent-2: #f97316;
  --accent-3: #ea580c;
  --accent-yellow: #fbbf24;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;
  --accent-gradient: linear-gradient(135deg, #ff6b35 0%, #f97316 100%);
  --accent-gradient-2: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --accent-gradient-3: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  --accent-soft: #ffedd5;
  --code-bg: #1a1a1a;
  --code-text: #fafafa;
  --header-bg: rgba(255, 248, 240, 0.95);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-colored: 0 12px 40px rgba(255, 107, 53, 0.25);
  --glow: 0 0 30px rgba(255, 107, 53, 0.4);
  --manga-border: 4px;
  --contribution-0: #fef3c7;
  --contribution-1: #fcd34d;
  --contribution-2: #fbbf24;
  --contribution-3: #f59e0b;
  --contribution-4: #d97706;
  --content: 1180px;
  --reading: 740px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-strong: #262626;
  --text: #fafafa;
  --muted: #a3a3a3;
  --faint: #737373;
  --border: #404040;
  --accent: #ff8c5a;
  --accent-2: #fbbf24;
  --accent-3: #ef4444;
  --accent-yellow: #fde047;
  --accent-blue: #60a5fa;
  --accent-red: #f87171;
  --accent-gradient: linear-gradient(135deg, #ff8c5a 0%, #ff6b35 100%);
  --accent-gradient-2: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  --accent-gradient-3: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
  --accent-soft: #431407;
  --code-bg: #0a0a0a;
  --code-text: #fafafa;
  --header-bg: rgba(15, 15, 15, 0.95);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-colored: 0 12px 40px rgba(255, 107, 53, 0.3);
  --glow: 0 0 40px rgba(255, 140, 90, 0.5);
  --manga-border: 4px;
  --contribution-0: #292524;
  --contribution-1: #78350f;
  --contribution-2: #92400e;
  --contribution-3: #b45309;
  --contribution-4: #d97706;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: background-color 160ms ease, color 160ms ease;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 107, 53, 0.03) 2px, rgba(255, 107, 53, 0.03) 4px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

body > * {
  position: relative;
  z-index: 2;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.shell {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 68px;
  border-bottom: 1px solid transparent;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 280ms ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}

.site-header.is-scrolled::before {
  opacity: 0.03;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 3px solid var(--text);
  border-radius: 6px;
  background: var(--accent);
  font: 700 14px/1 "SFMono-Regular", Consolas, monospace;
  color: #fff;
  box-shadow:
    4px 4px 0 var(--text),
    0 0 0 3px var(--accent);
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: rotate(-3deg);
}

.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.05);
  box-shadow:
    6px 6px 0 var(--text),
    0 0 0 3px var(--accent);
}

.brand-name {
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.site-nav a,
.nav-action {
  color: var(--muted);
  font-size: 14px;
  transition: color 140ms ease;
}

.site-nav a {
  position: relative;
  padding: 23px 0 22px;
}

.site-nav a::after {
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 1px;
  background: var(--accent);
  content: "";
  transition: right 160ms ease, left 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.nav-action:hover {
  color: var(--text);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.nav-action {
  display: grid;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  place-items: center;
  border: 2px solid var(--text);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  font-weight: 700;
  box-shadow: 2px 2px 0 var(--text);
}

.nav-action:hover {
  background: var(--accent);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--text);
}

.nav-action:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--text);
}

.search-trigger {
  display: flex;
  width: auto;
  gap: 7px;
}

.search-trigger-icon {
  color: var(--faint);
  font-size: 18px;
  line-height: 1;
}

.shortcut {
  color: var(--faint);
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
}

.menu-toggle {
  display: none;
}

.eyebrow,
.section-label,
.meta-label {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--accent-yellow);
  padding: 4px 8px;
  border: 2px solid var(--text);
  display: inline-block;
  transform: skew(-5deg);
  box-shadow: 2px 2px 0 var(--text);
}

.eyebrow::before,
.section-label::before {
  display: none;
}

.hero-frame {
  position: relative;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.72;
  pointer-events: none;
}

[data-theme="dark"] .hero-canvas {
  opacity: 0.46;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(680px, calc(100svh - 150px));
  padding: 112px 0 110px;
  align-content: center;
  grid-template-columns: minmax(0, 780px) minmax(220px, 1fr);
  gap: 80px;
}

.hero,
.hero-copy,
.hero-aside {
  min-width: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0 24px;
  font-size: 76px;
  font-weight: 900;
  line-height: 1.03;
  color: var(--text);
  text-shadow:
    4px 4px 0 var(--accent),
    8px 8px 0 var(--accent-2);
  transform: skew(-2deg);
  letter-spacing: -1px;
}

.hero-role {
  display: flex;
  align-items: center;
  min-height: 20px;
  gap: 7px;
}

.hero-role::before {
  flex: 0 0 auto;
}

[data-rotating-role] {
  display: inline-block;
  min-width: 128px;
  color: var(--text);
  transition: opacity 180ms ease, transform 180ms ease;
}

[data-rotating-role].is-changing {
  opacity: 0;
  transform: translateY(5px);
}

.hero-lede {
  width: 100%;
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero-disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 32px 0 0;
  padding: 0;
  color: var(--faint);
  font: 11px/1.4 "SFMono-Regular", Consolas, monospace;
  list-style: none;
  text-transform: uppercase;
}

.hero-disciplines li + li::before {
  margin-right: 22px;
  color: var(--border);
  content: "/";
}

.hero-aside {
  display: flex;
  align-self: end;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 8px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: status-pulse-modern 2s ease-out infinite;
}

@keyframes status-pulse-modern {
  0%, 55%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7),
                0 0 12px rgba(16, 185, 129, 0.4);
  }
  72% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0),
                0 0 20px rgba(16, 185, 129, 0.6);
  }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--faint);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
  text-transform: uppercase;
}

.scroll-cue i {
  position: relative;
  overflow: hidden;
  width: 46px;
  height: 1px;
  background: var(--border);
}

.scroll-cue i::after {
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--accent);
  content: "";
  animation: scroll-cue 2.2s ease-in-out infinite;
  inset: 0 auto auto -18px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.text-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.text-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.text-link::after {
  content: "↗";
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  font-size: 16px;
}

.text-link.internal::after {
  content: "→";
}

.text-link:hover {
  transform: translateY(-2px);
}

.text-link:hover::after {
  transform: translate(3px, -3px) rotate(10deg);
}

.text-link.internal:hover::after {
  transform: translateX(5px);
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 68px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal] .section-head,
.js [data-reveal] .feature-project,
.js [data-reveal] .writing-list,
.js [data-reveal] .knowledge-grid,
.js [data-reveal] .contribution-panel {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].is-visible .section-head,
.js [data-reveal].is-visible .feature-project,
.js [data-reveal].is-visible .writing-list,
.js [data-reveal].is-visible .knowledge-grid,
.js [data-reveal].is-visible .contribution-panel {
  opacity: 1;
  transform: translateY(0);
}

.js [data-reveal].is-visible .feature-project,
.js [data-reveal].is-visible .writing-list,
.js [data-reveal].is-visible .knowledge-grid,
.js [data-reveal].is-visible .contribution-panel {
  transition-delay: 100ms;
}

.js .hero > div,
.js .hero-aside {
  animation: hero-enter 680ms both cubic-bezier(0.22, 1, 0.36, 1);
}

.js .hero-aside {
  animation-delay: 110ms;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-head h2,
.page-heading h1 {
  margin: 12px 0 0;
  font-size: 38px;
  font-weight: 620;
  line-height: 1.18;
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: 64px;
  align-items: center;
}

.feature-copy h3 {
  margin: 12px 0 18px;
  font-size: 30px;
  font-weight: 620;
  line-height: 1.24;
}

.feature-copy p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 16px;
}

.project-meta,
.tag-list,
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 28px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  list-style: none;
}

.project-meta li + li::before,
.article-meta span + span::before {
  margin-right: 16px;
  color: var(--border);
  content: "/";
}

.project-visual {
  overflow: hidden;
  min-height: 390px;
  padding: 22px;
  border: 1px solid #292e36;
  border-radius: 8px;
  background: #101318;
  box-shadow: var(--shadow);
  color: #e9edf4;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

a:hover > .project-visual {
  border-color: #424a57;
  box-shadow: 0 24px 60px rgba(22, 24, 29, 0.16);
  transform: translateY(-4px);
}

.monitor-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #2b3038;
  color: #8f98a6;
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
}

.monitor-status {
  color: #63d297;
}

.monitor-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 14px;
}

.monitor-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid #292e36;
  border-radius: 4px;
  background: #15191f;
}

.monitor-panel.tall {
  grid-row: span 2;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  color: #8f98a6;
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.metric {
  padding: 12px;
  border-left: 2px solid #5688ff;
  background: #1b2028;
}

.metric strong {
  display: block;
  font: 600 20px/1.1 "SFMono-Regular", Consolas, monospace;
}

.metric span {
  color: #7f8998;
  font-size: 9px;
}

.signal-chart {
  position: relative;
  height: 140px;
  margin-top: 18px;
  border-bottom: 1px solid #303641;
  background-image: linear-gradient(#20252c 1px, transparent 1px), linear-gradient(90deg, #20252c 1px, transparent 1px);
  background-size: 28px 28px;
  animation: signal-grid 8s linear infinite;
}

.signal-chart::before,
.signal-chart::after {
  position: absolute;
  right: 0;
  left: 0;
  height: 2px;
  background: #5688ff;
  content: "";
  clip-path: polygon(0 64%, 7% 64%, 10% 18%, 13% 86%, 17% 41%, 22% 64%, 31% 64%, 34% 26%, 37% 77%, 41% 49%, 46% 64%, 57% 64%, 61% 8%, 65% 92%, 69% 38%, 74% 64%, 84% 64%, 88% 30%, 91% 79%, 95% 50%, 100% 64%, 100% 70%, 95% 56%, 91% 85%, 88% 36%, 84% 70%, 74% 70%, 69% 44%, 65% 98%, 61% 14%, 57% 70%, 46% 70%, 41% 55%, 37% 83%, 34% 32%, 31% 70%, 22% 70%, 17% 47%, 13% 92%, 10% 24%, 7% 70%, 0 70%);
  inset-block: 0;
}

.signal-chart::after {
  opacity: 0.35;
  transform: translateY(18px);
}

.bus-list {
  display: grid;
  gap: 11px;
}

.bus-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  color: #b9c0ca;
  font: 10px/1.4 "SFMono-Regular", Consolas, monospace;
}

.bus-row span:first-child {
  color: #6d95ff;
}

.bus-row span:last-child {
  color: #63d297;
}

.github-section {
  background: color-mix(in srgb, var(--surface) 44%, var(--bg));
}

.github-section .shell,
.github-section .section-head > div {
  min-width: 0;
}

.contribution-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 26px 28px 22px;
  border: 4px solid var(--text);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 8px 8px 0 var(--text);
  transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contribution-panel::before {
  content: "★";
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  color: var(--accent-yellow);
  animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}

.contribution-panel:hover {
  transform: translate(-4px, -4px);
  box-shadow: 12px 12px 0 var(--text);
}

.contribution-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.contribution-summary > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.contribution-summary strong {
  font: 620 28px/1 "SFMono-Regular", Consolas, monospace;
}

.contribution-summary span,
.contribution-footer {
  color: var(--muted);
  font-size: 12px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  white-space: nowrap;
}

.contribution-sync {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contribution-refresh {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 3px solid var(--text);
  border-radius: 0;
  background: var(--accent-yellow);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  transition: all 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 3px 3px 0 var(--text);
}

.contribution-refresh:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
  background: var(--accent);
  color: #fff;
}

.contribution-refresh:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--text);
}

.contribution-refresh:disabled {
  cursor: wait;
  opacity: 0.55;
}

.contribution-refresh.is-loading {
  animation: manga-spin 600ms linear infinite;
}

@keyframes manga-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.live-indicator i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--contribution-3);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--contribution-3) 14%, transparent);
  animation: status-pulse 2.8s ease-out infinite;
}

.has-error .live-indicator i {
  background: var(--faint);
  box-shadow: none;
  animation: none;
}

.contribution-scroll {
  overflow-x: auto;
  width: 100%;
  max-width: 100%;
  padding: 2px 0 12px;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}

.contribution-calendar {
  --cell: 11px;
  --cell-gap: 4px;
  --weeks: 53;
  width: max-content;
  min-width: 100%;
}

.contribution-months {
  display: grid;
  width: calc(var(--weeks) * var(--cell) + (var(--weeks) - 1) * var(--cell-gap));
  height: 20px;
  margin-left: 31px;
  grid-template-columns: repeat(var(--weeks), var(--cell));
  column-gap: var(--cell-gap);
  color: var(--faint);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
}

.contribution-months span {
  overflow: visible;
  white-space: nowrap;
}

.contribution-body {
  display: flex;
  gap: 10px;
}

.contribution-weekdays {
  display: grid;
  width: 21px;
  flex: 0 0 21px;
  grid-template-rows: repeat(7, var(--cell));
  row-gap: var(--cell-gap);
  color: var(--faint);
  font: 9px/var(--cell) "SFMono-Regular", Consolas, monospace;
}

.contribution-weekdays span:nth-child(1) { grid-row: 2; }
.contribution-weekdays span:nth-child(2) { grid-row: 4; }
.contribution-weekdays span:nth-child(3) { grid-row: 6; }

.contribution-grid {
  display: grid;
  width: calc(var(--weeks) * var(--cell) + (var(--weeks) - 1) * var(--cell-gap));
  height: calc(7 * var(--cell) + 6 * var(--cell-gap));
  flex: 0 0 auto;
  grid-template-columns: repeat(var(--weeks), var(--cell));
  grid-template-rows: repeat(7, var(--cell));
  gap: var(--cell-gap);
}

.contribution-grid.is-loading {
  border-radius: 2px;
  background-image: radial-gradient(circle at 5.5px 5.5px, var(--contribution-0) 0 5.5px, transparent 5.8px);
  background-size: calc(var(--cell) + var(--cell-gap)) calc(var(--cell) + var(--cell-gap));
  opacity: 0.72;
  animation: loading-fade 1.4s ease-in-out infinite alternate;
}

.contribution-cell,
.contribution-legend i {
  display: block;
  width: var(--cell, 11px);
  height: var(--cell, 11px);
  border-radius: 2px;
  background: var(--contribution-0);
}

.contribution-cell {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 220ms ease var(--cell-delay), transform 220ms ease var(--cell-delay), filter 120ms ease;
}

.contribution-grid.is-ready .contribution-cell {
  opacity: 1;
  transform: scale(1);
}

.contribution-cell:hover {
  z-index: 1;
  filter: brightness(1.15);
  transform: scale(1.35) !important;
}

.contribution-cell[data-level="1"],
.contribution-legend i[data-level="1"] { background: var(--contribution-1); }
.contribution-cell[data-level="2"],
.contribution-legend i[data-level="2"] { background: var(--contribution-2); }
.contribution-cell[data-level="3"],
.contribution-legend i[data-level="3"] { background: var(--contribution-3); }
.contribution-cell[data-level="4"],
.contribution-legend i[data-level="4"] { background: var(--contribution-4); }

.contribution-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 13px;
}

.contribution-legend {
  display: flex;
  align-items: center;
  gap: 4px;
}

.contribution-legend span:first-child { margin-right: 3px; }
.contribution-legend span:last-child { margin-left: 3px; }

.contribution-tooltip {
  position: fixed;
  z-index: 80;
  padding: 7px 9px;
  border: 1px solid #353b44;
  border-radius: 4px;
  background: #111419;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color: #f1f3f5;
  font: 11px/1.4 "SFMono-Regular", Consolas, monospace;
  pointer-events: none;
  white-space: nowrap;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-pulse {
  0%, 55%, 100% { box-shadow: 0 0 0 4px rgba(26, 155, 87, 0.12); }
  72% { box-shadow: 0 0 0 8px rgba(26, 155, 87, 0); }
}

@keyframes contribution-refresh-spin {
  to { transform: rotate(360deg); }
}

@keyframes signal-grid {
  to { background-position: 28px 0, 28px 0; }
}

@keyframes loading-fade {
  to { opacity: 0.38; }
}

@keyframes scroll-cue {
  0% { transform: translateX(0); }
  55%, 100% { transform: translateX(64px); }
}

.writing-list {
  border-top: 1px solid var(--border);
}

.writing-item {
  display: grid;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) 170px 90px;
  gap: 24px;
  align-items: baseline;
  transition: padding 160ms ease, background-color 160ms ease;
}

.writing-item:hover {
  padding-right: 8px;
  padding-left: 8px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.writing-item h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 580;
}

.writing-item p,
.writing-item time,
.writing-item .topic {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.knowledge-grid {
  display: grid;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr);
}

.knowledge-item {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 140ms ease;
}

.knowledge-item:hover {
  background: var(--surface);
}

.knowledge-item span {
  display: block;
  margin-bottom: 48px;
  color: var(--faint);
  font: 12px/1 "SFMono-Regular", Consolas, monospace;
}

.knowledge-item h3 {
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 600;
}

.knowledge-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.page-heading {
  max-width: 800px;
  padding: 105px 0 72px;
}

.page-heading h1 {
  margin-top: 18px;
  font-size: 52px;
}

.page-heading > p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 7px 11px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--surface);
  color: var(--text);
}

.result-count {
  color: var(--faint);
  font-size: 12px;
}

.archive {
  padding: 56px 0 110px;
}

.archive-year {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  margin-bottom: 64px;
}

.archive-year h2 {
  margin: 5px 0 0;
  color: var(--muted);
  font: 500 14px/1.4 "SFMono-Regular", Consolas, monospace;
}

.archive-list {
  border-top: 1px solid var(--border);
}

.archive-item {
  display: grid;
  padding: 23px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr) 140px 70px;
  gap: 20px;
  align-items: baseline;
}

.archive-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 580;
}

.archive-item p,
.archive-item span,
.archive-item time {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.archive-item[hidden] {
  display: none;
}

.article-header {
  max-width: 900px;
  padding: 100px 0 64px;
}

.breadcrumbs {
  display: flex;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs span {
  color: var(--faint);
}

.article-header h1 {
  max-width: 880px;
  margin: 28px 0 22px;
  font-size: 54px;
  font-weight: 640;
  line-height: 1.16;
}

.article-dek {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 20px;
}

.article-layout {
  display: grid;
  padding: 64px 0 120px;
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(0, var(--reading)) 220px;
  gap: 90px;
  justify-content: center;
  align-items: start;
}

.prose {
  min-width: 0;
  font-family: "Source Han Serif SC", "Noto Serif SC", Georgia, serif;
  font-size: 17px;
  line-height: 1.82;
}

.prose :is(h1, h2, h3, h4, h5, h6) {
  scroll-margin-top: 92px;
}

.prose h2,
.prose h3 {
  font-family: Inter, "Segoe UI", "PingFang SC", sans-serif;
}

.prose h2 {
  margin: 70px 0 20px;
  font-size: 29px;
  line-height: 1.32;
}

.prose h3 {
  margin: 42px 0 15px;
  font-size: 20px;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 25px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 4px;
}

.prose blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 22px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.prose code,
.note-content code {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--surface-strong);
  font: 0.88em/1.4 "SFMono-Regular", Consolas, monospace;
}

.prose pre,
.note-content pre {
  overflow-x: auto;
  margin: 34px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.72;
}

.prose pre code,
.note-content pre code {
  padding: 0;
  background: transparent;
}

html[data-theme="dark"] .astro-code,
html[data-theme="dark"] .astro-code span {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}

.code-block {
  overflow: hidden;
  margin: 34px 0;
  border: 1px solid #2a2f37;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
  font-family: "SFMono-Regular", Consolas, monospace;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 15px;
  border-bottom: 1px solid #292e36;
  color: #8f98a6;
  font-size: 11px;
}

.copy-code {
  border: 0;
  background: transparent;
  color: #aab2be;
  font-size: 11px;
  cursor: pointer;
}

.code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.72;
}

.tok-keyword { color: #ff7ab2; }
.tok-type { color: #82d2ce; }
.tok-string { color: #c5e478; }
.tok-number { color: #b7a9ff; }
.tok-comment { color: #737d8c; }

.toc {
  position: sticky;
  top: 102px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.toc strong {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
}

.toc a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.toc a:hover {
  color: var(--text);
}

.callout {
  margin: 34px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  font-family: Inter, "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
}

.callout strong {
  display: block;
  margin-bottom: 5px;
}

.project-list {
  padding: 30px 0 110px;
  border-top: 1px solid var(--border);
}

.project-row {
  display: grid;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 84px minmax(0, 1fr) 240px 70px;
  gap: 30px;
  align-items: start;
  transition: padding 180ms ease, background-color 180ms ease;
}

.project-row:hover {
  padding-right: 12px;
  padding-left: 12px;
  background: color-mix(in srgb, var(--surface) 58%, transparent);
}

.project-index {
  color: var(--faint);
  font: 12px/1.5 "SFMono-Regular", Consolas, monospace;
}

.project-row h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 620;
}

.project-row p,
.project-stack,
.project-year {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-stack {
  line-height: 1.8;
}

.project-hero {
  padding: 90px 0 52px;
}

.project-hero h1 {
  max-width: 850px;
  margin: 24px 0 20px;
  font-size: 58px;
  font-weight: 640;
  line-height: 1.1;
}

.project-hero > p {
  max-width: 710px;
  color: var(--muted);
  font-size: 20px;
}

.project-facts {
  display: grid;
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.project-facts span {
  display: block;
  margin-bottom: 6px;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.project-facts strong {
  font-size: 14px;
  font-weight: 550;
}

.project-showcase {
  margin: 0 auto 90px;
}

.project-showcase .project-visual {
  min-height: 520px;
  padding: 34px;
}

.case-layout {
  display: grid;
  padding: 88px 0 120px;
  border-top: 1px solid var(--border);
  grid-template-columns: 230px minmax(0, 680px);
  gap: 88px;
  justify-content: center;
}

.case-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.case-nav a {
  display: block;
  margin: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.case-nav strong {
  display: block;
  margin-bottom: 16px;
  font-size: 12px;
}

.case-content section {
  margin-bottom: 68px;
}

.case-content h2 {
  margin: 0 0 18px;
  font-size: 29px;
}

.case-content > h2:not(:first-child) {
  margin-top: 68px;
}

.case-content p {
  color: var(--muted);
}

.case-content ol,
.case-content ul {
  padding-left: 22px;
  color: var(--muted);
}

.case-content li {
  margin: 12px 0;
}

.decision-list {
  border-top: 1px solid var(--border);
}

.decision {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 38px 1fr;
  gap: 14px;
}

.decision span {
  color: var(--accent);
  font: 12px/1.7 "SFMono-Regular", Consolas, monospace;
}

.decision strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.decision p {
  margin: 0;
  font-size: 13px;
}

.notes-layout {
  display: grid;
  min-height: calc(100vh - 69px);
  border-top: 1px solid var(--border);
  grid-template-columns: 240px minmax(0, 720px) 190px;
  gap: 56px;
  justify-content: center;
}

.notes-sidebar,
.notes-toc {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  padding: 42px 0;
  align-self: start;
}

.notes-sidebar {
  border-right: 1px solid var(--border);
}

.notes-sidebar h2,
.notes-toc h2 {
  margin: 0 0 18px;
  font-size: 12px;
  text-transform: uppercase;
}

.note-group {
  margin-bottom: 24px;
}

.note-group strong {
  display: block;
  margin-bottom: 7px;
  color: var(--faint);
  font-size: 11px;
  text-transform: uppercase;
}

.note-group a,
.notes-toc a {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
}

.note-group a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.note-content {
  padding: 70px 0 120px;
  font-size: 16px;
  line-height: 1.8;
}

.note-content h1 {
  margin: 15px 0 18px;
  font-size: 40px;
  line-height: 1.2;
}

.note-content h2 {
  margin: 54px 0 18px;
  scroll-margin-top: 92px;
  font-size: 25px;
}

.note-content p,
.note-content ul {
  color: var(--muted);
}

.note-updated {
  display: block;
  margin-bottom: 38px;
  color: var(--faint);
  font-size: 12px;
}

.notes-toc {
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.about-layout {
  display: grid;
  padding: 102px 0 120px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 110px;
}

.about-intro h1 {
  margin: 18px 0 25px;
  font-size: 52px;
  line-height: 1.15;
}

.about-intro > p {
  color: var(--muted);
  font-size: 18px;
}

.about-content section {
  margin-bottom: 64px;
}

.about-content h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.about-content p {
  color: var(--muted);
}

.timeline {
  border-top: 1px solid var(--border);
}

.timeline-row {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 100px 1fr;
  gap: 30px;
}

.timeline-row time {
  color: var(--faint);
  font: 12px/1.7 "SFMono-Regular", Consolas, monospace;
}

.timeline-row strong {
  display: block;
  font-size: 14px;
}

.timeline-row p {
  margin: 4px 0 0;
  font-size: 13px;
}

.site-footer {
  padding: 38px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.search-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: min(760px, calc(100dvh - 48px));
  padding: 0;
  overflow: hidden;
  border: 4px solid var(--text);
  border-radius: 0;
  background: var(--bg);
  box-shadow: 12px 12px 0 var(--text);
  color: var(--text);
}

.search-dialog[open] {
  animation: manga-popup 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes manga-popup {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  60% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

body.search-open {
  overflow: hidden;
}

.search-dialog::backdrop {
  background: rgba(10, 11, 15, 0.5);
  backdrop-filter: blur(8px);
  animation: backdrop-fade 200ms ease;
}

@keyframes backdrop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.search-surface {
  display: flex;
  max-height: min(760px, calc(100dvh - 48px));
  flex-direction: column;
}

.search-box {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.search-input-icon {
  width: 24px;
  flex: 0 0 24px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}

.search-box input {
  width: 100%;
  min-width: 0;
  padding: 0 14px 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1.4;
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box input::-webkit-search-cancel-button {
  appearance: none;
}

.search-clear,
.search-close {
  display: grid;
  height: 28px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
  cursor: pointer;
}

.search-clear {
  width: 28px;
  margin-right: 8px;
  padding: 0;
  font-size: 17px;
}

.search-clear:hover,
.search-close:hover {
  border-color: var(--faint);
  color: var(--text);
}

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, var(--bg));
}

.search-filters {
  display: flex;
  gap: 4px;
}

.search-filters button {
  min-width: 48px;
  padding: 6px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.search-filters button:hover,
.search-filters button.is-active {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
}

.search-summary {
  color: var(--faint);
  font: 11px/1 "SFMono-Regular", Consolas, monospace;
  white-space: nowrap;
}

.search-results {
  overflow-y: auto;
  min-height: 220px;
  padding: 8px;
  overscroll-behavior: contain;
  scrollbar-color: var(--border) transparent;
  scrollbar-width: thin;
}

.search-result {
  position: relative;
  display: grid;
  padding: 14px 46px 14px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.search-result:hover,
.search-result.is-selected {
  border-color: var(--border);
  background: var(--surface);
}

.search-result-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
}

.search-result-title strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 610;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-type {
  width: 34px;
  flex: 0 0 34px;
  color: var(--muted);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
}

.search-result-type.is-blog { color: var(--accent); }
.search-result-type.is-project { color: #178653; }
[data-theme="dark"] .search-result-type.is-project { color: #63d297; }

.search-result-description {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  overflow: hidden;
  max-width: 190px;
  color: var(--faint);
  font: 10px/1.65 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--faint);
  font-size: 13px;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 120ms ease, transform 120ms ease;
}

.search-result:hover .search-result-arrow,
.search-result.is-selected .search-result-arrow {
  opacity: 1;
  transform: translate(0, -50%);
}

.search-result mark {
  border-radius: 2px;
  background: var(--accent-soft);
  color: var(--text);
}

.search-empty {
  display: grid;
  min-height: 210px;
  place-content: center;
  text-align: center;
}

.search-empty strong {
  font-size: 14px;
  font-weight: 600;
}

.search-empty span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.back-to-top {
  position: fixed;
  z-index: 18;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 4px solid var(--text);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 5px 5px 0 var(--text);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) rotate(-15deg);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 24px;
  font-weight: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) rotate(0deg);
}

.back-to-top:hover {
  background: var(--accent-yellow);
  color: var(--text);
  transform: translate(-3px, -3px) rotate(-5deg) scale(1.1);
  box-shadow: 8px 8px 0 var(--text);
}

.back-to-top:active {
  transform: translate(0, 0) scale(1);
  box-shadow: 0 0 0 var(--text);
}

.toc a.is-active,
.notes-toc a.is-active,
.case-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

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

@keyframes search-enter {
  from { opacity: 0; transform: translateY(-8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Visual system v2 */
.section {
  padding: 112px 0;
}

.section-featured,
.section-knowledge {
  background: color-mix(in srgb, var(--surface) 38%, var(--bg));
}

.section-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 54px;
}

.section-index {
  align-self: start;
  padding-top: 3px;
  color: var(--faint);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
}

.section-head h2 {
  font-size: 42px;
  font-weight: 900;
  position: relative;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--text);
  text-shadow: 3px 3px 0 var(--accent);
  transform: skew(-2deg);
}

.section-head h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80px;
  height: 6px;
  background: var(--accent-yellow);
  border: 2px solid var(--text);
  transform: skew(-5deg);
}

.feature-project {
  grid-template-columns: minmax(260px, 0.68fr) minmax(520px, 1.32fr);
  gap: 76px;
}

.feature-copy h3 {
  max-width: 440px;
  font-size: 34px;
  font-weight: 590;
}

.feature-copy > p:not(.meta-label) {
  max-width: 440px;
  line-height: 1.75;
}

.writing-item {
  position: relative;
  min-height: 102px;
  padding: 28px 16px;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px) 105px 24px;
  align-items: center;
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 0;
  margin: 0 -16px;
  border: 3px solid transparent;
  background: var(--bg);
}

.writing-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 0;
  background: var(--accent);
  transition: height 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.writing-item:hover {
  background: var(--surface);
  border-color: var(--text);
  transform: translateX(8px);
  box-shadow: 4px 4px 0 var(--accent);
}

.writing-item:hover::before {
  height: 60%;
}

.writing-item h3 {
  font-size: 20px;
  font-weight: 800;
  transition: all 200ms ease;
  position: relative;
  z-index: 1;
  letter-spacing: -0.5px;
}

.writing-item p {
  max-width: 620px;
  margin-top: 5px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.writing-item:hover h3 {
  color: var(--accent);
  transform: translateX(-4px);
}

.row-arrow {
  color: var(--faint);
  font-size: 15px;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

a:hover > .row-arrow,
.writing-item:hover .row-arrow,
.project-row:hover .row-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.knowledge-grid {
  border-color: var(--border);
}

.knowledge-item {
  position: relative;
  min-height: 210px;
  padding: 28px;
}

.knowledge-item span {
  margin-bottom: 66px;
}

.knowledge-item h3 {
  font-size: 22px;
  font-weight: 590;
}

.knowledge-item i {
  position: absolute;
  right: 24px;
  bottom: 25px;
  color: var(--faint);
  font-style: normal;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.knowledge-item:hover i {
  opacity: 1;
  transform: translateX(0);
}

.page-shell {
  min-height: calc(100vh - 68px);
}

.page-heading {
  display: grid;
  max-width: none;
  padding: 118px 0 86px;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 96px;
  align-items: end;
}

.page-heading h1 {
  max-width: 760px;
  margin-top: 24px;
  font-size: 64px;
  font-weight: 590;
  line-height: 1.06;
}

.page-heading-aside > p {
  max-width: 480px;
  margin: 0 0 38px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.page-heading-aside dl {
  display: grid;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.page-heading-aside dl div {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}

.page-heading-aside dt {
  color: var(--faint);
  font-size: 11px;
}

.page-heading-aside dd {
  margin: 0;
  font: 550 15px/1.4 "SFMono-Regular", Consolas, monospace;
}

.filter-bar {
  position: sticky;
  z-index: 10;
  top: 68px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.filter-btn {
  border: 1px solid transparent;
  border-radius: 3px;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--border);
  background: var(--surface);
}

.archive {
  padding: 76px 0 130px;
}

.archive-year {
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 44px;
  margin-bottom: 84px;
}

.archive-year h2 {
  position: sticky;
  top: 128px;
  align-self: start;
  margin: 0;
}

.archive-year h2 span,
.archive-year h2 small {
  display: block;
}

.archive-year h2 span {
  color: var(--text);
  font-size: 18px;
}

.archive-year h2 small {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
}

.archive-item {
  position: relative;
  min-height: 105px;
  padding: 26px 36px 26px 0;
  grid-template-columns: minmax(0, 1fr) 170px 74px 18px;
  align-items: center;
  transition: padding 160ms ease, background-color 160ms ease;
}

.archive-item:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: var(--surface);
}

.archive-item h3 {
  font-size: 20px;
  font-weight: 590;
  transition: color 140ms ease;
}

.archive-item:hover h3 {
  color: var(--accent);
}

.archive-item i {
  color: var(--faint);
  font-style: normal;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.archive-item:hover i {
  opacity: 1;
  transform: translate(0, 0);
}

.project-list {
  padding: 0 0 130px;
}

.project-row {
  position: relative;
  min-height: 160px;
  padding: 34px 36px 34px 0;
  grid-template-columns: 58px minmax(0, 1fr) 240px 70px 20px;
  align-items: center;
}

.project-row-copy {
  min-width: 0;
}

.project-row h2 {
  margin: 7px 0 8px;
  font-size: 28px;
  font-weight: 590;
  transition: color 140ms ease;
}

.project-row:hover h2 {
  color: var(--accent);
}

.project-status,
.note-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font: 10px/1.2 "SFMono-Regular", Consolas, monospace;
}

.project-status::before,
.note-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--faint);
  content: "";
}

.project-status.is-active::before,
.note-status.is-growing::before {
  background: #1a9b57;
}

.project-status.is-experiment::before,
.note-status.is-seedling::before {
  background: var(--accent);
}

.notes-index {
  padding: 0 0 130px;
}

.notes-index-section {
  display: grid;
  padding: 50px 0 70px;
  border-top: 1px solid var(--border);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 48px;
}

.notes-index-section > header span,
.notes-index-section > header small {
  display: block;
  color: var(--faint);
  font: 10px/1.3 "SFMono-Regular", Consolas, monospace;
}

.notes-index-section > header h2 {
  margin: 12px 0 5px;
  font-size: 20px;
  font-weight: 590;
}

.notes-index .writing-item {
  grid-template-columns: minmax(0, 1fr) 110px 24px;
}

.article-header {
  max-width: 1020px;
  padding: 116px 0 82px;
}

.article-header h1 {
  max-width: 960px;
  margin: 32px 0 26px;
  font-size: 60px;
  font-weight: 590;
  line-height: 1.12;
}

.article-dek {
  max-width: 760px;
  font-size: 21px;
  line-height: 1.7;
}

.article-meta {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.article-layout {
  padding: 80px 0 140px;
  grid-template-columns: minmax(0, 760px) 230px;
  gap: 100px;
}

.prose {
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.9;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 78px 0 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 30px;
  font-weight: 620;
}

.prose h3 {
  margin-top: 48px;
  font-size: 21px;
  font-weight: 620;
}

.prose p,
.prose li {
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}

.prose img,
.note-content img,
.case-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.prose table,
.note-content table {
  width: 100%;
  margin: 34px 0;
  border-collapse: collapse;
  font-size: 14px;
}

.prose th,
.prose td,
.note-content th,
.note-content td {
  padding: 11px 13px;
  border: 1px solid var(--border);
  text-align: left;
}

.prose th,
.note-content th {
  background: var(--surface);
  font-weight: 600;
}

.toc,
.case-nav,
.notes-toc {
  border-color: var(--border);
}

.toc a,
.case-nav a,
.notes-toc a {
  position: relative;
  padding-left: 0;
  transition: color 130ms ease, padding-left 130ms ease;
}

.toc a:hover,
.toc a.is-active,
.case-nav a:hover,
.case-nav a.is-active,
.notes-toc a:hover,
.notes-toc a.is-active {
  padding-left: 8px;
}

.project-hero {
  padding: 112px 0 64px;
}

.project-hero h1 {
  font-size: 62px;
  font-weight: 590;
}

.project-facts > div {
  padding-left: 14px;
  border-left: 1px solid var(--border);
}

.case-layout {
  padding-top: 96px;
}

.case-content h2 {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.notes-layout {
  grid-template-columns: 230px minmax(0, 720px) 190px;
  gap: 64px;
}

.notes-sidebar,
.notes-toc {
  padding-top: 52px;
}

.notes-sidebar {
  padding-right: 26px;
}

.note-group a {
  padding: 4px 8px;
  border-radius: 3px;
  margin-left: -8px;
}

.note-group a:hover,
.note-group a.is-active {
  background: var(--surface);
}

.note-content {
  padding-top: 82px;
  font-size: 16.5px;
  line-height: 1.9;
}

.note-content h1 {
  font-size: 44px;
  font-weight: 600;
}

.note-content h2 {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.about-layout {
  padding: 122px 0 150px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 140px;
}

.about-intro {
  position: sticky;
  top: 118px;
  align-self: start;
}

.about-intro h1 {
  margin-top: 24px;
  font-size: 58px;
  font-weight: 590;
}

.about-availability {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 32px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.about-section-index {
  display: block;
  margin-bottom: 10px;
  color: var(--faint);
  font: 10px/1 "SFMono-Regular", Consolas, monospace;
}

.about-content section {
  margin-bottom: 82px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-content h2 {
  font-size: 25px;
  font-weight: 590;
}

.decision {
  padding: 24px 0;
}

.timeline-row {
  padding: 24px 0;
}

.site-footer {
  padding: 58px 0 22px;
  background: color-mix(in srgb, var(--surface) 52%, var(--bg));
}

.footer-inner {
  display: grid;
  padding-bottom: 54px;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 72px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.footer-brand p {
  margin: 1px 0 0;
  color: var(--faint);
  font-size: 11px;
}

.footer-nav,
.footer-links {
  display: grid;
  gap: 8px 28px;
  grid-template-columns: repeat(2, auto);
}

.footer-nav a:hover,
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font: 10px/1.5 "SFMono-Regular", Consolas, monospace;
}

@media (max-width: 980px) {
  .page-heading {
    gap: 52px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-aside {
    align-self: start;
  }

  .feature-project {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 370px;
  }

  .knowledge-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: minmax(0, var(--reading));
  }

  .toc {
    display: none;
  }

  .notes-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 38px;
  }

  .footer-inner {
    gap: 36px;
  }

  .notes-toc {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 32px), var(--content));
  }

  .site-header {
    height: 60px;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    display: none;
    padding: 18px 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px;
    font-size: 15px;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-tools {
    margin-left: 8px;
    padding-left: 8px;
  }

  .search-trigger .search-label,
  .shortcut {
    display: none;
  }

  .search-trigger-icon {
    font-size: 20px;
  }

  .search-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    margin: 10px auto;
  }

  .search-surface {
    max-height: calc(100dvh - 20px);
  }

  .search-box {
    min-height: 60px;
    padding: 0 13px;
  }

  .search-box input {
    padding-right: 8px;
    font-size: 16px;
  }

  .search-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .search-filters {
    width: 100%;
  }

  .search-filters button {
    min-width: 0;
    flex: 1;
  }

  .search-results {
    min-height: 300px;
  }

  .search-result {
    display: block;
    padding-right: 38px;
  }

  .search-result-description {
    margin-top: 6px;
  }

  .search-result-meta {
    display: block;
    margin-top: 5px;
    max-width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
  }

  .hero {
    min-height: max(560px, calc(100svh - 170px));
    padding: 82px 0 96px;
  }

  .hero h1 {
    margin: 20px 0;
    font-size: 46px;
  }

  .hero-canvas {
    opacity: 0.52;
  }

  .hero-disciplines {
    gap: 8px 14px;
    margin-top: 26px;
  }

  .hero-disciplines li + li::before {
    margin-right: 14px;
  }

  .scroll-cue {
    bottom: 22px;
  }

  .hero-lede {
    font-size: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 20px 10px;
    margin-bottom: 34px;
  }

  .section-head > .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .section-head h2,
  .page-heading h1 {
    font-size: 34px;
  }

  .contribution-panel {
    padding: 22px 16px 18px;
  }

  .github-section .section-head h2 {
    max-width: 100%;
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .contribution-summary {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
  }

  .contribution-summary > div {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .contribution-footer {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }

  .feature-project {
    gap: 40px;
  }

  .project-visual {
    min-height: 330px;
    padding: 14px;
  }

  .monitor-layout {
    grid-template-columns: 1fr;
  }

  .monitor-panel:nth-child(n+2) {
    display: none;
  }

  .writing-item {
    min-height: 0;
    padding: 24px 0;
    grid-template-columns: minmax(0, 1fr) 80px 20px;
  }

  .writing-item .topic {
    display: none;
  }

  .writing-item time {
    text-align: right;
  }

  .writing-item .row-arrow {
    opacity: 1;
    transform: none;
  }

  .knowledge-grid {
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-item {
    min-height: 150px;
    padding: 18px;
  }

  .knowledge-item span {
    margin-bottom: 36px;
  }

  .page-heading {
    display: grid;
    padding: 78px 0 54px;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }

  .page-heading h1 {
    font-size: 42px;
  }

  .page-heading-aside > p {
    margin-bottom: 26px;
    font-size: 16px;
  }

  .filter-bar {
    align-items: start;
    flex-direction: column;
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 62px;
  }

  .archive-year h2 {
    position: static;
  }

  .archive-item {
    min-height: 0;
    padding: 23px 28px 23px 0;
    grid-template-columns: minmax(0, 1fr) 72px 16px;
  }

  .archive-item > span {
    display: none;
  }

  .archive-item i {
    opacity: 1;
    transform: none;
  }

  .article-header {
    padding: 76px 0 45px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .article-dek {
    font-size: 17px;
  }

  .article-layout {
    padding-top: 46px;
  }

  .prose {
    font-size: 16px;
  }

  .project-row {
    min-height: 0;
    padding: 28px 28px 28px 0;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    gap: 16px;
  }

  .project-row .row-arrow {
    opacity: 1;
    transform: none;
  }

  .project-stack,
  .project-year {
    display: none;
  }

  .project-hero {
    padding-top: 75px;
  }

  .project-hero h1 {
    font-size: 40px;
  }

  .project-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-showcase .project-visual {
    min-height: 340px;
    padding: 16px;
  }

  .case-layout {
    grid-template-columns: 1fr;
  }

  .case-nav {
    display: none;
  }

  .notes-layout {
    display: block;
  }

  .notes-index-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .notes-index .writing-item {
    grid-template-columns: minmax(0, 1fr) 86px 18px;
  }

  .notes-sidebar {
    position: static;
    height: auto;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .note-group:not(:first-of-type) {
    display: none;
  }

  .note-content {
    padding-top: 48px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 78px;
  }

  .about-intro {
    position: static;
  }

  .about-intro h1 {
    font-size: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav,
  .footer-links {
    justify-content: start;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 460px) {
  .brand-name {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .knowledge-grid {
    grid-template-columns: 1fr;
  }

  .page-heading h1 {
    font-size: 38px;
  }

  .page-heading-aside dl {
    gap: 10px;
  }

  .writing-item {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .writing-item time {
    display: none;
  }

  .notes-index .writing-item {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .note-status {
    display: none;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 漫画风格增强 */

/* 速度线效果 */
@keyframes speed-lines {
  0% { transform: translateX(0); opacity: 0.8; }
  100% { transform: translateX(-50px); opacity: 0; }
}

/* 滚动条漫画风格 */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
  border: 2px solid var(--text);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--text);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-yellow);
}

/* 图片漫画边框 */
.prose img,
.note-content img,
.case-content img {
  transition: all 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 4px solid var(--text);
  border-radius: 0;
  box-shadow: 6px 6px 0 var(--text);
}

.prose img:hover,
.note-content img:hover,
.case-content img:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--text);
}

/* 引用块漫画风格 */
.prose blockquote {
  position: relative;
  border-left: 6px solid var(--accent);
  background: var(--accent-yellow);
  padding: 16px 20px;
  margin: 24px 0;
  border-top: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  border-right: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  font-style: italic;
  font-weight: 600;
}

.prose blockquote::before {
  content: "💭";
  position: absolute;
  left: -20px;
  top: -20px;
  font-size: 32px;
  filter: drop-shadow(2px 2px 0 var(--text));
}

/* 链接漫画下划线 */
.prose a {
  position: relative;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  transition: all 200ms ease;
}

.prose a:hover {
  background: var(--accent);
  color: #fff;
  border-bottom-color: var(--text);
  padding: 2px 4px;
  transform: skew(-2deg);
}

/* 代码块漫画风格 */
.prose pre,
.note-content pre {
  border: 4px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
  border-radius: 0;
  position: relative;
}

.prose pre::before,
.note-content pre::before {
  content: "CODE";
  position: absolute;
  top: -12px;
  left: 12px;
  background: var(--accent-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 8px;
  border: 2px solid var(--text);
  letter-spacing: 1px;
}

/* 表格漫画风格 */
.prose table,
.note-content table {
  border: 4px solid var(--text);
  box-shadow: 6px 6px 0 var(--text);
}

.prose th,
.note-content th {
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  border: 2px solid var(--text);
}

.prose td,
.note-content td {
  border: 2px solid var(--text);
}

/* 状态点漫画风格 */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-yellow);
  border: 2px solid var(--text);
  box-shadow: 0 0 0 3px var(--accent-yellow);
  animation: manga-pulse 1.5s ease-in-out infinite;
}

@keyframes manga-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--accent-yellow);
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.5);
  }
}

/* 行箭头漫画风格 */
.row-arrow {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

a:hover > .row-arrow,
.writing-item:hover .row-arrow,
.project-row:hover .row-arrow {
  opacity: 1;
  transform: translateX(0) rotate(-15deg);
  animation: arrow-bounce 600ms ease-in-out infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0) rotate(-15deg); }
  50% { transform: translateX(5px) rotate(-15deg); }
}

/* Section装饰 */
.section-index {
  position: relative;
  font-weight: 900;
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border: 2px solid var(--text);
  box-shadow: 3px 3px 0 var(--text);
  transform: rotate(-5deg);
}

/* 过滤按钮漫画风格 */
.filter-btn {
  padding: 8px 16px;
  border: 3px solid var(--text);
  border-radius: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 3px 3px 0 var(--text);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--text);
}

.filter-btn:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--text);
}

/* 页脚漫画装饰 */
.site-footer {
  position: relative;
  border-top: 4px solid var(--text);
}

.site-footer::before {
  content: "⚡";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  background: var(--bg);
  padding: 0 16px;
  filter: drop-shadow(2px 2px 0 var(--accent));
}
