:root {
  --bg0: #05070f;
  --side-w: 270px;
  --glass: rgba(255, 255, 255, .045);
  --glass-strong: rgba(255, 255, 255, .075);
  --line: rgba(120, 180, 255, .16);
  --line-bright: rgba(120, 200, 255, .42);
  --ink: #eaf2ff;
  --muted: #8aa0c0;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --brand: #38bdf8;
  --ok: #34d399;
  --p: #a855f7;
  --grad: linear-gradient(120deg, #eaf2ff 0%, #7dd3fc 38%, #c4b5fd 100%);
  --grad-btn: linear-gradient(135deg, #22d3ee, #a855f7);
  --glow: 0 0 24px rgba(56, 189, 248, .38);
  --shadow: 0 18px 56px rgba(0, 0, 0, .55);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 82% -12%, rgba(168, 85, 247, .16), transparent 60%),
    radial-gradient(1000px 720px at 8% 6%, rgba(34, 211, 238, .12), transparent 55%),
    linear-gradient(180deg, #05070f 0%, #070b18 55%, #05070f 100%);
  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}
/* 星场 */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 25% 15%, #fff, transparent),
    radial-gradient(1px 1px at 60% 35%, #cfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 80% 10%, #fff, transparent),
    radial-gradient(1px 1px at 15% 60%, #bcdcff, transparent),
    radial-gradient(1px 1px at 45% 82%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 70% 72%, #e6f0ff, transparent),
    radial-gradient(1px 1px at 35% 45%, #fff, transparent),
    radial-gradient(1px 1px at 90% 50%, #cfe9ff, transparent),
    radial-gradient(1.5px 1.5px at 5% 30%, #fff, transparent),
    radial-gradient(1px 1px at 55% 22%, #bcdcff, transparent),
    radial-gradient(1px 1px at 12% 88%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 88% 82%, #d8ecff, transparent);
  background-repeat: repeat; background-size: 520px 520px; opacity: .5;
}
/* 极光缓动 */
body::after {
  content: ""; position: fixed; inset: -25%; z-index: -2; pointer-events: none;
  background: radial-gradient(620px 620px at 50% 50%, rgba(56, 189, 248, .07), transparent 70%);
  animation: drift 20s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(-6%, -4%); } to { transform: translate(6%, 4%); } }

/* 透视网格（电影景深） */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 180, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 180, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 72% 18%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 72% 18%, #000 0%, transparent 78%);
  opacity: .55;
}

/* 顶部滚动进度条 */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 130;
  background: var(--grad-btn); box-shadow: var(--glow);
  transition: width .12s linear;
}

a { color: inherit; text-decoration: none; }

/* ---------- 左侧栏 ---------- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); z-index: 60;
  display: flex; flex-direction: column; padding: 26px 16px 18px;
  background: linear-gradient(180deg, rgba(8, 12, 24, .82), rgba(6, 9, 18, .94));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; margin-bottom: 26px; padding-left: 6px; }
.brand-mark {
  font-size: 22px; line-height: 1; color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, .7));
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.brand-text {
  font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand:hover .brand-text { filter: drop-shadow(0 0 10px rgba(56, 189, 248, .45)); }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.nav::-webkit-scrollbar { width: 0; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 13px;
  padding: 11px 14px; border-radius: 12px; color: var(--muted); cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-item::before {
  content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%) scaleY(0);
  width: 3px; height: 56%; border-radius: 3px; background: var(--grad-btn);
  box-shadow: var(--glow); transition: transform .3s var(--ease);
}
.nav-item:hover { color: var(--ink); background: var(--glass); }
.nav-item.active { color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(168, 85, 247, .14)); }
.nav-item.active::before { transform: translateY(-50%) scaleY(1); }
.nav-idx { font-family: var(--font-mono); font-size: 11px; opacity: .45; width: 22px; flex-shrink: 0; transition: .25s; }
.nav-item.active .nav-idx { opacity: .95; color: var(--cyan); }
.nav-label { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }

.side-foot { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-meta { font-size: 11px; color: var(--muted); opacity: .6; margin-top: 12px; }

/* ---------- 内容区 ---------- */
.view {
  margin-left: var(--side-w); max-width: 1180px; padding: 0;
  opacity: 1; transition: opacity .34s var(--ease);
}
.view.leaving { opacity: 0; }
.inner { max-width: 960px; margin: 0 auto; padding: 46px 30px 96px; }
.inner > * { animation: fadeUp .55s var(--ease) both; }
.inner > *:nth-child(2) { animation-delay: .04s; }
.inner > *:nth-child(3) { animation-delay: .08s; }
.inner > *:nth-child(4) { animation-delay: .12s; }
.inner > *:nth-child(5) { animation-delay: .16s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@keyframes glowPulse { 0%, 100% { opacity: .8; } 50% { opacity: 1; } }

/* ---------- 英雄区（电影感） ---------- */
.hero { position: relative; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 30px 0; overflow: hidden; }
.hero .orb {
  position: absolute; top: 8%; right: -6%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(56, 189, 248, .5), rgba(168, 85, 247, .26) 52%, transparent 72%);
  filter: blur(30px); animation: pulse 7s ease-in-out infinite; z-index: 0; pointer-events: none;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: 1; } }
.hero .kicker {
  position: relative; z-index: 1; font-family: var(--font-mono); font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--cyan); opacity: .85; margin-bottom: 18px;
}
.hero-title {
  position: relative; z-index: 1; margin: 0 0 16px; font-family: var(--font-display); font-weight: 800;
  letter-spacing: -.02em; font-size: clamp(40px, 8vw, 86px); line-height: 1.02;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 50px rgba(56, 189, 248, .22);
}
.hero-title .accent { color: transparent; }
.hero-sub { position: relative; z-index: 1; color: var(--muted); max-width: 620px; margin: 0 0 28px; font-size: 16px; line-height: 1.8; }
.hero-cta { position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .timecode {
  position: absolute; top: 0; left: 0; z-index: 1; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .16em; color: var(--muted); opacity: .65;
}

/* ---------- 首页（AI 驱动，简洁大气） ---------- */
.hero.home-hero { align-items: center; text-align: center; min-height: 82vh; }
.home-hero .hero-sub { margin-left: auto; margin-right: auto; }
.home-hero .orb { top: 50%; left: 50%; right: auto; width: 560px; height: 560px; margin: -280px 0 0 -280px; opacity: .9; }
.home-hero .kicker { text-align: center; }
.home-hero .hero-title { text-align: center; }
.ai-bar {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 10px;
  width: min(680px, 100%); margin: 8px auto 0; padding: 8px 8px 8px 16px;
  background: var(--glass-strong); border: 1px solid var(--line-right); border-radius: 999px;
  box-shadow: var(--glow), var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.ai-bar:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.18), var(--glow); }
.ai-bar-ico { font-size: 20px; filter: drop-shadow(0 0 10px rgba(56,189,248,.5)); flex-shrink: 0; }
.ai-bar input { width: auto; flex: 1; margin: 0; border: 0; background: transparent; color: var(--ink); padding: 8px 4px; font-size: 15px; }
.ai-bar input:focus { box-shadow: none; }
.ai-bar .btn { border-radius: 999px; padding: 9px 20px; white-space: nowrap; }
.ai-reply { position: relative; z-index: 2; min-height: 22px; margin: 16px auto 0; max-width: 620px; font-size: 15px; color: var(--muted); opacity: 0; transition: opacity .3s var(--ease); }
.ai-reply.ok { opacity: 1; color: var(--ink); }
.ai-reply.loading { opacity: .7; }
.ai-reply.loading::after { content: '▍'; color: var(--cyan); animation: blink 1s steps(2) infinite; margin-left: 2px; }
.ai-reply.err { opacity: 1; color: #fca5a5; }
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: 0 } }
.chips { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 22px auto 0; max-width: 720px; }
.chip {
  font: inherit; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 7px 15px; border-radius: 999px; background: var(--glass);
  border: 1px solid var(--line); transition: .2s var(--ease);
}
.chip:hover { border-color: var(--cyan); color: #fff; background: rgba(34,211,238,.12); box-shadow: var(--glow); transform: translateY(-2px); }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: var(--line-bright); box-shadow: 0 16px 56px rgba(0, 0, 0, .6), var(--glow); transform: translateY(-2px); }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- 标题 ---------- */
h1.page-title {
  font-family: var(--font-display); font-size: clamp(26px, 4.2vw, 36px); margin: 0 0 6px; font-weight: 800; letter-spacing: -.01em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.page-title + .lead { margin-top: 4px; }
h2 { font-size: 18px; margin: 26px 0 12px; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.lead { color: var(--muted); margin: 0 0 18px; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px;
  background: rgba(34, 211, 238, .12); color: var(--cyan); margin-right: 6px; border: 1px solid var(--line); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; font-size: 14px; font-weight: 700; font-family: var(--font-display);
  padding: 11px 22px; border-radius: 12px; color: #06121f; background: var(--grad-btn);
  box-shadow: 0 8px 26px rgba(56, 189, 248, .32); transition: .2s var(--ease);
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(56, 189, 248, .55); }
.btn.ghost { background: transparent; color: var(--cyan); border: 1px solid var(--line-bright); box-shadow: none; }
.btn.ghost:hover { background: var(--glass); border-color: var(--cyan); }
.btn.small { padding: 7px 14px; font-size: 13px; }

/* ---------- 表单 ---------- */
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; background: rgba(8, 14, 28, .6); color: var(--ink); margin-bottom: 10px;
  transition: border-color .18s, box-shadow .18s;
}
input::placeholder, textarea::placeholder { color: #5e739a; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
textarea { min-height: 86px; resize: vertical; }
label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }

/* ---------- 首页入口 ---------- */
.entry { cursor: pointer; }
.entry .emoji { font-size: 32px; filter: drop-shadow(0 0 10px rgba(56, 189, 248, .35)); }
.entry h3 { margin: 10px 0 4px; font-size: 16px; color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.entry p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- 列表项 ---------- */
.item { border-bottom: 1px dashed var(--line); padding: 12px 0; animation: fadeUp .4s var(--ease) both; }
.item:last-child { border-bottom: 0; }
.item .meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.vote-btn { float: right; }
.img-link { max-width: 100%; border-radius: 12px; margin-top: 8px; display: block; border: 1px solid var(--line); box-shadow: var(--shadow); }

/* ---------- 测试 ---------- */
.q { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.q .qt { font-weight: 600; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 6px; cursor: pointer; transition: .15s; background: var(--glass); color: var(--ink); }
.opt:hover { border-color: var(--line-bright); background: var(--glass-strong); }
.opt-k { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: rgba(168,85,247,.16); color: #7c3aed; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: .15s; }
.opt-t { flex: 1; }
.opt.sel { border-color: var(--p); background: var(--p); }
.opt.sel .opt-t { color: #fff; font-weight: 700; }
.opt.sel .opt-k { background: rgba(255,255,255,.28); color: #fff; }
.score-badge { font-family: var(--font-display); font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 灵感卡 ---------- */
.insp-card { text-align: center; padding: 40px 22px; }
.insp-card .text { font-size: 22px; font-weight: 600; line-height: 1.75; color: var(--ink); }
.insp-card .author { color: var(--muted); margin-top: 14px; }

/* ---------- 杂项 ---------- */
.empty { color: var(--muted); text-align: center; padding: 30px; }
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: rgba(8, 14, 28, .92); color: #eaf2ff; padding: 11px 20px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--line-bright); box-shadow: var(--glow); opacity: 0; transition: .25s; pointer-events: none; z-index: 99;
}
.toast.show { opacity: 1; }

/* ---------- 账户 ---------- */
.user-box { display: flex; align-items: center; gap: 8px; }
.ub-name { font-size: 14px; color: var(--ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub-logout { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 11px; cursor: pointer; font-size: 13px; transition: .15s; }
.ub-logout:hover { color: var(--ink); border-color: var(--line-bright); }
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(2, 4, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 200; }
.modal.show { display: flex; }
.modal-box { position: relative; width: min(380px, 92vw); background: rgba(12, 18, 34, .96);
  border: 1px solid var(--line-bright); border-radius: 18px; padding: 24px; box-shadow: var(--glow), var(--shadow); animation: fadeUp .25s var(--ease) both; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; line-height: 1; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; padding: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; font-size: 14px; transition: .15s; font-family: var(--font-display); font-weight: 600; }
.tab.active { color: #fff; border-color: var(--line-bright); background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(168, 85, 247, .18)); }
.tab-pane.hidden { display: none; }
.oauth { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.oauth-hint { font-size: 13px; color: var(--muted); text-align: center; margin-bottom: 10px; }
.oauth-btn { display: block; width: 100%; text-align: center; margin-bottom: 8px; }

/* ---------- 移动端抽屉 ---------- */
.menu-btn { position: fixed; top: 14px; left: 14px; z-index: 80; display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center; border-radius: 12px; background: var(--glass-strong);
  border: 1px solid var(--line); color: var(--ink); font-size: 20px; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .35s var(--ease); width: 82vw; max-width: 320px; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .view { margin-left: 0; }
  .menu-btn { display: flex; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .inner { padding: 30px 20px 80px; }
  .hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  body::after, .hero .orb, .brand-mark, .inner > *, .item, .view { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 右侧轨道舞台（填满留白，更"活"） ---------- */
.stage { position: fixed; right: 0; top: 0; bottom: 0; width: 320px; z-index: 5; pointer-events: none;
  display: flex; align-items: center; justify-content: center; }
.stage-inner { position: relative; width: 280px; height: 340px; will-change: transform; }
.orbit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: .5; }
.orbit .ring { position: absolute; border-radius: 50%; }
.orbit .r1 { width: 280px; height: 280px; border: 1px solid rgba(120, 200, 255, .22); animation: spinR 26s linear infinite; animation-play-state: paused; }
.orbit .r2 { width: 200px; height: 200px; border: 1px solid rgba(120, 200, 255, .3); animation: spinL 18s linear infinite; animation-play-state: paused; }
.orbit .r3 { width: 124px; height: 124px; border: 1px solid rgba(168, 85, 247, .34); animation: spinR 12s linear infinite; animation-play-state: paused; }
.orbit .core { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(56, 189, 248, .9), rgba(168, 85, 247, .5) 60%, transparent 72%);
  filter: blur(2px); box-shadow: var(--glow); animation: glowPulse 4s ease-in-out infinite; }
.orbit .node { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 50%; }
.orbit .n1 { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: orbit1 26s linear infinite; animation-play-state: paused; }
.orbit .n2 { background: var(--violet); box-shadow: 0 0 12px var(--violet); animation: orbit2 18s linear infinite; animation-play-state: paused; }
@keyframes spinR { to { transform: rotate(360deg); } }
@keyframes spinL { to { transform: rotate(-360deg); } }
@keyframes orbit1 {
  from { transform: translate(-50%, -50%) rotate(0deg) translateX(140px) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg) translateX(140px) rotate(-360deg); }
}
@keyframes orbit2 {
  from { transform: translate(-50%, -50%) rotate(120deg) translateX(100px) rotate(-120deg); }
  to   { transform: translate(-50%, -50%) rotate(480deg) translateX(100px) rotate(-480deg); }
}
.vindex { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); text-align: center; font-family: var(--font-mono); }
.vi-num { font-size: 30px; font-weight: 700; color: var(--ink); }
.vi-sep { font-size: 14px; color: var(--muted); margin-left: 4px; }
.vi-label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); margin-top: 4px; opacity: .82; }
.vbar { position: absolute; right: 16px; top: 16%; bottom: 16%; width: 2px; border-radius: 2px; background: rgba(120, 180, 255, .14); overflow: hidden; }
.vbar span { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--grad-btn); box-shadow: var(--glow); transition: height .12s linear; }
/* 等页面 load 完，装饰动画才启动（不抢首屏） */
body.loaded .orbit .r1, body.loaded .orbit .r2, body.loaded .orbit .r3,
body.loaded .orbit .n1, body.loaded .orbit .n2 { animation-play-state: running; }

/* 右侧名言卡（每次打开随机一条，玻璃质感覆盖在轨道之上） */
.quote-card { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 258px; padding: 18px 18px 16px; border-radius: 16px;
  background: rgba(8, 14, 30, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(120, 200, 255, .22);
  box-shadow: 0 8px 30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(168,85,247,.08);
  pointer-events: auto; }
.quote-card.q-in { animation: qIn .55s cubic-bezier(.22,.61,.36,1); }
.qkicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); opacity: .82; }
.qtext { margin: 12px 0 14px; font-size: 15px; line-height: 1.75; color: var(--ink); font-style: italic; opacity: .95; word-break: break-word; }
.qauthor { text-align: right; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.qrefresh { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(120,200,255,.3); background: rgba(120,200,255,.08); color: var(--cyan);
  font-size: 14px; line-height: 1; cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s; }
.qrefresh:hover { background: rgba(120,200,255,.18); box-shadow: 0 0 12px rgba(56,189,248,.5); transform: rotate(90deg); }
@keyframes qIn { from { opacity: 0; transform: translate(-50%, -42%); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* AI 助手角 对话 */
.ai-chat { display: flex; flex-direction: column; height: min(62vh, 560px); }
.ai-msgs { flex: 1; overflow-y: auto; padding: 6px 4px; display: flex; flex-direction: column; gap: 10px; }
.ai-msgs::-webkit-scrollbar { width: 8px; }
.ai-msgs::-webkit-scrollbar-thumb { background: rgba(120,200,255,.25); border-radius: 8px; }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.7; font-size: 14px; word-break: break-word; white-space: pre-wrap; animation: qIn2 .35s ease; }
.ai-ai { align-self: flex-start; background: rgba(120,200,255,.10); border: 1px solid rgba(120,200,255,.18); border-bottom-left-radius: 4px; color: var(--ink); }
.ai-user { align-self: flex-end; background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(168,85,247,.22)); border: 1px solid rgba(168,85,247,.28); border-bottom-right-radius: 4px; color: var(--ink); }
.ai-input { display: flex; gap: 8px; margin-top: 12px; }
.ai-input input { flex: 1; }
@keyframes qIn2 { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) { .stage { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .orbit .r1, .orbit .r2, .orbit .r3, .orbit .n1, .orbit .n2, .orbit .core { animation: none !important; }
}

/* ===== 文章资讯 / 详情（动态门户） ===== */
.post-card { display: block; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(245,158,11,.16); }
.post-cover { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; background: #f1f5f9; }
.post-detail { max-width: 760px; margin: 0 auto; }
.post-cover-lg { width: 100%; max-height: 320px; object-fit: cover; border-radius: 12px; margin: 14px 0 18px; }
.post-body { font-size: 15px; line-height: 1.9; color: var(--t); }
.post-body h1, .post-body h2, .post-body h3 { margin: 1.1em 0 .5em; line-height: 1.3; }
.post-body p { margin: .8em 0; }
.post-body ul { padding-left: 1.4em; margin: .6em 0; }
.post-body li { margin: .3em 0; }
.post-body pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow: auto; font-size: 13px; }
.post-body code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: .92em; }
.post-body a { color: var(--p); text-decoration: underline; }
.back { display: inline-block; margin-bottom: 14px; color: var(--p); font-size: 13px; cursor: pointer; }
.back:hover { text-decoration: underline; }

/* ===== 富文本渲染（Quill 输出消毒后） ===== */
.rich { font-size: 15px; line-height: 1.85; color: var(--t); }
.rich img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.rich video { max-width: 100%; border-radius: 8px; margin: 8px 0; }
.rich a { color: var(--p); }
.rich ul, .rich ol { padding-left: 1.4em; margin: .6em 0; }
.rich blockquote { border-left: 3px solid var(--p); margin: .8em 0; padding: .4em 1em; color: #94a3b8; background: #f8fafc; border-radius: 0 8px 8px 0; }
/* 软件推荐：列表封面自动压缩到显示框高度（object-fit:cover 裁切），点卡片弹详情 */
.app-card { cursor: pointer; }
.app-card h2 { margin: 2px 0 6px; }
.app-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-bottom: 10px; }
.app-more { color: var(--p); font-weight: 700; font-size: 13.5px; }
.app-cover { width: 100%; height: 160px; object-fit: contain; display: block; border-radius: 10px; margin-bottom: 12px; background: #f1f5f9; }
.app-cover-empty { display: flex; align-items: center; justify-content: center; font-size: 42px; color: #cbd5e1; }
.app-cover-lg { width: 100%; height: 160px; object-fit: contain; border-radius: 12px; margin-bottom: 14px; background: #f1f5f9; }
/* 弹窗内正文强制深色（白底弹窗里 .rich 继承页面浅色变量会发白） */
.test-modal-box h2 { color: #0f172a; margin: 0 0 8px; }
.test-modal-box .rich { color: #334155; }

/* ===== 综合测试 ===== */
.test-badge { display: inline-block; font-size: 11px; color: #b45309; background: #fef3c7; padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; font-weight: 700; letter-spacing: .5px; }
.test-card { display: flex; flex-direction: column; }
.test-card .btn { margin-top: auto; align-self: flex-start; }
.test-run { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; margin-top: 8px; }
.test-run .q { padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.test-run .qt { font-weight: 600; margin-bottom: 8px; }
.test-run .opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 6px 0; border: 1px solid #cbd5e1; border-radius: 10px; cursor: pointer; transition: .15s; background: #fff; color: #1e293b; font-weight: 500; }
.test-run .opt:hover { border-color: var(--p); }
.test-run .opt-k { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; background: #ede9fe; color: #7c3aed; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.test-run .opt-t { flex: 1; }
.test-run .opt.sel { background: var(--p); color: #fff; border-color: var(--p); }
.test-run .opt.sel .opt-t { font-weight: 700; }
.test-run .opt.sel .opt-k { background: rgba(255,255,255,.28); color: #fff; }
.test-run .sample { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 12px; font-size: 14px; line-height: 1.7; margin: 10px 0; }
.test-run textarea { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 8px; padding: 12px; font-size: 15px; line-height: 1.7; font-family: inherit; resize: vertical; }
.test-run .timer { font-size: 34px; font-weight: 800; color: var(--p); text-align: center; margin: 10px 0; }
.test-result { background: linear-gradient(135deg,#fffbeb,#fff); border: 1px solid #fde68a; border-radius: 14px; padding: 22px; margin-top: 10px; text-align: center; }
.test-result h2 { margin: 0 0 10px; }
.test-result .big-score { font-size: 52px; font-weight: 900; color: #b45309; line-height: 1; }
.test-result .big-score span { font-size: 16px; font-weight: 600; color: #94a3b8; }
.test-result .band { display: inline-block; margin: 14px 0 6px; font-size: 18px; font-weight: 800; color: #fff; background: var(--p); padding: 6px 18px; border-radius: 999px; }
.test-result .meta { color: #94a3b8; font-size: 13px; margin-bottom: 6px; }
.dim-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.dim-row .dim-k { width: 90px; text-align: right; font-size: 13px; color: #475569; flex: none; }
.dim-row .dim-bar { flex: 1; height: 12px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.dim-row .dim-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--p),#f59e0b); }
.dim-row .dim-v { width: 36px; text-align: right; font-size: 13px; color: #475569; flex: none; }

/* ===== 测试页对比度修复 + 弹窗 ===== */
/* 原 .test-run/.test-result 白底但文字继承浅色变量 → 强制深色，确保可读 */
.test-run, .test-result { color: #1e293b; text-align: left; }
.test-run .lead, .test-result .lead, .test-modal-box .lead { color: #475569; }
.test-run .qt { color: #0f172a; font-size: 15px; }
  /* 选项选中态已在上方 .test-run .opt 统一定义 */
.test-badge { color: #92400e; background: #fef3c7; }
.test-result h2 { color: #0f172a; }
.test-result .meta { color: #64748b; }
.test-result .band { background: var(--p); color: #fff; }
.test-result .big-score { color: #b45309; }
.dim-row .dim-k { color: #334155; }
.dim-row .dim-v { color: #334155; }

/* 弹窗：点测试即弹出，避免“以为没打开” */
.test-modal { position: fixed; inset: 0; z-index: 60; background: rgba(8,14,30,.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 48px 16px; }
.test-modal.show { display: flex; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.test-modal-box { position: relative; width: min(700px, 100%); background: #fff; color: #1e293b;
  border-radius: 16px; padding: 24px 26px 28px; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
.test-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; font-size: 22px; line-height: 1; cursor: pointer; }
.test-close:hover { background: #e2e8f0; color: #0f172a; }
.test-result.wide { max-width: none; }
.disclaimer { font-size: 12.5px; line-height: 1.65; color: #92400e; background: #fffbeb;
  border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; margin: 14px 0; text-align: left; }
.disclaimer b { color: #b45309; }

/* ===== Quill 富文本编辑器（前台暗色主题，与后台同款） ===== */
.ql-box { background: rgba(8, 12, 24, .6); border: 1px solid var(--line); border-radius: 12px; margin-top: 6px; overflow: hidden; }
.ql-box .ql-toolbar.ql-snow { border: 1px solid var(--line); border-bottom: none; border-top-left-radius: 12px; border-top-right-radius: 12px; background: rgba(255, 255, 255, .03); }
.ql-box .ql-container.ql-snow { border: 1px solid var(--line); border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; min-height: 200px; font-size: 14px; color: var(--ink); }
.ql-box .ql-editor { min-height: 200px; }
.ql-box .ql-editor.ql-blank::before { color: rgba(234, 242, 255, .45); font-style: normal; }
.ql-snow .ql-stroke { stroke: #9fb3d1; }
.ql-snow .ql-fill { fill: #9fb3d1; }
.ql-snow .ql-picker { color: #9fb3d1; }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke { stroke: var(--cyan); }
.ql-snow.ql-toolbar button:hover .ql-fill, .ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:focus .ql-fill { fill: var(--cyan); }
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--cyan); }
.ql-snow.ql-toolbar button.ql-active .ql-fill { fill: var(--cyan); }
.ql-snow .ql-tooltip { background: #0f172a; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.ql-snow .ql-tooltip input[type=text] { background: #05070f; color: var(--ink); border: 1px solid var(--line); }
.ql-snow a { color: var(--cyan); }
