/* ============================================================================
 * ZXW.LAT | 赛博禅境 — 主样式（style.css）
 * 暗黑系 + 赛博朋克 + 佛教元素。色彩 / 动效参数严格遵循需求文档第十二章。
 * ==========================================================================*/

/* ---- 设计变量 ---- */
:root {
  --bg: #000000;
  --text: #E0E6ED;
  --text-dim: rgba(255, 255, 255, 0.6);
  --text-faint: rgba(255, 255, 255, 0.4);
  --cyan: #00D4FF;        /* 赛博青 */
  --purple: #7B2D8E;      /* 禅意紫 */
  --gold: #FFD700;        /* 功德金 */
  --red: #FF6B6B;         /* 减益红 */
  --green: #00FF88;
  --pink: #FF6B9D;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(255, 255, 255, 0.03);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --mono: 'JetBrains Mono', 'Courier New', monospace;
  --sans: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* ---- 基础重置 ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  letter-spacing: 0.1em;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; letter-spacing: inherit; cursor: pointer; }
input, textarea { font-family: inherit; letter-spacing: inherit; }
a { color: var(--cyan); text-decoration: none; }
::selection { background: rgba(0, 212, 255, 0.3); }

/* ---- 无滚动条设计：隐藏默认滚动条，仅滚动时显示极细线条 ---- */
html { scrollbar-width: none; }
body::-webkit-scrollbar { width: 0; height: 0; }
body.scrolling::-webkit-scrollbar { width: 3px; }
body.scrolling::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.4); border-radius: 2px; }

/* ---- 自定义鼠标指针：极小圆点 + 悬停白色圆环（0.2s 延迟追随） ---- */
body.custom-cursor, body.custom-cursor * { cursor: none; }
#cursor-dot {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; pointer-events: none; z-index: 10001;
  transform: translate(-50%, -50%); mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8); pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
#cursor-ring.hovering { width: 44px; height: 44px; border-color: var(--cyan); }
@media (pointer: coarse) { #cursor-dot, #cursor-ring { display: none; } }

/* ---- 鼠标轨迹光点（最多 20 个，逐渐淡出） ---- */
.trail-dot {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); pointer-events: none; z-index: 9998;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
  animation: trailFade 0.9s ease forwards;
}
@keyframes trailFade { to { opacity: 0; transform: scale(0.2); } }

/* ---- 聚光灯跟随 ---- */
#spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 40%),
              rgba(0, 212, 255, 0.05), transparent 60%);
}

/* ---- 全屏背景层（3D 地球 / 2D 星空降级） ---- */
#bg-canvas, #bg-fallback {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#bg-fallback { display: none; }

/* ================================ 加载页 ================================ */
#preloader {
  position: fixed; inset: 0; z-index: 2000; background: #000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
#preloader.done { opacity: 0; pointer-events: none; }
.preloader-bg {
  position: absolute; inset: 0;
  background: center/cover no-repeat;
  animation: slowZoom 20s ease-in-out infinite alternate;
  opacity: 0.5;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }
.preloader-inner { position: relative; text-align: center; }
.preloader-icon { width: 56px; height: 56px; margin: 0 auto 28px; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preloader-bar {
  width: 200px; height: 2px; background: rgba(255, 255, 255, 0.1);
  border-radius: 1px; overflow: hidden; margin: 0 auto;
}
.preloader-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 1px; transition: width 0.3s ease;
}
.preloader-quote {
  margin-top: 22px; font-family: var(--mono); font-size: 13px;
  color: var(--text-dim); letter-spacing: 0.1em; min-height: 22px;
}
.preloader-quote::after { content: '▋'; color: var(--cyan); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---- 转场画面（素材2） ---- */
#transition-screen {
  position: fixed; inset: 0; background: center/cover no-repeat;
  opacity: 0; pointer-events: none; z-index: 1900;
  transition: opacity 0.5s ease;
}
#transition-screen.active { opacity: 1; pointer-events: all; }

/* ================================ 登录层 ================================ */
#login-overlay {
  position: fixed; inset: 0; z-index: 1800;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#login-overlay.hidden { opacity: 0; pointer-events: none; }
.login-bg {
  position: absolute; inset: 0; background: center/cover no-repeat;
  filter: brightness(0.3); animation: slowZoom 20s ease-in-out infinite alternate;
}
.login-box {
  position: relative; text-align: center; padding: 40px 32px;
  background: var(--glass-bg); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: 20px;
  width: min(90vw, 380px);
}
.login-avatar-wrap { position: relative; width: 200px; height: 200px; margin: -90px auto 0; }
.login-avatar {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 120px; height: 120px; border-radius: 50%;
  background: center/cover; border: 2px solid rgba(0, 212, 255, 0.3);
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), 0 0 40px rgba(0, 212, 255, 0.1); border-color: rgba(0, 212, 255, 0.3); }
  50% { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.6); }
}
.login-orbit {
  position: absolute; width: 200px; height: 200px; left: 50%; top: 50%;
  transform: translate(-50%, -50%); animation: orbit 8s linear infinite; pointer-events: none;
}
.login-orbit::before {
  content: ''; position: absolute; width: 22px; height: 22px;
  background: center/contain no-repeat; top: -11px; left: 50%;
  transform: translateX(-50%); filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.login-greeting { font-size: 14px; color: var(--text-dim); margin: 72px 0 8px; }
.login-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
.login-input {
  width: 100%; padding: 13px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 15px; outline: none; text-align: center;
  transition: all 0.4s var(--ease);
}
.login-input:focus { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
.login-input::placeholder { color: var(--text-faint); }
.login-btn {
  margin-top: 16px; width: 100%; padding: 13px; border: none; border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.25), rgba(123, 45, 142, 0.35));
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--text); font-size: 15px;
  transition: all 0.4s var(--ease);
}
.login-btn:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.login-btn:active { transform: scale(0.95); }
.login-visit {
  position: fixed; top: 24px; right: 28px; font-size: 13px;
  color: var(--text-dim); opacity: 0; animation: fadeIn 1s ease 0.8s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.login-error { color: var(--red); font-size: 12px; margin-top: 10px; min-height: 18px; }
.login-shake { animation: shake 0.4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); } 75% { transform: translateX(8px); }
}

