/* === ZIZAI.CC — Bamboo Moon / 竹月 Design System ===
   Palette:
   竹月 #BCE5D6 · 月白 #D6ECF0 · 豆青 #9DC3A9 · 黛青山 #2E5A6F · 藕丝秋 #D9C6B3
   Goal: fresh Chinese editorial blog UI for Hexo knowledge base.
*/

:root {
  color-scheme: light;

  /* Core palette */
  --bamboo: #bce5d6;
  --moon: #d6ecf0;
  --bean: #9dc3a9;
  --mountain: #2e5a6f;
  --lotus: #d9c6b3;

  /* Derived surfaces */
  --bg: #f6fbf8;
  --bg-2: #eef8f4;
  --bg-elev: rgba(255, 255, 255, 0.78);
  --bg-solid: #ffffff;
  --bg-soft: #e8f5f0;
  --bg-moon: #f3fbfc;
  --bg-warm: #fbf7f1;
  --glass: rgba(246, 251, 248, 0.78);

  /* Text */
  --ink: #203f4f;
  --ink-strong: #183341;
  --ink-soft: #42697a;
  --muted: #6f8b91;
  --faint: #9eb2b3;

  /* Lines */
  --line: rgba(46, 90, 111, 0.12);
  --line-strong: rgba(46, 90, 111, 0.22);

  /* Roles */
  --accent: var(--mountain);
  --accent-hover: #21495b;
  --accent-text: #244f62;
  --accent-soft: rgba(188, 229, 214, 0.52);
  --accent-softer: rgba(214, 236, 240, 0.62);
  --secondary: var(--bean);
  --secondary-soft: rgba(157, 195, 169, 0.25);
  --warm: var(--lotus);
  --warm-soft: rgba(217, 198, 179, 0.28);

  /* Semantic */
  --success: #3f8f68;
  --success-soft: rgba(63, 143, 104, 0.12);
  --warning: #b9894c;
  --warning-soft: rgba(185, 137, 76, 0.15);
  --error: #b85c62;
  --error-soft: rgba(184, 92, 98, 0.13);
  --info: #3b7c91;
  --info-soft: rgba(59, 124, 145, 0.13);

  /* Typography */
  --font-sans: 'Inter', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, Monaco, monospace;

  /* Layout */
  --max-width: 1200px;
  --wide-width: 1320px;
  --article-width: 760px;
  --toc-width: 240px;
  --sidebar-width: 316px;

  /* Radius */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(30, 63, 79, 0.04);
  --shadow-sm: 0 8px 24px rgba(46, 90, 111, 0.07);
  --shadow: 0 18px 48px rgba(46, 90, 111, 0.10);
  --shadow-lg: 0 28px 80px rgba(46, 90, 111, 0.16);
  --ring: 0 0 0 3px rgba(188, 229, 214, 0.72), 0 0 0 5px rgba(46, 90, 111, 0.10);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --fast: 160ms var(--ease);
  --normal: 260ms var(--ease);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #102129;
    --bg-2: #132b34;
    --bg-elev: rgba(24, 50, 60, 0.78);
    --bg-solid: #18323c;
    --bg-soft: #193942;
    --bg-moon: #1f4551;
    --bg-warm: #2b342f;
    --glass: rgba(16, 33, 41, 0.82);
    --ink: #ecfbf5;
    --ink-strong: #ffffff;
    --ink-soft: #c4e2d9;
    --muted: #94b7b2;
    --faint: #6d8b89;
    --line: rgba(214, 236, 240, 0.13);
    --line-strong: rgba(214, 236, 240, 0.24);
    --accent: #bce5d6;
    --accent-hover: #d6ecf0;
    --accent-text: #d6ecf0;
    --accent-soft: rgba(188, 229, 214, 0.13);
    --accent-softer: rgba(214, 236, 240, 0.09);
    --secondary: #9dc3a9;
    --secondary-soft: rgba(157, 195, 169, 0.16);
    --warm: #d9c6b3;
    --warm-soft: rgba(217, 198, 179, 0.15);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.22);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 32px 96px rgba(0, 0, 0, 0.42);
  }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6fbf8;
  --bg-2: #eef8f4;
  --bg-elev: rgba(255, 255, 255, 0.78);
  --bg-solid: #ffffff;
  --bg-soft: #e8f5f0;
  --bg-moon: #f3fbfc;
  --bg-warm: #fbf7f1;
  --glass: rgba(246, 251, 248, 0.78);
  --ink: #203f4f;
  --ink-strong: #183341;
  --ink-soft: #42697a;
  --muted: #6f8b91;
  --faint: #9eb2b3;
  --line: rgba(46, 90, 111, 0.12);
  --line-strong: rgba(46, 90, 111, 0.22);
  --accent: #2e5a6f;
  --accent-hover: #21495b;
  --accent-text: #244f62;
  --accent-soft: rgba(188, 229, 214, 0.52);
  --accent-softer: rgba(214, 236, 240, 0.62);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #102129;
  --bg-2: #132b34;
  --bg-elev: rgba(24, 50, 60, 0.78);
  --bg-solid: #18323c;
  --bg-soft: #193942;
  --bg-moon: #1f4551;
  --bg-warm: #2b342f;
  --glass: rgba(16, 33, 41, 0.82);
  --ink: #ecfbf5;
  --ink-strong: #ffffff;
  --ink-soft: #c4e2d9;
  --muted: #94b7b2;
  --faint: #6d8b89;
  --line: rgba(214, 236, 240, 0.13);
  --line-strong: rgba(214, 236, 240, 0.24);
  --accent: #bce5d6;
  --accent-hover: #d6ecf0;
  --accent-text: #d6ecf0;
  --accent-soft: rgba(188, 229, 214, 0.13);
  --accent-softer: rgba(214, 236, 240, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.68;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at 12% 0%, rgba(188, 229, 214, 0.66), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(214, 236, 240, 0.76), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg) 100%);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(46,90,111,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,90,111,.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 76%);
}

a { color: inherit; text-decoration: none; transition: color var(--fast), background var(--fast), border-color var(--fast), transform var(--fast), box-shadow var(--fast); }
a:hover { color: var(--accent-text); }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--bamboo); color: var(--mountain); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.nav-inner {
  width: min(var(--wide-width), calc(100% - 48px));
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink-strong); font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--mountain);
  background: linear-gradient(135deg, var(--bamboo), var(--moon));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.56), 0 8px 18px rgba(46,90,111,.14);
  font-family: var(--font-serif);
  font-weight: 900;
}
.brand-text { font-size: 15px; }
.desktop-nav { display: flex; align-items: center; gap: var(--space-5); }
.desktop-nav a { color: var(--ink-soft); font-size: 13px; font-weight: 700; padding: 8px 0; position: relative; }
.desktop-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 2px; border-radius: 99px; background: var(--bean); transition: left var(--normal), right var(--normal); }
.desktop-nav a:hover::after { left: 0; right: 0; }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.46);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
}
html[data-theme="dark"] .icon-button { background: rgba(255,255,255,.04); }
.icon-button:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--accent-soft); box-shadow: var(--shadow-sm); }
.icon-button svg { width: 18px; height: 18px; fill: currentColor; }
.mobile-menu-button { display: none; gap: 4px; }
.mobile-menu-button span { display: block; width: 16px; height: 2px; border-radius: 99px; background: currentColor; }
.mobile-panel { display: none; width: min(var(--wide-width), calc(100% - 32px)); margin: 0 auto var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.mobile-panel a { display: block; padding: 12px 14px; border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 700; }
.mobile-panel a:hover { background: var(--accent-soft); color: var(--accent-text); }
body.menu-open .mobile-panel, .mobile-panel.active { display: block; }

/* Shared layout */
.home-main, .listing-main, .article-main { width: 100%; }
.home-container, .listing-content, .article-shell { width: min(var(--wide-width), calc(100% - 48px)); margin: 0 auto; }

/* Hero */
.hero-section, .listing-hero, .article-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.72), rgba(214,236,240,.64)),
    radial-gradient(circle at 18% 20%, rgba(188,229,214,.86), transparent 23rem),
    radial-gradient(circle at 90% 10%, rgba(217,198,179,.35), transparent 20rem);
  box-shadow: var(--shadow-sm);
}
.hero-section::before, .listing-hero::before, .article-hero::before {
  content: '';
  position: absolute;
  inset: 16px;
  pointer-events: none;
  border: 1px solid rgba(46,90,111,.07);
  border-radius: calc(var(--radius-xl) - 10px);
}
.hero-section { margin: var(--space-7) auto var(--space-5); padding: clamp(54px, 8vw, 116px) var(--space-6); border-radius: var(--radius-xl); text-align: center; }
.hero-section h1, .listing-hero h1, .article-hero h1 {
  position: relative;
  margin: 0;
  color: var(--ink-strong);
  font-family: var(--font-serif);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.hero-section h1 { font-size: clamp(44px, 8vw, 104px); }
.hero-section .subtitle, .listing-hero p, .article-dek {
  position: relative;
  margin: var(--space-4) auto 0;
  max-width: 680px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.8;
}
.hero-section .subtitle::before {
  content: '竹月 · 清新型知识博客';
  display: inline-flex;
  margin-right: var(--space-3);
  padding: 7px 12px;
  border-radius: var(--pill);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  vertical-align: middle;
}
.listing-hero { width: min(var(--wide-width), calc(100% - 48px)); margin: var(--space-7) auto var(--space-5); padding: clamp(48px, 7vw, 90px) var(--space-6); border-radius: var(--radius-xl); text-align: center; }
.listing-hero h1 { font-size: clamp(38px, 6vw, 76px); }

/* Category quick nav */
.category-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: 0 0 var(--space-5);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
}
.category-bar .label { padding: 9px 12px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.category-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  color: var(--ink-soft);
  background: rgba(255,255,255,.36);
  font-weight: 800;
  font-size: 13px;
}
.category-bar a:hover, .category-bar a.active { color: var(--accent-text); background: var(--accent-soft); border-color: var(--line-strong); }
.category-bar em { color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700; }

