/* =====================
   全局变量 & Reset
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #a36af5;
  --primary-dark: #7942d8;
  --primary-light: #f0e6ff;
  --accent-rose: #ff91c7;
  --accent-blue: #8fcaff;
  --text-primary: #221a33;
  --text-secondary: #625775;
  --text-muted: #9a8dad;
  --bg-page: #fbf7ff;
  --bg-card: #ffffff;
  --bg-secondary: #f6efff;
  --bg-glass: rgba(255, 255, 255, 0.66);
  --border: rgba(177, 148, 218, 0.28);
  --border-strong: rgba(162, 112, 235, 0.34);
  --runtime-bg: linear-gradient(135deg, rgba(163, 106, 245, 0.14), rgba(143, 202, 255, 0.20) 58%, rgba(255, 145, 199, 0.14));
  --runtime-border: rgba(143, 202, 255, 0.34);
  --runtime-label: #6f45cf;
  --runtime-value: #2f7bbd;
  --shadow-sm: 0 8px 24px rgba(126, 83, 180, 0.08);
  --shadow-md: 0 16px 40px rgba(126, 83, 180, 0.13);
  --shadow-lg: 0 28px 80px rgba(126, 83, 180, 0.18);
  --glass-shadow: 0 24px 70px rgba(132, 82, 184, 0.20), inset 0 1px 0 rgba(255,255,255,0.74);
  --radius: 8px;
  --radius-sm: 8px;
  --transition: 0.22s ease;
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  --font-display: "DM Serif Display", "Songti SC", "STSong", Georgia, serif;
}

/* ── 暗色主题变量 ──────────────────────────────────────────── */
[data-theme="dark"] {
  --primary: #c197ff;
  --primary-dark: #a978ff;
  --primary-light: #2f2442;
  --accent-rose: #ff94c9;
  --accent-blue: #8fcaff;
  --text-primary: #f6efff;
  --text-secondary: #c8badb;
  --text-muted: #9585ab;
  --bg-page: #130f1d;
  --bg-card: #1d1729;
  --bg-secondary: #211a31;
  --bg-glass: rgba(30, 23, 43, 0.72);
  --border: rgba(205, 174, 255, 0.18);
  --border-strong: rgba(205, 174, 255, 0.28);
  --runtime-bg: linear-gradient(135deg, rgba(193, 151, 255, 0.18), rgba(143, 202, 255, 0.16) 58%, rgba(255, 148, 201, 0.14));
  --runtime-border: rgba(143, 202, 255, 0.28);
  --runtime-label: #d8c5ff;
  --runtime-value: #9fd6ff;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.28);
  --shadow-md: 0 16px 44px rgba(0,0,0,.34);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.48);
  --glass-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #c197ff;
    --primary-dark: #a978ff;
    --primary-light: #2f2442;
    --accent-rose: #ff94c9;
    --accent-blue: #8fcaff;
    --text-primary: #f6efff;
    --text-secondary: #c8badb;
    --text-muted: #9585ab;
    --bg-page: #130f1d;
    --bg-card: #1d1729;
    --bg-secondary: #211a31;
    --bg-glass: rgba(30, 23, 43, 0.72);
    --border: rgba(205, 174, 255, 0.18);
    --border-strong: rgba(205, 174, 255, 0.28);
    --runtime-bg: linear-gradient(135deg, rgba(193, 151, 255, 0.18), rgba(143, 202, 255, 0.16) 58%, rgba(255, 148, 201, 0.14));
    --runtime-border: rgba(143, 202, 255, 0.28);
    --runtime-label: #d8c5ff;
    --runtime-value: #9fd6ff;
    --shadow-sm: 0 8px 24px rgba(0,0,0,.28);
    --shadow-md: 0 16px 44px rgba(0,0,0,.34);
    --shadow-lg: 0 28px 80px rgba(0,0,0,.48);
    --glass-shadow: 0 24px 80px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,0.08);
  }
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at 12% 8%, rgba(210, 188, 255, 0.42), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(255, 184, 222, 0.34), transparent 24rem),
    linear-gradient(180deg, #fffaff 0%, var(--bg-page) 42%, #f9f4ff 100%);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: 0;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: -18% -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(159, 120, 244, 0.20), transparent 20rem),
    radial-gradient(circle at 70% 18%, rgba(143, 202, 255, 0.18), transparent 22rem),
    radial-gradient(circle at 78% 78%, rgba(255, 145, 199, 0.18), transparent 18rem);
  filter: blur(4px);
  animation: ambientDrift 16s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.03); }
}

.site-header,
main,
#site-footer {
  position: relative;
  z-index: 1;
}

main { z-index: 2; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

img, svg { display: block; }

/* =====================
   通用布局
   ===================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  scroll-margin-top: 84px;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-title {
  font-size: 1.9rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-rose));
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* =====================
   Header / Nav
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.logo:hover { color: var(--primary); }

.logo-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
}
img.logo-icon {
  mix-blend-mode: multiply;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(163, 106, 245, 0.13);
  color: var(--primary-dark);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

.menu-btn:hover { background: var(--primary-light); }

/* =====================
   Hero
   ===================== */
.hero {
  position: relative;
  padding: 42px 0 28px;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(248,239,255,0.42)),
    radial-gradient(circle at 22% 24%, rgba(181, 146, 255, 0.36), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(255, 159, 211, 0.28), transparent 23rem),
    radial-gradient(circle at 72% 76%, rgba(143, 202, 255, 0.22), transparent 21rem);
  border-bottom: 1px solid rgba(177, 148, 218, 0.18);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
}

