/* ============================================================
   炫酷增强层 - 在原样式基础上叠加（移动端 + 桌面端适配）
   ============================================================ */

:root {
    --neon-blue: #00d4ff;
    --neon-pink: #ff3d81;
    --neon-purple: #8b5cf6;
    --neon-gold: #ffd166;
    --glass: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.35);
}

/* ---------- 淡雅玻璃质感背景 ---------- */
body {
    background: linear-gradient(135deg,
        rgba(236, 244, 255, 0.45) 0%,
        rgba(243, 238, 255, 0.38) 45%,
        rgba(255, 240, 248, 0.36) 100%) !important;
}

.bg-image {
    filter: blur(4px) saturate(1.05) !important;
    opacity: 0.22 !important;
    animation: bgDrift 40s ease-in-out infinite alternate;
}
.bg-image::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.34)),
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.10), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(0, 212, 255, 0.09), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 61, 129, 0.07), transparent 40%);
    animation: auroraShift 18s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
@keyframes bgDrift {
    from { transform: scale(1.05); }
    to   { transform: scale(1.18) translateX(-2%); }
}
@keyframes auroraShift {
    from { opacity: 0.6; transform: translateY(0); }
    to   { opacity: 1; transform: translateY(-3%); }
}

/* ---------- 淡玻璃导航 ---------- */
.bilibili-header, .page-header {
    background: rgba(255, 255, 255, 0.42) !important;
    backdrop-filter: blur(22px) saturate(1.5) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 6px 28px rgba(140, 160, 210, 0.16) !important;
    transition: background 0.4s ease;
}
.nav-item {
    position: relative;
    color: #34476b !important;
    transition: color 0.3s, text-shadow 0.3s;
}
.nav-item::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #4f7cff, #b558ff);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}
.nav-item:hover::after, .nav-item.active::after { width: 80%; }
.nav-item:hover, .nav-item.active {
    color: #1e3a8a !important;
    text-shadow: 0 0 10px rgba(79, 124, 255, 0.35);
}

/* ---------- 标题渐变霓虹文字 ---------- */
.section-title, .page-header h1, .slide-content h2 {
    background: linear-gradient(90deg, #2f4470 10%, #4f7cff 40%, #8b5cf6 70%, #e34d8a 95%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonFlow 6s linear infinite;
    text-shadow: none !important;
    filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.3));
}
@keyframes neonFlow {
    to { background-position: 200% center; }
}

/* ---------- 卡片悬浮发光（淡磨砂玻璃） ---------- */
.content-card, .gallery-item, .hot-item, .news-item {
    background: rgba(255, 255, 255, 0.38) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 4px 24px rgba(140, 160, 210, 0.14);
    border-radius: 16px !important;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.45s ease, border-color 0.45s ease !important;
    will-change: transform;
}
.content-card:hover, .gallery-item:hover, .hot-item:hover, .news-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.52) !important;
    box-shadow: 0 12px 40px rgba(120, 150, 220, 0.22) !important;
    border-color: rgba(255, 255, 255, 0.75) !important;
    z-index: 2;
}
.content-card img, .gallery-img, .hot-img {
    transition: transform 0.6s ease, filter 0.6s ease;
}
.content-card:hover img, .gallery-item:hover .gallery-img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.15);
}

/* ---------- 按钮霓虹光效 ---------- */
.banner-btn, .back-btn, .search-btn, .upload-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 24px !important;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.banner-btn:hover, .back-btn:hover, .upload-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 24px rgba(0, 212, 255, 0.5);
}
.banner-btn::before, .upload-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
    transition: left 0.5s;
}
.banner-btn:hover::before, .upload-btn:hover::before { left: 100%; }

/* ---------- 滚动入场动画 ---------- */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ============================================================
   登录 / 注册 UI
   ============================================================ */