/* ---- 开场白叙事 ---- */
#intro-narrative {
  position: fixed; inset: 0; z-index: 1700; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
#intro-narrative.hidden { opacity: 0; pointer-events: none; }
.intro-text {
  font-family: var(--mono); font-size: clamp(15px, 2.5vw, 20px);
  color: var(--text); letter-spacing: 0.15em; text-align: center; padding: 0 24px;
}
.intro-text::after { content: '▋'; color: var(--cyan); animation: blink 1s step-end infinite; }
.intro-text.typing-done::after { content: ''; }

/* ================================ 页面框架 ================================ */
.page {
  position: relative; z-index: 2; min-height: 100vh;
  display: none; opacity: 0; transition: opacity 0.5s var(--ease);
  padding-bottom: 120px;
}
.page.active { display: block; opacity: 1; }
.page-leaving { opacity: 0 !important; }
.container { width: min(1100px, 92vw); margin: 0 auto; }

/* ---- 顶部状态栏 ---- */
#status-bar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4vw; gap: 12px;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.rank-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-name { color: var(--gold); font-size: 14px; white-space: nowrap; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.rank-bar { width: 90px; height: 3px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.rank-progress { height: 100%; background: linear-gradient(90deg, var(--gold), #fff2ac); width: 0; transition: width 0.6s var(--ease); }
.rank-merit { font-size: 12px; color: var(--text-dim); white-space: nowrap; font-family: var(--mono); }
.status-right { display: flex; align-items: center; gap: 10px; }
.visit-stamp { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.user-name {
  max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--cyan);
}
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease); position: relative;
}
.icon-btn:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
.icon-btn:active { transform: scale(0.95); }
.gift-btn {
  padding: 9px 18px; border-radius: 22px; font-size: 14px;
  background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold); animation: giftBreathe 2s ease-in-out infinite;
  transition: all 0.4s var(--ease);
}
.gift-btn:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
.gift-btn:active { transform: scale(0.95); }
@keyframes giftBreathe {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 215, 0, 0.15); }
  50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.45); }
}
.vinyl-btn.playing .vinyl-disc { animation: spin 4s linear infinite; }
.vinyl-disc { display: inline-block; }

/* ---- Hero 区 ---- */
.hero {
  position: relative; height: 58vh; min-height: 380px;
  display: flex; align-items: flex-end; overflow: hidden;
  margin-bottom: 40px;
}
.hero-bg {
  position: absolute; inset: 0; background: center/cover no-repeat;
  filter: blur(10px) brightness(0.85); transform: scale(1.05);
  transition: filter 1.6s ease, transform 1.6s ease;
}
.hero.loaded .hero-bg { filter: blur(0) brightness(0.85); transform: scale(1); }
.hero-mask { position: absolute; inset: 0; background: linear-gradient(transparent 40%, #000 96%); }
.hero-text { position: relative; padding: 0 4vw 48px; }
.hero-title { font-size: clamp(26px, 5vw, 44px); font-weight: 700; text-shadow: 0 0 24px rgba(0, 212, 255, 0.4); }
.hero-sub { color: var(--text-dim); margin-top: 8px; font-size: clamp(13px, 2vw, 16px); }
.hero-terminal { font-family: var(--mono); font-size: 12px; color: var(--cyan); opacity: 0.8; margin-top: 6px; }

/* ---- 板块通用 ---- */
.section { margin: 56px auto; }
.section-title {
  font-family: var(--mono); font-size: 15px; color: var(--cyan);
  margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.section-title .file { color: var(--purple); }
.section-title::before { content: '>'; }
.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: 16px;
}

/* ---- 电子木鱼 ---- */
.merit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woodfish-panel { position: relative; text-align: center; padding: 48px 24px; overflow: hidden; }
.woodfish {
  width: 190px; height: 190px; margin: 0 auto; border: none; background: none;
  position: relative; transition: transform 0.12s ease;
}
.woodfish:active { transform: scale(0.95); }
.woodfish svg { width: 100%; height: 100%; filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.25)); }
.woodfish-count { margin-top: 18px; font-family: var(--mono); font-size: 14px; color: var(--text-dim); }
.woodfish-count b { color: var(--gold); font-size: 20px; }
.float-text {
  position: fixed; z-index: 900; pointer-events: none;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  animation: floatUp 1.4s ease forwards;
}
.float-text.gain { color: var(--gold); text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
.float-text.loss { color: var(--red); text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(10px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px); }
}
.spark {
  position: fixed; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 899;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.9);
}
.rank-flash {
  position: fixed; inset: 0; z-index: 1500; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.55), transparent 70%);
  animation: flashOut 1.2s ease forwards;
}
@keyframes flashOut { from { opacity: 1; } to { opacity: 0; } }
.rank-toast {
  position: fixed; top: 30%; left: 50%; transform: translateX(-50%);
  z-index: 1501; padding: 22px 48px; border-radius: 50px;
  background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(255, 215, 0, 0.6);
  color: var(--gold); font-size: 20px; text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.3); backdrop-filter: blur(10px);
  animation: popIn 0.6s var(--ease);
}
@keyframes popIn { from { transform: translateX(-50%) scale(0); } to { transform: translateX(-50%) scale(1); } }