.hero::before {
  width: 34rem;
  height: 34rem;
  right: -9rem;
  top: 3rem;
  background: radial-gradient(circle, rgba(190, 162, 255, 0.34), transparent 67%);
  animation: floatHalo 9s ease-in-out infinite;
}

.hero::after {
  width: 25rem;
  height: 25rem;
  left: -8rem;
  bottom: -7rem;
  background: radial-gradient(circle, rgba(255, 177, 220, 0.26), transparent 70%);
  animation: floatHalo 11s ease-in-out infinite reverse;
}

@keyframes floatHalo {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 72px;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.hero-subtitle-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-rose), var(--primary));
  box-shadow: 0 0 18px rgba(163,106,245,.46);
}

.hero-title {
  font-size: 4.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.04;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.hero-title-word {
  background: linear-gradient(110deg, #2b2142 0%, var(--primary-dark) 42%, var(--accent-rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 50px rgba(163, 106, 245, 0.22);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 0.72em;
  background: linear-gradient(180deg, var(--accent-rose), var(--primary));
  vertical-align: -0.08em;
  margin-left: 4px;
  border-radius: 2px;
  animation: blink 1.1s step-end infinite;
}

.cursor--typing {
  animation: none;
  opacity: 1;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  max-width: 36rem;
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 34px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-rose));
  color: #fff;
  box-shadow: 0 14px 32px rgba(163, 106, 245, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), #e778b5);
  box-shadow: 0 18px 42px rgba(163, 106, 245, 0.34);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255,255,255,0.48);
  color: var(--primary-dark);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.72);
  transform: translateY(-1px);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 26px;
}

.hero-highlights li {
  padding: 7px 13px;
  border: 1px solid rgba(163, 106, 245, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.50);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* 代码卡片 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 165, 255, 0.48), rgba(255, 166, 216, 0.18) 44%, transparent 70%);
  filter: blur(18px);
  --hero-halo-x: 0%;
  opacity: .82;
  transform: translate3d(var(--hero-halo-x), 0, 0) scale(1);
  will-change: transform, opacity;
  animation: heroHaloDrift 12s ease-in-out infinite;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.68);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,255,255,0.46)),
    var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}

.hero-card:hover {
  transform: translate3d(0, -3px, 0);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.50), transparent 42%),
    radial-gradient(circle at 80% 8%, rgba(255, 145, 199, 0.30), transparent 12rem);
  pointer-events: none;
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-card-head,
.hero-profile,
.hero-card-footer {
  display: flex;
  align-items: center;
}

.hero-card-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-card-eyebrow,
.status-pill,
.hero-card-grid span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--primary-dark);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(163,106,245,.18);
}

.status-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #62d98d;
  box-shadow: 0 0 0 5px rgba(98,217,141,.16);
  animation: statusPulse 2.8s ease-in-out infinite;
}

.hero-profile {
  gap: 16px;
}

.hero-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 18px 38px rgba(126, 83, 180, 0.16);
}

