/* ============================================================
   姜辛会及 · 静态站样式
   设计语言沿用原版：宣纸暖白 / 墨色 / 朱砂点睛
   全部颜色走 CSS 变量，html.dark 自动接管深色模式
   ============================================================ */

/* ---------- 字体 ---------- */
@font-face {
  font-family: "Geist";
  src: url("/static/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/static/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --radius: 0.75rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --background: oklch(0.985 0.008 85);
  --foreground: oklch(0.21 0.012 55);
  --card: oklch(0.995 0.004 90);
  --card-foreground: oklch(0.21 0.012 55);
  --primary: oklch(0.32 0.018 50);
  --primary-foreground: oklch(0.985 0.008 85);
  --secondary: oklch(0.94 0.014 80);
  --secondary-foreground: oklch(0.28 0.014 50);
  --muted: oklch(0.955 0.01 85);
  --muted-foreground: oklch(0.52 0.014 55);
  --accent: oklch(0.935 0.028 75);
  --accent-foreground: oklch(0.3 0.03 55);
  --destructive: oklch(0.55 0.19 27);
  --destructive-foreground: oklch(0.985 0.008 85);
  --success: oklch(0.52 0.1 150);
  --border: oklch(0.89 0.012 75);
  --input: oklch(0.89 0.012 75);
  --ring: oklch(0.55 0.06 45);

  --brand: oklch(0.53 0.17 28);
  --brand-foreground: oklch(0.985 0.008 85);
  --brand-soft: oklch(0.95 0.03 45);
  --brand-soft-foreground: oklch(0.42 0.13 32);

  --font-sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC",
    "SimSun", "STSong", serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 12px -2px rgb(60 40 20 / 0.1);
}

html.dark {
  --background: oklch(0.17 0.008 60);
  --foreground: oklch(0.93 0.008 85);
  --card: oklch(0.205 0.01 60);
  --card-foreground: oklch(0.93 0.008 85);
  --primary: oklch(0.88 0.01 85);
  --primary-foreground: oklch(0.19 0.01 60);
  --secondary: oklch(0.27 0.012 60);
  --secondary-foreground: oklch(0.93 0.008 85);
  --muted: oklch(0.26 0.01 60);
  --muted-foreground: oklch(0.68 0.012 70);
  --accent: oklch(0.3 0.02 55);
  --accent-foreground: oklch(0.93 0.008 85);
  --destructive: oklch(0.65 0.19 27);
  --border: oklch(0.3 0.012 60);
  --input: oklch(0.32 0.012 60);
  --ring: oklch(0.6 0.05 60);

  --brand: oklch(0.68 0.15 32);
  --brand-foreground: oklch(0.17 0.008 60);
  --brand-soft: oklch(0.3 0.045 35);
  --brand-soft-foreground: oklch(0.85 0.07 45);

  --shadow-md: 0 4px 14px -2px rgb(0 0 0 / 0.5);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection {
  background-color: var(--brand-soft);
  color: var(--brand-soft-foreground);
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.35;
}
ul,
ol {
  padding-left: 1.4em;
}
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* ---------- 布局 ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1rem;
}
.container-narrow {
  max-width: 48rem;
}
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

main {
  flex: 1;
}

.serif {
  font-family: var(--font-serif);
}
.muted {
  color: var(--muted-foreground);
}
.brand {
  color: var(--brand);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 图标 ---------- */
.ico {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: -0.125em;
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background-color: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--brand);
  color: var(--brand-foreground);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.logo:hover .logo-mark {
  transform: scale(1.05);
}
.logo-mark .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1;
}
.logo-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.logo-sub {
  margin-top: 0.25rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .logo-text {
    display: flex;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}
@media (min-width: 640px) {
  .nav {
    gap: 0.25rem;
  }
}
.nav a {
  display: block;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: background-color 0.15s, color 0.15s;
}
@media (min-width: 640px) {
  .nav a {
    padding-inline: 0.75rem;
  }
}
.nav a:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.nav a.active {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-weight: 500;
}
.nav .label-full {
  display: none;
}
.nav .label-short {
  display: inline;
}
@media (min-width: 640px) {
  .nav .label-full {
    display: inline;
  }
  .nav .label-short {
    display: none;
  }
}

/* 主题切换 */
.theme-toggle {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.theme-toggle:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.theme-toggle .ico {
  width: 18px;
  height: 18px;
}
.theme-toggle .i-sun {
  display: none;
}
html.dark .theme-toggle .i-sun {
  display: block;
}
html.dark .theme-toggle .i-moon {
  display: none;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
  background-color: var(--primary);
  color: var(--primary-foreground);
}
.btn:hover {
  opacity: 0.9;
}
.btn .ico {
  width: 1rem;
  height: 1rem;
}
.btn-lg {
  padding: 0.7rem 1.4rem;
  font-size: 0.9375rem;
}
.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.8125rem;
}
.btn-outline {
  background-color: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-outline:hover {
  background-color: var(--accent);
  border-color: var(--border);
}
.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}
.btn-ghost {
  background-color: transparent;
  color: var(--muted-foreground);
}
.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}
.btn-brand {
  background-color: var(--brand);
  color: var(--brand-foreground);
}
.btn-danger {
  background-color: var(--destructive);
  color: var(--destructive-foreground);
}
.btn-block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
}
.badge-muted {
  background-color: var(--muted);
  color: var(--muted-foreground);
}
.badge-brand {
  background-color: var(--brand-soft);
  color: var(--brand-soft-foreground);
  border-color: color-mix(in oklab, var(--brand) 20%, transparent);
}
.badge-outline {
  border-color: var(--border);
  color: var(--muted-foreground);
  background-color: transparent;
}
.badge-outline:hover {
  border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  color: var(--brand);
}
a.badge-brand:hover {
  background-color: color-mix(in oklab, var(--brand-soft) 70%, var(--brand));
}
.badge .ico {
  width: 0.75rem;
  height: 0.75rem;
}

