/* 36DJ 舞曲网 - 前台主样式 */
/* 设计风格：深色霓虹 DJ 主题 */

:root {
    --bg: #0d0d12;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(168, 85, 247, 0.08);
    --border: rgba(168, 85, 247, 0.2);
    --border-hover: rgba(168, 85, 247, 0.5);
    --purple: #a855f7;
    --pink: #ec4899;
    --cyan: #22d3ee;
    --orange: #f97316;
    --green: #10b981;
    --red: #ef4444;
    --text: #e5e7eb;
    --text-dim: #9ca3af;
    --text-muted: #6b7280;
    --radius: 10px;
    --shadow-neon: 0 0 24px rgba(168, 85, 247, 0.35);
    --shadow-pink: 0 0 24px rgba(236, 72, 153, 0.35);
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: "Noto Sans SC", "Microsoft YaHei", -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
}

/* 背景霓虹光晕 */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(168, 85, 247, 0.12), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.10), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.06), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ========== 顶部导航 ========== */
.topbar {
    background: rgba(13, 13, 18, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.topbar-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 24px;
}
.logo {
    font-family: "Orbitron", "ZCOOL KuaiLe", sans-serif;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    white-space: nowrap;
}
.logo small { font-size: 12px; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); font-weight: normal; margin-left: 6px; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    color: var(--text);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 15px;
    transition: all .2s;
    white-space: nowrap;
}
.nav a:hover { background: var(--bg-card-hover); color: var(--purple); }
.nav a.active { color: var(--pink); background: rgba(236, 72, 153, 0.1); }

