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

html { -webkit-text-size-adjust: 100%; }
button, a, [role="button"] { touch-action: manipulation; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible { outline-offset: 3px; }

@font-face {
  font-family: 'ZQL';
  src: url('../fonts/rhr-subset.woff2') format('woff2');
  font-display: swap;
}

:root {
  --accent: #839ac9;
  --accent-hover: #6f86b5;
  --accent-strong: #5d74a3;
  --accent-strong-hover: #52678f;
  --accent-soft: rgba(131,154,201,0.1);
  --accent-glow: rgba(131,154,201,0.25);
  --bg: #cfcfcf;
  --glass-bg: rgba(255,255,255,0.45);
  --glass-bg-strong: rgba(255,255,255,0.62);
  --glass-bg-solid: rgba(255,255,255,0.9);
  --glass-border: rgba(255,255,255,0.5);
  --glass-blur: 20px;
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0) 60%);
  --glass-thumb: rgba(255,255,255,0.5);
  --glass-thumb-line: rgba(255,255,255,0);
  --content-bg: transparent;
  --text: #1A1A1A;
  --text-secondary: #4B5563;
  --text-light: #5B6472;
  --border: rgba(0,0,0,0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --spring: cubic-bezier(0.34, 1.1, 0.64, 1);
  --sb-thumb: rgba(0,0,0,0.18);
  --sb-thumb-hover: rgba(0,0,0,0.34);
}

html.dark {
  --bg: #1B2230;
  --glass-bg: rgba(30,38,52,0.62);
  --glass-bg-strong: rgba(30,38,52,0.8);
  --glass-bg-solid: rgba(30,38,52,0.94);
  --glass-border: rgba(255,255,255,0.07);
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 40%, rgba(255,255,255,0) 60%);
  --glass-thumb: rgba(255,255,255,0.06);
  --glass-thumb-line: rgba(255,255,255,0);
  --content-bg: transparent;
  --text: #E8EAED;
  --text-secondary: #9AA0AC;
  --text-light: #8A93A3;
  --border: rgba(255,255,255,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.25);
  --sb-thumb: rgba(255,255,255,0.18);
  --sb-thumb-hover: rgba(255,255,255,0.36);
}

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

html {
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* 主题切换：临时关闭所有过渡，避免大量 backdrop-filter 图层逐帧重算导致掉帧 */
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}
.theme-fade {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: var(--bg);
  animation: themeFadeOut 0.28s ease-out both;
}
@keyframes themeFadeOut {
  from { opacity: 0.55; }
  to { opacity: 0; }
}

/* ================= 交互动效层 ================= */
:root {
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --ease-spring-soft: cubic-bezier(.34,1.24,.64,1);
  --ease-out-quint: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);
  --ease-in: cubic-bezier(.4,0,1,1);
  --dur-fast: .18s;
  --dur-base: .28s;
  --dur-slow: .4s;
  /* 卡片列表入场时长：与 JS 的 .04s 阶梯配套 */
  --dur-card: .62s;
}

/* 页面进入 */
.content-inner { animation: pageIn .38s var(--ease-soft) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

/* PJAX 无刷新切换：内容淡入 + 顶部细进度条 */
.main-body.pjax-in { animation: pjaxIn .32s var(--ease-soft) both; }
@keyframes pjaxIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}
/* 退场：旧内容先淡出，JS 等 140ms 再整体替换；
   入场交给新 DOM 里 .content-inner 自带的 pageIn，形成「先出后进」的完整转场 */
.content-area.pjax-out {
  opacity: 0;
  transition: opacity .14s var(--ease-in);
}
.pjax-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  z-index: 10001; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width .35s var(--ease-soft), opacity .2s;
}
.pjax-bar.active { opacity: 1; width: 72%; }
.pjax-bar.done { opacity: 0; width: 100%; }

/* 图片渐显由已有的 initImgLoading() + .img-fade/.loaded 机制负责 */

/* 按钮按压反馈 */
.btn, .topbar-btn, .link-apply-btn, .lb-tool {
  transition: transform .18s var(--ease-soft), background .2s, color .2s, box-shadow .2s;
}
.btn:active, .topbar-btn:active, .link-apply-btn:active {
  transform: scale(.972);
}

/* 按钮提交加载态在 JS 里用 spinner 图标替换内容，避免覆盖灯箱/天气的 .is-loading */

html, body {
  height: 100%; overflow: hidden;
  font-family: 'ZQL', -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image: none;
  background-size: 1440px 1440px;
}
html.dark body {
  background-image: none;
}
html.dark img {
  filter: brightness(0.88) saturate(0.92);
}

.page {
  width: 920px; max-width: 100%; margin: 0 auto;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 20px 0;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  position: relative;
}
@supports not (backdrop-filter: blur(1px)) {
  .glass { background: var(--glass-bg-strong); }
  .sidebar { background: var(--glass-bg-strong) !important; }
  .mobile-search { background: var(--glass-bg-strong); }
  .post-card-simple { background: var(--glass-bg-strong); }
  .post-card { background: var(--glass-bg-strong); }
  .bottom-bar { background: var(--glass-bg-strong); }
  .pg-card { background: var(--glass-bg-strong); }
}
.glass::before {
  display: none;
}

.shell {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
}

.topbar {
  height: var(--topbar-h, 90px); min-height: var(--topbar-h, 90px);
  display: flex; align-items: center;
  padding: 0 24px; gap: 0;
  position: relative; z-index: 5;
}
.topbar-brand {
  display: flex; align-items: center; gap: 12px;
  cursor: default; /* not clickable */
  flex-shrink: 0;
}
/* 品牌区不做悬停 / 按压反馈：既不是链接，也不该看起来可点 */
.topbar-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 296px; max-width: calc(100% - 400px);
}
.topbar-center i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-light); font-size: 13px; pointer-events: none; -webkit-tap-highlight-color: transparent; z-index: 2;
}
.topbar-search {
  width: 100%; height: 38px; border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border); padding: 0 16px 0 38px;
  font-size: 13px; color: var(--text);
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(var(--glass-blur));
  outline: none; transition: all .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.topbar-search::placeholder { color: var(--text-secondary); }
.topbar-search:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.75);
  box-shadow: 0 2px 12px var(--accent-glow);
}
html.dark .topbar-search {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
}
html.dark .topbar-search:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 2px 12px var(--accent-glow);
}
.topbar-brand .brand-icon {
  width: 66px; height: 66px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; font-weight: 700;
  box-shadow: 0 3px 12px var(--accent-glow);
}
.topbar-brand .brand-name { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.topbar-brand .brand-logo-img { height: 54px; width: auto; border-radius: var(--radius-sm); object-fit: contain; }

.img-shimmer-wrap {
  display: block; position: relative; overflow: hidden;
  border-radius: inherit;
}
.img-shimmer-wrap img {
  display: block; margin: 0;
}
.img-loading {
  position: relative; overflow: hidden;
  background: rgba(0,0,0,0.04);
}
.img-loading::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(0,0,0,0.04) 30%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.04) 70%);
  background-size: 300% 100%;
  animation: imgSweep 1.4s ease-in-out infinite;
  border-radius: inherit;
  pointer-events: none;
}
@keyframes imgSweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
html.dark .img-loading {
  background: rgba(255,255,255,0.04);
}
html.dark .img-loading::before {
  background: linear-gradient(110deg, rgba(255,255,255,0.04) 30%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 70%);
  background-size: 300% 100%;
}
.img-loading img {
  opacity: 0;
}
img.loaded {
  opacity: 1;
}
/* 图片解码完成后柔和显现（高优先级，覆盖各页面的 transform 过渡） */
html body .photo-item img, html body .photo-single img,
html body .post-cover img, html body .album-cover img,
html body .friend-feed-avatar img, html body .link-avatar img, html body .article-content img {
  transition: opacity .6s cubic-bezier(.22,1,.36,1), filter .6s cubic-bezier(.22,1,.36,1), transform .3s ease;
}
img.img-fade {
  opacity: 0;
  filter: blur(14px);
}
.topbar-center .m-brand-icon, .topbar-center .m-brand-name { display: none; }
.topbar-center .m-brand-logo-img { display: none; }
.topbar-spacer { flex: 1; }

.topbar-actions { display: flex; align-items: center; gap: 6px; position: relative; }

.topbar-btn.info-btn { display: none; }
.site-info-pop {
  position: absolute; top: calc(100% + 10px); left: 12px;
  min-width: 210px; padding: 12px 16px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  font-size: 12px; color: var(--text-light); line-height: 1.7;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center; white-space: nowrap;
  opacity: 0; transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-in-out), transform .22s var(--ease-in-out);
  z-index: 60;
}
.site-info-pop.active { opacity: 1; transform: none; pointer-events: auto; transition: opacity var(--dur-fast) var(--ease-out-quint), transform .26s var(--ease-spring-soft); }
.site-info-pop a { color: var(--text-light); text-decoration: none; }
.site-info-pop a:active { color: var(--accent); }

.topbar-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--text-secondary);
  transition: background var(--dur-fast) var(--ease-out-quint), color var(--dur-fast) var(--ease-out-quint), transform var(--dur-fast) var(--ease-out-quint); font-size: 14px; position: relative;
}
.topbar-btn:hover { background: rgba(0,0,0,0.06); color: var(--text); }
html.dark .topbar-btn:hover { background: rgba(255,255,255,0.08); }