/* Home */
.home-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--sidebar-width); gap: var(--space-5); align-items: start; padding-bottom: var(--space-8); }
.content-feed { min-width: 0; display: grid; gap: var(--space-5); }
.content-section {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.section-header h2 { margin: 0; color: var(--ink-strong); font-size: clamp(22px, 3vw, 32px); font-family: var(--font-serif); letter-spacing: -0.04em; }
.section-header a { color: var(--accent-text); font-size: 13px; font-weight: 900; }
.post-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 204px;
  gap: var(--space-5);
  align-items: stretch;
  padding: var(--space-4);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  transition: transform var(--normal), background var(--normal), border-color var(--normal), box-shadow var(--normal);
}
.post-card + .post-card { margin-top: var(--space-3); }
.post-card:hover { transform: translateY(-2px); border-color: var(--line); background: rgba(255,255,255,.54); box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .post-card:hover { background: rgba(255,255,255,.04); }
.post-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: var(--space-3); }
.post-title { margin: 0; color: var(--ink-strong); font-size: clamp(18px, 2.2vw, 25px); line-height: 1.32; letter-spacing: -0.04em; }
.post-excerpt { margin: 0; color: var(--ink-soft); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.post-meta a { color: var(--accent-text); }
.post-meta .tag, .side-tag, .tags-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  color: var(--accent-text);
  background: var(--accent-softer);
  font-size: 12px;
  font-weight: 800;
}
.post-meta .separator { color: var(--faint); }
.post-thumb { overflow: hidden; min-height: 132px; border-radius: var(--radius); background: linear-gradient(135deg, var(--moon), var(--bamboo)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--normal), filter var(--normal); }
.post-card:hover .post-thumb img { transform: scale(1.04); filter: saturate(1.05); }

/* Sidebar */
.sidebar { position: sticky; top: 88px; display: grid; gap: var(--space-4); }
.sidebar-widget {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}
.author-card { text-align: center; background: linear-gradient(180deg, rgba(214,236,240,.62), rgba(255,255,255,.72)); }
html[data-theme="dark"] .author-card { background: linear-gradient(180deg, rgba(214,236,240,.08), rgba(255,255,255,.04)); }
.author-avatar { width: 74px; height: 74px; margin: 0 auto var(--space-3); display: grid; place-items: center; border-radius: 26px; overflow:hidden; background: linear-gradient(135deg, var(--bamboo), var(--moon)); box-shadow: var(--shadow-sm); }
.author-avatar img { width:100%; height:100%; object-fit:cover; }
.author-card h2 { margin: 0 0 var(--space-2); color: var(--ink-strong); font-family: var(--font-serif); font-size: 24px; letter-spacing: -0.04em; }
.author-card p { margin: 0; color: var(--ink-soft); line-height: 1.75; }
.author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); margin-top: var(--space-4); }
.author-stats a { padding: var(--space-3) var(--space-2); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.44); }
html[data-theme="dark"] .author-stats a { background: rgba(255,255,255,.04); }
.author-stats strong { display: block; color: var(--accent-text); font-size: 22px; line-height: 1; }
.author-stats span { color: var(--muted); font-size: 12px; font-weight: 800; }
.widget-title { margin: 0 0 var(--space-3); color: var(--ink-strong); font-size: 15px; font-weight: 900; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tags-cloud a:hover, .side-tag:hover { transform: translateY(-1px); background: var(--accent-soft); border-color: var(--line-strong); }
.archive-list { display: grid; gap: var(--space-2); }
.archive-list a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: var(--space-3); align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.archive-list a:last-child { border-bottom: 0; }
.archive-list time { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.archive-list span { color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Listing pages */
.listing-content { padding-bottom: var(--space-8); }
.terms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.term-card {
  min-height: 170px;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(188,229,214,.55), transparent 9rem),
    rgba(255,255,255,.46);
  box-shadow: var(--shadow-xs);
}
html[data-theme="dark"] .term-card { background: radial-gradient(circle at 100% 0%, rgba(188,229,214,.10), transparent 9rem), rgba(255,255,255,.04); }
.term-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.term-count { display: inline-flex; padding: 6px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 900; }
.term-name { margin: var(--space-5) 0 var(--space-2); color: var(--ink-strong); font-size: 26px; font-family: var(--font-serif); letter-spacing: -0.05em; }
.term-hint { margin: 0; color: var(--muted); font-weight: 700; }
.tags-page-cloud { padding: var(--space-4); border-radius: var(--radius-lg); background: rgba(255,255,255,.36); border: 1px solid var(--line); }
.tags-page-cloud a { padding: 10px 14px; font-size: 13px; }
.tag-count { display: inline-flex; min-width: 22px; justify-content: center; padding: 2px 6px; margin-left: 5px; border-radius: var(--pill); background: rgba(255,255,255,.55); color: var(--muted); font-size: 11px; }
.pagination { margin-top: var(--space-5); display: flex; justify-content: center; }
.pagination .page-number, .pagination .extend, .pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 38px; margin: 0 4px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg-elev); color: var(--ink-soft); font-weight: 800; }
.pagination .current, .pagination a:hover { background: var(--accent-soft); color: var(--accent-text); border-color: var(--line-strong); }

/* Article */
.article-shell { padding: var(--space-7) 0 var(--space-8); }
.article-hero { padding: clamp(42px, 7vw, 88px); border-radius: var(--radius-xl); margin-bottom: var(--space-5); }
.article-kicker { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-4); color: var(--accent-text); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.article-kicker a, .article-kicker span { padding: 6px 10px; border-radius: var(--pill); background: var(--accent-soft); }
.article-hero h1 { max-width: 920px; font-size: clamp(36px, 6vw, 72px); }
.article-dek { margin-left: 0; max-width: 760px; }
.article-meta-bar { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: var(--space-5); color: var(--muted); font-size: 13px; font-weight: 800; }
.article-meta-bar .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bean); }
.article-layout { display: grid; grid-template-columns: 188px minmax(0, var(--article-width)) var(--toc-width); gap: var(--space-5); align-items: start; justify-content: center; }
.article-tools, .toc-card { position: sticky; top: 88px; min-width: 0; }
.article-tools { display: grid; gap: var(--space-3); }
.tool-button { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); color: var(--ink-soft); font-weight: 900; box-shadow: var(--shadow-xs); }
.tool-button:hover { transform: translateY(-1px); background: var(--accent-soft); color: var(--accent-text); }
.side-tags-section { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.side-tags-section p { margin: 0 0 var(--space-3); color: var(--muted); font-size: 12px; font-weight: 900; }
.side-tags-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.article-content { min-width: 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.toc-card { max-height: calc(100vh - 110px); overflow: auto; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow-xs); }
.toc-card p { margin: 0 0 var(--space-3); color: var(--ink-strong); font-size: 13px; font-weight: 900; }
.toc-card ol, .toc-card ul { margin: 0; padding-left: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.toc-card a { color: var(--muted); }
.toc-card a:hover { color: var(--accent-text); }

/* Prose */
.prose { color: var(--ink); font-size: 16px; line-height: 1.86; }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink-strong); font-family: var(--font-serif); line-height: 1.25; letter-spacing: -0.04em; scroll-margin-top: 96px; }
.prose h1 { font-size: 38px; margin: 1.6em 0 .6em; }
.prose h2 { font-size: 30px; margin: 1.9em 0 .75em; padding-top: .2em; }
.prose h2::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--bean); vertical-align: .12em; box-shadow: 0 0 0 6px var(--secondary-soft); }
.prose h3 { font-size: 23px; margin: 1.55em 0 .65em; }
.prose h4 { font-size: 18px; margin: 1.25em 0 .5em; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose pre, .prose figure { margin: 1em 0; }
.prose p { color: var(--ink); }
.prose a { color: var(--accent-text); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(46,90,111,.23); text-underline-offset: 3px; }
.prose strong { color: var(--ink-strong); font-weight: 900; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose blockquote { margin: 1.4em 0; padding: 18px 20px; border: 1px solid var(--line); border-left: 5px solid var(--bean); border-radius: var(--radius); background: var(--bg-warm); color: var(--ink-soft); }
.prose img { margin: var(--space-5) auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prose .headerlink { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.prose h1:hover .headerlink, .prose h2:hover .headerlink, .prose h3:hover .headerlink, .prose h4:hover .headerlink { opacity: 0; }
.prose hr { border: 0; height: 1px; margin: var(--space-7) 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.prose table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); font-size: 14px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink-strong); background: var(--accent-soft); font-weight: 900; }
.prose tr:nth-child(even) td { background: rgba(255,255,255,.28); }
html[data-theme="dark"] .prose tr:nth-child(even) td { background: rgba(255,255,255,.025); }
.prose code:not(pre code) { padding: .18em .42em; border: 1px solid var(--line); border-radius: 7px; color: var(--accent-text); background: var(--accent-softer); font-family: var(--font-mono); font-size: .88em; }

/* Code blocks: Hexo highlight.js figure.highlight + plain pre */
.prose pre, figure.highlight, .code-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214,236,240,.18) !important;
  border-radius: var(--radius) !important;
  background: #183341 !important;
  box-shadow: 0 18px 48px rgba(24, 51, 65, .22) !important;
}
.prose pre { padding: 18px 20px; overflow-x: auto !important; }
.prose pre code, figure.highlight code, figure.highlight pre { color: #eaf7f2; background: transparent !important; font-family: var(--font-mono); font-size: 13px; line-height: 1.78; }
figure.highlight { margin: 1.4em 0 !important; padding-top: 38px !important; }
figure.highlight::before, .code-shell::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d9c6b3;
  box-shadow: 16px 0 0 #9dc3a9, 32px 0 0 #bce5d6;
  z-index: 2;
}
figure.highlight table { width: 100%; border-collapse: collapse; margin: 0 !important; box-shadow: none; }
figure.highlight td { padding: 0 !important; border: 0 !important; background: transparent !important; }
figure.highlight .gutter { width: 48px; padding: 14px 10px !important; color: rgba(214,236,240,.42); background: rgba(0,0,0,.16) !important; user-select: none; text-align: right; }
figure.highlight .code { padding: 14px 18px !important; overflow-x: auto; }
figure.highlight .line { min-height: 1.78em; }
figure.highlight .keyword, figure.highlight .selector-tag, figure.highlight .built_in { color: #d9c6b3; }
figure.highlight .string, figure.highlight .attr, figure.highlight .symbol { color: #bce5d6; }
figure.highlight .number, figure.highlight .literal { color: #f0d9bd; }
figure.highlight .comment { color: rgba(214,236,240,.46); font-style: italic; }
figure.highlight .title, figure.highlight .function { color: #d6ecf0; }

/* Article footer */
.article-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); max-width: calc(var(--article-width) + var(--toc-width) + 212px); margin: var(--space-5) auto 0; }
.pager-cell { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); box-shadow: var(--shadow-xs); }
.pager-label { display: block; color: var(--muted); font-size: 12px; font-weight: 900; margin-bottom: 6px; }
.pager-cell a { color: var(--ink-strong); font-weight: 900; }
.pager-cell em { color: var(--faint); font-style: normal; }
.backlinks-section { max-width: calc(var(--article-width) + var(--toc-width) + 212px); margin: var(--space-5) auto 0; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.backlinks-section h3 { margin: 0 0 var(--space-4); color: var(--ink-strong); font-family: var(--font-serif); font-size: 24px; }
.backlinks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.backlink-card { display: grid; grid-template-columns: 98px minmax(0, 1fr); gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.34); }
.backlink-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.backlink-thumb { overflow: hidden; border-radius: var(--radius-sm); background: var(--accent-soft); }
.backlink-thumb img { width: 100%; height: 100%; object-fit: cover; }
.backlink-title { margin: 0 0 5px; color: var(--ink-strong); font-size: 14px; line-height: 1.35; }
.backlink-excerpt { margin: 0 0 6px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.backlink-body time { color: var(--faint); font-size: 11px; font-family: var(--font-mono); }

/* Knowledge graph */
.kg-container { position: relative; min-height: 640px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 45%, rgba(214,236,240,.72), transparent 24rem), rgba(255,255,255,.35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
html[data-theme="dark"] .kg-container { background: radial-gradient(circle at 50% 45%, rgba(214,236,240,.08), transparent 24rem), rgba(255,255,255,.03); }
.kg-legend { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--line); border-radius: var(--pill); background: var(--glass); backdrop-filter: blur(16px); }
.kg-legend-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; color: var(--ink-soft); font-size: 12px; font-weight: 900; }
.kg-dot { width: 10px; height: 10px; border-radius: 50%; }
.kg-dot-cat { background: var(--warm); }
.kg-dot-post { background: var(--bamboo); }
.kg-dot-tag { background: var(--bean); }
#knowledge-graph { width: 100%; min-height: 640px; }
.kg-tooltip { display: none; position: fixed; z-index: 2000; max-width: 260px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-solid); color: var(--ink); box-shadow: var(--shadow); font-size: 12px; pointer-events: none; }

