/* ============================================================
   Nova 引导页 · 样式表
   极光背景 / 玻璃拟态 / 深浅双主题 / 响应式
   ============================================================ */

/* ---------- 变量：深色主题（默认） ---------- */
:root,
[data-theme="dark"] {
  --bg: #0a0a14;
  --bg-soft: #12121f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f0f0f8;
  --text-dim: #a0a0b8;
  --text-muted: #6b6b85;
  --accent: #a855f7;
  --accent-2: #06b6d4;
  --accent-3: #ec4899;
  --grad: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #06b6d4 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(10, 10, 20, 0.7);
  --blob-1: rgba(168, 85, 247, 0.5);
  --blob-2: rgba(6, 182, 212, 0.4);
  --blob-3: rgba(236, 72, 153, 0.4);
  --blob-4: rgba(99, 102, 241, 0.4);
}

/* ---------- 变量：浅色主题 ---------- */
[data-theme="light"] {
  --bg: #f4f4fb;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.65);
  --surface-hover: rgba(255, 255, 255, 0.9);
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #1a1a2e;
  --text-dim: #555570;
  --text-muted: #8888a0;
  --accent: #8b5cf6;
  --accent-2: #0891b2;
  --accent-3: #db2777;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #0891b2 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #db2777 100%);
  --shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
  --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.18);
  --nav-bg: rgba(244, 244, 251, 0.75);
  --blob-1: rgba(139, 92, 246, 0.35);
  --blob-2: rgba(8, 145, 178, 0.28);
  --blob-3: rgba(219, 39, 119, 0.25);
  --blob-4: rgba(99, 102, 241, 0.28);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

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

/* 滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   极光背景
   ============================================================ */
.aurora {
  position: fixed; inset: 0; z-index: -2;
  overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .7;
  will-change: transform;
  transform: translateZ(0);
}
.blob-1 { background: var(--blob-1); top: -10%; left: -5%; animation: drift1 22s ease-in-out infinite; }
.blob-2 { background: var(--blob-2); top: 30%; right: -10%; animation: drift2 26s ease-in-out infinite; }
.blob-3 { background: var(--blob-3); bottom: -10%; left: 20%; animation: drift3 30s ease-in-out infinite; }
.blob-4 { background: var(--blob-4); top: 50%; left: 40%; animation: drift4 24s ease-in-out infinite; }

@keyframes drift1 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(15vw,10vh) scale(1.15)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-12vw,8vh) scale(.9)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(10vw,-12vh) scale(1.2)} }
@keyframes drift4 { 0%,100%{transform:translate(0,0) scale(.9)} 50%{transform:translate(-8vw,-6vh) scale(1.1)} }

/* 噪点纹理 */
.grain {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   导航栏
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em;
}
.logo-mark {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.4rem;
}
.nav-links { display: flex; gap: .35rem; }
.nav-links a {
  padding: .5rem 1rem; border-radius: 99px;
  font-size: .9rem; color: var(--text-dim);
  transition: all .25s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 1.05rem; transition: all .25s ease;
}
.theme-toggle:hover { background: var(--surface-hover); transform: rotate(20deg); }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: 99px;
  font-size: .92rem; font-weight: 500;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap; cursor: pointer;
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5); }
.btn-primary .arrow { transition: transform .3s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-glass {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--surface-hover); transform: translateY(-2px); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }

/* ============================================================
   Hero 引导区
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 3rem;
  position: relative;
}
.hero-compact {
  min-height: auto;
  padding-top: 8rem;
  padding-bottom: 2.5rem;
}
.hero-compact .hero-scroll {
  display: none;
}
.hero-inner { max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .82rem; color: var(--text-dim); margin-bottom: 1.5rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.hero-title {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}
.title-line { display: block; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim); margin-bottom: 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b {
  display: block; font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span { font-size: .82rem; color: var(--text-muted); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--text-muted);
}
.mouse {
  width: 24px; height: 38px; border: 2px solid var(--border-strong);
  border-radius: 99px; display: block; position: relative;
}
.mouse span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 7px; border-radius: 99px; background: var(--text-dim);
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* ============================================================
   通用 Section
   ============================================================ */
