/* ============================================================
   秋辞社区 · iOS 27 Liquid Glass 全局动画体系
   ─────────────────────────────────────────────
   在既有液态玻璃之上叠加的「质感与动效」增强层。
   设计语言：苹果 Liquid Glass —— 玻璃折射、弹簧物理、
   分层景深、持续环境光。每一处交互都有专属节奏，
   不做千篇一律的模板动画。
   ============================================================ */

/* ---------- 动效令牌 ---------- */
:root {
  /* 弹簧族：不同韧性对应不同控件个性 */
  --lg-spring-snappy:  cubic-bezier(.2, .9, .28, 1.35);  /* 快速清脆：开关、标签、小按钮 */
  --lg-spring-soft:    cubic-bezier(.22, 1, .36, 1);     /* iOS 标准平滑：面板、弹窗 */
  --lg-spring-bounce:  cubic-bezier(.34, 1.56, .64, 1);  /* 强回弹：徽章、数字、星标 */
  --lg-spring-loose:   cubic-bezier(.16, 1, .3, 1);      /* 缓慢落地：卡片浮起 */
  --lg-ease:           cubic-bezier(.32, .72, 0, 1);

  /* 时长节奏 */
  --lg-t: .16s;   /* 即时反馈 */
  --lg-t2: .3s;   /* 常规过渡 */
  --lg-t3: .55s;  /* 结构性动画 */
  --lg-t4: .8s;   /* 慢速氛围 */

  /* Liquid Glass 材质参数 */
  --lg-blur: 30px;
  --lg-sat: 185%;
  --lg-sheen: rgba(255, 255, 255, .28);          /* 内凹高光 */
  --lg-edge: rgba(255, 255, 255, .35);            /* 玻璃边缘 */
  --lg-orb-a: rgba(10, 132, 255, .5);
  --lg-orb-b: rgba(94, 92, 230, .42);
  --lg-orb-c: rgba(255, 149, 0, .34);
}

[data-theme="dark"] {
  --lg-sheen: rgba(255, 255, 255, .08);
  --lg-edge: rgba(255, 255, 255, .12);
  --lg-orb-a: rgba(10, 132, 255, .30);
  --lg-orb-b: rgba(120, 90, 230, .26);
  --lg-orb-c: rgba(255, 170, 40, .18);
}

/* ============================================================
   1. 环境光斑 —— 后台的"空气"：三团缓慢呼吸的玻璃光
   ============================================================ */
.lg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  will-change: transform;
}
.lg-orb.orb-a { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, var(--lg-orb-a), transparent 70%); animation: orb-breathe 13s ease-in-out infinite; }
.lg-orb.orb-b { width: 360px; height: 360px; bottom: -140px; left: -100px; background: radial-gradient(circle, var(--lg-orb-b), transparent 70%); animation: orb-breathe 17s ease-in-out -6s infinite; }
.lg-orb.orb-c { width: 240px; height: 240px; top: 38%; left: 42%; background: radial-gradient(circle, var(--lg-orb-c), transparent 70%); animation: orb-breathe 11s ease-in-out -3s infinite; }
@keyframes orb-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(24px, -18px, 0) scale(1.14); }
}
/* 鼠标轻微视差：transform 由 motion.js 追加，与呼吸动画不冲突（动画在子层） */
.lg-orb > .orb-core {
  position: absolute; inset: 0; border-radius: inherit;
}

/* ============================================================
   2. 玻璃面通用质感：折射高光 + 内凹光
   ============================================================ */
.sidebar, .topbar, .card, .stat, .modal, .admin-menu, #toast, .mp-panel, .mp-toggle {
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.04);
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(1.04);
}