/* ---- 赛博香炉 ---- */
.incense-panel { position: relative; text-align: center; padding: 48px 24px 40px; overflow: visible; }
.incense-burner { position: relative; width: 150px; height: 190px; margin: 26px auto 0; }
.incense-stick {
  position: absolute; left: 50%; bottom: 62px; transform: translateX(-50%);
  width: 5px; height: 110px; border-radius: 3px;
  background: linear-gradient(#8a2b2b 0 18%, #d8b36a 18% 100%);
  transform-origin: bottom center; transition: height 1s linear;
}
.incense-stick .ember {
  position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: #ff7733;
  box-shadow: 0 0 12px 4px rgba(255, 119, 51, 0.7); opacity: 0;
}
.incense-stick.burning .ember { opacity: 1; animation: emberGlow 1.2s ease-in-out infinite; }
@keyframes emberGlow { 50% { box-shadow: 0 0 18px 7px rgba(255, 119, 51, 0.9); } }
.smoke {
  position: absolute; bottom: 172px; left: 50%; width: 8px; height: 8px;
  border-radius: 50%; background: rgba(180, 220, 230, 0.35);
  filter: blur(3px); opacity: 0; pointer-events: none;
  animation: smokeRise 3.2s ease-out forwards;
}
@keyframes smokeRise {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  20% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(calc(-50% + 14px), -110px) scale(2.4); }
}
.burner-body {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 130px; height: 66px; border-radius: 12px 12px 40px 40px;
  background: linear-gradient(160deg, #2a2036, #120d1c);
  border: 1px solid rgba(123, 45, 142, 0.5);
  box-shadow: 0 0 30px rgba(123, 45, 142, 0.25), inset 0 4px 12px rgba(0, 0, 0, 0.7);
}
.burner-body::before {
  content: '卍'; position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  color: rgba(255, 215, 0, 0.5); font-size: 26px;
}
.incense-status { margin-top: 16px; font-size: 13px; color: var(--text-dim); font-family: var(--mono); min-height: 20px; }
.incense-status b { color: var(--cyan); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.btn {
  padding: 11px 26px; border-radius: 12px; font-size: 14px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
  transition: all 0.4s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); border-color: rgba(0, 212, 255, 0.4); }
.btn:active { transform: scale(0.95); }
.btn.gold { background: rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.35); color: var(--gold); }
.btn.gold:hover { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
.btn:disabled { opacity: 0.4; pointer-events: none; }

/* ---- 心愿泡泡（z-index 最高，FIFO） ---- */
#wish-layer { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.wish-bubble {
  position: absolute; padding: 8px 16px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(0, 212, 255, 0.25);
  backdrop-filter: blur(6px); font-size: 12px; color: var(--text);
  filter: blur(0.2px); opacity: 0.85;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
  animation: wishFloat linear infinite;
  white-space: nowrap;
}
.wish-bubble .wisher { color: var(--gold); }
@keyframes wishFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-26px); }
  100% { transform: translateY(0); }
}

/* ---- 相册轮播 ---- */
.album-panel { padding: 30px; }
.album-carousel { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #0a0a12; }
.album-slide {
  position: absolute; inset: 0; opacity: 0; filter: blur(10px);
  transition: opacity 0.8s ease, filter 0.8s ease;
}
.album-slide.active { opacity: 1; filter: blur(0); }
.album-slide img { width: 100%; height: 100%; object-fit: cover; }
.album-caption {
  position: absolute; bottom: 14px; left: 16px; font-size: 13px;
  color: var(--text); background: rgba(0, 0, 0, 0.5); padding: 4px 14px;
  border-radius: 14px; backdrop-filter: blur(6px);
}
.album-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.45); color: var(--text); font-size: 17px;
  backdrop-filter: blur(6px); transition: all 0.3s var(--ease); z-index: 5;
}
.album-arrow:hover { background: rgba(0, 212, 255, 0.25); }
.album-arrow.prev { left: 12px; } .album-arrow.next { right: 12px; }
.album-dots { position: absolute; bottom: 16px; right: 18px; display: flex; gap: 7px; z-index: 5; }
.album-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); cursor: pointer; transition: all 0.3s;
}
.album-dots span.on { background: var(--cyan); box-shadow: 0 0 8px rgba(0, 212, 255, 0.8); }