/* Footer */
.site-footer { margin-top: var(--space-8); border-top: 1px solid var(--line); background: rgba(255,255,255,.22); }
.footer-inner { width: min(var(--wide-width), calc(100% - 48px)); margin: 0 auto; padding: var(--space-6) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); color: var(--muted); font-size: 13px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--accent-text); font-weight: 800; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 17px; background: var(--bg-elev); color: var(--accent-text); box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(12px); cursor: pointer; transition: opacity var(--normal), visibility var(--normal), transform var(--normal); backdrop-filter: blur(18px); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Utilities */
.page-prose { max-width: 860px; margin: 0 auto; }
.hidden { display: none !important; }

@media (max-width: 1180px) {
  .home-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar .author-card { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: minmax(0, var(--article-width)); }
  .article-tools, .toc-card { position: static; }
  .article-tools { grid-row: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-tags-section { grid-column: 1 / -1; }
  .toc-card { order: 3; }
  .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .nav-inner, .home-container, .listing-content, .article-shell, .footer-inner { width: min(100% - 28px, var(--wide-width)); }
  .listing-hero { width: min(100% - 28px, var(--wide-width)); }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: grid; }
  .nav-inner { height: 60px; }
  .brand-text { max-width: 44vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-section, .listing-hero, .article-hero { margin-top: var(--space-5); padding: var(--space-6) var(--space-4); border-radius: var(--radius-lg); }
  .hero-section::before, .listing-hero::before, .article-hero::before { inset: 10px; border-radius: calc(var(--radius-lg) - 7px); }
  .hero-section .subtitle::before { display: flex; width: max-content; margin: 0 auto var(--space-3); }
  .category-bar { overflow-x: auto; flex-wrap: nowrap; padding: var(--space-2); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
  .category-bar .label, .category-bar a { flex: 0 0 auto; }
  .content-section, .article-content, .sidebar-widget { padding: var(--space-4); border-radius: var(--radius); }
  .section-header { align-items: flex-start; flex-direction: column; gap: var(--space-2); }
  .post-card { grid-template-columns: 1fr; padding: var(--space-3); }
  .post-thumb { order: -1; min-height: 190px; }
  .sidebar { grid-template-columns: 1fr; }
  .terms-grid { grid-template-columns: 1fr; }
  .article-layout { display: block; }
  .article-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--space-4); }
  .side-tags-section, .toc-card { margin: var(--space-4) 0; }
  .toc-card { max-height: none; }
  .article-pager, .backlinks-grid { grid-template-columns: 1fr; }
  .backlink-card { grid-template-columns: 82px minmax(0, 1fr); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .kg-container, #knowledge-graph { min-height: 520px; }
  .kg-legend { position: static; margin: var(--space-3); border-radius: var(--radius); }
}

@media (max-width: 420px) {
  body { font-size: 14px; }
  .hero-section h1 { font-size: 42px; }
  .listing-hero h1, .article-hero h1 { font-size: 34px; }
  .post-thumb { min-height: 160px; }
  .article-content { padding: var(--space-4); }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 25px; }
  .back-to-top { right: 14px; bottom: 14px; }
}

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


