/* ==========================================================================
   鍦嗚浠ｇ爜 路 RADIUS
   涓€涓俯鏆栥€佸厠鍒躲€佸渾娑︾殑鎶€鏈崥瀹富棰?   ========================================================================== */

:root {
  --bg: #f4f1e9;
  --bg-soft: #faf8f2;
  --surface: #fffdf8;
  --surface-2: #efebe1;
  --surface-3: #e7e1d4;
  --ink: #1c1b18;
  --ink-soft: #45413a;
  --muted: #6b655b;
  --muted-2: #746d62;
  --line: #e4ddd0;
  --line-strong: #d3c9b8;
  --accent: #c94a24;
  --accent-deep: #a93616;
  --accent-soft: #f9ded2;
  --accent-ink: #7c2c13;
  --green: #2f6b57;
  --shadow-sm: 0 1px 2px rgba(48, 38, 24, 0.05);
  --shadow-md: 0 2px 4px rgba(48, 38, 24, 0.04), 0 18px 40px -28px rgba(48, 38, 24, 0.35);
  --shadow-lg: 0 4px 8px rgba(48, 38, 24, 0.05), 0 32px 80px -32px rgba(48, 38, 24, 0.4);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas,
    "Liberation Mono", Menlo, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif SC", serif;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --cat-computing: #2f6b57;
  --cat-computing-soft: #dfece4;
  --cat-bugs: #a83a1f;
  --cat-bugs-soft: #f6dfd5;
  --cat-code: #3e4f8d;
  --cat-code-soft: #e2e6f3;
  --cat-ai: #68499a;
  --cat-ai-soft: #eae2f3;
  --cat-library: #86601d;
  --cat-library-soft: #f0e5cf;
  --cat-security: #3c484e;
  --cat-security-soft: #e0e6e7;
}

[data-theme="dark"] {
  --bg: #171614;
  --bg-soft: #1b1a17;
  --surface: #211f1b;
  --surface-2: #2a2721;
  --surface-3: #353129;
  --ink: #f2ede3;
  --ink-soft: #d4ccbe;
  --muted: #a49b8c;
  --muted-2: #918879;
  --line: #332f28;
  --line-strong: #474136;
  --accent: #ff7a4d;
  --accent-deep: #ff9a77;
  --accent-soft: #3a251c;
  --accent-ink: #ffc0a8;
  --green: #6fbf9f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.2), 0 18px 40px -28px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.25), 0 32px 80px -32px rgba(0, 0, 0, 0.9);

  --cat-computing: #7fc4a8;
  --cat-computing-soft: #1d2f28;
  --cat-bugs: #ff9a78;
  --cat-bugs-soft: #33211a;
  --cat-code: #a3b2ea;
  --cat-code-soft: #22263a;
  --cat-ai: #c3a6ef;
  --cat-ai-soft: #2a2337;
  --cat-library: #dfba6f;
  --cat-library-soft: #30291b;
  --cat-security: #aabcc4;
  --cat-security-soft: #232b2e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

/* ---------- 椤堕儴杩涘害鏉?---------- */
.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
  flex: none;
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.brand-text em {
  font-style: normal;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: center;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 10px 0 18px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-rss {
  color: var(--accent) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.blob-a {
  width: 460px;
  height: 460px;
  right: -60px;
  top: -140px;
  background: var(--accent-soft);
}

.blob-b {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -220px;
  background: var(--cat-computing-soft);
  opacity: 0.7;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 10%, transparent 70%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 72px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-soft) 50%, transparent);
  }
}

