/*
 Theme Name: HTBLOG Maiyitu
 Theme URI: http://maiyituart.cn
 Author: 麦艺兔
 Description: 基于 HTBLOG 模板的自定义主题，用于个人视频/音乐/语录小站首页。
 Version: 1.0.0
*/

/* 加载中遮罩 */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}
.page-loader.loaded {
    opacity: 0;
    pointer-events: none;
}
.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 182, 193, 0.3);
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
}
.loader-text {
    margin-top: 16px;
    color: #8b4a5c;
    font-size: 1rem;
}
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

/* 基本样式 */
body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    /* 只过渡 color，背景立即切换，避免暖米色闪烁 */
    transition: color 0.5s ease;
}

header {
    padding: 20px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

main {
    max-width: 800px;
    width: 100%;
    padding: 20px;
}

.note-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.note-section h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.note-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ffccd5;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 10px;
}

.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    margin-right: 10px;
}

.btn:hover {
    opacity: 0.8;
}

.delete-btn {
    background-color: #ff6b6b;
    color: white;
}

.delete-btn:hover {
    background-color: #ff4c4c;
}

.edit-btn {
    background-color: #6bafff;
    color: white;
}

.edit-btn:hover {
    background-color: #4c9fff;
}

.notes-display {
    margin-top: 20px;
}

.notes-display li {
    list-style: none;
    background-color: #fff8f8;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.note-category, .note-tags, .note-timestamp {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 5px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    color: #6a4a3c;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffccd5;
}

/* 主页视频窗口（核心内容之上，1.5倍等比例） */
.home-video-section {
    width: 100%;
    max-width: 780px;
    margin: 20px auto 24px;
    padding: 10px 0;
    overflow: hidden;
}
.home-video-section-hidden {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.home-video-wrap {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.home-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    padding: 10px;
    width: 100%;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}

/* 可爱浪漫主题
   如果想换整页背景图，可以在 body.romantic 这里加 background-image。*/
body.romantic {
    /* 背景颜色（没有图片时的底色，白色避免刷新时暖米色闪现） */
    background-color: #ffffff;
    color: #333;
    /* 使用 700×700 的 ffflux.svg 作为背景（紫粉渐变柔焦） */
    background-image: url('images/bg-main.svg');
    background-size: cover;
    background-position: center;
}

body.romantic header {
    background-color: #ffccd5;
}

body.romantic .btn {
    background-color: #ffccd5;
    color: #6a4a3c;
}

body.romantic .social-links a {
    color: #6a4a3c;
}

body.romantic .social-links a:hover {
    color: #ffccd5;
}

/* 顶部导航栏：与可爱风格统一（若有 WordPress 默认 header） */
body.romantic header:not(.welcome-page *),
body.romantic .wp-block-template-part-header,
body.romantic .site-header {
    background: linear-gradient(135deg, #ffccd5, #ffe4ec) !important;
    border-bottom: 1px solid rgba(255, 182, 193, 0.5) !important;
}
body.romantic header a { color: #6a4a3c !important; }

/* 机械风主题 */
body.mechanical {
    background-color: #1f1f1f;
    color: #e0e0e0;
}

body.mechanical header {
    background-color: #3a3a3a;
}

body.mechanical .btn {
    background-color: #3a3a3a;
    color: #e0e0e0;
}

body.mechanical .social-links a {
    color: #e0e0e0;
}

body.mechanical .social-links a:hover {
    color: #ffccd5;
}

/* 主题切换效果 */
body.cyber {
    background-color: #0a0a2a;
    color: #fff;
}

body.forest {
    background-color: #e8f5e9;
    color: #1b5e20;
}

/* 天体和星空效果（太阳/心形 1.5 倍大，无光圈，可点击开关飘落） */
.sky-body {
    position: absolute;
    top: 10%;
    right: 20%;
    width: 135px;
    height: 135px;
    border-radius: 50%;
    animation: move-body 10s infinite alternate ease-in-out;
    z-index: 999;
    cursor: pointer;
}
.sky-body.fall-on {
    filter: drop-shadow(0 0 8px rgba(255, 200, 150, 0.8));
}

@keyframes move-body {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* 白天：太阳图（sun.png，无光圈） */
.sun {
    background: transparent url('images/sun.png') center/contain no-repeat;
    box-shadow: none;
}

/* 夜间：透明心形（heart.svg，无光圈） */
.moon {
    background: transparent url('images/heart.svg') center/contain no-repeat;
    box-shadow: none;
}

.heart {
    background: transparent url('images/heart.svg') center/contain no-repeat;
    box-shadow: none;
}

/* 机器人样式（中间圆形头像容器）
   如果你想用自己的头像，只需要：
   1）在主题目录新建 images 目录，并上传 avatar.png；
   2）在 front-page.php 里使用 <img class="robot-avatar-img">（已经帮你写好）；
   3）在下面这个样式中调整尺寸/边框即可。*/
.robot-mascot {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 3px 3px 10px #d9c7b7, -3px -3px 10px #ffffff;
    transition: transform 0.5s ease;
    cursor: pointer;
    margin: 20px auto;
    overflow: hidden; /* 确保头像被裁剪成圆形 */
}

/* 头像图片本身的样式 */
.robot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例，铺满圆形容器 */
    border-radius: 50%;
}

.robot-mascot:hover {
    transform: scale(1.1) rotate(5deg);
}

.robot-mascot:hover .eye {
    animation: blink 0.3s ease;
}

.robot-mascot .face {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 3px solid #ff6b6b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-mascot .eye {
    width: 15px;
    height: 15px;
    background: #333;
    border-radius: 50%;
    position: absolute;
}

.robot-mascot .eye.left {
    left: 20%;
}

.robot-mascot .eye.right {
    right: 20%;
}

.robot-mascot .mouth {
    width: 25px;
    height: 5px;
    background: #333;
    position: absolute;
    bottom: 15px;
    border-radius: 10px;
    transition: 0.3s ease;
}

@keyframes blink {
    50% { height: 3px; }
}

/* 星空背景（白色闪烁点） */
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* 流星效果 */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0));
    animation: shoot 5s infinite linear;
}