/* === Bamboo Moon detail pass: mockup fidelity components === */
.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bean-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-eyebrow::before,
.section-kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--mountain), transparent);
}
.listing-hero-detailed {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  overflow: hidden;
  position: relative;
}
.listing-hero-detailed::after,
.about-hero::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(188,229,214,.75), rgba(214,236,240,.22) 58%, transparent 70%);
  pointer-events: none;
}
.hero-mini-panel {
  position: relative;
  z-index: 1;
  min-width: 170px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(46,90,111,.12);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.hero-mini-panel strong { display: block; color: var(--mountain); font-size: 38px; line-height: 1; }
.hero-mini-panel span { color: var(--muted); font-weight: 700; font-size: 13px; }
.hero-orbit { display: grid; place-items: center; height: 136px; }
.hero-orbit i { position: absolute; display:block; border-radius:999px; background: rgba(188,229,214,.85); border:1px solid rgba(46,90,111,.14); }
.hero-orbit i:nth-child(1){ width:82px;height:82px; }
.hero-orbit i:nth-child(2){ width:46px;height:46px; transform: translate(48px, -28px); background: rgba(157,195,169,.7); }
.hero-orbit i:nth-child(3){ width:28px;height:28px; transform: translate(-52px, 38px); background: rgba(217,198,179,.78); }
.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: var(--space-4);
  align-items: center;
  margin: var(--space-4) 0;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(46,90,111,.1);
  box-shadow: var(--shadow-soft);
}
.filter-search { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.filter-search input {
  width: 100%; border: 1px solid rgba(46,90,111,.16); border-radius: 999px;
  padding: 12px 16px; background: rgba(246,251,248,.82); color: var(--ink); outline: none;
}
.filter-search input:focus { border-color: var(--bean); box-shadow: 0 0 0 4px rgba(188,229,214,.42); }
.filter-hints { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.filter-hints a,
.article-tag-strip a,
.featured-tag,
.about-domain-tags span {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px;
  padding: 8px 14px; border-radius: 999px; background: rgba(214,236,240,.62);
  color: var(--mountain); font-weight: 780; border: 1px solid rgba(46,90,111,.1);
}
.terms-grid-rich { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.term-card-rich { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.term-main-link { display: block; padding: 24px; color: inherit; text-decoration: none; }
.term-icon {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 16px;
  overflow:hidden;
  background: linear-gradient(145deg, var(--bamboo), var(--moon));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  margin-bottom: 18px;
}
.term-icon img { width:100%; height:100%; object-fit:cover; }
.term-mini-list {
  margin-top: auto; padding: 16px 20px 20px; border-top: 1px solid rgba(46,90,111,.09);
  background: rgba(246,251,248,.58); display: grid; gap: 8px;
}
.term-mini-list > span { color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.term-mini-list a { color: var(--ink); font-size: 13px; line-height: 1.45; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-mini-list a:hover { color: var(--mountain); }
.featured-tags { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.featured-tag { text-decoration: none; background: rgba(188,229,214,.52); transition: transform .18s ease, background .18s ease; }
.featured-tag:hover { transform: translateY(-2px); background: rgba(188,229,214,.82); }
.featured-tag em { min-width: 26px; height: 26px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.66); font-style: normal; }
.featured-tag.size-2 { font-size: 16px; padding: 10px 16px; }
.featured-tag.size-3, .featured-tag.size-4 { font-size: 18px; padding: 12px 18px; }
.tag-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-5); align-items: start; }
.tags-cloud-rich a { margin: 0; }
.tag-preview-card,
.kg-side-panel,
.about-info-card {
  border-radius: var(--radius-xl); background: rgba(255,255,255,.66); border: 1px solid rgba(46,90,111,.1);
  box-shadow: var(--shadow-soft); padding: var(--space-5);
}
.preview-label { color: var(--bean-dark); font-size:12px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.preview-list { display: grid; gap: 12px; margin-top: 18px; }
.preview-list a { display: grid; grid-template-columns: 46px 1fr; gap: 12px; color: var(--ink); text-decoration: none; font-size: 14px; }
.preview-list time { color: var(--bean-dark); font-weight: 850; }
.empty-illustration { position: relative; height: 90px; margin-top: 22px; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(214,236,240,.62), rgba(188,229,214,.35)); overflow: hidden; }
.empty-illustration i { position:absolute; border-radius:50%; background:rgba(46,90,111,.1); }
.empty-illustration i:nth-child(1){ width:70px;height:70px;left:22px;top:18px; }
.empty-illustration i:nth-child(2){ width:42px;height:42px;right:64px;top:12px;background:rgba(157,195,169,.25); }
.empty-illustration i:nth-child(3){ width:24px;height:24px;right:32px;bottom:18px;background:rgba(217,198,179,.35); }
.about-hero {
  position: relative; overflow: hidden; max-width: var(--max); margin: var(--space-6) auto var(--space-4); padding: var(--space-6);
  border-radius: var(--radius-xl); background: linear-gradient(135deg, rgba(214,236,240,.82), rgba(246,251,248,.72));
  border: 1px solid rgba(46,90,111,.1); box-shadow: var(--shadow-soft);
}
.about-profile-card { position:relative; z-index:1; display:grid; grid-template-columns: 88px 1fr; gap: var(--space-4); align-items:center; }
.about-avatar { width:88px; height:88px; display:grid; place-items:center; border-radius:28px; overflow:hidden; background:linear-gradient(145deg,var(--bamboo),var(--bean)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.72); }
.about-avatar img { width:100%; height:100%; object-fit:cover; }
.about-hero h1 { margin: 8px 0 10px; color: var(--mountain); font-size: clamp(38px, 5vw, 64px); }
.about-hero p { max-width: 720px; color: var(--ink-soft); font-size: 17px; line-height: 1.8; }
.about-domain-tags { position:relative; z-index:1; display:flex; flex-wrap:wrap; gap:10px; margin-top: var(--space-5); }
.about-grid { display:grid; grid-template-columns: minmax(0,1fr) 360px; gap: var(--space-5); align-items:start; }
.about-main-card { margin:0; background:rgba(255,255,255,.66); border:1px solid rgba(46,90,111,.1); border-radius:var(--radius-xl); box-shadow:var(--shadow-soft); }
.about-side-stack { display:grid; gap: var(--space-4); position: sticky; top: 96px; }
.about-timeline { list-style:none; padding:0; margin:18px 0 0; display:grid; gap:14px; }
.about-timeline li { position:relative; padding-left:26px; display:grid; gap:3px; }
.about-timeline li::before { content:''; position:absolute; left:0; top:5px; width:11px; height:11px; border-radius:50%; background:var(--bamboo); box-shadow:0 0 0 4px rgba(188,229,214,.25); }
.about-timeline strong { color:var(--mountain); }
.about-timeline span { color:var(--muted); font-size:14px; }
.contact-card { display:grid; gap:12px; }
.contact-card a,.kg-side-link { display:flex; justify-content:space-between; align-items:center; min-height:42px; padding:10px 14px; border-radius:14px; background:rgba(214,236,240,.52); color:var(--mountain); font-weight:800; text-decoration:none; }
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; background: transparent; }
.reading-progress span { display:block; width:0; height:100%; background:linear-gradient(90deg,var(--bean),var(--mountain)); box-shadow:0 0 16px rgba(46,90,111,.25); }
.article-tag-strip { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 var(--space-5); padding-bottom:var(--space-4); border-bottom:1px solid rgba(46,90,111,.09); }
.kg-shell { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:var(--space-5); align-items:stretch; }
.kg-toolbar { position:absolute; z-index:3; top:14px; left:14px; right:14px; display:flex; justify-content:space-between; gap:12px; pointer-events:none; }
.kg-toolbar > * { pointer-events:auto; }
.kg-controls { display:flex; gap:8px; padding:8px; border-radius:999px; background:rgba(255,255,255,.72); border:1px solid rgba(46,90,111,.1); box-shadow:var(--shadow-soft); }
.kg-controls button { border:0; min-width:34px; height:34px; padding:0 12px; border-radius:999px; background:rgba(214,236,240,.72); color:var(--mountain); font-weight:900; cursor:pointer; }
.kg-side-panel { align-self:stretch; display:flex; flex-direction:column; gap:12px; }
.kg-side-panel h2 { margin:0; color:var(--mountain); font-size:24px; }
.kg-side-panel p { color:var(--muted); line-height:1.75; }

@media (max-width: 900px) {
  .listing-hero-detailed, .filter-panel, .tag-layout, .about-grid, .kg-shell { grid-template-columns: 1fr; display:grid; }
  .listing-hero-detailed { align-items: stretch; }
  .filter-hints { justify-content: flex-start; }
  .about-side-stack { position: static; }
  .kg-toolbar { position: static; margin: var(--space-3); flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .about-profile-card { grid-template-columns: 1fr; }
  .about-avatar { width:72px; height:72px; border-radius:22px; font-size:30px; }
  .hero-mini-panel { min-width: 0; }
  .preview-list a { grid-template-columns: 1fr; }
}

/* === Round 1 / 设计稿还原：整体版式、留白与竹月氛围 === */
:root {
  --bean-dark: #6f9a7b;
  --paper: rgba(255, 255, 255, 0.72);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 18px 46px rgba(46, 90, 111, 0.09), 0 1px 0 rgba(255,255,255,.62) inset;
  --shadow-float: 0 28px 80px rgba(46, 90, 111, 0.14);
}
html[data-theme="dark"] {
  --paper: rgba(24, 50, 60, 0.72);
  --paper-strong: rgba(24, 50, 60, 0.9);
  --bean-dark: #bce5d6;
  --shadow-soft: 0 18px 48px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.06);
  --shadow-float: 0 30px 92px rgba(0,0,0,.38);
}
body {
  background-image:
    url('/images/theme/zhuyue-paper-grain.svg'),
    radial-gradient(circle at 12% 0%, rgba(188, 229, 214, 0.66), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(214, 236, 240, 0.76), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 42%, var(--bg) 100%);
  background-size: 160px 160px, auto, auto, auto;
}
.site-nav { box-shadow: 0 10px 30px rgba(46,90,111,.05); }
.hero-section-detailed {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  align-items: center;
  text-align: left;
  gap: clamp(28px, 6vw, 72px);
  min-height: clamp(430px, 52vw, 590px);
  padding: clamp(58px, 8vw, 112px) clamp(34px, 6vw, 76px);
  background:
    linear-gradient(135deg, rgba(255,255,255,.68), rgba(246,251,248,.42)),
    radial-gradient(circle at 82% 32%, rgba(188,229,214,.62), transparent 22rem),
    linear-gradient(145deg, rgba(214,236,240,.62), rgba(217,198,179,.22));
  box-shadow: var(--shadow-float);
}
.hero-section-detailed::before { inset: 16px; border-style: dashed; opacity: .8; }
.hero-section-detailed::after {
  content: '';
  position: absolute;
  inset: auto 30px 28px auto;
  width: 160px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(46,90,111,.08), transparent);
  filter: blur(10px);
}
.hero-copy { position: relative; z-index: 2; }
.hero-section-detailed .hero-eyebrow { margin-bottom: var(--space-4); }
.hero-section-detailed h1 { max-width: 7em; letter-spacing: -0.075em; }
.hero-section-detailed .subtitle { margin-left: 0; max-width: 640px; color: var(--ink-soft); font-size: clamp(17px, 2vw, 21px); }
.hero-section-detailed .subtitle::before { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }
.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--mountain);
  color: #f6fbf8;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(46,90,111,.18);
}
.hero-actions a + a { background: rgba(255,255,255,.62); color: var(--mountain); border: 1px solid rgba(46,90,111,.14); box-shadow: none; }
.hero-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 300px;
}
.hero-art img { width: min(100%, 320px); opacity: .96; filter: saturate(.98); }
.hero-art span {
  position: absolute;
  right: 10%;
  bottom: 14%;
  writing-mode: vertical-rl;
  letter-spacing: .18em;
  color: rgba(46,90,111,.42);
  font-family: var(--font-serif);
  font-weight: 900;
}
.home-layout { align-items: start; }
.content-section, .article-content, .sidebar-widget, .term-card, .toc-card, .pager-cell, .backlinks-section { background: var(--paper); box-shadow: var(--shadow-soft); }
@media (max-width: 900px) {
  .hero-section-detailed { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero-section-detailed h1, .hero-section-detailed .subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 210px; }
  .hero-art img { width: min(78vw, 260px); }
}