.section {
  max-width: 1200px; margin: 0 auto;
  padding: 5rem 1.5rem;
}
.shortcuts-section {
  padding-top: 7rem;
  padding-bottom: 3rem;
}
.section-head { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block; font-family: 'Space Grotesk', sans-serif;
  font-size: .72rem; font-weight: 600; letter-spacing: .2em;
  color: var(--accent); margin-bottom: .75rem;
}
.section-head h2 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section-head p { color: var(--text-dim); font-size: 1rem; }
.platform-notice {
  display: inline-block;
  max-width: 900px;
  margin: .15rem auto 1rem;
  padding: .85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}
.platform-notice p {
  margin: .2rem 0;
  color: var(--text);
  font-size: clamp(.95rem, 2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.65;
}

/* ============================================================
   快捷导航卡片
   ============================================================ */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 300px;
}
.shortcut-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: .75rem; padding: 2rem 1.25rem; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s ease, border-color .35s ease;
  overflow: hidden;
  contain: layout style paint;
}
.shortcut-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--card-grad, var(--grad));
  opacity: 0; transition: opacity .35s ease; z-index: -1;
}
.shortcut-card:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.shortcut-card:hover::before { opacity: .12; }
.sc-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--card-grad, var(--grad)); color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  transition: transform .35s ease;
}
.shortcut-card:hover .sc-icon { transform: scale(1.1) rotate(-6deg); }
.sc-name { font-weight: 600; font-size: 1rem; }
.sc-desc { font-size: .78rem; color: var(--text-muted); text-align: center; }
.sc-arrow {
  position: absolute; top: 1rem; right: 1rem;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: .9rem;
  background: var(--surface-hover); opacity: 0;
  transform: translateX(6px); transition: all .3s ease;
}
.shortcut-card:hover .sc-arrow { opacity: 1; transform: translateX(0); }

/* ============================================================
   工具栏（筛选 + 搜索）
   ============================================================ */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
}
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab {
  padding: .5rem 1.1rem; border-radius: 99px;
  font-size: .85rem; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border);
  transition: all .25s ease;
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .3);
}
.search-box {
  position: relative; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: 1rem; font-size: 1.05rem; color: var(--text-muted);
}
.search-box input {
  padding: .6rem 1rem .6rem 2.6rem; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .88rem; width: 240px;
  transition: all .25s ease;
}
.search-box input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, .15);
  background: var(--bg-soft);
}
.search-box input::placeholder { color: var(--text-muted); }

/* ============================================================
   文章卡片网格
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
.article-card {
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .4s cubic-bezier(.4,0,.2,1), box-shadow .4s ease, border-color .4s ease;
  cursor: pointer;
  contain: layout style paint;
}
.article-card:hover {
  transform: translateY(-6px); border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.ac-cover {
  height: 160px; position: relative; overflow: hidden;
  background: var(--ac-grad, var(--grad));
}
.ac-cover::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255,255,255,.25), transparent 50%);
}
.ac-cover-pattern {
  position: absolute; inset: 0; opacity: .15;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 20px 20px;
}
.ac-cat {
  position: absolute; top: 1rem; left: 1rem;
  padding: .25rem .75rem; border-radius: 99px;
  font-size: .72rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ac-delete {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem;
  background: rgba(0,0,0,.4); color: #fff; backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); opacity: 0;
  transition: all .25s ease;
}
.article-card:hover .ac-delete { opacity: 1; }
.ac-delete:hover { background: rgba(239,68,68,.8); transform: scale(1.1); }

.ac-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.ac-title {
  font-size: 1.1rem; font-weight: 600; line-height: 1.4;
  margin-bottom: .5rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ac-excerpt {
  font-size: .88rem; color: var(--text-dim); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem;
}
.ac-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-muted);
}
.ac-link-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--accent); font-weight: 500;
}

/* 空状态 */
.empty-state {
  text-align: center; padding: 4rem 1rem; color: var(--text-muted);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ============================================================
   SEO 内容区
   ============================================================ */
.seo-section {
  padding-top: 2rem;
  padding-bottom: 3rem;
}
.seo-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.seo-card p {
  color: var(--text-dim);
  font-size: .98rem;
  line-height: 1.9;
}
.seo-card p + p { margin-top: 1rem; }
.seo-guides {
  padding-top: 2rem;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.guide-card {
  display: block;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  contain: layout style paint;
}
.guide-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.guide-card span {
  display: inline-flex;
  margin-bottom: .75rem;
  padding: .2rem .65rem;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
}
.guide-card h3 {
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: .55rem;
}
.guide-card p {
  color: var(--text-dim);
  font-size: .86rem;
  line-height: 1.7;
}
.article-page {
  padding-top: 8rem;
}
.article-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.25;
  margin: .5rem 0 1.2rem;
}
.article-page h2 {
  margin: 1.8rem 0 .8rem;
  font-size: 1.35rem;
}

/* ============================================================
   关于区
   ============================================================ */
.section-about { padding-top: 2rem; }
.about-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem;
  align-items: center; padding: 3rem; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.about-left h2 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700;
  margin: .5rem 0 1rem; letter-spacing: -.02em;
}
.about-desc { color: var(--text-dim); margin-bottom: 1.75rem; }
.feature-list { list-style: none; display: grid; gap: .75rem; }
.feature-list li {
  display: flex; align-items: center; gap: .65rem;
  font-size: .92rem; color: var(--text-dim);
}
.fi {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--surface-hover); flex-shrink: 0;
}