@keyframes shoot {
    0% {
        transform: translate(-200px, -200px) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(200vw, 200vh) rotate(45deg);
        opacity: 0;
    }
}

/* 主题切换效果 */
body.day {
    background-color: #ffffff;
    color: #333;
}

body.night {
    background-color: #0a0a2a;
    color: #fff;
    /* 夜间背景图：将 bg-night.svg 或 bg-night.png 放到主题 images 下即可 */
    background-image: url('images/bg-night.svg');
    background-size: cover;
    background-position: center;
}

/* 发光文字效果 */
body.night h1 {
    color: #ffdd85;
    text-shadow: 2px 2px 10px #ffaa33, -2px -2px 10px #ff6600;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 2px 2px 10px #ffaa33, -2px -2px 10px #ff6600;
    }
    50% {
        text-shadow: 2px 2px 20px #ffe687, -2px -2px 20px #ffd700;
    }
}

/* 主内容区：AJAX 导航后保持正确布局
 * 不设 width:100%，让 body 的 align-items:center 将内容块居中，避免偏左 */
#htblog-main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    flex: 1;
    position: relative;
}

/* 星空/飘落容器：固定定位，不占文档流，避免把主内容顶上去 */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 欢迎页面特定样式：左右 padding 对称，避免视觉偏左 */
.welcome-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    padding: 120px 80px 80px 80px;
    position: relative;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

/* 按钮分组布局 */
.menu-buttons-wrapper {
    width: 100%;
    max-width: 860px;
    margin: 24px 0;
}
.menu-group-label {
    font-size: 0.85rem;
    color: #b88a9a;
    margin: 20px 0 8px;
    text-decoration: none;
    font-weight: 500;
}
.menu-group-label:first-of-type { margin-top: 0; }
.social-label { margin-top: 28px; margin-bottom: 10px; }

.menu-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 8px;
    max-width: 100%;
}
.menu-buttons-content {
    flex-wrap: wrap;
    gap: 10px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-icon {
    font-size: 1.25em;
    transition: transform 0.25s ease;
}

/* 悬浮效果 */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
}

/* 日夜切换按钮（右上角） */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255, 182, 193, 0.8);
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.35);
}
body.night .theme-toggle-btn {
    border-color: rgba(138, 138, 255, 0.6);
    background: rgba(42, 42, 74, 0.9);
}

/* 主题按钮样式 */
.theme-option {
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 动画类 */
.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* 机器人消息样式 */
.robot-message {
    transition: all 0.3s ease;
    pointer-events: none;
    user-select: none;
}

/* 夜间模式下的机器人样式调整 */
body.night .robot-mascot {
    border-color: #8a8aff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3), -3px -3px 10px rgba(255, 255, 255, 0.1);
}

/* 添加点击特效 */
.robot-mascot:active {
    transform: scale(0.95);
}

.robot-mascot:hover .mouth {
    height: 8px;
    border-radius: 5px 5px 10px 10px;
}

/* ========== 二次元风格增强 ========== */

/* 飘落效果（樱花/糖果/月见草），保证在最上层可见 */
#sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: visible;
}

.sakura {
    position: absolute;
    top: -30px;
    z-index: 1;
    animation: sakura-fall linear forwards;
    will-change: transform;
}

