/* ============================================
   初音未来的小站 - 初音未来主题
   主色: 初音青 #39C5BB  辅助: 灰色系 / 青绿 #7FD8C4
   ============================================ */
/* 主题里"藏在渐变里的颜色"注册成可插值类型：
   没有注册时 CSS 渐变不可动画，切主题会在过渡中点瞬跳；注册后颜色平滑渐变。
   不支持 @property 的浏览器自动回退为原来的瞬跳（渐进增强） */
@property --tint-a { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.15); }
@property --tint-b { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.05); }
@property --pg-a { syntax: '<color>'; inherits: true; initial-value: #ddf6f2; }
@property --pg-b { syntax: '<color>'; inherits: true; initial-value: #eff7f6; }
@property --pg-c { syntax: '<color>'; inherits: true; initial-value: #dff2ee; }
@property --ab-a { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.96); }
@property --ab-b { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0.82); }

:root {
  --tianyi-blue: #39c5bb;
  --tianyi-blue-deep: #1f9e95;
  --grey-dark: #3d4a5c;
  --grey-mid: #718096;
  --grey-light: #e8edf4;
  --teal: #7fd8c4;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.7);
  --shadow: 0 14px 44px rgba(35, 115, 108, 0.16);
  --shadow-hover: 0 24px 64px rgba(35, 115, 108, 0.26);
  --radius: 20px;
  /* 主题可变的表面色（夜间模式会整体替换）；渐变一律由上面的注册色拼出，切主题才能平滑渐变 */
  --pg-a: #ddf6f2; --pg-b: #eff7f6; --pg-c: #dff2ee;
  --ab-a: rgba(255, 255, 255, 0.96); --ab-b: rgba(255, 255, 255, 0.82);
  --tint-a: rgba(255, 255, 255, 0.15); --tint-b: rgba(255, 255, 255, 0.05);
  --page-bg: linear-gradient(135deg, var(--pg-a) 0%, var(--pg-b) 50%, var(--pg-c) 100%);
  --sidebar-bg: rgba(255, 255, 255, 0.72);
  --inset-hi: rgba(255, 255, 255, 0.7);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: rgba(255, 255, 255, 0.95);
  --input-bg: rgba(255, 255, 255, 0.9);
  --active-bg: linear-gradient(90deg, var(--ab-a), var(--ab-b));
  --bg-tint: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  --bubble-line: rgba(255, 255, 255, 0.8);
  --code-bg: rgba(74, 85, 104, 0.92);
  --scrim: rgba(60, 80, 100, 0.35);
  /* 注册色变化发生在 html 上，过渡也声明在这里 */
  transition: --tint-a 0.45s ease, --tint-b 0.45s ease,
    --pg-a 0.45s ease, --pg-b 0.45s ease, --pg-c 0.45s ease,
    --ab-a 0.45s ease, --ab-b 0.45s ease;
}

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

/* 主题切换丝滑兜底：卡内文字色、零散底色/边框色统一跟手过渡。
   故意放在文件最前——后面元素自带的 transition 规则（同/更高优先级）会正常覆盖它，
   hover 等交互动画不受影响 */
body * { transition: color 0.45s ease, background-color 0.45s ease, border-color 0.45s ease; }

html, body { height: 100%; }
/* 滚动条始终占位：内容长短变化（加载完成 / 切页）时视口宽度保持不变，
   固定定位的背景图不会再位移一下 */
html { scrollbar-gutter: stable; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--grey-dark);
  background: var(--page-bg);
  overflow-x: hidden;
  transition: background 0.45s ease, color 0.45s ease;
}

/* ---------- 首屏启动屏（结构见 index.html 内联关键样式） ---------- */
.bl-avatar-wrap { position: relative; margin-bottom: 30px; }
.bl-halo {
  position: absolute; inset: -12px; border-radius: 50%;
  background: rgba(57, 197, 187, 0.4);
  filter: blur(18px);
  animation: bl-pulse 2s ease-in-out infinite;
}
.bl-avatar {
  position: relative; width: 96px; height: 96px; border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 25px rgba(57, 197, 187, 0.7), 0 8px 24px rgba(35, 115, 108, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; background: var(--glass-strong); overflow: hidden;
  animation: bl-bounce 2s ease-in-out infinite;
}
.bl-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 4px solid rgba(57, 197, 187, 0.25);
  border-top-color: var(--tianyi-blue);
  animation: bl-spin 0.9s linear infinite;
  margin-bottom: 26px;
}
.bl-title {
  font-size: 20px; font-weight: 700; letter-spacing: 4px;
  color: var(--tianyi-blue-deep);
  animation: bl-text-pulse 2s ease-in-out infinite;
}
.bl-track {
  width: 260px; max-width: 62vw; height: 4px; border-radius: 999px; overflow: hidden;
  background: rgba(57, 197, 187, 0.22); margin-top: 16px;
}
.bl-bar {
  width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--tianyi-blue-deep), var(--teal));
  animation: bl-load 2s ease-out forwards;
}
.bl-sub { margin-top: 14px; font-size: 13px; letter-spacing: 1px; color: var(--grey-mid); }
@keyframes bl-load { 0% { width: 0; } 100% { width: 100%; } }
@keyframes bl-spin { to { transform: rotate(360deg); } }
@keyframes bl-pulse { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.95; transform: scale(1.08); } }
@keyframes bl-bounce { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(0); } }
@keyframes bl-text-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .bl-avatar, .bl-halo, .bl-spinner, .bl-title { animation: none; }
}
/* 收起启动屏时揭示首屏内容（只做透明度：任何位移都会改变可滚动高度，
   导致滚动条出现/消失，画面（固定背景图）跟着抖一下） */
html[data-booting].boot-in #sidebar,
html[data-booting].boot-in #main,
html[data-booting].boot-in #mobile-bar {
  opacity: 1;
  transition: opacity 0.9s ease;
}
@media (prefers-reduced-motion: reduce) {
  html[data-booting] #sidebar, html[data-booting] #main, html[data-booting] #mobile-bar {
    transform: none; transition: none;
  }
}

/* ---------- 背景 ---------- */
#bg-layer {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
}
/* 图片壁纸层：取景（fit / 焦点 / 缩放）由 JS 写入行内样式，桌面端与手机端各自一套 */
#bg-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transition: background-image 0.6s ease, transform 0.35s ease;
}
#bg-layer::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: var(--bg-tint);
  transition: background 0.45s ease;
}
/* 视频壁纸：两块槽轮换，取景由 JS 绘制（canvas 镜像按 fit/焦点/缩放逐帧画）。
   真实 video（.bg-vid-src）藏成 2px 隐形槽只负责解码 —— 小米等国产浏览器会把
   「大而可见的视频」劫持成原生全屏播放器，藏起来它们就无从接管；
   画面由 .bg-vid-cv 镜像呈现，未激活的槽保持 opacity:0，换主题时两块淡入淡出交叉过渡 */
.bg-vid-src {
  position: absolute; left: 0; top: 0;
  width: 2px; height: 2px;
  opacity: 0.01;
  pointer-events: none;
}
.bg-vid-cv {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.bg-vid-cv.is-active { opacity: 1; z-index: 2; }

/* ---------- 壁纸取景控件（站点设置里：日间 / 夜间各一组，组内电脑端 / 手机端各一块） ---------- */
.bgcrop-modes { display: flex; flex-direction: column; gap: 14px; }
.bgcrop-mode {
  padding: 12px; border-radius: 16px;
  border: 1px solid var(--glass-border);
  background: rgba(57, 197, 187, 0.07);
}
.bgcrop-mode-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: 700; margin-bottom: 10px;
}
.bgcrop-mode-head span { font-size: 11.5px; font-weight: 400; opacity: 0.7; }
.bgcrop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bgcrop-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--glass-border);
}
.bgcrop-head { font-size: 13px; font-weight: 600; opacity: 0.85; }
/* 预览框：与真实背景层用同一套 CSS 计算，尺寸比例按设备形态给 */
.bgcrop-frame {
  position: relative; overflow: hidden; border-radius: 10px;
  border: 1px dashed rgba(57, 197, 187, 0.55);
  background: rgba(127, 127, 127, 0.14);
  cursor: grab; touch-action: none; user-select: none;
}
.bgcrop-frame.dragging { cursor: grabbing; }
.bgcrop-frame-wide { width: 100%; aspect-ratio: 16 / 9; }
.bgcrop-frame-tall { width: 108px; max-width: 45%; aspect-ratio: 9 / 16; margin: 0 auto; }
.bgcrop-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: 50% 50%; background-repeat: no-repeat;
}
/* 预览用的视频层绝不接收指针事件：否则触摸端在视频上拖不动取景框 */
.bgcrop-img video { pointer-events: none; }
/* 拖动时叠一层九宫辅助线，让"焦点移动了多少"看得见（图片/视频预览通用） */
.bgcrop-frame.dragging::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 33.334% 33.334%;
  box-shadow: inset 0 0 0 1px rgba(57, 197, 187, 0.75);
}
.bgcrop-hint {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  padding: 2px 8px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  font-size: 10px; color: #fff; background: rgba(0, 0, 0, 0.45);
}
.bgcrop-ctl { display: flex; flex-direction: column; gap: 8px; }
.bgc-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bgc-label { flex: 0 0 62px; opacity: 0.75; }
.bgc-label b { font-weight: 600; color: var(--tianyi-blue-deep); }
.bgc-row select {
  flex: 1; min-width: 0; padding: 6px 8px; font-size: 12px; color: inherit;
  border-radius: 8px; border: 1px solid rgba(57, 197, 187, 0.35); background: var(--input-bg);
}
.bgc-pad { display: grid; grid-template-columns: repeat(3, 20px); gap: 3px; }
.bgc-cell {
  width: 20px; height: 20px; padding: 0; border-radius: 5px; cursor: pointer;
  border: 1px solid rgba(57, 197, 187, 0.45);
  background: var(--input-bg); opacity: 0.75; transition: opacity 0.2s ease, background 0.2s ease;
}
.bgc-cell:hover { opacity: 1; }
.bgc-cell.active { opacity: 1; background: var(--tianyi-blue); border-color: var(--tianyi-blue-deep); }
.bgc-row input[type="range"] { flex: 1; min-width: 0; accent-color: #39c5bb; }
@media (max-width: 640px) {
  .bgcrop-grid { grid-template-columns: 1fr; }
}

/* ---------- 半透明卡片 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 var(--inset-hi);
  transition: background 0.45s ease, box-shadow 0.25s ease, border-color 0.45s ease;
}

/* ---------- 左侧菜单栏 ---------- */
#sidebar {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 300px; z-index: 100;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 22px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--glass-border);
  transition: background 0.45s ease, border-color 0.45s ease;
  overflow: hidden; /* 内容超出时由菜单区内部滚动，不压扁其他区块 */
}
.side-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tianyi-blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(57, 197, 187, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.8);
}
.side-title { font-size: 19px; margin-top: 12px; text-align: center; color: var(--grey-dark); flex-shrink: 0; }
.side-sub { font-size: 12.5px; color: var(--grey-mid); margin-top: 5px; text-align: center; flex-shrink: 0; }