/* === Round 2 / 设计稿还原：卡片、文章阅读、代码块与分类标签细节 === */
.category-bar {
  background: rgba(255,255,255,.58);
  box-shadow: var(--shadow-soft);
}
.category-bar a, .category-bar .label {
  border-color: rgba(46,90,111,.1);
}
.category-bar a.active,
.category-bar a:hover {
  color: var(--mountain);
  background: linear-gradient(135deg, rgba(188,229,214,.92), rgba(214,236,240,.76));
  border-color: rgba(46,90,111,.14);
}
.section-header { padding-bottom: 18px; border-bottom: 1px solid rgba(46,90,111,.08); }
.section-header h2 { position: relative; padding-left: 18px; }
.section-header h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .34em;
  width: 7px;
  height: 1.05em;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--bean), var(--mountain));
}
.post-card {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(246,251,248,.58));
  border-radius: 24px;
}
.post-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 18px;
  border: 1px solid rgba(46,90,111,.055);
  pointer-events: none;
}
.post-title { font-family: var(--font-serif); font-weight: 850; }
.post-excerpt { color: var(--ink-soft); }
.post-meta .tag, .side-tag, .tags-cloud a, .archive-list a time {
  background: rgba(214,236,240,.62);
  color: var(--mountain);
}
.post-thumb { aspect-ratio: 16 / 10; min-height: unset; border-radius: 20px; }
.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(46,90,111,.16));
  opacity: .45;
  pointer-events: none;
}
.sidebar-widget { border-radius: 26px; }
.author-avatar, .about-avatar, .term-icon {
  background-image: linear-gradient(145deg, #d6ecf0, #bce5d6 58%, #d9c6b3);
}
.article-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: clamp(24px, 5vw, 56px); align-items: center; }
.article-hero h1, .article-dek, .article-meta-bar, .article-kicker { grid-column: 1; }
.article-hero-media {
  grid-column: 2;
  grid-row: 1 / span 4;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  border: 1px solid rgba(46,90,111,.12);
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow-soft);
}
.article-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.article-content { border-radius: 30px; padding: clamp(28px, 5vw, 58px); }
.prose h2 { padding-top: 18px; border-top: 1px solid rgba(46,90,111,.08); }
.prose h2:first-child { border-top: 0; padding-top: 0; }
.prose blockquote {
  border-left: 0;
  background: linear-gradient(135deg, rgba(188,229,214,.38), rgba(214,236,240,.32));
  box-shadow: inset 5px 0 0 rgba(46,90,111,.44);
}
.prose table { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-xs); }
.prose pre, figure.highlight, .code-shell {
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(32,63,79,.98), rgba(16,33,41,.98)) !important;
  border-color: rgba(188,229,214,.16);
  box-shadow: 0 20px 54px rgba(16,33,41,.18);
}
figure.highlight::before, .code-shell::before { background: linear-gradient(90deg, rgba(214,236,240,.16), rgba(188,229,214,.08)); }
figure.highlight::after, .code-shell::after { background: #d9c6b3; box-shadow: 16px 0 0 #bce5d6, 32px 0 0 #9dc3a9; }
.term-card-rich, .featured-tag, .tag-preview-card { transition: transform var(--normal), box-shadow var(--normal), background var(--normal); }
.term-card-rich:hover, .featured-tag:hover, .tag-preview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
.term-count { color: var(--mountain); }
@media (max-width: 980px) {
  .article-hero { grid-template-columns: 1fr; }
  .article-hero h1, .article-dek, .article-meta-bar, .article-kicker, .article-hero-media { grid-column: auto; grid-row: auto; }
  .article-hero-media { aspect-ratio: 16 / 9; }
}

/* === Round 3 / 设计稿还原：图谱、图标纹理、移动端与微交互补齐 === */
.brand-mark {
  background-image: url('/images/theme/zhuyue-bamboo-mark.svg');
  background-size: 116%;
  background-position: center;
  color: transparent;
  overflow: hidden;
}
.icon-button:hover, .tool-button:hover, .kg-controls button:hover, .kg-side-link:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(188,229,214,.85), rgba(214,236,240,.7));
  color: var(--mountain);
}
.post-thumb { position: relative; }
.article-tools { gap: 12px; }
.tool-button {
  box-shadow: var(--shadow-xs);
  background: rgba(255,255,255,.62);
}
.side-tags-section, .toc-card { background: var(--paper-strong); }
.toc-card::before {
  content: '';
  display: block;
  height: 2px;
  margin: -2px 0 14px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--bean), transparent);
}
.backlink-card { background: rgba(255,255,255,.58); }
.backlink-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.kg-container {
  min-height: 680px;
  background-image:
    url('/images/theme/zhuyue-paper-grain.svg'),
    radial-gradient(circle at 50% 44%, rgba(214,236,240,.9), transparent 24rem),
    radial-gradient(circle at 12% 78%, rgba(188,229,214,.34), transparent 18rem),
    linear-gradient(135deg, rgba(255,255,255,.54), rgba(246,251,248,.36));
  background-size: 160px 160px, auto, auto, auto;
  box-shadow: var(--shadow-soft);
}
.kg-container::after {
  content: '';
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 120px;
  height: 120px;
  background: url('/images/theme/zhuyue-bamboo-mark.svg') center/contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.kg-tooltip {
  display: none;
  position: fixed;
  z-index: 2000;
  max-width: 240px;
  padding: 10px 12px;
  border: 1px solid rgba(46,90,111,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  color: var(--mountain);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  font-size: 13px;
}
.kg-side-panel { background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(246,251,248,.58)); }
.kg-side-link::after { content: '→'; }
.about-hero, .listing-hero-detailed, .filter-panel, .tag-preview-card, .about-info-card, .kg-side-panel { box-shadow: var(--shadow-soft); }
@media (max-width: 768px) {
  .nav-inner { width: min(100% - 28px, var(--wide-width)); }
  .home-container, .listing-main, .article-shell { width: min(100% - 28px, var(--wide-width)); }
  .hero-section-detailed { padding: 34px 18px; border-radius: 24px; }
  .hero-section h1 { font-size: clamp(42px, 15vw, 68px); }
  .hero-actions a { flex: 1 1 132px; }
  .category-bar { margin-left: -6px; margin-right: -6px; }
  .post-card { border-radius: 20px; }
  .post-card::before { inset: 8px; border-radius: 14px; }
  .article-content { border-radius: 22px; padding: 22px 18px; }
  .article-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kg-container { min-height: 560px; border-radius: 22px; }
  .kg-controls { width: 100%; justify-content: flex-end; }
}
@media (max-width: 420px) {
  .hero-art { display: none; }
  .hero-section-detailed { text-align: left; }
  .hero-section-detailed h1, .hero-section-detailed .subtitle { margin-left: 0; margin-right: 0; }
  .hero-actions { justify-content: stretch; }
  .hero-actions a { width: 100%; }
  .post-thumb { aspect-ratio: 4 / 3; }
  .article-hero-media { aspect-ratio: 4 / 3; border-radius: 20px; }
}

/* === Article Detail Rebuild / 阅读页与代码块专项优化 2026-06 === */
.article-shell {
  width: min(1380px, calc(100% - 48px));
  padding-top: clamp(34px, 5vw, 72px);
}
.article-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(34px, 6vw, 78px);
  border: 1px solid rgba(46,90,111,.1);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(246,251,248,.5)),
    radial-gradient(circle at 86% 18%, rgba(188,229,214,.58), transparent 22rem),
    radial-gradient(circle at 18% 84%, rgba(217,198,179,.22), transparent 18rem);
  box-shadow: var(--shadow-soft);
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(46,90,111,.055);
  border-radius: 28px;
  pointer-events: none;
}
.article-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.article-dek {
  max-width: 680px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.9;
  color: var(--ink-soft);
}
.article-meta-bar {
  padding: 10px 14px;
  width: fit-content;
  border: 1px solid rgba(46,90,111,.08);
  border-radius: var(--pill);
  background: rgba(255,255,255,.56);
  backdrop-filter: blur(14px);
}
.article-layout {
  grid-template-columns: 168px minmax(0, 820px) 260px;
  gap: 28px;
  align-items: start;
}
.article-content {
  position: relative;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.86), rgba(246,251,248,.72)),
    url('/images/theme/zhuyue-paper-grain.svg');
  background-size: auto, 160px 160px;
  box-shadow: 0 24px 70px rgba(46,90,111,.11);
}
.article-content::before {
  content: '';
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 18px;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--bamboo), var(--moon), transparent);
  opacity: .82;
}
.prose {
  font-size: 17px;
  line-height: 1.96;
  letter-spacing: .005em;
}
.prose p { margin: 1.05em 0; }
.prose h2 {
  margin-top: 2.25em;
  padding-top: 28px;
  font-size: clamp(26px, 3vw, 34px);
}
.prose h2::before {
  width: 12px;
  height: 12px;
  margin-right: 12px;
  background: linear-gradient(135deg, var(--bean), var(--mountain));
}
.prose h3 {
  position: relative;
  padding-left: 14px;
  font-size: clamp(21px, 2.2vw, 26px);
}
.prose h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: .36em;
  width: 4px;
  height: 1.1em;
  border-radius: 99px;
  background: var(--lotus);
}
.article-tools, .toc-card {
  top: 92px;
}
.article-tools {
  padding: 10px;
  border: 1px solid rgba(46,90,111,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
}
.tool-button {
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
}
.side-tags-section {
  border-radius: 18px;
  background: rgba(246,251,248,.72);
}
.toc-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
.toc-card p {
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-card p::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bean);
  box-shadow: 0 0 0 5px var(--secondary-soft);
}
.toc-card ol, .toc-card ul {
  padding-left: 0;
  list-style: none;
  border-left: 1px solid rgba(46,90,111,.1);
}
.toc-card li { margin: 5px 0; padding-left: 12px; }
.toc-card a {
  display: block;
  padding: 4px 0;
  border-radius: 8px;
}