/* 顶栏线性图标（与通知信封同一套笔画） */
.topbar-ico {
  width: 15px; height: 15px; display: block;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Remix Icon 素材库图标（自带描边形状，用填充上色） */
.topbar-ico-ri { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.theme-ico-moon .topbar-ico-ri { width: 15px; height: 15px; }
.topbar-search-ico {
  position: absolute; left: 14px; top: 50%;
  width: 14px; height: 14px; transform: translateY(-50%);
  color: var(--text-light); pointer-events: none; z-index: 2;
}
.theme-ico { display: flex; align-items: center; justify-content: center; }
.theme-ico-sun { display: none; }
html.dark #themeToggle .theme-ico-sun { display: flex; }
html.dark #themeToggle .theme-ico-moon { display: none; }

/* ---------------- 评论通知（灵动岛式胶囊 + 下拉面板） ---------------- */
#noticeBtn {
  --ni-w: 31px;
  width: var(--ni-w); height: 31px;
  padding: 0; gap: 0;
  justify-content: center;
  /* 与旁边圆按钮同一套：2.5px 描边、透明底 */
  border: 1.5px solid var(--border); border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  overflow: hidden;
  box-shadow: none;
  transition: width .46s var(--ease-spring-soft),
              padding .3s var(--ease-out-quint),
              background .3s var(--ease-out-quint), color .3s var(--ease-out-quint),
              border-color .3s var(--ease-out-quint), box-shadow .3s var(--ease-out-quint);
}
#noticeBtn:hover { background: rgba(0,0,0,0.045); }
html.dark #noticeBtn:hover { background: rgba(255,255,255,0.07); }
/* 按下不做缩放：.topbar-btn:active 的 scale(.972) 会让胶囊看起来"被捏一下" */
#noticeBtn:active { transform: none; }
#noticeBtn.is-open { box-shadow: 0 0 0 2px var(--accent-soft); }
#noticeBtn:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 2px var(--accent);
}
/* 信封：收起时在圆心，展开时让到左边，把中间留给文字 */
.notice-btn .notice-ico {
  position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px; display: block;
  transform: translate(-50%, -50%);
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: left .46s var(--ease-spring-soft), transform .46s var(--ease-spring-soft);
}
#noticeBtn.is-open .notice-ico,
#noticeBtn.is-peek .notice-ico {
  left: 10px; transform: translate(0, -50%);
}
/* 展开后从胶囊中间长出来的文字 */
.notice-island-label {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  max-width: 0; opacity: 0; overflow: hidden;
  transform: translateY(2px);
  white-space: nowrap; pointer-events: none;
  transition: max-width .46s var(--ease-spring-soft),
              opacity .2s var(--ease-out-quint),
              transform .38s var(--ease-spring-soft);
}
.notice-island-title { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.notice-island-count {
  font-size: 10px; font-weight: 600;
  color: var(--accent-strong);
}
html.dark .notice-island-count { color: var(--accent); }
.notice-island-count[hidden] { display: none; }
/* 悬停不做任何展开：只有未读 / 播放 / 打开面板时才长成胶囊 */
/* 打开面板时胶囊保持收起（也不跟随悬停展开），中间留给信封 */
#noticeBtn.is-open { --ni-w: 31px; }
#noticeBtn.is-open .notice-ico { left: 50%; transform: translate(-50%, -50%); }
#noticeBtn.is-open .notice-island-label {
  flex: 0 0 auto;
  max-width: 0; opacity: 0; transform: translateY(2px);
}
/* 有未读：信封固定在左侧，文字整体居中 */
#noticeBtn.is-peek {
  --ni-w: 130px;
  justify-content: center;
  padding: 0 10px; gap: 0;
}
#noticeBtn.is-peek .notice-ico {
  position: absolute; left: 10px; top: 50%;
  transform: translate(0, -50%);
}
/* 未读态只报数量，不再显示「通知中心」 */
#noticeBtn.is-peek .notice-island-title { display: none; }
#noticeBtn.is-peek .notice-island-label {
  flex: 1 1 auto;
  justify-content: center;
  max-width: none; opacity: 1; transform: none;
}
#noticeBtn.is-peek .notice-island-count { font-size: 11px; }
/* 有新通知：淡强调色底常驻，一圈光缓慢呼吸，信封隔几秒轻摇一下 */
#noticeBtn.is-peek {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  animation: islandBreathe 3.4s var(--ease-in-out) infinite;
}
html.dark #noticeBtn.is-peek {
  border-color: rgba(131,154,201,0.55);
  background: rgba(131,154,201,0.16);
  color: var(--accent);
}
@keyframes islandBreathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(131,154,201,0.26); }
  58%      { box-shadow: 0 0 0 5px rgba(131,154,201,0.07); }
}
#noticeBtn.is-peek .notice-ico { animation: niWiggle 3.4s var(--ease-in-out) infinite; }
@keyframes niWiggle {
  0%, 74%, 100% { transform: translate(0, -50%) rotate(0deg); }
  78%           { transform: translate(0, -50%) rotate(-9deg); }
  82%           { transform: translate(0, -50%) rotate(8deg); }
  86%           { transform: translate(0, -50%) rotate(-5deg); }
  90%           { transform: translate(0, -50%) rotate(3deg); }
}

/* 正在放歌：胶囊常驻展开，改成均衡器 + 歌名，像灵动岛的实时活动 */
.notice-island-eq {
  display: none; align-items: flex-end; justify-content: center;
  gap: 2.5px; width: 16px; height: 14px; flex: 0 0 auto;
}
.notice-island-eq i {
  width: 2.5px; border-radius: 999px;
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, currentColor 0% 62%, transparent 100%);
  opacity: .95;
  animation: niEq 1.05s cubic-bezier(.45,0,.55,1) infinite alternate;
}
.notice-island-eq i:nth-child(1) { height: 7px;  animation-delay: -.62s; }
.notice-island-eq i:nth-child(2) { height: 12px; animation-delay: -.24s; }
.notice-island-eq i:nth-child(3) { height: 9px;  animation-delay: -.86s; }
.notice-island-eq i:nth-child(4) { height: 13px; animation-delay: -.42s; }
@keyframes niEq {
  0%   { transform: scaleY(.34); }
  100% { transform: scaleY(1); }
}
.notice-island-song {
  max-width: 104px; overflow: hidden;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  letter-spacing: .012em;
  white-space: nowrap; text-overflow: ellipsis;
  display: none;
}
/* 播放时左侧旋转的唱片：有封面就铺封面，没有就退回纹路唱片 */
.notice-island-vinyl {
  display: none;
  /* 用 top/bottom + margin:auto 居中，避开 translateY(-50%) 产生的半像素偏移 */
  position: absolute; left: 4px; top: 0; bottom: 0;
  margin: auto 0;
  /* 23px 奇数尺寸配 31px 高 + 1px 描边，正好落在整像素上（top=4） */
  width: 23px; height: 23px; border-radius: 50%;
  will-change: rotate;
  background-color: #2a3448;
  background-image:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 42%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.16) 0 1px, rgba(255,255,255,0.02) 1px 2.6px);
  box-shadow:
    0 0 0 1px var(--ni-ring, rgba(255,255,255,0.92)),
    0 1px 2px rgba(15,23,42,0.18),
    0 2px 7px -2px rgba(15,23,42,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.14);
  overflow: hidden;
  z-index: 2;
}
/* 封面唱片：封面铺满盘面，外圈压一层暗角做成黑胶的沟槽感 */
#noticeBtn.is-playing .notice-island-vinyl.has-cover {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(18,26,42,0) 54%, rgba(18,26,42,0.30) 76%, rgba(18,26,42,0.58) 100%),
    var(--vinyl-cover);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}
.notice-island-vinyl::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(148deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.06) 38%, rgba(255,255,255,0) 58%);
  pointer-events: none;
}
/* 中心轴孔：白圈 + 深色孔，比原来的实心白点更像唱片 */
.notice-island-vinyl::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1c2438 0 2px, rgba(255,255,255,0.92) 2.2px 100%);
  box-shadow: 0 0 0 1px rgba(30,42,66,0.25);
}
/* 播放态：底色 / 描边 / hover 全部沿用 #noticeBtn 本身（和旁边圆按钮一模一样），
   不再做任何抬升和阴影，只靠胶囊内部的动效表达"正在播放" */
#noticeBtn.is-playing {
  --ni-w: 154px;
  --ni-fg: var(--text);
  --ni-ring: rgba(0,0,0,0.14);
  padding: 0; gap: 0;
  justify-content: center;
  color: var(--ni-fg);
  transition: width .46s var(--ease-spring-soft), color .3s var(--ease-out-quint);
}
html.dark #noticeBtn.is-playing {
  --ni-ring: rgba(255,255,255,0.55);
}
#noticeBtn.is-playing .notice-island-vinyl { display: block; }
/* 歌名在唱片与均衡器之间居中 */
#noticeBtn.is-playing .notice-island-label {
  flex: 1 1 auto;
  max-width: 154px; justify-content: center;
  padding: 0 24px 0 33px;
  position: relative; z-index: 2;
  opacity: 1; transform: none;
}
#noticeBtn.is-playing .notice-island-eq {
  display: inline-flex;
  position: absolute; left: auto; right: 8px; top: 50%; bottom: auto;
  transform: translateY(-50%);
  z-index: 2;
}
#noticeBtn.is-playing .notice-island-eq i {
  /* 与按钮同色系的纯色柱，不发散光晕 */
  box-shadow: none;
  opacity: 1;
}
#noticeBtn.is-playing .notice-island-song {
  display: block; max-width: 100px;
  font-size: 12px; font-weight: 600; letter-spacing: .012em;
  color: var(--ni-fg);
}
#noticeBtn.is-playing .notice-island-title,
#noticeBtn.is-playing .notice-island-count { display: none; }
/* 播放时信封让位，只留唱片、歌名和均衡器 */
#noticeBtn.is-playing .notice-ico { display: none; }
/* 播放中点开通知面板：胶囊不收缩、不回到圆形，保持播放中的形态 */
@media (min-width: 921px) {
  #noticeBtn.is-playing.is-open {
    --ni-w: 154px;
    padding: 0;
  }
  #noticeBtn.is-playing.is-open .notice-island-label {
    flex: 1 1 auto;
    max-width: 154px;
    opacity: 1;
    transform: none;
  }
  #noticeBtn.is-playing.is-open .notice-ico { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  #noticeBtn.is-playing .notice-island-vinyl { animation: niSpin 9s linear infinite; }
}
@keyframes niSpin { to { rotate: 360deg; } }
/* 移动端不用灵动岛：按钮始终是圆形，播放时换成均衡器，有未读时沿用 PC 的配色与抖动 */
@media (max-width: 920px) {
  #noticeBtn,
  #noticeBtn:hover,
  #noticeBtn.is-open,
  #noticeBtn.is-peek,
  #noticeBtn.is-playing {
    --ni-w: 31px;
    padding: 0;
    justify-content: center;
  }
  #noticeBtn .notice-island-label,
  #noticeBtn:hover .notice-island-label,
  #noticeBtn.is-open .notice-island-label,
  #noticeBtn.is-peek .notice-island-label { max-width: 0; opacity: 0; }
  /* 播放中：均衡器相对按钮居中，信封、唱片隐藏（同时有未读时也要压过 is-peek 的隐藏） */
  #noticeBtn.is-playing .notice-island-vinyl { display: none; }
  #noticeBtn.is-playing .notice-island-label {
    position: static;
    flex: 0 0 auto;
    padding: 0;
    max-width: 20px; opacity: 1; transform: none;
  }
  #noticeBtn.is-playing .notice-island-eq {
    left: 50%; top: 50%; bottom: auto;
    transform: translate(-50%, -50%);
  }
  #noticeBtn.is-playing .notice-island-song,
  #noticeBtn.is-playing .notice-island-title,
  #noticeBtn.is-playing .notice-island-count { display: none; }
  #noticeBtn .notice-ico,
  #noticeBtn:hover .notice-ico,
  #noticeBtn.is-open .notice-ico { left: 50%; top: 50%; transform: translate(-50%, -50%); }
  /* 有未读：信封在圆心轻摇，配色 / 呼吸光沿用 PC */
  #noticeBtn.is-peek .notice-ico {
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    animation: niWiggleCenter 3.4s var(--ease-in-out) infinite;
  }
  #noticeBtn.is-playing .notice-ico { display: none; }
}
@keyframes niWiggleCenter {
  0%, 74%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  78%           { transform: translate(-50%, -50%) rotate(-9deg); }
  82%           { transform: translate(-50%, -50%) rotate(8deg); }
  86%           { transform: translate(-50%, -50%) rotate(-5deg); }
  90%           { transform: translate(-50%, -50%) rotate(3deg); }
}
.notice-badge {
  display: none;
  position: absolute; top: 2px; right: 3px; z-index: 2;
  width: 6px; height: 6px; padding: 0; min-width: 0;
  border-radius: 50%; background: #ff453a; color: transparent;
  font-size: 0; line-height: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.9), 0 0 6px rgba(255,69,58,0.7);
}
html.dark .notice-badge { box-shadow: 0 0 0 1.5px rgba(30,36,47,0.9), 0 0 6px rgba(255,69,58,0.7); }
/* 胶囊展开报数 / 面板打开时，红点交给文字和 Tab 表达，不再挂在胶囊角上 */
#noticeBtn.is-peek .notice-badge,
#noticeBtn.is-open .notice-badge { display: none; }
.notice-badge[hidden] { display: none; }
.notice-badge.is-pop { animation: noticeBadgePop .34s cubic-bezier(.22,1,.36,1); }
@keyframes noticeBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.22); }
  100% { transform: scale(1); }
}