/* ---------- 卡片 ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  color: var(--card-foreground);
}
.card-hover {
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.card-hover:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-md);
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow span {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
}
.hero-glow span:nth-child(1) {
  left: -10rem;
  top: -14rem;
  width: 36rem;
  height: 36rem;
  background-color: var(--brand-soft);
  opacity: 0.7;
}
.hero-glow span:nth-child(2) {
  right: -8rem;
  top: 2.5rem;
  width: 28rem;
  height: 28rem;
  background-color: var(--accent);
  opacity: 0.6;
}
.hero-inner {
  position: relative;
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .hero-inner {
    padding-block: 6rem;
  }
}
.hero h1 {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}
.hero-tagline {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
}
@media (min-width: 640px) {
  .hero-tagline {
    font-size: 1.25rem;
  }
}
.hero-desc {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  max-width: 42rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.hero-stats dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.hero-stats dd {
  margin-top: 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
}
.hero-stats dd small {
  margin-left: 0.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

/* ---------- 区块标题 ---------- */
.section {
  padding-block: 3.5rem;
}
.section-bordered {
  border-block: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background-color: color-mix(in oklab, var(--card) 30%, transparent);
}
.section-head {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--brand);
}
.section-kicker .ico {
  width: 1rem;
  height: 1rem;
}
.section-title {
  margin-top: 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }
}
.section-more {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}
.section-more:hover {
  color: var(--brand);
}
.section-more .ico {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.15s;
}
.section-more:hover .ico {
  transform: translateX(2px);
}

/* ---------- 文章卡片 ---------- */
.post-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.post-card:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow-md);
}
.post-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--muted);
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-cover img {
  transform: scale(1.03);
}
.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}
.post-card-tags {
  margin-bottom: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.post-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  line-height: 1.45;
  transition: color 0.15s;
}
.post-card:hover h3 {
  color: var(--brand);
}
.post-card p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-meta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.post-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.post-card-meta .ico {
  width: 0.875rem;
  height: 0.875rem;
}

