:root {
  --bg: #070b1a;
  --bg2: #0c1230;
  --cyan: #00e5ff;
  --purple: #a855f7;
  --pink: #ff4dd8;
  --text: #e8ecff;
  --muted: #9aa3c7;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.10);
  --glow: 0 0 40px rgba(0, 229, 255, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* 背景光晕 + 粒子 */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 10%, rgba(0, 229, 255, 0.18), transparent 60%),
    radial-gradient(55% 50% at 85% 20%, rgba(168, 85, 247, 0.20), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(255, 77, 216, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  animation: glowShift 16s ease-in-out infinite alternate;
}
@keyframes glowShift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(25deg) brightness(1.15); }
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 26, 0.55);
  border-bottom: 1px solid var(--card-border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: var(--glow);
  color: #06101f;
}
.logo-img {
  width: 30px; height: 30px;
  flex-shrink: 0;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid rgba(0,229,255,0.5);
  box-shadow: var(--glow);
}
.logo-text { font-weight: 700; font-size: 1.05rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #06101f !important;
  font-weight: 700;
  box-shadow: var(--glow);
}
.nav-out { color: var(--pink) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* 容器 */
.container { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 5vw 80px; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.98rem;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #06101f;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 55px rgba(0, 229, 255, 0.55); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-danger { background: rgba(255, 77, 216, 0.15); color: var(--pink); border: 1px solid rgba(255,77,216,0.4); }
.btn-danger:hover { background: rgba(255, 77, 216, 0.28); }
.btn.disabled { opacity: .45; pointer-events: none; }

/* Hero */
.hero { text-align: center; padding: 90px 0 60px; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--cyan);
  border: 1px solid rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.08);
  margin-bottom: 22px;
  letter-spacing: 2px;
}
.hero-title {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(120deg, #fff 10%, var(--cyan) 45%, var(--purple) 75%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(0,229,255,0.35));
}
.hero-sub { font-size: clamp(1.1rem, 3vw, 1.6rem); margin-top: 14px; color: #fff; font-weight: 500; }
.hero-desc { color: var(--muted); margin-top: 14px; font-size: 1.02rem; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  margin-top: 60px;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat {
  min-width: 150px;
  padding: 22px 30px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--cyan); }
.stat-num span { font-size: 1rem; color: var(--muted); margin-left: 4px; font-weight: 500; }
.stat-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

/* 区块 */
.section { padding: 50px 0; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  margin-bottom: 36px;
  font-weight: 800;
}
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(0,229,255,0.45); }
.card-glow { position: relative; overflow: hidden; }
.card-glow::before {
  content: '';
  position: absolute;
  top: -40%; left: -30%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(0,229,255,0.25), transparent 70%);
  filter: blur(20px);
}
.card-icon { font-size: 2rem; margin-bottom: 10px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

.cta-band {
  text-align: center;
  margin-top: 40px;
  padding: 50px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0,229,255,0.10), rgba(168,85,247,0.12));
  border: 1px solid var(--card-border);
}
.cta-band h2 { font-size: 1.8rem; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 22px; }

