/* 36DJ 舞曲网 - H5 移动端流行风样式
   特征：毛玻璃卡片 + 渐变光感 + 大圆角 + 沉浸式播放页 + 精致底部导航
   仅在 (max-width: 768px) 生效 */

@media (max-width: 768px) {
    :root {
        --radius: 14px;
        --radius-lg: 20px;
        --glass-bg: rgba(255, 255, 255, 0.045);
        --glass-border: rgba(255, 255, 255, 0.09);
    }

    /* ========== 全局 ========== */
    html, body {
        font-size: 14px;
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
    }
    body {
        padding-top: 60px;
        padding-bottom: 72px;
        background:
            radial-gradient(circle at 15% 0%, rgba(168, 85, 247, 0.18), transparent 45%),
            radial-gradient(circle at 85% 8%, rgba(236, 72, 153, 0.15), transparent 40%),
            var(--bg);
        background-attachment: fixed;
    }
    .container {
        max-width: 100%;
        padding: 0 14px;
    }

    /* ========== 顶部导航栏 ========== */
    .topbar {
        position: fixed;
        top: 0; left: 0; right: 0;
        z-index: 200;
        height: 60px;
        background: rgba(13, 13, 18, 0.72);
        backdrop-filter: blur(20px) saturate(1.5);
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
        border-bottom: 1px solid rgba(168, 85, 247, 0.18);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    }
    .topbar-inner {
        height: 60px;
        gap: 10px;
        padding: 0 14px;
        align-items: center;
    }
    .logo {
        font-size: 22px;
        font-weight: 900;
        flex-shrink: 0;
        background: linear-gradient(135deg, var(--purple), var(--pink) 60%, var(--cyan));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 0.5px;
    }
    .logo small { display: none; }

    .nav,
    .topbar-actions { display: none !important; }
    .search-box { display: none !important; }

    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 38px; height: 38px;
        font-size: 20px !important;
        color: var(--text) !important;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border) !important;
        margin-left: auto;
    }

    /* ========== 快捷标签栏 → H5 端隐藏（取消电音/女声dj/英文/轻音乐等标签） ========== */
    .quick-tags-bar {
        display: none;
    }
    .quick-tags-bar .container {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 14px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .quick-tags-bar .container::-webkit-scrollbar { display: none; }
    .quick-tags-bar a {
        flex-shrink: 0;
        padding: 6px 16px;
        font-size: 13px;
        color: var(--text-dim);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
        border-radius: 18px;
        white-space: nowrap;
        transition: all 0.2s;
    }
    .quick-tags-bar a:active {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
    }
    /* 顶部固定栏仅 topbar(60px)，quick-tags-bar 已在 H5 端隐藏 */
    body { padding-top: 60px; }

    /* 滚动公告条（后台配置）：H5 端固定最顶，topbar 下移避开；仅 body.has-notice（公告开启）时生效 */
    body.has-notice .notice-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
    body.has-notice .notice-bar .container { padding: 5px 12px; }
    body.has-notice .notice-scroll { height: 20px; }
    body.has-notice .notice-text { line-height: 20px; font-size: 12px; letter-spacing: 0.5px; }
    body.has-notice .topbar { top: 32px; }
    body.has-notice { padding-top: 92px; }

    /* H5 端隐藏首页标签云（经典老歌/狂嗨/热门/DJ舞曲风格等），PC 端保留 */
    .home-cloud-box, .home-style-box { display: none; }

    /* ========== Hero 幻灯片 ========== */
    .hero {
        height: 150px;
        margin-top: 10px;
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
    .slide { min-width: 100%; }
    .slide-info { padding: 14px; }
    .slide-info h2 { font-size: 17px; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
    .slide-info p { font-size: 12px; -webkit-line-clamp: 1; }
    .slide-dots { bottom: 10px; }
    .slide-dots span { width: 6px; height: 6px; }

    /* ========== 区块卡片化 ========== */
    .section {
        margin: 18px 0;
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 16px 14px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    }
    .section-head {
        margin-bottom: 14px;
        display: flex;
        align-items: center;
    }
    .section-title {
        font-size: 17px;
        font-weight: 700;
        background: linear-gradient(135deg, #fff, var(--pink));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .section-title::before {
        content: "";
        display: inline-block;
        width: 4px; height: 16px;
        margin-right: 8px;
        vertical-align: -2px;
        border-radius: 2px;
        background: linear-gradient(180deg, var(--purple), var(--pink));
        -webkit-text-fill-color: initial;
    }
    .section-more { font-size: 12px; color: var(--cyan); }

    /* ========== 舞曲卡片网格 → 双列 ========== */
    .music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .music-card {
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        overflow: hidden;
        transition: transform 0.2s;
    }
    .music-card:active { transform: scale(0.97); }
    .music-cover {
        border-radius: var(--radius) var(--radius) 0 0;
        aspect-ratio: 1;
    }
    .music-info { padding: 8px 8px 10px; }
    .music-title { font-size: 13px; -webkit-line-clamp: 1; }
    .music-meta { font-size: 11px; }
    .music-meta .badge { font-size: 9px; padding: 1px 6px; }

    /* 特色推荐双列 */
    .music-grid.grid-featured {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    /* ========== mulist 纯文字列表 → 双列卡片 ========== */
    ul.mulist {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        columns: auto !important;
        gap: 8px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    ul.mulist li {
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
        padding: 10px 10px !important;
        font-size: 13px;
        line-height: 1.4;
        overflow: hidden;
        transition: transform 0.15s;
    }
    ul.mulist li:active { transform: scale(0.97); }
    ul.mulist li a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text);
    }
    ul.mulist input[type="checkbox"] {
        margin-right: 4px;
        accent-color: var(--pink);
    }

    /* ========== 首页区块适配 ========== */
    .dj-box {
        margin: 14px 0;
        padding: 14px 12px;
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    .dj-box .tit {
        margin-bottom: 12px;
    }
    .dj-box .tit h3 {
        font-size: 16px;
        font-weight: 700;
        background: linear-gradient(135deg, #fff, var(--pink));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .dj-box .tit .more {
        font-size: 12px;
        color: var(--cyan);
    }
    /* 多栏布局强制单栏堆叠 */
    .dj-col2, .dj-col3 {
        display: block !important;
        grid-template-columns: none !important;
        gap: 0;
    }
    .dj-col2 > div, .dj-col3 > div {
        width: 100%;
    }
    /* 专辑横排 */
    .album-row {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .album-row a img {
        border-radius: 8px;
    }
    .album-row a div {
        font-size: 11px;
        -webkit-line-clamp: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    ul.album-txt {
        columns: 1 !important;
    }
    /* 风格标签云 */
    .style-cloud {
        gap: 8px;
    }
    .style-cloud a {
        font-size: 12px;
        padding: 5px 11px;
    }
    /* 批量操作按钮 */
    .listaction {
        padding: 10px 4px 2px;
        font-size: 12px;
    }
    .listaction a {
        margin-right: 14px;
        padding: 4px 10px;
        background: rgba(168, 85, 247, 0.1);
        border-radius: 12px;
    }

    /* ========== 排行榜/列表 ========== */
    .rank-list, .music-list { gap: 0; }
    .rank-item, .music-list-item {
        padding: 12px 10px;
        gap: 12px;
        border-radius: 12px;
        margin-bottom: 6px;
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.04);
        align-items: center;
    }
    .rank-item:active, .music-list-item:active {
        background: rgba(236, 72, 153, 0.08);
    }
    .rank-num {
        font-size: 16px;
        width: 26px;
        font-weight: 800;
        text-align: center;
        background: linear-gradient(135deg, var(--purple), var(--pink));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .rank-list .rank-item:nth-child(1) .rank-num {
        background: linear-gradient(135deg, #ffd700, #ffb347);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .rank-list .rank-item:nth-child(2) .rank-num {
        background: linear-gradient(135deg, #e0e0e0, #a8a8a8);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .rank-list .rank-item:nth-child(3) .rank-num {
        background: linear-gradient(135deg, #ff9966, #cc6633);
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .rank-item-title, .music-list-item .music-title {
        font-size: 14px; -webkit-line-clamp: 1;
    }
    .rank-item-meta, .music-list-item .music-meta { font-size: 12px; }

    /* ========== 播放页 沉浸式 ========== */
    .player-page {
        display: block !important;
        padding: 4px 0;
        margin: 0 !important;
    }
    .player-main {
        border-radius: var(--radius-lg);
        padding: 16px 12px 14px;
        background: rgba(20, 20, 30, 0.55);
        backdrop-filter: blur(24px);
        border: 1px solid rgba(168, 85, 247, 0.22);
        box-shadow:
            0 0 40px rgba(168, 85, 247, 0.15),
            0 8px 24px rgba(0, 0, 0, 0.3);
    }
    .vinyl-wrap {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center;
        margin-bottom: 12px;
    }
    .vinyl-stage {
        width: 100px !important; height: 100px !important;
        margin: 0 auto;
    }
    .led-ring { width: 112px !important; height: 112px !important; }
    .led { width: 7px !important; height: 7px !important; margin: -3.5px 0 0 -3.5px !important; }
    .led-1 { transform: rotate(0deg) translateY(-55px) !important; }
    .led-2 { transform: rotate(51.4deg) translateY(-55px) !important; }
    .led-3 { transform: rotate(102.8deg) translateY(-55px) !important; }
    .led-4 { transform: rotate(154.2deg) translateY(-55px) !important; }
    .led-5 { transform: rotate(205.6deg) translateY(-55px) !important; }
    .led-6 { transform: rotate(257deg) translateY(-55px) !important; }
    .led-7 { transform: rotate(308.4deg) translateY(-55px) !important; }
    .vinyl { width: 100px !important; height: 100px !important; }
    .vinyl-label { width: 38px !important; height: 38px !important; font-size: 14px !important; }
    .tonearm { width: 48px !important; height: 48px !important; }

    .player-info { width: 100% !important; text-align: center; }
    .player-info h1 { font-size: 16px; margin-bottom: 6px; }
    .player-meta { justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 11px; }
    .player-actions { justify-content: center; flex-wrap: wrap; }

    .spectrum { display: none !important; }  /* 波浪特效已移除 */
    .progress-wrap { margin: 4px 0 10px; }
    .controls-row { flex-wrap: wrap; gap: 8px; justify-content: center; }
    .controls { gap: 10px; }
    .ctrl-btn { width: 36px; height: 36px; font-size: 13px; }
    .ctrl-btn.play { width: 52px; height: 52px; font-size: 19px; }
    .volume-control { width: 100%; justify-content: center; }
    .speed-control { width: 100%; justify-content: center; flex-wrap: wrap; }
    .speed-btn { padding: 4px 8px; font-size: 11px; border-radius: 10px; }

    /* H5 端歌词区域再缩小（仅2行，紧贴进度条上方） */
    .lyrics-ktv-box { margin: 6px 0 4px !important; padding: 5px 10px 6px !important; border-radius: 8px !important; }
    .lyrics-ktv-header { margin-bottom: 4px !important; padding-bottom: 3px !important; }
    .lyrics-ktv-label { font-size: 11px !important; }
    .lyrics-ktv-toggle { font-size: 10px !important; padding: 1px 5px !important; }
    .lyrics-ktv-body { height: 36px !important; }
    .lyrics-scroll { padding: 12px 0 !important; }
    .lyrics-scroll-line { font-size: 11px !important; padding: 1px 8px !important; line-height: 1.45 !important; }
    .lyrics-scroll-line.active { font-size: 12px !important; }
    .lyrics-empty { padding: 8px 4px !important; }
    .lyrics-empty-text { font-size: 12px !important; }
    .lyrics-fetch-btn { font-size: 11px !important; padding: 4px 10px !important; }

    .player-sidebar { width: 100% !important; margin-top: 14px; }
    .related-box {
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 14px;
    }
    .related-item { padding: 9px 4px; font-size: 13px; }

    /* 评论 */
    .comments-section {
        margin-top: 14px;
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 16px;
    }
    .comment-list .comment-item { padding: 10px 0; }
    .comment-form textarea { width: 100%; border-radius: 12px; }
    .comment-form button { width: 100%; margin-top: 8px; border-radius: 12px; }

    /* ========== 下载详情页 ========== */
    .download-page, .download-detail {
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 18px;
    }

    /* ========== 分类/列表页 ========== */
    .category-banner {
        height: 120px;
        border-radius: var(--radius-lg);
        margin-top: 10px;
    }
    .filter-bar {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 0;
    }
    .filter-bar .filter-item {
        font-size: 12px;
        padding: 5px 12px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
    }
    .filter-bar .filter-item.active,
    .filter-bar .filter-item:active {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
    }

    /* ========== 专辑 ========== */
    .album-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }
    .album-card {
        border-radius: var(--radius);
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--glass-border);
        overflow: hidden;
    }
    .album-card .album-cover { border-radius: var(--radius) var(--radius) 0 0; }
    .album-info { padding: 8px; }

    /* ========== 分页 胶囊 ========== */
    .pagination {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
    }
    .pagination a, .pagination span {
        padding: 7px 13px;
        font-size: 13px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
    }
    .pagination a:hover, .pagination span.current {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
    }

    /* ========== 登录/注册/会员 ========== */
    .auth-page { max-width: 100%; padding: 20px 16px; }
    .auth-card {
        padding: 24px 18px;
        border-radius: var(--radius-lg);
        background: rgba(20, 20, 30, 0.6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(168, 85, 247, 0.2);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    }
    .auth-card h1 {
        font-size: 22px;
        background: linear-gradient(135deg, var(--purple), var(--pink));
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .form-group { margin-bottom: 14px; }
    .form-group input {
        height: 44px;
        font-size: 15px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
    }
    .form-group input:focus { border-color: var(--pink); }
    .form-group label { font-size: 13px; }

    .member-page { padding: 12px 0; }
    .member-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        background: var(--glass-bg);
        backdrop-filter: blur(14px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 20px;
        margin-bottom: 14px;
    }
    .member-avatar {
        width: 70px; height: 70px;
        border-radius: 50%;
        padding: 3px;
        background: linear-gradient(135deg, var(--purple), var(--pink), var(--cyan));
    }
    .member-stats { width: 100%; justify-content: space-around; }

    /* ========== 标签云 ========== */
    .tag-cloud { gap: 8px; }
    .tag-cloud a {
        font-size: 12px;
        padding: 6px 14px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--glass-border);
    }
    .tag-cloud a:active {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
    }

    /* ========== 搜索页 ========== */
    .search-result .music-list-item { padding: 10px 8px; }

    /* ========== 隐藏桌面 footer ========== */
    .footer { display: none; }

    /* ========== 底部导航栏 精致风 ========== */
    .mobile-tabbar {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        height: 64px;
        background: rgba(13, 13, 18, 0.85);
        backdrop-filter: blur(20px) saturate(1.4);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        border-top: 1px solid rgba(168, 85, 247, 0.18);
        z-index: 200;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .mobile-tabbar::before {
        content: "";
        position: absolute;
        top: 0; left: 20%; right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--pink), var(--purple), transparent);
        opacity: 0.6;
    }
    .mobile-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        color: var(--text-muted);
        font-size: 10px;
        text-decoration: none;
        padding: 6px 10px;
        transition: all 0.2s;
        position: relative;
    }
    .mobile-tabbar a.active { color: var(--pink); }
    .mobile-tabbar a .tab-icon {
        font-size: 21px;
        line-height: 1;
        transition: transform 0.2s;
    }
    .mobile-tabbar a.active .tab-icon {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.7));
    }
    .mobile-tabbar a.active::after {
        content: "";
        position: absolute;
        bottom: 2px;
        width: 4px; height: 4px;
        border-radius: 50%;
        background: var(--pink);
        box-shadow: 0 0 6px var(--pink);
    }

    /* ========== 搜索遮罩 ========== */
    .mobile-search-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(13, 13, 18, 0.98);
        backdrop-filter: blur(16px);
        z-index: 300;
        padding: 16px;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .mobile-search-overlay.active {
        visibility: visible;
        opacity: 1;
    }
    .mobile-search-overlay .search-header {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }
    .mobile-search-overlay .search-header input {
        flex: 1;
        height: 46px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--glass-border);
        border-radius: 23px;
        padding: 0 18px;
        color: var(--text);
        font-size: 15px;
        outline: none;
    }
    .mobile-search-overlay .search-header input:focus {
        border-color: var(--pink);
        box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
    }
    .mobile-search-overlay .search-header button {
        background: none;
        border: none;
        color: var(--cyan);
        font-size: 16px;
        padding: 0 10px;
    }
    .mobile-search-overlay .hot-search { margin-top: 16px; }
    .mobile-search-overlay .hot-search h4 {
        color: var(--text-dim);
        font-size: 13px;
        margin-bottom: 12px;
    }
    .mobile-search-overlay .hot-search .tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .mobile-search-overlay .hot-search .tags a {
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 18px;
        font-size: 13px;
        color: var(--text-dim);
    }
    .mobile-search-overlay .hot-search .tags a:active {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        color: #fff;
        border-color: transparent;
    }

    /* ========== 侧边抽屉 ========== */
    .mobile-drawer {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        z-index: 350;
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .mobile-drawer.active {
        visibility: visible;
        opacity: 1;
    }
    .mobile-drawer-mask {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(2px);
    }
    .mobile-drawer-panel {
        position: absolute;
        top: 0; right: 0;
        width: 280px;
        height: 100%;
        background: linear-gradient(180deg, rgba(30, 20, 45, 0.95), rgba(13, 13, 18, 0.98));
        backdrop-filter: blur(20px);
        border-left: 1px solid rgba(168, 85, 247, 0.2);
        padding: 0 0 20px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    .mobile-drawer.active .mobile-drawer-panel {
        transform: translateX(0);
    }
    .mobile-drawer-panel .drawer-header {
        padding: 24px 20px 18px;
        background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        margin-bottom: 8px;
    }
    .mobile-drawer-panel .drawer-header h3 {
        font-size: 19px;
        font-weight: 800;
        background: linear-gradient(135deg, #fff, var(--pink));
        -webkit-background-clip: text; background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .mobile-drawer-panel a {
        display: block;
        padding: 13px 20px;
        color: var(--text);
        font-size: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        transition: all 0.15s;
    }
    .mobile-drawer-panel a:active {
        background: rgba(168, 85, 247, 0.12);
        padding-left: 26px;
    }
    .mobile-drawer-panel a.active { color: var(--pink); }

    /* ========== 迷你播放器 ========== */
    .mini-player {
        position: fixed;
        bottom: 64px; left: 8px; right: 8px;
        height: 54px;
        background: rgba(20, 20, 30, 0.92);
        backdrop-filter: blur(16px);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        z-index: 199;
        align-items: center;
        padding: 0 12px;
        gap: 10px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    }
    .mini-player.active { display: flex; }
    .mini-player .mini-cover {
        width: 38px; height: 38px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--purple), var(--pink));
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }
    .mini-player .mini-info { flex: 1; overflow: hidden; }
    .mini-player .mini-title {
        font-size: 13px;
        color: var(--text);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mini-player .mini-meta { font-size: 11px; color: var(--text-muted); }
    .mini-player .mini-controls { display: flex; gap: 4px; flex-shrink: 0; }
    .mini-player .mini-controls button {
        background: none;
        border: none;
        color: var(--text);
        font-size: 20px;
        padding: 6px 8px;
    }

    /* ========== 通用按钮 ========== */
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 12px;
    }
    .btn-small { padding: 6px 12px; font-size: 12px; border-radius: 10px; }
    .btn-primary {
        background: linear-gradient(135deg, var(--purple), var(--pink)) !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
    }
    .btn-large { padding: 14px 24px; font-size: 15px; border-radius: 14px; }

    /* 表格 */
    table { width: 100%; }
    img { max-width: 100%; height: auto; }

    .desktop-only { display: none !important; }

    /* 标签横向滚动 */
    .tag-scroll {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tag-scroll::-webkit-scrollbar { display: none; }
    .tag-scroll a {
        flex-shrink: 0;
        padding: 6px 14px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        font-size: 13px;
        color: var(--text-dim);
        white-space: nowrap;
    }
    .tag-scroll a.active {
        background: linear-gradient(135deg, var(--purple), var(--pink));
        border-color: transparent;
        color: #fff;
    }

    /* 表单消息 */
    .form-msg {
        border-radius: 12px;
        padding: 10px 14px;
    }
}

/* 桌面端隐藏移动端元素 */
@media (min-width: 769px) {
    .mobile-tabbar,
    .mobile-search-overlay,
    .mobile-drawer,
    .mini-player { display: none !important; }
}