/* ---- 通知面板动效：一套统一时间轴 ----
   展开 = 面板从右上角轻微下坠放大 + 头部先入场 + 条目按 26ms 阶梯跟上
   收起 = 直接回落淡出，比展开快一档，手感干脆
   换 Tab / 骨架 → 内容 = 只过渡高度，条目再淡入一次
   只动 transform / opacity（合成器负责），不用 clip-path / backdrop-filter，
   避免动画期间逐帧重绘整块面板导致掉帧。 */
/* 面板由 JS 挂到 body 下并定位（见 main.v2.js 的 placePanel）：
   .shell 自带 backdrop-filter，面板若留在里面会受 backdrop root 限制，
   自己的模糊采样不到页面内容，看起来就和移动端悬浮栏不一致。 */
.notice-pop {
  --notice-open: cubic-bezier(.16,1,.3,1);
  --notice-ease: cubic-bezier(.33,1,.68,1);
  position: fixed; top: 0; right: 0;
  width: min(400px, calc(100vw - 32px));
  display: flex; flex-direction: column;
  /* 与移动端悬浮栏同一档玻璃底色，模糊观感一致 */
  background: var(--glass-bg-strong);
  /* 与移动端悬浮栏（.mobile-tabbar）同一档模糊度 */
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 18px;
  box-shadow: 0 28px 56px -22px rgba(20,30,45,0.55), 0 4px 16px -10px rgba(20,30,45,0.32), inset 0 1px 0 rgba(255,255,255,0.9);
  max-height: min(60vh, 432px);
  opacity: 0;
  transform: translateY(-10px) scale(.94);
  transform-origin: calc(100% - 18px) 0;
  filter: blur(6px);
  visibility: hidden;
  pointer-events: none;
  overflow: hidden; z-index: 200;
  transition: opacity .15s var(--notice-ease),
              transform .2s cubic-bezier(.4,0,.7,1),
              filter .16s ease,
              visibility 0s linear .2s;
}
html.dark .notice-pop {
  background: var(--glass-bg-strong);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 28px 56px -22px #000, 0 4px 16px -10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
}
.notice-pop > * { position: relative; z-index: 1; }
/* 心情 / 漂流瓶：面板跟随内容长高，而不是在内部挤出一条滚动条 */
.notice-pop.is-tall { max-height: min(calc(100vh - 28px), 760px); }
.notice-pop.is-tall .notice-mood,
.notice-pop.is-tall .notice-vibe { flex: 0 1 auto; overflow: visible auto; }
.notice-pop.active {
  opacity: 1; transform: none; filter: blur(0);
  visibility: visible; pointer-events: auto;
  will-change: transform, opacity;
  transition: opacity .2s var(--notice-ease),
              transform .42s var(--notice-open),
              filter .26s var(--notice-ease),
              height .4s var(--notice-open),
              visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .notice-pop, .notice-pop.active {
    transition: opacity .12s linear, visibility 0s;
    transform: none; filter: none;
  }
  .notice-pop.active .notice-head,
  .notice-pop.active .notice-item,
  .notice-pop.active .notice-board-item { animation: none !important; }
}

/* 高度过渡的那几百毫秒里，新内容可能比当前高度高：
   先把内部滚动收起来，避免闪一条滚动条又消失（视觉上像画面跳了一下） */
.notice-pop.is-resizing .notice-list,
.notice-pop.is-resizing .notice-mood,
.notice-pop.is-resizing .notice-vibe,
.notice-pop.is-resizing .notice-board-view { overflow: hidden !important; }

/* 头部比面板慢半拍出现，让「揭开」有先后而不是整块闪现 */
.notice-pop.active .notice-head { animation: noticeHeadIn .38s var(--notice-open) both; }
@keyframes noticeHeadIn {
  from { opacity: 0; transform: translateY(-7px); }
  to   { opacity: 1; transform: none; }
}

.notice-head {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 9px;
  padding: 12px 14px 10px;
  /* 与站内卡片同一套毛玻璃：浅白玻璃底 + 一条极淡的分区描边 */
  background: rgba(255,255,255,0.4);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
html.dark .notice-head { background: rgba(255,255,255,0.04); border-bottom-color: rgba(255,255,255,0.08); }
.notice-head-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.notice-head-title {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--text);
}
.notice-head-title i {
  width: 21px; height: 21px; border-radius: 7px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-secondary); background: rgba(0,0,0,0.05);
}
html.dark .notice-head-title i { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.notice-head-count {
  display: inline-flex; align-items: center; height: 17px; padding: 0 8px;
  border-radius: 999px; background: rgba(0,0,0,0.05); border: 1px solid transparent;
  font-size: 9.5px; font-weight: 700; line-height: 1; letter-spacing: 0;
  color: var(--text-secondary);
}
.notice-head-count[hidden] { display: none; }
html.dark .notice-head-count { background: rgba(255,255,255,0.08); border-color: transparent; color: var(--text-secondary); }
.notice-head-actions { display: flex; align-items: center; gap: 1px; flex-shrink: 0; }
.notice-markall {
  border: none; background: transparent; cursor: pointer;
  font-size: 10.5px; color: var(--text-secondary);
  padding: 4px 7px; border-radius: 7px; line-height: 1;
  transition: color .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.notice-markall:hover { color: var(--accent); background: var(--accent-soft); }
.notice-refresh,
.notice-close {
  width: 24px; height: 24px; padding: 0; border: none; background: transparent;
  cursor: pointer; color: var(--text-secondary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s, transform .2s;
}
.notice-refresh svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.notice-close i { font-size: 14px; }
.notice-refresh:hover,
.notice-close:hover { color: var(--accent); background: var(--accent-soft); }
.notice-close:active { transform: scale(.9); }
.notice-refresh.is-spinning svg { animation: noticeSpin .6s linear; }
@keyframes noticeSpin { to { transform: rotate(360deg); } }
.notice-tab-count {
  position: absolute; top: -1px; right: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 12px; height: 12px; padding: 0 3px;
  border-radius: 999px; background: #e5484d; color: #fff;
  font-size: 8px; line-height: 1; font-weight: 600;
  box-shadow: 0 0 0 1.5px var(--glass-bg-strong);
}
.notice-tab-count[hidden] { display: none; }
/* 五段等宽分段控件：与归档页年份切换完全同款的轨道 + 玻璃滑块 */
.notice-tabs {
  position: relative; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 3px; border-radius: 999px;
  background: rgba(0,0,0,0.045);
  border: 1px solid rgba(0,0,0,0.045);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
html.dark .notice-tabs { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.05); box-shadow: none; }
/* 与归档页 .arch-years .slide-thumb 同一套玻璃滑块 */
.notice-tab-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: 0; border-radius: 999px;
  background: var(--glass-thumb);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-thumb-line), inset 0 0 0 1px var(--glass-border), 0 1px 3px rgba(0,0,0,.05);
  opacity: 0; pointer-events: none;
  transition: transform .32s var(--ease-spring-soft), width .32s var(--ease-spring-soft), opacity .2s;
}
.notice-tab-thumb.is-ready { opacity: 1; }
.notice-tab {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  border: none; background: transparent; cursor: pointer;
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 2px; border-radius: 999px; line-height: 1.3; white-space: nowrap;
  transition: color .22s;
  -webkit-tap-highlight-color: transparent;
}
.notice-tab i { font-size: 11.5px; opacity: .85; transition: opacity .22s; }
.notice-tab:hover { color: var(--text); }
.notice-tab.is-active {
  color: var(--text); font-weight: 600;
}
html.dark .notice-tab.is-active { color: var(--text); }
.notice-tab.is-active i { opacity: 1; }
.notice-new-dot {
  width: 5px; height: 5px; margin-left: 1px;
  border-radius: 50%; background: #e5484d;
  display: inline-block; vertical-align: middle;
  flex-shrink: 0;
}
.notice-new-dot[hidden] { display: none; }
/* 切换 Tab：内容按方向轻推一下再落位，和滑块的横向移动呼应 */
.notice-view-in { animation: noticeViewIn .3s var(--notice-open) both; }
@keyframes noticeViewIn {
  from { opacity: 0; transform: translateX(var(--tab-dx, 9px)); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .notice-view-in { animation: none; }
}

/* 站内公告视图：一条时间轴，节点用强调色圆点，未读时点会亮起来 */
.notice-board-view {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 14px 16px;
  scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent;
}
.notice-board-view[hidden] { display: none; }
.notice-board-view::-webkit-scrollbar { width: 4px; }
.notice-board-view::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 4px; }
/* 公告：每条一张轻玻璃卡，日期作为卡片顶部元信息 */
.notice-board-list {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.notice-board-item {
  position: relative; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 1px 2px rgba(0,0,0,0.035);
  transition: background .28s, border-color .28s, box-shadow .28s;
}
html.dark .notice-board-item {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}
.notice-board-item:hover {
  background: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 6px 18px rgba(0,0,0,0.055);
}
html.dark .notice-board-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.13); }
.notice-pop.active .notice-board-item { animation: noticeItemIn .4s var(--notice-open) both; }
.notice-pop.active .notice-board-item:nth-child(2) { animation-delay: .1s; }
.notice-pop.active .notice-board-item:nth-child(3) { animation-delay: .14s; }
.notice-pop.active .notice-board-item:nth-child(n+4) { animation-delay: .18s; }
.notice-board-bullet { display: none; }
.notice-board-main { min-width: 0; display: flex; flex-direction: column; }
.notice-board-date {
  order: -1;
  display: inline-flex; align-items: center; gap: 5px;
  margin: 0 0 4px; padding: 0;
  background: none; border: 0;
  font-size: 9px; font-weight: 600; line-height: 1.4;
  letter-spacing: .06em; color: var(--text-light);
}
.notice-board-date::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; opacity: .5; flex: none;
}
.notice-board-text {
  margin: 0; font-size: 12.5px; line-height: 1.6;
  color: var(--text); word-break: break-word;
}
/* 未读：淡淡主题色 + 日期高亮 + 加粗 */
.notice-board-item.is-unread {
  background: rgba(131,154,201,0.08);
  border-color: rgba(131,154,201,0.22);
}
html.dark .notice-board-item.is-unread {
  background: rgba(131,154,201,0.15);
  border-color: rgba(131,154,201,0.28);
}
.notice-board-item.is-unread .notice-board-text { font-weight: 600; }
.notice-board-item.is-unread .notice-board-date { color: var(--accent-strong); }
html.dark .notice-board-item.is-unread .notice-board-date { color: var(--accent); }
.notice-board-new {
  display: inline-block; margin-left: 6px; padding: 0 7px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05); color: var(--text-secondary);
  font-size: 9px; line-height: 15px; font-weight: 600;
  vertical-align: 1px; transition: opacity .3s;
}
html.dark .notice-board-new { background: rgba(255,255,255,0.09); }
.notice-board-new.is-fading { opacity: 0; }