/* ---- 关于我 · 终端卡片 ---- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.hobby-card {
  background: var(--card-bg); backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-left: 4px solid var(--hc, var(--cyan));
  border-radius: 12px; padding: 24px; font-family: var(--mono);
  opacity: 0; transform: translateY(30px);
  transition: all 0.6s ease; cursor: pointer;
}
.hobby-card.visible { opacity: 1; transform: translateY(0); }
.hobby-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
  border-left-color: var(--purple);
}
.hobby-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hobby-icon { width: 24px; height: 24px; color: var(--text-dim); transition: all 0.3s ease; flex-shrink: 0; }
.hobby-card:hover .hobby-icon { color: var(--hc, var(--cyan)); filter: drop-shadow(0 0 8px currentColor); transform: scale(1.1); }
.hobby-command { font-size: 13px; color: var(--cyan); }
.hobby-command .file { color: var(--purple); }
.hobby-command::after { content: '▋'; animation: blink 1s step-end infinite; color: var(--cyan); }
.hobby-command.typing-done::after { content: ''; }
.hobby-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; font-family: var(--sans); }
.hobby-content { font-size: 13px; color: var(--text); line-height: 1.8; min-height: 44px; }
.hobby-tags { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.hobby-tags span {
  background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.5);
  font-size: 12px; border-radius: 4px; padding: 2px 8px; transition: all 0.3s;
}
.hobby-tags span::before { content: '#'; }
.hobby-card:hover .hobby-tags span { background: rgba(255, 255, 255, 0.1); color: #fff; }
.expand-content {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.3s ease 0.2s;
}
.hobby-card.expanded .expand-content { opacity: 1; }
.expand-content img { border-radius: 8px; margin-top: 14px; filter: brightness(0.9); }
.expand-list { margin-top: 12px; font-size: 12px; color: var(--text-dim); line-height: 2; }
.expand-list b { color: var(--cyan); font-weight: 500; }
.hobby-hint { margin-top: 10px; font-size: 11px; color: var(--text-faint); }

/* ---- 碎碎念 ---- */
.murmur-panel { padding: 20px 24px; font-family: var(--mono); font-size: 13px; }
.murmur-panel .m-title { color: var(--cyan); margin-bottom: 10px; }
.murmur-item { color: var(--text-dim); padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }
.murmur-item time { color: var(--purple); margin-right: 8px; font-size: 11px; }

/* ---- 底部入口卡片 ---- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 60px; }
.entry-card {
  padding: 34px 28px; text-align: center; border-radius: 16px;
  background: var(--glass-bg); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); color: var(--text);
  transition: all 0.4s var(--ease); font-size: 17px;
}
.entry-card .e-icon { font-size: 34px; display: block; margin-bottom: 12px; }
.entry-card .e-desc { display: block; margin-top: 8px; font-size: 12px; color: var(--text-dim); }
.entry-card:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.4); }
.entry-card:active { transform: scale(0.95); }
.mini-links { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.mini-links button {
  background: none; border: none; color: var(--text-dim); font-size: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2); padding-bottom: 2px;
  transition: all 0.3s;
}
.mini-links button:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---- 页脚：动态小点 / 快捷跳转 / 分享 ---- */
.footer-zone { margin-top: 70px; text-align: center; position: relative; }
.foot-dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; }
.foot-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.2); position: relative;
  animation: dotPulse 2.4s ease-in-out infinite; transition: all 0.3s;
}
.foot-dot:nth-child(2) { animation-delay: 0.3s; }
.foot-dot:nth-child(3) { animation-delay: 0.6s; }
.foot-dot:hover { background: var(--cyan); box-shadow: 0 0 12px rgba(0, 212, 255, 0.8); }
@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.35); opacity: 1; } }
.quick-jump {
  display: flex; gap: 0; justify-content: center; margin-bottom: 26px;
}
.quick-jump input {
  width: min(320px, 70vw); padding: 11px 18px; border-radius: 12px 0 0 12px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-right: none;
  color: var(--text); font-size: 13px; outline: none; font-family: var(--mono);
}
.quick-jump button {
  padding: 11px 18px; border-radius: 0 12px 12px 0;
  background: rgba(0, 212, 255, 0.15); border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--cyan); font-size: 13px; transition: all 0.3s;
}
.quick-jump button:hover { background: rgba(0, 212, 255, 0.3); }
.share-btn {
  padding: 12px 34px; border-radius: 26px; font-size: 14px;
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.18), rgba(123, 45, 142, 0.28));
  border: 1px solid rgba(0, 212, 255, 0.4); color: var(--text);
  transition: all 0.4s var(--ease);
}
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 0 24px rgba(0, 212, 255, 0.3); }
.share-btn:active { transform: scale(0.95); }
.footer-note { margin-top: 26px; font-size: 12px; color: var(--text-faint); font-family: var(--mono); }
.triple-zone { height: 40px; }

