/* =========================================================
   个人博客 · 全站样式（纯手写，无外部依赖）
   设计方向：温润现代 · 渐变点缀 · 明暗双主题
   ========================================================= */

/* ---------- 1. 主题变量 ---------- */
:root {
  /* 极客蓝 · 深色（默认） */
  --bg: #0a1b2e;
  --bg-soft: #0d2238;
  --card: #102741;
  --input-bg: #0d2238;
  --text: #dbe9f7;
  --text-soft: #8ea6c0;
  --line: #1d3a5c;
  --primary: #38bdf8;
  --primary-deep: #0ea5e9;
  --primary-soft: #12304f;
  --accent: #22d3ee;
  --danger: #f87171;
  --danger-deep: #ef4444;
  --danger-soft: #3a1a22;
  --danger-text: #fca5a5;
  --success-soft: #0f2b24;
  --success-text: #4ade80;
  --success-border: #1d5c48;
  --error-border: #71343c;
  --nav-hover: #153049;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 16px 44px rgba(0, 0, 0, .6);
  --hero-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

html[data-theme="light"] {
  /* 极客蓝 · 浅色（右上角切换） */
  --bg: #edf4fb;
  --bg-soft: #e2edf8;
  --card: #ffffff;
  --input-bg: #ffffff;
  --text: #172a42;
  --text-soft: #5d7188;
  --line: #d8e5f2;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: #e7effc;
  --accent: #0891b2;
  --danger: #ef4444;
  --danger-deep: #dc2626;
  --danger-soft: #fdeeee;
  --danger-text: #b91c1c;
  --success-soft: #e7f7ee;
  --success-text: #15803d;
  --success-border: #bfe8cf;
  --error-border: #f5c6c6;
  --nav-hover: #e8f0fa;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 16px 44px rgba(37, 99, 235, .18);
  --hero-grad: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.75;
  transition: background .25s ease, color .25s ease;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-deep); text-decoration: underline; }

img { max-width: 100%; display: block; }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

.container { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }

/* ---------- 3. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.site-title {
  display: inline-flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--text);
}
.site-title:hover { color: var(--primary); text-decoration: none; }

.logo-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  margin-right: 10px;
  background: var(--hero-grad);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(139, 92, 246, .5);
  flex: none;
}

.header-right { display: flex; align-items: center; gap: 12px; }

.nav { display: flex; gap: 4px; }
.nav a {
  padding: 7px 15px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 15px;
  transition: all .15s;
}
.nav a:hover { background: var(--nav-hover); color: var(--text); text-decoration: none; }
.nav a.active {
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-soft);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); border-color: var(--primary); }

/* ---------- 4. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
  margin-bottom: 8px;
  background: var(--hero-grad);
  color: #fff;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  filter: blur(34px);
}
.hero-blob-1 { width: 280px; height: 280px; top: -90px; right: -70px; }
.hero-blob-2 { width: 200px; height: 200px; bottom: -80px; left: 8%; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}
.hero-desc {
  margin: 14px auto 0;
  max-width: 520px;
  font-size: 17px;
  opacity: .94;
}

/* ---------- 5. 区块标题 ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  margin: 36px 0 20px;
}
.section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: var(--hero-grad);
  flex: none;
}

/* ---------- 6. 空状态 ---------- */
.empty {
  text-align: center;
  color: var(--text-soft);
  background: var(--card);
  border: 1.5px dashed var(--line);
  border-radius: 16px;
  padding: 52px 20px;
  margin: 16px 0 24px;
}
.empty-emoji { font-size: 42px; display: block; margin-bottom: 12px; }
.empty-text { margin: 0 0 18px; font-size: 16px; }

/* ---------- 7. 首页日志卡片 ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 680px) { .post-list { grid-template-columns: 1fr; } }

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  animation: fadeUp .5s ease both;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.post-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.post-card:hover .post-cover img { transform: scale(1.06); }
.post-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35));
  opacity: 0;
  transition: opacity .3s;
}
.post-card:hover .post-cover-fade { opacity: 1; }

.post-card-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h2 { margin: 0; font-size: 18px; line-height: 1.45; }
.post-card-body h2 a { color: var(--text); }
.post-card-body h2 a:hover { color: var(--primary); }
.post-excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ---------- 8. 元信息 ---------- */
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.meta-item { white-space: nowrap; }

