* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", -apple-system, sans-serif; background: #f5f7fa; color: #333; line-height: 1.6; font-size: 14px; }
a { color: #667eea; text-decoration: none; transition: color .2s; }
a:hover { color: #764ba2; }
img { max-width: 100%; vertical-align: middle; }
button, input, select, textarea { font-family: inherit; outline: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.top-nav { background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.nav-inner { display: flex; align-items: center; padding: 0 20px; height: 60px; gap: 20px; }
.logo { color: #fff; font-size: 20px; font-weight: bold; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.logo:hover { color: #ff6b35; }
.nav-links { display: flex; gap: 4px; flex-shrink: 0; }
.nav-links a { color: #e8e8e8; padding: 8px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; display: inline-block; }
.nav-links a:hover { background: rgba(255,255,255,.1); color: #ff6b35; }

/* 更多下拉菜单 */
.nav-more { position: relative; }
.nav-more .more-btn { cursor: pointer; }
.more-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 1000;
}
.nav-more:hover .more-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.more-dropdown a {
    display: block;
    padding: 10px 14px;
    color: #cbd5e1;
    font-size: 14px;
    border-radius: 6px;
    margin: 2px 0;
    white-space: nowrap;
}
.more-dropdown a:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #fff;
}

.nav-search { display: flex; margin-left: auto; flex: 0 0 260px; flex-shrink: 0; }
.nav-search input { flex: 1; padding: 8px 12px; border: none; border-radius: 20px 0 0 20px; background: rgba(255,255,255,.1); color: #fff; }
.nav-search input::placeholder { color: rgba(255,255,255,.5); }
.nav-search button { border: none; background: #ff6b35; color: #fff; padding: 8px 14px; border-radius: 0 20px 20px 0; cursor: pointer; }
.nav-user { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.nav-user a { color: #e8e8e8; font-size: 14px; white-space: nowrap; }
.nav-user a:hover { color: #ff6b35; }
.user-link { display: flex; align-items: center; gap: 6px; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; }
.vip-tag { background: linear-gradient(135deg, #ffd700, #ff9800); color: #fff; padding: 1px 6px; border-radius: 3px; font-size: 11px; margin-left: 4px; }
.admin-link { color: #ff6b35 !important; font-weight: bold; }

/* 主体内容 */
.main-content { padding: 25px 20px; min-height: calc(100vh - 150px); }

/* 底部 */
.site-footer { background: #1a1a2e; color: #888; text-align: center; padding: 25px 0; margin-top: 40px; font-size: 13px; }

/* Flash消息 */
.flash { padding: 12px 20px; border-radius: 8px; margin-bottom: 15px; font-size: 14px; }
.flash-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }
.flash-error { background: #ffebee; color: #c62828; border-left: 4px solid #f44336; }
.flash-info { background: #e3f2fd; color: #1565c0; border-left: 4px solid #2196f3; }

/* 按钮 */
.btn { display: inline-block; padding: 8px 18px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; transition: all .2s; background: #667eea; color: #fff; }
.btn:hover { background: #764ba2; color: #fff; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.btn-success { background: #4caf50; }
.btn-danger { background: #f44336; }
.btn-gray { background: #9e9e9e; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 30px; font-size: 16px; }
.btn-ghost { background: transparent; border: 1px solid #ddd; color: #666; }
.btn-ghost:hover { border-color: #667eea; color: #667eea; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); margin-bottom: 20px; }
.card-title { font-size: 18px; font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; color: #333; display: flex; justify-content: space-between; align-items: center; }

/* Hero横幅 */
.hero { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ff6b35 100%); border-radius: 12px; padding: 50px 30px; color: #fff; margin-bottom: 25px; position: relative; overflow: hidden; }
.hero h1 { font-size: 36px; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.hero p { font-size: 16px; opacity: .95; margin-bottom: 20px; }
.hero .btn { background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.5); margin-right: 10px; }
.hero .btn:hover { background: #fff; color: #764ba2; }

/* 高级 Hero 区域 */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 50%, #7c3aed 100%);
    border-radius: 16px;
    padding: 60px 40px;
    color: #fff;
    margin-bottom: 24px;
}
.hero-bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}
.hero-decor-1 {
    width: 300px;
    height: 300px;
    background: #ff6b35;
    top: -100px;
    right: -50px;
    animation: float 8s ease-in-out infinite;
}
.hero-decor-2 {
    width: 250px;
    height: 250px;
    background: #8b5cf6;
    bottom: -80px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}
.hero-decor-3 {
    width: 200px;
    height: 200px;
    background: #06b6d4;
    top: 50%;
    left: 60%;
    transform: translateY(-50%);
    animation: float 10s ease-in-out infinite;
    opacity: 0.3;
}
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 24px;
    max-width: 500px;
}
.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-hero {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: #fff;
}
.btn-ghost-hero {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost-hero:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* 卡片优化 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}
.card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-title span {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 分类列表 */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; }
.cat-item { background: #fff; padding: 20px; border-radius: 10px; text-align: center; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.cat-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.cat-icon { font-size: 42px; margin-bottom: 10px; }
.cat-name { font-size: 15px; font-weight: bold; color: #333; }
.cat-count { color: #888; font-size: 12px; margin-top: 5px; }

/* 音乐列表 */
.music-list { background: #fff; border-radius: 12px; overflow: hidden; }
.music-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.25s ease;
    cursor: pointer;
}
.music-item:hover {
    background: #f8fafc;
    transform: translateX(4px);
}
.music-item:last-child { border-bottom: none; }
.music-index {
    width: 40px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}
.music-index.hot { color: #ff6b35; font-weight: bold; font-size: 18px; }
.music-cover {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 24px;
    flex-shrink: 0;
}
.music-info { flex: 1; min-width: 0; }
.music-title {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-title a { color: #1e293b; }
.music-title a:hover { color: #ff6b35; }
.music-artist {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.music-meta { display: flex; gap: 20px; color: #888; font-size: 13px; margin: 0 20px; }
.music-meta span::before { margin-right: 4px; }
.music-actions { display: flex; gap: 8px; }

/* 音乐列表播放按钮 */
.music-cover {
    position: relative;
    overflow: hidden;
}
.music-play-btn {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 53, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
}
.music-item:hover .music-play-btn {
    opacity: 1;
    transform: scale(1);
}

/* 音乐网格(首页) */
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.music-card { background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.music-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.music-card-cover { height: 180px; background: linear-gradient(135deg, #667eea, #764ba2); position: relative; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 50px; }
.music-card-cover::after { content: '▶'; position: absolute; right: 15px; bottom: 15px; width: 40px; height: 40px; background: #ff6b35; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; opacity: 0; transition: opacity .2s; }
.music-card:hover .music-card-cover::after { opacity: 1; }
.music-card-body { padding: 12px; }
.music-card-title { font-size: 14px; color: #333; font-weight: bold; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-card-meta { font-size: 12px; color: #888; }

/* 表单 */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: #333; font-size: 14px; font-weight: 500; }
.form-control { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color .2s; background: #fff; }
.form-control:focus { border-color: #667eea; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-tip { color: #888; font-size: 12px; margin-top: 5px; }

/* 登录/注册 */
.auth-box { max-width: 420px; margin: 40px auto; background: #fff; padding: 40px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.1); }
.auth-box h2 { text-align: center; margin-bottom: 30px; color: #333; }
.auth-box .btn { width: 100%; padding: 12px; font-size: 16px; }
.auth-box .auth-link { text-align: center; margin-top: 20px; color: #888; }

/* 分页 */
.pager { display: flex; justify-content: center; gap: 6px; margin: 25px 0; }
.pager .page { display: inline-block; padding: 8px 14px; background: #fff; border-radius: 6px; color: #666; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pager .page.current { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table th { background: #f5f7fa; padding: 12px; text-align: left; font-size: 14px; color: #555; font-weight: 600; border-bottom: 1px solid #eee; }
.data-table td { padding: 12px; border-bottom: 1px solid #f5f5f5; font-size: 14px; }
.data-table tr:hover td { background: #fafbff; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-red { background: #ffebee; color: #c62828; }
.badge-blue { background: #e3f2fd; color: #1565c0; }
.badge-yellow { background: #fff8e1; color: #f57f17; }
.badge-purple { background: #f3e5f5; color: #6a1b9a; }

/* 两列布局 */
.two-col { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.side-menu { background: #fff; border-radius: 10px; padding: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.05); height: fit-content; position: sticky; top: 80px; }
.side-menu a { display: block; padding: 10px 15px; border-radius: 6px; color: #555; font-size: 14px; margin-bottom: 4px; }
.side-menu a:hover { background: #f5f7fa; color: #667eea; }
.side-menu a.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

/* 用户中心 */
.profile-header { background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 12px; padding: 30px; color: #fff; margin-bottom: 20px; display: flex; align-items: center; gap: 25px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: #fff; font-size: 48px; display: flex; align-items: center; justify-content: center; color: #764ba2; font-weight: bold; border: 4px solid rgba(255,255,255,.3); }
.profile-info h2 { font-size: 24px; margin-bottom: 8px; }
.profile-info p { opacity: .9; font-size: 14px; margin-bottom: 5px; }
.profile-stats { display: flex; gap: 30px; margin-left: auto; }
.profile-stats div { text-align: center; }
.profile-stats strong { font-size: 20px; display: block; }
.profile-stats span { font-size: 13px; opacity: .85; }

/* 播放页面 */
.player-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.player-main { background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.player-artwork { width: 100%; height: 260px; background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 12px; margin-bottom: 25px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 100px; }
.player-title { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 8px; }
.player-artist { font-size: 15px; color: #888; margin-bottom: 20px; }
.player-artist a { color: #ff6b35; }
.player-actions { display: flex; gap: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.player-bar { background: #f5f7fa; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.player-bar .progress { height: 6px; background: #e0e0e0; border-radius: 3px; overflow: hidden; margin-bottom: 10px; position: relative; cursor: pointer; }
.player-bar .progress-fill { height: 100%; background: linear-gradient(90deg, #ff6b35, #f7931e); width: 30%; }
.player-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.player-controls .ctrl-btn { width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid #ddd; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.player-controls .ctrl-btn:hover { background: #ff6b35; color: #fff; border-color: #ff6b35; }
.player-controls .play-btn { width: 56px; height: 56px; background: linear-gradient(135deg, #ff6b35, #f7931e); color: #fff; border: none; font-size: 22px; }
.player-controls .play-btn:hover { transform: scale(1.08); }
.player-time { display: flex; justify-content: space-between; color: #888; font-size: 13px; margin-top: 8px; }
.player-sidebar { display: flex; flex-direction: column; gap: 15px; }

/* 评论 */
.comment-form { background: #f5f7fa; border-radius: 8px; padding: 15px; margin-bottom: 20px; }
.comment-form textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; min-height: 70px; resize: vertical; }
.comment-form .btn-submit { margin-top: 8px; text-align: right; }
.comment-item { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.comment-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-head { margin-bottom: 5px; font-size: 14px; }
.comment-user { color: #667eea; font-weight: bold; margin-right: 8px; }
.comment-time { color: #999; font-size: 12px; }
.comment-content { color: #333; margin-bottom: 6px; font-size: 14px; }
.comment-meta { font-size: 12px; color: #888; }
.comment-meta a { margin-right: 12px; }
.comment-reply { margin-left: 54px; background: #fafbff; border-radius: 6px; padding: 10px; margin-top: 8px; }

/* 筛选栏 */
.filter-bar { background: #fff; border-radius: 10px; padding: 15px 20px; margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.filter-bar label { color: #666; font-size: 14px; }
.filter-bar a { padding: 5px 12px; border-radius: 16px; color: #666; font-size: 13px; }
.filter-bar a.active { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }

/* 歌单 */
.playlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.playlist-card { background: #fff; border-radius: 10px; overflow: hidden; cursor: pointer; transition: all .2s; box-shadow: 0 2px 8px rgba(0,0,0,.05); position: relative; }
.playlist-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.playlist-cover { height: 180px; background: linear-gradient(135deg, #ff6b35, #f7931e); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px; position: relative; }
.playlist-private { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.5); color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 12px; }
.playlist-body { padding: 12px; }
.playlist-name { font-size: 14px; color: #333; font-weight: bold; margin-bottom: 5px; }
.playlist-meta { color: #888; font-size: 12px; }

/* 电台 */
.radio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.radio-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05); cursor: pointer; transition: all .2s; text-align: center; }
.radio-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.radio-icon { font-size: 56px; margin-bottom: 12px; }
.radio-card h3 { color: #333; margin-bottom: 8px; }
.radio-card p { color: #888; font-size: 13px; margin-bottom: 10px; }
.radio-listeners { color: #ff6b35; font-weight: bold; }

/* 动态 */
.dynamic-item { background: #fff; border-radius: 10px; padding: 20px; margin-bottom: 15px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.dynamic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dynamic-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 18px; }
.dynamic-user { font-weight: bold; color: #333; }
.dynamic-time { color: #999; font-size: 12px; }
.dynamic-content { color: #333; line-height: 1.8; margin-bottom: 12px; }
.dynamic-meta { color: #888; font-size: 13px; display: flex; gap: 20px; }

/* 私信 */
.chat-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); min-height: 500px; }
.chat-list { border-right: 1px solid #eee; overflow-y: auto; }
.chat-list-item { padding: 14px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background .2s; display: flex; gap: 12px; align-items: center; }
.chat-list-item:hover, .chat-list-item.active { background: #f5f7fa; }
.chat-list-item .name { font-weight: bold; color: #333; font-size: 14px; }
.chat-list-item .last { color: #888; font-size: 12px; }
.chat-main { display: flex; flex-direction: column; height: 500px; }
.chat-header { padding: 15px; border-bottom: 1px solid #eee; font-weight: bold; }
.chat-messages { flex: 1; overflow-y: auto; padding: 20px; background: #fafbff; }
.chat-msg { margin-bottom: 15px; }
.chat-msg.self { text-align: right; }
.chat-bubble { display: inline-block; padding: 10px 14px; border-radius: 10px; max-width: 70%; text-align: left; }
.chat-msg:not(.self) .chat-bubble { background: #fff; border: 1px solid #eee; }
.chat-msg.self .chat-bubble { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; }
.chat-time { color: #999; font-size: 11px; margin-top: 4px; }
.chat-input-bar { display: flex; gap: 10px; padding: 15px; border-top: 1px solid #eee; }
.chat-input-bar input { flex: 1; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }

/* 积分商城 */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.shop-item { background: #fff; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: all .2s; }
.shop-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.shop-icon { font-size: 56px; margin-bottom: 10px; }
.shop-item h3 { margin-bottom: 6px; font-size: 16px; }
.shop-item p { color: #888; font-size: 13px; margin-bottom: 12px; min-height: 40px; }
.shop-price { color: #ff6b35; font-size: 20px; font-weight: bold; margin-bottom: 12px; }
.shop-price::after { content: ' 积分'; font-size: 12px; color: #888; font-weight: normal; }

/* 会员等级 */
.level-progress { background: #fff; border-radius: 10px; padding: 25px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.level-bar { height: 20px; background: #f0f0f0; border-radius: 10px; overflow: hidden; margin: 15px 0; }
.level-fill { height: 100%; background: linear-gradient(90deg, #ffd700, #ff9800, #ff6b35); }
.level-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.level-item { padding: 15px; border-radius: 8px; border: 2px solid #eee; text-align: center; }
.level-item.current { border-color: #ff6b35; background: #fff8f0; }

/* 管理后台 */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar { background: #1a1a2e; color: #fff; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar h3 { padding: 0 20px; color: #ff6b35; font-size: 16px; margin-bottom: 15px; }
.admin-sidebar a { display: block; padding: 12px 20px; color: #ccc; font-size: 14px; transition: all .2s; border-left: 3px solid transparent; }
.admin-sidebar a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-sidebar a.active { background: rgba(255,107,53,.15); color: #ff6b35; border-left-color: #ff6b35; }
.admin-main { padding: 25px; background: #f5f7fa; }
.admin-header { background: #fff; border-radius: 8px; padding: 18px 25px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.admin-header h2 { color: #333; font-size: 20px; }

/* 统计卡片 */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.stat-card .label { color: #888; font-size: 13px; margin-bottom: 10px; }
.stat-card .value { font-size: 28px; font-weight: bold; color: #333; }
.stat-card .icon { float: right; font-size: 32px; opacity: .5; }
.stat-card.primary .value { color: #667eea; }
.stat-card.success .value { color: #4caf50; }
.stat-card.warning .value { color: #ff9800; }
.stat-card.danger .value { color: #f44336; }

/* 工具类 */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: #888; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.gap-10 { gap: 10px; }
.hidden { display: none; }
.empty { text-align: center; padding: 60px 20px; color: #999; }
.empty .icon { font-size: 60px; margin-bottom: 15px; opacity: .4; }

/* 响应式 */
@media (max-width: 960px) {
    .two-col, .player-wrap, .admin-layout, .chat-wrap { grid-template-columns: 1fr; }
    .side-menu, .admin-sidebar { position: static; }
    .nav-links { display: none; }
    .nav-search { flex: 1; }
}

/* ===== 手机端响应式优化 ===== */
@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .main-content { padding: 15px 12px; }

    /* 顶部导航 */
    .nav-inner { height: 56px; padding: 0 12px; gap: 10px; }
    .logo { font-size: 16px; }
    .nav-search { flex: 1; }
    .nav-user { gap: 10px; }
    .nav-user a { font-size: 13px; }

    /* Hero横幅 */
    .hero-banner, .hero { padding: 30px 20px; }
    .hero h1, .hero-banner h2 { font-size: 22px; }
    .hero p, .hero-banner p { font-size: 14px; }
    .hero .btn, .hero-banner .btn { padding: 8px 16px; font-size: 13px; }

    /* 卡片 */
    .card { padding: 16px 14px; border-radius: 12px; margin-bottom: 14px; }
    .card-title { font-size: 16px; margin-bottom: 12px; padding-bottom: 8px; }

    /* 快捷入口 */
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(140px"] {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)) !important;
        gap: 10px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(140px"] a {
        padding: 14px 8px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(140px"] [style*="font-size: 32px"] {
        font-size: 26px !important;
        margin-bottom: 6px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(140px"] [style*="font-weight: 600"] {
        font-size: 13px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(140px"] [style*="font-size: 12px"] {
        font-size: 11px !important;
    }

    /* 音乐列表 - 核心修复 */
    .music-item {
        flex-direction: row !important;
        flex-wrap: nowrap;
        padding: 12px 14px;
        gap: 10px;
        position: relative;
    }
    .music-index {
        width: 28px;
        font-size: 13px;
        flex-shrink: 0;
    }
    .music-index.hot {
        font-size: 16px;
    }
    .music-cover {
        width: 56px;
        height: 56px;
        margin-right: 0;
        font-size: 22px;
        flex-shrink: 0;
        border-radius: 10px;
    }
    /* 手机端播放按钮常显 */
    .music-play-btn {
        opacity: 1 !important;
        transform: scale(1) !important;
        width: 28px;
        height: 28px;
        font-size: 12px;
        right: 4px;
        bottom: 4px;
    }
    .music-info {
        flex: 1;
        min-width: 0;
        padding-right: 8px;
    }
    .music-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 6px;
    }
    .music-artist {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .music-meta {
        display: none;
    }
    .music-actions {
        flex-shrink: 0;
    }
    .music-actions .btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 音乐卡片网格 */
    .music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .music-card-cover {
        height: 140px;
        font-size: 40px;
    }
    .music-card-title {
        font-size: 13px;
    }
    .music-card-meta {
        font-size: 11px;
    }

    /* 歌单/专辑网格 */
    .playlist-grid, .album-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .playlist-cover, .album-cover {
        height: 140px;
    }

    /* 音乐人 */
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(180px"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(180px"] a {
        padding: 14px 10px !important;
    }
    .card [style*="grid-template-columns: repeat(auto-fit, minmax(180px"] [style*="width: 60px"] {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    /* 动态 */
    [style*="padding: 16px; background: #0f172a"] {
        padding: 14px !important;
    }

    /* 底部横幅 */
    [style*="background: linear-gradient(135deg, rgba(99, 102, 241, 0.15)"] {
        padding: 24px 20px !important;
    }
    [style*="background: linear-gradient(135deg, rgba(99, 102, 241, 0.15)"] h2 {
        font-size: 18px !important;
    }

    /* 标签云 */
    .tag-cloud {
        gap: 8px;
    }
    .tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* 按钮尺寸 */
    .btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
    .btn-lg {
        padding: 10px 22px;
        font-size: 14px;
    }
}

/* ===== 小屏手机优化 ===== */
@media (max-width: 480px) {
    .music-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .music-card-cover {
        height: 130px;
    }
    .playlist-grid, .album-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