.hero-card-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-card-role {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-card-note {
  margin: 22px 0 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-card-grid div {
  min-height: 68px;
  padding: 11px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.54);
  border: 1px solid rgba(255,255,255,.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.62);
}

.hero-card-grid strong {
  display: block;
  margin-top: 9px;
  color: var(--text-primary);
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-card-footer {
  gap: 10px;
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-card-footer span {
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent-rose));
}

@media (min-width: 1080px) {
  .hero-inner {
    max-width: 1240px;
    grid-template-columns: minmax(360px, 0.86fr) minmax(580px, 1.14fr);
    gap: 78px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .hero-visual::before {
    width: 34rem;
    height: 24rem;
    --hero-halo-x: 4%;
    transform: translate3d(var(--hero-halo-x), 0, 0) scale(1);
  }

  .hero-card {
    max-width: 620px;
    min-height: 292px;
    padding: 26px;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(210px, 0.96fr);
    grid-template-areas:
      "head head"
      "profile stats"
      "note stats"
      "footer footer";
    column-gap: 28px;
    row-gap: 18px;
    align-items: start;
  }

  .hero-card::before {
    background:
      linear-gradient(120deg, rgba(255,255,255,0.52), transparent 44%),
      radial-gradient(circle at 88% 16%, rgba(255, 145, 199, 0.28), transparent 16rem),
      radial-gradient(circle at 48% 88%, rgba(143, 202, 255, 0.18), transparent 14rem);
  }

  .hero-card-head {
    grid-area: head;
    margin-bottom: 2px;
  }

  .hero-profile { grid-area: profile; }

  .hero-card-note {
    grid-area: note;
    max-width: 20rem;
    margin: 0;
  }

  .hero-card-grid {
    grid-area: stats;
    grid-template-columns: 1fr;
    gap: 9px;
    align-self: stretch;
  }

  .hero-card-grid div {
    min-height: 58px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .hero-card-grid strong {
    margin-top: 0;
    font-size: 0.92rem;
  }

  .hero-card-footer {
    grid-area: footer;
    margin-top: 0;
  }
}

@keyframes heroHaloDrift {
  0%, 100% { transform: translate3d(var(--hero-halo-x), 0, 0) scale(1); opacity: .76; }
  50% { transform: translate3d(var(--hero-halo-x), -5px, 0) scale(1.025); opacity: .9; }
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(98,217,141,.14); }
  50% { box-shadow: 0 0 0 7px rgba(98,217,141,.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual::before,
  .status-pill .status-dot,
  .cursor,
  body::before {
    animation: none !important;
  }
}

.code-block {
  background: #1e2437;
  border-radius: var(--radius);
  overflow: hidden;
}

.code-dots {
  display: flex;
  gap: 7px;
  padding: 14px 18px 10px;
}

.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28cd41; }

.code-block pre {
  padding: 10px 20px 22px;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  overflow-x: auto;
  color: #c9d1e0;
}

.code-block code .kw  { color: #c792ea; }
.code-block code .fn  { color: #82aaff; }
.code-block code .key { color: #f78c6c; }
.code-block code .str { color: #c3e88d; }

/* =====================
   文章列表
   ===================== */
.articles-section {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(246,239,255,0.50));
}

.articles-section.section {
  padding-top: 8px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  position: relative;
  background: var(--bg-glass);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-rose), var(--accent-blue));
  opacity: 0.75;
}

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

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.article-tag {
  display: inline-block;
  background: rgba(163, 106, 245, 0.12);
  color: var(--primary-dark);
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
}

.article-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.article-meta-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition), color var(--transition);
  width: fit-content;
}

.article-link svg {
  width: 14px;
  height: 14px;
}

.article-link:hover {
  gap: 10px;
  color: var(--primary-dark);
}

/* =====================
   关于
   ===================== */
.about-section {
  background: linear-gradient(180deg, rgba(246,239,255,0.50), rgba(255,255,255,0.16));
  border-top: 1px solid rgba(177,148,218,0.18);
  border-bottom: 1px solid rgba(177,148,218,0.18);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.about-text,
.skills-list {
  min-height: 100%;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.about-text h2 {
  text-align: left;
}

.about-text h2::after {
  margin: 10px 0 0;
}

.about-text p {
  color: var(--text-secondary);
  margin-top: 14px;
  font-size: 0.97rem;
}

.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(255,255,255,0.52);
  border: 1px solid var(--border);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.contact-item svg {
  width: 16px;
  height: 16px;
}

.contact-item:hover {
  background: rgba(255,255,255,0.78);
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 技能条 */
.skills-list h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-pct {
  color: var(--primary);
  font-weight: 600;
}

.skill-bar {
  height: 7px;
  background: rgba(163,106,245,0.13);
  border-radius: 999px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent-rose));
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================
   Footer
   ===================== */
.site-footer {
  background: rgba(255,255,255,0.58);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.footer-logo .logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--primary); }

.footer-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(159, 120, 244, 0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  box-shadow: 0 10px 28px rgba(112, 92, 180, 0.10);
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.4;
}

.footer-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.footer-stat + .footer-stat::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-right: 5px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.45;
}

.footer-stat strong {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.footer-stat-label { color: var(--text-muted); }

.footer-runtime-stat {
  padding: 2px 8px;
  border: 1px solid var(--runtime-border);
  border-radius: 999px;
  background: var(--runtime-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.48);
}

.footer-runtime-stat .footer-stat-label {
  color: var(--runtime-label);
  font-weight: 700;
}

.footer-stat .footer-runtime-value {
  color: var(--runtime-value);
  font-weight: 800;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.divider { opacity: 0.5; }

.icp-link {
  color: var(--text-muted);
  transition: color var(--transition);
}

.icp-link:hover { color: var(--primary); }

.police-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.police-icon {
  height: 16px;
  width: auto;
  flex-shrink: 0;
}

@media (min-width: 641px) {
  .site-footer {
    padding: 38px 0 28px;
  }

  .site-footer-home .footer-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "footer-logo footer-links footer-stats"
      "footer-desc footer-desc footer-desc"
      "footer-legal footer-legal footer-legal";
    align-items: center;
    gap: 10px 20px;
    text-align: left;
  }

  .site-footer-home .footer-logo { grid-area: footer-logo; align-self: center; }

  .site-footer-home .footer-desc {
    grid-area: footer-desc;
    max-width: 100%;
    align-self: center;
  }

  .site-footer-home .footer-links {
    grid-area: footer-links;
    justify-content: flex-end;
    align-self: center;
  }

  .site-footer-home .footer-stats {
    grid-area: footer-stats;
    align-self: center;
  }

  .site-footer-home .footer-legal {
    grid-area: footer-legal;
    justify-content: center;
    padding-top: 2px;
  }

  .site-footer-article .footer-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, max-content);
    align-items: center;
    justify-content: center;
    gap: 14px 28px;
    text-align: left;
  }

  .site-footer-article .footer-stats {
    justify-self: end;
  }

  .site-footer-article .footer-legal {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .footer-stats {
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .footer-stats::-webkit-scrollbar { display: none; }
}

/* =====================
   响应式
   ===================== */
@media (max-width: 840px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: left;
  }

  .hero-btns {
    justify-content: flex-start;
  }

  .hero-card {
    max-width: 420px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    justify-content: flex-start;
    gap: 8px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav.open { display: flex; }

  .nav-link {
    padding: 10px 14px;
    width: 100%;
  }

  .menu-btn { display: flex; }

  .theme-toggle { margin-left: auto; }

  .section { padding: 56px 0; }

  .articles-section.section { padding-top: 18px; }

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

  .hero {
    min-height: auto;
    padding: 40px 0 42px;
  }

  .hero-inner { gap: 26px; }

  .hero-title { font-size: 2.75rem; }

  .hero-desc { margin-bottom: 24px; }

  .hero-highlights { margin-top: 18px; }

  .hero-visual { min-height: auto; }

  .hero-card { padding: 18px; }

  .hero-card-head { margin-bottom: 18px; }

  .hero-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .hero-card-note { margin: 18px 0 16px; }

  .hero-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .hero-card-grid div {
    min-height: 64px;
    padding: 10px 8px;
  }

  .hero-card-footer { margin-top: 14px; }

  .about-text,
  .skills-list { padding: 24px; }

  .site-footer {
    padding: 18px 0 16px;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    text-align: left;
  }

  .footer-logo {
    gap: 8px;
    font-size: 0.94rem;
    white-space: nowrap;
  }

  .footer-logo .logo-icon {
    width: 24px;
    height: 24px;
  }

  .footer-desc {
    justify-self: end;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .footer-links,
  .footer-stats,
  .footer-legal {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .footer-links {
    gap: 16px;
    flex-wrap: nowrap;
    line-height: 1.35;
  }

  .footer-links a {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .footer-stats {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: 0;
    padding: 6px 10px;
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: none;
    font-size: 0.74rem;
    line-height: 1.3;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .footer-stats::-webkit-scrollbar,
  .footer-legal::-webkit-scrollbar { display: none; }

  .footer-stat,
  .footer-legal > * {
    flex: 0 0 auto;
  }

  .footer-runtime-stat {
    padding: 1px 6px;
  }

  .footer-stat + .footer-stat::before {
    width: 3px;
    height: 3px;
    margin-right: 3px;
  }

  .footer-legal {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 0.72rem;
    line-height: 1.35;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .police-link img,
  .police-icon {
    height: 12px;
  }
}

/* =====================
   滚动显示动画
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   分类筛选标签
   ===================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.66);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(163,106,245,.13), var(--shadow-sm);
}
.search-bar svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .95rem;
  color: var(--text-primary);
}
.search-clear {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}
.search-clear svg { width: 16px; height: 16px; }
.search-clear:hover { color: var(--text-primary); }

.search-result-count {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: -8px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.cat-tab {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.54);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-rose));
  border-color: var(--primary);
  color: #fff;
}

/* 加载状态 */
.loading-state {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 40px;
  grid-column: 1 / -1;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.54);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: linear-gradient(135deg, var(--primary), var(--accent-rose)); border-color: var(--primary); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* =====================
   旋转动画（加载中）
   ===================== */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spin { animation: spin 0.9s linear infinite; }

/* =====================
   文章详情页
   ===================== */
.article-page { padding: 48px 0 80px; background: var(--bg-page); min-height: 60vh; }

.article-container { max-width: 780px; }

.article-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 80px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.article-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}

.article-back svg {
  width: 14px;
  height: 14px;
}

.article-back:hover { color: var(--primary); }

.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-page-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: 0;
  margin-bottom: 36px;
}

@media (max-width: 640px) {
  .article-page-title { font-size: 1.65rem; }
}

/* 正文排版 */
.article-body {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--text-primary);
}

.article-body p { margin-bottom: 18px; }

.article-body ul,
.article-body ol {
  margin: 0 0 18px 1.5em;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { font-weight: 700; color: var(--text-primary); }

.article-body em { font-style: italic; }

.article-body a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--primary-dark); }

.article-body blockquote {
  margin: 20px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-body pre {
  background: #1e2437;
  color: #c9d1e0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin: 20px 0;
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.87rem;
  line-height: 1.7;
}

.article-body code {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", monospace;
  font-size: 0.88em;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 6px;
  border-radius: 4px;
}

.article-body pre code {
  background: none !important;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
/* highlight.js 主题背景统一由 pre 控制，不被覆盖 */
.article-body pre.hljs,
.article-body pre > code.hljs {
  background: none !important;
  padding: 0 !important;
}

.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  font-size: 0.75rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  line-height: 1.6;
}
.copy-code-btn:hover { background: rgba(255,255,255,.18); color: #fff; }
.copy-code-btn.copied { background: rgba(79,222,128,.2); color: #4fde80; border-color: rgba(79,222,128,.3); }

.article-body table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  font-size: .94rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.article-body th,
.article-body td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.article-body th {
  background: var(--primary-light);
  color: var(--text-primary);
  font-weight: 800;
}

.article-body hr {
  height: 1px;
  margin: 30px 0;
  border: none;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

.article-body .task-list-item {
  list-style: none;
  margin-left: -1.35em;
}

.article-body .task-box {
  display: inline-flex;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  transform: translateY(2px);
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: rgba(255,255,255,.68);
}

.article-body .task-box.is-checked {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent-rose));
  border-color: transparent;
}

.article-body .task-box.is-checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.article-body .content-image {
  margin: 24px 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(126, 83, 180, .13);
}

.article-body figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: .82rem;
  text-align: center;
}

.article-body .image-wide img { width: 100%; }
.article-body .image-center { text-align: center; }
.article-body .image-center img { width: min(100%, 720px); }

.article-body .content-image.image-size-avatar,
.article-body .content-image.image-size-small,
.article-body .content-image.image-size-medium,
.article-body .content-image.image-size-large,
.article-body .content-image.image-size-original {
  text-align: center;
}

.article-body .content-image.image-size-avatar img {
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
}

.article-body .image-float-left.image-size-avatar,
.article-body .image-float-right.image-size-avatar {
  width: 128px;
}

.article-body .content-image.image-size-small img { width: min(100%, 240px); }
.article-body .content-image.image-size-medium img { width: min(100%, 420px); }
.article-body .content-image.image-size-large img { width: min(100%, 720px); }
.article-body .content-image.image-size-full img { width: 100%; }
.article-body .content-image.image-size-original img { width: auto; }

.article-body .image-float-left {
  float: left;
  width: min(46%, 360px);
  margin: 6px 22px 14px 0;
}

.article-body .image-float-right {
  float: right;
  width: min(46%, 360px);
  margin: 6px 0 14px 22px;
}

.article-body .image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.article-body .image-grid .content-image { margin: 0; }
.article-body::after { content: ''; display: block; clear: both; }

@media (max-width: 768px) {
  .article-body .image-float-left,
  .article-body .image-float-right {
    float: none;
    width: 100%;
    margin: 20px 0;
  }

  .article-body .image-grid { grid-template-columns: 1fr; }
}

.article-adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.adjacent-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-width: 0;
}
.adjacent-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.adjacent-next { text-align: right; }

.adjacent-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0;
}
.adjacent-label svg { width: 13px; height: 13px; }

.adjacent-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.adjacent-item:hover .adjacent-title { color: var(--primary); }

@media (max-width: 600px) {
  .article-adjacent { grid-template-columns: 1fr; }
  .adjacent-next { text-align: left; }
}

.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 阅读进度条 */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  z-index: 9999;
  transition: width .1s linear;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  bottom: 36px;
  right: 28px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(79,142,247,.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s, transform .28s;
  pointer-events: none;
  z-index: 200;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); }

/* 文章浮动目录 TOC */
.toc-panel {
  position: fixed;
  top: 88px;
  right: calc((100vw - 760px) / 2 - 220px);
  width: 200px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 0 10px;
  z-index: 100;
  font-size: .82rem;
  display: none;
  scrollbar-width: thin;
}
@media (min-width: 1140px) {
  .toc-panel { display: block; }
}
.toc-title {
  font-weight: 600;
  font-size: .8rem;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 14px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.toc-item { padding: 0; }
.toc-link {
  display: block;
  padding: 5px 14px;
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.4;
  border-left: 2px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toc-link:hover {
  color: var(--primary);
  background: rgba(79,142,247,.06);
}
.toc-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(79,142,247,.08);
  font-weight: 500;
}
.toc-h3 .toc-link { padding-left: 24px; font-size: .79rem; }
.back-to-top svg { width: 18px; height: 18px; }

/* 搜索关键词高亮 */
mark.search-hl {
  background: rgba(79,142,247,.18);
  color: var(--primary-dark);
  border-radius: 2px;
  padding: 0 2px;
  font-weight: 600;
}

/* 打印样式 */
@media print {
  .site-header, .read-progress, .back-to-top,
  .toc-panel, .copy-code-btn, .article-adjacent,
  .article-footer, #site-footer { display: none !important; }
  .article-body { font-size: 12pt; line-height: 1.8; }
  .article-body pre { border: 1px solid #ccc; white-space: pre-wrap; }
  .article-body a::after { content: " (" attr(href) ")"; font-size: .8em; color: #666; }
}

/* 图片 Lightbox */
.img-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .22s;
}
.img-lightbox.open { opacity: 1; }
.img-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 48px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .22s;
}
.img-lightbox.open img { transform: scale(1); }

/* =====================
   评论区
   ===================== */
.comment-section {
  position: relative;
  z-index: 3;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1.5px solid var(--border);
}

.comment-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.comment-tip {
  padding: 10px 14px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  font-size: .875rem;
  margin-bottom: 20px;
}

.comment-empty {
  color: var(--text-muted);
  font-size: .9rem;
  padding: 20px 0;
}

.comment-list { margin-bottom: 36px; }

.comment-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }

.comment-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.comment-author {
  font-weight: 600;
  font-size: .9rem;
}

.comment-date {
  font-size: .8rem;
  color: var(--text-muted);
}

.comment-content {
  font-size: .925rem;
  line-height: 1.65;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-form-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.comment-user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-page);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
  font-size: .875rem;
  color: var(--text-secondary);
}

.comment-logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .8rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: color .2s, border-color .2s;
}
.comment-logout-btn:hover { color: var(--text-primary); border-color: var(--text-muted); }

