@charset "utf-8";
/* ============================================================
   霓影 · 暗夜玻璃  nebula_neon
   深色渐变背景 / 霓虹强调色 / 玻璃拟态卡片
   ============================================================ */

:root {
  --bg: #0b0b12;
  --bg-deep: #07070d;
  --primary: #fe2c55;
  --primary-soft: rgba(254, 44, 85, 0.16);
  --primary-glow: rgba(254, 44, 85, 0.35);
  --accent: #25f4ee;
  --accent-soft: rgba(37, 244, 238, 0.14);
  --text: #eaeaf4;
  --text-soft: #c9c9da;
  --muted: #9393ab;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-2: rgba(255, 255, 255, 0.03);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --maxw: 1180px;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 800px at 12% 6%, #1a0a1e 0%, transparent 62%),
    radial-gradient(1000px 700px at 88% 14%, #0d1a2b 0%, transparent 60%),
    radial-gradient(900px 700px at 50% 96%, #170b1c 0%, transparent 62%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }

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

/* 背景光斑 ------------------------------------------------ */
.bg-aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-aura::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 10%, transparent 78%);
}
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aura-1 {
  width: 460px; height: 460px;
  left: -120px; top: -80px;
  background: radial-gradient(circle, rgba(254, 44, 85, 0.55), transparent 68%);
}
.aura-2 {
  width: 520px; height: 520px;
  right: -160px; top: 12%;
  background: radial-gradient(circle, rgba(37, 244, 238, 0.30), transparent 68%);
}
.aura-3 {
  width: 640px; height: 640px;
  left: 40%; bottom: -320px;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.32), transparent 70%);
}

/* 玻璃拟态 ------------------------------------------------ */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 顶部导航 ------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 11, 18, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.is-scrolled {
  background: rgba(9, 9, 15, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #ff7a9c 45%, var(--accent));
  box-shadow: 0 0 18px var(--primary-glow);
  flex: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  justify-content: flex-end;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-list li { position: relative; }
.nav-list li > a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-list li > a:hover,
.nav-list li.current-menu-item > a,
.nav-list li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-list li.dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 6px;
  opacity: 0.6;
}
.nav-list .dropdown-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: rgba(16, 16, 26, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
}
.nav-list li.dropdown:hover .dropdown-box { display: block; }
.nav-list .dropdown-box p a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.nav-list .dropdown-box p a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }

.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.25s ease;
}
.nav-search:focus-within { border-color: rgba(37, 244, 238, 0.45); }
.nav-search input {
  width: 118px;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 0.88rem;
  padding: 6px 0;
}
.nav-search input::placeholder { color: #75758c; }
.nav-search button {
  border: 0;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5c7f);
  transition: opacity 0.25s ease;
}
.nav-search button:hover { opacity: 0.86; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 11px 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 主体 ---------------------------------------------------- */
.site-main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) 24px 0;
}
.site-main--single { max-width: 940px; }