.search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 4px 4px 14px;
    width: 220px;
    transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--purple); box-shadow: var(--shadow-neon); }
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    flex: 1;
    font-size: 13px;
}
.search-box button {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    border: none;
    color: #fff;
    width: 28px; height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

/* 快捷标签栏（对齐36dj.com） */
.quick-tags-bar {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(168,85,247,0.1);
    padding: 6px 0;
    font-size: 12px;
}
.quick-tags-bar .container {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.quick-tags-bar a {
    color: var(--text-dim);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}
.quick-tags-bar a:hover { color: var(--cyan); }

/* 36dj.com 风格列表 */
.dj-box {
    background: rgba(20,20,30,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.dj-box .tit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(168,85,247,0.06);
    border-bottom: 1px solid rgba(168,85,247,0.1);
}
.dj-box .tit h3 {
    font-size: 15px;
    color: var(--text);
}
.dj-box .tit .more {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
}
.dj-box .tit .more:hover { color: var(--pink); }
.mulist {
    list-style: none;
    padding: 6px 10px;
}
.mulist li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
    line-height: 28px;
}
.mulist li:last-child { border-bottom: none; }
.mulist li:hover { background: rgba(236,72,153,0.04); }
.mulist li i {
    font-style: normal;
    color: var(--text-muted);
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}
.mulist li input[type=checkbox] {
    margin: 0;
    accent-color: var(--pink);
}
.mulist li p {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mulist li p a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.mulist li p a:hover { color: var(--pink); }
.mulist li .num {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    min-width: 22px;
}
.mulist li .num.top1 { color: #facc15; }
.mulist li .num.top2 { color: #c0c0c0; }
.mulist li .num.top3 { color: #cd7f32; }
.mulist li .ops a {
    display: inline-block;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}
.mulist li .ops a:hover { color: var(--pink); background: rgba(236,72,153,0.1); }
.listaction {
    padding: 6px 12px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
    color: var(--text-muted);
}
.listaction a {
    color: var(--text-dim);
    text-decoration: none;
    margin-right: 12px;
    cursor: pointer;
}
.listaction a:hover { color: var(--pink); }
/* 两栏布局 */
.dj-col2 {
    display: grid;
    grid-template-columns: 475px 1fr;
    gap: 16px;
}
.dj-col3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
/* 专辑网格 */
.album-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px;
}
.album-row a {
    text-align: center;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 12px;
}
.album-row a img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 4px;
}
.album-row a:hover { color: var(--pink); }
.album-txt {
    list-style: none;
    padding: 6px 12px;
    columns: 2;
}
.album-txt li {
    padding: 3px 0;
}
.album-txt li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
}
.album-txt li a:hover { color: var(--pink); }
/* 风格标签 */
.style-cloud {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.style-cloud a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 14px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}
.style-cloud a:hover {
    color: #fff;
    background: rgba(236,72,153,0.2);
    border-color: var(--pink);
}
@media (max-width: 768px) {
    .dj-col2, .dj-col3 { grid-template-columns: 1fr; }
    .album-row { grid-template-columns: repeat(3, 1fr); }
    .album-txt { columns: 1; }
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
}
.btn-primary:hover { box-shadow: var(--shadow-neon); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-vip {
    background: linear-gradient(135deg, var(--orange), #facc15);
    color: #1a1a1a;
    font-weight: 600;
}
.btn-small { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: var(--red); color: #fff; }

/* ========== Hero / 幻灯片 ========== */
.hero {
    margin: 24px 0;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
}
.slide-track { display: flex; transition: transform .6s ease; }
.slide {
    min-width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,18,0.9), transparent 60%);
}
.slide-info {
    position: relative;
    z-index: 2;
    padding: 30px;
    width: 100%;
}
.slide-info h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}
.slide-dots {
    position: absolute;
    bottom: 16px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.slide-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all .2s;
}
.slide-dots span.active { background: var(--pink); width: 28px; border-radius: 5px; }

/* ========== 分类导航（动态彩字） ========== */
.category-nav-box {
    margin: 24px 0 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(236, 72, 153, 0.06), rgba(34, 211, 238, 0.05));
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.category-nav-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan), var(--orange), var(--purple));
    animation: gradient-flow 3s linear infinite;
}
@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.category-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}
.category-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cat-fade-in 0.6s ease-out backwards;
    white-space: nowrap;
}
@keyframes cat-fade-in {
    from { opacity: 0; transform: translateY(15px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
/* 动态彩字效果 - 每个分类不同颜色 */
.category-nav-item:nth-child(6n+1) { --cat-color: #ff4444; --cat-glow: rgba(255,68,68,0.5); }
.category-nav-item:nth-child(6n+2) { --cat-color: #ff6600; --cat-glow: rgba(255,102,0,0.5); }
.category-nav-item:nth-child(6n+3) { --cat-color: #ffdd00; --cat-glow: rgba(255,221,0,0.5); }
.category-nav-item:nth-child(6n+4) { --cat-color: #00ff88; --cat-glow: rgba(0,255,136,0.5); }
.category-nav-item:nth-child(6n+5) { --cat-color: #00ddff; --cat-glow: rgba(0,221,255,0.5); }
.category-nav-item:nth-child(6n+6) { --cat-color: #ff44ff; --cat-glow: rgba(255,68,255,0.5); }
.category-nav-item .cat-name {
    background: linear-gradient(135deg, var(--cat-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: cat-color-pulse 2s ease-in-out infinite alternate;
}
@keyframes cat-color-pulse {
    0% { filter: brightness(1) drop-shadow(0 0 4px var(--cat-glow)); }
    100% { filter: brightness(1.2) drop-shadow(0 0 10px var(--cat-glow)); }
}
.category-nav-item .cat-icon {
    font-size: 24px;
    animation: cat-icon-bounce 1.5s ease-in-out infinite;
}
@keyframes cat-icon-bounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(5deg); }
}
.category-nav-item:hover {
    transform: translateY(-4px) scale(1.08);
    border-color: var(--cat-color);
    box-shadow: 0 8px 25px var(--cat-glow), 0 0 40px var(--cat-glow);
    background: rgba(0, 0, 0, 0.5);
}
.category-nav-item:hover .cat-name {
    animation: none;
    filter: brightness(1.3) drop-shadow(0 0 15px var(--cat-glow));
}
/* 响应式：移动端缩小字体 */
@media (max-width: 768px) {
    .category-nav-box { padding: 14px; margin: 16px 0; }
    .category-nav-inner { gap: 10px; }
    .category-nav-item {
        padding: 10px 16px;
        font-size: 16px;
    }
    .category-nav-item .cat-icon { font-size: 20px; }
}

/* ========== 区块标题 ========== */
.section { margin: 36px 0; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 22px;
    background: linear-gradient(to bottom, var(--purple), var(--pink));
    border-radius: 2px;
}
.section-title em { color: var(--pink); font-style: normal; margin-right: 4px; }
.section-more { color: var(--text-dim); font-size: 13px; }
.section-more:hover { color: var(--cyan); }

/* ========== 舞曲卡片网格 ========== */
.music-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.music-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    cursor: pointer;
}
.music-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
}
.music-cover {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #2a1840, #4a1d3d);
    overflow: hidden;
}
.music-cover img { width: 100%; height: 100%; object-fit: cover; }
.music-cover .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,13,18,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}
.music-card:hover .play-overlay { opacity: 1; }
.play-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow-neon);
}
.music-cover .vip-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: linear-gradient(135deg, var(--orange), #facc15);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}
.music-info { padding: 10px 12px; }
.music-title {
    color: var(--text);
    font-size: 13px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.music-card:hover .music-title { color: var(--pink); }
.music-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 6px;
}

/* ========== 精品专辑 ========== */
.album-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}
.album-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .3s;
}
.album-card:hover { border-color: var(--pink); box-shadow: var(--shadow-pink); transform: translateY(-3px); }
.album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.album-card:hover img { transform: scale(1.08); }
.album-card .album-name {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 10px 10px;
    background: linear-gradient(to top, rgba(13,13,18,0.95), transparent);
    color: #fff;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
}

/* ========== DJ 舞曲风格 ========== */
.style-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.style-tag {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text);
    font-size: 13px;
    transition: all .2s;
}
.style-tag:hover {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-neon);
}

/* ========== 列表（最新上传/排行） ========== */
.music-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.music-list-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background .2s;
    gap: 12px;
}
.music-list-item:last-child { border-bottom: none; }
.music-list-item:hover { background: var(--bg-card-hover); }
/* 列表行主链接（包裹排名/标题/信息，视频入口和播放按钮为独立链接） */
.music-list-item .list-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.list-rank {
    width: 28px;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    font-size: 16px;
}
.list-rank.top1 { color: var(--orange); }
.list-rank.top2 { color: var(--cyan); }
.list-rank.top3 { color: var(--pink); }
.list-title {
    flex: 1;
    color: var(--text);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-title:hover { color: var(--pink); }
.list-meta { color: var(--text-muted); font-size: 12px; }
.list-play {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(168,85,247,0.15);
    color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    text-decoration: none;
    flex-shrink: 0;
}
.list-play:hover { background: var(--purple); color: #fff; }

/* ========== 多列布局（最新串烧/中文/英文） ========== */
.col-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.col-3 .section { margin: 0; }

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 30px 0;
    flex-wrap: wrap;
}
.pagination a {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    transition: all .2s;
}
.pagination a:hover { border-color: var(--purple); color: var(--purple); }
.pagination a.active { background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; border-color: transparent; }

/* ========== 页脚 ========== */
.footer {
    margin-top: 50px;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 12px; }

/* ========== 表单 ========== */
.form-page { max-width: 400px; margin: 60px auto; }
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.form-card h2 { color: var(--purple); margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; color: var(--text-dim); margin-bottom: 6px; font-size: 13px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.form-actions { margin-top: 20px; }
.form-actions .btn { width: 100%; padding: 12px; }
.form-msg { padding: 10px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; }
.form-msg.error { background: rgba(239,68,68,0.1); border: 1px solid var(--red); color: var(--red); }
.form-msg.success { background: rgba(16,185,129,0.1); border: 1px solid var(--green); color: var(--green); }
.form-alt { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .music-grid { grid-template-columns: repeat(4, 1fr); }
    .album-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 900px) {
    .col-3 { grid-template-columns: 1fr; }
    .music-grid { grid-template-columns: repeat(3, 1fr); }
    .album-grid { grid-template-columns: repeat(4, 1fr); }
    .nav { display: none; }
    .search-box { width: 160px; }
}
@media (max-width: 600px) {
    .music-grid { grid-template-columns: repeat(2, 1fr); }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 12px; }
    .topbar-inner { gap: 10px; }
    .logo { font-size: 20px; }
    .search-box { width: 120px; }
    .slide { height: 200px; }
    .slide-info h2 { font-size: 20px; }
    .section-title { font-size: 17px; }
}

/* ==========================================
   首页整洁重构样式
   ========================================== */

/* ===== 轮播图 ===== */
.home-hero {
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.hero-slide-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-slide {
    min-width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,13,18,0.95) 0%, rgba(13,13,18,0.3) 50%, transparent 100%);
}
.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
    width: 100%;
}
.hero-slide-content h2 {
    font-size: 26px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 16px rgba(168, 85, 247, 0.8);
    font-weight: 700;
}
.hero-btn {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
}
.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.5);
}
.hero-dots {
    position: absolute;
    bottom: 14px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 6px;
}
.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
}
.hero-dots span.active {
    background: var(--pink);
    width: 24px;
    border-radius: 4px;
}