.comment-form textarea,
.comment-editor {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: .925rem;
  font-family: inherit;
  line-height: 1.6;
  min-height: 100px;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border .2s;
}

.comment-form textarea { resize: vertical; }

.comment-editor {
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  caret-color: var(--primary);
}

.comment-form textarea:focus,
.comment-editor:focus { border-color: var(--primary); }

.comment-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}

.comment-editor-face {
  cursor: default;
  user-select: none;
}

.comment-toolbar {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.comment-emoji-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--text-secondary);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s;
}

.comment-emoji-toggle:hover,
.comment-emoji-toggle[aria-expanded="true"] {
  color: var(--primary);
  border-color: rgba(159,120,244,.35);
  background: rgba(159,120,244,.10);
  transform: translateY(-1px);
}

.comment-emoji-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 120;
  width: min(480px, calc(100vw - 48px));
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(159,120,244,.20);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 46px rgba(112,92,180,.18);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  overscroll-behavior: contain;
}

.comment-emoji-panel[hidden] { display: none; }

.comment-emoji-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 7px 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(246,240,255,.62);
  color: var(--text-secondary);
  font-size: .72rem;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}

.comment-emoji-option:hover {
  background: rgba(159,120,244,.14);
  border-color: rgba(159,120,244,.22);
  transform: translateY(-1px);
}