/* 轨道动画 */
.about-right { display: grid; place-items: center; }
.orbit {
  position: relative; width: 240px; height: 240px;
  display: grid; place-items: center;
}
.orbit-core {
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.8rem; color: #fff;
  background: var(--grad); box-shadow: 0 8px 30px rgba(168,85,247,.4);
}
.orbit-ring {
  position: absolute; border: 1px solid var(--border);
  border-radius: 50%;
}
.r1 { width: 130px; height: 130px; animation: spin 12s linear infinite; }
.r2 { width: 190px; height: 190px; animation: spin 20s linear infinite reverse; }
.r3 { width: 240px; height: 240px; animation: spin 28s linear infinite; }
.orbit-dot {
  position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
}
.d1 { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.d2 { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.d3 { background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  border-top: 1px solid var(--border); margin-top: 3rem;
  padding: 2.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: .5rem; }
.footer-text { font-size: .85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: .88rem; color: var(--text-dim); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ============================================================
   弹窗
   ============================================================ */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  position: relative; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  padding: 2rem; border-radius: 24px;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s cubic-bezier(.4,0,.2,1);
}
.modal-detail { max-width: 680px; }
@keyframes slideUp { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  transition: all .2s ease; z-index: 2;
}
.modal-close:hover { background: var(--surface-hover); transform: rotate(90deg); }
.modal-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }
.modal-form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field span { font-size: .82rem; font-weight: 500; color: var(--text-dim); }
.field input, .field select, .field textarea {
  padding: .7rem .9rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: .92rem; transition: all .25s ease;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,85,247,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; margin-top: .5rem; }

/* 详情弹窗内容 */
.detail-cover { height: 180px; border-radius: 16px; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.detail-cat {
  position: absolute; top: 1rem; left: 1rem;
  padding: .3rem .8rem; border-radius: 99px;
  font-size: .75rem; font-weight: 600; color: #fff;
  background: rgba(0,0,0,.35); backdrop-filter: blur(8px);
}
.detail-title { font-size: 1.6rem; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; }
.detail-date { font-size: .82rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.detail-content { white-space: pre-wrap; line-height: 1.8; color: var(--text-dim); }
.detail-link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.5rem; padding: .65rem 1.4rem; border-radius: 99px;
  background: var(--grad); color: #fff; font-weight: 500; font-size: .9rem;
  transition: transform .25s ease;
}
.detail-link:hover { transform: translateY(-2px); }

/* ============================================================
   回到顶部
   ============================================================ */
.back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem;
  background: var(--grad); color: #fff;
  box-shadow: 0 8px 24px rgba(168,85,247,.4);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.back-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-top:hover { transform: translateY(-4px) scale(1.05); }

/* ============================================================
   滚动入场动画
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); will-change: auto; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .about-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
  .about-right { order: -1; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box input { width: 100%; }
  .hero-stats { gap: 1.5rem; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .nav-actions .btn-ghost { padding: .5rem .9rem; font-size: .82rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .shortcuts-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}
