/* ============================================================
 * 清简表白墙 · 双方案皮肤
 * classic（经典毛玻璃）：样式保留在各页内联 <style>，本文件不干预
 * neo（新拟态 Neumorphism）：本文件全部规则限定 body.scheme-neo
 *
 * 颜色变量由 inc/theme.php 的 outputThemeStyle() 输出：
 *   --primary / --secondary          主题主辅色
 *   --primary-rgb / --secondary-rgb  主辅色 RGB 通道
 */

/* ============================================================
 * 全屏页面加载动画（inc/loader.php 注入，切换页面时全屏显示）
 * ============================================================ */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg1, #e8f5e9) 0%, var(--bg2, #e3f2fd) 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}
/* 隐藏态：display:none !important 强制移除元素（最高优先级，不依赖 JS 内联或过渡完成） */
.site-loader.done {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.site-loader-inner {
    text-align: center;
    padding: 24px;
}
.site-loader-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    margin: 0 auto 18px;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb, 126, 87, 194), 0.25);
    animation: site-loader-bounce 1.2s ease-in-out infinite;
}
.site-loader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid rgba(var(--primary-rgb, 126, 87, 194), 0.15);
    border-top-color: var(--primary, #7e57c2);
    border-radius: 50%;
    animation: site-loader-spin 0.8s linear infinite;
}
.site-loader-text {
    color: var(--primary, #7e57c2);
    font-size: 14px;
    letter-spacing: 3px;
    font-weight: 600;
}
@keyframes site-loader-spin {
    to { transform: rotate(360deg); }
}
@keyframes site-loader-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
    .site-loader-logo,
    .site-loader-spinner {
        animation: none;
    }
}

/* ============================================================
 * neo 方案附加变量（由 outputThemeStyle() 输出）
 *   --card-rgb                       卡片色 RGB 通道
 *   --primary-vivid / --secondary-vivid  增艳活泼点缀色
 *   --neo-surface / --neo-surface-rgb    新拟态表面色
 *   --neo-shadow-dark / -dark-strong / -light  双向阴影
 * ============================================================ */

/* ---------- 全局氛围 ---------- */
body.scheme-neo {
    /* 背景渐变由 outputThemeStyle 输出（随主题换色） */
    color: #334155;
}

body.scheme-neo ::selection {
    background: var(--primary-vivid);
    color: #fff;
}