/* 文章页 */
.page { max-width: 820px; margin: 40px auto; }
.page-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.avatar {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 18px;
  font-size: 1.8rem; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #06101f;
  box-shadow: var(--glow);
}
.avatar-img {
  width: 68px; height: 68px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(0,229,255,0.5);
  box-shadow: var(--glow);
}
.page h1 { font-size: 2rem; }
.page-sub { color: var(--muted); }
.prose p { margin: 16px 0; color: #d4daf5; }
.prose ul.timeline { list-style: none; margin: 20px 0; }
.prose ul.timeline li {
  position: relative;
  padding: 14px 18px 14px 42px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.prose ul.timeline li::before {
  content: '◆';
  position: absolute; left: 16px; top: 14px;
  color: var(--cyan);
}
.prose ul.timeline li b { color: var(--cyan); }

.status-card {
  padding: 22px;
  border-radius: 18px;
  margin: 18px 0;
  border: 1px solid var(--card-border);
  background: var(--card);
}
.status-card h3 { margin-bottom: 8px; }
.status-bad { border-left: 4px solid #ff5470; }
.status-bad h3 { color: #ff7d92; }
.status-mid { border-left: 4px solid #ffb347; }
.status-mid h3 { color: #ffc16b; }
.status-good { border-left: 4px solid #4dd0a0; }
.status-good h3 { color: #6fe0bb; }
.note-line { margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--card-border); color: var(--muted); font-style: italic; }

/* 价格卡片（单价格 · 年付徒弟） */
.price-card {
  position: relative;
  margin: 28px 0 10px;
  padding: 40px 30px;
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(168,85,247,0.14));
  border: 1px solid rgba(0,229,255,0.45);
  box-shadow: var(--glow);
  overflow: hidden;
}
.price-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.price-card-tag {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 1px;
  color: #fff; padding: 5px 16px; border-radius: 999px;
  background: rgba(0,229,255,0.18); border: 1px solid rgba(0,229,255,0.45);
  margin-bottom: 16px;
}
.price-card-num {
  font-size: 4.2rem; font-weight: 900; line-height: 1; color: #fff;
  text-shadow: 0 0 24px rgba(0,229,255,0.35);
}
.price-card-num .cur { font-size: 2rem; vertical-align: top; margin-right: 4px; color: var(--cyan); }
.price-card-num .per { font-size: 1.3rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.price-card-split { width: 64px; height: 3px; border-radius: 3px; margin: 22px auto; background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.price-card-desc { color: #dbe2f7; font-size: 0.98rem; line-height: 1.75; }
@media (max-width: 560px) {
  .price-card { padding: 30px 18px; }
  .price-card-num { font-size: 3.2rem; }
  .price-card-num .cur { font-size: 1.5rem; }
  .price-card-num .per { font-size: 1.05rem; }
}
.price-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; text-align: center; }

/* 登录 */
.auth-wrap { display: grid; place-items: center; min-height: 70vh; padding: 40px 0; }
.auth-card {
  width: 100%; max-width: 420px;
  padding: 40px 34px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.auth-card h1 { font-size: 1.8rem; margin-bottom: 8px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; font-size: 0.92rem; }
.auth-tip { margin-top: 18px; color: var(--muted); font-size: 0.85rem; text-align: center; }
.form label { display: block; font-size: 0.88rem; color: var(--muted); margin: 14px 0 6px; }
.form input, .grid-form input, .grid-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.form input:focus, .grid-form input:focus, .grid-form select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,0.18);
}

/* 资源中心 */
.resources { padding-top: 40px; }
.res-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.res-head h1 { font-size: 2rem; }
.res-sub { color: var(--muted); }
.expire-warn { color: var(--pink); border: 1px solid rgba(255,77,216,0.4); padding: 8px 14px; border-radius: 10px; background: rgba(255,77,216,0.08); }
.expire-ok { color: var(--cyan); border: 1px solid rgba(0,229,255,0.3); padding: 8px 14px; border-radius: 10px; }
.tabs { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border-radius: 999px;
  text-decoration: none; color: var(--muted);
  border: 1px solid var(--card-border); background: var(--card);
  transition: all .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: #06101f; background: linear-gradient(135deg, var(--cyan), var(--purple)); font-weight: 700; }
.res-list { list-style: none; display: flex; flex-direction: column; }
.res-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--card-border);
  transition: background .2s;
}
.res-row:first-child { border-top: 1px solid var(--card-border); border-radius: 14px 14px 0 0; }
.res-row:last-child { border-radius: 0 0 14px 14px; }
.res-row:hover { background: rgba(255,255,255,0.045); }
.res-main { min-width: 0; }
.res-titleline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-title { color: var(--text); font-size: 1.08rem; font-weight: 600; text-decoration: none; transition: color .2s; }
.res-title:hover { color: var(--cyan); }
.res-subline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 7px; }
.res-date { color: var(--muted); font-size: 0.82rem; }
.res-act { flex-shrink: 0; }
.status-badge { font-size: 0.78rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; flex-shrink: 0; }
.tag-available { background: rgba(34,197,94,0.22); color: #5ef38b; border: 1px solid rgba(34,197,94,0.75); }
.tag-ended { background: rgba(239,68,68,0.22); color: #ff8585; border: 1px solid rgba(239,68,68,0.75); }
.res-tag { align-self: flex-start; font-size: 0.78rem; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.tag-project { background: rgba(0,229,255,0.15); color: var(--cyan); }
.tag-software { background: rgba(168,85,247,0.18); color: #c89bff; }
.res-meta { display: flex; gap: 14px; color: var(--muted); font-size: 0.8rem; margin-top: auto; }
.price-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-label { color: var(--muted); font-size: 0.82rem; }
.price-val { color: #ffd76a; font-size: 1.15rem; font-weight: 800; }
.price-val-sm { color: #ffd76a; font-weight: 700; font-size: 0.95rem; }
.free-badge {
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(34, 197, 94, 0.16); color: #4ade80; border: 1px solid rgba(34,197,94,0.4);
}
.tag-free {
  font-size: 0.76rem; font-weight: 800; padding: 3px 11px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.28), rgba(16,185,129,0.18));
  color: #6ee7a8; border: 1px solid rgba(34,197,94,0.7);
}
.free-badge-blue {
  background: rgba(59, 130, 246, 0.16); color: #60a5fa; border: 1px solid rgba(59,130,246,0.5);
}
.price-none { color: var(--muted); font-size: 0.85rem; }

/* 软件工具多价格档位 */
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pg-item { display: flex; flex-direction: column; gap: 5px; }
.pg-item span { font-size: 0.82rem; color: var(--muted); }
.pg-item input { width: 100%; }
.price-multi { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.price-tier {
  display: inline-flex; align-items: baseline; gap: 0; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,215,106,0.14); border: 1px solid rgba(255,215,106,0.45);
  color: #f1c75a; font-size: 0.9rem;
}
.price-tier b { color: #ffe49b; font-weight: 800; }
@media (max-width: 820px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
.empty { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--card-border); border-radius: 16px; }
.res-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* 文章详情页 */
.article-detail { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; font-size: 0.9rem; transition: color .2s; }
.back-link:hover { color: var(--cyan); }
.detail-title { font-size: 1.9rem; line-height: 1.35; margin-bottom: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.detail-price { margin-bottom: 12px; }
.detail-meta { margin-bottom: 22px; }
/* 详情页下载条（置于正文上方，醒目的资源获取区） */
.detail-dlbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 22px 0 26px; padding: 18px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,229,255,0.10), rgba(168,85,247,0.12));
  border: 1px solid var(--card-border);
}
.detail-dlbar .dlbar-info { min-width: 0; }
.detail-dlbar .dlbar-title { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.detail-dlbar .dlbar-sub { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }
.detail-dlbar .dlbar-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.dl-tip { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  .detail-dlbar { flex-direction: column; align-items: stretch; }
  .detail-dlbar .dlbar-act { justify-content: center; }
  .detail-dlbar .dlbar-act .btn { width: 100%; text-align: center; }
}

/* 后台 */
.admin { padding-top: 40px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-top h1 { font-size: 2rem; }
.panel {
  padding: 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.panel h2 { font-size: 1.3rem; margin-bottom: 8px; }
.panel-tip { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }
.grid-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.grid-form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field-wide { grid-column: 1 / -1; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--card-border); }
.tbl th { color: var(--muted); font-weight: 600; }
.tbl tr:hover td { background: rgba(255,255,255,0.03); }
.ops { display: flex; gap: 8px; }
.inline { display: inline; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; }
.badge-on { background: rgba(77,208,160,0.18); color: #6fe0bb; }
.badge-off { background: rgba(255,84,112,0.18); color: #ff7d92; }

/* Flash 消息 */
.flash-wrap { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.flash { padding: 12px 18px; border-radius: 12px; font-size: 0.92rem; }
.flash-success { background: rgba(77,208,160,0.15); color: #6fe0bb; border: 1px solid rgba(77,208,160,0.35); }
.flash-error { background: rgba(255,84,112,0.15); color: #ff7d92; border: 1px solid rgba(255,84,112,0.35); }

/* 页脚 */
.footer { text-align: center; padding: 40px 5vw; color: var(--muted); border-top: 1px solid var(--card-border); position: relative; z-index: 1; }
.footer-sub { font-size: 0.8rem; margin-top: 6px; }

/* 滚动揭示动画：默认可见（无 JS / JS 异常也显示，绝不空白）；仅当 <html class="js"> 才先做隐藏动画 */
html.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.show { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 820px) {
  .cards, .cards-3, .res-grid { grid-template-columns: 1fr; }
  .res-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .res-act { align-self: stretch; }
  .res-act .btn { width: 100%; text-align: center; }
  .grid-form { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute; top: 70px; right: 5vw; left: 5vw;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: rgba(12,18,48,0.96); padding: 20px; border-radius: 16px;
    border: 1px solid var(--card-border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* 导航激活态 */
.nav-links a.active { color: var(--cyan); font-weight: 700; }

/* 首页分类卡片 */
.section-hint { text-align: center; color: var(--muted); margin-top: -16px; margin-bottom: 30px; }
.cat-link { text-decoration: none; color: inherit; display: block; }
.cat-go { display: inline-block; margin-top: 6px; color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.cat-link:hover .cat-go { text-shadow: 0 0 12px rgba(0,229,255,0.6); }

/* 文章正文（独立阅读背景：明显的深蓝面板，舒适护眼） */
.article-content {
  color: #2a3346;
  font-size: 1.02rem;
  line-height: 2;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 34px 40px;
  margin-top: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
.article-content img { max-width: 100%; border-radius: 12px; margin: 16px 0; border: 1px solid rgba(0,0,0,0.08); }
.article-content a { color: #0a6fb5; text-decoration: underline; text-underline-offset: 3px; }
.article-content p { margin: 14px 0; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5 { color: #16213a; margin: 22px 0 10px; line-height: 1.4; }
.article-content blockquote {
  margin: 16px 0; padding: 12px 18px; border-left: 3px solid #0a6fb5;
  background: #f4f8fc; border-radius: 0 10px 10px 0; color: #41506a;
}
.article-content code {
  background: #f0f2f7; padding: 2px 7px; border-radius: 6px;
  font-family: Consolas, Monaco, monospace; font-size: 0.92em; color: #b0451f;
}
.article-content ul, .article-content ol { padding-left: 24px; margin: 12px 0; }
.article-content li { margin: 6px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 12px 0; }
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5 { margin: 22px 0 10px; line-height: 1.5; }
.article-content blockquote {
  border-left: 3px solid var(--cyan); padding: 4px 18px; margin: 14px 0;
  color: #c4ccea; background: rgba(0,229,255,0.05); border-radius: 0 10px 10px 0;
}
.article-content code {
  background: rgba(255,255,255,0.08); padding: 2px 7px; border-radius: 6px;
  font-family: monospace; font-size: 0.9em;
}

/* 后台富文本编辑器 */
/* 文章编辑器（所见即所得，白底与前台一致） */
.editor-toolbar {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
  flex-wrap: wrap; padding: 8px 10px; border-radius: 10px;
  position: sticky; top: 72px; z-index: 40;
  background: rgba(13,23,48,0.98);
  backdrop-filter: blur(8px);
  border: 1px solid var(--card-border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.tb-group { display: flex; align-items: center; gap: 4px; }
.tb-sep { width: 1px; height: 22px; background: var(--card-border); margin: 0 4px; }
.editor-toolbar button {
  min-width: 34px; height: 32px; padding: 0 9px; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--card-border); font-size: 0.9rem;
  transition: background .15s, border-color .15s;
}
.editor-toolbar button:hover { background: rgba(0,229,255,0.15); border-color: var(--cyan); }
.tb-select {
  height: 32px; padding: 0 6px; border-radius: 7px; cursor: pointer;
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--card-border); font-size: 0.85rem;
}
.tb-select option { background: #0d1730; color: var(--text); }
.tb-color {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px;
  border-radius: 7px; cursor: pointer; border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.06); color: var(--text); font-size: 0.85rem; font-weight: 700;
}
.tb-color input[type=color] {
  width: 20px; height: 20px; padding: 0; border: none; background: none; cursor: pointer;
}
.editor {
  min-height: 200px; padding: 16px; border-radius: 12px;
  border: 1px solid var(--card-border); background: #ffffff; color: #2a3346;
  font-size: 0.95rem; line-height: 1.8; outline: none;
}
.editor:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,0.18); }
.editor:empty:before { content: '在此撰写文章内容……'; color: #9aa3b2; }
.editor img { max-width: 100%; border-radius: 8px; }
.file-current { margin-top: 10px; font-size: 0.88rem; color: var(--muted); }
.rm-file { margin-left: 12px; color: var(--pink); cursor: pointer; }

/* ---------- 后台侧栏布局（点击左侧栏，右侧仅显示该功能） ---------- */
.admin-layout {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  max-width: 100vw;
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 0 5vw;
  box-sizing: border-box;
  margin-top: 10px;
}
.admin-sidebar {
  position: sticky;
  top: 86px;
  width: 232px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-right: 24px;
  padding: 18px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; margin-bottom: 18px; padding: 0 6px; }
.admin-brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: var(--glow); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 11px; text-decoration: none;
  color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: all .18s;
}
.admin-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.admin-nav a.active {
  color: #06101f; font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: var(--glow);
}
.admin-side-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--card-border); display: flex; flex-direction: column; gap: 4px; }
.admin-side-foot a { font-size: 0.85rem; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 9px; transition: all .18s; }
.admin-side-foot a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.admin-main { flex: 1; min-width: 0; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-size: 1.7rem; }
.admin-head .sub { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.admin-head .head-actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 概览 */
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.ov-card { padding: 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); }
.ov-num { font-size: 2.2rem; font-weight: 900; color: var(--cyan); }
.ov-label { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.ov-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ov-link {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--card-border); color: var(--text); text-decoration: none; transition: all .18s;
}
.ov-link:hover { border-color: rgba(0,229,255,0.45); transform: translateY(-3px); }
.ov-link .ic { font-size: 1.5rem; }
.ov-link small { color: var(--muted); }
.ov-link b { font-size: 1rem; }

/* 编辑器更宽更高（解决之前被局限的问题） */
.editor { min-height: 380px; }

/* 响应式：窄屏侧栏上下排布 */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { position: static; width: 100%; margin-right: 0; margin-bottom: 18px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .admin-nav a { flex: 1 1 auto; justify-content: center; }
  .admin-side-foot { flex-direction: row; flex-wrap: wrap; }
  .admin-side-foot a { flex: 1 1 auto; text-align: center; }
  .ov-grid { grid-template-columns: 1fr; }
  .ov-quick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ov-quick { grid-template-columns: 1fr; }
}