/* ================================ 图片墙 ================================ */
.page-head { padding: 46px 0 8px; }
.page-head h2 { font-size: clamp(22px, 4vw, 32px); }
.page-head p { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.back-btn {
  margin-top: 18px; background: none; border: 1px solid var(--glass-border);
  color: var(--text-dim); padding: 8px 20px; border-radius: 20px; font-size: 13px;
  transition: all 0.3s;
}
.back-btn:hover { color: var(--cyan); border-color: rgba(0, 212, 255, 0.4); }
.masonry { columns: 3 280px; column-gap: 16px; margin-top: 30px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: 12px; overflow: hidden;
  position: relative; cursor: pointer;
  opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease;
}
.masonry-item.visible { opacity: 1; transform: translateY(0); }
.masonry-item img {
  width: 100%; border-radius: 12px; filter: brightness(0.8);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.masonry-item:hover img { filter: brightness(1); transform: scale(1.02); }
.masonry-item .m-date {
  position: absolute; bottom: 10px; left: 12px; font-size: 11px;
  color: rgba(255, 255, 255, 0.65); background: rgba(0, 0, 0, 0.4);
  padding: 2px 10px; border-radius: 10px; backdrop-filter: blur(4px);
  transition: all 0.3s;
}
.masonry-item:hover .m-date { color: #fff; background: rgba(0, 0, 0, 0.7); }
.skeleton { background: linear-gradient(100deg, #111 40%, #1c1c26 50%, #111 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Lightbox ---- */
#lightbox {
  position: fixed; inset: 0; z-index: 1600; display: none;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.92); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity 0.5s ease;
}
#lightbox.open { display: flex; opacity: 1; }
#lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 12px; box-shadow: 0 0 80px rgba(0, 212, 255, 0.15); }
.lb-btn {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; font-size: 20px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--glass-border); color: var(--text);
  transition: all 0.3s;
}
.lb-btn:hover { background: rgba(0, 212, 255, 0.2); }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-close { position: fixed; top: 4vh; right: 4vw; transform: none; }

/* ================================ 热爱板块 ================================ */
#passion-ring-wrap { position: relative; width: 100%; height: 600px; perspective: 1200px; overflow: hidden; background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%); margin-top: 20px; border-radius: 16px; }
.passion-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.passion-card { position: absolute; width: 240px; height: 160px; left: -120px; top: -80px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); transition: all 0.4s var(--ease); cursor: pointer; background: #0a0a12; }
.passion-card img, .passion-card video { width: 100%; height: 100%; object-fit: cover; }
.passion-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); opacity: 0; transition: opacity 0.3s; }
.passion-card .overlay b { color: var(--text); font-size: 14px; font-weight: 500; }
.passion-card .overlay i { color: rgba(255, 255, 255, 0.5); font-size: 12px; margin-left: 8px; font-style: normal; }
.passion-card .play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); width: 48px; height: 48px; background: rgba(0, 212, 255, 0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; color: #000; font-size: 18px; }
.passion-focus { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 260px; height: 180px; border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 16px; pointer-events: none; box-shadow: 0 0 60px rgba(0, 212, 255, 0.1); }
/* 移动端：横向滚动列表 */
.passion-list { display: none; gap: 16px; overflow-x: auto; padding: 20px 4px; scroll-snap-type: x mandatory; }
.passion-list .passion-card { position: relative; left: auto; top: auto; flex: 0 0 280px; width: 280px; height: 180px; scroll-snap-align: center; transform: none !important; }

/* ---- 视频全屏弹窗 ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.modal-mask.open { opacity: 1; pointer-events: all; }
.modal-mask .mask-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px); }
.modal-content {
  position: relative; width: 92%; max-width: 1000px;
  background: rgba(255, 255, 255, 0.03); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--glass-border);
  transform: scale(0.8); transition: transform 0.5s var(--ease);
}
.modal-mask.open .modal-content { transform: scale(1); }
.modal-content video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }
.modal-body { padding: 20px 24px; }
.modal-body h3 { font-size: 19px; margin-bottom: 8px; }
.modal-body p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.modal-actions { display: flex; gap: 14px; padding: 0 24px 22px; align-items: center; flex-wrap: wrap; }
.act-btn {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 8px 16px; color: var(--text);
  transition: all 0.3s; display: flex; align-items: center; gap: 6px; font-size: 14px;
}
.act-btn:hover { transform: translateY(-2px); border-color: rgba(0, 212, 255, 0.4); }
.act-btn.gift { background: rgba(255, 215, 0, 0.1); border-color: rgba(255, 215, 0, 0.3); color: var(--gold); animation: giftBreathe 2s ease-in-out infinite; }
.act-close { margin-left: auto; background: none; border: none; color: var(--text-dim); font-size: 24px; transition: all 0.3s; }
.act-close:hover { color: #fff; transform: rotate(90deg); }
/* 弹幕 */
.danmaku-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.danmaku-item { position: absolute; white-space: nowrap; text-shadow: 0 0 4px rgba(0, 0, 0, 0.8); pointer-events: none; left: 100%; }

/* ================================ 音乐控制台 ================================ */
#music-panel {
  position: fixed; right: 4vw; bottom: 90px; z-index: 500;
  width: 250px; padding: 20px; border-radius: 16px;
  background: rgba(10, 10, 18, 0.9); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transform: translateY(20px) scale(0.9); opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease);
}
#music-panel.open { transform: none; opacity: 1; pointer-events: all; }
.mp-track { font-size: 14px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.mp-track .disc { display: inline-block; }
#music-panel.playing .mp-track .disc { animation: spin 4s linear infinite; }
.mp-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-state { font-size: 11px; color: var(--text-dim); margin-bottom: 14px; font-family: var(--mono); }
.mp-controls { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.mp-controls button {
  width: 36px; height: 36px; border-radius: 50%; font-size: 15px;
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text);
  transition: all 0.3s;
}
.mp-controls button:hover { border-color: rgba(0, 212, 255, 0.5); box-shadow: 0 0 12px rgba(0, 212, 255, 0.25); }
.mp-controls .mp-play { width: 44px; height: 44px; font-size: 17px; border-color: rgba(0, 212, 255, 0.4); }
.mp-volume { display: flex; align-items: center; gap: 10px; }
.volume-track {
  flex: 1; height: 2px; background: rgba(255, 255, 255, 0.12);
  border-radius: 1px; position: relative; cursor: pointer;
}
.volume-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--cyan), var(--purple)); border-radius: 1px; }
.volume-thumb {
  position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}
.mp-viz { display: flex; align-items: flex-end; gap: 3px; height: 26px; margin-top: 14px; }
.mp-viz span { flex: 1; background: linear-gradient(180deg, var(--cyan), var(--purple)); border-radius: 2px; height: 15%; transition: height 0.1s; }
.mp-list { margin-top: 14px; max-height: 140px; overflow-y: auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 10px; }
.mp-list::-webkit-scrollbar { width: 3px; }
.mp-list::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); }
.mp-list button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text-dim); font-size: 12px; padding: 6px 4px; border-radius: 6px;
  font-family: var(--mono); transition: all 0.2s;
}
.mp-list button:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.mp-list button.on { color: var(--cyan); }