/* ===== 分类导航条（简洁） ===== */
.home-cat-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 16px 20px;
    background: rgba(20,20,30,0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.home-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.2);
    border-radius: 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
}
.home-cat-chip:hover {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}
.home-cat-chip span { font-size: 15px; }

/* ===== 主网格布局：左主右栏 ===== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== 卡片基础样式 ===== */
.home-card {
    background: rgba(20,20,30,0.5);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.home-card:hover {
    border-color: rgba(168,85,247,0.2);
}
.home-card-vip {
    border-color: rgba(249,115,22,0.15);
}
.home-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(168,85,247,0.05);
    border-bottom: 1px solid rgba(168,85,247,0.1);
}
.home-card-head h3 {
    font-size: 15px;
    color: var(--text);
    font-weight: 700;
}
.home-card-vip .home-card-head {
    background: rgba(249,115,22,0.06);
    border-bottom-color: rgba(249,115,22,0.15);
}
.home-card-vip .home-card-head h3 {
    color: var(--orange);
}
.home-more {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}
.home-more:hover { color: var(--pink); }

/* ===== 舞曲列表 ===== */
.home-list {
    list-style: none;
    padding: 6px 12px;
}
.home-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-bottom: 1px dashed rgba(255,255,255,0.04);
    line-height: 30px;
}
.home-list li:last-child { border-bottom: none; }
.home-list li:hover { background: rgba(236,72,153,0.04); }
.home-list li > i {
    font-style: normal;
    color: var(--text-muted);
    font-size: 12px;
    min-width: 20px;
    text-align: center;
}
.home-list li input[type=checkbox] {
    margin: 0;
    accent-color: var(--pink);
    cursor: pointer;
}
.home-list li > p {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0;
}
.home-list li > p a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.home-list li > p a:hover { color: var(--pink); }

