/* =====================================================================
   炫音DJ网 - 全局样式 (style.css)
   配色参考欢曲DJ网(91lve.link)：深色背景 #282828 + 白色文字 +
   橙色强调(#FF8C00) + 蓝色Tab(#08f) + 紫色分类条(#654360) + 多色序号徽章
   按 AdSense 高质量规范重构：语义化、响应式、可访问
   ===================================================================== */

:root {
    --bg: #282828;
    --bg-top: #35312e;
    --card: rgba(255, 255, 255, 0.055);
    --card-2: rgba(255, 255, 255, 0.09);
    --line: rgba(255, 255, 255, 0.13);
    --txt: #fff;
    --dim: #b7b7c0;
    --muted: #8f8f99;
    --accent: #FF8C00;          /* 橙色强调（首页/Logo/按钮） */
    --accent-2: #ffb347;
    --yellow: #ff6;
    --blue: #08f;
    --purple: #654360;          /* 分类图块底色 */
    --green: #5fb878;
    --red: #ff5a5a;
    --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(1200px 500px at 50% -80px, rgba(255, 140, 0, 0.12), transparent 60%),
        linear-gradient(180deg, #2e2b29 0%, var(--bg) 260px);
    background-attachment: fixed;
    color: var(--txt);
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-2); }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 14px; }