/* Code block redesign: editor-like shell for Hexo figure.highlight and plain pre */
.prose pre,
figure.highlight,
.code-shell {
  margin: 1.75em 0 !important;
  border: 1px solid rgba(188,229,214,.18) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(180deg, rgba(31,62,77,.98), rgba(12,27,34,.98)) !important;
  box-shadow:
    0 24px 70px rgba(16,33,41,.22),
    inset 0 1px 0 rgba(255,255,255,.06) !important;
}
figure.highlight,
.article-content > pre {
  padding-top: 44px !important;
}
.code-toolbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(188,229,214,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  backdrop-filter: blur(10px);
}
.code-window-dots {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.code-window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lotus);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.code-window-dots i:nth-child(2) { background: var(--bamboo); }
.code-window-dots i:nth-child(3) { background: var(--bean); }
.code-lang {
  margin-left: 2px;
  color: rgba(214,236,240,.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}
.code-copy {
  margin-left: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(214,236,240,.16);
  border-radius: 999px;
  background: rgba(214,236,240,.08);
  color: rgba(234,247,242,.82);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--fast), color var(--fast), transform var(--fast), border-color var(--fast);
}
.code-copy:hover,
.code-copy.copied {
  transform: translateY(-1px);
  border-color: rgba(188,229,214,.38);
  background: rgba(188,229,214,.18);
  color: #fff;
}
figure.highlight::before,
figure.highlight::after,
.code-shell::before,
.code-shell::after {
  content: none !important;
}
figure.highlight table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: separate;
  border-spacing: 0;
}
figure.highlight tbody,
figure.highlight tr { display: table; width: 100%; table-layout: auto; }
figure.highlight .gutter {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 54px;
  width: 54px;
  padding: 18px 12px !important;
  border-right: 1px solid rgba(188,229,214,.1) !important;
  background: rgba(10,23,29,.42) !important;
  color: rgba(214,236,240,.36) !important;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.82;
}
figure.highlight .code {
  min-width: max-content;
  padding: 18px 22px !important;
  background:
    linear-gradient(90deg, rgba(188,229,214,.035) 1px, transparent 1px) 0 0 / 56px 100%,
    transparent !important;
}
.prose pre code,
figure.highlight code,
figure.highlight pre {
  color: #eaf7f2;
  font-size: 13.5px;
  line-height: 1.82;
  text-shadow: 0 1px 0 rgba(0,0,0,.14);
}
figure.highlight .line:hover {
  background: rgba(214,236,240,.055);
}
figure.highlight .punctuation { color: rgba(234,247,242,.62); }
figure.highlight .keyword,
figure.highlight .selector-tag,
figure.highlight .built_in,
figure.highlight .type { color: #f0d9bd; }
figure.highlight .string,
figure.highlight .attr,
figure.highlight .symbol,
figure.highlight .regexp { color: #bce5d6; }
figure.highlight .number,
figure.highlight .literal,
figure.highlight .params { color: #d9c6b3; }
figure.highlight .comment { color: rgba(214,236,240,.42); font-style: italic; }
figure.highlight .title,
figure.highlight .function,
figure.highlight .name { color: #d6ecf0; font-weight: 700; }
.article-content > pre {
  padding: 62px 22px 20px !important;
  overflow-x: auto !important;
}
.article-content > pre code { white-space: pre; }

/* Native markdown-enhance.js code-shell polish */
.code-shell {
  position: relative;
  overflow: hidden;
  margin: 1.75em 0 !important;
  border: 1px solid rgba(188,229,214,.18) !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(31,62,77,.98), rgba(12,27,34,.98)) !important;
  box-shadow: 0 24px 70px rgba(16,33,41,.22), inset 0 1px 0 rgba(255,255,255,.06) !important;
}
.code-shell .code-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid rgba(188,229,214,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  backdrop-filter: blur(10px);
}
.code-bar-left { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.code-dots { display: inline-flex; gap: 7px; align-items: center; flex: 0 0 auto; }
.code-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lotus);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.code-dots i:nth-child(2) { background: var(--bamboo); }
.code-dots i:nth-child(3) { background: var(--bean); }
.code-shell > figure.highlight,
.code-shell > pre {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-top: 0 !important;
}
.code-shell figure.highlight table { border-radius: 0; }
.code-shell .code-lang {
  color: rgba(214,236,240,.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.code-shell .code-copy {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(214,236,240,.16);
  border-radius: 999px;
  background: rgba(214,236,240,.08);
  color: rgba(234,247,242,.82);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.code-shell .code-copy:hover,
.code-shell .code-copy.copied {
  transform: translateY(-1px);
  border-color: rgba(188,229,214,.38);
  background: rgba(188,229,214,.18);
  color: #fff;
}

/* Article detail responsive refinement */
@media (max-width: 1180px) {
  .article-layout {
    grid-template-columns: minmax(0, 820px) 250px;
    justify-content: center;
  }
  .article-tools {
    grid-column: 1 / -1;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }
  .side-tags-section { flex: 1 1 100%; }
}
@media (max-width: 920px) {
  .article-shell { width: min(100% - 32px, 860px); }
  .article-layout { grid-template-columns: 1fr; }
  .toc-card { position: static; order: -1; max-height: none; }
  .toc-card ol, .toc-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 0;
  }
  .toc-card li { margin: 0; padding-left: 0; }
  .toc-card a {
    padding: 6px 10px;
    border: 1px solid rgba(46,90,111,.08);
    border-radius: var(--pill);
    background: rgba(214,236,240,.34);
  }
  .article-content::before { display: none; }
}
@media (max-width: 640px) {
  .article-shell { width: min(100% - 24px, 860px); padding-top: 22px; }
  .article-hero {
    padding: 28px 20px;
    border-radius: 24px;
  }
  .article-hero::before { inset: 10px; border-radius: 18px; }
  .article-meta-bar { width: 100%; border-radius: 18px; }
  .article-content {
    padding: 26px 18px;
    border-radius: 24px;
  }
  .prose { font-size: 16px; line-height: 1.88; }
  .prose h2 { font-size: 25px; }
  .article-tools { padding: 8px; border-radius: 20px; }
  .tool-button { flex: 1 1 120px; justify-content: center; }
  figure.highlight,
  .article-content > pre { margin-left: -8px !important; margin-right: -8px !important; border-radius: 18px !important; }
  .code-lang { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  figure.highlight .gutter { min-width: 44px; width: 44px; padding-left: 8px !important; padding-right: 8px !important; }
  figure.highlight .code { padding-left: 14px !important; padding-right: 16px !important; }
}

/* === Article Detail Final Pass / 全屏阅读工作台 + 一体化代码块 === */
.article-main {
  padding-left: 0;
  padding-right: 0;
}
.article-shell {
  width: min(100% - 32px, 1760px);
  padding-top: 24px;
}
.article-hero {
  min-height: auto;
  margin-bottom: 22px;
  padding: clamp(22px, 3.2vw, 42px) clamp(24px, 4vw, 52px);
  border-radius: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: clamp(18px, 3vw, 34px);
}
.article-hero::before {
  inset: 10px;
  border-radius: 22px;
}
.article-kicker {
  margin-bottom: 12px;
}
.article-hero h1 {
  max-width: 980px;
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.14;
  letter-spacing: -.04em;
}
.article-dek {
  max-width: 900px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
}
.article-meta-bar {
  margin-top: 16px;
  padding: 8px 12px;
  font-size: 12px;
}
.article-hero-media {
  max-height: 260px;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
}
.article-layout {
  width: 100%;
  grid-template-columns: minmax(150px, 11vw) minmax(780px, 1fr) minmax(240px, 18vw);
  gap: clamp(18px, 2vw, 34px);
  justify-content: stretch;
}
.article-content {
  width: 100%;
  max-width: none;
  padding: clamp(36px, 4vw, 64px) clamp(42px, 5vw, 82px);
  border-radius: 28px;
}
.article-content::before {
  left: 22px;
}
.article-tools,
.toc-card {
  width: 100%;
}
.article-tools {
  border-radius: 22px;
}
.toc-card {
  border-radius: 22px;
}
.prose {
  max-width: 1040px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.9;
}
.prose > .code-shell,
.prose > figure.highlight,
.prose > pre,
.prose > table,
.prose > .table-wrap {
  max-width: none;
  width: min(100% + 80px, 1180px);
  margin-left: max(-40px, calc((1040px - 100%) / 2));
  margin-right: max(-40px, calc((1040px - 100%) / 2));
}
.code-shell {
  border-radius: 20px !important;
  overflow: hidden;
}
.code-shell .code-bar {
  height: 40px;
  padding-inline: 14px;
}
.code-shell > figure.highlight,
.code-shell > pre {
  display: block !important;
  width: 100% !important;
  overflow: hidden !important;
}
.code-shell figure.highlight table,
.code-shell figure.highlight tbody,
.code-shell figure.highlight tr {
  display: table !important;
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  overflow: visible !important;
}
.code-shell figure.highlight .gutter {
  position: static !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  padding: 16px 10px !important;
  border-right: 1px solid rgba(188,229,214,.14) !important;
  background: rgba(214,236,240,.045) !important;
  color: rgba(214,236,240,.38) !important;
  text-align: right !important;
  vertical-align: top !important;
  white-space: nowrap !important;
}
.code-shell figure.highlight .code {
  width: auto !important;
  min-width: 0 !important;
  padding: 16px 18px !important;
  overflow-x: auto !important;
  background: transparent !important;
  vertical-align: top !important;
}
.code-shell figure.highlight .gutter pre,
.code-shell figure.highlight .code pre {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  line-height: 1.82 !important;
}
.code-shell figure.highlight .line {
  display: block;
  min-height: 1.82em;
}
.code-shell figure.highlight .code .line {
  padding-inline: 4px 12px;
  border-radius: 6px;
}
.code-shell figure.highlight .code .line:hover {
  background: rgba(214,236,240,.055);
}
@media (min-width: 1500px) {
  .article-layout {
    grid-template-columns: 180px minmax(900px, 1fr) 300px;
  }
  .prose { max-width: 1120px; }
  .prose > .code-shell,
  .prose > figure.highlight,
  .prose > pre,
  .prose > table,
  .prose > .table-wrap {
    width: min(100% + 120px, 1280px);
    margin-left: -60px;
    margin-right: -60px;
  }
}
@media (max-width: 1180px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-tools {
    grid-column: auto;
  }
  .prose,
  .prose > .code-shell,
  .prose > figure.highlight,
  .prose > pre,
  .prose > table,
  .prose > .table-wrap {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 760px) {
  .article-shell { width: min(100% - 20px, 100%); padding-top: 16px; }
  .article-hero {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    border-radius: 22px;
  }
  .article-hero-media { max-height: none; aspect-ratio: 16 / 9; }
  .article-content { padding: 24px 16px; border-radius: 22px; }
  .prose { font-size: 16px; line-height: 1.86; }
  .code-shell figure.highlight .gutter {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    padding-inline: 7px !important;
  }
  .code-shell figure.highlight .code { padding: 14px 12px !important; }
}

/* === Article Detail Final Pass 2 / 压缩头部 + 正文扩宽 + 代码一体化 === */
.article-shell {
  width: min(100% - 20px, 1920px);
  padding-top: 14px;
}
.article-hero {
  margin-bottom: 16px;
  padding: clamp(16px, 2.2vw, 30px) clamp(18px, 3vw, 38px);
  border-radius: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 210px);
  gap: 18px;
}
.article-hero::before { inset: 8px; border-radius: 17px; }
.article-kicker { margin-bottom: 8px; font-size: 12px; }
.article-kicker a,
.article-kicker span { padding: 5px 9px; }
.article-hero h1 {
  max-width: 1100px;
  font-size: clamp(28px, 2.55vw, 42px);
  line-height: 1.16;
}
.article-dek {
  max-width: 980px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.62;
}
.article-meta-bar {
  margin-top: 12px;
  padding: 7px 10px;
}
.article-hero-media {
  max-height: 170px;
  border-radius: 16px;
}
.article-layout {
  grid-template-columns: minmax(112px, 8vw) minmax(0, 1fr) minmax(190px, 14vw);
  gap: clamp(12px, 1.35vw, 22px);
}
.article-tools,
.toc-card { top: 78px; }
.article-tools {
  padding: 8px;
  border-radius: 18px;
}
.tool-button {
  padding: 10px 11px;
  font-size: 13px;
}
.side-tags-section { padding: 12px; }
.toc-card {
  padding: 14px;
  border-radius: 18px;
}
.article-content {
  padding: clamp(30px, 3.2vw, 52px) clamp(34px, 4.2vw, 68px);
  border-radius: 24px;
}
.prose {
  max-width: 1180px;
  font-size: 17px;
  line-height: 1.88;
}
.prose > .code-shell,
.prose > figure.highlight,
.prose > pre {
  width: calc(100% + min(96px, 7vw));
  margin-left: calc(min(96px, 7vw) / -2);
  margin-right: calc(min(96px, 7vw) / -2);
}
.code-shell {
  border-radius: 18px !important;
  background: linear-gradient(180deg, #203f4f 0%, #102129 100%) !important;
}
.code-shell .code-bar {
  height: 38px;
  background: rgba(255,255,255,.045);
  border-bottom: 1px solid rgba(188,229,214,.1);
}
.code-shell figure.highlight .gutter {
  background: transparent !important;
  border-right: 1px solid rgba(188,229,214,.12) !important;
  color: rgba(214,236,240,.34) !important;
}
.code-shell figure.highlight .code {
  background: transparent !important;
}
.code-shell figure.highlight .gutter pre,
.code-shell figure.highlight .code pre,
.code-shell figure.highlight .line {
  line-height: 1.78 !important;
}
@media (min-width: 1500px) {
  .article-layout {
    grid-template-columns: 132px minmax(0, 1fr) 230px;
  }
  .article-hero { grid-template-columns: minmax(0, 1fr) 240px; }
  .article-hero-media { max-height: 190px; }
  .prose { max-width: 1280px; }
  .prose > .code-shell,
  .prose > figure.highlight,
  .prose > pre {
    width: calc(100% + 140px);
    margin-left: -70px;
    margin-right: -70px;
  }
}
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-hero { grid-template-columns: minmax(0, 1fr) minmax(130px, 190px); }
  .prose > .code-shell,
  .prose > figure.highlight,
  .prose > pre {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 760px) {
  .article-shell { width: min(100% - 16px, 100%); }
  .article-hero { grid-template-columns: 1fr; padding: 18px 14px; }
  .article-hero-media { display: none; }
  .article-content { padding: 22px 14px; }
}


/* === Site Layout Redesign / 全屏工作台布局审查版 2026-06 === */
:root {
  --page-max-redesign: 1760px;
  --page-gutter-redesign: clamp(10px, 1.4vw, 24px);
  --panel-alpha-redesign: .58;
}
.home-container,
.listing-content,
.article-shell,
.footer-inner {
  width: min(calc(100% - var(--page-gutter-redesign) * 2), var(--page-max-redesign));
}
.home-container,
.article-shell,
.listing-content { margin-inline: auto; }
.home-main,
.listing-main,
.article-main { padding-top: clamp(12px, 1.6vw, 24px); }
.hero-section,
.listing-hero,
.listing-hero-detailed,
.about-hero,
.article-hero {
  border-radius: 22px !important;
  border-color: rgba(46,90,111,.08) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,var(--panel-alpha-redesign)), rgba(246,251,248,.38)),
    radial-gradient(circle at 92% 12%, rgba(188,229,214,.32), transparent 18rem) !important;
  box-shadow: 0 14px 38px rgba(46,90,111,.075) !important;
}
.hero-section {
  min-height: 0 !important;
  margin-bottom: 16px !important;
  padding: clamp(28px, 4vw, 54px) clamp(28px, 4.8vw, 68px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 260px) !important;
  gap: clamp(18px, 3vw, 42px) !important;
}
.hero-section h1 { font-size: clamp(44px, 6vw, 86px) !important; line-height: .98 !important; }
.hero-section .subtitle { max-width: 760px !important; font-size: clamp(15px, 1.35vw, 18px) !important; }
.hero-art { transform: scale(.78); transform-origin: center right; opacity: .82; }
.listing-hero,
.listing-hero-detailed,
.about-hero {
  width: min(calc(100% - var(--page-gutter-redesign) * 2), var(--page-max-redesign)) !important;
  margin: 0 auto 14px !important;
  padding: clamp(22px, 3vw, 38px) clamp(24px, 4vw, 52px) !important;
  min-height: 0 !important;
}
.listing-hero h1,
.listing-hero-detailed h1,
.about-hero h1 { font-size: clamp(36px, 4vw, 64px) !important; line-height: 1 !important; }
.listing-hero p,
.listing-hero-detailed p,
.about-hero p { max-width: 820px !important; margin-top: 10px !important; }
.hero-mini-panel { transform: scale(.86); }
.category-bar { margin: 0 0 14px !important; min-height: 48px !important; padding: 8px !important; border-radius: 18px !important; }
.content-section,
.filter-panel,
.tag-showcase,
.tag-layout-section,
.about-main-card,
.about-info-card,
.sidebar-widget {
  background: rgba(255,255,255,.54) !important;
  box-shadow: 0 10px 28px rgba(46,90,111,.06) !important;
  border-color: rgba(46,90,111,.075) !important;
}
.home-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px) !important; gap: clamp(16px, 1.8vw, 26px) !important; }
.content-feed { gap: 18px !important; }
.content-section { padding: clamp(18px, 2.2vw, 30px) !important; border-radius: 22px !important; }
.section-header { margin-bottom: 18px !important; padding-bottom: 12px !important; }
.post-card {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) !important;
  gap: 18px !important;
  padding: clamp(16px, 1.6vw, 22px) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,.66) !important;
  box-shadow: 0 8px 22px rgba(46,90,111,.055) !important;
}
.post-card::before { display: none !important; }
.post-title { font-size: clamp(20px, 1.55vw, 26px) !important; line-height: 1.25 !important; }
.post-excerpt { font-size: 14px !important; line-height: 1.72 !important; }
.post-thumb { border-radius: 16px !important; }
.sidebar { gap: 16px !important; }
.sidebar-widget { border-radius: 20px !important; padding: 18px !important; }
.article-main-redesign .article-shell { width: min(calc(100% - 20px), 1920px) !important; padding-top: 12px !important; }
.article-hero-compact {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 200px) !important;
  gap: clamp(14px, 2vw, 28px) !important;
  margin-bottom: 12px !important;
  padding: clamp(16px, 2.1vw, 30px) clamp(18px, 3vw, 40px) !important;
  min-height: 0 !important;
}
.article-hero-compact h1 { max-width: 1080px !important; font-size: clamp(28px, 2.6vw, 44px) !important; line-height: 1.14 !important; letter-spacing: -.035em !important; }
.article-hero-compact .article-dek { max-width: 980px !important; margin-top: 8px !important; font-size: 15px !important; line-height: 1.62 !important; }
.article-hero-compact .article-meta-bar { margin-top: 10px !important; }
.article-head-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.article-head-tags a,
.article-action-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(46,90,111,.08);
  border-radius: var(--pill);
  background: rgba(214,236,240,.42);
  color: var(--mountain);
  font-size: 12px;
  font-weight: 850;
}
.article-hero-compact .article-hero-media { max-height: 150px !important; aspect-ratio: 4 / 3 !important; border-radius: 16px !important; }
.article-action-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px;
  border: 1px solid rgba(46,90,111,.075);
  border-radius: 18px;
  background: rgba(255,255,255,.54);
  box-shadow: 0 8px 22px rgba(46,90,111,.05);
}
.article-layout-reader { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(210px, 260px) !important; gap: clamp(14px, 1.6vw, 24px) !important; align-items: start; }
.article-layout-reader .article-content { width: 100% !important; max-width: none !important; padding: clamp(32px, 3.8vw, 64px) clamp(36px, 5vw, 86px) !important; border-radius: 22px !important; }
.article-layout-reader .prose { max-width: 1280px !important; margin: 0 auto !important; }
.toc-card-reader { position: sticky !important; top: 78px !important; max-height: calc(100vh - 96px) !important; padding: 14px !important; border-radius: 18px !important; background: rgba(255,255,255,.58) !important; }
.article-pager,
.backlinks-section { max-width: min(calc(100% - 20px), 1660px) !important; }
.terms-grid-rich { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; }
.tag-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) !important; }
.tags-cloud-rich { padding: 22px !important; border-radius: 22px !important; }
.about-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) !important; gap: clamp(16px, 1.8vw, 26px) !important; }
.about-main-card { padding: clamp(28px, 3vw, 48px) !important; border-radius: 22px !important; }
@media (min-width: 1500px) {
  .home-layout { grid-template-columns: minmax(0, 1fr) 340px !important; }
  .post-card { grid-template-columns: minmax(0, 1fr) 240px !important; }
  .article-layout-reader { grid-template-columns: minmax(0, 1fr) 280px !important; }
  .article-layout-reader .prose { max-width: 1360px !important; }
}
@media (max-width: 1180px) {
  .home-layout,
  .tag-layout,
  .about-grid,
  .article-layout-reader { grid-template-columns: 1fr !important; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .toc-card-reader { position: static !important; max-height: none !important; }
}
@media (max-width: 760px) {
  .home-container,
  .listing-content,
  .article-shell,
  .listing-hero,
  .listing-hero-detailed,
  .about-hero { width: min(100% - 16px, 100%) !important; }
  .hero-section,
  .listing-hero,
  .listing-hero-detailed,
  .about-hero,
  .article-hero-compact { padding: 18px 14px !important; border-radius: 18px !important; }
  .hero-art,
  .article-hero-media { display: none !important; }
  .post-card { grid-template-columns: 1fr !important; }
  .sidebar { grid-template-columns: 1fr !important; }
  .article-layout-reader .article-content { padding: 24px 16px !important; }
}


/* === Site Layout Redesign Review Fix / 首轮审查修正 === */
.hero-section {
  max-height: 300px !important;
  align-items: center !important;
  padding-block: clamp(22px, 3vw, 38px) !important;
}
.hero-section h1 { font-size: clamp(40px, 5.2vw, 72px) !important; }
.hero-section .subtitle { margin-top: 10px !important; }
.hero-actions { margin-top: 16px !important; }
.hero-art {
  max-height: 180px !important;
  transform: scale(.62) !important;
  opacity: .72 !important;
}
.hero-art img { max-height: 160px !important; }
.home-layout { grid-template-columns: minmax(0, 1fr) 280px !important; }
.sidebar-widget { padding: 16px !important; }

.article-hero-compact {
  max-height: 230px !important;
  align-items: center !important;
  grid-template-columns: minmax(0, 1fr) 150px !important;
  padding-block: clamp(14px, 1.6vw, 22px) !important;
}
.article-hero-compact h1 {
  font-size: clamp(26px, 2.25vw, 38px) !important;
  max-width: 980px !important;
}
.article-hero-compact .article-dek {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px !important;
}
.article-hero-compact .article-meta-bar {
  margin-top: 8px !important;
  padding: 6px 10px !important;
}
.article-head-tags { margin-top: 8px !important; gap: 6px !important; }
.article-head-tags a { min-height: 28px !important; padding: 4px 9px !important; }
.article-hero-compact .article-hero-media {
  max-height: 110px !important;
  border-radius: 14px !important;
  opacity: .92;
}
.article-action-bar {
  min-height: 42px !important;
  margin-bottom: 10px !important;
  padding: 6px !important;
}
.article-action-bar a { min-height: 30px !important; padding: 5px 10px !important; }
.article-layout-reader { grid-template-columns: minmax(0, 1fr) 230px !important; }
.article-layout-reader .article-content { padding-inline: clamp(34px, 4.4vw, 76px) !important; }
.toc-card-reader { width: 230px !important; }
@media (min-width: 1500px) {
  .home-layout { grid-template-columns: minmax(0, 1fr) 300px !important; }
  .article-layout-reader { grid-template-columns: minmax(0, 1fr) 250px !important; }
  .toc-card-reader { width: 250px !important; }
}
@media (max-width: 1180px) {
  .hero-section { max-height: none !important; }
  .article-hero-compact { max-height: none !important; }
}


/* === Site Layout Redesign Review Fix 2 / 关于页与列表页再压缩 === */
.about-hero {
  padding-block: clamp(18px, 2.2vw, 28px) !important;
}
.about-profile-card { gap: 16px !important; }
.about-avatar {
  width: 70px !important;
  height: 70px !important;
}
.about-domain-tags { margin-top: 12px !important; gap: 8px !important; }
.about-domain-tags span { padding: 6px 10px !important; font-size: 12px !important; }
.listing-hero-detailed { align-items: center !important; }
.filter-panel { margin-bottom: 16px !important; }


/* === Detail Polish / 全站细节打磨层 2026-06 === */

/* 1. 文章页：隐藏正文重复 H1，让 hero 标题唯一 */
.article-main-redesign .prose > h1:first-of-type,
.article-layout-reader .prose > h1:first-of-type {
  display: none;
}

/* 2. 列表页 hero 标题过大，统一压缩 */
.listing-hero h1,
.listing-hero-detailed h1,
.about-hero h1 {
  font-size: clamp(30px, 3.2vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.04em !important;
}
.listing-hero p,
.listing-hero-detailed p,
.about-hero p {
  margin-top: 8px !important;
  font-size: 15px !important;
  line-height: 1.65 !important;
}
.listing-hero,
.listing-hero-detailed {
  align-items: center !important;
  padding-block: clamp(18px, 2.4vw, 28px) !important;
}

/* 3. 无标题的内容区（归档/分类/标签热门）减少顶部占位 */
.content-section-plain {
  padding-top: clamp(14px, 1.6vw, 20px) !important;
}
.section-header-compact {
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(46, 90, 111, 0.08);
}
.section-header-compact h2 {
  font-size: 22px !important;
  padding-left: 14px !important;
}
.section-header-compact h2::before {
  width: 5px !important;
  height: 1em !important;
  top: 0.15em !important;
}

/* 4. 分类筛选面板压缩 */
.filter-panel {
  grid-template-columns: minmax(200px, 320px) 1fr !important;
  gap: 16px !important;
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border-radius: 18px !important;
}
.filter-search span {
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
}
.filter-search input {
  padding: 10px 14px !important;
  border-radius: 999px !important;
}
.filter-hints {
  gap: 8px !important;
  align-items: center !important;
}
.filter-hints-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.filter-hints a {
  min-height: 30px !important;
  padding: 5px 11px !important;
  font-size: 12px !important;
}

/* 5. 文章页操作条简化 */
.article-action-bar {
  justify-content: space-between !important;
  min-height: 38px !important;
  margin-bottom: 10px !important;
  padding: 5px 6px !important;
  border-radius: 16px !important;
}
.article-action-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-action-bar .tool-button {
  min-height: 28px !important;
  padding: 4px 10px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.article-action-bar .tool-back {
  gap: 6px !important;
  padding: 4px 12px !important;
}
.article-action-bar .tool-back span {
  font-size: 13px;
}

/* 6. 关于页 hero 水平紧凑 */
.about-hero-compact {
  padding: clamp(16px, 2vw, 26px) clamp(20px, 3vw, 40px) !important;
}
.about-hero-compact .about-profile-card {
  grid-template-columns: 72px 1fr !important;
  gap: 18px !important;
  align-items: flex-start !important;
}
.about-hero-compact .about-avatar {
  width: 72px !important;
  height: 72px !important;
  border-radius: 22px !important;
}
.about-hero-compact .about-profile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.about-hero-compact .hero-eyebrow {
  margin-bottom: 0 !important;
}
.about-hero-compact h1 {
  margin: 0 !important;
  font-size: clamp(26px, 3vw, 42px) !important;
}
.about-hero-compact p {
  margin: 0 !important;
  max-width: 720px !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.about-hero-compact .about-domain-tags {
  margin-top: 4px !important;
  gap: 7px !important;
}
.about-hero-compact .about-domain-tags span {
  min-height: 28px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
}

/* 7. 分类卡片紧凑 */
.terms-grid-rich {
  gap: 14px !important;
}
.term-card-rich {
  border-radius: 20px !important;
}
.term-main-link {
  padding: 20px !important;
}
.term-icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 14px !important;
  margin-bottom: 14px !important;
}
.term-name {
  margin: 14px 0 6px !important;
  font-size: 22px !important;
}
.term-hint {
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.term-mini-list {
  padding: 12px 16px 16px !important;
}
.term-mini-list a {
  font-size: 12px !important;
}

/* 8. 标签页热门标签紧凑 */
.tag-showcase {
  padding: 16px !important;
  margin-bottom: 14px !important;
}
.featured-tags {
  gap: 10px !important;
}
.featured-tag {
  min-height: 34px !important;
  padding: 7px 13px !important;
  font-size: 14px !important;
}
.featured-tag em {
  min-width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}
.tags-cloud-rich {
  padding: 18px !important;
}
.tags-cloud-rich a {
  padding: 8px 12px !important;
  font-size: 13px !important;
}
.tag-preview-card {
  padding: 18px !important;
  border-radius: 20px !important;
}

/* 9. 首页 hero 进一步压缩 */
.hero-section {
  padding-block: clamp(20px, 3vw, 38px) !important;
  max-height: 280px !important;
}
.hero-section-detailed {
  grid-template-columns: minmax(0, 1fr) minmax(140px, 220px) !important;
  gap: clamp(16px, 3vw, 36px) !important;
}
.hero-section h1 {
  font-size: clamp(36px, 5vw, 68px) !important;
}
.hero-section .subtitle {
  margin-top: 8px !important;
  font-size: clamp(14px, 1.2vw, 17px) !important;
}
.hero-actions {
  margin-top: 14px !important;
}
.hero-actions a {
  min-height: 40px !important;
  padding: 8px 16px !important;
  font-size: 13px !important;
}
.hero-art {
  transform: scale(0.52) !important;
  opacity: 0.65 !important;
}
.hero-art img {
  max-height: 140px !important;
}

/* 10. 文章页进一步压缩 hero */
.article-hero-compact {
  max-height: 210px !important;
  padding-block: clamp(12px, 1.4vw, 20px) !important;
  grid-template-columns: minmax(0, 1fr) 130px !important;
}
.article-hero-compact h1 {
  font-size: clamp(24px, 2.1vw, 34px) !important;
  line-height: 1.16 !important;
}
.article-hero-compact .article-dek {
  font-size: 14px !important;
  line-height: 1.55 !important;
}
.article-hero-compact .article-hero-media {
  max-height: 96px !important;
  border-radius: 12px !important;
}

/* 11. 知识图谱 */
.kg-shell {
  grid-template-columns: minmax(0, 1fr) 300px !important;
  gap: 16px !important;
}
.kg-container {
  min-height: 620px !important;
  border-radius: 20px !important;
}
.kg-side-panel {
  border-radius: 20px !important;
  padding: 18px !important;
}
.kg-side-panel h2 {
  font-size: 20px !important;
}

/* 12. 通用微交互补齐 */
a, button, .post-card, .term-card, .featured-tag, .tool-button, .backlink-card {
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.post-card:hover {
  transform: translateY(-3px) !important;
}

/* 13. 响应式微调 */
@media (max-width: 900px) {
  .filter-panel {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .filter-hints {
    justify-content: flex-start !important;
  }
  .about-hero-compact .about-profile-card {
    grid-template-columns: 64px 1fr !important;
  }
  .about-hero-compact .about-avatar {
    width: 64px !important;
    height: 64px !important;
  }
}
@media (max-width: 760px) {
  .hero-section {
    max-height: none !important;
  }
  .article-hero-compact {
    max-height: none !important;
    grid-template-columns: 1fr !important;
  }
  .article-hero-compact .article-hero-media {
    display: none !important;
  }
  .article-action-tools {
    display: none;
  }
}