/* 排行榜数字 */
.rank-num {
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    min-width: 22px;
    text-align: center;
    font-style: normal;
}
.rank-top-1 { color: #facc15 !important; font-size: 14px; }
.rank-top-2 { color: #c0c0c0 !important; font-size: 14px; }
.rank-top-3 { color: #cd7f32 !important; font-size: 14px; }

/* 最新上传列表 */
.home-latest-list li { line-height: 28px; }

/* ===== 列表底部操作栏 ===== */
.home-list-actions {
    padding: 8px 18px;
    border-top: 1px solid rgba(255,255,255,0.04);
    font-size: 12px;
}
.home-list-actions a {
    color: var(--text-dim);
    text-decoration: none;
    margin-right: 14px;
    cursor: pointer;
    transition: color 0.2s;
}
.home-list-actions a:hover { color: var(--pink); }

/* ===== 歌曲列表视频入口（🎬 图标链接，点击进入播放页） ===== */
.home-list-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 6px;
    font-size: 13px;
    line-height: 1;
    color: var(--text-muted);
    text-decoration: none;
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 4px;
    background: rgba(236, 72, 153, 0.08);
    transition: color 0.15s, background 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.home-list-video:hover {
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-color: transparent;
    transform: translateY(-1px);
}

/* ===== 三栏（串烧/中文/英文） ===== */
.home-tri-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.home-tri-col .home-card {
    margin-bottom: 0;
}
.home-tri-col .home-list li > p a {
    font-size: 12px;
}

/* ===== 侧栏专辑网格 ===== */
.home-album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
}
.home-album-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-dim);
    font-size: 12px;
    transition: color 0.2s;
}
.home-album-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: transform 0.25s;
}
.home-album-item:hover {
    color: var(--pink);
}
.home-album-item:hover img {
    transform: scale(1.05);
}

