/* ===== 主页经典版统一主题 =====
   只做两件事：
   1. 经典版下把各页面容器/卡片换成主页同款毛玻璃
   2. 提供背景壁纸层与雪花画布的定位
   页面结构、功能、科技版样式一律不动。
*/

/* ---------- 主题切换平滑过渡（避免首屏白闪 / 切换闪一帧） ---------- */
html {
    background: #02080c;
}
body {
    transition: background-color .3s ease, color .3s ease;
}

/* ---------- 背景壁纸层（全局，由 classic-home-effects.js 注入） ---------- */
#classic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity .35s ease;
}
body.classic #classic-bg,
body.theme-classic #classic-bg { opacity: 1; }
#classic-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
#classic-bg-old { z-index: 1; }
#classic-bg-new { z-index: 2; }
#classic-bg img.show { opacity: 1; }

/* ---------- 雪花画布 ---------- */
#snow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    pointer-events: none;
}

/* =================================================================
   以下全部限定在经典版，科技版完全不受影响
   classic  = 玩家数据 / 地图点评 / 封禁名单 / 指南三页
   theme-classic = 数据库状态 / 点歌台
   ================================================================= */

/* ---------- 去掉各页原有的金黑背景与网格 ---------- */
body.classic,
body.theme-classic {
    background: transparent !important;
}
body.classic::before,
body.theme-classic::before,
body.theme-classic .backdrop {
    display: none !important;
}

/* ---------- 统一变量：主页经典版的浅色文字 + 深色玻璃 ---------- */
body.classic,
body.theme-classic {
    --text: #fff;
    --muted: rgba(255, 255, 255, .72);
    --dim: rgba(255, 255, 255, .5);
    --soft: #eaf6ff;
    --cyan: #8dc9e8;
    --line: rgba(255, 255, 255, .16);
    --panel: rgba(15, 20, 25, .55);
    --bg: transparent;
    --input: rgba(0, 0, 0, .35);
    --hover: rgba(255, 255, 255, .06);
    --ink: #fff;
    --glass: rgba(0, 0, 0, .3);
}

/* ---------- 顶部导航条：跟随壁纸的半透明玻璃 ---------- */
body.classic > .topbar,
body.classic > .site-header {
    background: rgba(20, 24, 30, .55) !important;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}
body.classic > .topbar .brand,
body.classic > .topbar h1,
body.classic > .site-header .brand h1,
body.classic > .site-header .eyebrow {
    color: #fff;
}
body.classic > .topbar .ui-btn,
body.classic > .site-header .nav-btn {
    color: rgba(255, 255, 255, .82);
}

/* 面包屑在顶部导航里，不能变成深色块 */
body.classic > .site-header .path,
body.classic > .topbar .path {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, .55);
}

/* ---------- 外层大面板：主页 .container 同款 ---------- */
body.classic > .wrap,
body.classic > .main,
body.theme-classic .shell {
    position: relative;
    z-index: 2;
    margin: 26px auto;
    padding: clamp(18px, 2.6vw, 34px);
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 28px;
    border: none;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, .15),
        0 10px 25px rgba(0, 0, 0, .1),
        inset 0 0 34px rgba(255, 255, 255, .65),
        inset 0 2px 12px rgba(255, 255, 255, .85);
}

/* 面包屑在顶部导航里，不能变成深色块 */
body.classic .site-header .path,
body.classic .topbar .path {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: rgba(255, 255, 255, .55);
}