.auth-slot { display: flex; align-items: center; gap: 10px; }
.auth-btn {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid rgba(120, 150, 220, 0.4);
    background: linear-gradient(135deg, rgba(79,124,255,0.12), rgba(181,88,255,0.12));
    color: #2c3e50;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}
.auth-btn:hover {
    border-color: #4f7cff;
    color: #1e3a8a;
    box-shadow: 0 0 14px rgba(79, 124, 255, 0.3);
}
.user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.55);
    color: #2c3e50;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.user-chip .avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: bold;
}
.user-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(15, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    display: none;
    z-index: 1001;
}
.user-menu.open { display: block; }
.user-menu button {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: #e8ecf4;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}
.user-menu button:hover { background: rgba(0,212,255,0.12); }

/* 模态框 */
.auth-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.7);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.auth-modal-mask.show { opacity: 1; pointer-events: auto; }
.auth-modal {
    width: min(92vw, 380px);
    background: linear-gradient(160deg, rgba(22, 28, 55, 0.98), rgba(14, 18, 38, 0.98));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 28px;
    transform: translateY(24px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), var(--shadow-glow);
}
.auth-modal-mask.show .auth-modal { transform: none; }
.auth-modal h2 {
    margin: 0 0 4px;
    font-size: 22px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-modal .modal-sub { color: #5b6b8e; font-size: 13px; margin-bottom: 20px; }
.auth-field {
    width: 100%;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-field:focus {
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0,212,255,0.18);
}
.auth-submit {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    background-size: 150% auto;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s, transform 0.2s;
}
.auth-submit:hover { background-position: right center; transform: translateY(-1px); }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; color: #5b6b8e; }
.auth-switch a { color: var(--neon-blue); cursor: pointer; text-decoration: none; }
.auth-error { color: #ff6b81; font-size: 13px; min-height: 18px; margin-top: 8px; }
.auth-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none; border: none;
    color: #5b6b8e; font-size: 20px;
    cursor: pointer;
}
.auth-modal { position: relative; }

/* ============================================================
   图片上传 / 用户图库
   ============================================================ */
.upload-section {
    margin: 24px 0;
    padding: 22px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px dashed rgba(0, 212, 255, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: border-color 0.3s, background 0.3s;
}
.upload-section.dragover {
    border-color: var(--neon-blue);
    background: rgba(0, 212, 255, 0.08);
}
.upload-section h3 { margin: 0 0 6px; color: #fff; }
.upload-section p { color: #5b6b8e; font-size: 13px; margin: 0 0 14px; }
.upload-btn {
    padding: 10px 26px;
    font-size: 15px;
    cursor: pointer;
}
#uploadInput { display: none; }
.upload-progress { color: var(--neon-gold); font-size: 13px; margin-top: 10px; min-height: 16px; }

.user-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 18px 0 36px;
}
.user-gallery .gallery-item { position: relative; overflow: hidden; }
.user-gallery img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}
.img-meta {
    padding: 10px 12px;
    font-size: 12px;
    color: #5b6b8e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.img-meta b { color: #fff; font-weight: 500; }
.del-btn {
    background: none;
    border: none;
    color: #ff6b81;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.del-btn:hover { background: rgba(255, 107, 129, 0.15); }
.login-hint {
    padding: 14px;
    text-align: center;
    color: #5b6b8e;
    font-size: 14px;
    background: var(--glass);
    border-radius: 12px;
    margin: 16px 0;
}
.login-hint a { color: var(--neon-blue); cursor: pointer; }

/* 灯箱 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.lightbox.show { opacity: 1; pointer-events: auto; }
.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 12px;
    box-shadow: 0 0 60px rgba(0,212,255,0.3);
    animation: lbIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes lbIn {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* toast 提示 */
.toast {
    position: fixed;
    top: 74px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    background: rgba(15, 20, 40, 0.95);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(0, 255, 150, 0.5); }
.toast.err { border-color: rgba(255, 107, 129, 0.6); }

/* ============================================================
   响应式适配（覆盖原断点，手机 / 平板 / 桌面）
   ============================================================ */

/* 平板及以下 */
@media (max-width: 1024px) {
    .main-container { grid-template-columns: 1fr !important; }
    .sidebar { display: none; }
    .user-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* 手机端 */
@media (max-width: 768px) {
    .header-container { padding: 8px 12px !important; }
    .search-box { display: none !important; }
    .main-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-item { font-size: 13px; padding: 6px 8px; white-space: nowrap; }
    .logo-text { font-size: 15px !important; }
    .banner { height: 190px !important; }
    .slide-content { padding: 10px 14px !important; }
    .slide-content h2 { font-size: 20px !important; }
    .slide-content p { font-size: 12px !important; }
    .banner-btn { padding: 6px 14px !important; font-size: 12px !important; }
    .card-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .content-card h3 { font-size: 14px !important; }
    .content-card p { display: none; }
    .page-container { padding: 12px !important; }
    .page-header { padding: 14px !important; flex-wrap: wrap; gap: 8px; }
    .page-header h1 { font-size: 20px !important; }
    .gallery-grid, .user-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .gallery-img, .user-gallery img { height: 130px !important; }
    .mobile-nav { background: rgba(255, 255, 255, 0.62) !important; backdrop-filter: blur(18px); border-top: 1px solid rgba(255,255,255,0.55); }
    .auth-btn, .user-chip { padding: 5px 12px; font-size: 13px; }
    .upload-section { padding: 16px; }
    .toast { top: 64px; width: max-content; max-width: 92vw; }
}

/* 小屏手机 */
@media (max-width: 400px) {
    .card-grid { grid-template-columns: 1fr !important; }
    .banner { height: 160px !important; }
    .auth-btn { padding: 5px 10px; font-size: 12px; }
}

/* 手机端给底部导航留空间 */
@media (max-width: 768px) {
    body { padding-bottom: 64px !important; }
    .bilibili-footer { padding-bottom: 70px !important; }
}

/* 尊重系统减少动效设置 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* 淡玻璃风格补丁 */
.mobile-nav-item { color: #34476b !important; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: #1e3a8a !important; }
.mobile-nav-item:hover .nav-icon { transform: translateY(-3px) scale(1.15); filter: drop-shadow(0 0 6px rgba(79,124,255,0.5)); }
.upload-section {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
}
.upload-section h3 { color: #2c3e50 !important; }
.login-hint { background: rgba(255,255,255,0.4); color: #5b6b8e; }
.img-meta b { color: #2c3e50; }
.user-chip .avatar { color: #fff; }

/* ============================================================
   通透模式：所有容器统一改为透明玻璃（能看见背景图）
   ============================================================ */
.page-header, .page-footer, .profile-card, .info-item,
.character-list li, .achievement-list li,
.gallery-item, .episode-card, .watching-tips, .skill-card,
.relationship-card, .quote-card, .search-box, .sidebar,
.hot-item, .banner-section, .recommend-section, .news-section,
.content-card, .news-item, .bilibili-footer, .mobile-nav {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 4px 24px rgba(60, 80, 140, 0.10) !important;
}

.content-card:hover, .gallery-item:hover, .hot-item:hover,
.news-item:hover, .info-item:hover, .character-list li:hover,
.achievement-list li:hover, .skill-card:hover, .quote-card:hover,
.relationship-card:hover, .episode-card:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 12px 40px rgba(80, 110, 190, 0.22) !important;
}

/* 背景白色磨砂罩减淡，让背景图更透出来 */
.bg-image::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.24)),
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, 0.08), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(0, 212, 255, 0.07), transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(255, 61, 129, 0.06), transparent 40%);
}

/* 透明面板上的文字对比度微调 */
.section-title { filter: drop-shadow(0 1px 3px rgba(255,255,255,0.6)); }
.content-card h3, .news-content h4, .sidebar-section h3, .gallery-caption { color: #24334f; }
.content-card p, .news-content p { color: #45536e; }

/* ============================================================
   新板块：台词抽签 / 推理挑战 / 人气投票
   ============================================================ */

/* 背景图换为 banner1（城市夜景） */
.bg-image {
    background: url('./images/banner1.jpg') center/cover no-repeat !important;
}

.quote-draw { text-align: center; }
.quote-card-draw {
    max-width: 560px;
    margin: 0 auto 16px;
    padding: 26px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 0.18s ease;
}
.quote-card-draw.flip { transform: rotateX(10deg) scale(0.97); }
.quote-card-draw .quote-text {
    font-size: 18px;
    font-weight: 600;
    color: #24334f;
    line-height: 1.7;
}
.quote-card-draw .quote-author {
    margin-top: 10px;
    font-size: 14px;
    color: #5b6b8e;
}
.draw-btn {
    padding: 10px 34px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    background: linear-gradient(135deg, #4f7cff, #8b5cf6, #e34d8a);
    background-size: 200% auto;
    transition: background-position 0.5s, transform 0.25s, box-shadow 0.25s;
}
.draw-btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.draw-luck {
    margin-top: 12px;
    min-height: 22px;
    font-size: 15px;
    color: #b558ff;
    font-weight: 600;
}
.draw-luck.pop { animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes popIn {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 推理挑战 */
.quiz-intro { color: #5b6b8e; font-size: 14px; margin: 6px 0 16px; }
.quiz-list { display: flex; flex-direction: column; gap: 14px; }
.quiz-item {
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.quiz-question { font-weight: 600; color: #24334f; margin-bottom: 10px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-opt {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid rgba(120, 150, 220, 0.35);
    background: rgba(255, 255, 255, 0.25);
    color: #34476b;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s;
}
.quiz-opt:hover { border-color: #4f7cff; transform: translateY(-1px); }
.quiz-opt.locked { cursor: default; opacity: 0.55; }
.quiz-opt.locked:hover { transform: none; border-color: rgba(120,150,220,0.35); }
.quiz-opt.correct {
    background: linear-gradient(135deg, rgba(0, 200, 130, 0.3), rgba(0, 200, 130, 0.15)) !important;
    border-color: #00c882 !important;
    color: #0a7a52 !important;
    font-weight: 600;
    opacity: 1 !important;
}
.quiz-opt.wrong {
    background: rgba(255, 107, 129, 0.18) !important;
    border-color: #ff6b81 !important;
    color: #c22c4a !important;
    opacity: 1 !important;
}
.quiz-result { margin-top: 10px; font-size: 14px; min-height: 18px; }
.quiz-result.ok { color: #0a9d68; font-weight: 600; }
.quiz-result.no { color: #d94a63; }
.quiz-rank {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
}
.quiz-rank.show { opacity: 1; }

/* 人气投票 */
.vote-list { display: flex; flex-direction: column; gap: 12px; }
.vote-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.vote-name { width: 110px; font-weight: 600; color: #24334f; flex-shrink: 0; }
.vote-bar-wrap {
    flex: 1;
    height: 14px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}
.vote-bar {
    height: 100%;
    width: 0;
    border-radius: 7px;
    background: linear-gradient(90deg, #4f7cff, #8b5cf6, #e34d8a);
    transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.vote-count { width: 96px; text-align: right; font-size: 13px; color: #5b6b8e; flex-shrink: 0; }
.vote-btn {
    padding: 6px 16px;
    border-radius: 16px;
    border: 1px solid rgba(120, 150, 220, 0.4);
    background: linear-gradient(135deg, rgba(79,124,255,0.15), rgba(139,92,246,0.15));
    color: #2c3e50;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.25s;
    flex-shrink: 0;
}
.vote-btn:hover { border-color: #4f7cff; box-shadow: 0 0 12px rgba(79,124,255,0.3); }
.vote-btn.voted {
    background: rgba(0, 200, 130, 0.15);
    border-color: #00c882;
    color: #0a7a52;
    cursor: default;
}
.vote-btn.voted:hover { box-shadow: none; transform: none; }

@media (max-width: 768px) {
    .vote-name { width: 84px; font-size: 13px; }
    .vote-count { width: 78px; font-size: 12px; }
    .vote-btn { padding: 5px 12px; }
    .quote-card-draw .quote-text { font-size: 15px; }
    .quiz-options { gap: 6px; }
    .quiz-opt { padding: 6px 13px; font-size: 13px; }
}

/* ============================================================
   紧凑模式：减少页面空白
   ============================================================ */
.header-container { height: 54px !important; }
.logo img { max-height: 34px; }
.main-container { min-height: auto !important; padding: 14px 20px 18px !important; gap: 16px !important; }
.page-container { min-height: auto !important; padding: 16px 20px 18px !important; }
.page-header { padding: 16px 20px !important; margin-bottom: 16px !important; border-radius: 14px !important; }
.page-header h1 { margin-bottom: 10px !important; font-size: 28px !important; }
.page-header p { margin-bottom: 8px !important; }
.sidebar { padding: 14px !important; }
.sidebar-section { margin-bottom: 16px !important; }
.sidebar-section h3 { margin-bottom: 10px !important; padding-bottom: 6px !important; }
.banner-section, .recommend-section, .news-section, .upload-section, .watching-tips, .episodes-container { padding: 14px !important; }
.section-title { margin-bottom: 12px !important; padding-bottom: 8px !important; font-size: 18px !important; }
.page-footer { padding: 14px !important; }
.page-footer p { margin-bottom: 0 !important; }
.episode-card { padding: 16px 18px !important; margin-bottom: 14px !important; }
.hot-item { margin-bottom: 10px !important; }

/* ============================================================
   修复：reveal 板块不再依赖 JS，杜绝底部大片隐形空白
   ============================================================ */
.reveal {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   背景图增强：更清晰、更突出
   ============================================================ */
.bg-image {
    opacity: 0.45 !important;
    filter: blur(2.5px) saturate(1.18) !important;
}
.bg-image::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08)) !important;
}

/* 背景变实后，玻璃面板稍微加实一点保证文字可读 */
.page-header, .page-footer, .profile-card, .info-item,
.character-list li, .achievement-list li,
.gallery-item, .episode-card, .watching-tips, .skill-card,
.relationship-card, .quote-card, .search-box, .sidebar,
.hot-item, .banner-section, .recommend-section, .news-section,
.content-card, .news-item, .bilibili-footer {
    background: rgba(255, 255, 255, 0.30) !important;
    backdrop-filter: blur(22px) saturate(1.4);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.content-card:hover, .gallery-item:hover, .hot-item:hover,
.news-item:hover, .info-item:hover, .skill-card:hover,
.quote-card:hover, .relationship-card:hover, .episode-card:hover {
    background: rgba(255, 255, 255, 0.42) !important;
}

/* ============================================================
   底部空白压缩
   ============================================================ */
.bilibili-footer { margin-top: 16px !important; }
.main-container { padding-bottom: 10px !important; }
.page-container { padding-bottom: 10px !important; }
.footer-content { padding: 18px 20px !important; }

/* ============================================================
   导航栏美化：加宽加高、禁止换行、玻璃胶囊交互
   ============================================================ */
.header-container {
    height: 62px !important;
    padding: 0 28px !important;
}
.logo { flex-shrink: 0; }
.logo-text { white-space: nowrap; }
.main-nav {
    flex-wrap: nowrap;
    gap: 4px;
    margin-left: 18px;
}
.nav-item {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 18px !important;
    font-size: 15px !important;
    font-weight: 500;
    border-radius: 22px !important;
}
.nav-item:hover {
    background: rgba(255, 255, 255, 0.45) !important;
    box-shadow: 0 2px 10px rgba(80, 110, 190, 0.15);
}
.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9)) !important;
    color: #fff !important;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.35);
}
.search-box { margin-left: auto; }