/* ---------- 顶栏 ---------- */
body.scheme-neo header.sticky {
    background: var(--neo-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 20px var(--neo-shadow-dark),
                inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

/* 站点标题：增艳渐变文字（覆盖 Tailwind 固定绿蓝渐变，classic / neo 全站标题统一主题色） */
h1[class*="bg-gradient"],
h1 [class*="bg-gradient"] {
    background-image: linear-gradient(120deg, var(--primary-vivid), var(--secondary-vivid));
}

/* ---------- 卡片（新拟态凸起） ---------- */
body.scheme-neo .post-card {
    background: var(--neo-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 24px;
    box-shadow: 10px 10px 24px var(--neo-shadow-dark),
                -10px -10px 24px var(--neo-shadow-light);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    transform-style: flat;
}

body.scheme-neo .post-card:hover {
    transform: translateY(-6px);
    box-shadow: 16px 16px 36px var(--neo-shadow-dark-strong),
                -16px -16px 36px var(--neo-shadow-light);
}

/* 卡片内分割线更柔和 */
body.scheme-neo .post-card .border-t {
    border-color: rgba(var(--primary-rgb), 0.12);
}

/* ---------- 头像 ---------- */
body.scheme-neo .avatar {
    box-shadow: 4px 4px 10px var(--neo-shadow-dark),
                -4px -4px 10px var(--neo-shadow-light),
                inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

/* ---------- 话题标签（活泼渐变胶囊） ---------- */
body.scheme-neo .tag {
    background: linear-gradient(120deg, var(--primary-vivid), var(--secondary-vivid));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 4px 4px 10px var(--neo-shadow-dark),
                -4px -4px 10px var(--neo-shadow-light);
}

/* ---------- 评论条目（内凹） ---------- */
body.scheme-neo .comment-item {
    background: var(--neo-surface);
    border-radius: 16px;
    box-shadow: inset 4px 4px 10px var(--neo-shadow-dark),
                inset -4px -4px 10px var(--neo-shadow-light);
}

/* ---------- 媒体九宫格 ---------- */
body.scheme-neo .media-item {
    border-radius: 16px;
    box-shadow: inset 3px 3px 8px var(--neo-shadow-dark),
                inset -3px -3px 8px var(--neo-shadow-light);
}

/* ---------- 点赞 / 评论 / 举报入口 ---------- */
body.scheme-neo .like-btn,
body.scheme-neo .comment-entry,
body.scheme-neo .report-btn {
    transition: color 0.25s ease, transform 0.25s ease;
}
body.scheme-neo .like-btn:hover,
body.scheme-neo .comment-entry:hover,
body.scheme-neo .report-btn:hover {
    color: var(--primary-vivid);
    transform: scale(1.06);
}
body.scheme-neo .report-btn:hover {
    color: var(--secondary-vivid);
}
body.scheme-neo .like-btn .text-pink-500,
body.scheme-neo .like-btn i.text-pink-500 {
    color: var(--primary-vivid);
}

/* “点击查看全文 / 所有评论”链接随主题色 */
body.scheme-neo .post-card .text-green-600,
body.scheme-neo .post-card .hover\:text-green-700:hover,
body.scheme-neo .read-more-link {
    color: var(--primary-vivid);
}

/* 空状态图标 */
body.scheme-neo .text-green-300 {
    color: rgba(var(--primary-rgb), 0.45);
}

/* ---------- 输入控件（新拟态内凹） ---------- */
body.scheme-neo input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.scheme-neo textarea,
body.scheme-neo select {
    background: var(--neo-surface);
    border: none;
    box-shadow: inset 5px 5px 12px var(--neo-shadow-dark),
                inset -5px -5px 12px var(--neo-shadow-light);
    transition: box-shadow 0.25s ease;
}

body.scheme-neo input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus,
body.scheme-neo textarea:focus,
body.scheme-neo select:focus {
    outline: none;
    border: none;
    box-shadow: inset 5px 5px 12px var(--neo-shadow-dark),
                inset -5px -5px 12px var(--neo-shadow-light),
                0 0 0 2px var(--primary-vivid);
}

/* 搜索框等胶囊输入保持圆润 */
body.scheme-neo input.rounded-full {
    border-radius: 9999px;
}

/* ---------- 按钮（活泼渐变 + 凸起/按压） ---------- */
body.scheme-neo [class*="bg-gradient-to"] {
    background-image: linear-gradient(120deg, var(--primary-vivid), var(--secondary-vivid));
}

body.scheme-neo button[class*="bg-gradient-to"],
body.scheme-neo a[class*="bg-gradient-to"],
body.scheme-neo input[type="submit"][class*="bg-gradient-to"] {
    border: none;
    box-shadow: 6px 6px 16px var(--neo-shadow-dark),
                -6px -6px 16px var(--neo-shadow-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

body.scheme-neo button[class*="bg-gradient-to"]:hover,
body.scheme-neo a[class*="bg-gradient-to"]:hover {
    transform: translateY(-2px);
    opacity: 1;
    box-shadow: 8px 8px 20px var(--neo-shadow-dark-strong),
                -8px -8px 20px var(--neo-shadow-light);
}

body.scheme-neo button[class*="bg-gradient-to"]:active,
body.scheme-neo a[class*="bg-gradient-to"]:active {
    transform: translateY(0);
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, 0.18),
                inset -5px -5px 12px rgba(255, 255, 255, 0.22);
}

/* 白色/浅色按钮与链接片（登录入口、个人中心入口等） */
body.scheme-neo a.bg-white,
body.scheme-neo button.bg-white,
body.scheme-neo a[class*="bg-white/"] {
    background: var(--neo-surface);
    border: none;
    box-shadow: 5px 5px 14px var(--neo-shadow-dark),
                -5px -5px 14px var(--neo-shadow-light);
}

/* ---------- 发帖 FAB ---------- */
body.scheme-neo .fab-btn {
    background: linear-gradient(135deg, var(--primary-vivid), var(--secondary-vivid));
    box-shadow: 8px 8px 20px var(--neo-shadow-dark),
                -8px -8px 20px var(--neo-shadow-light),
                inset 0 0 0 2px rgba(255, 255, 255, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.scheme-neo .fab-btn:hover {
    transform: scale(1.10) rotate(90deg);
    box-shadow: 10px 10px 26px var(--neo-shadow-dark-strong),
                -10px -10px 26px var(--neo-shadow-light),
                inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

body.scheme-neo .fab-btn:active {
    transform: scale(1.02);
    box-shadow: inset 6px 6px 14px rgba(0, 0, 0, 0.20),
                inset -6px -6px 14px rgba(255, 255, 255, 0.20);
}

/* ---------- 弹窗 ---------- */
body.scheme-neo .modal-content {
    background: var(--neo-surface);
    border-radius: 24px;
    box-shadow: 14px 14px 36px rgba(0, 0, 0, 0.22),
                -8px -8px 24px var(--neo-shadow-light);
}

/* ---------- 登录/注册页（glass-card / gradient-btn / tab-btn） ---------- */
body.scheme-neo .glass-card {
    background: var(--neo-surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 24px;
    box-shadow: 12px 12px 28px var(--neo-shadow-dark),
                -12px -12px 28px var(--neo-shadow-light);
}

/* ---------- 渐变按钮（全站通用，classic 方案用主题色；下方 neo 覆盖为增艳渐变） ---------- */
.gradient-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
    transition: all 0.3s ease;
}
.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.5);
}
.gradient-btn:active {
    transform: translateY(0);
}

body.scheme-neo .gradient-btn {
    background: linear-gradient(120deg, var(--primary-vivid), var(--secondary-vivid));
    box-shadow: 6px 6px 16px var(--neo-shadow-dark),
                -6px -6px 16px var(--neo-shadow-light);
}

body.scheme-neo .gradient-btn:hover {
    box-shadow: 8px 8px 20px var(--neo-shadow-dark-strong),
                -8px -8px 20px var(--neo-shadow-light);
}

body.scheme-neo .gradient-btn:active {
    box-shadow: inset 5px 5px 12px rgba(0, 0, 0, 0.18),
                inset -5px -5px 12px rgba(255, 255, 255, 0.22);
}

body.scheme-neo .tab-btn.active {
    color: var(--primary-vivid);
}

body.scheme-neo .tab-btn.active::after {
    background: linear-gradient(90deg, var(--primary-vivid), var(--secondary-vivid));
}

body.scheme-neo .form-input:focus {
    box-shadow: inset 5px 5px 12px var(--neo-shadow-dark),
                inset -5px -5px 12px var(--neo-shadow-light),
                0 0 0 2px var(--primary-vivid);
}

/* ---------- 详情页正文与评论区微调 ---------- */
body.scheme-neo .detail-content,
body.scheme-neo .comment-card,
body.scheme-neo .profile-card {
    background: var(--neo-surface);
    border: none;
    border-radius: 24px;
    box-shadow: 10px 10px 24px var(--neo-shadow-dark),
                -10px -10px 24px var(--neo-shadow-light);
}

/* ---------- 加载/骨架 ---------- */
body.scheme-neo .lazy-image {
    background-color: var(--neo-surface);
}

/* ---------- 返回/次级链接 ---------- */
body.scheme-neo header a:hover {
    color: var(--primary-vivid);
}

/* ---------- 移动端阴影收敛（性能与观感） ---------- */
@media (max-width: 640px) {
    body.scheme-neo .post-card,
    body.scheme-neo .glass-card,
    body.scheme-neo .detail-content,
    body.scheme-neo .comment-card,
    body.scheme-neo .profile-card {
        border-radius: 20px;
        box-shadow: 7px 7px 16px var(--neo-shadow-dark),
                    -7px -7px 16px var(--neo-shadow-light);
    }
    body.scheme-neo .post-card:hover {
        transform: translateY(-3px);
    }
}

/* ---------- 尊重系统减弱动效设置 ---------- */
@media (prefers-reduced-motion: reduce) {
    body.scheme-neo .post-card,
    body.scheme-neo .fab-btn,
    body.scheme-neo .like-btn,
    body.scheme-neo .comment-entry,
    body.scheme-neo .report-btn {
        transition: none;
    }
    body.scheme-neo .post-card:hover,
    body.scheme-neo .fab-btn:hover {
        transform: none;
    }
}

/* ============================================================
 * 自定义头像（img 形式的 .avatar / .avatar-lg / 评论头像）
 * 页面内联样式的 .avatar/.avatar-lg 用于首字色块；此处补充 img 适配
 * ============================================================ */
.avatar,
.avatar-lg,
.comment-avatar,
.credit-avatar {
    overflow: hidden;
}
.avatar img,
.avatar-lg img,
.comment-avatar img,
.credit-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
 * 全站自定义背景图（方式B：全局生效，含 classic / neo 双方案）
 * 背景图：assets/bg.jpg（可选）。如需自定义背景，
 * 请将图片命名为 assets/bg.jpg 并取消下面 background-image 注释；
 * 未配置时回退到主题渐变背景。
 * ============================================================ */
body {
    /* background-image: url('../bg.jpg') !important; */
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-color: #f2eff8 !important;
}

/* 半透明卡片 + 清晰边缘，保证背景图模式下文字可读
 * 通透度统一 0.6：数值越小越透明（如 0.45 更透、0.75 更实） */
body .post-card,
body .card,
body .hero,
body .profile-card,
body .glass-card,
body .food-card,
body .credit-item,
body .stat-card,
body .post-item {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
}

/* ============================================================
 * 背景音乐播放器（音符徽章 + 歌名 + 进度条，全站通用）
 * ============================================================ */
.music-player {
    position: fixed;
    top: 16px;
    right: 16px;
    left: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    max-width: 320px;
    padding: 10px 14px 12px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(248, 249, 255, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
/* 拖拽中：禁用定位过渡，跟手不卡顿 */
.music-player.music-dragging {
    transition: opacity 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: grabbing !important;
}
.music-player:hover {
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 播放中：面板泛主题色微光 */
.music-player.playing {
    border-color: rgba(var(--primary-rgb, 126, 87, 194), 0.35);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(var(--primary-rgb, 126, 87, 194), 0.18),
        0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* 用户关闭音乐时的视觉状态 */
.music-player.muted {
    opacity: 0.65;
    filter: grayscale(0.35);
}
.music-info {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: grab;
    min-width: 0;
}
.music-info:active {
    cursor: grabbing;
}
/* ---------- 音符徽章（渐变圆 + 音符图标） ---------- */
.music-cd {
    position: relative;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-vivid, #7e57c2), var(--secondary-vivid, #ab47bc));
    box-shadow:
        0 4px 14px rgba(var(--primary-rgb, 126, 87, 194), 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.3s ease, filter 0.3s ease;
}
.music-cd svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}
.music-info:hover .music-cd {
    transform: scale(1.07);
    box-shadow:
        0 6px 18px rgba(var(--primary-rgb, 126, 87, 194), 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12);
}
.music-info:active .music-cd {
    transform: scale(0.94);
}
/* 播放中：向外扩散的声波光环 */
.music-cd.playing::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--primary-vivid, #7e57c2);
    opacity: 0;
    animation: music-pulse 1.8s ease-out infinite;
    pointer-events: none;
}
.music-cd.muted {
    opacity: 0.65;
    filter: grayscale(0.5) brightness(0.92);
}
/* ---------- 均衡器小条（播放时跳动） ---------- */
.music-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
    flex: 0 0 auto;
}
.music-eq span {
    width: 3px;
    height: 4px;
    border-radius: 1.5px;
    background: var(--primary-vivid, #7e57c2);
    transition: height 0.3s ease;
}
.music-player.playing .music-eq span {
    animation: eq-bounce 1s ease-in-out infinite;
}
.music-player.playing .music-eq span:nth-child(1) { animation-delay: 0s; }
.music-player.playing .music-eq span:nth-child(2) { animation-delay: 0.25s; }
.music-player.playing .music-eq span:nth-child(3) { animation-delay: 0.5s; }
/* ---------- 歌名（固定宽度，超长时无缝滚动展示） ---------- */
.music-title-wrap {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    line-height: 1.3;
}
.music-title-scroll {
    display: inline-flex;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
    will-change: transform;
}
.music-title-scroll > span {
    display: inline-block;
    padding-right: 48px;
}
.music-title-scroll.scrolling {
    animation: title-marquee 12s linear infinite;
}
/* 悬停暂停滚动，方便查看完整歌名 */
.music-player:hover .music-title-scroll.scrolling,
.music-title-wrap:hover .music-title-scroll.scrolling {
    animation-play-state: paused;
}
@keyframes title-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.music-progress-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.music-time {
    font-size: 11px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 34px;
    text-align: center;
}
.music-progress {
    position: relative;
    flex: 1;
    height: 5px;
    border-radius: 3px;
    background: rgba(51, 65, 85, 0.12);
    cursor: pointer;
    touch-action: none;
}
.music-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary-vivid, #7e57c2), var(--secondary-vivid, #ab47bc));
    pointer-events: none;
}
.music-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-vivid, #7e57c2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.music-progress.dragging .music-progress-thumb {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb, 126, 87, 194), 0.18), 0 2px 6px rgba(0, 0, 0, 0.25);
}
@keyframes music-pulse {
    0%   { transform: scale(0.85); opacity: 0.9; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}
@keyframes eq-bounce {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}
/* ---------- 列表按钮（标题行右侧） ---------- */
.music-list-btn {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.music-list-btn svg {
    width: 15px;
    height: 15px;
}
.music-list-btn:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
}
.music-player.show-list .music-list-btn {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.15);
    color: var(--primary-vivid, #7e57c2);
}
/* ---------- 点赞按钮（标题行） ---------- */
.music-like-btn {
    position: relative;
}
.music-like-btn .music-like-count {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
}
.music-like-btn.liked {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
}
.music-like-btn.liked svg {
    fill: #ef4444;
    stroke: #ef4444;
}
/* ---------- 控制栏 ---------- */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.music-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #475569;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.music-btn svg {
    width: 16px;
    height: 16px;
}
.music-btn:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
}
.music-btn:active {
    transform: scale(0.9);
}
/* 主播放/暂停按钮 */
.music-btn-play {
    width: 36px;
    height: 36px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-vivid, #7e57c2), var(--secondary-vivid, #ab47bc));
    box-shadow: 0 3px 10px rgba(var(--primary-rgb, 126, 87, 194), 0.4);
}
.music-btn-play svg {
    width: 18px;
    height: 18px;
}
.music-btn-play:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-vivid, #7e57c2), var(--secondary-vivid, #ab47bc));
    box-shadow: 0 4px 14px rgba(var(--primary-rgb, 126, 87, 194), 0.55);
    transform: scale(1.05);
}
.music-btn-play .icon-pause { display: none; }
.music-player.playing .music-btn-play .icon-play { display: none; }
.music-player.playing .music-btn-play .icon-pause { display: block; }
/* 播放模式图标切换 */
.music-mode-btn svg { display: none; }
.music-player.mode-list .music-mode-btn .mode-repeat { display: block; }
.music-player.mode-single .music-mode-btn .mode-repeat-1 { display: block; }
.music-player.mode-shuffle .music-mode-btn .mode-shuffle { display: block; }
.music-player.mode-single .music-mode-btn,
.music-player.mode-shuffle .music-mode-btn {
    color: var(--primary-vivid, #7e57c2);
}
/* ---------- 播放列表面板 ---------- */
.music-playlist {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    max-height: 42vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    z-index: 1001;
}
.music-player.show-list .music-playlist {
    display: block;
    animation: music-list-in 0.2s ease;
}
@keyframes music-list-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.music-playlist-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
    overflow: hidden;
}
.music-playlist-item:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.08);
}
.music-playlist-item.active {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
}
.music-playlist-item.active::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary-vivid, #7e57c2), var(--secondary-vivid, #ab47bc));
}
.music-pl-index {
    flex: 0 0 auto;
    width: 18px;
    font-size: 11px;
    color: #a0a8b8;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.music-playlist-item.active .music-pl-index {
    color: var(--primary-vivid, #7e57c2);
    font-weight: 700;
}
.music-pl-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-playlist-item.active .music-pl-title {
    color: var(--primary-vivid, #7e57c2);
    font-weight: 600;
}
.music-pl-dur {
    flex: 0 0 auto;
    font-size: 11px;
    color: #a0a8b8;
    font-variant-numeric: tabular-nums;
}
/* ---------- 播放列表头部 / 移除 / 空状态 ---------- */
.music-pl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px 6px 10px;
}
.music-pl-mode {
    font-size: 11px;
    font-weight: 700;
    color: #a0a8b8;
}
.music-pl-clear {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 11px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}
.music-pl-clear:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.1);
    color: var(--primary-vivid, #7e57c2);
}
.music-pl-remove {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #c0c6d0;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
.music-pl-remove:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #e53e3e;
}
.music-pl-empty {
    padding: 20px 10px;
    text-align: center;
    font-size: 12px;
    color: #c0c6d0;
}
/* ---------- 音乐库大悬浮窗（全屏半透明毛玻璃） ---------- */
.music-library {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.35);
}
.music-player.show-library + .music-library {
    display: flex;
    animation: music-fade-in 0.2s ease;
}
.music-library-inner {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    animation: music-modal-in 0.3s cubic-bezier(0.22, 0.8, 0.36, 1);
}
@keyframes music-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes music-modal-in {
    from { opacity: 0.4; transform: translateY(48px); }
    to { opacity: 1; transform: translateY(0); }
}
.music-library-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 12px;
}
.music-library-title {
    font-size: 20px;
    font-weight: 700;
    color: #334155;
}
.music-library-title span {
    font-size: 14px;
    font-weight: 600;
    color: #a0a8b8;
    margin-left: 6px;
}
.music-library-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(51, 65, 85, 0.06);
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.music-library-close:hover {
    background: rgba(51, 65, 85, 0.12);
    color: #334155;
    transform: rotate(90deg);
}
.music-library-search {
    margin: 0 24px 12px;
    padding: 12px 18px;
    border: 1px solid rgba(51, 65, 85, 0.12);
    border-radius: 999px;
    font-size: 14px;
    color: #334155;
    background: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.music-library-search:focus {
    border-color: rgba(var(--primary-rgb, 126, 87, 194), 0.5);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 126, 87, 194), 0.12);
}
.music-library-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 16px 24px;
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
}
.music-library-list::-webkit-scrollbar {
    width: 6px;
}
.music-library-list::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.2);
    border-radius: 3px;
}
.music-lib-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: background 0.2s ease;
}
.music-lib-item:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.08);
}
.music-lib-play {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 2px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.music-lib-play:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.22);
    transform: scale(1.08);
}
.music-lib-title {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-lib-dur {
    flex: 0 0 auto;
    font-size: 12px;
    color: #a0a8b8;
    font-variant-numeric: tabular-nums;
}
.music-lib-toggle {
    flex: 0 0 auto;
    border: none;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
    transition: background 0.2s ease, color 0.2s ease;
}
.music-lib-toggle:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.2);
}
.music-lib-item.added .music-lib-toggle {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.music-lib-item.added .music-lib-toggle:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #e53e3e;
}
/* ---------- 音乐库网格（每排 5 个，按播放量排序） ---------- */
.music-library-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 4px;
}
@media (max-width: 900px) {
    .music-library-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
    .music-library-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
    .music-library-list { grid-template-columns: repeat(2, 1fr); }
}
.music-lib-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    padding: 8px;
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.05);
    border: 1px solid rgba(var(--primary-rgb, 126, 87, 194), 0.1);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    /* 等高卡片：内部使用固定高度行，避免内容长短导致卡片大小不一 */
    min-width: 0;
}
.music-lib-card:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb, 126, 87, 194), 0.15);
}
.music-lib-cover {
    /* 正方形封面：padding-top 百分比相对父级宽度计算，全浏览器一致 */
    position: relative;
    height: 0;
    padding-top: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary, #7e57c2), var(--secondary, #ab47bc));
    cursor: pointer;
    margin-bottom: 6px;
    transition: filter 0.2s ease;
}
.music-lib-cover > .music-lib-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.music-lib-cover:hover {
    filter: brightness(1.1);
}
.music-lib-play-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-vivid, #7e57c2);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.music-lib-cname {
    font-size: 13px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    /* 固定行高，歌名超长省略号，不影响卡片高度 */
    height: 18px;
    line-height: 18px;
}
.music-lib-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #a0a8b8;
    margin-bottom: 6px;
    /* 固定一行高度，内容不换行，保证各卡片高度一致 */
    height: 16px;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    flex-wrap: nowrap;
    gap: 4px;
}
.music-lib-plays {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--primary, #7e57c2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.music-lib-likes {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #ef4444;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.music-lib-dur {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    flex-shrink: 0;
}
.music-lib-card .music-lib-toggle {
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 5px 0;
    font-size: 12px;
    cursor: pointer;
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
    transition: background 0.2s ease, color 0.2s ease;
    /* 按钮固定高度，避免文字差异影响卡片高度 */
    height: 28px;
    line-height: 18px;
    flex-shrink: 0;
}
.music-lib-card .music-lib-toggle:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.2);
}
.music-lib-card.added .music-lib-toggle {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}
.music-lib-card.added .music-lib-toggle:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #e53e3e;
}
/* ---------- 折叠按钮（面板右上角，PC 与移动端通用） ---------- */
.music-collapse-btn {
    display: flex;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.music-collapse-btn svg {
    width: 14px;
    height: 14px;
}
.music-collapse-btn:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.12);
    color: var(--primary-vivid, #7e57c2);
}
.music-collapse-btn:active {
    transform: scale(0.9);
}