/* ================================ 星空足迹 ================================ */
#starmap-stage {
  position: relative; height: 62vh; min-height: 420px; margin-top: 20px;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--glass-border);
  background: radial-gradient(ellipse at 50% 120%, #0b1030 0%, #000 70%);
}
#starmap-stage canvas { width: 100%; height: 100%; display: block; }
.star-marker {
  position: absolute; transform: translate(-50%, -50%); cursor: pointer;
  pointer-events: auto;
}
.star-marker svg { filter: drop-shadow(0 0 6px currentColor); animation: starPulse 2s ease-in-out infinite; }
@keyframes starPulse { 50% { opacity: 0.55; transform: scale(0.85); } }
.starmap-stats { margin-top: 16px; font-family: var(--mono); font-size: 13px; color: var(--text-dim); }
.starmap-stats b { color: var(--cyan); }
.starmap-tip { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

/* ---- Leaflet 赛博禅境定制：圆角 + 青紫辉光 + 暗色控件 ---- */
#leaflet-map { border-radius: 16px; background: #05070f; font-family: var(--sans); }
#starmap-stage:has(#leaflet-map) {
  border-color: rgba(0, 212, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.08), 0 0 80px rgba(123, 45, 142, 0.08),
              inset 0 0 60px rgba(0, 0, 0, 0.35);
}
/* 缩放控件暗色化 */
.leaflet-bar { border: 1px solid var(--glass-border) !important; border-radius: 10px !important; overflow: hidden; box-shadow: 0 0 16px rgba(0, 212, 255, 0.12) !important; }
.leaflet-bar a {
  background: rgba(10, 10, 18, 0.85) !important; color: var(--cyan) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(10px); transition: all 0.3s var(--ease);
}
.leaflet-bar a:hover { background: rgba(0, 212, 255, 0.18) !important; color: #fff !important; }
/* attribution 暗色小号，保留版权 */
.leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.55) !important; color: rgba(255, 255, 255, 0.35) !important;
  font-size: 10px !important; backdrop-filter: blur(6px); border-radius: 8px 0 0 0;
}
.leaflet-control-attribution a { color: rgba(0, 212, 255, 0.5) !important; }
/* 弹窗：暗色 Glassmorphism */
.star-popup .leaflet-popup-content-wrapper {
  background: rgba(10, 10, 18, 0.88); backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.25); border-radius: 12px;
  color: var(--text); box-shadow: 0 0 30px rgba(0, 212, 255, 0.15);
}
.star-popup .leaflet-popup-tip { background: rgba(10, 10, 18, 0.88); border: 1px solid rgba(0, 212, 255, 0.25); }
.star-popup .leaflet-popup-content { margin: 12px 16px; font-family: var(--sans); letter-spacing: 0.05em; }
.star-pop b { display: block; color: var(--cyan); font-size: 13px; margin-bottom: 4px; }
.star-pop span { display: block; font-size: 13px; color: var(--text); line-height: 1.6; }
.star-pop time { display: block; font-size: 10px; color: var(--text-faint); margin-top: 6px; font-family: var(--mono); }
/* 星星标记 pulsating 由 starPulse 动画驱动（复用上方 @keyframes starPulse） */
.star-marker { background: none; border: none; }
/* 移动端触控优化 */
.leaflet-container { -webkit-tap-highlight-color: transparent; touch-action: pan-x pan-y; }

/* ================================ 星际终端留言板 ================================ */
.terminal-panel {
  margin-top: 20px; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border); border-radius: 14px;
  font-family: var(--mono); overflow: hidden;
}
.terminal-head {
  padding: 10px 18px; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px; color: var(--text-dim); display: flex; gap: 8px; align-items: center;
}
.terminal-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-body { padding: 18px; max-height: 420px; overflow-y: auto; }
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.3); }
.msg-block {
  border-left: 2px solid var(--cyan); padding: 10px 14px; margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02); border-radius: 0 8px 8px 0; font-size: 13px;
}
.msg-block.private { border-left-color: var(--purple); }
.msg-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 6px; }
.msg-meta .vid { color: var(--cyan); }
.msg-text { color: var(--text); line-height: 1.8; word-break: break-all; }
.msg-foot { margin-top: 8px; font-size: 11px; color: var(--text-faint); display: flex; gap: 16px; }
.msg-foot button { background: none; border: none; color: var(--text-dim); font-size: 12px; font-family: var(--mono); transition: color 0.2s; padding: 0; }
.msg-foot button:hover { color: var(--pink); }
.msg-foot button.del:hover { color: var(--red); }
.terminal-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); flex-wrap: wrap; }
.terminal-prompt { color: var(--cyan); font-size: 13px; white-space: nowrap; }
.terminal-prompt::after { content: '▋'; animation: blink 1s step-end infinite; }
.terminal-input-row input, .terminal-input-row textarea {
  flex: 1; min-width: 180px; background: none; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: 13px; resize: none;
}
.terminal-options { display: flex; gap: 14px; padding: 0 18px 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-dim); }
.terminal-options input[type="password"], .terminal-options input[type="text"] {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--glass-border);
  border-radius: 8px; padding: 6px 12px; color: var(--text); font-size: 12px; outline: none;
  font-family: var(--mono); width: 140px;
}
.terminal-options label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.msg-filter { display: flex; gap: 10px; padding: 12px 18px 0; }
.msg-filter button {
  background: none; border: 1px solid var(--glass-border); color: var(--text-dim);
  font-size: 11px; padding: 4px 14px; border-radius: 12px; font-family: var(--mono);
  transition: all 0.2s;
}
.msg-filter button.on { color: var(--cyan); border-color: rgba(0, 212, 255, 0.5); }