/* 点击后立即展开，先给三行骨架，数据回来再替换 */
.notice-skeleton {
  display: flex; flex-direction: column; gap: 7px; padding: 8px 6px 4px;
  animation: noticeFadeIn var(--dur-fast) var(--ease-out-quint) both;
}
@keyframes noticeFadeIn { from { opacity: 0; } }
.notice-skeleton span {
  display: block; height: 46px; border-radius: 11px;
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.09) 37%, rgba(0,0,0,0.05) 63%);
  background-size: 400% 100%;
  animation: noticeShimmer 1.2s ease infinite;
}
html.dark .notice-skeleton span {
  background-image: linear-gradient(90deg, rgba(255,255,255,0.055) 25%, rgba(255,255,255,0.11) 37%, rgba(255,255,255,0.055) 63%);
}
@keyframes noticeShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.notice-list {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  /* 评论列表基本都会滚动：常驻预留滚动条槽位，
     从骨架切到内容时不发生横向位移。
     右侧不再额外给 padding，让卡片到滚动条的间距与左侧一致 */
  padding: 8px 0 10px 10px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--sb-thumb) transparent;
}
.notice-list::-webkit-scrollbar { width: 4px; }
.notice-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 4px; }
html.dark .notice-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
/* 评论卡片：与站内卡片同一套简化毛玻璃 */
.notice-item {
  position: relative;
  display: flex; gap: 9px; padding: 10px;
  border-radius: 13px; text-decoration: none; color: inherit;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 7px;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
html.dark .notice-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
}
.notice-item:last-child { margin-bottom: 0; }
.notice-item:hover {
  background: rgba(255,255,255,0.68);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
html.dark .notice-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); }
.notice-row1 {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  padding-bottom: 5px; margin-bottom: 5px;
}
/* 未读：淡淡主题色底 + 左侧细竖条，比整条高亮更克制 */
.notice-item.is-new {
  background: rgba(131,154,201,0.10);
  border-color: rgba(131,154,201,0.24);
}
.notice-item.is-new::before {
  content: ''; position: absolute; left: 3px; top: 10px; bottom: 10px;
  width: 3px; border-radius: 999px;
  background: var(--accent);
}
.notice-item.is-new:hover { background: rgba(131,154,201,0.14); }
html.dark .notice-item.is-new {
  background: rgba(131,154,201,0.16);
  border-color: rgba(131,154,201,0.28);
}
/* 展开后列表项依次淡入，让「揭开」更有层次；延迟从头部动画之后接上 */
.notice-pop.active .notice-item { animation: noticeItemIn .4s var(--notice-open) both; }
.notice-pop.active .notice-item:nth-child(1) { animation-delay: .08s; }
.notice-pop.active .notice-item:nth-child(2) { animation-delay: .115s; }
.notice-pop.active .notice-item:nth-child(3) { animation-delay: .15s; }
.notice-pop.active .notice-item:nth-child(4) { animation-delay: .185s; }
.notice-pop.active .notice-item:nth-child(n+5) { animation-delay: .22s; }
@keyframes noticeItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.notice-avatar {
  position: relative; flex-shrink: 0; width: 32px; height: 32px;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9);
}
html.dark .notice-avatar { box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }
.notice-avatar-text { font-size: 12px; font-weight: 700; color: #fff; }
.notice-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.notice-main { min-width: 0; flex: 1; display: block; }
.notice-name {
  font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice-tag {
  flex-shrink: 0; font-size: 8.5px; font-weight: 600; line-height: 1;
  padding: 2px 6px; border-radius: 999px;
  color: var(--text-light); background: rgba(0,0,0,0.04);
  border: 1px solid transparent;
}
html.dark .notice-tag { background: rgba(255,255,255,0.07); border-color: transparent; color: var(--text-light); }
.notice-dot {
  flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 8px 0 rgba(131,154,201,0.55);
}
.notice-time { margin-left: auto; flex-shrink: 0; font-size: 9px; color: var(--text-light); white-space: nowrap; }
.notice-text {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-top: 0;
  font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); word-break: break-word;
}
.notice-text i { font-size: 10px; margin-right: 2px; opacity: .8; }
.notice-post {
  display: inline-block; max-width: 100%; margin-top: 5px;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(0,0,0,0.04); border: 1px solid transparent;
  font-size: 9px; font-weight: 600; line-height: 1.7; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  vertical-align: middle;
}
html.dark .notice-post { background: rgba(255,255,255,0.07); border-color: transparent; color: var(--text-light); }
.notice-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  min-height: 96px; box-sizing: border-box;
  padding: 16px 10px 18px; text-align: center;
  color: var(--text-light); font-size: 11.5px;
}
.notice-empty i {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 8px;
  border-radius: 50%; background: rgba(0,0,0,0.05);
  color: var(--text-light); font-size: 17px; opacity: 1;
}
html.dark .notice-empty i { background: rgba(255,255,255,0.07); color: var(--text-light); }
.notice-empty p { margin: 0; font-size: 12px; font-weight: 600; color: var(--text); }
.notice-loading { padding: 20px 0; text-align: center; font-size: 11.5px; color: var(--text-light); }
.notice-foot {
  flex-shrink: 0; border-top: 1px solid rgba(0,0,0,0.05);
  padding: 7px; display: flex; justify-content: center;
}
.notice-foot[hidden] { display: none; }
.notice-more {
  border: 1px solid rgba(0,0,0,0.07); background: rgba(255,255,255,0.7); cursor: pointer;
  color: var(--text-secondary); font-size: 11px; font-weight: 600; padding: 5px 16px; border-radius: 999px;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
html.dark .notice-more { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.notice-more:hover { color: var(--text); border-color: transparent; background: rgba(0,0,0,0.06); }
html.dark .notice-more:hover { background: rgba(255,255,255,0.1); }
.notice-more:disabled { cursor: default; color: var(--text-light); border-color: transparent; background: transparent; transform: none; box-shadow: none; }

/* ================= 心情 / 小站 ================= */
.notice-mood,
.notice-vibe {
  flex: 1; overflow: hidden auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 11px 14px;
  /* 不留常驻滚动条槽位：没滚动条时右侧会多出 4px，卡片就显得贴右、左右不对称 */
  scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent;
}
.notice-mood[hidden],
.notice-vibe[hidden] { display: none; }
.notice-mood::-webkit-scrollbar,
.notice-vibe::-webkit-scrollbar { width: 4px; }
.notice-mood::-webkit-scrollbar-thumb,
.notice-vibe::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.14); border-radius: 4px; }
html.dark .notice-mood::-webkit-scrollbar-thumb,
html.dark .notice-vibe::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); }
.notice-mood { background: transparent; }
.notice-vibe { background: transparent; }

/* 分段进场 + 卡片光晕流动 */
@keyframes vibePanelIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: none; }
}
.notice-vibe .vibe-chat-head { animation: vibePanelIn .46s var(--ease-out-quint) both; }
.notice-vibe .vibe-composer { animation: vibePanelIn .46s var(--ease-out-quint) .07s both; }
@keyframes vibeBottleIn {
  from { opacity: 0; transform: translateY(10px) rotate(-1.4deg) scale(.985); }
  to   { opacity: 1; transform: none; }
}

/* ================================================================
   心情 Tab：站长情绪卡片（v3 · 标签式 — 状态词=主标签）
   层级：顶栏(头像+名字+日期) → 主标签(emoji+状态词) → 正文 → 分割线 → 歌曲条 → 编辑表单(站长) → 底部元信息
   ================================================================ */