/* ---------- 折叠态（全端通用）：收起为小圆球，仅显示音符徽章 ---------- */
.music-player.collapsed {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    overflow: visible;
    /* 折叠态不可拖动，恢复原生触摸点击（保证点击小圆球能顺畅展开） */
    touch-action: auto;
}
.music-player.collapsed .music-eq,
.music-player.collapsed .music-title-wrap,
.music-player.collapsed .music-list-btn,
.music-player.collapsed .music-progress-row,
.music-player.collapsed .music-controls,
.music-player.collapsed .music-lyrics,
.music-player.collapsed .music-playlist,
.music-player.collapsed .music-collapse-btn {
    display: none !important;
}
.music-player.collapsed + .music-library {
    display: none !important;
}
.music-player.collapsed .music-info {
    padding: 0;
    gap: 0;
}
.music-player.collapsed .music-cd {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}
.music-player.collapsed .music-cd svg {
    width: 24px;
    height: 24px;
}
.music-player.collapsed .music-cd.playing::after {
    inset: -4px;
}

/* ---------- 歌词区（LRC） ---------- */
.music-lyrics {
    border-top: 1px solid rgba(51, 65, 85, 0.08);
    margin-top: 2px;
}
.music-lyrics-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px 4px;
    cursor: pointer;
    user-select: none;
}
.music-lyrics-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
}
.music-lyrics-arrow {
    width: 13px;
    height: 13px;
    color: #a0a8b8;
    transition: transform 0.25s ease;
}
.music-player.lyrics-collapsed .music-lyrics-arrow {
    transform: rotate(-90deg);
}
.music-lyrics-body {
    position: relative;
    height: 140px;
    overflow-y: auto;
    padding: 6px 2px;
    scroll-behavior: smooth;
}
.music-player.lyrics-collapsed .music-lyrics-body {
    display: none;
}
.music-lyric-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.music-lyric-line {
    padding: 5px 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #94a3b8;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: color 0.25s ease, background 0.25s ease, font-size 0.25s ease;
}
.music-lyric-line:hover {
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.07);
    color: #64748b;
}
.music-lyric-line.active {
    color: var(--primary-vivid, #7e57c2);
    font-weight: 700;
    font-size: 13.5px;
    background: rgba(var(--primary-rgb, 126, 87, 194), 0.1);
}
.music-lyric-empty {
    padding: 24px 8px;
    text-align: center;
    font-size: 12px;
    color: #c0c6d0;
}
.music-lyrics-body::-webkit-scrollbar {
    width: 4px;
}
.music-lyrics-body::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.2);
    border-radius: 2px;
}