/* 欢迎区 -------------------------------------------------- */
.hero {
  min-height: calc(78vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 64px;
}
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 22px;
  padding-left: 0.38em;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(112deg, #ffffff 0%, #ffffff 32%, #ffc2d1 64%, #a9fff9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(254, 44, 85, 0.25);
}
.hero-desc {
  max-width: 620px;
  color: var(--text-soft);
  font-size: 1.04rem;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 52px;
}
.hero-stats {
  display: flex;
  gap: 46px;
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(120deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }

.hero--404 { min-height: calc(100vh - var(--nav-h) - 140px); }

/* 按钮 ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #ff5c7f);
  color: #fff;
  box-shadow: 0 12px 30px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(254, 44, 85, 0.48);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 244, 238, 0.45);
  background: rgba(37, 244, 238, 0.08);
}

/* 区块 ---------------------------------------------------- */
.section { padding: 56px 0 8px; }
.section--cats { padding-top: 48px; }
.section-head { margin-bottom: 34px; }
.section-title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 0.92rem; }

/* 文章网格 ------------------------------------------------ */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 44, 85, 0.42);
  box-shadow: 0 22px 55px rgba(254, 44, 85, 0.16), 0 10px 40px rgba(0, 0, 0, 0.45);
}
.card-cover {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #14141f;
}
.card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.9;
}
.post-card:hover .card-cover img { transform: scale(1.05); opacity: 1; }
.card-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(254, 44, 85, 0.32), transparent 55%),
    radial-gradient(circle at 78% 78%, rgba(37, 244, 238, 0.22), transparent 55%),
    linear-gradient(135deg, #16101d, #0d1520);
}
.card-cover--empty span {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.card-body { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.chip--cat {
  color: #ffd6df;
  border-color: rgba(254, 44, 85, 0.35);
  background: var(--primary-soft);
}
a.chip:hover { border-color: rgba(37, 244, 238, 0.5); color: #fff; }
.card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
}
.card-title a { transition: color 0.25s ease; }
.card-title a:hover { color: var(--primary); }
.card-intro {
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-intro p { margin: 0; }
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.76rem;
  color: #7c7c93;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* 分类卡片 ------------------------------------------------ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 244, 238, 0.42);
  background: rgba(37, 244, 238, 0.06);
}
.cat-name { font-weight: 600; color: #fff; font-size: 0.95rem; }
.cat-count { font-size: 0.76rem; color: var(--muted); }

/* 空状态 -------------------------------------------------- */
.empty {
  padding: 54px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.empty-title { font-size: 1.15rem; font-weight: 700; color: #fff; }
.empty-desc { color: var(--muted); font-size: 0.9rem; }

/* 文章页 -------------------------------------------------- */
.article { padding: 46px 52px 42px; margin-top: 12px; }
.article-head { margin-bottom: 30px; }
.article-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 14px 0 18px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: #1a1a26;
}

.article-body {
  color: #e0e0ee;
  font-size: 1.03rem;
  line-height: 1.95;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.article-body > *:first-child { margin-top: 0; }
.article-body p { margin: 1.05em 0; }
.article-body h2,
.article-body h3,
.article-body h4 {
  color: #fff;
  line-height: 1.4;
  margin: 1.9em 0 0.7em;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.article-body h2 { font-size: 1.45rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body h4 { font-size: 1.05rem; border-left-color: var(--accent); }
.article-body a { color: #ff6f8d; border-bottom: 1px dashed rgba(254, 44, 85, 0.45); }
.article-body a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  margin: 1.4em auto;
}
.article-body ul,
.article-body ol { margin: 1em 0; padding-left: 1.5em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 0.4em 0; }
.article-body blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(254, 44, 85, 0.07);
  color: var(--text-soft);
}
.article-body blockquote p:first-child { margin-top: 0; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
  font-family: "JetBrains Mono", Consolas, Monaco, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffc2cf;
}
.article-body pre {
  margin: 1.5em 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: #0b0b13;
  border: 1px solid var(--line);
  overflow-x: auto;
  line-height: 1.7;
}
.article-body pre code { background: none; padding: 0; color: #cfd6e4; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.article-body th,
.article-body td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.article-body th { background: rgba(255, 255, 255, 0.05); color: #fff; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.article-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* 评论区 -------------------------------------------------- */
.comments { margin-top: 22px; padding: 38px 52px 42px; }
.comments-title {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.comments-count {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #ffd6df;
  border: 1px solid rgba(254, 44, 85, 0.35);
}
.comments-empty { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }

.msg { list-style: none; padding: 0; margin: 0; }
.msg.msghead { margin-bottom: 12px; }
.msg.msghead .tbname { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; }
.comment-item {
  padding: 18px 20px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.msgname {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.msgname .avatar { width: 40px; height: 40px; }
.commentname a { color: #fff; font-weight: 600; }
.commentname a:hover { color: var(--primary); }
.msgname small { color: var(--muted); font-size: 0.76rem; margin-left: auto; }
.revertcomment a { color: var(--accent); }
.msgarticle { margin-top: 12px; color: var(--text-soft); font-size: 0.94rem; line-height: 1.8; }
.msgarticle p { margin: 0.6em 0; }
.comment-item .msg { margin: 14px 0 0 0; }
.comment-item .comment-item { background: rgba(255, 255, 255, 0.02); }

.commentpagebar { margin: 18px 0 6px; }

/* 评论表单 */
.comment-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.comment-form .posttop a { color: #fff; font-weight: 700; font-size: 1rem; }
.comment-form .posttop small { color: var(--accent); }
.comment-form form { margin-top: 15px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-row p, .form-full { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.form-row label, .form-full label { font-size: 0.8rem; color: var(--muted); }
.comment-form input.text,
.comment-form textarea.text {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
  resize: vertical;
}
.comment-form input.text:focus,
.comment-form textarea.text:focus {
  border-color: rgba(37, 244, 238, 0.5);
  background: rgba(255, 255, 255, 0.06);
}
.form-submit { margin-top: 4px; }
.comment-form input.button {
  padding: 12px 36px;
  border: 0;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5c7f);
  box-shadow: 0 10px 26px var(--primary-glow);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.comment-form input.button:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(254, 44, 85, 0.45); }
.postbottom { margin-top: 14px; font-size: 0.78rem; color: #77778e; }
#commentpost-verify { display: flex; gap: 10px; align-items: center; }

/* 分页 ---------------------------------------------------- */
.pagebar-wrap { margin: 40px 0 8px; display: flex; justify-content: center; }
.pagebar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.pagebar .page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 0.86rem;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}
.pagebar a.page:hover { border-color: rgba(37, 244, 238, 0.5); color: #fff; }
.pagebar .now-page {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff5c7f);
  border-color: transparent;
  box-shadow: 0 8px 22px var(--primary-glow);
}

/* 侧栏（可选） -------------------------------------------- */
.sidebar { display: grid; gap: 16px; margin-top: 22px; }
.widget {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--glass-2);
  border: 1px solid var(--line);
}
.widget-title { font-size: 0.95rem; color: #fff; margin-bottom: 12px; font-weight: 700; }
.widget-body ul { display: grid; gap: 8px; }
.widget-body li a { color: var(--text-soft); font-size: 0.88rem; }
.widget-body li a:hover { color: var(--primary); }

/* 页脚 ---------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.25));
  padding: 50px 24px 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
  padding-bottom: 40px;
}
.footer-note { margin-top: 12px; color: var(--muted); font-size: 0.86rem; max-width: 320px; }
.footer-links h4,
.footer-meta h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #85859e;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-links ul { display: grid; gap: 9px; }
.footer-links a { color: var(--text-soft); font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary); }
.footer-meta p { color: var(--muted); font-size: 0.84rem; line-height: 1.8; }
.footer-power { margin-top: 8px; }
.footer-power a { color: var(--accent); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.78rem;
  color: #6c6c82;
}

/* 入场动画 ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .post-card, .btn, .card-cover img { transition: none; }
}

/* 响应式 -------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-search input { width: 90px; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 64px; }
  .nav-inner { padding: 0 18px; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 18px 20px;
    background: rgba(10, 10, 17, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list li > a { display: block; padding: 10px 12px; }
  .nav-list .dropdown-box {
    position: static;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 14px;
  }
  .nav-search { width: 100%; }
  .nav-search input { width: 100%; flex: 1; }

  .site-main { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; padding: 48px 0 40px; }
  .hero-stats { gap: 26px; }
  .article { padding: 28px 22px 30px; border-radius: var(--radius-sm); }
  .comments { padding: 26px 22px 30px; border-radius: var(--radius-sm); }
  .form-row { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { margin-top: 60px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .article-body { font-size: 0.98rem; line-height: 1.9; }
}