.mood-card {
  position: relative; flex-shrink: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 13px; row-gap: 7px; align-items: start;
  margin: 2px 0 0; padding: 14px 14px 13px; border-radius: 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  animation: moodCardIn .42s var(--ease-out-quint) both;
}
.mood-card.has-status { border-color: rgba(0,0,0,0.06); }
html.dark .mood-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}
html.dark .mood-card.has-status { border-color: rgba(255,255,255,0.1); }
@keyframes moodCardIn {
  from { opacity: 0; transform: translateY(6px) scale(.99); }
  to   { opacity: 1; transform: none; }
}

/* —— 顶栏：大头像 + 名字/日期 + 状态胶囊 —— */
.mood-ava-wrap { position: relative; grid-column: 1; grid-row: 1; align-self: start; }
.mood-ava {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; letter-spacing: .01em; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  overflow: hidden;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.92), 0 6px 16px -10px rgba(20,30,45,.55);
}
html.dark .mood-ava { box-shadow: 0 0 0 3px rgba(255,255,255,0.12); }
.mood-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-online {
  position: absolute; right: 1px; bottom: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: #43b581;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95),
              0 0 0 3px rgba(67,181,129,0.2);
  animation: moodOnline 2.6s ease-out infinite;
}
html.dark .mood-online { box-shadow: 0 0 0 2px rgba(30,36,47,0.95), 0 0 0 3px rgba(67,181,129,0.18); }
@keyframes moodOnline {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.95), 0 0 0 3px rgba(67,181,129,0.2); }
  60%      { box-shadow: 0 0 0 2px rgba(255,255,255,0.95), 0 0 0 6px rgba(67,181,129,0); }
}
/* 展平容器，让内部各行落在卡片网格里 */
.mood-card-body { display: contents; }
.mood-card-top {
  grid-column: 2; grid-row: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px;
  min-width: 0; padding-top: 4px;
}
.mood-owner {
  max-width: 100%;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mood-badge {
  flex-shrink: 0; padding: 1px 7px 2px; border-radius: 999px;
  font-size: 8.5px; font-weight: 700; line-height: 1.6;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.05);
  border: none;
}
html.dark .mood-badge { color: var(--text-secondary); background: rgba(255,255,255,0.08); }
.mood-card-date {
  flex: 1 0 100%; margin-left: 0; margin-top: 1px;
  font-size: 11.5px; color: var(--text-light); opacity: .9;
}

/* —— 主标签：状态胶囊（emoji 白瓷块 + 状态词） —— */
.mood-status-pill {
  grid-column: 3; grid-row: 1; justify-self: end; align-self: start;
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%;
  padding: 3px 13px 3px 4px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.04);
  background: rgba(0,0,0,0.05);
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
  color: var(--text);
  animation: moodPillIn .42s var(--ease-out-quint) both;
}
.mood-card-body > .mood-status-pill,
.mood-status-pill:first-child {
  justify-self: end;
}
html.dark .mood-status-pill {
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.06);
}
.mood-status-pill[hidden] { display: none; }
.mood-status-emoji {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  font-size: 12px; line-height: 1;
  color: var(--text-secondary);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px -3px rgba(20,30,45,.4);
}
html.dark .mood-status-emoji { background: rgba(255,255,255,0.95); color: var(--text-secondary); }
.mood-status-emoji .mood-ico { width: 14px; height: 14px; fill: currentColor; stroke: none; display: block; }
.mood-status-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: inherit;
}
@keyframes moodPillIn {
  from { opacity: 0; transform: translateY(3px) scale(.95); }
  to   { opacity: 1; transform: none; }
}

/* —— 正文 —— */
.mood-text {
  grid-column: 1 / -1;
  margin: 3px 0 0;
  font-size: 13px; line-height: 1.7; letter-spacing: .005em;
  color: var(--text); word-break: break-word;
}

/* —— 分组分割线 —— */
.mood-text + .mood-song {
  position: relative;
  padding-top: 3px;
  margin-top: 0;
}
.mood-text + .mood-card-foot,
.mood-song + .mood-card-foot {
  position: relative;
  padding-top: 8px;
  margin-top: 2px;
}
.mood-text + .mood-card-foot::before {
  content: ''; position: absolute; left: 0; right: 0; top: 3px;
  height: 1px; background: rgba(0,0,0,0.06);
}
html.dark .mood-text + .mood-card-foot::before { background: rgba(255,255,255,0.08); }

/* —— 底部：元信息 + 编辑 —— */
.mood-card-foot {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 6px;
  min-height: 16px;
}
.mood-updated {
  font-size: 10px; color: var(--text-light); opacity: .75;
}
.mood-updated:empty { display: none; }
.mood-card-foot .vibe-mood-edit { margin-left: auto; }