/* ---------- 折叠 / 展开动画（全端通用） ---------- */
.music-player.expanded {
    animation: music-expand 0.28s cubic-bezier(0.22, 0.8, 0.36, 1);
}
.music-player.collapsing {
    animation: music-collapse 0.22s ease forwards;
}
@keyframes music-expand {
    from { opacity: 0; transform: scale(0.75); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes music-collapse {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.6); }
}

/* ---------- 移动端：默认折叠为小圆球，避免遮挡页面 UI ---------- */
@media (max-width: 768px) {
    .music-player.expanded {
        width: 280px;
        max-width: 280px;
    }
    .music-player.expanded .music-playlist {
        width: 230px;
    }
}

/* 小屏（≤480px）展开态进一步紧凑 */
@media (max-width: 480px) {
    .music-player.expanded {
        padding: 8px 10px 10px;
        width: 240px;
        max-width: 240px;
        border-radius: 16px;
    }
    .music-player.expanded .music-cd {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .music-player.expanded .music-cd svg {
        width: 19px;
        height: 19px;
    }
    .music-player.expanded .music-title-scroll {
        font-size: 12.5px;
    }
    /* 小屏空间有限，隐藏均衡器 */
    .music-player.expanded .music-eq {
        display: none !important;
    }
    /* 小屏隐藏点赞按钮，让歌名区域更大 */
    .music-player.expanded .music-like-btn {
        display: none !important;
    }
    .music-player.expanded .music-playlist {
        width: 200px;
    }
    .music-player.expanded .music-btn {
        width: 28px;
        height: 28px;
    }
    .music-player.expanded .music-btn svg {
        width: 14px;
        height: 14px;
    }
    .music-player.expanded .music-btn-play {
        width: 34px;
        height: 34px;
    }
    .music-player.expanded .music-btn-play svg {
        width: 17px;
        height: 17px;
    }
}

/* ============================================================
 * 节日背景特效（原为 index/detail/post/profile 四页内联重复，统一收敛到此处单一来源）
 * 由页面 body 上的节日 class 触发（如 body.spring / body.christmas ...）
 * ============================================================ */
body.spring::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 179, 0, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 80% 20%, rgba(255, 179, 0, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 20% 80%, rgba(255, 179, 0, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 80% 80%, rgba(255, 179, 0, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(255, 179, 0, 0.3) 0%, transparent 10%);
    z-index: -1;
    animation: lanterns 4s ease-in-out infinite;
}

body.christmas::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.8) 0%, transparent 5%),
        radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.6) 0%, transparent 4%),
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.7) 0%, transparent 3%),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.5) 0%, transparent 4%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 6%);
    z-index: -1;
    animation: snow 10s linear infinite;
}