/* ================================ 弹窗体系（18 面板通用） ================================ */
.panel-mask {
  position: fixed; inset: 0; z-index: 1400; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
}
.panel-mask.open { opacity: 1; pointer-events: all; }
.panel-box {
  width: min(92vw, 480px); max-height: 84vh; overflow-y: auto;
  background: rgba(12, 12, 22, 0.95); border: 1px solid var(--glass-border);
  border-radius: 18px; padding: 28px;
  transform: translateY(30px) scale(0.95); transition: transform 0.4s var(--ease);
}
.panel-box::-webkit-scrollbar { width: 3px; }
.panel-box::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); }
.panel-mask.open .panel-box { transform: none; }
.panel-title { font-size: 18px; margin-bottom: 6px; text-align: center; }
.panel-sub { font-size: 12px; color: var(--text-dim); text-align: center; margin-bottom: 20px; }
.panel-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none;
  color: var(--text-dim); font-size: 20px; transition: all 0.3s;
}
.panel-close:hover { color: #fff; transform: rotate(90deg); }
.panel-box-wrap { position: relative; }
/* 礼物卡片 */
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gift-card {
  padding: 20px 14px; text-align: center; border-radius: 14px;
  background: var(--card-bg); border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease); color: var(--text);
}
.gift-card:hover { transform: translateY(-3px); box-shadow: 0 0 24px rgba(255, 215, 0, 0.2); border-color: rgba(255, 215, 0, 0.4); }
.gift-card:active { transform: scale(0.95); }
.gift-card .g-icon { font-size: 30px; }
.gift-card .g-name { margin-top: 8px; font-size: 14px; }
.gift-card .g-price { margin-top: 4px; font-size: 15px; color: var(--gold); font-family: var(--mono); }
.gift-card .g-merit { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
/* 支付确认 */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pay-btn {
  padding: 14px; border-radius: 12px; font-size: 14px;
  border: 1px solid var(--glass-border); background: var(--card-bg); color: var(--text);
  transition: all 0.3s var(--ease);
}
.pay-btn:hover { transform: translateY(-3px); }
.pay-btn.alipay:hover { border-color: #1677ff; box-shadow: 0 0 16px rgba(22, 119, 255, 0.3); }
.pay-btn.wechat:hover { border-color: #07c160; box-shadow: 0 0 16px rgba(7, 193, 96, 0.3); }
.pay-note { margin-top: 16px; font-size: 11px; color: var(--text-faint); text-align: center; line-height: 1.8; }
/* 心愿输入 */
.wish-form input {
  width: 100%; padding: 12px 16px; margin-bottom: 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  color: var(--text); outline: none; font-size: 14px;
}
.wish-form input:focus { border-color: rgba(0, 212, 255, 0.5); }
.wish-form .char-count { font-size: 11px; color: var(--text-faint); text-align: right; margin-top: -8px; margin-bottom: 10px; }

/* ---- Toast / 感谢横幅 / 桃花雨 ---- */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.9); border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px; padding: 20px 40px; text-align: center; color: var(--text);
  z-index: 9999; backdrop-filter: blur(20px); opacity: 0;
  transition: all 0.4s var(--ease); pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.thanks-banner {
  position: fixed; top: 20%; left: 50%; transform: translateX(-50%) scale(0);
  z-index: 9999; padding: 20px 48px; background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.5); border-radius: 50px;
  color: var(--gold); font-size: 18px; letter-spacing: 0.1em;
  backdrop-filter: blur(10px); text-align: center;
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.2); pointer-events: none;
}
.peach-petal {
  position: fixed; top: -30px; z-index: 9998; pointer-events: none;
  animation: petalFall linear forwards;
}
@keyframes petalFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.2; }
}
.buddha-ghost {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 160px; z-index: 9997; pointer-events: none; opacity: 0;
  filter: drop-shadow(0 0 60px rgba(255, 215, 0, 0.8));
  animation: ghostFade 3s ease forwards;
}
@keyframes ghostFade { 0% { opacity: 0; transform: translate(-50%,-50%) scale(0.6); } 30% { opacity: 0.35; } 100% { opacity: 0; transform: translate(-50%,-58%) scale(1.15); } }

/* ---- 徽章弹窗 ---- */
.badge-popup {
  position: fixed; top: 38%; left: 50%; z-index: 1502;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(0, 0, 0, 0.92); border: 1px solid rgba(0, 212, 255, 0.4);
  border-radius: 20px; padding: 30px 44px; text-align: center;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.25); backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease), top 0.6s ease, left 0.6s ease, opacity 0.4s;
}
.badge-popup.show { transform: translate(-50%, -50%) scale(1); animation: badgeBounce 0.7s var(--ease); }
.badge-popup.fly { top: 8px; left: 92%; transform: translate(-50%, -50%) scale(0.15) rotate(360deg); opacity: 0; }
@keyframes badgeBounce { 0% { transform: translate(-50%,-50%) scale(0); } 60% { transform: translate(-50%,-50%) scale(1.15); } 100% { transform: translate(-50%,-50%) scale(1); } }
.badge-popup .b-icon { font-size: 44px; }
.badge-popup .b-name { margin-top: 10px; color: var(--cyan); font-size: 16px; }
.badge-popup .b-desc { margin-top: 4px; color: var(--text-dim); font-size: 12px; }