/* 站长编辑入口：浅强调胶囊，边框更细 */
.vibe-mood-edit {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 22px; padding: 0 10px 0 8px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(255,255,255,0.5);
  color: var(--text-secondary);
  font-family: inherit; font-size: 10px; font-weight: 600; line-height: 1;
  transition: all .2s ease;
}
.vibe-mood-edit i { font-size: 11px; }
.vibe-mood-edit:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.vibe-mood-edit.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
html.dark .vibe-mood-edit { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); color: var(--text-secondary); }
html.dark .vibe-mood-edit:hover { background: var(--accent); border-color: var(--accent); color: #12161f; }
html.dark .vibe-mood-edit.is-active { background: var(--accent); border-color: var(--accent); color: #12161f; }

/* ================================================================
   状态编辑面板（站长专属） — 独立卡片风格
   ================================================================ */
.vibe-mood-form.vibe-drop-form {
  display: flex; flex-direction: column;
  margin: 4px 0 0; padding: 12px 12px 10px;
  border-radius: 14px; gap: 10px;
  background: rgba(255,255,255,0.5);
  border: 1px dashed rgba(0,0,0,0.14);
  box-shadow: none;
  animation: vibeMoodFormIn .28s var(--ease-out-quint) both;
}
@keyframes vibeMoodFormIn {
  from { opacity: 0; transform: translateY(-3px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.vibe-mood-form[hidden] { display: none; }
html.dark .vibe-mood-form { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

.vibe-mood-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary);
}
.vibe-mood-head i { font-size: 13px; color: var(--accent); }

/* 预设 chips — 保持胶囊风格但更小 */
.vibe-mood-presets { display: flex; flex-wrap: wrap; gap: 5px; }
.vibe-mood-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px 3px 5px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.65);
  font-family: inherit; font-size: 10px; line-height: 1.5;
  color: var(--text-secondary);
  transition: all .18s ease;
}
.vibe-mood-chip .mood-ico { width: 12px; height: 12px; flex: 0 0 12px; fill: currentColor; stroke: none; display: block; }
.vibe-mood-chip:hover { transform: translateY(-1px); color: var(--accent-strong); }
.vibe-mood-chip.is-active {
  color: var(--accent-strong);
  background: rgba(131,154,201,0.14);
  border-color: rgba(131,154,201,0.28);
}
html.dark .vibe-mood-chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
html.dark .vibe-mood-chip:hover { background: rgba(255,255,255,0.1); color: var(--accent); }
html.dark .vibe-mood-chip.is-active { background: rgba(131,154,201,0.2); border-color: rgba(131,154,201,0.32); color: var(--accent); }

/* emoji + status 输入 */
.vibe-mood-fields { display: flex; gap: 6px; }
.vibe-mood-fields #vibeMoodEmojiInput {
  width: 48px; flex: 0 0 48px; text-align: center;
  padding: 4px 3px; font-size: 16px;
}
.vibe-mood-fields #vibeMoodStatusInput { flex: 1; min-width: 0; }

/* ================================================================
   正在听 — 卡片内嵌 mini 播放器（胶囊条样式）
   ================================================================ */
.mood-song {
  position: relative;
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 3px 12px -9px rgba(20,30,45,.4);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.mood-song:hover {
  background: rgba(255,255,255,0.88);
  box-shadow: 0 6px 18px -12px rgba(20,30,45,.55);
}
.mood-song[hidden] { display: none; }
html.dark .mood-song {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}
html.dark .mood-song:hover { background: rgba(255,255,255,0.09); }
.mood-song-cover {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.06);
  color: var(--text-light); font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}
html.dark .mood-song-cover { background: rgba(255,255,255,0.08); color: var(--text-light); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.mood-song-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mood-song-meta {
  flex: 1; min-width: 0; display: flex; align-items: baseline;
  gap: 0; white-space: nowrap; overflow: hidden;
}
.mood-song-name {
  min-width: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mood-song-artist {
  flex: 0 0 auto; font-size: 12px; font-weight: 500; color: var(--text-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mood-song-artist:not(:empty)::before { content: ' - '; color: var(--text-light); }
/* 播放键：白圈 + 环形进度 */
.mood-song-play {
  position: relative;
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--text); font-size: 12px;
  border: 0; cursor: pointer; padding: 0;
  box-shadow: 0 1px 3px rgba(20,30,45,.16);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
html.dark .mood-song-play { background: rgba(255,255,255,0.12); color: var(--text); box-shadow: none; }
.mood-song-play[hidden] { display: none; }
/* 环形进度：--p 由 js 写入 0~100 */
.mood-song-play::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--text) calc(var(--p, 0) * 1%), rgba(0,0,0,0.12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  transition: opacity .2s ease;
  pointer-events: none;
}
html.dark .mood-song-play::before {
  background: conic-gradient(from -90deg, var(--text) calc(var(--p, 0) * 1%), rgba(255,255,255,0.16) 0);
}
.mood-song-play:hover { box-shadow: 0 2px 8px -2px rgba(20,30,45,.3); }
.mood-song-play:active { transform: scale(.94); }
/* 播放键图形用 CSS 画 */
.mood-play-glyph {
  width: 0; height: 0; margin-left: 2px;
  border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.mood-song-play.is-playing .mood-play-glyph {
  width: 8px; height: 9px; margin-left: 0; border: 0;
  background: linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px, currentColor 5px 8px);
}
.mood-song-play.is-playing { animation: moodSongPulse 2s ease-out infinite; }
@keyframes moodSongPulse {
  0%   { box-shadow: 0 1px 3px rgba(20,30,45,.16), 0 0 0 0 rgba(131,154,201,0.35); }
  70%  { box-shadow: 0 1px 3px rgba(20,30,45,.16), 0 0 0 7px rgba(131,154,201,0); }
  100% { box-shadow: 0 1px 3px rgba(20,30,45,.16), 0 0 0 0 rgba(131,154,201,0); }
}
/* 进度改由环形显示，旧线形进度隐藏 */
.mood-song-bar { display: none; }
/* 切歌：细图标，暂停态也不抢播放键的视觉重量 */
.mood-song-nav {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  margin-right: -4px;
}
.mood-song-nav[hidden] { display: none; }
.mood-song-skip {
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; color: var(--text-light); font-size: 14px;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, transform .16s ease;
}
.mood-song-skip:hover { color: var(--text); background: rgba(0,0,0,0.06); }
html.dark .mood-song-skip:hover { background: rgba(255,255,255,0.12); }
.mood-song-skip:active { transform: scale(.9); }

/* ================================================================
   歌曲搜索表单
   ================================================================ */
.vibe-mood-song { display: flex; flex-direction: column; gap: 5px; }
.vibe-song-search {
  display: flex; align-items: center; gap: 6px;
  padding: 0 9px; border-radius: 9px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(131,154,201,0.12);
  transition: all .2s ease;
}
html.dark .vibe-song-search { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.07); }
.vibe-song-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(131,154,201,0.14);
  background: rgba(255,255,255,0.62);
}
html.dark .vibe-song-search:focus-within { background: rgba(255,255,255,0.07); box-shadow: 0 0 0 3px rgba(131,154,201,0.12); }
.vibe-song-search > i { font-size: 13px; color: var(--text-light); }
.vibe-mood-form .vibe-song-search input[type="text"] {
  flex: 1; min-width: 0; padding: 6px 0;
  border: 0; background: none; box-shadow: none; border-radius: 0;
  font-size: 12px;
}
.vibe-mood-form .vibe-song-search input[type="text"]:focus { box-shadow: none; }
.vibe-song-results {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 140px; overflow-y: auto;
  padding: 3px; border-radius: 9px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.62);
}
.vibe-song-results[hidden] { display: none; }
html.dark .vibe-song-results { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.07); }
.vibe-song-tip {
  padding: 5px 8px; font-size: 11px; color: var(--text-light); text-align: center;
}
.vibe-song-hit {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px; border: 0; border-radius: 7px;
  background: none; cursor: pointer; text-align: left;
  font-family: inherit; transition: background .16s ease;
}
.vibe-song-hit:hover { background: rgba(131,154,201,0.12); }
.vibe-song-hit.is-added { opacity: .48; cursor: default; }
.vibe-song-hit.is-added:hover { background: none; }
html.dark .vibe-song-hit:hover { background: rgba(131,154,201,0.14); }
.vibe-song-hit-cover {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 6px;
  overflow: hidden; background: var(--accent-soft);
}
.vibe-song-hit-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vibe-song-hit-meta { display: flex; flex-direction: column; min-width: 0; }
.vibe-song-hit-name {
  font-size: 11px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vibe-song-hit-artist {
  font-size: 10px; color: var(--text-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vibe-song-picked {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 4px 5px; border-radius: 9px;
  background: rgba(131,154,201,0.1);
  border: 1px solid rgba(131,154,201,0.22);
}
.vibe-song-picked[hidden] { display: none; }
html.dark .vibe-song-picked { background: rgba(131,154,201,0.14); border-color: rgba(131,154,201,0.26); }
.vibe-song-picked-cover {
  flex: 0 0 22px; width: 22px; height: 22px;
  border-radius: 6px; object-fit: cover; display: block;
}
.vibe-song-picked-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vibe-song-picked-name {
  font-size: 11px; font-weight: 600; color: var(--accent-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
html.dark .vibe-song-picked-name { color: var(--accent); }
.vibe-song-picked-artist {
  font-size: 10px; color: var(--text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vibe-song-clear {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; padding: 0;
  color: var(--text-light); font-size: 13px; transition: all .16s ease;
}
.vibe-song-clear:hover { color: var(--text); background: rgba(255,255,255,0.65); }
html.dark .vibe-song-clear:hover { color: var(--text); background: rgba(255,255,255,0.12); }
/* 歌单：标题行 + 逐行歌曲，最多 5 首 */
.vibe-song-list-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 1px 4px 2px; font-size: 10px; color: var(--text-secondary);
}
.vibe-song-list-head b { margin-left: 4px; font-size: 10.5px; font-weight: 700; color: var(--accent-strong); }
html.dark .vibe-song-list-head b { color: var(--accent); }
.vibe-song-list-tip { font-size: 9.5px; color: var(--text-light); }
.vibe-song-row {
  display: flex; align-items: center; gap: 7px;
  padding: 3px 4px; border-radius: 7px; cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease;
}
.vibe-song-row:hover { background: rgba(255,255,255,0.62); }
html.dark .vibe-song-row:hover { background: rgba(255,255,255,0.08); }
.vibe-song-row.is-current {
  background: rgba(131,154,201,0.16);
  box-shadow: inset 0 0 0 1px rgba(131,154,201,0.3);
}
.vibe-song-row-ph {
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.05); color: var(--text-light); font-size: 12px;
}
.vibe-song-hint {
  font-size: 10px; line-height: 1.5; color: var(--text-light);
  opacity: .85; padding: 0 2px;
}

/* ================================================================
   表单底部
   ================================================================ */
.vibe-mood-foot {
  display: flex; align-items: center; gap: 8px;
}
.vibe-mood-hint { flex: 1; min-width: 0; font-size: 10px; color: var(--text-light); line-height: 1.5; opacity: .85; }
.vibe-mood-actions { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.vibe-mood-cancel,
.vibe-mood-save {
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 10.5px; font-weight: 600; line-height: 1.6;
  border: 1px solid transparent; transition: all .2s ease;
}
.vibe-mood-cancel { background: rgba(255,255,255,0.55); color: var(--text-secondary); border-color: rgba(255,255,255,0.6); }
html.dark .vibe-mood-cancel { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.1); }
.vibe-mood-save {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; display: inline-flex; align-items: center; gap: 3px;
  box-shadow: 0 4px 10px -6px var(--accent);
}
.vibe-mood-save:hover { transform: translateY(-1px); filter: brightness(1.05); }
.vibe-mood-save:disabled { opacity: .55; cursor: default; transform: none; filter: none; }

/* ================= 漂流瓶：对话式 ================= */
/* 头部：与站内卡片一致的毛玻璃条 */
.vibe-chat-head {
  position: relative; overflow: hidden; z-index: 0;
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 15px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
html.dark .vibe-chat-head { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.vibe-hero-ico {
  position: relative; z-index: 1;
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); background: rgba(0,0,0,0.05);
}
html.dark .vibe-hero-ico { background: rgba(255,255,255,0.08); color: var(--text-secondary); }
.vibe-hero-ico i { font-size: 15px; }
.vibe-chat-txt { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.vibe-chat-title {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: .3px;
}
.vibe-chat-sub {
  font-size: 10px; line-height: 1.5; color: var(--text-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vibe-pick {
  position: relative; z-index: 1;
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid rgba(0,0,0,0.06); cursor: pointer; padding: 5px 12px 5px 10px;
  border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.5;
  color: var(--text-secondary); background: rgba(255,255,255,.72);
  transition: transform .18s, filter .18s, opacity .18s, background .18s;
}
html.dark .vibe-pick { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.12); color: var(--text-secondary); }
.vibe-pick i { font-size: 11px; }
.vibe-pick:hover { background: #fff; transform: translateY(-1px); }
html.dark .vibe-pick:hover { background: rgba(255,255,255,0.16); }
.vibe-pick:active { transform: scale(.95); }
.vibe-pick:disabled { opacity: .7; cursor: default; transform: none; }

/* 捞上来的话：一条匿名消息 */
.vibe-bottle-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 9px; padding: 4px 1px 2px; transition: opacity .2s;
}
.vibe-bottle-body.is-loading { opacity: .45; }
.vibe-bottle-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; min-height: 160px; padding: 20px 16px; text-align: center;
  border: 1px dashed rgba(0,0,0,0.14); border-radius: 16px;
  background: rgba(255,255,255,.35);
}
.vibe-empty-ico {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); background: rgba(0,0,0,0.05);
  animation: vibeFloat 3s ease-in-out infinite alternate;
}
html.dark .vibe-empty-ico { background: rgba(255,255,255,0.07); color: var(--text-light); }
.vibe-empty-ico i { font-size: 22px; }
@keyframes vibeFloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.vibe-bottle-empty strong { font-size: 12.5px; font-weight: 700; color: var(--text); }
.vibe-empty-desc {
  font-size: 10.5px; line-height: 1.7; color: var(--text-light); max-width: 240px;
}
/* 兼容旧结构（直接一个图标的空态） */
.vibe-bottle-empty > i { font-size: 22px; color: var(--text-light); opacity: .85; }
.vibe-bottle-empty > span:not(.vibe-empty-ico):not(.vibe-empty-desc) {
  font-size: 11.5px; line-height: 1.7; color: var(--text-light);
}
html.dark .vibe-bottle-empty {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}
html.dark .vibe-bottle-empty strong { color: rgba(255,255,255,.92); }
html.dark .vibe-empty-desc { color: rgba(255,255,255,.58); }
.vibe-bubble {
  display: flex; align-items: flex-start; gap: 9px;
  animation: vibeBottleIn .5s var(--ease-out-quint) both;
}
.vibe-bubble-ava {
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 2px solid rgba(255,255,255,.85);
}
.vibe-note {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  border-radius: 14px; border-top-left-radius: 5px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
html.dark .vibe-note {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}
.vibe-note-text {
  margin: 0; font-size: 13px; line-height: 1.8;
  color: var(--text); word-break: break-word;
}
.vibe-note-meta {
  display: flex; align-items: center; gap: 5px;
  margin-top: 7px; font-size: 9.5px; color: var(--text-light);
}
.vibe-note-meta i { font-size: 10px; opacity: .8; }
.vibe-meta-dot { width: 2px; height: 2px; border-radius: 50%; background: currentColor; opacity: .5; }

/* 底部输入条 */
.vibe-composer { margin-top: auto; flex-shrink: 0; display: flex; flex-direction: column; gap: 7px; }
.vibe-nick-row {
  display: flex; align-items: center; gap: 7px; padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.5);
}
.vibe-nick-row[hidden] { display: none; }
.vibe-nick-row i { font-size: 12px; color: var(--accent); }
.vibe-nick-row input {
  flex: 1; min-width: 0; border: none;
  background: transparent; padding: 0;
  font-family: inherit; font-size: 11px; line-height: 1.7; color: var(--text); outline: none;
}
.vibe-nick-row input::placeholder { color: var(--text-light); }
html.dark .vibe-nick-row {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.10);
}
.vibe-composer-bar {
  display: flex; align-items: flex-end; gap: 6px;
  padding: 6px 6px 6px 8px; border-radius: 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.vibe-composer-bar:focus-within {
  background: rgba(255,255,255,0.68);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
html.dark .vibe-composer-bar {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
  box-shadow: none;
}
html.dark .vibe-composer-bar:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.vibe-nick-btn {
  flex: 0 0 auto; border: none; background: transparent; cursor: pointer;
  padding: 5px; border-radius: 9px; color: var(--text-light);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .18s, background .18s;
}
.vibe-nick-btn i { font-size: 13px; }
.vibe-nick-btn:hover,
.vibe-nick-btn.is-active { color: var(--accent); background: var(--accent-soft); }
.vibe-composer-bar textarea {
  flex: 1; min-width: 0; min-height: 0; max-height: 66px;
  padding: 3px 0; border: none; background: transparent; box-shadow: none;
  font-family: inherit; font-size: 11.5px; line-height: 1.7; color: var(--text);
  resize: none; outline: none;
}
.vibe-composer-bar textarea::placeholder { color: var(--text-light); }
.vibe-drop-count {
  flex: 0 0 auto; padding: 1px 7px 2px;
  font-size: 9.5px; font-weight: 600; color: var(--text-light);
  background: rgba(0,0,0,0.04); border-radius: 999px;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
html.dark .vibe-drop-count { background: rgba(255,255,255,0.07); color: var(--text-light); }
.vibe-send {
  flex: 0 0 30px; width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 16px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,.35);
  transition: filter .18s, transform .18s, opacity .18s;
  -webkit-tap-highlight-color: transparent;
}
.vibe-send i { font-size: 13px; }
.vibe-send .ri-loader-4-line { animation: vibeSpin .8s linear infinite; }
@keyframes vibeSpin { to { transform: rotate(360deg); } }
.vibe-send:hover { filter: brightness(1.06); transform: translateY(-1px); }
.vibe-send:active { transform: scale(.94); }
.vibe-send:disabled { opacity: .55; cursor: default; box-shadow: none; transform: none; }

/* 站长心情表单沿用站内输入框 */
.vibe-mood-form input[type="text"],
.vibe-mood-form textarea {
  width: 100%; box-sizing: border-box;
  padding: 8px 11px; border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.56);
  font-family: inherit; font-size: 11.5px; line-height: 1.65;
  color: var(--text); outline: none; resize: none;
  transition: background .18s, box-shadow .18s, border-color .18s;
}
.vibe-mood-form textarea { min-height: 58px; }
html.dark .vibe-mood-form input[type="text"],
html.dark .vibe-mood-form textarea { background: rgba(255,255,255,0.06); }
.vibe-mood-form input::placeholder,
.vibe-mood-form textarea::placeholder { color: var(--text-light); }
.vibe-mood-form input:focus,
.vibe-mood-form textarea:focus {
  background: rgba(255,255,255,0.82);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
html.dark .vibe-mood-form input:focus,
html.dark .vibe-mood-form textarea:focus { background: rgba(255,255,255,0.1); }

@media (prefers-reduced-motion: reduce) {
  .vibe-bubble, .mood-card, .mood-online, .mood-status-pill { animation: none; }
  .notice-vibe .vibe-chat-head, .notice-vibe .vibe-composer, .notice-vibe .vibe-empty-ico { animation: none; }
  #noticeBtn, .notice-island-label, .notice-ico { transition-duration: .01ms; }
  .notice-island-eq i, .mood-song-play.is-playing, #noticeBtn.is-playing,
  #noticeBtn.is-peek, #noticeBtn.is-peek .notice-ico,
  #noticeBtn.is-playing::after { animation: none; }
}

/* ---- 顶栏右侧按钮：统一尺寸 / 描边 / 交互反馈 ---- */
.topbar-actions > .topbar-btn {
  width: 31px; height: 31px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  transition: background .22s var(--ease-out-quint),
              border-color .22s var(--ease-out-quint),
              color .22s var(--ease-out-quint),
              transform .22s var(--ease-out-quint),
              box-shadow .22s var(--ease-out-quint);
}
.topbar-actions > .topbar-btn:hover {
  background: rgba(0,0,0,0.045);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--accent-strong);
}
html.dark .topbar-actions > .topbar-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  color: var(--accent);
}
.topbar-actions > .topbar-btn:active {
  transform: scale(.94);
}

#editPostBtn { color: var(--text-secondary); text-decoration: none; }
#themeToggle { color: var(--text-secondary); }
.scroll-progress-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  transition: background .22s var(--ease-out-quint),
              border-color .22s var(--ease-out-quint),
              color .22s var(--ease-out-quint),
              opacity .26s var(--ease-out-quint);
}
/* 顶部时箭头朝下提示"可滚到底部"，滚到底部时箭头朝上并点亮 */
.scroll-progress-btn .topbar-ico {
  transition: rotate .32s var(--ease-out-quint);
}
.scroll-progress-btn.to-bottom .topbar-ico { rotate: 180deg; }
.scroll-progress-btn.is-at-bottom {
  color: var(--accent-strong);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: rgba(131,154,201,0.10);
}
html.dark .scroll-progress-btn.is-at-bottom {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: rgba(131,154,201,0.16);
}



.main-body { flex: 1; display: flex; overflow: hidden; }

.sidebar {
  width: var(--sidebar-w, 230px); min-width: var(--sidebar-w, 230px);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  padding-top: 4px;
  position: relative; z-index: 2;
}
.sidebar { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }

.nav-group { padding: 2px 8px; }
.nav-group-title {
  font-size: 13px; color: var(--text-secondary); padding: 13px 12px 6px 16px;
  font-weight: 600; letter-spacing: .3px;
  display: flex; align-items: center; justify-content: space-between;
}

.section-toggle-btn {
  width: 20px; height: 20px;
  border: none; background: transparent;
  color: var(--text-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 10px;
  transition: all .2s, transform .3s var(--spring);
  padding: 0;
}
.section-toggle-btn:hover {
  background: rgba(0,0,0,0.06);
  color: var(--text);
}
html.dark .section-toggle-btn:hover {
  background: rgba(255,255,255,0.08);
}
.section-toggle-btn i {
  transition: transform .25s ease;
}
.section-toggle-btn.collapsed i {
  transform: rotate(180deg);
}
/* 高度过渡交给 main.v2.js 量真实高度完成，避免 max-height 固定值让动画先冲过头 */
.section-list {
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--dur-base) var(--ease-out-quint);
}
.section-list.collapsed {
  max-height: 0;
  opacity: 0;
}

.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 18px 10px 16px;
}
.sidebar-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(0,0,0,0.03);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all .15s;
  border: 1px solid transparent;
}
html.dark .sidebar-tag {
  background: rgba(255,255,255,0.04);
}
.sidebar-tag:hover {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-glow);
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 12px; margin: 0 16px 2px;
  cursor: pointer; position: relative; color: var(--text-secondary); font-size: 13px;
  transition: color .18s, background .18s; border-radius: 8px;
  text-decoration: none;
  overflow: hidden;
}
.nav-item:hover {
  background: rgba(0,0,0,0.04); color: var(--text);
}
.nav-item:hover i { color: var(--accent); }
html.dark .nav-item:hover {
  background: rgba(255,255,255,0.05);
}
.nav-item.active {
  color: var(--accent); font-weight: 600;
  background: var(--accent-soft);
  border-radius: 8px;
}
.nav-item.active i { color: var(--accent); }
.nav-item i {
  width: 18px; text-align: center; font-size: 14px;
  transition: color .18s;
}
.nav-count {
  margin-left: auto; font-size: 11px; color: var(--text-light);
  background: rgba(0,0,0,0.04); padding: 1px 7px; line-height: 1.6;
  border-radius: 6px; font-weight: 500;
}
html.dark .nav-count { background: rgba(255,255,255,0.06); }


.nav-divider { height: 1px; background: rgba(0,0,0,0.06); margin: 9px 24px; }
html.dark .nav-divider { background: rgba(255,255,255,0.06); }


.sidebar-footer { display: none; }

.mobile-tabbar { display: none; }

.lightbox {
  /* display 常驻 flex，靠 visibility 切换：
     display:none → flex 的跳变无法过渡，开关灯箱才能有真正的淡入淡出 */
  display: flex; position: fixed; inset: 0; z-index: 999;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  flex-direction: column; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease-in), visibility 0s linear .2s;
  touch-action: none;
}
html.dark .lightbox {
  background: var(--glass-bg-strong);
}
.lightbox.active {
  opacity: 1;
  visibility: visible; pointer-events: auto;
  transition: opacity .26s var(--ease-soft), visibility 0s;
}
body.lb-open { overflow: hidden; }