body.valentine::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(233, 30, 99, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 75% 25%, rgba(233, 30, 99, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 25% 75%, rgba(233, 30, 99, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 75% 75%, rgba(233, 30, 99, 0.3) 0%, transparent 15%);
    z-index: -1;
    animation: hearts 3s ease-in-out infinite;
}

body.midautumn::before {
    content: '';
    position: fixed;
    top: 10%;
    right: 10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 224, 0.9) 0%, rgba(255, 255, 153, 0.7) 70%, transparent 100%);
    border-radius: 50%;
    z-index: -1;
    box-shadow: 0 0 150px rgba(255, 255, 153, 0.6);
    animation: moon 20s linear infinite;
}

body.midautumn::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 153, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 153, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 30% 70%, rgba(255, 255, 153, 0.2) 0%, transparent 10%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 153, 0.2) 0%, transparent 10%);
    z-index: -1;
    animation: twinkling 3s ease-in-out infinite;
}

body.mayday::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 80% 30%, rgba(76, 175, 80, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 50% 70%, rgba(76, 175, 80, 0.4) 0%, transparent 20%);
    z-index: -1;
    animation: leaves 6s ease-in-out infinite;
}

body.children::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 15%, rgba(255, 152, 0, 0.4) 0%, transparent 12%),
        radial-gradient(circle at 85% 15%, rgba(255, 152, 0, 0.4) 0%, transparent 12%),
        radial-gradient(circle at 15% 85%, rgba(255, 152, 0, 0.4) 0%, transparent 12%),
        radial-gradient(circle at 85% 85%, rgba(255, 152, 0, 0.4) 0%, transparent 12%),
        radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.4) 0%, transparent 12%);
    z-index: -1;
    animation: balloons 5s ease-in-out infinite;
}