/* 首页大卡 + 侧边列表 */
.featured-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
.featured-grid > * {
  min-width: 0;
}
@media (min-width: 1024px) {
  .featured-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.mini-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--card) 50%, transparent);
  overflow: hidden;
}
.mini-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  transition: background-color 0.15s;
}
.mini-item:last-child {
  border-bottom: 0;
}
.mini-item:hover {
  background-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.mini-item .ico {
  width: 0.875rem;
  height: 0.875rem;
  margin-top: 0.35rem;
  color: var(--muted-foreground);
}
.mini-item-body {
  min-width: 0;
  flex: 1;
}
.mini-item h4 {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-item:hover h4 {
  color: var(--brand);
}
.mini-item time {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.6875rem;
  color: var(--muted-foreground);
}

/* ---------- 列表页 ---------- */
.page-hero {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background-color: color-mix(in oklab, var(--card) 30%, transparent);
}
.page-hero-inner {
  padding-block: 3rem;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .page-hero h1 {
    font-size: 2.25rem;
  }
}
.page-hero p {
  margin-top: 0.75rem;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}

.search-form {
  margin-top: 1.5rem;
  display: flex;
  max-width: 28rem;
  gap: 0.5rem;
}
.search-field {
  position: relative;
  flex: 1;
}
.search-field .ico {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background-color: var(--background);
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-field input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 18%, transparent);
}
.tag-row {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.tag-row .badge {
  cursor: pointer;
}

.list-wrap {
  padding-block: 2.5rem;
}
.list-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: color-mix(in oklab, var(--card) 40%, transparent);
  padding-inline: 0.5rem;
}

.list-row {
  display: flex;
  gap: 1rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  transition: background-color 0.15s;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:hover {
  background-color: color-mix(in oklab, var(--accent) 40%, transparent);
}
.list-row-index {
  display: none;
  flex-shrink: 0;
  padding-top: 0.125rem;
  width: 2rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
}
@media (min-width: 640px) {
  .list-row-index {
    display: block;
  }
}
.list-row-body {
  min-width: 0;
  flex: 1;
}
.list-row h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.5;
  transition: color 0.15s;
}
.list-row:hover h3 {
  color: var(--brand);
}
.list-row p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-row-meta {
  margin-top: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.list-row-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.list-row-meta .ico {
  width: 0.75rem;
  height: 0.75rem;
}

.pagination {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  height: 2rem;
  min-width: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding-inline: 0.5rem;
  font-size: 0.8125rem;
  color: var(--foreground);
  transition: background-color 0.15s, border-color 0.15s;
}
.pagination a:hover {
  background-color: var(--accent);
}
.pagination .current {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- 空状态 ---------- */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding-block: 4rem;
  text-align: center;
}
.empty .ico {
  width: 2rem;
  height: 2rem;
  color: color-mix(in oklab, var(--muted-foreground) 50%, transparent);
}
.empty h3 {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}
.empty p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- 文章详情 ---------- */
.article {
  max-width: 48rem;
  margin-inline: auto;
  padding-block: 2.5rem;
}
@media (min-width: 640px) {
  .article {
    padding-block: 3.5rem;
  }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--brand);
}
.back-link .ico {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.15s;
}
.back-link:hover .ico {
  transform: translateX(-2px);
}
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}
.article-tags {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.article-header h1 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .article-header h1 {
    font-size: 2.25rem;
  }
}
.article-summary {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.article-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.article-meta .ico {
  width: 0.875rem;
  height: 0.875rem;
}
.article-cover {
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.article-cover img {
  width: 100%;
  object-fit: cover;
}
.article-body {
  margin-top: 2.25rem;
}
.article-footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.related-title {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
}
.related-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.related-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--card);
  padding: 0.75rem 1rem;
  transition: border-color 0.15s;
}
.related-list a:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, var(--border));
}
.related-list time {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  flex-shrink: 0;
}
.related-list span {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}
.related-list a:hover span {
  color: var(--brand);
}