/* 菜单区：占满剩余空间，内容过多时出现滚轮 */
.side-nav {
  display: flex; flex-direction: column; gap: 5px; margin-top: 14px; width: 100%;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 2px 6px 2px 2px; margin-right: -6px; /* 给滚动条留位，避免内容跳动 */
  scrollbar-width: thin; scrollbar-color: rgba(57, 197, 187, 0.4) transparent;
}
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb { background: rgba(57, 197, 187, 0.35); border-radius: 4px; }
.side-nav::-webkit-scrollbar-thumb:hover { background: rgba(57, 197, 187, 0.6); }
.side-nav a, .side-links a, #admin-entry {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 12px;
  color: var(--grey-mid); text-decoration: none; font-size: 15px;
  transition: all 0.25s ease; cursor: pointer; flex-shrink: 0;
}
.side-nav a:hover, .side-links a:hover, #admin-entry:hover {
  background: rgba(57, 197, 187, 0.18); color: var(--tianyi-blue-deep);
  transform: translateX(4px);
}
.side-nav a.active {
  background: var(--active-bg);
  color: var(--tianyi-blue-deep); font-weight: 600;
  box-shadow: 0 4px 18px rgba(57, 197, 187, 0.3), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* 自定义图标（上传图片替换 emoji） */
.nav-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; font-size: 18px; flex-shrink: 0; }
.nav-ico img { width: 26px; height: 26px; object-fit: contain; border-radius: 5px; display: block; }
.side-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.side-links { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; width: 100%; flex-shrink: 0; }
.side-footer { width: 100%; margin-top: 8px; text-align: center; flex-shrink: 0; }
.side-footer #admin-entry { justify-content: center; font-size: 14.5px; }
.side-domain { font-size: 12px; color: var(--grey-mid); opacity: 0.75; margin-top: 5px; }
/* 备案信息：只在「隐私政策」页底部出现（不再全站页脚 / 侧栏常驻）
   合规要求：ICP 号链接工信部备案系统，公安备案号链接公安部备案查询 */
.policy-beian {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px dashed rgba(120, 150, 185, 0.28);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 8px; font-size: 12px; color: var(--grey-mid); line-height: 1.9;
}
.policy-beian a { color: inherit; text-decoration: none; opacity: 0.8; }
.policy-beian a:hover { opacity: 1; color: var(--tianyi-blue-deep); }
.policy-beian .beian-sep { opacity: 0.5; }
a.beian-gongan { display: inline-flex; align-items: center; gap: 4px; }
a.beian-gongan img { width: 14px; height: 14px; flex-shrink: 0; }

/* 侧栏数据公示 + 用户状态 */
.side-stats { width: 100%; padding: 10px 14px; margin-top: 16px; border-radius: 12px; flex-shrink: 0; }
.stat-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--grey-mid); padding: 2px 0; }
.stat-row b { color: var(--tianyi-blue-deep); font-weight: 600; }
.user-chip {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 12px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: rgba(57,197,187,0.15); font-size: 13px; color: var(--grey-dark);
}
.user-chip:hover { background: rgba(57,197,187,0.28); }
.uc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--tianyi-blue); }

/* ---------- 主内容 ---------- */
#main {
  margin-left: 300px;
  min-height: 100vh;
  padding: 32px 48px 120px;
}
/* 内容在剩余空间内居中，宽屏不再挤在一边 */
#main { position: relative; }
#view { max-width: 880px; margin: 0 auto; }
#mobile-bar { display: none; }

/* ---------- 切页入场：文字与内容块从下方一块一块飘上来 ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.985); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
#view > .rise {
  /* backwards：错峰延迟期间先保持「在下方 + 透明」，播完自动把 transform 交还给正常样式，
     这样 hover 的漂浮/磁吸不会被动画锁死 */
  animation: riseIn 0.56s cubic-bezier(0.22, 0.9, 0.3, 1) backwards;
  animation-delay: var(--rise-d, 0ms);
}

/* ---------- 悬停微漂浮 + 磁吸（位移由 JS 逐帧驱动，这里只管高亮与光晕） ---------- */
.hf-on {
  will-change: transform;
  box-shadow: var(--shadow-hover);
  border-color: rgba(57, 197, 187, 0.5);
}
/* 启用逐帧漂浮后，位移交给 JS 接管，避免 CSS hover 的瞬时跳动抢戏 */
html.has-hover-float .post-card:hover,
html.has-hover-float .quick-grid a:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  #view > .rise { animation: none; }
}

/* ---------- 首页 Hero ---------- */
.hero { padding: 52px 44px; text-align: center; margin-bottom: 28px; }
.hero h2 { font-size: 30px; color: var(--grey-dark); letter-spacing: 1px; }
.hero h2 .blue {
  background: linear-gradient(92deg, #1f9e95 0%, #39c5bb 45%, #7fd8c4 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero p { margin-top: 12px; color: var(--grey-mid); font-size: 15px; }
.hero .notice {
  margin-top: 18px; display: inline-block; padding: 8px 18px; border-radius: 999px;
  background: rgba(57, 197, 187, 0.2); color: var(--tianyi-blue-deep); font-size: 13px;
}
/* 公告配置了跳转文章时渲染为链接：呼吸提示可点 + 悬停发亮 */
a.notice-link {
  text-decoration: none; cursor: pointer;
  animation: notice-breathe 2.2s ease-in-out infinite;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
a.notice-link:hover { background: rgba(57, 197, 187, 0.35); box-shadow: 0 0 14px rgba(57, 197, 187, 0.45); animation: none; }
.notice-go { font-weight: 700; margin-left: 2px; }
@keyframes notice-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57, 197, 187, 0); }
  50% { box-shadow: 0 0 0 5px rgba(57, 197, 187, 0.25); }
}
@media (prefers-reduced-motion: reduce) {
  a.notice-link { animation: none; }
}
.hero-stats { margin-top: 18px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hstat {
  padding: 7px 16px; border-radius: 999px; font-size: 13px;
  background: var(--surface); color: var(--grey-mid);
  border: 1px solid rgba(57, 197, 187, 0.25);
}
.hstat b { color: var(--tianyi-blue-deep); }

/* ---------- 首页弹幕墙 ---------- */
.dm-mod { padding: 26px 30px 22px; margin-bottom: 28px; }
.dm-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.dm-head h2 { font-size: 20px; color: var(--grey-dark); }
/* 弹幕显示位置切换按钮（弹幕墙 / 背景板） */
.dm-mode-btn {
  margin-left: auto; align-self: center; white-space: nowrap;
  padding: 5px 14px; border-radius: 999px; font-size: 12px; cursor: pointer;
  border: 1px solid rgba(57, 197, 187, 0.4); background: rgba(57, 197, 187, 0.1);
  color: var(--tianyi-blue-deep); transition: background 0.2s ease, box-shadow 0.2s ease;
}
.dm-mode-btn:hover { background: rgba(57, 197, 187, 0.2); box-shadow: 0 0 10px rgba(57, 197, 187, 0.35); }
/* ---------- 弹幕背景板模式：弹幕飘在整页壁纸上、所有内容卡片后面 ----------
   z-index -1 与壁纸层同级但 DOM 在其后（盖在壁纸上、垫在内容下），玻璃卡片半透明，
   弹幕从卡片后面透出来；整层 pointer-events:none，绝不挡任何点击 */
#dm-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  pointer-events: none; display: none;
}
#dm-bg.on { display: block; }
#dm-bg .dm-item { pointer-events: none; }
#dm-bg .dm-item.mine:hover { background: transparent; outline: none; }
@media (max-width: 860px) {
  .dm-mode-btn { margin-left: 0; }
}
.dm-slogan { color: var(--grey-mid); font-size: 14px; }
.dm-stage {
  position: relative; height: 176px; overflow: hidden; border-radius: 14px;
  /* 深色舞台：弹幕文字以白色/亮色为主，压在深底上才看得清（类似视频弹幕层） */
  background: linear-gradient(160deg, rgba(23, 43, 66, 0.78), rgba(13, 28, 45, 0.82));
  border: 1px solid rgba(57, 197, 187, 0.22);
  box-shadow: inset 0 2px 12px rgba(0, 0, 0, 0.22);
}
[data-theme="dark"] .dm-stage { background: linear-gradient(160deg, rgba(8, 18, 30, 0.85), rgba(5, 12, 22, 0.9)); border-color: rgba(57, 197, 187, 0.18); }
.dm-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #a6cfc9; font-size: 14px; }
.dm-item {
  position: absolute; left: 100%; white-space: nowrap; will-change: transform;
  padding: 3px 12px; border-radius: 999px; cursor: default; line-height: 1.5;
  animation: dm-move linear infinite;
  color: #fff;
}
.dm-inner { display: inline-flex; align-items: center; gap: 6px; }
.dm-av {
  flex: 0 0 auto; width: 1.6em; height: 1.6em; border-radius: 50%; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62em; font-weight: 700; color: #fff; text-shadow: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.dm-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dm-name {
  font-size: 0.68em; opacity: 0.72; max-width: 7em; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.3px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.dm-txt { font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45); }