/* 按钮 / 图标的按下物理：统一"下压-回弹"，曲线由 motion.js 挂 .is-pressing */
.btn, .icon-btn, .hamburger, .theme-toggle, .qq-avatar, .mp-play-btn, .mp-cat, .tab, .ld-item, .tp-seg, .np-tab, .user-item, .switch .slider, .pager .btn, .welcome-btn {
  -webkit-tap-highlight-color: transparent;
}
.btn:not(:disabled).is-pressing,
.icon-btn.is-pressing,
.hamburger.is-pressing,
.theme-toggle.is-pressing,
.qq-avatar.is-pressing,
.mp-play-btn.is-pressing,
.pager .btn.is-pressing {
  transform: scale(.94) translateY(1px) !important;
  transition: transform .22s var(--lg-spring-bounce) !important;
  filter: brightness(.97);
}
.mp-cat.is-pressing, .tab.is-pressing, .ld-item.is-pressing, .tp-seg.is-pressing, .np-tab.is-pressing, .user-item.is-pressing {
  transform: scale(.96);
  transition: transform .2s var(--lg-spring-snappy);
}

/* ============================================================
   3. 按钮流光 —— hover 时一束高光从左扫过（每类按钮亮度不同）
   ============================================================ */
.btn:not(.ghost):not(:disabled)::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -65%;
  width: 46%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .42), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--lg-ease);
  pointer-events: none;
  opacity: 0;
}
.btn:not(.ghost):hover:not(:disabled)::before {
  left: 125%;
  opacity: 1;
  transition: left .55s var(--lg-ease), opacity .25s;
}
.btn.ghost:hover::before {
  left: 125%;
  opacity: .9;
  transition: left .55s var(--lg-ease), opacity .25s;
}
[data-theme="dark"] .btn:not(.ghost):not(:disabled)::before { background: linear-gradient(105deg, transparent, rgba(255,255,255,.20), transparent); }

/* ============================================================
   4. 品牌 Logo：柔和呼吸光晕 + hover 微悬浮
   ============================================================ */
.sidebar .brand .logo {
  position: relative;
  transition: transform .45s var(--lg-spring-bounce), box-shadow .45s var(--lg-ease);
}
.sidebar .brand .logo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity .5s var(--lg-ease);
  animation: logo-breathe 3.2s ease-in-out infinite;
}
.sidebar .brand .logo:hover { transform: translateY(-2px) rotate(-3deg) scale(1.06); }
.sidebar .brand .logo:hover::after { opacity: 1; }
@keyframes logo-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
/* 点击时轻轻一弹 */
.sidebar .brand .logo:active { transform: scale(.92) rotate(-6deg); transition: transform .18s var(--lg-spring-bounce); }

/* ============================================================
   5. 侧边栏导航：激活滑块弹性吸附 + hover 微倾斜
   ============================================================ */
.sidebar nav a {
  transition: transform .3s var(--lg-spring-loose), background .3s var(--lg-ease), color .3s var(--lg-ease), box-shadow .3s var(--lg-ease);
}
.sidebar nav a:hover { transform: translateX(4px); }
.sidebar nav a.active {
  transform: translateX(0);
  box-shadow: inset 0 0 0 1px var(--accent-soft), 0 6px 18px -8px var(--accent-soft);
}
.sidebar nav a.active::before {
  animation: nav-dot-in .4s var(--lg-spring-bounce) both;
}
@keyframes nav-dot-in {
  from { transform: translateY(-50%) scaleY(.2); opacity: 0; }
  to   { transform: translateY(-50%) scaleY(1); opacity: 1; }
}
.sidebar nav a .ico {
  transition: transform .35s var(--lg-spring-bounce);
}
.sidebar nav a:hover .ico { transform: scale(1.12) rotate(-5deg); }
.sidebar nav a.active .ico { transform: scale(1.05); }

/* ============================================================
   6. 顶部工具栏：每个图标一个性格
   ============================================================ */