@keyframes sakura-fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 1;
    }
    25% {
        transform: translateY(25vh) rotate(90deg) translateX(20px);
        opacity: 1;
    }
    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
        opacity: 1;
    }
    75% {
        transform: translateY(75vh) rotate(270deg) translateX(20px);
        opacity: 1;
    }
    /* 接近底部时逐渐透明消失 */
    85% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(110vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

/* 左下角音乐播放器 */
.music-player-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 998;
}
.music-player-wrap.player-hidden .music-player {
    display: none;
}
.music-player-show-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid rgba(255, 182, 193, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.2);
}
.music-player-show-btn:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}
.music-player-show-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.music-player {
    position: relative;
    width: 360px;
    background: #fff;
    accent-color: #ff6b9d;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 182, 193, 0.6);
    z-index: 998;
    overflow: hidden;
    transition: all 0.3s ease;
}
.music-player:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.2);
}
.music-player.collapsed .music-player-playlist {
    display: none;
}
.music-player-netease {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}
.music-player-netease-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.music-player-netease .music-player-netease-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.music-player-netease .music-player-netease-close:hover { color: #e91e63; }
.music-player .music-netease-iframe {
    width: 100%;
    max-width: 330px;
    height: 86px;
    border: none;
    border-radius: 8px;
}
.music-player-main {
    padding: 14px 16px;
}
.music-player-now {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.music-album-art {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffe4ec, #ffccd5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.music-album-art .music-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.music-note {
    font-size: 1.5rem;
    color: #ff6b9d;
}
.music-track-info {
    flex: 1;
    min-width: 0;
}
.music-track-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}
.music-track-credits {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: #888;
}
.music-track-meta {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: #999;
}
/* 长文本滚动（溢出时无缝循环） */
.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
}
.scrolling-text-content {
    display: inline-block;
    padding-right: 2em;
    animation: none;
}
.scrolling-text.scroll .scrolling-text-content {
    animation: music-scroll 10s linear infinite;
}
@keyframes music-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.music-player-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #999;
    padding: 4px;
    transition: color 0.2s;
}
.music-player-toggle:hover {
    color: #ff6b9d;
}
.music-progress-bar {
    position: relative;
    height: 6px;
    margin-bottom: 12px;
    background: #eee;
    border-radius: 3px;
    cursor: pointer;
}
.music-progress-bg {
    position: absolute;
    inset: 0;
    border-radius: 3px;
}
.music-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: #ff6b9d;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.music-controls-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}
.music-controls-center {
    display: flex;
    align-items: center;
    gap: 7px;
}
.music-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}
.music-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 157, 0.4);
}
/* 上一首/下一首：浅粉底 + 粉图标，与站点统一，禁止蓝色 */
.music-btn-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(145deg, #ffccd5, #ffb3c1) !important;
    color: #c2185b !important;
    font-size: 1rem;
}
.music-btn-icon:hover,
.music-btn-icon:focus,
.music-btn-icon:active {
    background: linear-gradient(145deg, #ffb3c1, #ff9aad) !important;
    color: #ad1457 !important;
}
.music-btn-icon:hover {
    transform: scale(1.05);
}
/* 播放键：主色粉 #ff6b9d，白色图标，禁止任何蓝色 */
.music-play-btn {
    width: 48px;
    height: 48px;
    background: #ff6b9d !important;
    background-color: #ff6b9d !important;
    color: #fff !important;
    font-size: 1.2rem;
}
.music-play-btn:hover,
.music-play-btn:focus,
.music-play-btn:active {
    background: #ff5287 !important;
    background-color: #ff5287 !important;
    color: #fff !important;
}
.music-play-btn:hover {
    transform: scale(1.05);
}
.music-play-btn .play-icon {
    color: #fff !important;
}
.music-btn-img {
    padding: 0;
    overflow: hidden;
}
.music-btn-img img {
    display: block;
    object-fit: cover;
}
.music-btn-icon.music-btn-img img {
    width: 32px;
    height: 32px;
}
.music-play-btn.music-btn-img img {
    width: 56px;
    height: 56px;
    margin: -4px;
}
.music-controls-volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    width: 100px;
    margin-right: 8px;
    min-width: 0;
}
.music-vol-icon {
    font-size: 0.9rem;
}
.music-controls-volume input[type="range"] {
    flex: 1;
    min-width: 0;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    border-radius: 2px;
}
.music-controls-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b9d;
    cursor: pointer;
}
.music-controls-volume input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff6b9d;
    cursor: pointer;
    border: none;
}
.music-player-playlist {
    border-top: 1px solid #eee;
}
.music-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.music-playlist-header:hover {
    background: #fafafa;
}
.music-playlist-chevron {
    font-size: 0.8rem;
    color: #999;
    transition: transform 0.2s;
}
.music-player-playlist.collapsed .music-playlist-chevron {
    transform: rotate(-90deg);
}
.music-player-playlist.collapsed .music-playlist-body {
    display: none;
}
.music-btn-icon.active {
    background: rgba(255, 107, 157, 0.4) !important;
    color: #ff6b9d !important;
}
.music-playlist-body {
    max-height: 160px;
    overflow-y: auto;
}
.music-playlist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.music-playlist-item:hover {
    background: #fafafa;
}
.music-playlist-item.active {
    background: rgba(255, 107, 157, 0.12);
    color: #ff6b9d;
}
.music-playlist-item .pl-note {
    color: #999;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.music-playlist-item.active .pl-note {
    color: #ff6b9d;
}
.music-playlist-item .pl-info {
    flex: 1;
    min-width: 0;
}
.music-playlist-item .pl-name {
    display: block;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-playlist-item .pl-artist {
    display: block;
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-playlist-item.active .pl-artist {
    color: rgba(255, 107, 157, 0.9);
}
body.night .music-player-show-btn {
    background: rgba(25, 25, 55, 0.95);
    border-color: rgba(138, 138, 255, 0.4);
}
body.night .music-player-show-btn:hover {
    background: rgba(35, 35, 70, 0.98);
}
body.night .music-player {
    background: rgba(25, 25, 55, 0.98);
    border-color: rgba(138, 138, 255, 0.4);
    accent-color: #8a8aff;
}
body.night .music-track-title {
    color: #e8e8ff;
}
body.night .music-track-credits {
    color: #a0a0c8;
}
body.night .music-track-meta,
body.night .music-player-toggle {
    color: #9090b8;
}
body.night .music-album-art {
    background: linear-gradient(145deg, rgba(100, 100, 180, 0.4), rgba(80, 80, 140, 0.3));
}
body.night .music-note {
    color: #8a8aff;
}
body.night .music-btn-icon {
    background: linear-gradient(145deg, rgba(100, 100, 180, 0.4), rgba(80, 80, 140, 0.3));
    color: #b0b0e8;
}
body.night .music-btn-icon:hover {
    background: linear-gradient(145deg, rgba(138, 138, 255, 0.5), rgba(100, 100, 180, 0.4));
    color: #c8c8ff;
}
body.night .music-btn-icon.active {
    background: rgba(138, 138, 255, 0.4) !important;
    color: #a0a0ff !important;
}
body.night .music-play-btn {
    background: linear-gradient(145deg, #6a6acc, #5a5ab8);
    color: #fff;
}
body.night .music-play-btn:hover {
    background: linear-gradient(145deg, #7a7add, #6a6acc);
}
body.night .music-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}
body.night .music-progress-fill {
    background: linear-gradient(90deg, #6a6acc, #8a8aff);
}
body.night .music-controls-volume input[type="range"] {
    background: rgba(255, 255, 255, 0.15);
}
body.night .music-controls-volume input[type="range"]::-webkit-slider-thumb {
    background: #8a8aff;
}
body.night .music-controls-volume input[type="range"]::-moz-range-thumb {
    background: #8a8aff;
}
body.night .music-player-playlist {
    border-top-color: rgba(138, 138, 255, 0.2);
}
body.night .music-playlist-header {
    color: #a0a0c8;
}
body.night .music-playlist-header:hover {
    background: rgba(138, 138, 255, 0.08);
}
body.night .music-playlist-body {
    background: rgba(15, 15, 40, 0.5);
}
body.night .music-playlist-item {
    color: #b8b8d8;
}
body.night .music-playlist-item:hover {
    background: rgba(138, 138, 255, 0.08);
}
body.night .music-playlist-item.active {
    background: rgba(138, 138, 255, 0.2);
    color: #c8c8ff;
}
body.night .music-playlist-item.active .pl-artist {
    color: rgba(200, 200, 255, 0.9);
}
body.night .music-playlist-item.active .pl-note {
    color: #8a8aff;
}

/* 网易云外链播放器（依托网站播放器位置，访客离开后释放） */
.music-player-netease-wrap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    width: 360px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 182, 193, 0.6);
    overflow: hidden;
}
.music-player-netease-inner { padding: 12px 16px; }
.music-player-netease-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}
.music-player-netease-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.music-player-netease-close:hover { color: #e91e63; }
.music-netease-iframe {
    width: 100%;
    max-width: 330px;
    height: 86px;
    border: none;
    border-radius: 8px;
}
/* 有主播放器时，网易云叠在上方 */
body:has(#music-player-wrap:not(.player-hidden)) .music-player-netease-wrap {
    bottom: 240px;
}
body.night .music-player-netease-wrap {
    background: rgba(25, 25, 55, 0.98);
    border-color: rgba(138, 138, 255, 0.4);
}
body.night .music-player-netease-header { color: #c0c0e0; }
body.night .music-player-netease-close { color: #9090b8; }
body.night .music-player-netease-close:hover { color: #a0a0ff; }

/* 导航按钮：圆角矩形 + 配色 */
.anime-btn {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 182, 193, 0.6);
    background: linear-gradient(145deg, #fff5f7, #ffe4ec);
    color: #8b4a5c;
    transition: all 0.3s ease;
}

.anime-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: left 0.5s;
}

.anime-btn:hover::before {
    left: 100%;
}

.anime-btn:hover {
    border-color: #e91e63;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.25);
    transform: translateY(-6px) scale(1.03);
    background: linear-gradient(145deg, #ffe4ec, #ffc8dd);
    color: #ad1457;
}
.anime-btn:hover .btn-icon {
    transform: scale(1.15);
}

.anime-btn.primary-btn {
    background: linear-gradient(145deg, #ffcdd2, #f8bbd0);
    border-color: rgba(233, 30, 99, 0.5);
    color: #880e4f;
}
.anime-btn.primary-btn:hover {
    background: linear-gradient(145deg, #f8bbd0, #f48fb1);
    border-color: #c2185b;
}

/* 卡片展示区域 */
.card-section {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.2);
    border: 2px solid #ffccd5;
    transition: all 0.5s ease;
}

.card-section.hidden {
    display: none;
}

.card-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.card-section-header h2 {
    font-size: 1.5rem;
    color: #ff6b9d;
    margin: 0;
}

.close-card-btn {
    background: #ff6b9d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.close-card-btn:hover {
    background: #ff4785;
    transform: rotate(90deg);
}

/* 卡片Swiper样式 */
.card-swiper {
    width: 100%;
    padding: 20px 0;
}

.anime-card {
    background: linear-gradient(145deg, #fff, #fff9f9);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffd6e0;
    transition: transform 0.3s ease;
}

.anime-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 107, 157, 0.25);
}

.anime-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* B站动态卡片 */
.dynamic-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.dynamic-card-cover {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.dynamic-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dynamic-card-pics.grid1 { aspect-ratio: 16/9; }
.dynamic-card-pics.grid1 img { width: 100%; height: 100%; object-fit: cover; }
.dynamic-card-pics.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; aspect-ratio: 16/9; }
.dynamic-card-pics.grid2 img { width: 100%; height: 100%; object-fit: cover; }
.dynamic-card-pics.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; aspect-ratio: 1; }
.dynamic-card-pics.grid3 img { width: 100%; height: 100%; object-fit: cover; }
.dynamic-card-summary {
    padding: 0 14px 12px;
    font-size: 0.8rem;
    color: #8b5a6a;
    line-height: 1.4;
    max-height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.dynamic-card-text {
    padding: 12px 14px;
    color: #6a4a3c;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}
.dynamic-card-text:hover {
    color: #ff6b9d;
}
.dynamic-cards-loading,
.dynamic-cards-error {
    padding: 24px;
    text-align: center;
    color: #8b5a6a;
}
.dynamic-cards-error.hidden {
    display: none;
}

/* 社交链接二次元风格 */
.social-card {
    background: linear-gradient(145deg, #fff, #fff5f7);
    border: 2px solid #ffd6e0;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.1);
}

.social-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: #ff6b9d;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.2);
}

.social-icon {
    font-size: 1.3em;
}

.social-name {
    color: #6a4a3c;
    font-weight: 500;
}

/* 社交按钮紧凑模式（缩小） */
.social-links-compact {
    gap: 10px !important;
    flex-wrap: wrap;
    justify-content: center;
}

.social-links-compact .social-card {
    padding: 6px 12px;
    border-radius: 18px;
    font-size: 0.9rem;
}

.social-links-compact .social-icon {
    font-size: 1rem;
}

.social-links-compact .social-name {
    font-size: 0.85rem;
}

/* 标题：粉红渐变，介于亮粉与柔和之间 */
.glow-text {
    background: linear-gradient(135deg, #d97a9a, #e890a8, #f0a8c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: bold;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgba(255,255,255,0.7)) drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    animation: title-glow 2s ease-in-out infinite alternate;
}

@keyframes title-glow {
    0% { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgba(255,255,255,0.7)) drop-shadow(0 2px 4px rgba(0,0,0,0.12));
    }
    100% { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgba(255,255,255,0.8)) drop-shadow(0 2px 5px rgba(0,0,0,0.15));
    }
}

.subtitle {
    color: #c94a6a;
    font-size: 1.25rem;
    margin-top: 10px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.bio-slogan {
    color: #8b5a6a;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.5;
}

.latest-dynamic,
.latest-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 14px;
    background: rgba(255, 182, 193, 0.25);
    border-radius: 20px;
    font-size: 0.9rem;
    color: #7a4a5a;
}
.hint-badge {
    background: linear-gradient(135deg, #ff8fab, #ff6b9d);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}
.latest-dynamic .live-badge {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}
.latest-dynamic .live-badge:hover,
.latest-hint .live-badge:hover {
    text-decoration: underline;
}
.latest-hint .live-badge {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}
.latest-hint .live-off {
    color: #999;
    font-size: 0.9em;
}
/* 直播状态左侧圆形指示器 */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.live-dot.live-off {
    background-color: #999;
}
.live-dot.live-on {
    background-color: #7dd3fc;
}
.latest-hint-clickable {
    cursor: pointer;
}
.latest-hint-clickable:hover {
    background: rgba(255, 182, 193, 0.35);
}
.video-mute-toggle {
    cursor: pointer;
    font-size: 1em;
    opacity: 0.85;
    padding: 0 4px;
    margin-left: 4px;
}
.video-mute-toggle:hover {
    opacity: 1;
}
.latest-dynamic .dynamic-link {
    color: #c94a6a;
    text-decoration: none;
}
.latest-dynamic .dynamic-link:hover {
    text-decoration: underline;
}

/* 夜间模式二次元风格 */
body.night .card-section {
    background: rgba(26, 26, 58, 0.95);
    border-color: #8a8aff;
}

body.night .card-section-header h2 {
    color: #a8a8ff;
}

body.night .close-card-btn {
    background: #8a8aff;
}

body.night .anime-card {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border-color: #6a6aaa;
}

body.night .social-card {
    background: linear-gradient(145deg, #2a2a4a, #1a1a3a);
    border-color: #6a6aaa;
}

body.night .social-name {
    color: #e0e0ff;
}

body.night .glow-text {
    background: linear-gradient(135deg, #a8a8ff, #c8c8ff, #e8e8ff);
    -webkit-background-clip: text;
    background-clip: text;
}

body.night .subtitle {
    color: #c8c8ff;
}

body.night .bio-slogan { color: #b0b0e0; }
body.night .latest-hint { background: rgba(100, 100, 150, 0.2); color: #c0c0e8; }
body.night .hint-badge { background: linear-gradient(135deg, #6a6aaa, #8a8aff); }
body.night .menu-group-label { color: #9090c0; }

body.night .anime-btn {
    background: linear-gradient(145deg, #2d2d4a 0%, #1a1a3a 50%, #0a0a2a 100%);
    border-color: rgba(138, 138, 255, 0.4);
    color: #d0d0ff;
}

body.night .anime-btn:hover {
    border-color: #7c7cff;
    box-shadow: 0 6px 20px rgba(124, 124, 255, 0.3);
    background: linear-gradient(145deg, #3d3d5c 0%, #252545 50%, #0a0a2a 100%);
    color: #e8e8ff;
}

body.night .anime-btn.primary-btn {
    background: linear-gradient(145deg, #3a3a5a 0%, #202040 50%, #0a0a2a 100%);
    border-color: rgba(124, 124, 255, 0.5);
}

/* 夜间模式：歌单页、图库页、日历页 */
body.night.music-list-page {
    background: #0a0a2a;
}
body.night.music-list-page .wrap {
    background: transparent;
}
body.night.music-list-page .profile .glow-text { color: #ffdd85; }
body.night.music-list-page .profile .subtitle,
body.night.music-list-page .profile .bio-slogan { color: #b0b0d8; }
body.night.music-list-page .search-box {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
}
body.night.music-list-page .search-box input {
    background: transparent;
    color: #fff;
}
body.night.music-list-page .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
body.night.music-list-page .filter-btn {
    background: rgba(50, 50, 90, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
    color: #b0b0d8;
}
body.night.music-list-page .filter-btn:hover {
    background: rgba(70, 70, 120, 0.7);
    border-color: rgba(138, 138, 255, 0.5);
}
body.night.music-list-page .filter-btn.active {
    background: linear-gradient(145deg, #4a4a8a, #3a3a7a);
    border-color: rgba(138, 138, 255, 0.5);
    color: #d0d0ff;
}
body.night.music-list-page .table-wrap {
    background: rgba(35, 35, 70, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.music-list-page th {
    background: rgba(50, 50, 90, 0.8);
    color: #b0b0d8;
    border-bottom-color: rgba(138, 138, 255, 0.2);
}
body.night.music-list-page td {
    color: #c0c0e0;
    border-top-color: rgba(138, 138, 255, 0.15);
}
body.night.music-list-page tbody tr:hover td {
    background: rgba(60, 60, 110, 0.5);
}
body.night.music-list-page .song-name { color: #a0a0e8; }
body.night.music-list-page .song-name:hover { color: #c0c0ff; }
body.night.music-list-page .link-icon { background: rgba(138, 138, 255, 0.4) !important; color: #fff !important; }
body.night.music-list-page .like-btn {
    background: rgba(100, 100, 160, 0.5);
    color: #c0c0e8;
}
body.night.music-list-page .like-btn:hover { background: rgba(120, 120, 180, 0.6); }
body.night.music-list-page .like-btn.liked { background: rgba(138, 138, 255, 0.4); color: #fff; }
body.night.music-list-page .pagination .page-btn {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.4);
    color: #c0c0e8;
}
body.night.music-list-page .pagination .page-btn:hover:not(:disabled) { border-color: #8a8aff; }
body.night.music-list-page .pagination .page-btn.active {
    background: rgba(138, 138, 255, 0.3);
    border-color: rgba(138, 138, 255, 0.5);
    color: #d0d0ff;
}
body.night.music-list-page .pagination .page-info { color: #9090c0; }

body.night.gallery-page {
    background: #0a0a2a;
}
body.night.gallery-page .profile .glow-text { color: #ffdd85; }
body.night.gallery-page .profile .subtitle { color: #b0b0d8; }
body.night.gallery-page .search-box {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
}
body.night.gallery-page .search-box input {
    background: transparent;
    color: #fff;
}
body.night.gallery-page .search-box input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}
body.night.gallery-page .filter-btn {
    background: rgba(50, 50, 90, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
    color: #b0b0d8;
}
body.night.gallery-page .filter-btn:hover {
    background: rgba(70, 70, 120, 0.7);
    border-color: rgba(138, 138, 255, 0.5);
}
body.night.gallery-page .filter-btn.active {
    background: linear-gradient(145deg, #4a4a8a, #3a3a7a);
    border-color: rgba(138, 138, 255, 0.5);
    color: #d0d0ff;
}
body.night.gallery-page .grid-wrap {
    background: rgba(35, 35, 70, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.gallery-page .card {
    background: rgba(45, 45, 85, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.gallery-page .card:hover {
    box-shadow: 0 12px 32px rgba(138, 138, 255, 0.2);
}
body.night.gallery-page .card-img {
    background: linear-gradient(135deg, rgba(50, 50, 90, 0.6) 0%, rgba(40, 40, 80, 0.5) 100%);
}
body.night.gallery-page .card-info {
    background: rgba(35, 35, 70, 0.5);
    border-top-color: rgba(138, 138, 255, 0.2);
}
body.night.gallery-page .card-title { color: #a0a0c8; }
body.night.gallery-page .card-tag {
    background: rgba(138, 138, 255, 0.3);
    color: #c0c0e8;
}
body.night.gallery-page .notice {
    background: rgba(50, 50, 90, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
}
body.night.gallery-page .notice p { color: #b0b0d8; }
body.night.gallery-page .credits { color: #9090c0; }
body.night.gallery-page .no-results { color: #9090c0; }

body.night.games-calendar-page {
    background: #0a0a2a;
}
body.night.games-calendar-page .wrap { background: transparent; }
body.night.games-calendar-page .page-title { color: #ffdd85; }
body.night.games-calendar-page .page-subtitle,
body.night.games-calendar-page .last-updated { color: #a0a0c8; }
body.night.games-calendar-page .last-updated code {
    background: rgba(138, 138, 255, 0.2);
    color: #a0a0ff;
}
body.night.games-calendar-page .month-calendar {
    background: rgba(35, 35, 70, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.games-calendar-page .month-calendar .cal-title {
    background: linear-gradient(135deg, #4a4a8a, #3a3a7a);
}
body.night.games-calendar-page .month-calendar .cal-month-nav {
    background: rgba(45, 45, 85, 0.6);
    border-bottom-color: rgba(138, 138, 255, 0.2);
    color: #c0c0e0;
}
body.night.games-calendar-page .month-calendar .cal-nav-btn,
body.night.games-calendar-page .month-calendar .cal-nav-today {
    background: rgba(50, 50, 90, 0.6);
    border-color: rgba(138, 138, 255, 0.4);
    color: #a0a0ff;
}
body.night.games-calendar-page .month-calendar .cal-nav-btn:hover,
body.night.games-calendar-page .month-calendar .cal-nav-today:hover {
    background: rgba(138, 138, 255, 0.2);
}
body.night.games-calendar-page .month-calendar .cal-month-text {
    color: #c0c0e0;
}
body.night.games-calendar-page .month-calendar .cal-weekdays {
    background: rgba(45, 45, 85, 0.6);
    border-bottom-color: rgba(138, 138, 255, 0.2);
}
body.night.games-calendar-page .month-calendar .cal-weekday { color: #a0a0c8; }
body.night.games-calendar-page .month-calendar .cal-day {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.2);
    color: #c0c0e0;
}
body.night.games-calendar-page .month-calendar .cal-day.has-events {
    background: rgba(60, 60, 110, 0.6);
    border-color: rgba(138, 138, 255, 0.3);
}
body.night.games-calendar-page .month-calendar .cal-day.cal-selected {
    background: linear-gradient(145deg, #4a4a8a, #3a3a7a) !important;
    border-color: rgba(138, 138, 255, 0.6) !important;
}
body.night.games-calendar-page .live-schedule {
    background: rgba(35, 35, 70, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.games-calendar-page .live-schedule .schedule-title {
    background: linear-gradient(135deg, #4a4a8a, #3a3a7a);
}
body.night.games-calendar-page .live-schedule .schedule-week {
    background: rgba(45, 45, 85, 0.6);
    border-bottom-color: rgba(138, 138, 255, 0.2);
    color: #c0c0e0;
}
body.night.games-calendar-page .live-schedule .schedule-week-btn {
    background: rgba(50, 50, 90, 0.6);
    border-color: rgba(138, 138, 255, 0.4);
    color: #a0a0ff;
}
body.night.games-calendar-page .live-schedule .schedule-week-btn:hover {
    background: rgba(138, 138, 255, 0.2);
}
body.night.games-calendar-page .live-schedule .schedule-day {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.2);
}
body.night.games-calendar-page .live-schedule .schedule-day-header {
    background: rgba(50, 50, 90, 0.6);
    border-right-color: rgba(138, 138, 255, 0.2);
    color: #c0c0e0;
}
body.night.games-calendar-page .live-schedule .schedule-day-body { color: #c0c0e0; }
body.night.games-calendar-page .live-schedule .schedule-day-body .schedule-time { color: #8a8aff; }
body.night.games-calendar-page .game-event-card {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.games-calendar-page .game-event-card .event-title { color: #e0e0f0; }
body.night.games-calendar-page .game-event-card .event-desc { color: #a0a0c8; }
body.night.games-calendar-page .game-event-card .event-meta { color: #9090c0; }
body.night.games-calendar-page .timeline-month {
    background: rgba(138, 138, 255, 0.15);
    color: #a0a0ff;
}
body.night.games-calendar-page .timeline-date-header .date-text { color: #c0c0e0; }
body.night.games-calendar-page .timeline-date-header .date-weekday { color: #9090c0; }
body.night.games-calendar-page .empty-state {
    background: rgba(40, 40, 80, 0.6);
    border-color: rgba(138, 138, 255, 0.25);
}
body.night.games-calendar-page .empty-state h3 { color: #b0b0d8; }
body.night.games-calendar-page .empty-state p { color: #9090c0; }

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .menu-btn {
        flex: 0 0 calc(50% - 4px);
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    /* 社交按钮移动端 */
    .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0 16px;
        width: 100%;
        box-sizing: border-box;
        margin-top: 20px;
    }

    .social-card {
        flex: 0 0 calc(33.33% - 8px);
        justify-content: center;
        padding: 6px 8px;
        font-size: 0.75rem;
        min-height: 36px;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .social-card .social-name {
        color: #6a4a3c;
        font-weight: normal;
    }

    .social-card .social-icon {
        font-size: 1.1em;
    }

    .glow-text {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .card-section {
        margin: 10px 16px;
        width: calc(100% - 32px);
        max-height: 70vh;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .card-swiper {
        padding: 10px 0;
    }

    /* 游戏按钮移动端 - 2列网格 */
    .game-buttons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .game-buttons .menu-btn {
        padding: 10px 6px;
        font-size: 0.75rem;
        min-height: 50px;
        flex-direction: column;
        gap: 3px;
        justify-content: center;
    }

    .game-buttons .btn-icon {
        font-size: 1.2rem;
    }
}

/* 超小屏幕优化 */
@media (max-width: 380px) {
    .menu-btn {
        flex: 1 1 100%;
        min-width: unset;
    }

    .game-buttons {
        grid-template-columns: 1fr;
    }

    .glow-text {
        font-size: 1.5rem;
    }
}

/* Live2D 看板娘（右下角，pixi-live2d-display） */
.live2d-widget {
    position: fixed !important;
    right: 10px !important;
    left: auto !important;
    bottom: 0 !important;
    top: auto !important;
    width: 280px;
    height: 380px;
    z-index: 9999;
    pointer-events: auto;
}
.live2d-widget canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
.live2d-switch-btn:hover {
    background: rgba(255, 182, 193, 0.3) !important;
}

/* 手机端隐藏：主题切换、播放器、Live2D 避免遮挡主内容 */
@media (max-width: 768px) {
    #theme-toggle,
    #music-player-wrap,
    #live2d-widget {
        display: none !important;
    }
}
