/* ===========================================================
   设计系统 / 全局样式
   =========================================================== */
:root {
  --bg: #f7f8fb;
  --bg-2: #eef1f7;
  --surface: #ffffff;
  --surface-2: #f3f5f9;
  --text: #10131a;
  --muted: #5c6577;
  --border: rgba(16, 19, 26, 0.09);
  --border-strong: rgba(16, 19, 26, 0.16);
  --accent: #4f46e5;
  --accent-2: #0891b2;
  --accent-soft: rgba(79, 70, 229, 0.1);
  --shadow: 0 1px 2px rgba(16, 19, 26, 0.04), 0 8px 24px -12px rgba(16, 19, 26, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(16, 19, 26, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 62px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #07090d;
  --bg-2: #0c1017;
  --surface: #10141c;
  --surface-2: #171d27;
  --text: #e9edf5;
  --muted: #97a1b4;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --accent: #8b8cf9;
  --accent-2: #22d3ee;
  --accent-soft: rgba(139, 140, 249, 0.14);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -16px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 24px 70px -28px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 背景氛围 ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
}
.aurora::before {
  width: 46vw; height: 46vw; left: -12vw; top: -14vw;
  background: radial-gradient(circle at 30% 30%, #6366f1, transparent 68%);
  animation: float1 18s ease-in-out infinite;
}
.aurora::after {
  width: 40vw; height: 40vw; right: -10vw; top: 4vw;
  background: radial-gradient(circle at 60% 40%, #22d3ee, transparent 68%);
  animation: float2 22s ease-in-out infinite;
}
html[data-theme="dark"] .aurora::before, html[data-theme="dark"] .aurora::after { opacity: 0.28; }
@keyframes float1 { 50% { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }
@keyframes float2 { 50% { transform: translate3d(-4vw, 4vw, 0) scale(0.94); } }
@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  height: var(--header-h); display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand .dot {
  width: 26px; height: 26px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -8px var(--accent);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
}
.brand span { font-size: 15.5px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px; border-radius: 999px; font-size: 14.5px; color: var(--muted);
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; }
.menu-btn { display: none; }

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 14px 16px;
    gap: 2px; box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 12px 14px; border-radius: 10px; font-size: 15.5px; }
  .menu-btn { display: grid; margin-left: auto; }
  .nav { margin-left: 0; }
  .header-actions { display: flex; gap: 8px; margin-left: 0; }
}

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

/* ---------- 通用组件 ---------- */
main { flex: 1 0 auto; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 14.5px; font-weight: 600;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border: none; box-shadow: 0 10px 24px -12px var(--accent);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 30px -12px var(--accent); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: #e11d48; border-color: rgba(225, 29, 72, 0.3); }
.btn-danger:hover { background: rgba(225, 29, 72, 0.08); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 12.5px;
  border-radius: 999px; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.tag:hover { color: var(--accent); border-color: var(--accent); }
.tag.active { background: var(--accent-soft); color: var(--accent); border-color: transparent; font-weight: 600; }

.page-head { padding: 56px 0 26px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -0.02em; }
.page-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.eyebrow {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 12px;
}

.section { padding: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { font-size: 21px; margin: 0; letter-spacing: -0.01em; }
.section-head a { font-size: 14px; color: var(--muted); }

/* ---------- 首页 Hero ---------- */
.hero { padding: clamp(40px, 8vw, 92px) 0 clamp(28px, 5vw, 56px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.1; letter-spacing: -0.035em;
  margin: 0 0 18px; font-weight: 800;
}
.hero h1 .grad {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(15.5px, 1.6vw, 18px); color: var(--muted); margin: 0 0 28px; max-width: 46ch; white-space: pre-line; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 22px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.avatar-wrap { justify-self: center; position: relative; }
.avatar-ring {
  width: clamp(190px, 26vw, 260px); aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: conic-gradient(from 180deg, var(--accent), var(--accent-2), #f472b6, var(--accent));
  box-shadow: var(--shadow-lg);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-inner {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--surface); display: grid; place-items: center;
  animation: spin 14s linear infinite reverse;
}
.avatar-inner img { width: 100%; height: 100%; object-fit: cover; }
.avatar-inner .initial {
  font-size: 84px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .avatar-ring, .avatar-inner { animation: none; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .avatar-wrap { order: -1; justify-self: start; }
}

/* ---------- 文章卡片 ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.post-card .thumb {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2));
  overflow: hidden; display: grid; place-items: center;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .thumb .fallback { font-size: 26px; opacity: 0.5; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { margin: 0; font-size: 17px; line-height: 1.45; letter-spacing: -0.01em; }
.post-card .summary {
  margin: 0; font-size: 14px; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.post-meta .sep { opacity: 0.4; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.badge-draft {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-size: 11.5px; font-weight: 700;
  background: #f59e0b; color: #fff; padding: 3px 9px; border-radius: 999px;
}

/* ---------- 博客列表页 ---------- */
.list-toolbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px;
}
.search-box {
  position: relative; flex: 1 1 260px; max-width: 380px;
}
.search-box svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-box input {
  width: 100%; padding: 11px 14px 11px 38px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); outline: none; font-size: 14.5px; transition: border-color 0.16s, box-shadow 0.16s;
}
.search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state .big { font-size: 40px; margin-bottom: 12px; }

/* ---------- 文章详情 ---------- */
.reading-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.08s linear;
}
.post-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 44px;
  padding: 40px 0 60px; align-items: start;
}
.post-layout > * { min-width: 0; }
.post-header { margin-bottom: 30px; }
.post-header h1 { font-size: clamp(27px, 4.2vw, 42px); line-height: 1.22; letter-spacing: -0.03em; margin: 10px 0 16px; }
.post-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; border: 1px solid var(--border); }
.post-cover img { width: 100%; max-height: 430px; object-fit: cover; display: block; }

.toc-wrap { align-self: stretch; }
.toc {
  position: sticky; top: calc(var(--header-h) + 22px);
  max-height: calc(100vh - var(--header-h) - 60px); overflow: auto;
  font-size: 13.5px; padding-left: 16px; border-left: 1px solid var(--border);
}
.toc h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc li { line-height: 1.45; }
.toc a {
  display: block; padding: 5px 8px; border-radius: 7px; color: var(--muted);
  border-left: 2px solid transparent; margin-left: -17px; padding-left: 15px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: transparent; }
.toc .l3 a { padding-left: 26px; font-size: 13px; }
.toc .l4 a { padding-left: 38px; font-size: 12.5px; opacity: 0.85; }
.toc-progress { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.toc-progress .pct { font-weight: 700; color: var(--accent); }

.prose { font-size: 16.5px; line-height: 1.85; color: var(--text); min-width: 0; overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { line-height: 1.35; letter-spacing: -0.02em; margin: 2em 0 0.7em; scroll-margin-top: calc(var(--header-h) + 24px); position: relative; }
.prose h1 { font-size: 1.75em; }
.prose h2 { font-size: 1.45em; padding-bottom: 0.35em; border-bottom: 1px solid var(--border); }
.prose h3 { font-size: 1.2em; }
.prose h4 { font-size: 1.05em; }
.prose .anchor {
  position: absolute; left: -0.85em; opacity: 0; color: var(--accent); text-decoration: none; font-weight: 400;
}
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose h4:hover .anchor { opacity: 0.7; }
.prose p { margin: 0 0 1.15em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.15em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 1.6em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent);
  color: var(--muted); font-style: normal;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: 12px; border: 1px solid var(--border); display: block; margin: 1.6em auto; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose code {
  font-family: var(--mono); font-size: 0.875em; background: var(--surface-2);
  padding: 0.16em 0.42em; border-radius: 6px; border: 1px solid var(--border);
}
.prose pre {
  position: relative; margin: 1.5em 0; padding: 18px 20px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--border); overflow: auto; font-size: 14px; line-height: 1.65;
}
.prose pre code { background: none; border: none; padding: 0; font-size: inherit; }
.copy-code {
  position: absolute; top: 9px; right: 9px; font-size: 11.5px; padding: 4px 9px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); cursor: pointer;
  opacity: 0; transition: opacity 0.16s;
}
.prose pre:hover .copy-code { opacity: 1; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose kbd {
  font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--border-strong);
  border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface-2);
}

.post-footer { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.post-nav a {
  padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); transition: transform 0.16s, border-color 0.16s;
}
.post-nav a:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-nav .label { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.post-nav .title { font-weight: 600; font-size: 14.5px; }
.post-nav .next { text-align: right; }
@media (max-width: 940px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; }
  .toc-wrap { order: 2; margin-top: 40px; }
  .toc { position: static; max-height: none; border-left: none; padding-left: 0; }
  .toc ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
  .toc a { margin-left: 0; padding-left: 10px; }
  .toc .l3 a, .toc .l4 a { padding-left: 22px; }
}

/* ---------- 导航页 ---------- */
.links-group { margin-bottom: 42px; }
.links-group > h2 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px; font-weight: 700;
}
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.link-card {
  display: flex; gap: 14px; padding: 16px 18px; align-items: flex-start;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.link-icon {
  position: relative; width: 42px; height: 42px; border-radius: 11px; flex: none; overflow: hidden;
  display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 18px -10px var(--accent);
}
.link-icon img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 7px; background: var(--surface);
}
.link-card .info { min-width: 0; }
.link-card .name { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.link-card .name .ext { opacity: 0; transition: opacity 0.15s; font-size: 12px; color: var(--accent); }
.link-card:hover .name .ext { opacity: 1; }
.link-card .desc {
  font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.link-card .host { font-size: 11.5px; color: var(--muted); opacity: 0.7; margin-top: 6px; font-family: var(--mono); }

/* ---------- 赞助页 ---------- */
.sponsor-intro { max-width: 640px; }
.sponsor-intro p { color: var(--muted); font-size: 16px; white-space: pre-line; }
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; margin-top: 30px; }
.coin-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.coin-head { display: flex; align-items: center; gap: 12px; }
.coin-symbol {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #fff; flex: none;
}
.coin-head .name { font-weight: 700; font-size: 15.5px; }
.coin-head .note { font-size: 12.5px; color: var(--muted); }
.addr-row { display: flex; align-items: center; gap: 8px; }
.addr {
  flex: 1; font-family: var(--mono); font-size: 12.6px; word-break: break-all;
  background: var(--surface-2); border: 1px solid var(--border); padding: 11px 13px; border-radius: 10px;
  line-height: 1.5; user-select: all;
}
.qr-box { display: grid; place-items: center; padding: 16px; background: #fff; border-radius: 12px; }
.qr-box img, .qr-box canvas { display: block; width: 168px; height: 168px; image-rendering: pixelated; }
.thanks { margin-top: 56px; max-width: 680px; }
.thanks-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Toast ---------- */
.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  background: #10131a; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); animation: toastIn 0.24s ease both; max-width: 90vw;
}
html[data-theme="dark"] .toast { background: #e9edf5; color: #10131a; }
.toast.err { background: #e11d48; color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border); margin-top: 70px; padding: 34px 0 40px; font-size: 13.5px; color: var(--muted);
}
.site-footer .inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer .socials { display: flex; gap: 14px; }
.site-footer a:hover { color: var(--accent); }
.footer-admin { opacity: 0.6; font-size: 12.5px; }

/* ---------- 骨架屏 ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
/* 编辑式、无渐变主题 */
:root { --bg:#f5f4ef; --bg-2:#ebe9e1; --surface:#f5f4ef; --surface-2:#eceae3; --text:#16150f; --muted:#68655e; --border:rgba(22,21,15,.15); --border-strong:rgba(22,21,15,.3); --accent:#c8442b; --accent-2:#c8442b; --accent-soft:rgba(200,68,43,.1); --shadow:none; --shadow-lg:none; --radius:2px; --radius-sm:2px; }
html[data-theme="dark"] { --bg:#0c0c0d; --bg-2:#141414; --surface:#101011; --surface-2:#181818; --text:#eceae3; --muted:#a19c90; --border:rgba(255,255,255,.14); --border-strong:rgba(255,255,255,.25); --accent:#ff6a45; --accent-2:#ff6a45; --accent-soft:rgba(255,106,69,.12); --shadow:none; --shadow-lg:none; }
.aurora {display:none!important} .site-header,.admin-header {backdrop-filter:none!important;background:var(--bg)!important} .card,.btn,.pill,.input {box-shadow:none!important} h1,h2 {font-family:Georgia,"Songti SC",serif;letter-spacing:-.03em} .dot {background:var(--accent)!important}
.avatar-ring { background:var(--accent); animation:none } .avatar-inner {animation:none} .avatar-inner .initial {background:none;color:var(--accent);-webkit-text-fill-color:var(--accent)}
.hero h1 .gradient, .gradient-text {background:none;color:var(--accent);-webkit-text-fill-color:var(--accent)}
.drawer-mask,.uploading {-webkit-backdrop-filter:none;backdrop-filter:none}