.hero h1 {
  margin: 22px 0 24px;
  font-size: clamp(42px, 5.5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hl {
  position: relative;
  display: inline-block;
  padding: 0 0.06em;
  border-radius: 12px;
  background: linear-gradient(180deg, transparent 58%, var(--accent-soft) 58%, var(--accent-soft) 94%, transparent 94%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-lead {
  max-width: 540px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn span {
  transition: transform 0.2s var(--ease);
}

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

.btn:hover span {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  background: #fffaf2;
  color: #1c1b18;
}

.btn-light:hover {
  background: #fff;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.hero-stats strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.hero-stats span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Hero terminal ---------- */
.hero-visual {
  position: relative;
  z-index: 1;
}

.terminal {
  position: relative;
  z-index: 2;
  border-radius: 26px;
  background: linear-gradient(160deg, #24221e, #181714 60%);
  border: 1px solid #38342c;
  box-shadow: 0 40px 80px -32px rgba(30, 22, 12, 0.55), 0 0 0 6px color-mix(in srgb, var(--surface) 45%, transparent);
  overflow: hidden;
  transform: rotate(1.1deg);
  transition: transform 0.5s var(--ease);
}

.hero-visual:hover .terminal {
  transform: rotate(0deg) translateY(-4px);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid #302d27;
  background: #201e1a;
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a453c;
}

.terminal-bar span:nth-child(1) {
  background: #e2552c;
}

.terminal-bar span:nth-child(2) {
  background: #c99a3e;
}

.terminal-bar span:nth-child(3) {
  background: #4f8a6a;
}

.terminal-bar em {
  margin-left: auto;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10px;
  color: #7e776a;
  letter-spacing: 0.04em;
}

.terminal-body {
  padding: 26px 26px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: #b9b1a2;
}

.terminal-body p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt {
  color: #ff7a4d;
  margin-right: 8px;
}

.out {
  color: #7e776a;
  margin: 0 0 9px;
}

.out-chips {
  color: #b9b1a2;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.out-quote {
  color: #f2ede3;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
  margin: 4px 0 16px;
  white-space: normal;
}

.cursor-line {
  display: flex;
  align-items: center;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: #ff7a4d;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
}

.chip-a {
  right: -10px;
  top: -18px;
  transform: rotate(3deg);
}

.chip-b {
  left: -16px;
  bottom: 30px;
  transform: rotate(-3deg);
  color: var(--accent-deep);
}

.hero-orbit {
  position: absolute;
  z-index: 0;
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-46%, -50%);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-orbit::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 38px;
  right: 62px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

.section-tight {
  padding-top: 34px;
}

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

.section-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 5px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}

.text-link span {
  transition: transform 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}

.text-link:hover span {
  transform: translateX(3px);
}

/* ---------- Featured ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.28fr 0.72fr;
  gap: 22px;
}

.feature-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 34px;
  border-radius: var(--radius-xl);
  background: radial-gradient(120% 100% at 100% 0%, #333028 0%, #1b1a17 55%);
  color: #f4efe4;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-main::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: var(--cat-color, #e2552c);
  opacity: 0.3;
  filter: blur(60px);
}

.feature-main:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-main-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease), opacity 0.4s;
}

.feature-main:hover .feature-main-bg {
  transform: scale(1.06);
  opacity: 0.5;
}

.feature-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(23, 21, 18, 0.97) 0%, rgba(23, 21, 18, 0.87) 48%, rgba(23, 21, 18, 0.62) 100%);
  pointer-events: none;
}

.feature-main.cat-computing {
  --cat-color: #4f9d7e;
}
.feature-main.cat-bugs {
  --cat-color: #e2552c;
}
.feature-main.cat-code {
  --cat-color: #6e82d8;
}
.feature-main.cat-ai {
  --cat-color: #a882e8;
}
.feature-main.cat-library {
  --cat-color: #d6a94f;
}
.feature-main.cat-security {
  --cat-color: #8aa0aa;
}

.feature-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--surface-2);
  color: var(--ink-soft);
  white-space: nowrap;
}

.cat-pill-computing {
  background: var(--cat-computing-soft);
  color: var(--cat-computing);
}
.cat-pill-bugs {
  background: var(--cat-bugs-soft);
  color: var(--cat-bugs);
}
.cat-pill-code {
  background: var(--cat-code-soft);
  color: var(--cat-code);
}
.cat-pill-ai {
  background: var(--cat-ai-soft);
  color: var(--cat-ai);
}
.cat-pill-library {
  background: var(--cat-library-soft);
  color: var(--cat-library);
}
.cat-pill-security {
  background: var(--cat-security-soft);
  color: var(--cat-security);
}

.cat-pill-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #f4efe4;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-no,
.side-no {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(244, 239, 228, 0.48);
  letter-spacing: 0.06em;
}

.feature-glyph {
  position: absolute;
  right: 8px;
  bottom: 60px;
  z-index: 2;
  font-size: 190px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(244, 239, 228, 0.09);
  font-family: var(--font-mono);
}

.feature-content {
  position: relative;
  z-index: 3;
  margin-top: auto;
  max-width: 94%;
}

.feature-content h3 {
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.feature-content p {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.64);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 12.5px;
  font-weight: 600;
  color: #ff9a77;
}

.feature-cta span {
  transition: transform 0.2s var(--ease);
}

.feature-main:hover .feature-cta span {
  transform: translate(3px, -3px);
}

.feature-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

.feature-side-card {
  display: flex;
  flex-direction: column;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.feature-side-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.side-no {
  color: var(--muted-2);
}

.side-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 14px;
}

.side-copy {
  flex: 1;
  min-width: 0;
}

.side-thumb {
  width: 76px;
  height: 76px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  object-fit: cover;
}

.feature-side-card h3 {
  margin-top: 0;
  font-size: 18.5px;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.feature-side-card p {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  color: var(--muted-2);
}

.side-meta span {
  transition: transform 0.2s var(--ease);
}

.feature-side-card:hover .side-meta span {
  transform: translate(3px, -3px);
  color: var(--accent-deep);
}

/* ---------- Post cards ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  min-width: 0;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.card-link:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card-cover {
  position: relative;
  height: 172px;
  background: linear-gradient(145deg, var(--cat-soft), var(--surface));
  overflow: hidden;
  isolation: isolate;
}

.cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card-link:hover .cover-img {
  transform: scale(1.045);
}

.cover-no {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--cat) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--cat);
}

/* 旧版纯 CSS 封面元素，保留作无图时的降级 */
.cover-glyph {
  position: absolute;
  right: 16px;
  bottom: -12px;
  font-family: var(--font-mono);
  font-size: 74px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.09em;
  color: var(--cat);
  opacity: 0.22;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.cat-computing {
  --cat: var(--cat-computing);
  --cat-soft: var(--cat-computing-soft);
}
.cat-bugs {
  --cat: var(--cat-bugs);
  --cat-soft: var(--cat-bugs-soft);
}
.cat-code {
  --cat: var(--cat-code);
  --cat-soft: var(--cat-code-soft);
}
.cat-ai {
  --cat: var(--cat-ai);
  --cat-soft: var(--cat-ai-soft);
}
.cat-library {
  --cat: var(--cat-library);
  --cat-soft: var(--cat-library-soft);
}
.cat-security {
  --cat: var(--cat-security);
  --cat-soft: var(--cat-security-soft);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-meta time {
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

.card-body h3 {
  margin-top: 13px;
  font-size: 18px;
  line-height: 1.48;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.card-excerpt {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 18px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.arrow {
  font-size: 14px;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.card-link:hover .arrow {
  transform: translate(3px, -3px);
  color: var(--accent-deep);
}

/* ---------- Topics ---------- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat);
  box-shadow: var(--shadow-sm);
}

.topic-glyph {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 15px;
  background: var(--cat-soft);
  color: var(--cat);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.topic-info {
  min-width: 0;
  flex: 1;
}

.topic-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.topic-title h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}

.topic-title span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.topic-info p {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.topic-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 13px;
  color: var(--muted-2);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: opacity 0.2s, transform 0.2s;
}

.topic-card:hover .topic-arrow {
  opacity: 1;
  transform: none;
  color: var(--cat);
}

/* ---------- RSS banner ---------- */
.rss-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 52px;
  border-radius: var(--radius-xl);
  background: radial-gradient(100% 140% at 0% 0%, #2b2923 0%, #1a1916 62%);
  color: #f4efe4;
  overflow: hidden;
  isolation: isolate;
}

.rss-banner::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 300px;
  height: 300px;
  right: 12%;
  bottom: -180px;
  border-radius: 50%;
  background: #e2552c;
  opacity: 0.35;
  filter: blur(70px);
}

.rss-copy .eyebrow {
  color: rgba(244, 239, 228, 0.5);
}

.rss-copy h2 {
  margin: 12px 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.rss-copy p:last-child {
  max-width: 520px;
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(244, 239, 228, 0.58);
}

.rss-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: none;
}

.rss-icon {
  font-size: 18px;
  color: #ff9a77;
}

.rss-note {
  font-size: 10.5px;
  color: rgba(244, 239, 228, 0.4);
}

.rss-orbit {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -120px;
  border: 1px solid rgba(244, 239, 228, 0.1);
  border-radius: 50%;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 300px;
}

.footer-rss {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
}

.footer-rss span {
  transition: transform 0.2s var(--ease);
}

.footer-rss:hover span {
  transform: translate(2px, -2px);
}

.footer-title {
  margin-bottom: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
}

.footer-meta {
  font-family: var(--font-mono);
}

.footer-bottom .dot {
  margin: 0 5px;
}

/* ---------- Search ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px;
}

.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.2s ease;
}

.search-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: pop 0.25s var(--ease);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.search-bar svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--muted-2);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 21px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
}

.search-results {
  overflow-y: auto;
  padding: 8px;
  overscroll-behavior: contain;
}

.search-group-label {
  padding: 10px 12px 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 20px;
  color: var(--muted);
  text-align: center;
}

.search-empty-glyph {
  font-size: 34px;
  color: var(--line-strong);
  line-height: 1;
  margin-bottom: 4px;
}

.search-empty p {
  font-size: 14px;
  color: var(--ink-soft);
}

.search-empty span:last-child {
  font-size: 11.5px;
  color: var(--muted-2);
}

.search-item {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  transition: background 0.15s;
}

.search-item:hover,
.search-item.is-selected {
  background: var(--surface-2);
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted-2);
}

.search-item-meta .cat-dot {
  margin-right: 1px;
}

.search-item h4 {
  margin: 5px 0 3px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.search-item p {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-item mark {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 3px;
  padding: 0 2px;
}

.search-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-2);
}

.search-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.search-count {
  margin-left: auto;
  font-family: var(--font-mono);
}

.no-scroll {
  overflow: hidden;
}

/* ---------- Page header ---------- */
.page-header {
  padding: 76px 0 40px;
  position: relative;
}

.page-header h1 {
  margin: 12px 0 14px;
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.page-desc {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- Filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-btn {
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
}

.filter-btn span {
  margin-left: 3px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  opacity: 0.7;
}

.filter-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.filter-count {
  margin: 16px 0 4px;
  font-size: 11px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}

/* ---------- Article list ---------- */
.article-list {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 72px 1fr 30px;
  gap: 20px;
  align-items: start;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s var(--ease), background 0.2s;
}

.article-row:hover {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.row-no {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.row-main {
  min-width: 0;
}

.row-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.row-meta .sep {
  opacity: 0.5;
}

.cat-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat, var(--muted));
  flex: none;
}

.cat-dot-computing {
  background: var(--cat-computing);
}
.cat-dot-bugs {
  background: var(--cat-bugs);
}
.cat-dot-code {
  background: var(--cat-code);
}
.cat-dot-ai {
  background: var(--cat-ai);
}
.cat-dot-library {
  background: var(--cat-library);
}
.cat-dot-security {
  background: var(--cat-security);
}

.row-main h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  transition: color 0.2s;
}

.article-row:hover .row-main h3 {
  color: var(--accent-deep);
}

.row-main p {
  max-width: 760px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-arrow {
  padding-top: 18px;
  font-size: 15px;
  color: var(--muted-2);
  transition: transform 0.2s var(--ease), color 0.2s;
}

.article-row:hover .row-arrow {
  transform: translate(3px, -3px);
  color: var(--accent-deep);
}

.empty-state {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}

.empty-state span {
  font-size: 36px;
  color: var(--line-strong);
}

.empty-state p {
  margin: 8px 0 12px;
}

.empty-state a {
  font-size: 12px;
  color: var(--accent-deep);
}

/* ---------- Category hero ---------- */
.category-hero {
  position: relative;
  padding: 72px 0 64px;
  background: linear-gradient(160deg, var(--cat-soft), var(--bg) 75%);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.category-hero-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.category-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(46px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--cat);
}

.category-hero p:last-child {
  max-width: 540px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.category-glyph {
  font-family: var(--font-mono);
  font-size: clamp(90px, 16vw, 190px);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.1em;
  color: var(--cat);
  opacity: 0.16;
  user-select: none;
}

.next-cats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.next-cats-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

/* ---------- Article ---------- */
.article-hero {
  position: relative;
  padding: 38px 0 54px;
  background: linear-gradient(165deg, var(--cat-soft), var(--bg) 82%);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted-2);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb span:last-child {
  color: var(--muted);
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cat);
}

.article-hero h1 {
  max-width: 900px;
  margin: 14px 0 18px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.2;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.article-dek {
  max-width: 740px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted);
}

.meta-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ink-soft);
}

.avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 10px;
  font-weight: 700;
}

.article-meta .sep {
  color: var(--line-strong);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-size: 10px;
  color: var(--muted);
}

.article-ornament {
  position: absolute;
  right: 2%;
  bottom: -50px;
  font-family: var(--font-mono);
  font-size: clamp(160px, 26vw, 320px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1em;
  color: var(--cat);
  opacity: 0.09;
  user-select: none;
  pointer-events: none;
}

.article-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 760px);
  justify-content: center;
  gap: 62px;
  padding: 60px 0 20px;
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 26px);
  align-self: start;
  max-height: calc(100vh - var(--header-h) - 50px);
  overflow-y: auto;
  padding-right: 6px;
}

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

.toc-title {
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toc-list,
.toc-sub {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-list a {
  display: block;
  padding: 5px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  transition: color 0.2s, transform 0.2s;
}

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

.toc-list a.is-active {
  color: var(--accent-deep);
  font-weight: 600;
  transform: translateX(2px);
}

.toc-sub {
  margin: 2px 0 4px 10px;
  gap: 0;
}

.toc-list li.toc-h3 a {
  padding-left: 12px;
  font-size: 11px;
  color: var(--muted-2);
}

.toc-list li.toc-h3 a::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  vertical-align: 2px;
}

.toc-list li.toc-h3 a.is-active::before {
  background: var(--accent);
}

.aside-note {
  margin-top: 28px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.aside-note span {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.aside-note p {
  margin-top: 5px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-note kbd {
  height: 17px;
  min-width: 17px;
  font-size: 8px;
}

/* ---------- Prose ---------- */
.prose {
  min-width: 0;
  font-size: 16.5px;
  line-height: 1.92;
  color: var(--ink-soft);
  counter-reset: section;
}

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

.prose p {
  margin: 19px 0;
}

.prose > p:first-of-type {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink);
}

.prose h2 {
  counter-increment: section;
  position: relative;
  margin: 52px 0 18px;
  padding-top: 8px;
  font-size: 27px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2::before {
  content: "0" counter(section);
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.h-anchor {
  margin-left: 7px;
  font-size: 0.65em;
  color: var(--line-strong);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.prose h2:hover .h-anchor,
.prose h3:hover .h-anchor {
  opacity: 1;
}

.h-anchor:hover {
  color: var(--accent-deep);
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose em {
  font-style: italic;
}

.prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.prose a:hover {
  text-decoration-color: var(--accent-deep);
}

.prose ul,
.prose ol {
  margin: 18px 0;
  padding-left: 24px;
}

.prose li {
  margin: 7px 0;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--accent);
}

.prose li > ul,
.prose li > ol {
  margin: 6px 0;
}

.prose blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--surface));
  color: var(--ink-soft);
}

.prose blockquote p {
  margin: 0;
}

.prose blockquote p + p {
  margin-top: 10px;
}

.prose hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  display: block;
  margin: 28px auto;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.prose code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--accent-deep);
  word-break: break-word;
}

/* 鎻愮ず鍗?*/
.callout {
  margin: 28px 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.callout p {
  margin: 7px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
}

.callout-label {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.callout-note {
  border-color: color-mix(in srgb, var(--cat-computing) 22%, var(--line));
  background: color-mix(in srgb, var(--cat-computing-soft) 38%, var(--surface));
}

.callout-note .callout-label {
  background: var(--cat-computing-soft);
  color: var(--cat-computing);
}

.callout-tip {
  border-color: color-mix(in srgb, var(--cat-code) 22%, var(--line));
  background: color-mix(in srgb, var(--cat-code-soft) 38%, var(--surface));
}

.callout-tip .callout-label {
  background: var(--cat-code-soft);
  color: var(--cat-code);
}

.callout-warning,
.callout-important {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}

.callout-warning .callout-label,
.callout-important .callout-label {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* 浠ｇ爜鍧?*/
.code-card {
  position: relative;
  margin: 28px 0;
  border: 1px solid #34302a;
  border-radius: 18px;
  background: #1c1b18;
  overflow: hidden;
  box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.6);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 38px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #2e2b25;
  background: #23211d;
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8d8578;
}

.code-copy {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border: 1px solid #3a362f;
  border-radius: 7px;
  background: transparent;
  font-size: 10px;
  color: #9c9486;
  transition: all 0.2s;
}

.code-copy:hover {
  border-color: #5a5348;
  color: #f2ede3;
}

.code-copy.is-copied {
  border-color: #4f8a6a;
  color: #8fd0b2;
}

.code-card .highlight {
  margin: 0;
  background: transparent;
}

.code-card pre {
  margin: 0;
  padding: 18px 20px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.78;
  tab-size: 2;
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: #4a453c transparent;
}

.code-card pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: #ded7ca;
  font-size: inherit;
  white-space: pre;
}

.code-card pre::-webkit-scrollbar {
  height: 8px;
}

.code-card pre::-webkit-scrollbar-thumb {
  background: #3d3831;
  border-radius: 8px;
}

/* Pygments 鏆栬壊浠ｇ爜涓婚 */
.highlight .c,
.highlight .ch,
.highlight .cm,
.highlight .cpf,
.highlight .c1,
.highlight .cs {
  color: #7d766a;
  font-style: italic;
}
.highlight .k,
.highlight .kc,
.highlight .kd,
.highlight .kn,
.highlight .kp,
.highlight .kr,
.highlight .kt {
  color: #ff8a65;
}
.highlight .s,
.highlight .sa,
.highlight .sb,
.highlight .sc,
.highlight .dl,
.highlight .sd,
.highlight .s2,
.highlight .se,
.highlight .sh,
.highlight .si,
.highlight .sx,
.highlight .s1,
.highlight .ss {
  color: #a9c98d;
}
.highlight .m,
.highlight .mb,
.highlight .mf,
.highlight .mh,
.highlight .mi,
.highlight .mo,
.highlight .il {
  color: #f0c674;
}
.highlight .nf,
.highlight .fm {
  color: #8fb8ff;
}
.highlight .nb,
.highlight .bp {
  color: #d7a8ff;
}
.highlight .nc,
.highlight .nn {
  color: #ffd166;
}
.highlight .nd {
  color: #f78fb3;
}
.highlight .o,
.highlight .ow {
  color: #d8d1c4;
}
.highlight .p {
  color: #b8b0a2;
}
.highlight .n,
.highlight .na,
.highlight .nv,
.highlight .vg,
.highlight .vi,
.highlight .vm {
  color: #e8e1d5;
}
.highlight .nt {
  color: #ff8a65;
}
.highlight .err {
  color: #ff6b6b;
}

/* 琛ㄦ牸 */
.table-wrap {
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
  background: var(--surface);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}

.prose th {
  padding: 12px 16px;
  background: var(--surface-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: left;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.prose td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.prose tbody tr:hover {
  background: color-mix(in srgb, var(--surface-2) 45%, transparent);
}

/* 鏂囨湯 */
.article-end {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 56px 0 24px;
}

.article-end span {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.article-end p {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}

.article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.back-top {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.back-top:hover {
  color: var(--accent-deep);
}

/* 涓婁竴绡囦笅涓€绡?*/
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 54px 0 0;
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  min-width: 0;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.post-nav-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.post-nav-item.is-empty {
  background: transparent;
  border-style: dashed;
  pointer-events: none;
}

.post-nav-label {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.post-nav-title {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-nav-next {
  text-align: right;
}

/* 鐩稿叧闃呰 */
.related {
  margin: 56px 0 72px;
}

.related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.related-head h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.related-head a {
  font-size: 11px;
  color: var(--muted);
}

.related-head a:hover {
  color: var(--accent-deep);
}

.related-list {
  display: flex;
  flex-direction: column;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s var(--ease);
}

.related-item:hover {
  padding-left: 8px;
}

.related-title {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item:hover .related-title {
  color: var(--accent-deep);
}

.related-arrow {
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Archive ---------- */
.archive-wrap {
  max-width: 860px;
}

.archive-group {
  margin-bottom: 44px;
}

.archive-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.archive-head h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.archive-head span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.archive-list {
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}

.archive-list time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted-2);
}

.archive-list a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.archive-list a:hover {
  color: var(--accent-deep);
}

.archive-cat {
  height: 22px;
  font-size: 9.5px;
  padding: 0 8px;
}

/* ---------- About ---------- */
.about-hero {
  padding: 86px 0 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 50px;
  align-items: center;
}

.about-hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.13;
  letter-spacing: -0.05em;
}

.about-lead {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.about-stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  justify-self: end;
}

.about-stamp::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.about-stamp span {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: var(--accent);
  line-height: 1;
}

.about-stamp em {
  position: absolute;
  bottom: 38px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.about-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 80px;
  align-items: start;
  padding-top: 20px;
}

.about-body {
  font-size: 15.5px;
}

.about-body h2:first-child {
  margin-top: 0;
}

.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.about-card ul {
  list-style: none;
}

.about-card li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.about-card li:last-child {
  border-bottom: 0;
}

.about-card li span {
  color: var(--muted);
}

.about-card li strong {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}

.about-card-accent {
  background: linear-gradient(150deg, #2a2822, #1a1916);
  color: #f4efe4;
  border-color: #33302a;
}

.about-card-accent p {
  font-size: 11px;
  color: rgba(244, 239, 228, 0.55);
}

.about-card-accent h3 {
  margin: 5px 0 16px;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
}

.about-link:last-child {
  border-bottom: 0;
}

.about-link:hover {
  color: var(--accent-deep);
}

/* ---------- 404 ---------- */
.notfound {
  padding: 90px 0 120px;
  text-align: center;
}

.notfound-code {
  margin: 10px 0 24px;
  font-family: var(--font-mono);
  font-size: clamp(110px, 22vw, 220px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.12em;
  color: var(--ink);
}

.notfound-code span {
  color: var(--accent);
}

.notfound h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.04em;
}

.notfound p:not(.eyebrow) {
  max-width: 460px;
  margin: 12px auto 0;
  font-size: 14px;
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

/* ---------- 鍔ㄦ晥 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 鍝嶅簲寮?---------- */
@media (max-width: 1080px) {
  .hero-inner {
    gap: 44px;
  }
  .hero h1 {
    font-size: clamp(38px, 5vw, 56px);
  }
  .hero-orbit {
    width: 340px;
    height: 340px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .feature-main {
    min-height: 380px;
  }
  .feature-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }
  .article-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }
  .article-aside {
    display: none;
  }
  .about-columns {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 48px;
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-grid;
  }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .hero {
    padding: 62px 0 54px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .hero-visual {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }
  .hero-lead {
    max-width: 620px;
  }
  .posts-grid,
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rss-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
  }
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .footer-col:last-child {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stamp {
    display: none;
  }
  .about-columns {
    grid-template-columns: 1fr;
  }
  .about-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .about-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 36px);
  }
  .section {
    padding: 46px 0;
  }
  .hero h1 {
    font-size: clamp(36px, 9vw, 48px);
  }
  .hero-stats {
    gap: 22px;
  }
  .terminal-body {
    padding: 21px 19px 18px;
    font-size: 11px;
  }
  .out-quote {
    font-size: 16px;
  }
  .float-chip {
    display: none;
  }
  .feature-main {
    padding: 26px;
    min-height: 340px;
    border-radius: 28px;
  }
  .feature-side {
    grid-template-columns: 1fr;
  }
  .side-thumb {
    width: 64px;
    height: 64px;
    border-radius: 15px;
  }
  .card-cover {
    height: 160px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
  }
  .rss-banner {
    padding: 32px 26px;
    border-radius: 28px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-col:last-child {
    display: flex;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .article-row {
    grid-template-columns: 1fr 26px;
    gap: 12px;
    padding: 22px 2px;
  }
  .row-no {
    display: none;
  }
  .row-main h3 {
    font-size: 18px;
  }
  .row-arrow {
    padding-top: 2px;
  }
  .archive-list li {
    grid-template-columns: 52px 1fr;
    gap: 10px;
  }
  .archive-cat {
    display: none;
  }
  .article-hero {
    padding: 26px 0 38px;
    border-radius: 0 0 26px 26px;
  }
  .article-hero h1 {
    font-size: clamp(29px, 7.6vw, 38px);
    line-height: 1.28;
  }
  .article-dek {
    font-size: 14px;
  }
  .article-tags {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
  .article-layout {
    padding-top: 38px;
  }
  .prose {
    font-size: 15.5px;
    line-height: 1.9;
  }
  .prose > p:first-of-type {
    font-size: 16.5px;
  }
  .prose h2 {
    font-size: 23px;
    margin-top: 42px;
  }
  .prose h3 {
    font-size: 18px;
  }
  .code-card {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 14px;
  }
  .code-card pre {
    font-size: 12px;
    padding: 16px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-item.is-empty {
    display: none;
  }
  .article-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-modal {
    padding: 6vh 12px 12px;
  }
  .search-panel {
    border-radius: 20px;
  }
  .notfound-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 32px);
  }
  .brand-text {
    font-size: 15px;
  }
  .header-actions {
    gap: 2px;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .hero-stats {
    justify-content: space-between;
  }
  .hero-stats div {
    flex-direction: column;
    gap: 0;
  }
  .hero-stats strong {
    font-size: 21px;
  }
  .page-header {
    padding: 54px 0 28px;
  }
  .category-hero {
    padding: 52px 0 44px;
  }
  .category-glyph {
    display: none;
  }
  .next-cats {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-aside {
    grid-template-columns: 1fr;
  }
  .about-hero {
    padding-top: 60px;
  }
  .callout {
    padding: 16px 18px;
  }
  .prose blockquote {
    padding: 16px 18px;
  }
  .article-ornament {
    display: none;
  }
}

/* ---------- 鎵撳嵃 ---------- */
@media print {
  .site-header,
  .site-footer,
  .search-modal,
  .article-aside,
  .post-nav,
  .related,
  .progress-bar,
  .article-ornament {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
  .article-hero {
    background: #fff;
    border: 0;
  }
  .article-layout {
    display: block;
    padding: 0;
  }
  .prose {
    font-size: 12pt;
  }
  .code-card {
    break-inside: avoid;
  }
}