/* ---- 管理入口 / 后台 ---- */
#admin-trigger {
  position: fixed; right: 0; bottom: 0; width: 90px; height: 90px; z-index: 600;
}
#admin-gear {
  position: fixed; right: 14px; bottom: 14px; z-index: 601;
  width: 44px; height: 44px; border-radius: 50%; font-size: 19px;
  background: rgba(123, 45, 142, 0.2); border: 1px solid rgba(123, 45, 142, 0.5);
  color: #c88ede; opacity: 0; pointer-events: none; transition: all 0.4s var(--ease);
}
#admin-gear.show { opacity: 1; pointer-events: all; }
#admin-gear:hover { transform: rotate(60deg); box-shadow: 0 0 20px rgba(123, 45, 142, 0.5); }
#admin-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300;
  width: min(400px, 92vw); background: rgba(10, 8, 18, 0.97);
  border-left: 1px solid rgba(123, 45, 142, 0.4); backdrop-filter: blur(20px);
  transform: translateX(100%); transition: transform 0.45s var(--ease);
  padding: 26px; overflow-y: auto;
}
#admin-panel.open { transform: none; }
#admin-panel h3 { color: #c88ede; font-size: 16px; margin-bottom: 18px; }
#admin-panel h4 { color: var(--text); font-size: 13px; margin: 22px 0 10px; border-left: 3px solid var(--purple); padding-left: 10px; }
.admin-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.admin-row select, .admin-row input {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
  color: var(--text); border-radius: 8px; padding: 7px 10px; font-size: 12px; outline: none;
  flex: 1; min-width: 120px;
}
.admin-row select option { background: #14101f; }
.admin-btn {
  padding: 7px 16px; border-radius: 8px; font-size: 12px;
  background: rgba(123, 45, 142, 0.25); border: 1px solid rgba(123, 45, 142, 0.5);
  color: #e0b8f0; transition: all 0.3s;
}
.admin-btn:hover { background: rgba(123, 45, 142, 0.45); }
.admin-btn.danger { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); color: var(--red); }
.admin-stat { font-family: var(--mono); font-size: 12px; color: var(--text-dim); line-height: 2.1; }
.admin-stat b { color: var(--gold); }
.admin-msg { font-size: 12px; border-left: 2px solid var(--purple); padding: 6px 10px; margin-bottom: 8px; background: rgba(255,255,255,0.02); word-break: break-all; }
.admin-msg .del { float: right; background: none; border: none; color: var(--red); font-size: 11px; }

/* ---- 快捷键帮助 ---- */
.kbd-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.kbd-table td { padding: 7px 6px; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); color: var(--text-dim); }
.kbd-table td:first-child { color: var(--cyan); font-family: var(--mono); width: 90px; }

/* ---- 离线提示 ---- */
#offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1600;
  background: rgba(123, 45, 142, 0.85); backdrop-filter: blur(10px);
  color: #fff; text-align: center; font-size: 13px; padding: 10px;
  transform: translateY(-100%); transition: transform 0.4s var(--ease);
}
#offline-banner.show { transform: none; }

/* ---- 音频可视化圆环（主页装饰） ---- */
#viz-ring {
  position: fixed; left: 50%; bottom: 12vh; transform: translateX(-50%);
  width: 120px; height: 120px; border-radius: 50%; pointer-events: none; z-index: 3;
  border: 1px solid rgba(0, 212, 255, 0.15); opacity: 0; transition: opacity 0.5s;
}
#viz-ring.on { opacity: 1; }

/* ---- 云端同步状态点：青色=云端已同步 / 灰色=本地模式 ---- */
.sync-dot {
  font-size: 11px; font-family: var(--mono); letter-spacing: 0.05em;
  padding: 3px 12px; border-radius: 12px; white-space: nowrap;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.03);
  transition: all 0.4s var(--ease); cursor: default;
}
.sync-dot.ok { color: var(--cyan); border-color: rgba(0, 212, 255, 0.35); box-shadow: 0 0 12px rgba(0, 212, 255, 0.15); }
.sync-dot.off { color: rgba(255, 255, 255, 0.4); }

/* ================================ 响应式 ================================ */
@media (max-width: 1024px) {
  .masonry { columns: 2 240px; }
}
@media (max-width: 768px) {
  .merit-grid { grid-template-columns: 1fr; }
  .entry-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .masonry-item { margin-bottom: 10px; }
  #passion-ring-wrap { display: none; }
  .passion-list { display: flex; }
  .rank-bar { display: none; }
  .visit-stamp { display: none; }
  .user-name { max-width: 80px; }
  .hero { height: 46vh; }
  .hobby-tags { display: none; }
  .hobby-card.expanded .hobby-tags { display: flex; }
  .gift-grid { grid-template-columns: 1fr 1fr; }
  .lb-btn { width: 38px; height: 38px; }
  #music-panel { right: 4vw; left: 4vw; width: auto; bottom: 80px; }
  .modal-actions { position: sticky; bottom: 0; background: rgba(10,10,18,0.95); padding-top: 10px; }
  .danmaku-item { font-size: 12px !important; }
  .starmap-form input { width: 100% !important; }
}

/* ---- 深色模式探测：本站始终暗黑系 ---- */
@media (prefers-color-scheme: dark) {
  body { background: var(--bg); color: var(--text); }
}

/* ---- 减少动效偏好 ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.15s !important; }
}