.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

/* ---------- 9. 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 12px;
  color: var(--text-soft);
  font-size: 14px;
}
.pagination a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.page-indicator { padding: 7px 10px; }

/* ---------- 10. 日志详情 ---------- */
.post-page {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
  margin-top: 26px;
  animation: fadeUp .5s ease both;
}
@media (max-width: 640px) { .post-page { padding: 22px; } }
.post-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.post-top .date { color: var(--text-soft); font-size: 13px; }
.post-title { margin: 0 0 6px; font-size: clamp(24px, 4vw, 32px); line-height: 1.4; font-weight: 800; }

.post-content { margin-top: 20px; font-size: 16.5px; color: var(--text); }
.post-content p { margin: 0 0 16px; }

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.post-gallery-item { margin: 0; }
.post-gallery-item img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform .25s, box-shadow .25s;
}
.post-gallery-item img:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* ---------- 11. 点赞 ---------- */
.like-bar {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
}
.btn-like:hover { border-color: var(--danger); color: var(--danger); transform: translateY(-1px); }
.btn-like .like-icon { display: inline-block; transition: transform .2s; }
.btn-like:not(.liked):hover .like-icon { transform: scale(1.3); }
.btn-like.liked {
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, .35);
  cursor: default;
}
.btn-like.liked .like-icon { animation: heartBeat .5s ease; }
.like-hint { color: var(--text-soft); font-size: 13px; }
@keyframes heartBeat {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  70% { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* ---------- 12. 评论 ---------- */
.comments { margin-top: 34px; }
.comments .section-title { margin: 0 0 18px; }

.comment-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.comment-inputs { display: flex; flex-direction: column; gap: 10px; }
.comment-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.comment-msg { color: var(--danger); font-size: 13px; }

.comment-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.comment-item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px 12px 60px;
}
.comment-item::before {
  content: attr(data-initial);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hero-grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(99, 102, 241, .35);
}
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.comment-author { font-weight: 700; font-size: 14px; color: var(--text); }
.comment-time { color: var(--text-soft); font-size: 12px; }
.comment-content { font-size: 14.5px; color: var(--text); }
.comment-head form { margin-left: auto; }

/* ---------- 12.5 富文本渲染（正文 / 编辑器） ---------- */
.post-content { font-size: 16.5px; line-height: 1.85; }
.post-content h2, .editor-content h2 { font-size: 23px; font-weight: 700; margin: 26px 0 12px; }
.post-content h3, .editor-content h3 { font-size: 19px; font-weight: 700; margin: 22px 0 10px; }
.post-content h4, .editor-content h4 { font-size: 17px; font-weight: 700; margin: 18px 0 8px; }
.post-content blockquote, .editor-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 14px 0;
  color: var(--text-soft);
}
.post-content ul, .editor-content ul,
.post-content ol, .editor-content ol { padding-left: 26px; margin: 12px 0; }
.post-content li, .editor-content li { margin: 4px 0; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; }
.post-content hr, .editor-content hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
.post-content pre, .editor-content pre {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.post-content code, .editor-content code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 14px;
  font-family: "Cascadia Code", Consolas, "Courier New", monospace;
}
.post-content pre code, .editor-content pre code { background: none; border: none; padding: 0; }
.post-content img, .editor-content img {
  border-radius: 10px;
  margin: 10px 0;
  max-width: 100%;
  box-shadow: var(--shadow);
}

/* ---------- 12.6 富文本编辑器（后台） ---------- */
.field-label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-soft); font-weight: 500; }