/* ============ 顶部导航 ============ */
.head {
    background: rgba(0, 0, 0, 0.32);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
}
.menu-bar { display: flex; align-items: center; min-height: 62px; }
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    padding-right: 26px;
    white-space: nowrap;
}
.logo b { color: #fff; }
.logo:hover { color: var(--accent-2); }

.menu { flex: 1; }
.menu > ul { display: flex; flex-wrap: wrap; }
.menu > ul > li { position: relative; }
.menu > ul > li > a {
    display: block;
    padding: 20px 14px;
    color: #e6e6ea;
    font-size: 14px;
    transition: color .2s, background .2s;
    border-radius: var(--radius) var(--radius) 0 0;
}
.menu > ul > li.active > a,
.menu > ul > li > a:hover { color: var(--yellow); background: rgba(255, 255, 255, 0.08); }

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 40px; height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute; left: 10px;
    width: 20px; height: 2px; background: #fff;
    transition: .25s;
}
.menu-toggle span { top: 19px; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.open span { background: transparent; }
.menu-toggle.open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ============ 搜索栏 ============ */
.q-column { padding: 12px 0 0; }
.search form {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}
.search input {
    width: 100%;
    height: 40px;
    padding: 0 52px 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(95, 158, 160, 0.22);
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.search input::placeholder { color: #cfd3d8; }
.search input:focus { border-color: var(--accent); background: rgba(0, 0, 0, 0.28); }
.search button {
    position: absolute; right: 4px; top: 4px;
    width: 34px; height: 32px;
    border: 0; border-radius: 16px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}
.search button:hover { background: var(--accent-2); }

/* ============ 公告栏 ============ */
.notice {
    margin: 14px 0;
    display: flex;
    align-items: center;
    background: var(--card-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.notice-label {
    flex: 0 0 auto;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    letter-spacing: 2px;
}
.notice-viewport { flex: 1; overflow: hidden; padding: 0 12px; }
.notice-track { display: inline-block; white-space: nowrap; animation: marquee 28s linear infinite; }
.notice-track span { padding-right: 60px; }
.notice-track em { color: var(--red); font-style: normal; font-weight: 700; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ 区块标题 ============ */
.sec-title {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 14px;
    background: var(--card-2);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius) var(--radius) 0 0;
}
.sec-title .icon { color: var(--accent); font-size: 16px; }
.sec-title h2, .sec-title h3 {
    font-size: 16px; font-weight: 800; color: #fff;
}
.sec-title .more { margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 400; }
.sec-title .more:hover { color: var(--accent-2); }

/* ============ 榜单列表 ============ */
.dlist {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2px 0;
}
.dlist li {
    display: flex; align-items: center;
    padding: 7px 12px;
    border-bottom: 1px solid var(--line);
    height: 34px;
}
.dlist li:last-child { border-bottom: 0; }
.dlist li .badge {
    flex: 0 0 auto;
    width: 22px; height: 22px;
    line-height: 22px; text-align: center;
    border-radius: 4px;
    font-size: 12px; font-weight: 700; color: #fff;
    margin-right: 10px;
}
.dlist li a {
    flex: 1;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    color: #ececf1; font-size: 13.5px;
}
.dlist li a:hover { color: var(--accent-2); }
.dlist li .meta { flex: 0 0 auto; margin-left: 8px; color: var(--muted); font-size: 11px; }

/* 多色序号徽章（对应原站 ic1-ic5 / layui-bg-blue / orange / gray） */
.badge.b-cyan   { background: #30bfcf; }
.badge.b-gold   { background: #c18b29; }
.badge.b-blue   { background: #08f; }
.badge.b-orange { background: #e88862; }
.badge.b-gray   { background: #546575; }
.badge.b-green  { background: var(--green); }

/* 两列热门榜单 */
.dlist.grid2 { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.dlist.grid2 li { height: 36px; padding: 7px 10px; }
@media (max-width: 700px) { .dlist.grid2 { grid-template-columns: 1fr; } }

/* ============ Tab 切换（今日热门 / 本月热门） ============ */
.tab-title {
    display: flex;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.tab-title span {
    flex: 1;
    text-align: center;
    padding: 11px 0;
    font-size: 15px; font-weight: 800; color: #ddd;
    cursor: pointer;
    transition: .2s;
}
.tab-title span:hover { color: #fff; }
.tab-title span.this { background: var(--blue); color: #fff; }
.tab-panel { display: none; }
.tab-panel.show { display: block; }

/* ============ 顶部两栏 ============ */
.grid-top {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 16px;
    margin-bottom: 18px;
}
@media (max-width: 900px) { .grid-top { grid-template-columns: 1fr; } }

/* ============ 分类图块（紫色条） ============ */
.cat-strip {
    background: var(--purple);
    padding: 12px 0;
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.cat-strip .inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.cat-tile {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform .2s;
}
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile .tile-cover {
    height: 96px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: rgba(255, 255, 255, 0.9);
}
.cat-tile .tile-cover .glyph { filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.cat-tile .tile-name {
    display: block;
    padding: 9px 0 11px;
    background: rgba(0, 0, 0, 0.18);
    color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 1px;
}
.cat-tile:hover .tile-name { color: var(--yellow); }
/* 四张封面渐变色（替换图片占位） */
.c1 { background: linear-gradient(135deg, #ff6a3d, #ff8c42); }
.c2 { background: linear-gradient(135deg, #2aa9e0, #08f); }
.c3 { background: linear-gradient(135deg, #7b5ac4, #a06cd5); }
.c4 { background: linear-gradient(135deg, #2e9e6b, #5fb878); }
@media (max-width: 700px) {
    .cat-strip .inner { grid-template-columns: repeat(2, 1fr); }
    .cat-tile .tile-cover { height: 80px; }
}

/* ============ 分类歌单（三列） ============ */
.grid-cats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}
@media (max-width: 900px) { .grid-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cats { grid-template-columns: 1fr; } }

/* ============ 关于本站（原创文案区） ============ */
.intro {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 18px;
}
.intro h2 { font-size: 18px; color: var(--accent-2); margin-bottom: 10px; }
.intro p { color: var(--dim); font-size: 14px; margin-bottom: 10px; text-align: justify; }
.intro p:last-child { margin-bottom: 0; }

/* ============ 友情链接 ============ */
.ylink {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 14px 14px;
    margin-bottom: 10px;
}
.ylink legend {
    padding: 0 10px;
    color: var(--green);
    font-size: 14px; font-weight: 700;
}
.ylink a { display: inline-block; margin: 4px 8px; font-size: 12px; color: #c6c6cf; }
.ylink a:hover { color: var(--accent-2); }

/* ============ 广告位占位 ============ */
.adslot {
    min-height: 90px;
    margin: 16px 0;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 12px; letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.03);
}

/* ============ 页脚 ============ */
.footer {
    margin-top: 30px;
    padding: 26px 0 30px;
    border-top: 2px solid #5a5a5a;
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
    color: #a9a9b2;
    font-size: 12px;
    line-height: 2;
}
.footer a { color: #cfcfd8; padding: 0 6px; }
.footer a:hover { color: var(--accent-2); }
.footer .flinks { margin-bottom: 6px; }
.footer .flinks a { border-right: 1px solid var(--line); }
.footer .flinks a:last-child { border-right: 0; }

/* ============ 内容页（关于/隐私/联系/版权） ============ */
.page {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin: 18px 0 10px;
}
.page h1 { font-size: 22px; margin-bottom: 6px; color: #fff; }
.page .updated { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.page h2 { font-size: 17px; color: var(--accent-2); margin: 22px 0 10px; }
.page h3 { font-size: 15px; margin: 16px 0 8px; }
.page p { margin-bottom: 12px; text-align: justify; color: #dcdce3; font-size: 14px; }
.page ul, .page ol { margin: 0 0 12px 20px; color: #dcdce3; font-size: 14px; }
.page ul { list-style: disc; }
.page ol { list-style: decimal; }
.page li { margin-bottom: 6px; }
.page a { color: #4aa8ff; }
.page a:hover { color: var(--accent-2); }
.page .hl { color: var(--yellow); }

/* ============ 移动端导航 ============ */
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .menu {
        position: absolute;
        top: 62px; left: 0; right: 0;
        background: #1f1d1c;
        border-bottom: 1px solid var(--line);
        display: none;
        box-shadow: 0 10px 24px rgba(0,0,0,.5);
    }
    .menu.open { display: block; }
    .menu > ul { flex-direction: column; }
    .menu > ul > li > a { padding: 13px 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
}

/* 无障碍：隐藏但可读 */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============ 面包屑 ============ */
.crumb {
    padding: 14px 0 4px;
    font-size: 12.5px; color: var(--muted);
}
.crumb a { color: #9fc6ef; }
.crumb a:hover { color: var(--accent-2); }
.crumb .sep { margin: 0 6px; color: #666; }

/* ============ 分类页头部 ============ */
.cat-head {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin: 10px 0 16px;
}
.cat-head h1 { font-size: 22px; color: #fff; margin-bottom: 6px; }
.cat-head p { color: var(--dim); font-size: 13.5px; }

/* 分类页歌曲行 */
.cat-list .dlist li { height: 46px; padding: 7px 12px; }
.song-row { cursor: pointer; }
.song-row .badge { width: 34px; height: 26px; line-height: 26px; border-radius: 4px; }
.song-row .play-btn {
    flex: 0 0 auto; margin-left: 10px;
    width: 28px; height: 28px; line-height: 26px; text-align: center;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--accent-2); font-size: 12px;
    transition: background .2s, color .2s;
}
.song-row:hover .play-btn { background: var(--accent); color: #fff; }

/* 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 20px 0 6px; }
.pager a, .pager span {
    min-width: 34px; padding: 6px 12px; text-align: center;
    background: var(--card-2); border: 1px solid var(--line);
    border-radius: 6px; color: var(--dim); font-size: 13px;
}
.pager a:hover { color: var(--accent-2); border-color: var(--accent); }
.pager span.cur { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 其它分类 */
.other-cats { margin-bottom: 18px; }
.cat-chip { padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.cat-chip a {
    display: inline-block; margin: 4px 6px; padding: 5px 16px;
    background: var(--card-2); border: 1px solid var(--line);
    border-radius: 20px; color: var(--dim); font-size: 13px;
}
.cat-chip a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }

/* ============ 详情页大唱片播放卡 ============ */
.player-card {
    display: flex; gap: 26px; align-items: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin: 10px 0 18px;
}
.pc-disc {
    flex: 0 0 auto;
    width: 172px; height: 172px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 8px rgba(255,255,255,.05), 0 16px 40px rgba(0,0,0,.5);
    position: relative;
}
.pc-disc::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: repeating-radial-gradient(circle at center, transparent 0 9px, rgba(0,0,0,.13) 9px 10px);
}
.pc-disc i {
    width: 52px; height: 52px; border-radius: 50%;
    background: #171514; border: 3px solid rgba(255,255,255,.9);
    position: relative; z-index: 2;
}
/* 六套唱片主题（与播放器一致，按歌曲 id 轮换） */
.pc-disc.theme-0 { background: linear-gradient(135deg, #ff6a3d, #ff8c42); }
.pc-disc.theme-1 { background: linear-gradient(135deg, #2aa9e0, #08f); }
.pc-disc.theme-2 { background: linear-gradient(135deg, #7b5ac4, #a06cd5); }
.pc-disc.theme-3 { background: linear-gradient(135deg, #2e9e6b, #5fb878); }
.pc-disc.theme-4 { background: linear-gradient(135deg, #e0245e, #ff6b8b); }
.pc-disc.theme-5 { background: linear-gradient(135deg, #c18b29, #f0c75e); }

.pc-info { min-width: 0; flex: 1; }
.pc-info h1 { font-size: 22px; color: #fff; margin-bottom: 4px; }
.pc-info .pc-artist { color: var(--dim); font-size: 14px; margin-bottom: 8px; }
.pc-info .pc-meta { margin-bottom: 10px; }
.pc-info .tag {
    display: inline-block; margin: 2px 6px 2px 0; padding: 3px 12px;
    background: var(--card-2); border: 1px solid var(--line);
    border-radius: 20px; font-size: 12px; color: var(--accent-2);
}
.pc-info .pc-stat { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.pc-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff9a3d);
    border: 0; color: #fff; font-size: 15px; font-weight: 700;
    padding: 11px 28px; border-radius: 24px; cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: 0 6px 18px rgba(255, 140, 0, .35);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 11px 24px; border-radius: 24px;
    border: 1px solid var(--line); color: var(--dim); font-size: 14px;
}
.btn-ghost:hover { color: #fff; border-color: var(--accent); }
.song-intro { margin-bottom: 18px; }
.rel-section { margin-bottom: 10px; }

@media (max-width: 700px) {
    .player-card { flex-direction: column; text-align: center; }
    .pc-disc { width: 132px; height: 132px; }
    .pc-info h1 { font-size: 18px; }
}

