/* ========================================
   CH3C 官方网站 — 公共样式
   导航栏 · 侧边栏 · 返回顶部 · 全局基础
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: #060505;
    font-family: "Microsoft YaHei","SimHei","PingFang SC",sans-serif;
    overflow-x: hidden; color: #c8b898;
    display: flex; justify-content: center;
}
.page { width: 1920px; max-width: 100%; flex-shrink: 0; }

/* ---------- 头部 ---------- */
.header {
    background: url('LOGO背景定稿.jpg') no-repeat top center;
    background-size: 100% auto; padding-top: 12.03%; position: relative;
}

/* ---------- 导航栏 ---------- */
.nav-bar {
    position: absolute; bottom: -2.4%; left: 50%; transform: translateX(-50%);
    width: 52%; height: 26%; display: flex;
    justify-content: space-between; align-items: center; z-index: 100;
}
.nav-left { display: flex; gap: 50px; align-items: center; height: 100%; }
.nav-right { display: flex; align-items: center; height: 100%; }
.nav-link {
    font-size: clamp(13px,0.94vw,18px); font-weight: bold;
    color: rgb(220,160,130); display: flex; align-items: center;
    height: 100%; min-width: 0; cursor: pointer; text-decoration: none;
    letter-spacing: 1px; white-space: nowrap;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nav-link:hover {
    color: #fff;
    text-shadow: 0 0 6px rgba(255,215,0,0.7), 0 0 14px rgba(255,200,50,0.4);
    transform: translateY(-2px);
}

/* ---------- 主体背景 ---------- */
.main { padding: 40px 0 80px; display: flex; justify-content: center; background: #0a0503; }
.content-wrap { display: flex; gap: 36px; max-width: 1300px; width: 90%; }
.content-area { flex: 1; min-width: 0; }

/* ---------- 右侧栏 ---------- */
.sidebar { width: 208px; flex-shrink: 0; }
.sidebar-inner {
    position: sticky; top: 20px; padding: 24px 20px;
    background: linear-gradient(180deg, rgba(20,12,6,0.96) 0%, rgba(30,18,10,0.96) 50%, rgba(20,12,6,0.96) 100%);
    border: 2px solid #2a180c; border-radius: 2px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 0 25px rgba(0,0,0,0.6);
    outline: 1px solid rgba(160,110,50,0.2); outline-offset: 5px;
}
.sidebar-block {
    margin-bottom: 18px; padding-bottom: 18px;
    border-bottom: 1px solid rgba(160,110,50,0.12); text-align: center;
}
.sidebar-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-block-title {
    font-family: "Cinzel","Microsoft YaHei",sans-serif;
    font-size: 13px; color: rgba(200,160,80,0.55);
    letter-spacing: 3px; margin-bottom: 12px; text-align: center;
}
.sidebar-dl {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px;
    padding: 8px 12px 8px 27px; margin-bottom: 6px;
    background: linear-gradient(180deg, rgba(60,30,10,0.7) 0%, rgba(40,18,5,0.8) 100%);
    border: 1px solid #5a3010; border-radius: 3px;
    text-decoration: none; cursor: pointer; transition: all 0.3s ease;
    color: #c8b090; font-size: 12px; font-family: "Microsoft YaHei",sans-serif;
    font-weight: bold; white-space: nowrap;
}
.sidebar-dl:hover {
    border-color: #8b4513; color: #ffd700;
    box-shadow: 0 0 10px rgba(255,50,10,0.2), 0 0 20px rgba(255,80,20,0.08);
    transform: translateY(-1px);
}
.sidebar-dl .dl-icon { font-size: 13px; }
.sidebar-player {
    display: flex; align-items: center; gap: 0;
    padding: 6px 10px; margin-bottom: 2px;
    text-decoration: none; cursor: pointer; border-radius: 2px;
    transition: all 0.25s ease; font-size: 13px;
}
.sidebar-player:hover { background: rgba(180,130,50,0.06); }
.sidebar-player .p-tier {
    width: 36px; flex-shrink: 0;
    font-size: 10px; font-family: "Cinzel",serif;
    text-align: center; font-weight: bold;
}
.sidebar-player .p-tier.sss { color: #e07030; }
.sidebar-player .p-tier.ss { color: #8b60b0; }
.sidebar-player .p-tier.s { color: #c9a830; }
.sidebar-player .p-name {
    flex: 1; color: #b8966a; font-size: 13px; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-player:hover .p-name { color: #ffd700; }
.sidebar-sponsor-btn {
    display: block; text-align: center; text-decoration: none;
    padding: 10px; background: linear-gradient(180deg, rgba(60,30,10,0.7) 0%, rgba(40,18,5,0.8) 100%);
    border: 1px solid rgba(180,130,50,0.25); border-radius: 3px;
    color: #c9a040; font-family: "Microsoft YaHei",sans-serif;
    font-size: 13px; letter-spacing: 2px;
    transition: all 0.3s ease; cursor: pointer;
}
.sidebar-sponsor-btn:hover {
    border-color: #ffd700; color: #ffd700;
    box-shadow: 0 0 12px rgba(200,150,40,0.15);
}

/* ---------- 返回顶部 ---------- */
.back-top {
    position: fixed; bottom: 36px; right: 28px;
    width: 46px; height: 46px;
    background: linear-gradient(180deg, #5a1a0a 0%, #3a0a00 100%);
    border: 2px solid #8b4513; border-radius: 3px;
    cursor: pointer; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    color: #d4a843; font-size: 20px; font-weight: bold;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 0 12px rgba(255,50,10,0.3);
}
.back-top:hover {
    background: linear-gradient(180deg, #8b1a0a 0%, #5a0a00 100%);
    border-color: #ff4500; color: #ffd700;
    box-shadow: 0 0 20px rgba(255,50,10,0.6), 0 0 40px rgba(255,80,20,0.3);
    transform: translateY(-3px);
}

/* ---------- 背景音乐控制 ---------- */
.music-btn {
    position: fixed; bottom: 36px; left: 28px;
    width: 46px; height: 46px;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    border: 2px solid #5a4a30; border-radius: 50%;
    cursor: pointer; z-index: 999;
    display: flex; align-items: center; justify-content: center;
    color: #d4a843; font-size: 18px;
    transition: all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
    box-shadow: 0 0 12px rgba(180,150,40,0.2);
}
.music-btn:hover {
    border-color: #d4a843;
    box-shadow: 0 0 20px rgba(200,160,50,0.4);
    transform: scale(1.08);
}
.music-btn.playing {
    border-color: #d4a843; box-shadow: 0 0 16px rgba(200,160,50,0.35);
}
.music-btn.playing::after {
    content: '';
    position: absolute; inset: -4px; border-radius: 50%;
    border: 1px solid rgba(200,160,50,0.3);
    animation: musicPulse 1.5s ease-in-out infinite;
}
@keyframes musicPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0; }
}
.music-btn.muted {
    border-color: #3a3a3a; color: #5a5a5a;
    box-shadow: 0 0 8px rgba(100,100,100,0.15);
}

/* ========================================
   移动端响应式
   ======================================== */
@media (max-width: 900px) {
    .nav-bar { width: 90%; }
    .nav-left { gap: 18px; overflow-x: auto; }
    .nav-link { font-size: 12px; white-space: nowrap; }
    .content-wrap { flex-direction: column; }
    .sidebar { width: 100%; }
    .sidebar-inner { position: static; display: flex; flex-wrap: wrap; gap: 16px; }
    .sidebar-block { flex: 1; min-width: 200px; border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
    .back-top { bottom: 16px; right: 16px; width: 38px; height: 38px; font-size: 16px; }
    .music-btn { bottom: 16px; left: 16px; width: 38px; height: 38px; font-size: 14px; }
}