body.national::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(229, 57, 53, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 75% 25%, rgba(229, 57, 53, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 25% 75%, rgba(229, 57, 53, 0.3) 0%, transparent 15%),
        radial-gradient(circle at 75% 75%, rgba(229, 57, 53, 0.3) 0%, transparent 15%);
    z-index: -1;
    animation: fireworks 2s ease-in-out infinite;
}

body.qingming::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(76, 175, 80, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 80% 30%, rgba(76, 175, 80, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 50% 70%, rgba(76, 175, 80, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 30% 60%, rgba(76, 175, 80, 0.3) 0%, transparent 10%),
        radial-gradient(circle at 70% 60%, rgba(76, 175, 80, 0.3) 0%, transparent 10%);
    z-index: -1;
    animation: leaves 6s ease-in-out infinite;
}

body.dragon::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(229, 57, 53, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 75% 25%, rgba(229, 57, 53, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 25% 75%, rgba(229, 57, 53, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 75% 75%, rgba(229, 57, 53, 0.4) 0%, transparent 15%),
        radial-gradient(circle at 50% 50%, rgba(255, 152, 0, 0.4) 0%, transparent 15%);
    z-index: -1;
    animation: dragonDance 4s ease-in-out infinite;
}

body.qixi::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(233, 30, 99, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 80% 20%, rgba(233, 30, 99, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 20% 80%, rgba(233, 30, 99, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 80% 80%, rgba(233, 30, 99, 0.3) 0%, transparent 12%),
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.3) 0%, transparent 12%);
    z-index: -1;
    animation: stars 3s ease-in-out infinite;
}

@keyframes lanterns {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes snow {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

@keyframes hearts {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes moon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes leaves {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes balloons {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-5deg); }
}

@keyframes fireworks {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes twinkling {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes dragonDance {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

@keyframes stars {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* ============================================================
 * 全局禁用毛玻璃效果（backdrop-filter）
 * 所有卡片的毛玻璃背景统一取消，保留半透明底色（rgba 背景仍在）
 * ============================================================ */
*,
*::before,
*::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