.dm-item.mine { cursor: pointer; }
.dm-item.mine:hover { background: rgba(57, 197, 187, 0.18); outline: 1px dashed rgba(57, 197, 187, 0.6); }
@keyframes dm-move {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--dmw, 900px))); }
}
/* 部分弹幕轻微上下浮动，让画面有呼吸感（放在内层，避免和横向位移冲突） */
.dm-item.dm-float .dm-inner { animation: dm-bob 3.4s ease-in-out infinite alternate; }
@keyframes dm-bob {
  from { transform: translateY(-2px); }
  to { transform: translateY(3px); }
}
.dm-stage:hover .dm-item { animation-play-state: paused; }
.dm-stage:hover .dm-item .dm-inner { animation-play-state: paused; }
/* 弹幕样式（server 端白名单同名） */
.dm-item.st-default .dm-txt { color: #ffffff; }
.dm-item.st-blue .dm-txt { color: #39c5bb; }
.dm-item.st-teal .dm-txt { color: #7fd8c4; }
.dm-item.st-pink .dm-txt { color: #ffb3c6; }
.dm-item.st-gold .dm-txt { color: #ffd88a; }
.dm-item.st-glow .dm-txt { color: #ffffff; text-shadow: 0 0 6px #39c5bb, 0 0 14px #39c5bb, 0 1px 3px rgba(0, 0, 0, 0.3); }
.dm-item.st-outline .dm-txt { color: #fff; text-shadow: -1px -1px 0 #1f9e95, 1px -1px 0 #1f9e95, -1px 1px 0 #1f9e95, 1px 1px 0 #1f9e95; }
/* 彩虹渐变：文字用流动的彩虹色（渐变不可插值，直接让 background-position 跑起来） */
.dm-item.st-rainbow .dm-txt {
  background: linear-gradient(90deg, #39c5bb, #7fd8c4, #ffb3c6, #ffd88a, #b39ddb, #39c5bb);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
  animation: dm-hue 6s linear infinite;
}
@keyframes dm-hue {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}
/* 霓虹 / 气泡：用发弹幕者自己的主题色（--dmc 由 JS 按用户颜色注入） */
.dm-item.st-neon .dm-txt { color: var(--dmc, #39c5bb); text-shadow: 0 0 6px var(--dmc, #39c5bb), 0 0 16px var(--dmc, #39c5bb), 0 1px 3px rgba(0, 0, 0, 0.4); }
.dm-item.st-neon .dm-name { color: var(--dmc, #39c5bb); opacity: 0.85; }
.dm-item.st-bubble {
  background: rgba(10, 24, 40, 0.6); border: 1px solid var(--dmc, #39c5bb);
  box-shadow: 0 0 12px rgba(57, 197, 187, 0.22), inset 0 0 12px rgba(57, 197, 187, 0.1);
}
.dm-item.st-bubble .dm-txt { color: #fff; }
/* 效果预览条：和舞台同底色，所见即所得 */
.dm-preview {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  padding: 8px 14px; border-radius: 12px; min-height: 46px; overflow-x: auto;
  background: linear-gradient(160deg, rgba(23, 43, 66, 0.78), rgba(13, 28, 45, 0.82));
  border: 1px solid rgba(57, 197, 187, 0.18);
}
[data-theme="dark"] .dm-preview { background: linear-gradient(160deg, rgba(8, 18, 30, 0.85), rgba(5, 12, 22, 0.9)); }
.dm-preview-label { flex: 0 0 auto; font-size: 12px; color: #a6cfc9; opacity: 0.8; }
.dm-preview .dm-item { position: static; left: auto; animation: none; display: inline-block; }
.dm-preview .dm-item.dm-float .dm-inner { animation: none; }
/* 草稿预览弹幕：在舞台里按真实样式飞，虚线描边 + 「预览」角标和真实弹幕区分开 */
.dm-item.dm-draft { opacity: 0.95; }
.dm-item.dm-draft .dm-inner { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset; border-radius: 999px; padding: 0 8px; }
.dm-item .dm-tag {
  display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; line-height: 1.8; vertical-align: 1px; letter-spacing: 1px;
  background: rgba(57, 197, 187, 0.2); color: #cdeaff; border: 1px dashed rgba(57, 197, 187, 0.55);
}
.dm-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dm-form input {
  flex: 1 1 220px; min-width: 0; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--glass-border); background: var(--input-bg);
  color: var(--grey-dark); font-size: 14px; outline: none;
}
.dm-form input:focus { border-color: var(--tianyi-blue); }
.dm-form select {
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: var(--input-bg); color: var(--grey-dark); font-size: 13px;
}
.dm-form .btn { flex: 0 0 auto; }
.dm-mine-tip { margin-top: 8px; font-size: 13px; color: var(--grey-mid); }
.dm-clear { color: var(--tianyi-blue-deep); cursor: pointer; }
.dm-clear:hover { text-decoration: underline; }
.dm-login-tip { margin-top: 14px; font-size: 14px; color: var(--grey-mid); }
.dm-login-tip a { color: var(--tianyi-blue-deep); font-weight: 600; }
@media (max-width: 860px) {
  .dm-mod { padding: 20px 16px 18px; margin-bottom: 20px; }
  .dm-stage { height: 148px; }
}
@media (prefers-reduced-motion: reduce) {
  .dm-item { animation: none; position: static; display: inline-block; margin: 8px 6px; }
  .dm-empty { position: static; padding: 40px 0; }
}


/* ---------- 文章卡片 ---------- */
.post-card {
  padding: 26px 30px; margin-bottom: 20px;
  /* 自己的 transition 会覆盖 .glass 的，背景/边框的主题过渡必须在这里补回来，否则切主题时瞬间跳变 */
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.45s ease, border-color 0.45s ease;
  cursor: pointer;
  overflow: hidden; /* 兜底：任何超长内容都不越出卡片 */
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(57, 197, 187, 0.45); }
.post-card h3 {
  font-size: 19px; color: var(--grey-dark); line-height: 1.5;
  overflow-wrap: anywhere; word-break: break-word;
  /* 标题最多两行，超长自动省略，卡片更整齐 */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card h3 .pin { color: var(--tianyi-blue-deep); margin-right: 6px; font-size: 14px; }
.post-card .meta {
  font-size: 12px; color: var(--grey-mid); margin-top: 6px;
  overflow-wrap: anywhere; word-break: break-word;
}
.post-card .excerpt {
  margin-top: 10px; font-size: 14px; color: var(--grey-mid); line-height: 1.7;
  overflow-wrap: anywhere; word-break: break-word;
  /* 固定三行，超长内容自动省略，卡片高度统一 */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.empty-tip { text-align: center; padding: 60px 0; color: var(--grey-mid); }

/* ---------- 文章详情 ---------- */
.article { padding: 40px 44px; overflow: hidden; /* 兜底：正文任何超长内容都不越出卡片 */ }
.article h1 {
  font-size: 26px; color: var(--grey-dark); line-height: 1.4;
  overflow-wrap: anywhere; word-break: break-word;
}
.article .meta {
  color: var(--grey-mid); font-size: 13px; margin: 10px 0 24px; padding-bottom: 16px;
  border-bottom: 1px dashed rgba(57,197,187,0.4);
  overflow-wrap: anywhere; word-break: break-word;
}
.article .content { line-height: 1.9; font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }
.article .content h1, .article .content h2, .article .content h3 { margin: 22px 0 12px; color: var(--grey-dark); }
.article .content h2 { font-size: 21px; border-left: 4px solid var(--tianyi-blue); padding-left: 10px; }
.article .content h3 { font-size: 17px; }
.article .content p { margin: 10px 0; }
.article .content img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; }
.article .content video, .article .content iframe { max-width: 100%; border-radius: 10px; }
.article .content table { max-width: 100%; display: block; overflow-x: auto; border-collapse: collapse; }
.article .content pre { max-width: 100%; }
.article .content blockquote {
  margin: 12px 0; padding: 10px 16px; border-left: 4px solid var(--teal);
  background: rgba(127, 216, 196, 0.12); border-radius: 0 10px 10px 0; color: var(--grey-mid);
}
.article .content code { background: rgba(57,197,187,0.15); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.article .content pre { background: var(--code-bg); color: #e4f6f2; padding: 16px; border-radius: 10px; overflow-x: auto; margin: 12px 0; }
.article .content pre code { background: none; color: inherit; }
.article .content a { color: var(--tianyi-blue-deep); }
.article .content ul, .article .content ol { padding-left: 24px; margin: 10px 0; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--tianyi-blue-deep); text-decoration: none; font-size: 14px; }

/* ---------- 音乐 / 图库 ---------- */
.page-head { padding: 28px 32px; margin-bottom: 24px; }
.page-head h2 { font-size: 22px; color: var(--grey-dark); }
.page-head p { color: var(--grey-mid); font-size: 13px; margin-top: 6px; }

.audio-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; margin-bottom: 14px; cursor: pointer;
  transition: transform 0.2s ease;
}
.audio-item:hover { transform: translateX(4px); }
.audio-item .a-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--tianyi-blue), var(--teal));
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
}
.audio-item.playing { border-color: var(--tianyi-blue); box-shadow: 0 0 0 2px rgba(57,197,187,0.35), var(--shadow); }
.audio-item .a-name { flex: 1; font-size: 15px; color: var(--grey-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audio-item .a-size { font-size: 12px; color: var(--grey-mid); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.gallery-item { overflow: hidden; padding: 0; cursor: pointer; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.06); }

/* ---------- 关于页 ---------- */
.about-card { padding: 36px 40px; line-height: 2; white-space: pre-wrap; }
.about-links { margin-top: 22px; display: flex; gap: 14px; flex-wrap: wrap; }
.about-links a {
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-size: 14px;
  background: linear-gradient(90deg, rgba(57,197,187,0.25), rgba(127,216,196,0.2));
  color: var(--tianyi-blue-deep); transition: transform 0.2s ease;
}
.about-links a:hover { transform: scale(1.05); }

/* ---------- 隐私政策：关于页入口卡片 + 政策页 ---------- */
.policy-entry {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px; padding: 20px 26px;
  text-decoration: none; color: inherit; cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.policy-entry:hover { transform: translateY(-3px); }
.policy-entry .pe-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(57,197,187,0.3), rgba(127,216,196,0.25));
}
.policy-entry .pe-body { flex: 1; min-width: 0; }
.policy-entry .pe-title { display: block; font-size: 16px; font-weight: 700; color: var(--grey-dark); }
.policy-entry .pe-desc { display: block; font-size: 13px; color: var(--grey-mid); margin-top: 5px; line-height: 1.6; }
.policy-entry .pe-arrow { color: var(--tianyi-blue-deep); font-size: 18px; flex-shrink: 0; transition: transform 0.22s ease; }
.policy-entry:hover .pe-arrow { transform: translateX(4px); }

.policy-content { font-size: 14.5px; line-height: 1.95; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content ul li { margin: 4px 0; }
.policy-links { margin-top: 30px; padding-top: 20px; border-top: 1px dashed rgba(57,197,187,0.4); }

@media (max-width: 640px) {
  .policy-entry { padding: 16px 18px; gap: 12px; }
  .policy-entry .pe-ico { width: 38px; height: 38px; font-size: 17px; border-radius: 12px; }
  .policy-entry .pe-desc { font-size: 12px; }
  .policy-content { font-size: 14px; }
}

/* 首页快捷入口：等宽卡片式，手机端两列齐整对齐 */
.quick-grid {
  margin-top: 20px; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 12px;
}
.quick-grid a {
  flex: 1 1 160px; max-width: 340px; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 14px; text-decoration: none;
  font-size: 14px; color: var(--tianyi-blue-deep);
  background: linear-gradient(90deg, rgba(57,197,187,0.25), rgba(127,216,196,0.2));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-grid a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(57, 197, 187, 0.28); }
.quick-grid .ql-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 外链图标（可被「图标自定义」里的图片替换 emoji） */
.ico-img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; display: inline-block; vertical-align: -4px; flex-shrink: 0; }
.ico-emoji { flex-shrink: 0; line-height: 1; }

/* ---------- 播放器悬浮条 ---------- */
#player-bar {
  --pp: 0; /* 播放进度百分比（0~100），JS 实时更新 */
  position: fixed; left: 320px; right: 36px; bottom: 18px; z-index: 200;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border); border-radius: 999px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* 播放渐晕层：透明度跟随播放百分比，越播越亮 */
.p-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(90deg,
    rgba(57, 197, 187, 0.22),
    rgba(127, 216, 196, 0.20) 50%,
    rgba(179, 157, 219, 0.24));
  opacity: calc(var(--pp) / 100);
  transition: opacity 0.6s linear;
}
.p-info, .p-controls { position: relative; z-index: 1; }
.p-info { display: flex; flex-direction: column; min-width: 140px; }
.p-name { font-size: 13px; color: var(--grey-dark); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.p-time { font-size: 11px; color: var(--grey-mid); }
.p-controls { display: flex; align-items: center; gap: 8px; flex: 1; }
.p-controls button {
  border: none; background: rgba(57,197,187,0.15); color: var(--tianyi-blue-deep);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 13px;
  transition: all 0.2s ease;
}
.p-controls button:hover { background: var(--tianyi-blue); color: #fff; }
.p-progress { flex: 1; height: 5px; background: rgba(57,197,187,0.2); border-radius: 999px; cursor: pointer; }
.p-progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  /* 多段渐变随播放百分比滑动，颜色随进度流动 */
  background: linear-gradient(90deg, #39c5bb, #7fd8c4, #9ecbff, #b39ddb, #ffb3c6, #39c5bb);
  background-size: 300% 100%;
  background-position-x: calc(var(--pp, 0) * 1%);
}
/* 浏览器拦截自动播放后的「等待点击」呼吸态：整条播放器微微发亮提示，上方悬浮一行引导文字 */
#player-bar.wait-tap {
  animation: pb-breathe 1.6s ease-in-out infinite;
}
#player-bar.wait-tap::before {
  content: "👆 点一下页面任意位置，开始播放";
  position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: #fff; pointer-events: none;
  background: linear-gradient(90deg, rgba(57,197,187,0.95), rgba(127,216,196,0.95));
  box-shadow: 0 4px 14px rgba(57, 197, 187, 0.4);
}
@keyframes pb-breathe {
  0%, 100% { box-shadow: var(--shadow), 0 0 0 0 rgba(57, 197, 187, 0); }
  50% { box-shadow: var(--shadow), 0 0 0 6px rgba(57, 197, 187, 0.35); }
}
/* 未读文章呼吸提醒：没点开过的卡片微微发亮引导点击（视觉与播放条 wait-tap 同一套语言） */
.post-card.unread {
  cursor: pointer;
  animation: pc-breathe 1.8s ease-in-out infinite;
}
.post-card.unread h3 { color: var(--tianyi-blue-deep); }
[data-theme="dark"] .post-card.unread h3 { color: var(--tianyi-blue); }
@keyframes pc-breathe {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: var(--shadow), 0 0 0 5px rgba(57, 197, 187, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .post-card.unread { animation: none; }
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 500;
  background: var(--scrim);
  display: flex; align-items: center; justify-content: center;
}
.modal-box { width: 360px; padding: 34px 32px; background: var(--surface-solid); }
.modal-box h2 { font-size: 19px; color: var(--grey-dark); }
.modal-tip { font-size: 13px; color: var(--grey-mid); margin: 8px 0 18px; }
.modal-box input {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(57,197,187,0.4); outline: none; background: var(--input-bg);
  color: var(--grey-dark);
}
.modal-box input:focus { border-color: var(--tianyi-blue); box-shadow: 0 0 0 3px rgba(57,197,187,0.2); }
.err { color: #e05a6d; font-size: 12px; margin-top: 8px; min-height: 16px; }
.modal-btns { display: flex; gap: 12px; margin-top: 16px; justify-content: flex-end; }

/* ---------- 按钮 ---------- */
.btn {
  border: none; cursor: pointer; font-size: 14px;
  padding: 10px 22px; border-radius: 10px; transition: all 0.2s ease;
}
.btn.primary {
  background: linear-gradient(90deg, var(--tianyi-blue), var(--teal)); color: #fff;
  box-shadow: 0 6px 20px rgba(57, 197, 187, 0.45);
}
.btn.primary:hover { opacity: 0.92; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(57, 197, 187, 0.55); }
.btn.ghost { background: rgba(57,197,187,0.12); color: var(--tianyi-blue-deep); }
.btn.danger { background: rgba(224,90,109,0.12); color: #e05a6d; }
.btn.small { padding: 6px 14px; font-size: 12px; border-radius: 8px; }

/* ---------- Toast ---------- */
/* --toast-top 同时决定弹出位置与隐藏位移：无论从哪里弹出，藏起来都整体移出屏幕 */
#toast {
  --toast-top: 24px;
  position: fixed; top: var(--toast-top); left: 50%;
  transform: translateX(-50%) translateY(calc(-100% - var(--toast-top) - 40px));
  z-index: 999; padding: 12px 26px; border-radius: 999px; font-size: 14px;
  background: rgba(74,85,104,0.9); color: #fff; transition: transform 0.35s ease;
  pointer-events: none; max-width: min(86vw, 520px); text-align: center;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 管理后台 ---------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-tabs .tab {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-size: 14px;
  background: var(--surface); color: var(--grey-mid); border: 1px solid var(--glass-border);
}
.admin-tabs .tab.active { background: linear-gradient(90deg, var(--tianyi-blue), var(--teal)); color: #fff; }
.admin-sec { padding: 28px 32px; margin-bottom: 22px; }
.admin-sec h3 { font-size: 17px; margin-bottom: 16px; color: var(--grey-dark); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--grey-mid); margin-bottom: 6px; }
.form-row input[type=text], .form-row input[type=password], .form-row input[type=url], .form-row textarea, .form-row select {
  width: 100%; padding: 10px 14px; border-radius: 10px; font-size: 14px;
  border: 1px solid rgba(57,197,187,0.35); background: var(--input-bg);
  outline: none; color: var(--grey-dark); font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 90px; line-height: 1.7; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--tianyi-blue); box-shadow: 0 0 0 3px rgba(57,197,187,0.18); }

/* ---------- 全站文案面板 ---------- */
.tx-group { margin-bottom: 26px; }
.tx-group-title {
  font-size: 15px; color: var(--grey-dark); margin: 0 0 4px;
  padding-bottom: 8px; border-bottom: 1px solid var(--glass-border);
}
.tx-row { margin-bottom: 12px; }
.tx-row label { margin-bottom: 5px; }
.tx-line { display: flex; gap: 10px; align-items: center; }
.tx-line .tx-input { flex: 1; min-width: 0; }
.tx-line .tx-reset { flex-shrink: 0; white-space: nowrap; padding: 9px 14px; font-size: 13px; }
.tx-input::placeholder { color: var(--grey-mid); opacity: 0.65; }
.tx-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 640px) {
  .tx-line { flex-direction: column; align-items: stretch; gap: 6px; }
  .tx-line .tx-reset { align-self: flex-end; }
}

/* 编辑器 */
.editor-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.editor-wrap textarea {
  min-height: 420px; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 1.8;
}
.editor-preview {
  padding: 20px 24px; overflow-y: auto; max-height: 480px;
  line-height: 1.9; font-size: 14px; background: var(--surface); border-radius: 12px;
}
.editor-preview h2 { border-left: 4px solid var(--tianyi-blue); padding-left: 10px; margin: 16px 0 10px; }
.editor-preview img { max-width: 100%; border-radius: 8px; }
.editor-preview blockquote { border-left: 4px solid var(--teal); background: rgba(127,216,196,0.12); padding: 8px 14px; margin: 10px 0; border-radius: 0 8px 8px 0; }
.editor-preview code { background: rgba(57,197,187,0.15); padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.editor-preview pre { background: var(--code-bg); color: #e4f6f2; padding: 14px; border-radius: 8px; overflow-x: auto; }

/* 媒体库 */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.media-item { padding: 10px; text-align: center; position: relative; }
.media-item img { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; }
.media-item.audio-thumb { display: flex; align-items: center; justify-content: center; height: 110px; font-size: 40px; background: rgba(57,197,187,0.15); border-radius: 8px; }
.media-item .m-name { font-size: 11px; color: var(--grey-mid); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item .m-acts { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
/* 隐藏素材：只站长媒体库可见，不进图库/音乐页 */
.media-item.is-hidden { border-style: dashed; border-color: rgba(57, 197, 187, 0.65); background: rgba(57, 197, 187, 0.07); }
.media-item.is-hidden img { opacity: 0.6; }
.m-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: rgba(52, 88, 128, 0.85); color: #fff; letter-spacing: 0.5px;
}
/* 定时发布标记 */
.sched-flag {
  display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; line-height: 1.6; color: #1f6b66; background: rgba(57, 197, 187, 0.18);
  border: 1px dashed rgba(57, 197, 187, 0.65);
}
.post-card.is-sched { border-style: dashed; border-color: rgba(57, 197, 187, 0.55); }
.p-tag { font-size: 11px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.p-tag.pin { color: #1f6b66; background: rgba(57, 197, 187, 0.2); }
.p-tag.sched { color: #8a5a00; background: rgba(255, 196, 84, 0.28); border: 1px dashed rgba(255, 170, 40, 0.6); }
#ed-publish-at {
  padding: 9px 12px; border-radius: 10px; font-size: 14px; font-family: inherit;
  border: 1px solid rgba(57, 197, 187, 0.4); background: var(--glass-strong); color: var(--grey-dark);
}
/* ---------- 媒体文件夹 ---------- */
.f-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.f-tab {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: rgba(57, 197, 187, 0.12); color: var(--grey-mid);
  border: 1px solid rgba(57, 197, 187, 0.3); transition: all 0.2s ease;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.f-tab b { font-weight: 600; opacity: 0.7; font-size: 12px; }
.f-tab:hover { transform: translateY(-1px); }
.f-tab.active { background: linear-gradient(90deg, var(--tianyi-blue), var(--teal)); color: #fff; border-color: transparent; }
.f-tab.active b { opacity: 0.9; }
.f-group-head {
  display: flex; align-items: center; gap: 10px;
  margin: 22px 0 12px; font-size: 15px; font-weight: 600; color: var(--grey-dark);
}
.f-group-head span { font-size: 12px; font-weight: 400; color: var(--grey-mid); }
.f-group-head::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(57,197,187,0.5), transparent); }
.folder-manage { margin-bottom: 16px; }
.folder-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.fd-label, .fd-sep { font-size: 12px; color: var(--grey-mid); }
.fd-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: rgba(57, 197, 187, 0.12); border: 1px solid rgba(57, 197, 187, 0.3);
  color: var(--grey-dark); transition: all 0.2s ease; max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd-chip b { font-weight: 600; font-size: 11px; opacity: 0.7; }
.fd-chip.active { background: linear-gradient(90deg, var(--tianyi-blue), var(--teal)); color: #fff; border-color: transparent; }
.fd-chip.active b { opacity: 0.9; }
.fd-group { display: inline-flex; align-items: center; gap: 2px; }
.fd-ico {
  border: none; background: none; cursor: pointer; font-size: 11px; padding: 2px 3px;
  color: var(--grey-mid); border-radius: 6px; line-height: 1;
}
.fd-ico:hover { background: rgba(57, 197, 187, 0.2); }
.folder-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.folder-new input[type="text"] {
  flex: 1; min-width: 180px; padding: 9px 12px; border-radius: 10px; font-size: 13px; font-family: inherit;
  border: 1px solid rgba(57, 197, 187, 0.35); background: var(--glass-strong); color: var(--grey-dark);
}
.folder-new select, .m-folder, .folder-bulk select {
  padding: 8px 10px; border-radius: 10px; font-size: 12px; font-family: inherit;
  border: 1px solid rgba(57, 197, 187, 0.35); background: var(--glass-strong); color: var(--grey-dark);
  max-width: 170px;
}
.folder-bulk {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 14px; border-radius: 12px; font-size: 13px;
  background: rgba(57, 197, 187, 0.14); border: 1px dashed rgba(57, 197, 187, 0.5);
}
.folder-bulk b { color: var(--tianyi-blue-deep); }
.media-item .m-folder { width: 100%; margin-top: 6px; font-size: 11px; padding: 5px 8px; }
.media-item .m-pick { position: absolute; top: 16px; right: 16px; z-index: 2; }
.media-item .m-pick input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--tianyi-blue); }
[data-theme="dark"] .f-tab, [data-theme="dark"] .fd-chip { background: rgba(57, 197, 187, 0.1); color: #cbeae5; }
[data-theme="dark"] .f-group-head { color: #e4f6f2; }

.upload-zone {
  border: 2px dashed rgba(57,197,187,0.5); border-radius: 14px;
  padding: 34px; text-align: center; color: var(--grey-mid); font-size: 14px;
  margin-bottom: 18px; cursor: pointer; transition: all 0.2s ease;
}
.upload-zone:hover, .upload-zone.drag { background: rgba(57,197,187,0.1); border-color: var(--tianyi-blue); }
.upload-zone input { display: none; }

/* 图标管理 */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.icon-slot { padding: 14px; text-align: center; }
.icon-slot .i-preview {
  width: 52px; height: 52px; margin: 0 auto 8px; border-radius: 12px;
  background: rgba(57,197,187,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 26px; overflow: hidden;
}
.icon-slot .i-preview img { width: 100%; height: 100%; object-fit: cover; }
.icon-slot .i-label { font-size: 12px; color: var(--grey-mid); margin-bottom: 8px; }
.icon-slot .i-acts { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

/* ---------- 签名板 · CSS 立体肥皂泡 ---------- */
.board-wrap { padding: 28px; position: relative; }
.board-stage { position: relative; width: 100%; max-width: 740px; min-width: 320px; margin: 0 auto; aspect-ratio: 1; z-index: 1; }
.board-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board-lines line {
  stroke: var(--bubble-line); stroke-width: 1.6;
  stroke-dasharray: 4 6; vector-effect: non-scaling-stroke;
  animation: lineFlow 18s linear infinite;
}
@keyframes lineFlow { to { stroke-dashoffset: -200; } }

/* 三层结构：定位(translate居中) > 浮动动画 > 悬停缩放 */
.bub-pos { position: absolute; transform: translate(-50%, -50%) scale(var(--bs, 1)); z-index: 2;
  transition: transform 0.26s cubic-bezier(0.3, 0.9, 0.35, 1); }
.bubble-float { width: 100%; aspect-ratio: 1; animation: bubbleFloatA 8s ease-in-out infinite; will-change: transform; }
.bubble-float.fl-b { animation-name: bubbleFloatB; }
.bubble-float.fl-c { animation-name: bubbleFloatC; }
.bubble-float.fl-d { animation-name: bubbleFloatD; }
/* 浮动位移用百分比（相对气泡自身尺寸），整体缩放时起伏幅度同步收放 */
@keyframes bubbleFloatA {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(8.6%, -11.9%); }
  50% { transform: translate(-6.5%, 6.5%); }
  75% { transform: translate(6.5%, 8.6%); }
}
@keyframes bubbleFloatB {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-9.7%, -7.6%); }
  60% { transform: translate(7.6%, 7.6%); }
  80% { transform: translate(-4.3%, 9.7%); }
}
@keyframes bubbleFloatC {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(6.5%, 9.7%); }
  55% { transform: translate(9.7%, -6.5%); }
  85% { transform: translate(-8.6%, -4.3%); }
}
@keyframes bubbleFloatD {
  0%, 100% { transform: translate(0, 0); }
  35% { transform: translate(-7.6%, 8.6%); }
  65% { transform: translate(5.4%, -9.7%); }
  85% { transform: translate(9.7%, -3.2%); }
}

.bub {
  position: relative; width: 100%; height: 100%; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.bub:hover { transform: scale(1.15); filter: brightness(1.1) saturate(1.2); z-index: 9; }

/* 泡体：多层渐变模拟透明皂膜 + 环境光 */
.bub-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
/* 彩虹光泽层（皂膜干涉色），缓慢旋转 */
.bub-sheen {
  position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: screen;
  background: conic-gradient(from 130deg,
    transparent 0deg, rgba(255, 190, 235, 0.3) 45deg, transparent 95deg,
    rgba(140, 235, 225, 0.32) 165deg, transparent 215deg,
    rgba(255, 255, 255, 0.25) 300deg, transparent 360deg);
  animation: sheenSpin 10s linear infinite;
}
@keyframes sheenSpin { to { transform: rotate(360deg); } }
/* 左上大高光 */
.bub-hi {
  position: absolute; top: 10%; left: 15%; width: 38%; height: 23%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
  transform: rotate(-24deg); filter: blur(1.2px);
}
/* 右下反光点 */
.bub-dot {
  position: absolute; bottom: 15%; right: 19%; width: 9%; height: 9%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); filter: blur(0.6px);
}
/* 名字 */
.bub-name {
  position: relative; z-index: 3; color: #fff; font-weight: 700; white-space: nowrap;
  max-width: 86%; overflow: hidden; text-overflow: ellipsis; padding: 0 4px;
  text-shadow: 0 1px 8px rgba(30, 95, 92, 0.5), 0 0 3px rgba(30, 95, 92, 0.4);
}
.bub.owner .bub-name { letter-spacing: 0.5px; }
/* 气泡里的头像：圆形居中偏上，名字挪到底部 */
.bub-avatar {
  position: absolute; left: 50%; top: 44%; width: 56%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%; object-fit: cover; z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(50, 90, 130, 0.35);
  background: rgba(255, 255, 255, 0.25);
}
.bub.has-av .bub-name {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  max-width: 92%;
}

/* 环境装饰气泡：缓缓上升的肥皂泡 */
.deco-bub {
  position: absolute; bottom: -50px; border-radius: 50%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 30% 28%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.18) 34%, rgba(255,255,255,0.04) 62%, rgba(170,225,255,0.35) 92%, rgba(255,255,255,0.5) 100%),
    conic-gradient(from 200deg, transparent 0deg, rgba(255,190,235,0.25) 60deg, transparent 120deg, rgba(150,225,255,0.3) 200deg, transparent 300deg);
  box-shadow: inset -4px -5px 10px rgba(140, 210, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.4);
  animation: decoRise 12s linear infinite;
}
@keyframes decoRise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  8% { opacity: 0.9; }
  50% { transform: translateY(-330px) translateX(16px) rotate(120deg); }
  90% { opacity: 0.55; }
  100% { transform: translateY(-680px) translateX(-12px) rotate(260deg); opacity: 0; }
}
/* 泡泡大小调节条 */
.board-zoom {
  max-width: 740px; margin: 0 auto 14px; padding: 11px 18px;
  display: flex; align-items: center; justify-content: center; gap: 11px; flex-wrap: wrap;
}
.board-zoom .bz-label { font-size: 13px; color: var(--grey-mid); white-space: nowrap; }
.board-zoom .bz-btn {
  width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, 0.62); color: var(--grey-dark);
  font-size: 17px; line-height: 1; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(35, 115, 108, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}
.board-zoom .bz-btn:hover { transform: scale(1.12); background: rgba(255, 255, 255, 0.9); }
.board-zoom .bz-btn:active { transform: scale(0.94); }
.board-zoom .bz-range {
  -webkit-appearance: none; appearance: none; width: min(260px, 46vw); height: 5px;
  border-radius: 3px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, rgba(57, 197, 187, 0.9), rgba(140, 235, 225, 0.45));
}
.board-zoom .bz-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; cursor: pointer;
  box-shadow: 0 2px 8px rgba(35, 120, 112, 0.45), 0 0 0 2px rgba(57, 197, 187, 0.55);
}
.board-zoom .bz-range::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: #fff; cursor: pointer;
  border: 2px solid rgba(57, 197, 187, 0.8);
}
.board-zoom .bz-val {
  font-size: 12.5px; color: var(--grey-mid); min-width: 42px; text-align: right;
  font-variant-numeric: tabular-nums;
}
.board-tip { text-align: center; font-size: 13px; color: var(--grey-mid); margin-top: 12px; }
.bubble-pop { padding: 26px 30px; margin-top: 20px; }
.bubble-pop .bp-head { display: flex; align-items: center; gap: 12px; }
.bubble-pop .bp-dot { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 3px 12px rgba(0,0,0,0.12), inset 0 0 0 2px rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.bubble-pop .bp-name { font-size: 18px; font-weight: 600; color: var(--grey-dark); }
.bubble-pop .bp-date { font-size: 12px; color: var(--grey-mid); }
.bubble-pop .bp-sign { margin: 14px 0; line-height: 1.8; color: var(--grey-dark); font-size: 14.5px; }
.bubble-pop .bp-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 用户主页 / 认证表单 ---------- */
.profile-card { padding: 36px 40px; text-align: center; }
.profile-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.profile-name { font-size: 22px; color: var(--grey-dark); }
.profile-date { font-size: 12.5px; color: var(--grey-mid); margin-top: 4px; }
.profile-sign { margin: 16px auto 20px; max-width: 520px; line-height: 1.9; color: var(--grey-dark); font-size: 15px; }

.auth-tabs { display: flex; gap: 10px; margin-bottom: 12px; }
.auth-tabs .tab {
  flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; cursor: pointer;
  font-size: 14.5px; font-weight: 600; letter-spacing: 1px;
  background: var(--surface); color: var(--grey-mid);
  border: 1.5px solid var(--glass-border);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
}
.auth-tabs .tab:hover { transform: translateY(-1px); }
/* 登录态：初音青 */
.auth-tabs .tab.active[data-m="login"] {
  background: linear-gradient(135deg, var(--tianyi-blue), var(--tianyi-blue-deep));
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(57, 197, 187, 0.4);
}
/* 注册态：薄荷绿 */
.auth-tabs .tab.active[data-m="register"] {
  background: linear-gradient(135deg, var(--teal), #4db89a);
  color: #fff; border-color: transparent;
  box-shadow: 0 4px 14px rgba(127, 216, 196, 0.4);
}
.auth-hint { font-size: 13px; color: var(--grey-mid); margin: -4px 0 18px; line-height: 1.6; }
/* 登录模式按钮：蓝；注册模式按钮：绿，跟当前页签同色系 */
.auth-mode-login #au-go { background: linear-gradient(90deg, var(--tianyi-blue-deep), var(--tianyi-blue)); }
.auth-mode-register #au-go { background: linear-gradient(90deg, var(--teal), #4db89a); }
/* 二次密码不一致：红框 + 轻微抖动提醒 */
.form-row input.mismatch {
  border-color: #e05a6d !important;
  box-shadow: 0 0 0 3px rgba(224, 90, 109, 0.18) !important;
  animation: pw-shake 0.3s ease;
}
@keyframes pw-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 3px solid transparent; transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: var(--grey-dark); transform: scale(1.12); }
.swatch-custom { width: 30px; height: 30px; padding: 0; border: none; border-radius: 50%; cursor: pointer; background: none; }
.char-count { font-size: 12px; color: var(--grey-mid); text-align: right; margin-top: 4px; }
.char-count.over { color: #e05a6d; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--grey-mid); cursor: pointer; margin-top: 4px; }
.check-line input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--tianyi-blue); cursor: pointer; }


#lightbox {
  position: fixed; inset: 0; z-index: 600; background: rgba(20,30,40,0.85);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
#lightbox img { max-width: 92%; max-height: 92%; border-radius: 10px; }

/* ---------- 日间 / 夜间模式切换（动效按钮共用同款外观） ---------- */
.theme-toggle, .fx-toggle {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; line-height: 1;
  background: var(--surface); border: 1px solid var(--glass-border);
  color: var(--grey-dark); box-shadow: 0 2px 10px rgba(35, 115, 108, 0.16);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle:hover, .fx-toggle:hover { transform: rotate(-24deg) scale(1.12); background: rgba(57, 197, 187, 0.22); }
.theme-toggle:active, .fx-toggle:active { transform: scale(0.94); }
#theme-toggle-side { position: absolute; top: 18px; right: 18px; z-index: 5; }
#mobile-bar .theme-toggle, #mobile-bar .fx-toggle, #mobile-bar #fs-toggle-m { width: 34px; height: 34px; font-size: 15px; }

/* ---------- 夜间模式 ---------- */
[data-theme="dark"] {
  --tianyi-blue: #39c5bb;
  --tianyi-blue-deep: #6fe3d7;
  --grey-dark: #e8f7f3;
  --grey-mid: #9db2c8;
  --grey-light: #1b2836;
  --glass: rgba(18, 29, 43, 0.84);
  --glass-strong: rgba(18, 29, 43, 0.94);
  --glass-border: rgba(110, 205, 195, 0.18);
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 24px 64px rgba(0, 0, 0, 0.55);
  --pg-a: #08161a; --pg-b: #0f2a2f; --pg-c: #0b2b2f;
  --ab-a: rgba(57, 197, 187, 0.3); --ab-b: rgba(127, 216, 196, 0.16);
  --tint-a: rgba(4, 10, 18, 0.5); --tint-b: rgba(4, 10, 18, 0.68);
  --page-bg: linear-gradient(135deg, var(--pg-a) 0%, var(--pg-b) 50%, var(--pg-c) 100%);
  --sidebar-bg: rgba(11, 20, 31, 0.9);
  --inset-hi: rgba(255, 255, 255, 0.07);
  --surface: rgba(255, 255, 255, 0.1);
  --surface-solid: rgba(17, 28, 41, 0.96);
  --input-bg: rgba(255, 255, 255, 0.12);
  --active-bg: linear-gradient(90deg, var(--ab-a), var(--ab-b));
  --bg-tint: linear-gradient(180deg, var(--tint-a), var(--tint-b));
  --bubble-line: rgba(130, 230, 220, 0.4);
  --code-bg: rgba(4, 12, 20, 0.75);
  --scrim: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}
/* 夜间模式下的细节修正 */
[data-theme="dark"] .hero h2 .blue {
  background: linear-gradient(92deg, #7fe0d4 0%, #b8f0e6 45%, #7fd8c4 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="dark"] .side-avatar { box-shadow: 0 4px 22px rgba(57, 197, 187, 0.4); border-color: rgba(255, 255, 255, 0.25); }
[data-theme="dark"] .side-nav a:hover, [data-theme="dark"] .side-links a:hover, [data-theme="dark"] #admin-entry:hover {
  background: rgba(57, 197, 187, 0.16); color: #b3f0e8;
}
[data-theme="dark"] .theme-toggle, [data-theme="dark"] .fx-toggle { box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .theme-toggle:hover, [data-theme="dark"] .fx-toggle:hover { background: rgba(57, 197, 187, 0.24); }
[data-theme="dark"] .audio-item .a-icon, [data-theme="dark"] .btn.primary { filter: saturate(1.05); }
[data-theme="dark"] .deco-bub { opacity: 0.55; filter: brightness(0.85); }
[data-theme="dark"] .bub-name { text-shadow: 0 1px 10px rgba(0, 20, 40, 0.7), 0 0 4px rgba(0, 20, 40, 0.6); }
[data-theme="dark"] .btn.ghost { background: rgba(57, 197, 187, 0.16); }
[data-theme="dark"] .p-controls button { background: rgba(57, 197, 187, 0.16); color: #a8ece2; }
[data-theme="dark"] .swatch { border-color: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .swatch.active { border-color: #ffffff; }
[data-theme="dark"] .media-item.audio-thumb { background: rgba(57, 197, 187, 0.14); }
[data-theme="dark"] .media-item.is-hidden { background: rgba(57, 197, 187, 0.05); }
[data-theme="dark"] .sched-flag { color: #b3f0e8; background: rgba(57, 197, 187, 0.14); }
[data-theme="dark"] .p-tag.pin { color: #b3f0e8; }
[data-theme="dark"] .p-tag.sched { color: #ffd88a; background: rgba(255, 196, 84, 0.16); }
[data-theme="dark"] .icon-slot .i-preview { background: rgba(57, 197, 187, 0.14); }
[data-theme="dark"] input[type=color] { filter: brightness(1.1); }
[data-theme="dark"] #mobile-bar { background: rgba(11, 20, 31, 0.78); }
[data-theme="dark"] ::selection { background: rgba(57, 197, 187, 0.35); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  #sidebar { transform: translateX(-100%); transition: transform 0.3s ease; width: 280px; }
  #sidebar.open { transform: translateX(0); }
  #main { margin-left: 0; padding: 70px 14px 110px; }
  #mobile-bar {
    display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 300;
    align-items: center; justify-content: space-between; padding: 12px 16px;
    background: var(--glass-strong);
    border-bottom: 1px solid var(--glass-border);
  }
  #mobile-bar .m-title { font-size: 15px; font-weight: 600; }
  #mobile-bar button { border: none; background: none; font-size: 20px; color: var(--grey-dark); cursor: pointer; }
  #player-bar { left: 12px; right: 12px; padding: 10px 14px; gap: 10px; }
  .p-info { min-width: 0; }
  .p-name { max-width: 120px; }
  .p-controls button { width: 30px; height: 30px; font-size: 12px; }
  .editor-wrap { grid-template-columns: 1fr; }
  .article, .hero, .admin-sec { padding: 24px 20px; }
  .article h1 { font-size: 21px; }
  /* 手机端区块留白收紧，内容不再挤在一起 */
  .page-head { padding: 18px 18px; margin-bottom: 16px; }
  .page-head h2 { font-size: 19px; }
  .hero { padding: 26px 20px; margin-bottom: 20px; }
  .hero h2 { font-size: 22px; }
  .hero p { font-size: 14px; }
  .hero-stats { gap: 8px; margin-top: 14px; }
  .hstat { padding: 6px 12px; font-size: 12px; }
  .post-card { padding: 20px 18px; margin-bottom: 14px; }
  .post-card h3 { font-size: 17px; }
  .empty-tip { padding: 40px 16px; }
  .comments { padding: 22px 18px; }
  .c-del { font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .audio-item { padding: 13px 16px; gap: 12px; }
  .audio-item .a-icon { width: 38px; height: 38px; font-size: 18px; border-radius: 10px; }
  /* 快捷入口：两列等宽网格，最后一行单个也保持半宽对齐 */
  .quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  .quick-grid a { max-width: none; padding: 12px 10px; font-size: 13.5px; border-radius: 12px; }
  .side-nav a, .side-links a { padding: 11px 16px; font-size: 15.5px; }
}

/* 超小屏（多数手机竖屏）进一步收紧 */
@media (max-width: 430px) {
  #main { padding: 66px 12px 104px; }
  .page-head { padding: 16px 14px; }
  .post-card { padding: 18px 15px; }
  .hero { padding: 22px 16px; }
  .article { padding: 20px 16px; }
  .quick-grid a { padding: 11px 8px; font-size: 13px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* ============================================
   文章评论
   ============================================ */
.comments { margin-top: 20px; padding: 26px 30px; }
.comments h3 { font-size: 18px; margin-bottom: 6px; }
.comment-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px dashed rgba(57, 197, 187, 0.32);
}
.comment-item:last-child { border-bottom: none; }
.c-dot {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 3px 10px rgba(35, 115, 108, 0.28);
}
.c-body { flex: 1; min-width: 0; }
.c-head { display: flex; align-items: center; gap: 10px; }
.c-name { font-weight: 600; font-size: 14px; color: var(--grey-dark); }
.c-time { font-size: 12px; color: var(--grey-mid); }
.c-del { margin-left: auto; font-size: 12px; color: #ff6b81; cursor: pointer; opacity: 0.85; }
.c-del:hover { opacity: 1; text-decoration: underline; }
.c-text {
  margin-top: 6px; font-size: 14.5px; line-height: 1.75;
  color: var(--grey-dark); white-space: pre-wrap; word-break: break-word;
}
.c-empty { padding: 14px 0; font-size: 13.5px; color: var(--grey-mid); }
.c-form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.c-form textarea {
  min-height: 92px; resize: vertical; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(57, 197, 187, 0.35); background: var(--input-bg);
  color: var(--grey-dark); font-size: 14px; line-height: 1.7; font-family: inherit; outline: none;
}
.c-form textarea:focus { border-color: var(--tianyi-blue); box-shadow: 0 0 0 3px rgba(57, 197, 187, 0.18); }
.c-form .btn { align-self: flex-end; }
.c-login-tip { margin-top: 14px; font-size: 13.5px; color: var(--grey-mid); }
.c-login-tip a { color: var(--tianyi-blue-deep); font-weight: 600; text-decoration: none; }

/* ============================================
   用户管理（后台）
   ============================================ */
.admin-tip { font-size: 13px; color: var(--grey-mid); line-height: 1.9; margin-bottom: 14px; }
.admin-tip b { color: var(--tianyi-blue-deep); }
.user-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 4px;
  border-bottom: 1px dashed rgba(57, 197, 187, 0.3);
}
.user-row:last-child { border-bottom: none; }
.u-dot {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 3px 10px rgba(35, 115, 108, 0.28);
}
.u-body { flex: 1; min-width: 0; }
.u-name { font-size: 15px; font-weight: 600; color: var(--grey-dark); display: flex; align-items: center; gap: 8px; }
.u-name a { text-decoration: none; font-size: 14px; }
.u-sub {
  margin-top: 3px; font-size: 12.5px; color: var(--grey-mid);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.u-owner-tag {
  flex-shrink: 0; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: rgba(57, 197, 187, 0.2); color: var(--tianyi-blue-deep); font-weight: 600;
}

/* ============================================
   头像（圆形）与裁剪弹窗
   ============================================ */
/* 各处圆点里的头像图：自动铺满圆形容器 */
.dot-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.uc-dot-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
/* 我的主页 - 头像行 */
.me-avatar-row { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.me-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; object-fit: cover; display: block;
  box-shadow: 0 4px 16px rgba(35, 115, 108, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  color: #fff; font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* 裁剪弹窗 */
.avatar-crop-box { width: 380px; max-width: calc(100vw - 40px); text-align: center; }
/* 方形裁剪（图标 / favicon）：取景框改成圆角方形，整块画布都是最终效果 */
.avatar-crop-box.square .av-canvas-wrap { border-radius: 20px; }
.av-canvas-wrap {
  /* 方形取景框：手机上自动缩小，横屏矮屏也不会溢出 */
  width: min(300px, 100%, 46vh); aspect-ratio: 1 / 1; height: auto;
  margin: 0 auto; border-radius: 50%;
  overflow: hidden; position: relative;
  box-shadow: 0 8px 28px rgba(35, 115, 108, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(45deg, rgba(57, 197, 187, 0.12) 25%, transparent 25%, transparent 75%, rgba(57, 197, 187, 0.12) 75%) 0 0 / 16px 16px,
    linear-gradient(45deg, rgba(57, 197, 187, 0.12) 25%, transparent 25%, transparent 75%, rgba(57, 197, 187, 0.12) 75%) 8px 8px / 16px 16px;
}
.av-canvas-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.avatar-crop-box input[type="range"] {
  width: 240px; max-width: 100%; margin: 18px auto 4px; display: block;
  padding: 0; border: none; background: none; height: 6px;
  accent-color: var(--tianyi-blue, #39c5bb); cursor: pointer;
}
.avatar-crop-box .err { color: #ff6b81; font-size: 12.5px; min-height: 16px; margin-top: 8px; }

/* ============================================
   动效设置（访客可调）+ 液泡拖拽
   ============================================ */
/* 侧栏里的动效按钮：跟在日夜切换按钮左边 */
#fx-toggle-side { position: absolute; top: 18px; right: 64px; z-index: 5; }
.fx-toggle.on { background: rgba(57, 197, 187, 0.32); box-shadow: 0 0 0 2px rgba(57, 197, 187, 0.35); }
html.fx-off .fx-toggle { opacity: 0.7; }

#fx-panel {
  position: fixed; top: 68px; right: 22px; width: 296px; z-index: 320;
  background: var(--surface-solid); border: 1px solid var(--glass-border);
  border-radius: 16px; box-shadow: var(--shadow-hover);
  padding: 14px 16px 16px; font-size: 13.5px; color: var(--grey-dark);
  opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#fx-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.fxp-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px; color: var(--tianyi-blue-deep); }
.fxp-x { background: none; border: none; font-size: 14px; line-height: 1; padding: 3px 6px; border-radius: 7px; color: var(--grey-mid); cursor: pointer; }
.fxp-x:hover { background: rgba(57, 197, 187, 0.16); color: var(--grey-dark); }
#fx-all { width: 100%; margin-top: 12px; }
.fxp-hint { font-size: 12px; line-height: 1.65; color: var(--grey-mid); margin-top: 9px; }
.fxp-sep { height: 1px; background: var(--glass-border); margin: 14px 0 2px; }
.fxp-row { margin-top: 11px; }
.fx-switch { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.fx-switch input { width: 16px; height: 16px; accent-color: var(--tianyi-blue); cursor: pointer; }
.fx-switch.dim { opacity: 0.45; cursor: default; }
.fxp-label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--grey-mid); margin-bottom: 7px; }
.fxp-label b { color: var(--tianyi-blue-deep); font-weight: 600; }
#fx-speed { width: 100%; height: 22px; padding: 0; background: none; border: none; accent-color: var(--tianyi-blue); cursor: pointer; }
#fx-speed:disabled { opacity: 0.45; cursor: default; }
.fxp-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey-mid); opacity: 0.8; margin-top: 1px; }
@media (max-width: 860px) {
  #fx-panel { top: 62px; right: 12px; width: min(300px, 92vw); }
  /* 手机上 toast 弹在标题栏下方，不盖住标题和按钮 */
  #toast { --toast-top: 66px; }
}

/* 液体覆盖层（失重液泡：主液泡 + 小液泡） */
.liquid-layer {
  position: fixed; inset: 0; width: 100%; height: 100%; z-index: 70;
  pointer-events: none; opacity: 1; transition: opacity 0.3s ease;
  --ld-fill: rgba(255, 255, 255, 0.8);
  --ld-hi: rgba(255, 255, 255, 0.8);
  --ld-line: rgba(255, 255, 255, 0.75);
}
.liquid-layer.ld-out { opacity: 0; }
.liquid-layer .ld-blob { fill: var(--ld-fill); stroke: var(--ld-line); stroke-width: 1.4; }
.liquid-layer .ld-hi { fill: var(--ld-hi); }
.liquid-layer .ld-drop { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.8; }
/* 咬痕边缘的液面张力高光：贴着 clip-path 真实剪出来的缺口轮廓描一圈，
   让「框少了一块」在任何背景上都看得清 */
.liquid-layer .ld-rim {
  fill: none; stroke: rgba(255, 255, 255, 0.6); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}
[data-theme="dark"] .liquid-layer { --ld-hi: rgba(255, 255, 255, 0.2); --ld-line: rgba(140, 225, 218, 0.3); }
[data-theme="dark"] .liquid-layer .ld-rim { stroke: rgba(190, 225, 255, 0.5); filter: drop-shadow(0 0 2.5px rgba(140, 225, 218, 0.45)); }
/* 关掉高级动效：入场动画与液泡一并停用 */
html.fx-off #view > .rise { animation: none; }
html.fx-off .liquid-layer { display: none; }

/* ---------- 素材选择器（写文章时插入图片/音频） ---------- */
.pick-box { width: 760px; max-width: calc(100vw - 28px); padding: 24px 22px 18px; text-align: left; }
.pick-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pick-bar input { flex: 1; min-width: 160px; width: auto; }
.pick-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pick-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-height: 58vh; overflow-y: auto; padding: 4px;
}
.pick-item {
  position: relative; cursor: pointer; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(57, 197, 187, 0.28); background: var(--input-bg);
  transition: all 0.18s ease;
}
.pick-item:hover, .pick-item:focus-visible {
  transform: translateY(-2px); border-color: var(--tianyi-blue);
  box-shadow: 0 8px 18px rgba(57, 197, 187, 0.28);
}
.pick-item.is-hidden { border-style: dashed; border-color: rgba(57, 197, 187, 0.65); background: rgba(57, 197, 187, 0.07); }
.pick-item img, .pick-audio {
  width: 100%; height: 96px; object-fit: cover; display: block; background: rgba(0, 0, 0, 0.04);
}
.pick-audio { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.pick-item .m-badge { top: 6px; left: 6px; }
.pick-name {
  font-size: 11.5px; padding: 5px 7px; color: var(--grey-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pick-empty {
  grid-column: 1 / -1; text-align: center; padding: 34px 10px;
  font-size: 13px; color: var(--grey-mid);
}
@media (max-width: 640px) {
  .pick-box { padding: 20px 14px 14px; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); max-height: 52vh; gap: 8px; }
  .pick-item img, .pick-audio { height: 88px; }
}
[data-theme="dark"] .pick-item.is-hidden { background: rgba(57, 197, 187, 0.05); }
[data-theme="dark"] .pick-item img { background: rgba(255, 255, 255, 0.04); }

/* ============================================================
   曲签模块（一人一首的专属曲）
   沿用站点玻璃卡片体系，主色走 --tianyi-blue（本站已换成初音青 #39c5bb）
   ============================================================ */
.side-neighbor {
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 2px; padding: 6px 10px; min-height: 28px; border-radius: 10px;
  font-size: 11.5px; line-height: 1.4; color: var(--grey-mid); text-align: center;
  text-decoration: none; white-space: nowrap;
  border: 1px dashed var(--glass-border); transition: all 0.2s;
}
.side-neighbor:hover { color: var(--tianyi-blue-deep); border-color: var(--tianyi-blue); background: rgba(57, 197, 187, 0.08); }

.draw-hero {
  display: flex; align-items: center; gap: 22px; padding: 26px 28px; border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden; position: relative;
}
.dh-kicker { font-size: 10.5px; letter-spacing: 0.32em; color: var(--tianyi-blue-deep); font-weight: 700; }
.dh-main h3 { font-size: 22px; margin: 8px 0 6px; color: var(--grey-dark); }
.dh-note { font-size: 13px; color: var(--grey-mid); margin-bottom: 14px; }
.dh-btn { min-width: 168px; }
.dh-btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.dh-ticket {
  margin-left: auto; width: 168px; height: 190px; flex-shrink: 0; position: relative;
  border-radius: 16px; padding: 16px 14px;
  background: linear-gradient(160deg, rgba(57, 197, 187, 0.16), rgba(57, 197, 187, 0.03));
  border: 1px solid rgba(57, 197, 187, 0.35);
  box-shadow: 0 12px 30px rgba(35, 115, 108, 0.16);
  display: flex; flex-direction: column; justify-content: space-between;
}
.dh-hole { position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--page-bg); border: 1px solid rgba(57, 197, 187, 0.3); transform: translateY(-50%); }
.dh-num { font-size: 62px; font-weight: 800; line-height: 1; color: var(--tianyi-blue);
  text-shadow: 0 0 24px rgba(57, 197, 187, 0.35); font-family: var(--mono, monospace); }
.dh-word { font-size: 10px; letter-spacing: 0.3em; color: var(--grey-mid); }

.draw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.ds-item { padding: 12px 16px; border-radius: 14px; display: flex; align-items: baseline; gap: 10px; }
.ds-item span { font-size: 12px; color: var(--grey-mid); }
.ds-item b { font-size: 20px; color: var(--grey-dark); }
.ds-item b.hot { color: var(--tianyi-blue-deep); }

.my-song {
  --c: #39c5bb;
  position: relative; padding: 20px 22px; border-radius: var(--radius); margin-bottom: 18px;
  border-left: 4px solid var(--c); overflow: hidden;
}
.my-song::after {
  content: "OWNED"; position: absolute; right: 18px; top: 18px;
  font-size: 9px; letter-spacing: 0.24em; padding: 3px 7px; border-radius: 4px;
  color: var(--c); border: 1px solid var(--c); opacity: 0.75;
}
.ms-head { display: flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: 0.22em; color: var(--grey-mid); }
.ms-no { color: var(--c); font-weight: 700; }
.my-song h3 { font-size: 24px; margin: 10px 0 4px; color: var(--grey-dark); }
.ms-artist { font-size: 13px; color: var(--grey-mid); margin-bottom: 12px; }
.ms-meta { display: flex; gap: 22px; font-size: 12px; color: var(--grey-mid); margin-bottom: 12px; flex-wrap: wrap; }
.ms-meta b { color: var(--grey-dark); }

.sec-title { display: flex; align-items: baseline; gap: 12px; padding: 10px 16px; border-radius: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sec-title h3 { font-size: 16px; color: var(--grey-dark); }
.sec-count { font-size: 12px; color: var(--grey-mid); font-weight: 400; margin-left: 6px; }
.sec-title p { font-size: 12px; color: var(--grey-mid); }

.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; }
.song-card {
  --c: #39c5bb;
  position: relative; padding: 14px 16px 12px; border-radius: 16px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s, box-shadow 0.25s;
  border-top: 3px solid var(--c);
}
.song-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.sc-top { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; letter-spacing: 0.14em; color: var(--grey-mid); }
.sc-no { font-family: var(--mono, monospace); }
.sc-flag { color: var(--c); border: 1px solid var(--c); border-radius: 4px; padding: 1px 6px; font-size: 9.5px; opacity: 0.85; }
.sc-flag.pending { opacity: 0.6; }
.song-card h4 { font-size: 17px; margin: 12px 0 4px; color: var(--grey-dark); }
.sc-artist { font-size: 12px; color: var(--grey-mid); }
.sc-cut { margin: 12px -16px 10px; border-top: 1px dashed var(--glass-border); }
.sc-bot { display: flex; justify-content: space-between; font-size: 11px; color: var(--grey-mid); }
.sc-bot b { color: var(--grey-dark); }
.song-card.is-claimed { opacity: 0.82; }
.song-card.is-mine { box-shadow: 0 0 0 2px var(--c) inset, var(--shadow); opacity: 1; }

.draw-result {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; text-align: center;
  background: linear-gradient(160deg, rgba(57, 197, 187, 0.92), rgba(20, 120, 112, 0.94));
  color: #fff; animation: drIn 0.5s ease both;
}
.draw-result b { font-size: 26px; }
.draw-result i { font-style: normal; font-size: 13px; opacity: 0.85; }
.dr-kicker { font-size: 10px; letter-spacing: 0.34em; opacity: 0.8; }
@keyframes drIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }

/* 后台曲池管理 */
.song-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 16px; }
.song-form input[type=text] {
  flex: 1 1 160px; min-width: 0; padding: 9px 12px; border-radius: 10px;
  background: var(--input-bg); border: 1px solid var(--glass-border); color: var(--grey-dark); font-size: 13px;
}
.song-form input[type=color] { width: 46px; height: 38px; padding: 3px; border-radius: 10px; background: var(--input-bg); border: 1px solid var(--glass-border); }
.sg-list { display: flex; flex-direction: column; gap: 8px; }
.sg-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--glass-border); flex-wrap: wrap;
}
.sg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sg-id { font-size: 11px; color: var(--grey-mid); font-family: var(--mono, monospace); width: 42px; }
.sg-name { flex: 1 1 160px; display: flex; flex-direction: column; min-width: 0; }
.sg-name b { font-size: 13.5px; color: var(--grey-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-name i { font-style: normal; font-size: 11.5px; color: var(--grey-mid); }
.sg-who { font-size: 12px; color: var(--grey-mid); }
.sg-act { display: flex; gap: 6px; margin-left: auto; }

@media (max-width: 720px) {
  .draw-hero { flex-direction: column; align-items: flex-start; padding: 20px; }
  .dh-ticket { margin: 4px 0 0; width: 100%; height: auto; padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; }
  .dh-num { font-size: 46px; }
  .dh-ticket .dh-word { flex: 1; }
  .dh-hole { display: none; }
  .draw-stats { gap: 8px; }
  .ds-item { padding: 10px 12px; flex-direction: column; gap: 2px; }
  .song-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .song-card { padding: 12px 12px 10px; }
  .sc-cut { margin: 10px -12px 8px; }
  .my-song { padding: 16px; }
  .my-song::after { display: none; }
  .sg-row { padding: 10px 12px; }
  .sg-id { width: auto; }
}