.qq-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35em;
  margin: 0 1px;
  vertical-align: -0.18em;
  font-size: 1.16em;
  line-height: 1;
  transform-origin: 50% 70%;
}

.comment-emoji-option .qq-face { font-size: 1.45rem; }
.comment-editor .qq-face { font-size: 1.18em; }
.comment-content .qq-face { animation: qqFacePulse 2.8s ease-in-out infinite; }
.qq-face-bounce { animation: qqFaceBounce 1.7s ease-in-out infinite; }
.qq-face-shake { animation: qqFaceShake 1.9s ease-in-out infinite; }
.qq-face-pulse { animation: qqFacePulse 2.2s ease-in-out infinite; }
.qq-face-pop { animation: qqFacePop 1.8s ease-in-out infinite; }
.qq-face-wink { animation: qqFaceWink 2.3s ease-in-out infinite; }

@keyframes qqFaceBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.06); }
}

@keyframes qqFaceShake {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-8deg); }
  70% { transform: rotate(7deg); }
}

@keyframes qqFacePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

@keyframes qqFacePop {
  0%, 100% { transform: scale(1) rotate(0); }
  55% { transform: scale(1.18) rotate(5deg); }
}

@keyframes qqFaceWink {
  0%, 78%, 100% { transform: scaleY(1); }
  86% { transform: scaleY(.72) rotate(-5deg); }
}