.editor {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 10px;
}
.editor:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  user-select: none;
}
.editor-toolbar button {
  min-width: 34px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: background .12s;
}
.editor-toolbar button:hover { background: var(--nav-hover); }
.editor-toolbar button.active { background: var(--primary-soft); color: var(--primary); }
.editor-sep { width: 1px; height: 20px; background: var(--line); margin: 6px 6px 6px 2px; }
.editor-content {
  min-height: 240px;
  max-height: 560px;
  overflow-y: auto;
  padding: 14px 16px;
  outline: none;
  line-height: 1.85;
  font-size: 16px;
}
.editor-content:empty::before {
  content: attr(placeholder);
  color: var(--text-soft);
  opacity: .65;
  pointer-events: none;
}

/* ---------- 13. 相册 ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .gallery { grid-template-columns: 1fr; } }

.gallery-item {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  animation: fadeUp .5s ease both;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-media { overflow: hidden; }
.gallery-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .4s ease;
}
.gallery-item:hover .gallery-media img { transform: scale(1.07); }
.gallery-item figcaption {
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-item figcaption a { font-weight: 700; color: var(--text); }
.gallery-item figcaption a:hover { color: var(--primary); }
.gallery-item .meta-item { color: var(--text-soft); }

/* ---------- 14. 表单与按钮 ---------- */
label { display: block; margin-bottom: 16px; font-size: 14px; color: var(--text-soft); font-weight: 500; }

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  margin-top: 7px;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-soft); opacity: .7; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
textarea { resize: vertical; }
input[type="file"] { font-size: 14px; color: var(--text-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  background: var(--hero-grad);
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
  transition: all .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 20px rgba(99, 102, 241, .4); filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn.ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--primary); background: var(--primary-soft); filter: none; }

.btn.mini { padding: 5px 12px; font-size: 13px; border-radius: 8px; }
.btn.danger { background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 4px 14px rgba(239, 68, 68, .3); }

/* ---------- 15. 提示条 ---------- */
.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin: 16px 0;
  font-size: 14px;
  border: 1px solid transparent;
  animation: fadeUp .35s ease both;
}
.flash.success { background: var(--success-soft); color: var(--success-text); border-color: var(--success-border); }
.flash.error { background: var(--danger-soft); color: var(--danger-text); border-color: var(--error-border); }

/* ---------- 16. 后台 ---------- */
.admin-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.page-title { margin: 0; font-size: 24px; font-weight: 800; }

.login-box {
  max-width: 400px;
  margin: 56px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
  animation: fadeUp .5s ease both;
}
.login-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; }
.login-title { margin: 0; font-size: 22px; font-weight: 800; }
.login-sub { text-align: center; color: var(--text-soft); font-size: 13px; margin: 0 0 22px; }
.login-btn { width: 100%; padding: 12px; font-size: 16px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 18px;
}
.tab-btn {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--text-soft);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.tab-btn.active {
  background: var(--hero-grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .3);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s ease both; }
.tab-panel > form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.thumb-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.thumb {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.manage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.manage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  transition: transform .15s;
}
.manage-item:hover { transform: translateX(3px); }
.manage-info { display: flex; align-items: center; gap: 10px; font-size: 15px; flex-wrap: wrap; min-width: 0; }
.manage-info a { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-info a:hover { color: var(--primary); }
.manage-info .date { color: var(--text-soft); font-size: 12px; }
.manage-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.comment-group { margin-bottom: 20px; }
.comment-group-title { font-size: 15px; margin: 0 0 8px; }
.comment-group-title a { color: var(--text); }
.comment-group-title a:hover { color: var(--primary); }

.hint { color: var(--text-soft); font-size: 14px; margin: 10px 0 16px; }
.hint-link { margin-left: 8px; font-size: 13px; }

/* ---------- 17. 灯箱 ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, .85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox.open { display: flex; animation: fadeIn .2s ease; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

/* ---------- 18. 页脚 ---------- */
.site-footer {
  margin-top: 48px;
  padding: 28px 0 36px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}
.footer-text { margin: 0; }
.footer-sub { margin: 4px 0 0; opacity: .85; }

/* ---------- 19. 动画 ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