/* 语言：hover 轻摆 */
#langBtn:hover svg { animation: lang-wiggle .5s var(--lg-spring-bounce); }
@keyframes lang-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-10deg); } 60% { transform: rotate(7deg); } }
/* 通知：点击摇铃（motion.js 挂 .ring-shake） */
#notifyBtn svg { transform-origin: 50% 0%; }
#notifyBtn.ring-shake svg { animation: bell-ring .6s var(--lg-spring-bounce); }
@keyframes bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-14deg); }
  60% { transform: rotate(9deg); }
  80% { transform: rotate(-5deg); }
}
/* 主题按钮：hover 慢旋转露出另一面 */
#themeToggle:hover svg { animation: theme-spin-soft 1.2s var(--lg-ease); }
@keyframes theme-spin-soft { from { transform: rotate(0) scale(1); } to { transform: rotate(360deg) scale(1.08); } }
/* 外观定制：hover 小陀螺 */
#themePanelBtn:hover svg { animation: knob-turn .8s var(--lg-spring-snappy); }
@keyframes knob-turn { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-30deg); } 70% { transform: rotate(12deg); } }

/* 管理员用户卡片：hover 时头像探出光晕 */
.admin-user { transition: transform .35s var(--lg-spring-bounce), box-shadow .35s var(--lg-ease), border-color .35s var(--lg-ease); }
.admin-user:hover .admin-avatar { transform: scale(1.08); }
.admin-user .admin-avatar { transition: transform .35s var(--lg-spring-bounce); }
.admin-user .admin-caret { transition: transform .3s var(--lg-spring-snappy); }
.admin-user:hover .admin-caret { transform: translateY(2px); }

/* ============================================================
   7. 统计卡：hover 浮起 + 玻璃折射 + 数值光晕
   ============================================================ */
.stat {
  transition: transform .4s var(--lg-spring-loose), border-color .4s var(--lg-ease), box-shadow .4s var(--lg-ease);
  will-change: transform;
}
.stat:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 22px 44px -18px rgba(31, 38, 75, .28), var(--shadow-soft);
}
/* 鼠标跟随的折射光斑：位置由 motion.js 的 --mx/--my 提供 */
.stat .stat-sheen {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 40%),
    rgba(255, 255, 255, .34), transparent 65%);
  opacity: 0;
  transition: opacity .4s var(--lg-ease);
}
[data-theme="dark"] .stat .stat-sheen { background: radial-gradient(180px circle at var(--mx, 50%) var(--my, 40%), rgba(255,255,255,.10), transparent 65%); }
.stat:hover .stat-sheen { opacity: 1; }
.stat .value {
  transition: color .3s var(--lg-ease), transform .3s var(--lg-spring-snappy);
  display: inline-block;
}
.stat:hover .value { transform: translateY(-1px); }

/* 统计卡图标的专属微动：第1/2个卡片图标 hover 旋转，其余浮起（个性差异） */
.stat .stat-icon { transition: transform .4s var(--lg-spring-bounce); }
.stat:nth-child(1):hover .stat-icon { transform: scale(1.14) rotate(-8deg); }
.stat:nth-child(2):hover .stat-icon { transform: scale(1.14) rotate(8deg); }
.stat:nth-child(n+3):hover .stat-icon { transform: translateY(-3px) scale(1.1); }

/* ============================================================
   8. 通用卡片：hover 浮起 + 顶部玻璃高光呼吸
   ============================================================ */
.card {
  transition: transform .45s var(--lg-spring-loose), box-shadow .45s var(--lg-ease), border-color .45s var(--lg-ease), background .45s var(--lg-ease);
  will-change: transform;
}
.card:hover { transform: translateY(-3px); }
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 42%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), transparent);
  opacity: 0;
  transition: opacity .5s var(--lg-ease);
  pointer-events: none;
}
[data-theme="dark"] .card::after { background: linear-gradient(180deg, rgba(255,255,255,.04), transparent); }
.card:hover::after { opacity: 1; }

/* ============================================================
   9. 弹窗：从锚点生长的弹簧 + 背景玻璃呼吸
   ============================================================ */