.comment-guest-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-guest-row input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: border .2s;
}
.comment-guest-row input:focus { border-color: var(--primary); }

.comment-form-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.comment-char-count {
  font-size: .78rem;
  color: var(--text-muted);
}

.comment-auth-links {
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.comment-auth-links a { color: var(--primary); }
.comment-auth-links a:hover { text-decoration: underline; }

.comment-submit { margin-left: auto; }

@media (max-width: 600px) {
  .comment-guest-row { flex-direction: column; }
  .comment-auth-links { margin-left: 0; }
  .comment-emoji-panel {
    width: min(360px, calc(100vw - 48px));
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

[data-theme="dark"] .comment-emoji-toggle {
  background: rgba(31,24,45,.66);
  border-color: rgba(223,202,255,.16);
  color: rgba(226,214,255,.78);
}

[data-theme="dark"] .comment-emoji-panel {
  background: rgba(31,24,45,.92);
  border-color: rgba(223,202,255,.18);
  box-shadow: 0 20px 52px rgba(0,0,0,.34);
}

[data-theme="dark"] .comment-emoji-option {
  background: rgba(255,255,255,.06);
  color: rgba(226,214,255,.76);
}

[data-theme="dark"] .comment-emoji-option:hover {
  background: rgba(193,151,255,.16);
  border-color: rgba(193,151,255,.30);
}

@media (prefers-reduced-motion: reduce) {
  .qq-face,
  .comment-content .qq-face,
  .comment-emoji-option .qq-face {
    animation: none !important;
  }
}

/* admin comments badge */
.badge-pending {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 6px;
  line-height: 1.4;
}

/* admin action buttons */
.action-btn-approve { color: #16a34a !important; border-color: #bbf7d0 !important; }
.action-btn-approve:hover { background: #f0fdf4 !important; }
.action-btn-reject  { color: #d97706 !important; border-color: #fde68a !important; }
.action-btn-reject:hover  { background: #fffbeb !important; }

/* ── 主题切换按钮 ────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.theme-toggle svg { display: block; }

/* ── 暗色模式特定覆盖 ────────────────────────────────────── */
[data-theme="dark"] img.logo-icon { mix-blend-mode: normal; }
[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(148, 103, 255, 0.20), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(255, 145, 199, 0.14), transparent 24rem),
    linear-gradient(180deg, #120f1b 0%, var(--bg-page) 52%, #171120 100%);
}
[data-theme="dark"] .site-header { background: rgba(19, 15, 29, 0.68); }
[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(28,22,42,0.72), rgba(42,31,62,0.40)),
    radial-gradient(circle at 22% 24%, rgba(163, 106, 245, 0.28), transparent 22rem),
    radial-gradient(circle at 78% 18%, rgba(255, 145, 199, 0.14), transparent 23rem),
    radial-gradient(circle at 72% 76%, rgba(143, 202, 255, 0.12), transparent 21rem);
}
[data-theme="dark"] .hero-title-word {
  background: linear-gradient(110deg, #fff7ff 0%, var(--primary) 48%, var(--accent-rose) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .hero-card,
[data-theme="dark"] .article-card,
[data-theme="dark"] .about-text,
[data-theme="dark"] .skills-list,
[data-theme="dark"] .search-bar {
  border-color: var(--border);
  background: var(--bg-glass);
}
[data-theme="dark"] .articles-section {
  background:
    linear-gradient(180deg, rgba(19, 15, 29, 0.94), rgba(28, 22, 42, 0.88)),
    radial-gradient(circle at 22% 12%, rgba(193, 151, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 22%, rgba(255, 148, 201, 0.10), transparent 22rem);
}
[data-theme="dark"] .hero-card {
  border-color: rgba(223, 202, 255, 0.20);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
    rgba(34, 27, 49, 0.72);
  box-shadow: 0 24px 80px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.10);
}
[data-theme="dark"] .hero-card::before {
  background:
    linear-gradient(120deg, rgba(255,255,255,0.12), transparent 44%),
    radial-gradient(circle at 84% 12%, rgba(255, 148, 201, 0.16), transparent 14rem),
    radial-gradient(circle at 30% 88%, rgba(143, 202, 255, 0.10), transparent 12rem);
}
[data-theme="dark"] .hero-card-grid div {
  background: rgba(255,255,255,0.075);
  border-color: rgba(223, 202, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 26px rgba(0,0,0,.12);
}
[data-theme="dark"] .status-pill,
[data-theme="dark"] .hero-highlights li,
[data-theme="dark"] .cat-tab {
  background: rgba(255,255,255,0.075);
  border-color: rgba(223, 202, 255, 0.18);
  color: #d9c9f0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
[data-theme="dark"] .status-pill { color: var(--primary); }
[data-theme="dark"] .search-bar {
  background: rgba(30, 24, 44, 0.78);
  border-color: rgba(223, 202, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
}
[data-theme="dark"] .search-bar:focus-within {
  border-color: rgba(193, 151, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(193,151,255,.16), 0 16px 40px rgba(0,0,0,.24);
}
[data-theme="dark"] .search-bar input::placeholder {
  color: rgba(217, 201, 240, 0.54);
}
[data-theme="dark"] .btn-outline {
  background: rgba(255,255,255,0.075);
  border-color: rgba(223, 202, 255, 0.22);
  color: #e9dcff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
[data-theme="dark"] .btn-outline:hover {
  background: rgba(193,151,255,.16);
  border-color: rgba(193,151,255,.46);
  color: #fff;
}
[data-theme="dark"] .cat-tab:hover {
  background: rgba(193,151,255,.13);
  color: var(--primary);
}
[data-theme="dark"] .cat-tab.active {
  background: linear-gradient(135deg, rgba(193,151,255,.92), rgba(255,148,201,.84));
  border-color: rgba(255,255,255,.18);
  color: #21172f;
}
[data-theme="dark"] .article-card {
  background: rgba(31, 24, 45, 0.72);
  border-color: rgba(223, 202, 255, 0.16);
}
[data-theme="dark"] .about-section { background: linear-gradient(180deg, rgba(33,26,49,0.64), rgba(19,15,29,0.44)); }
[data-theme="dark"] .site-footer { background: rgba(29, 23, 41, 0.68); }
[data-theme="dark"] .footer-stats {
  background: rgba(31, 24, 45, 0.68);
  border-color: rgba(223, 202, 255, 0.16);
  box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}
[data-theme="dark"] .nav { background: rgba(29, 23, 41, 0.90); }
[data-theme="dark"] .comment-copy-btn { background: var(--bg-card); }
[data-theme="dark"] .search-result-item { background: var(--bg-card); }
[data-theme="dark"] .action-btn-approve { color: #4ade80 !important; border-color: #166534 !important; }
[data-theme="dark"] .action-btn-approve:hover { background: #14532d !important; }
[data-theme="dark"] .action-btn-reject  { color: #fbbf24 !important; border-color: #92400e !important; }
[data-theme="dark"] .action-btn-reject:hover  { background: #78350f !important; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img.logo-icon { mix-blend-mode: normal; }
  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(circle at 12% 8%, rgba(148, 103, 255, 0.20), transparent 26rem),
      radial-gradient(circle at 82% 18%, rgba(255, 145, 199, 0.14), transparent 24rem),
      linear-gradient(180deg, #120f1b 0%, var(--bg-page) 52%, #171120 100%);
  }
  :root:not([data-theme="light"]) .site-header { background: rgba(19, 15, 29, 0.68); }
  :root:not([data-theme="light"]) .hero {
    background:
      linear-gradient(135deg, rgba(28,22,42,0.72), rgba(42,31,62,0.40)),
      radial-gradient(circle at 22% 24%, rgba(163, 106, 245, 0.28), transparent 22rem),
      radial-gradient(circle at 78% 18%, rgba(255, 145, 199, 0.14), transparent 23rem),
      radial-gradient(circle at 72% 76%, rgba(143, 202, 255, 0.12), transparent 21rem);
  }
  :root:not([data-theme="light"]) .hero-title-word {
    background: linear-gradient(110deg, #fff7ff 0%, var(--primary) 48%, var(--accent-rose) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  :root:not([data-theme="light"]) .hero-card,
  :root:not([data-theme="light"]) .article-card,
  :root:not([data-theme="light"]) .about-text,
  :root:not([data-theme="light"]) .skills-list,
  :root:not([data-theme="light"]) .search-bar {
    border-color: var(--border);
    background: var(--bg-glass);
  }
  :root:not([data-theme="light"]) .articles-section {
    background:
      linear-gradient(180deg, rgba(19, 15, 29, 0.94), rgba(28, 22, 42, 0.88)),
      radial-gradient(circle at 22% 12%, rgba(193, 151, 255, 0.12), transparent 24rem),
      radial-gradient(circle at 82% 22%, rgba(255, 148, 201, 0.10), transparent 22rem);
  }
  :root:not([data-theme="light"]) .hero-card {
    border-color: rgba(223, 202, 255, 0.20);
    background:
      linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035)),
      rgba(34, 27, 49, 0.72);
    box-shadow: 0 24px 80px rgba(0,0,0,.44), inset 0 1px 0 rgba(255,255,255,.10);
  }
  :root:not([data-theme="light"]) .hero-card::before {
    background:
      linear-gradient(120deg, rgba(255,255,255,0.12), transparent 44%),
      radial-gradient(circle at 84% 12%, rgba(255, 148, 201, 0.16), transparent 14rem),
      radial-gradient(circle at 30% 88%, rgba(143, 202, 255, 0.10), transparent 12rem);
  }
  :root:not([data-theme="light"]) .hero-card-grid div {
    background: rgba(255,255,255,0.075);
    border-color: rgba(223, 202, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 26px rgba(0,0,0,.12);
  }
  :root:not([data-theme="light"]) .status-pill,
  :root:not([data-theme="light"]) .hero-highlights li,
  :root:not([data-theme="light"]) .cat-tab {
    background: rgba(255,255,255,0.075);
    border-color: rgba(223, 202, 255, 0.18);
    color: #d9c9f0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  }
  :root:not([data-theme="light"]) .status-pill { color: var(--primary); }
  :root:not([data-theme="light"]) .search-bar {
    background: rgba(30, 24, 44, 0.78);
    border-color: rgba(223, 202, 255, 0.16);
    box-shadow: 0 16px 40px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.07);
  }
  :root:not([data-theme="light"]) .search-bar:focus-within {
    border-color: rgba(193, 151, 255, 0.54);
    box-shadow: 0 0 0 3px rgba(193,151,255,.16), 0 16px 40px rgba(0,0,0,.24);
  }
  :root:not([data-theme="light"]) .search-bar input::placeholder {
    color: rgba(217, 201, 240, 0.54);
  }
  :root:not([data-theme="light"]) .btn-outline {
    background: rgba(255,255,255,0.075);
    border-color: rgba(223, 202, 255, 0.22);
    color: #e9dcff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  }
  :root:not([data-theme="light"]) .btn-outline:hover {
    background: rgba(193,151,255,.16);
    border-color: rgba(193,151,255,.46);
    color: #fff;
  }
  :root:not([data-theme="light"]) .cat-tab:hover {
    background: rgba(193,151,255,.13);
    color: var(--primary);
  }
  :root:not([data-theme="light"]) .cat-tab.active {
    background: linear-gradient(135deg, rgba(193,151,255,.92), rgba(255,148,201,.84));
    border-color: rgba(255,255,255,.18);
    color: #21172f;
  }
  :root:not([data-theme="light"]) .article-card {
    background: rgba(31, 24, 45, 0.72);
    border-color: rgba(223, 202, 255, 0.16);
  }
  :root:not([data-theme="light"]) .about-section { background: linear-gradient(180deg, rgba(33,26,49,0.64), rgba(19,15,29,0.44)); }
  :root:not([data-theme="light"]) .site-footer { background: rgba(29, 23, 41, 0.68); }
  :root:not([data-theme="light"]) .footer-stats {
    background: rgba(31, 24, 45, 0.68);
    border-color: rgba(223, 202, 255, 0.16);
    box-shadow: 0 12px 30px rgba(0,0,0,0.20);
  }
  :root:not([data-theme="light"]) .nav { background: rgba(29, 23, 41, 0.90); }
  :root:not([data-theme="light"]) .comment-copy-btn { background: var(--bg-card); }
  :root:not([data-theme="light"]) .search-result-item { background: var(--bg-card); }
  :root:not([data-theme="light"]) .action-btn-approve { color: #4ade80 !important; border-color: #166534 !important; }
  :root:not([data-theme="light"]) .action-btn-approve:hover { background: #14532d !important; }
  :root:not([data-theme="light"]) .action-btn-reject  { color: #fbbf24 !important; border-color: #92400e !important; }
  :root:not([data-theme="light"]) .action-btn-reject:hover  { background: #78350f !important; }
}