.lightbox-toolbar {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 12; display: flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
}
html.dark .lightbox-toolbar {
  background: rgba(28,30,40,0.72);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}
.lightbox-tool {
  width: 34px; height: 34px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: rgba(30,34,46,0.8);
  border-radius: 50%; cursor: pointer; font-size: 14px;
  text-decoration: none;
  transition: background .18s, color .18s, transform .2s;
}
.lightbox-tool:hover { background: rgba(0,0,0,0.06); color: #111; }
html.dark .lightbox-tool { color: rgba(255,255,255,0.82); }
html.dark .lightbox-tool:hover { background: rgba(255,255,255,0.16); color: #fff; }
.lightbox-tool:active { transform: scale(.9); }
.lightbox-tool.is-active { color: var(--accent); }
.lightbox-zoom-val {
  min-width: 44px; text-align: center;
  font-size: 11.5px; font-variant-numeric: tabular-nums;
  color: rgba(30,34,46,0.55); user-select: none;
}
html.dark .lightbox-zoom-val { color: rgba(255,255,255,0.6); }
.lightbox-close { margin-left: 4px; }
.lightbox-close:hover { background: rgba(240,90,90,0.85); color: #fff; }

.lightbox-stage {
  position: relative; flex: 1 1 auto;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-height: 100%;
  overflow: hidden; padding: 58px 64px 96px;
}
.lightbox-stage img {
  max-width: min(92vw, 1600px); max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xs);
  box-shadow: 0 12px 50px rgba(0,0,0,0.18);
  user-select: none; -webkit-user-drag: none;
  transform-origin: center center;
  will-change: transform;
  transition: opacity .3s ease, filter .3s ease, transform .26s cubic-bezier(.2,.8,.3,1);
  cursor: zoom-in;
}
/* 原图加载中，先铺一层模糊小图占位 */
.lightbox-preview {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: min(92vw, 1600px); max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xs);
  filter: blur(22px) saturate(1.05);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox-preview.is-on { opacity: .9; }
.lightbox.zoomed .lightbox-stage img { cursor: grab; }
.lightbox.dragging .lightbox-stage img { cursor: grabbing; transition: opacity .2s; }
.lightbox.pinching .lightbox-stage img { transition: opacity .2s; }
.lightbox-stage img.lb-loading { opacity: 0; filter: blur(12px); }
.lightbox.no-anim .lightbox-stage img { transition: opacity .2s; }

@keyframes lbSlideInRight { from { opacity: 0; transform: translate3d(64px, 0, 0) scale(.985); } }
@keyframes lbSlideInLeft  { from { opacity: 0; transform: translate3d(-64px, 0, 0) scale(.985); } }
.lightbox-stage img.lb-slide-right { animation: lbSlideInRight .32s cubic-bezier(.22,.61,.36,1); }
.lightbox-stage img.lb-slide-left  { animation: lbSlideInLeft .32s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) {
  .lightbox-stage img.lb-slide-right,
  .lightbox-stage img.lb-slide-left { animation: none; }
}

.lightbox-spinner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(30,34,46,0.55);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.lb-ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(30,34,46,0.12);
  border-top-color: rgba(30,34,46,0.55);
  animation: lbRingSpin .8s linear infinite;
}
.lb-ring-text {
  font-size: 12px; letter-spacing: .08em;
  color: rgba(30,34,46,0.45);
}
html.dark .lb-ring { border-color: rgba(255,255,255,0.14); border-top-color: rgba(255,255,255,0.75); }
html.dark .lightbox-spinner { color: rgba(255,255,255,0.7); }
html.dark .lb-ring-text { color: rgba(255,255,255,0.52); }
.lightbox.is-loading .lightbox-spinner { opacity: 1; }
@keyframes lbRingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lb-ring { animation-duration: 1.6s; }
}