/* ---------- 正文排版 ---------- */
.prose {
  color: var(--foreground);
  font-size: 1rem;
  line-height: 1.85;
}
.prose > * + * {
  margin-top: 1.15em;
}
.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.prose h1 {
  font-size: 1.75rem;
  margin-top: 1.6em;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 1.18rem;
  margin-top: 1.5em;
}
.prose h4 {
  font-size: 1.02rem;
  margin-top: 1.35em;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose ul {
  list-style: disc;
}
.prose ol {
  list-style: decimal;
}
.prose li + li {
  margin-top: 0.45em;
}
.prose li::marker {
  color: var(--brand);
}
.prose blockquote {
  border-left: 3px solid var(--brand);
  background-color: var(--brand-soft);
  color: var(--brand-soft-foreground);
  padding: 0.85em 1.1em;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.prose blockquote > * + * {
  margin-top: 0.6em;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.12em 0.4em;
}
.prose pre {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1em 1.15em;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.55em 0.85em;
  text-align: left;
}
.prose th {
  background-color: var(--muted);
  font-weight: 600;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.2em 0;
}
.prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.prose strong {
  font-weight: 600;
}

/* ---------- 关于页 ---------- */
.about-hero {
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background-color: color-mix(in oklab, var(--card) 30%, transparent);
}
.about-hero-inner {
  padding-block: 4rem;
}
.about-hero h1 {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: -0.01em;
}
.about-hero p {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.about-body {
  padding-block: 3rem;
}
.quote-card {
  border-left: 4px solid var(--brand);
  padding: 1.5rem;
}
.quote-card .ico {
  width: 1.25rem;
  height: 1.25rem;
  color: color-mix(in oklab, var(--brand) 60%, transparent);
  margin-bottom: 0.75rem;
}
.quote-card p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
}
.about-section {
  margin-top: 3rem;
}
.about-section > h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
}
.about-section > h2 .ico {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
}
.focus-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.focus-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background-color: var(--card);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}
.focus-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background-color: var(--brand);
}
.stat-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
@media (min-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stat-grid > div {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  padding: 1rem;
  text-align: center;
}
.stat-grid dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
}
.stat-grid dd {
  margin-top: 0.375rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}
.stat-grid dd small {
  margin-left: 0.125rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}
.timeline {
  margin-top: 1.25rem;
  list-style: none;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.45rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background-color: var(--brand);
  box-shadow: 0 0 0 4px var(--background);
}
.timeline p {
  font-size: 0.875rem;
  line-height: 1.75;
}
.timeline span {
  margin-top: 0.25rem;
  display: block;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.contact-box {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--card);
  padding: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-box p {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.contact-box .ico {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--brand);
}
.about-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border);
  background-color: color-mix(in oklab, var(--card) 40%, transparent);
}
.footer-inner {
  padding-block: 2.5rem;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .footer-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}
.footer-brand {
  max-width: 24rem;
}
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand-row .logo-mark {
  height: 2rem;
  width: 2rem;
  border-radius: var(--radius-md);
}
.footer-brand-row .ico {
  width: 1rem;
  height: 1rem;
}
.footer-brand-row strong {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-foreground);
}
.footer-links {
  font-size: 0.875rem;
}
.footer-links-title {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.footer-links-title .ico {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brand);
}
.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted-foreground);
}
.footer-links a {
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--brand);
}
.footer-bottom {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 1.5rem;
  }
  /* 右侧备案组整体右对齐：万一一行放不下换行了，也是整组掉到第二行贴右，
     而不是散成「图标在行尾、备案号在下一行」那种脱节的样子 */
  .footer-bottom > span:last-child {
    margin-left: auto;
    justify-content: flex-end;
  }
}
.footer-bottom > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
}
/* 版权那句不许被拆成两行（窄屏时曾出现「个人站/点」断字） */
.footer-bottom > span:first-child {
  white-space: nowrap;
}
.footer-bottom a:hover {
  color: var(--brand);
}
.footer-bottom .beian-gov {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  /* 不参与收缩、内部不换行：图标和备案号永远是同一个整体 */
  flex: none;
  white-space: nowrap;
}
.footer-bottom .beian-gov img {
  width: auto;
  height: 0.875rem;
  flex: none;
}

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding-block: 4rem;
}
.notfound .code {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--brand) 70%, transparent);
  line-height: 1;
}
.notfound h1 {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.notfound p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}
.notfound .btn {
  margin-top: 1.75rem;
}

/* ---------- 搜索无结果提示 ---------- */
.search-hint {
  display: none;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.search-hint.show {
  display: block;
}

/* 打印 */
@media print {
  .site-header,
  .site-footer,
  .back-link,
  .article-footer {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