.modal-mask {
  background: rgba(12, 14, 24, .34);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  animation: mask-in .3s var(--lg-ease) both;
}
[data-theme="dark"] .modal-mask { background: rgba(0, 0, 0, .5); }
.modal {
  animation: modal-lg-in .42s var(--lg-spring-bounce) both;
}
@keyframes modal-lg-in {
  0%   { opacity: 0; transform: scale(.9) translateY(26px); }
  60%  { opacity: 1; transform: scale(1.012) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.modal .m-close { transition: transform .3s var(--lg-spring-bounce), background .3s var(--lg-ease), color .3s var(--lg-ease); }
.modal .m-close:hover { transform: rotate(90deg) scale(1.12); }

/* ============================================================
   10. Toast：顶部弹簧落位 + 图标弹入
   ============================================================ */
#toast {
  transition: opacity .35s var(--lg-ease), transform .5s var(--lg-spring-bounce);
}
#toast.is-show::before { animation: toast-ico .5s var(--lg-spring-bounce); }
@keyframes toast-ico { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ============================================================
   11. 下拉面板（管理员菜单/语言/通知/外观）：源点生长
   ============================================================ */
.admin-menu, .lang-dropdown, .notify-panel, .theme-panel {
  transform-origin: top right;
  animation: pop-source .36s var(--lg-spring-bounce) both;
}
@keyframes pop-source {
  from { opacity: 0; transform: scale(.9) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.admin-menu .am-item, .ld-item, .np-item {
  transition: transform .25s var(--lg-spring-snappy), background .25s var(--lg-ease);
}
.admin-menu .am-item:hover, .ld-item:hover, .np-item:hover { transform: translateX(3px); }

/* ============================================================
   12. 开关：滑块弹性拨动 + 光晕
   ============================================================ */
.switch .slider { transition: background .35s var(--lg-ease), box-shadow .35s var(--lg-ease); }
.switch .slider::before { transition: transform .38s var(--lg-spring-bounce), background .35s var(--lg-ease), box-shadow .35s var(--lg-ease); }
.switch input:checked + .slider { box-shadow: 0 0 18px -2px var(--accent-soft); }
.switch input:checked + .slider::before { box-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 8px var(--accent-soft); }

/* ============================================================
   13. 表格行：hover 微滑动 + 头像回弹
   ============================================================ */
.table tbody tr {
  transition: background .25s var(--lg-ease), transform .3s var(--lg-spring-snappy);
}
.table tbody tr:hover { transform: translateX(2px); }
.table tbody tr:hover .avatar-sm { transform: scale(1.14) rotate(-6deg); }
.table tbody tr:hover .thumb { transform: scale(1.1) rotate(1deg); }

/* ============================================================
   14. 标签页：激活项弹性放大
   ============================================================ */
.tab {
  transition: transform .3s var(--lg-spring-snappy), background .3s var(--lg-ease), color .3s var(--lg-ease);
}
.tab:hover { transform: translateY(-1px); }
.tab.active { transform: scale(1.03); }

/* ============================================================
   15. 趋势图柱：hover 弹性生长（保留原生 3D 视角）
   ============================================================ */
.bar-item, .trend-bar, [class*="bar"] {
  transition: transform .35s var(--lg-spring-bounce), filter .35s var(--lg-ease);
  transform-origin: bottom;
}
.bar-item:hover, .trend-bar:hover { transform: scaleY(1.08); filter: brightness(1.1); }

/* ============================================================
   16. 页面转场：内容切换的"呼吸"
   ============================================================ */
@keyframes content-lg-in {
  0%   { opacity: 0; transform: translateY(20px) scale(.988); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.content.content-in { animation: content-lg-in .5s var(--lg-ease) both; }

/* 转场闪光（motion.js 在渲染时注入） */
.lg-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(60% 45% at 50% 38%, rgba(255,255,255,.22), transparent 70%);
  pointer-events: none;
  z-index: 150;
  opacity: 0;
  animation: flash-fade .5s var(--lg-ease);
}
@keyframes flash-fade { 0% { opacity: 1; } 100% { opacity: 0; } }
[data-theme="dark"] .lg-flash { background: radial-gradient(60% 45% at 50% 38%, rgba(255,255,255,.06), transparent 70%); }

/* ============================================================
   17. 音乐播放器：面板弹簧展开 + 频谱 + 唱片
   ============================================================ */
.mp-toggle, .mp-panel {
  transition: width .42s var(--lg-spring-bounce), opacity .3s var(--lg-ease), padding .3s var(--lg-ease), border-color .3s var(--lg-ease);
}
.mp-panel.hide { width: 0 !important; }
.mp-toggle:hover { transform: scale(1.04) translateX(1px); }

/* 播放中的频谱条（music.js 给 wrapper 挂 .is-playing） */
.mp-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 8px;
  margin-top: 4px;
  flex-shrink: 0;
}
.mp-eq i {
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
  height: 3px;
  transition: height .25s var(--lg-ease);
  opacity: .5;
}
.mp-wrapper.is-playing .mp-eq i { animation: eq-bounce 1s ease-in-out infinite; }
.mp-wrapper.is-playing .mp-eq i:nth-child(1) { animation-delay: 0s; }
.mp-wrapper.is-playing .mp-eq i:nth-child(2) { animation-delay: .12s; }
.mp-wrapper.is-playing .mp-eq i:nth-child(3) { animation-delay: .24s; }
.mp-wrapper.is-playing .mp-eq i:nth-child(4) { animation-delay: .36s; }
.mp-wrapper.is-playing .mp-eq i:nth-child(5) { animation-delay: .48s; }
@keyframes eq-bounce {
  0%, 100% { height: 3px; opacity: .4; }
  40% { height: 8px; opacity: 1; }
}
/* 播放中按钮的呼吸光晕 */
.mp-wrapper.is-playing .mp-play-btn {
  animation: play-glow 1.6s ease-in-out infinite;
}
@keyframes play-glow {
  0%, 100% { box-shadow: 0 2px 12px var(--accent-soft), 0 0 0 0 var(--accent-soft); }
  50% { box-shadow: 0 2px 16px var(--accent-soft), 0 0 0 6px rgba(10,132,255,.08); }
}
/* 歌曲列表项：hover 浮起，激活项发光 */
.mp-item {
  transition: transform .28s var(--lg-spring-snappy), background .28s var(--lg-ease), box-shadow .28s var(--lg-ease);
}
.mp-item:hover { transform: translateX(3px); box-shadow: 0 4px 12px -4px var(--accent-soft); }
.mp-item.active { box-shadow: inset 0 0 0 1px var(--accent-soft), 0 4px 14px -6px var(--accent-soft); }
.mp-cat { transition: transform .25s var(--lg-spring-snappy), background .25s var(--lg-ease), color .25s var(--lg-ease); }
.mp-cat:hover { transform: translateY(-1px); }
.mp-cat.active { transform: scale(1.04); }

/* ============================================================
   18. 登录页：光斑视差 + 卡片微悬浮
   ============================================================ */
.stage .lg-login-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: .55;
  will-change: transform;
}
.lg-login-orb.o1 { width: 340px; height: 340px; top: -100px; left: -80px; background: radial-gradient(circle, rgba(0,122,255,.6), transparent 68%); animation: orb-breathe 14s ease-in-out infinite; }
.lg-login-orb.o2 { width: 300px; height: 300px; bottom: -110px; right: -60px; background: radial-gradient(circle, rgba(52,199,89,.5), transparent 68%); animation: orb-breathe 18s ease-in-out -5s infinite; }
.lg-login-orb.o3 { width: 200px; height: 200px; top: 34%; right: 6%; background: radial-gradient(circle, rgba(255,149,0,.38), transparent 68%); animation: orb-breathe 12s ease-in-out -2s infinite; }
[data-theme="dark"] .lg-login-orb { opacity: .3; }

/* 登录卡 hover：极轻微上浮（保持克制） */
.stage .card { transition: transform .5s var(--lg-spring-loose), box-shadow .5s var(--lg-ease); }
.stage .card:hover { transform: translateY(-4px); }

/* 主按钮：流光扫过 + 按压缩放 */
.stage .btn-primary {
  position: relative;
  overflow: hidden;
}
.stage .btn-primary::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  transition: left .6s var(--lg-ease), opacity .2s;
  pointer-events: none;
}
.stage .btn-primary:hover:not(:disabled)::after {
  left: 130%;
  opacity: 1;
}
.stage .btn-primary:active:not(:disabled) { transform: scale(.96); transition: transform .2s var(--lg-spring-bounce); }

/* 输入框聚焦：底部光弧 */
.stage .field:focus-within { position: relative; }
.stage .field:focus-within::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  animation: field-arc .6s var(--lg-ease);
}
@keyframes field-arc { from { transform: scaleX(.2); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* 成功徽章：打勾后轻轻一弹 */
.view-success.is-show .success-mark { animation: success-pop .6s var(--lg-spring-bounce); }
@keyframes success-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ============================================================
   19. 趣味彩蛋：双击品牌名会"亮一下"
   ============================================================ */
.sidebar .brand .name { cursor: default; }
.sidebar .brand .name.lg-gleam {
  animation: gleam-pulse 1.1s var(--lg-ease);
}
@keyframes gleam-pulse {
  0%   { text-shadow: 0 0 0 transparent; }
  40%  { text-shadow: 0 0 18px var(--accent); color: var(--accent); }
  100% { text-shadow: 0 0 0 transparent; }
}

/* 欢迎卡片问候语：换行时轻弹 */
.welcome-card h2 { transition: transform .4s var(--lg-spring-bounce); }
.welcome-card:hover h2 { transform: translateY(-2px); }

/* 独立音乐页：歌单卡片专属（浮起 + 编号圆环呼吸 + hover 播放角标） */
.music-card {
  position: relative;
  transition: transform .4s var(--lg-spring-loose), box-shadow .4s var(--lg-ease), border-color .4s var(--lg-ease);
}
.music-card:hover { transform: translateY(-5px); }
.music-card-num {
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--lg-spring-bounce), background .3s var(--lg-ease), color .3s var(--lg-ease);
}
.music-card:hover .music-card-num { transform: scale(1.1) rotate(-8deg); background: var(--accent); color: #fff; }
.music-card::after {
  content: "▶";
  position: absolute;
  right: 14px; top: 50%;
  width: 30px; height: 30px;
  margin-top: -15px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: scale(.4) rotate(-30deg);
  transition: opacity .3s var(--lg-ease), transform .45s var(--lg-spring-bounce);
  box-shadow: 0 6px 18px -4px var(--accent-soft);
}
.music-card:hover::after { opacity: 1; transform: scale(1) rotate(0); }
/* 音乐卡入场错峰 */
.music-card { animation: music-card-in .55s var(--lg-spring-soft) both; }
.music-card:nth-child(3n+1) { animation-delay: .02s; }
.music-card:nth-child(3n+2) { animation-delay: .08s; }
.music-card:nth-child(3n+3) { animation-delay: .14s; }
@keyframes music-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============================================================
   21. 彩蛋与微细节
   ============================================================ */

/* 主题切换涟漪：从按钮位置扩散的圆环脉冲 */
.lg-theme-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 180;
  background: radial-gradient(circle, rgba(255,255,255,.34), rgba(255,255,255,.05) 55%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand .62s var(--lg-ease) forwards;
}
[data-theme="dark"] .lg-theme-ripple { background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,.03) 55%, transparent 70%); }
@keyframes ripple-expand {
  to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* 统计卡数字：点击重滚时的微光 */
.stat .value.lg-roll-glow { animation: roll-glow .8s var(--lg-ease); }
@keyframes roll-glow {
  0% { text-shadow: 0 0 0 transparent; }
  30% { text-shadow: 0 0 16px var(--accent), 0 0 30px var(--accent-soft); }
  100% { text-shadow: 0 0 0 transparent; }
}

/* 播放器进度条拖动：thumb 放大 */
.mp-progress-bar:active .mp-progress-thumb,
.mp-wrapper.is-dragging .mp-progress-thumb {
  transform: translate(-50%, -50%) scale(1.45);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 2px 8px var(--accent-soft);
  transition: transform .2s var(--lg-spring-snappy), box-shadow .2s var(--lg-ease);
}

/* 弹窗表单行：hover 轻亮 */
.modal .form-item {
  transition: background .3s var(--lg-ease), border-radius .3s var(--lg-ease);
}
.modal .form-item:hover { background: var(--fill); border-radius: 10px; }
.modal .form-item input:focus, .modal .form-item textarea:focus, .modal .form-item select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* 空状态图标：点击摇摆（tada） */
.empty .ico-empty.lg-tada { animation: ico-tada .9s var(--lg-ease); }
@keyframes ico-tada {
  0%, 100% { transform: scale(1) rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: scale(1.12) rotate(-4deg); }
  20%, 40%, 60%, 80% { transform: scale(1.12) rotate(4deg); }
}

/* 双击光晕：点过的地方留下一圈呼吸光 */
.lg-dbl-glow {
  position: fixed;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 170;
  border: 2px solid rgba(255, 214, 120, .8);
  box-shadow: 0 0 24px rgba(255, 190, 60, .5), inset 0 0 18px rgba(255, 214, 120, .4);
  animation: dbl-pulse .7s var(--lg-ease) forwards;
}
@keyframes dbl-pulse {
  0% { transform: scale(.3); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 派对粒子（Konami 码 / 彩纸） */
.lg-party-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483000;
}
.lg-pixel {
  position: absolute;
  pointer-events: none;
  will-change: transform, opacity;
  border-radius: 2px;
}
.lg-pixel.circle { border-radius: 50%; }
.lg-pixel.heart { border-radius: 50% 50% 50% 0; transform: rotate(45deg); }

/* 登录页徽章连击：圆环爆发 */
.lg-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--blue);
  pointer-events: none;
  animation: ring-burst .8s var(--lg-ease) forwards;
}
@keyframes ring-burst {
  0% { transform: scale(.2); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* 侧边栏版本号：hover 浮起 + 金点 */
.sidebar .foot {
  position: relative;
  transition: color .3s var(--lg-ease);
  cursor: default;
}
.sidebar .foot:hover { color: var(--gold-3); }
.sidebar .foot::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%) scale(0) rotate(90deg);
  background: var(--gold-2);
  -webkit-mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%202l2.3%206.9L21%2011l-6.7%202.1L12%2020l-2.3-6.9L3%2011l6.7-2.1L12%202z'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%3E%3Cpath%20d%3D'M12%202l2.3%206.9L21%2011l-6.7%202.1L12%2020l-2.3-6.9L3%2011l6.7-2.1L12%202z'%20fill%3D'black'%2F%3E%3C%2Fsvg%3E') center / contain no-repeat;
  transition: transform .4s var(--lg-spring-bounce), opacity .3s;
  opacity: 0;
}
.sidebar .foot:hover::after { transform: translateY(-50%) scale(1) rotate(0); opacity: 1; }

/* 欢迎卡问候：hover 时文案渐变微闪 */
.welcome-card h2 {
  background-image: linear-gradient(120deg, var(--text) 30%, var(--accent) 50%, var(--text) 70%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: background-position .8s var(--lg-ease);
}
.welcome-card:hover h2 { background-position: 100% 0; }

/* 通知面板空态：小铃铛呼吸 */
.notify-panel .np-empty .ico { animation: bell-breathe 2.4s ease-in-out infinite; }
@keyframes bell-breathe { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(6deg) scale(1.08); } }

/* ============================================================
   22. 减弱动效偏好：尊重系统设置
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lg-orb, .lg-login-orb { display: none; }
  .btn::before, .stage .btn-primary::after { display: none; }
}
[data-motion="off"] .lg-orb, [data-motion="off"] .lg-login-orb { display: none; }
[data-motion="off"] .btn::before, [data-motion="off"] .stage .btn-primary::after { display: none; }

/* toast 内 SVG 图标（替代 emoji 字符） */
#toast .t-svg, .toast .t-svg {
  width: 1.05em; height: 1.05em;
  vertical-align: -0.14em;
  margin-right: 3px;
}