/* ===== 标签云 ===== */

/* ====================================
   AI 音乐工作台（ai.php，酷狗风格 H5）
   ==================================== */
/* 页面容器：移动优先窄栏，PC 居中限宽 */
.ai-page {
    max-width: 720px;
    margin: 16px auto 40px;
    padding: 0 4px;
}
/* 顶部渐变头图 */
.ai-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 30px 24px;
    background: linear-gradient(135deg, #2a1a5e, #7c3aed 55%, #ec4899);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.35);
    text-align: center;
}
.ai-hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}
.ai-hero p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}
.ai-hero-glow {
    position: absolute;
    top: -60%; right: -30%;
    width: 70%; height: 220%;
    background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 60%);
    pointer-events: none;
}
/* 通用卡片 */
.ai-card {
    background: rgba(20, 20, 30, 0.65);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    margin-top: 14px;
    overflow: hidden;
}
.ai-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(90deg, rgba(124,58,237,0.10), rgba(236,72,153,0.06));
}
.ai-card-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
/* 关闭/未配置卡片 */
.ai-closed-card, .ai-login-card {
    text-align: center;
    padding: 44px 20px;
    margin-top: 16px;
    background: rgba(20, 20, 30, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
}
.ai-closed-icon {
    font-size: 52px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 14px rgba(124, 58, 237, 0.5));
}
.ai-closed-card h2, .ai-login-card h2 {
    color: var(--text);
    font-size: 19px;
    margin: 0 0 8px;
}
.ai-closed-card p, .ai-login-card p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 18px;
}
.ai-login-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
/* ===== 选歌区 ===== */
.ai-song-box { padding: 14px 16px; }
.ai-song-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    padding: 10px 12px;
}
.ai-song-cover {
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}
.ai-song-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-song-info { flex: 1; min-width: 0; }
.ai-song-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ai-song-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.ai-song-change {
    font-size: 12px;
    color: var(--pink);
    text-decoration: none;
    border: 1px solid rgba(236, 72, 153, 0.35);
    padding: 4px 10px;
    border-radius: 14px;
    flex-shrink: 0;
}
.ai-song-search { display: flex; gap: 8px; }
.ai-song-search input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 9px 14px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}
.ai-song-search input:focus { border-color: var(--pink); }
.ai-song-results { margin-top: 10px; }
.ai-song-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}
.ai-song-item:hover { background: rgba(236, 72, 153, 0.08); }
.ai-song-item-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ai-song-item-artist { font-size: 12px; color: var(--text-muted); }
.ai-song-pick {
    font-size: 12px;
    color: var(--pink);
    border: 1px solid rgba(236, 72, 153, 0.35);
    padding: 2px 10px;
    border-radius: 12px;
}
.ai-song-none {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 18px 0 6px;
}
/* ===== 功能 Tab ===== */
.ai-tabs {
    display: flex;
    padding: 12px 16px 0;
    gap: 8px;
}
.ai-tab {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.ai-tab.active {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 18px rgba(124, 58, 237, 0.4);
}
.ai-panel { padding: 14px 16px 18px; }
/* 控件组 */
.ai-ctrl { margin-bottom: 16px; }
.ai-ctrl > label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 700;
}
.ai-seg {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-seg button {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 13px;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}
.ai-seg button:hover { border-color: rgba(236, 72, 153, 0.4); color: var(--text); }
.ai-seg button.active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(168, 85, 247, 0.9));
    border-color: transparent;
    color: #fff;
}
/* 音色网格 */
.ai-voices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.ai-voice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 4px;
    cursor: pointer;
    transition: all 0.18s;
}
.ai-voice:hover { border-color: rgba(236, 72, 153, 0.4); transform: translateY(-2px); }
.ai-voice.active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(124, 58, 237, 0.25));
    border-color: var(--pink);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.25);
}
.ai-voice-emoji { font-size: 24px; line-height: 1; }
.ai-voice-name { font-size: 12px; color: var(--text-dim); }
.ai-voice.active .ai-voice-name { color: #fff; }
/* 提交按钮 */
.ai-submit {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 800;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.4);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ai-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5); }
.ai-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
/* ===== 结果区 ===== */
.ai-result { padding: 20px 16px; }
.ai-waiting { text-align: center; }
.ai-spinner {
    width: 42px; height: 42px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: ai-spin 0.9s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }
.ai-waiting-text { font-size: 15px; font-weight: 700; color: var(--text); }
.ai-waiting-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.ai-done, .ai-failed { text-align: center; }
.ai-done-icon { font-size: 44px; margin-bottom: 8px; }
.ai-done-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.ai-audio { width: 100%; margin-bottom: 14px; }
.ai-done-actions { display: flex; justify-content: center; }
.ai-failed-msg {
    font-size: 13px;
    color: #f87171;
    margin-bottom: 14px;
    line-height: 1.6;
}
/* ===== 我的作品 ===== */
.ai-works { padding: 10px 14px; }
.ai-works-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding: 16px 0;
}
.ai-works-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 13px;
}
.ai-works-type { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }
.ai-works-title {
    flex: 1;
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ai-works-play {
    color: var(--pink);
    text-decoration: none;
    font-size: 12px;
    border: 1px solid rgba(236, 72, 153, 0.35);
    padding: 3px 10px;
    border-radius: 12px;
    flex-shrink: 0;
}
.ai-works-status { color: #fbbf24; font-size: 12px; flex-shrink: 0; }
.ai-works-failed { color: #f87171; font-size: 12px; flex-shrink: 0; }
/* 移动端微调 */
@media (max-width: 640px) {
    .ai-hero { padding: 24px 18px; }
    .ai-hero h1 { font-size: 20px; }
    .ai-voices { grid-template-columns: repeat(3, 1fr); }
    .ai-seg button { padding: 6px 10px; font-size: 12px; }
    .ai-page { padding: 0 2px; margin: 10px auto 30px; }
}

/* ===== 标签云 ===== */
.home-tag-cloud {
    padding: 12px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.home-tag-cloud a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}
.home-tag-cloud a:hover {
    color: #fff;
    background: rgba(236,72,153,0.2);
    border-color: var(--pink);
}

/* ===== 首页响应式 ===== */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
    }
    .home-side-col {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .home-side-col .home-card {
        margin-bottom: 0;
    }
}
@media (max-width: 768px) {
    .home-hero { margin: 12px 0; }
    .hero-slide { height: 200px; }
    .hero-slide-content { padding: 16px 18px; }
    .hero-slide-content h2 { font-size: 18px; margin-bottom: 6px; }

    .home-cat-bar {
        gap: 8px;
        padding: 12px;
        margin: 12px 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .home-cat-chip {
        padding: 6px 14px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .home-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-tri-col {
        grid-template-columns: 1fr;
    }

    .home-side-col {
        grid-template-columns: 1fr;
    }

    .home-card { margin-bottom: 12px; }
    .home-card-head { padding: 10px 14px; }
    .home-card-head h3 { font-size: 14px; }
    .home-list { padding: 4px 10px; }
    .home-list li { padding: 5px 4px; line-height: 26px; }
    .home-list li > p a { font-size: 12px; }

    .home-album-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
    .hero-slide { height: 160px; }
    .hero-slide-content { padding: 12px 14px; }
    .hero-slide-content h2 { font-size: 15px; }
    .hero-btn { padding: 6px 16px; font-size: 12px; }

    .home-cat-chip { padding: 5px 12px; font-size: 12px; }

    .home-album-grid { grid-template-columns: repeat(2, 1fr); }
}