.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border: none;
  background: rgba(255,255,255,0.74); color: #222;
  border-radius: 50%; cursor: pointer; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s; z-index: 11;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.lightbox-nav:hover { background: rgba(255,255,255,0.94); transform: translateY(-50%) scale(1.06); }
html.dark .lightbox-nav {
  background: rgba(28,30,40,0.7); color: #fff;
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}
html.dark .lightbox-nav:hover { background: rgba(60,64,80,0.9); }
.lightbox-nav:active { transform: translateY(-50%) scale(.94); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 10px 16px 16px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.62));
  pointer-events: none;
}
html.dark .lightbox-bottom {
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.5));
}
.lightbox-bottom > * { pointer-events: auto; }
.lightbox-caption {
  max-width: min(80vw, 720px); text-align: center;
  color: rgba(28,32,44,0.86); font-size: 13px; line-height: 1.5;
  text-shadow: 0 1px 6px rgba(255,255,255,0.6);
}
html.dark .lightbox-caption {
  color: rgba(255,255,255,0.86);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.lightbox-caption:empty { display: none; }
.lightbox-counter {
  color: rgba(28,32,44,0.72); font-size: 12px;
  font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,0.62); padding: 3px 13px; border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,0.08);
}
html.dark .lightbox-counter {
  color: rgba(255,255,255,0.72);
  background: rgba(0,0,0,0.42);
  border-color: rgba(255,255,255,0.1);
}
.lightbox-counter:empty { display: none; }
.lightbox-thumbs {
  display: flex; align-items: center; gap: 7px;
  max-width: min(92vw, 860px); overflow-x: auto;
  padding: 4px; scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumbs:empty { display: none; }
.lightbox-thumb {
  width: 48px; height: 48px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; opacity: .55;
  background: rgba(0,0,0,0.06);
  transition: opacity .2s, border-color .2s, transform .2s;
}
html.dark .lightbox-thumb { background: rgba(255,255,255,0.08); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox-thumb:hover { opacity: .9; transform: translateY(-2px); }
.lightbox-thumb.active { opacity: 1; border-color: var(--accent); }
.lightbox-hint {
  font-size: 11px; color: rgba(28,32,44,0.45);
  display: inline-flex; align-items: center; gap: 6px;
}
html.dark .lightbox-hint { color: rgba(255,255,255,0.4); }
.lightbox-hint i { font-size: 11px; }

@media (max-width: 640px) {
  /* 移动端通知面板改为贴顶抽屉，避免 360px 面板顶到屏幕边缘 */
  .notice-pop {
    position: fixed; top: calc(62px + env(safe-area-inset-top));
    left: 10px; right: 10px; width: auto;
    max-height: 62vh; transform-origin: top center;
    /* 首页轮播图底边约在 225px，面板至少盖过它，空状态也不会露出半截图 */
    min-height: 210px;
  }
  .notice-pop.is-tall { max-height: calc(100dvh - 84px); }
  .mood-card { padding: 12px 12px 10px; column-gap: 11px; row-gap: 6px; }
  .mood-ava { width: 54px; height: 54px; font-size: 18px; }
  .mood-owner { font-size: 17px; }
  .mood-status-pill { font-size: 12px; }
  .mood-text { font-size: 12px; }
  .vibe-chat-title { font-size: 12.5px; }
  .vibe-chat-sub { font-size: 9.5px; }
  .vibe-pick { padding: 4px 10px 4px 9px; font-size: 10px; }
  .vibe-note-text { font-size: 13px; }
  .vibe-bottle-empty { min-height: 130px; padding: 16px 12px; gap: 6px; }
  .vibe-empty-ico { width: 44px; height: 44px; }
  .vibe-empty-ico i { font-size: 20px; }
  .vibe-empty-desc { font-size: 10px; }
  .vibe-mood-form input[type="text"],
  .vibe-mood-form textarea { font-size: 12.5px; }
  .vibe-composer-bar textarea { font-size: 12px; }
  .lightbox-stage { padding: 54px 10px 120px; }
  .lightbox-stage img { max-width: 96vw; border-radius: 6px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; background: rgba(255,255,255,0.7); }
  html.dark .lightbox-nav { background: rgba(28,30,40,0.6); }
  .lightbox-toolbar { top: 10px; padding: 4px; gap: 2px; }
  .lightbox-tool { width: 32px; height: 32px; font-size: 13px; }
  .lightbox-zoom-val { min-width: 38px; font-size: 11px; }
  .lightbox-hint { display: none; }
  .lightbox-thumb { width: 42px; height: 42px; }
}

@media print {
  .lightbox { display: none !important; }
}

.mobile-search { display: none; }
.m-search-btn, .m-search-pop { display: none; }
.content-area {
  flex: 1; position: relative; display: flex; flex-direction: column;
  overflow: hidden; z-index: 2;
}
.content-inner {
  flex: 1; display: flex; flex-direction: column;
  background: transparent;
  border-left: 1px solid var(--glass-border);
  overflow: hidden;
}
.content-scroll {
  flex: 1; overflow-y: scroll; padding: 12px 24px 40px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  position: relative; z-index: 1;
  --sb-show: 0;
}
.content-scroll.sb-active,
.content-scroll:hover {
  scrollbar-color: var(--sb-thumb) transparent;
}
.content-scroll::-webkit-scrollbar { width: 6px; }
.content-scroll::-webkit-scrollbar-track { background: transparent; }
.content-scroll::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background .3s;
}
.content-scroll.sb-active::-webkit-scrollbar-thumb,
.content-scroll:hover::-webkit-scrollbar-thumb {
  background: var(--sb-thumb);
}
.content-scroll.sb-active::-webkit-scrollbar-thumb:hover,
.content-scroll:hover::-webkit-scrollbar-thumb:hover {
  background: var(--sb-thumb-hover);
}


/* 滚动边缘渐隐：用遮罩让内容本身淡出，高度小、曲线细，避免出现明显的“一块” */
.content-scroll { --edge-fade: 26px; }
.fade-top, .fade-bottom { display: none; }
.content-scroll.fade-top-on {
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade));
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade));
}
.content-scroll.fade-bottom-on {
  -webkit-mask-image: linear-gradient(to top,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade));
  mask-image: linear-gradient(to top,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade));
}
.content-scroll.fade-top-on.fade-bottom-on {
  -webkit-mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade),
    #000 calc(100% - var(--edge-fade)),
    rgba(0,0,0,.95) calc(100% - 23px),
    rgba(0,0,0,.82) calc(100% - 20px),
    rgba(0,0,0,.62) calc(100% - 16px),
    rgba(0,0,0,.42) calc(100% - 12px),
    rgba(0,0,0,.22) calc(100% - 8px),
    rgba(0,0,0,.08) calc(100% - 4px),
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,.08) 4px,
    rgba(0,0,0,.22) 8px,
    rgba(0,0,0,.42) 12px,
    rgba(0,0,0,.62) 16px,
    rgba(0,0,0,.82) 20px,
    rgba(0,0,0,.95) 23px,
    #000 var(--edge-fade),
    #000 calc(100% - var(--edge-fade)),
    rgba(0,0,0,.95) calc(100% - 23px),
    rgba(0,0,0,.82) calc(100% - 20px),
    rgba(0,0,0,.62) calc(100% - 16px),
    rgba(0,0,0,.42) calc(100% - 12px),
    rgba(0,0,0,.22) calc(100% - 8px),
    rgba(0,0,0,.08) calc(100% - 4px),
    rgba(0,0,0,0) 100%);
}


/* ================= 动效收口：全站无障碍兜底 =================
   系统开启「减弱动态效果」时，一次性关掉位移/缩放/循环动画与交错延迟，
   只保留近乎瞬时的透明度切换；各模块里更细的局部 reduced-motion 规则仍优先。 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto !important; }
  /* PJAX 转场的退场直接跳过，避免换页时「先黑一下」 */
  .content-area.pjax-out { opacity: 1 !important; }
}