/* 站点头部（玩家数据 / 封禁名单）本身已在页面内，改成半透明玻璃，吸住壁纸 */
body.classic > .site-header {
    background: rgba(20, 24, 30, .55) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
body.classic > .site-footer {
    color: rgba(255, 255, 255, .55);
    border-top: 1px solid rgba(255, 255, 255, .12);
}

/* ---------- 内容卡片：主页 .server-card 同款深色玻璃 ---------- */
body.classic .page-head,
body.classic .section,
body.classic .sidebar,
body.classic .converter-panel,
body.classic .panel,
body.classic .stat,
body.classic .info-card,
body.classic .mode,
body.classic .step,
body.classic .subnav a,
body.classic .path,
body.classic .inputrow input,
body.classic .search-panel,
body.classic .db-box,
body.classic .auth-dialog,
body.classic .db-dialog,
body.theme-classic .panel,
body.theme-classic .header,
body.theme-classic .hero,
body.theme-classic .stat,
body.theme-classic .status-banner,
body.theme-classic .subnav a,
body.theme-classic .inputrow input,
body.theme-classic .path,
body.theme-classic .section,
body.theme-classic .search-panel,
body.theme-classic .db-box,
body.theme-classic .auth-dialog,
body.theme-classic .db-dialog {
    color: #fff;
    background: linear-gradient(145deg, rgba(30, 35, 45, .75) 0%, rgba(15, 20, 25, .85) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1.5px solid rgba(0, 0, 0, .4);
    border-top: 1.5px solid rgba(255, 255, 255, .2);
    border-left: 1.5px solid rgba(255, 255, 255, .1);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .3), inset 0 0 20px rgba(0, 0, 0, .5);
}

/* ---------- 文字颜色 ---------- */
body.classic h1,
body.classic h2,
body.classic h3,
body.classic .brand,
body.theme-classic h1,
body.theme-classic h2,
body.theme-classic h3,
body.theme-classic .brand {
    color: #fff;
}
body.classic .lead,
body.classic .subnav a,
body.classic .footer,
body.classic .side-title,
body.theme-classic .subtitle,
body.theme-classic .footer {
    color: rgba(255, 255, 255, .66);
}
body.classic .section p,
body.classic .section li,
body.classic .info-card p,
body.classic .mode,
body.classic .step p {
    color: rgba(255, 255, 255, .8);
}
body.classic .eyebrow,
body.classic .tag,
body.classic .path,
body.theme-classic .eyebrow,
body.theme-classic .path {
    color: #8dc9e8;
}

/* 主标题去除原科技版发光，换成主页的白色文字阴影 */
body.classic h1,
body.theme-classic h1 {
    text-shadow: 0 3px 10px rgba(0, 0, 0, .35);
    letter-spacing: 1px;
}
body.classic .section h2::before,
body.theme-classic .section h2::before,
body.classic .page-head::after {
    display: none;
}

/* ---------- 表格 / 输入 / 按钮 ---------- */
body.classic table,
body.theme-classic table { color: #fff; }
body.classic th,
body.theme-classic th {
    color: rgba(255, 255, 255, .6);
    background: rgba(0, 0, 0, .2);
}
body.classic td,
body.theme-classic td {
    color: rgba(255, 255, 255, .8);
    border-top: 1px solid rgba(255, 255, 255, .1);
}
body.classic tbody tr:hover,
body.theme-classic tbody tr:hover { background: rgba(255, 255, 255, .05); }

body.classic input,
body.classic select,
body.classic textarea,
body.theme-classic input,
body.theme-classic select,
body.theme-classic textarea {
    color: #fff;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .14);
    color-scheme: dark;
}
body.classic input::placeholder,
body.theme-classic input::placeholder { color: rgba(255, 255, 255, .42); }
body.classic option,
body.theme-classic option { background: #151a21; color: #fff; }

body.classic .ui-btn,
body.classic .convert-btn,
body.classic .copy,
body.classic .examples button,
body.classic .theme-btn,
body.classic .text-btn,
body.theme-classic .theme-toggle,
body.theme-classic .ui-btn {
    color: #fff;
    background: #3498db;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 10px;
}
body.classic .ui-btn:hover,
body.classic .theme-btn:hover,
body.classic .text-btn:hover,
body.theme-classic .theme-toggle:hover,
body.theme-classic .ui-btn:hover {
    background: #3fa9e8;
    border-color: rgba(255, 255, 255, .4);
}
body.classic .convert-btn { color: #fff; background: #3498db; }

body.classic .toast,
body.theme-classic .toast { background: #3498db; color: #fff; }

/* ---------- 滚动条 ---------- */
body.classic ::-webkit-scrollbar,
body.theme-classic ::-webkit-scrollbar { width: 9px; height: 9px; }
body.classic ::-webkit-scrollbar-thumb,
body.theme-classic ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .28);
    border-radius: 10px;
}
body.classic ::-webkit-scrollbar-track,
body.theme-classic ::-webkit-scrollbar-track { background: transparent; }

/* ---------- 手机端 ---------- */
@media (max-width: 800px) {
    body.classic > .wrap,
    body.classic > .main,
    body.theme-classic .shell { border-radius: 22px; }
}

/* =================================================================
   深色玻璃下的文字兜底
   各页原本是浅底深字，改成深玻璃后需统一成浅色文字
   ================================================================= */
body.classic,
body.theme-classic { color: #fff; }

body.classic .content,
body.classic .topbar,
body.classic .site,
body.classic .detail,
body.classic .detail-body,
body.classic .detail-data,
body.classic .toolbar,
body.classic .table-foot,
body.classic .contact,
body.classic .legend,
body.classic .cmd,
body.theme-classic .nav,
body.theme-classic .chart-wrap,
body.theme-classic .detail,
body.theme-classic .controls,
body.theme-classic .footer,
body.theme-classic .player-body,
body.theme-classic .now-playing,
body.theme-classic .lyrics,
body.theme-classic .results,
body.theme-classic .settings-body,
body.theme-classic .history { color: rgba(255, 255, 255, .82); }

body.classic .mname,
body.classic .count,
body.classic .res,
body.classic .desc-cell,
body.classic .detail-meta,
body.classic .tagline,
body.classic .lnk,
body.classic .na,
body.classic .page,
body.theme-classic .chart-tick,
body.theme-classic .stat-head,
body.theme-classic .stat-foot,
body.theme-classic .db-name,
body.theme-classic .db-purpose,
body.theme-classic .song-meta,
body.theme-classic .time,
body.theme-classic .hint,
body.theme-classic .field-hint,
body.theme-classic .status { color: rgba(255, 255, 255, .62); }

/* 深玻璃卡片内部的标题与数值 */
body.classic .section h2,
body.classic .section h3,
body.classic .page-head h1,
body.classic .info-card h3,
body.classic .mode b,
body.classic .step h3,
body.classic .panel-head,
body.classic .topbar h2,
body.theme-classic .section h2,
body.theme-classic .section h3,
body.theme-classic .stat-value,
body.theme-classic .panel-heading,
body.theme-classic .hero h2,
body.theme-classic .banner-text b,
body.theme-classic .panel-head h2,
body.theme-classic .db-stat b,
body.theme-classic .song-name,
body.theme-classic .lyric-title { color: #fff; }

/* 输入框内的文字统一浅色，避免浏览器自动填充变黑 */
body.classic .search input,
body.classic .toolbar input,
body.classic .toolbar select,
body.theme-classic .search-row input,
body.theme-classic .search-row select,
body.theme-classic .quality-select,
body.theme-classic .field input { color: #fff; background: rgba(0, 0, 0, .35); }

/* ---------- 点歌台：浅色小元件换成深色玻璃 ---------- */
body.theme-classic .action-btn,
body.theme-classic .user-btn,
body.theme-classic .history-chip,
body.theme-classic .fav-item,
body.theme-classic .auth-tab,
body.theme-classic .send-code,
body.theme-classic .db-stat,
body.theme-classic .db-mail,
body.theme-classic .db-switch button,
body.theme-classic .theme-toggle,
body.theme-classic .fav-empty,
body.theme-classic .quality-select {
    color: rgba(255, 255, 255, .85);
    background: rgba(0, 0, 0, .3);
    border-color: rgba(255, 255, 255, .16);
}
body.theme-classic .action-btn:hover,
body.theme-classic .user-btn:hover,
body.theme-classic .history-chip:hover,
body.theme-classic .fav-item:hover,
body.theme-classic .send-code:hover,
body.theme-classic .db-switch button:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}
body.theme-classic .auth-tab.active,
body.theme-classic .song-row.active {
    background: rgba(52, 152, 219, .35);
    color: #fff;
    box-shadow: none;
}
body.theme-classic .song-row { color: rgba(255, 255, 255, .85); }
body.theme-classic .song-row:hover { background: rgba(255, 255, 255, .08); }
body.theme-classic .lyric-line { color: rgba(255, 255, 255, .6); }
body.theme-classic .quality-note { color: #f0c36a; }
body.theme-classic .db-danger { color: #ff8b8b; background: rgba(184, 71, 71, .18); }
body.theme-classic .cover,
body.theme-classic .thumb { background: rgba(0, 0, 0, .35); }

/* ---------- 数据库状态：原来深黑金，改成主页配色 ---------- */
body.theme-classic {
    --amber: #f0c36a;
    --green: #65db91;
    --danger: #ff8996;
}
body.theme-classic .legend-ok { color: #65db91; }
body.theme-classic .legend-slow { color: #f0c36a; }
body.theme-classic .legend-bad { color: #ff8996; }
body.theme-classic .chart { background: transparent; }
body.theme-classic .chart-wrap,
body.theme-classic .code {
    background: rgba(0, 0, 0, .3);
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .85);
}
body.theme-classic .detail-row { border-bottom-color: rgba(255, 255, 255, .12); }
body.theme-classic .nav-label,
body.theme-classic .nav-btn { color: rgba(255, 255, 255, .72); }
body.theme-classic .nav-btn.active,
body.theme-classic .nav-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
}
