/* ========== 基础变量与重置 ========== */
:root {
    --primary: #2196F3;
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --bg: #f5f5f5;
    --surface: #ffffff;
    --text: #333;
    --text-secondary: #666;
    --text-light: #999;
    --border: #e0e0e0;
    --header-height: 50px;
    --nav-height: 55px;
    --max-width: 450px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-font-smoothing:antialiased; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #f5f5f5;
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    padding-bottom: calc(var(--nav-height) + 12px);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select {
    font-family: inherit; font-size: 15px; border: none; outline: none; background: transparent;
}
button { cursor: pointer; }

/* ========== 布局容器（PC端居中） ========== */
.content, .container, .header, .bottom-nav {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}
.header, .bottom-nav { left: 0; right: 0; width: 100%; }
.content { padding-top: calc(var(--header-height) + 0px); }
.container { padding: 0 7px; }

/* ========== Loading Overlay ========== */
.loading-overlay {
    position: fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5); z-index: 99999;
    display: none; align-items: center; justify-content: center;
}
.loading-overlay.active { display: flex; }
.loading-box {
    background: var(--surface); border-radius: 8px;
    padding: 28px 36px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.loading-spinner {
    width: 36px; height: 36px; margin: 0 auto 12px;
    border: 3px solid #e0e0e0; border-top: 3px solid var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { font-size: 14px; color: var(--text-secondary); }

/* ========== Header ========== */
.header {
    position: fixed; top: 0; height: var(--header-height);
    background: var(--surface); border-bottom: 1px solid var(--border);
    z-index: 1000; display: flex; align-items: center;
    padding: 0 14px;
}
.header .logo { font-size: 17px; font-weight: 700; color: var(--primary); }
.header .header-actions { margin-left: auto; display: flex; gap: 6px; }
.header .header-actions button, .header .search-btn {
    width: 40px; height: 34px; border-radius: 4px;
    background: #f5f5f533; display: flex; align-items: center;
    justify-content: center; color: var(--text); font-size: 15px;
}

/* ========== Search Panel ========== */
.search-panel {
    position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    z-index: 1100; display: none; flex-direction: column;
    width: 100%; max-width: var(--max-width); background: var(--bg);
}
.search-panel.active { display: flex; }
.search-panel .search-header {
    display: flex; align-items: center; padding: 10px 14px;
    border-bottom: 1px solid var(--border); gap: 10px; background: var(--surface);
}
.search-panel input {
    flex: 1; height: 40px; background: var(--bg); border-radius: 4px;
    padding: 0 14px; color: var(--text); border: 1px solid var(--border);
}
.search-panel .close-search {
    width: 34px; height: 34px; display: flex; align-items: center;
    justify-content: center; font-size: 18px; color: var(--text-light);
}

/* ========== Nav Dropdown ========== */
.nav-dropdown {
    position: fixed; top: var(--header-height); left: 50%; transform: translateX(-50%);
    z-index: 999; display: none;
    width: 100%; max-width: var(--max-width); background: var(--surface);
    padding: 8px 14px; border-bottom: 1px solid var(--border);
}
.nav-dropdown.active { display: block; }
.nav-dropdown a {
    display: flex; align-items: center; padding: 12px 0;
    border-bottom: 1px solid var(--border); color: var(--text);
    font-size: 15px; gap: 10px;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a .icon { width: 26px; text-align: center; font-size: 17px; }

/* ========== Bottom Nav（统一底部导航栏样式，覆盖 footer.php 中的内联定义） ========== */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
    display: flex; justify-content: space-around; align-items: center;
    padding: 6px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08), 0 -1px 0 rgba(0,0,0,0.02);
    border-top: 0.5px solid rgba(0,0,0,0.08);
    z-index: 9999; will-change: transform; transform: translateZ(0);
    transition: background 0.2s ease;
    height: auto; min-height: 68px;
}
@media (min-width: 769px) {
    .bottom-nav {
        left: 50%; right: auto; transform: translateX(-50%) translateZ(0);
        width: 100%; max-width: 450px;
        border-radius: 28px 28px 0 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
    }
}
.bottom-nav a, .bottom-nav .nav-fab {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-decoration: none; font-size: 11px;
    font-weight: 500; color: #8e8e93; padding: 6px 0 4px;
    position: relative; transition: all 0.18s ease;
    border-radius: 30px; background: transparent; letter-spacing: 0.3px; cursor: pointer;
}
.bottom-nav .nav-icon { font-size: 24px; font-weight: 400; margin-bottom: 4px; transition: transform 0.18s ease; display: block; line-height: 1; }
.bottom-nav .nav-fab .icon-plus {
    background: #2196F3; color: white; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 30px; font-size: 28px; font-weight: 300;
    margin-bottom: 4px; box-shadow: 0 4px 10px rgba(33,150,243,0.3);
    transition: all 0.2s cubic-bezier(0.2,0.9,0.4,1.1);
}
.bottom-nav .nav-fab .fab-label { font-size: 11px; font-weight: 500; color: #8e8e93; }
.bottom-nav .nav-fab:active { transform: scale(0.97); }
.bottom-nav .nav-fab:active .icon-plus { background: #0b7ad1; transform: scale(1.02); box-shadow: 0 6px 14px rgba(33,150,243,0.4); }
.bottom-nav a.active { color: #2196F3; font-weight: 600; }
.bottom-nav a.active .nav-icon:not(.icon-plus) { transform: translateY(-2px); }
.bottom-nav a:active { background: rgba(0,0,0,0.04); transform: scale(0.97); }
.bottom-nav .nav-badge {
    position: absolute; top: -6px; right: calc(50% - 20px);
    background: #ff3b30; color: white; border-radius: 40px;
    padding: 0 5px; font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; display: inline-flex;
    align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); line-height: 1; z-index: 15;
    border: 1px solid rgba(255,255,255,0.5); backdrop-filter: blur(2px);
}
@media (max-width: 480px) {
    .bottom-nav .nav-badge { right: calc(50% - 18px); top: -5px; }
}

/* ========== 发布菜单（从 footer.php 移到 public CSS） ========== */
.publish-menu-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4); z-index: 20000;
    display: none; align-items: flex-end; justify-content: center;
}
.publish-menu-overlay.show { display: flex !important; }
.publish-menu-container {
    background: white; border-radius: 28px 28px 0 0;
    width: 96%; max-width: 500px; margin: 0 auto;
    animation: publishMenuSlideUp 0.25s ease;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}
.publish-menu-item {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 16px; cursor: pointer; border-radius: 16px;
    transition: background 0.2s;
}
.publish-menu-item:active { background: #f5f5f5; }
.publish-menu-icon {
    width: 52px; height: 52px; border-radius: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: white;
}
.publish-menu-text { flex: 1; }
.publish-menu-title { font-size: 17px; font-weight: 600; color: #333; margin-bottom: 4px; }
.publish-menu-desc { font-size: 12px; color: #999; }
.publish-menu-divider { height: 1px; background: #f0f0f0; margin: 8px 0; }
.publish-menu-cancel {
    text-align: center; padding: 14px; margin-top: 12px;
    font-size: 16px; font-weight: 500; color: #666;
    background: #f5f5f5; border-radius: 30px; cursor: pointer;
    transition: background 0.2s;
}
.publish-menu-cancel:active { background: #e8e8e8; }
@keyframes publishMenuSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* ========== Section ========== */
.section-title {
    font-size: 16px; font-weight: 700; margin: 16px 0 10px;
    display: flex; align-items: center; gap: 6px; color: var(--text);
}

/* ========== Song Card ========== */
.song-list { display: flex; flex-direction: column; gap: 0px; }
.song-card {
    background: var(--surface); border-radius: 6px;
    border: 1px solid var(--border); display: flex; padding: 10px; gap: 10px;
}
.song-card .cover {
    width: 68px; height: 68px; border-radius: 4px; flex-shrink: 0;
    background: #2196f314; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.song-card .cover .placeholder { font-size: 20px; color: #fff; }
.song-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.song-card .title { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text); 
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}
.song-card .meta { font-size: 12px; color: var(--text-secondary); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-card .tags { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.song-card .tag { font-size: 11px; padding: 1px 8px; border-radius: 3px; background: #e3f2fd; color: var(--primary); }
.song-card .stats { display: flex; align-items: center; gap: 10px; margin-top: 0px; font-size: 11px; color: var(--text-light); }

/* ========== Hot Tags ========== */
.hot-tags {
    display: flex; gap: 6px; padding: 10px 0; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hot-tags::-webkit-scrollbar { display: none; }
.hot-tags a {
    white-space: nowrap; padding: 5px 14px; border-radius: 4px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 12px; color: var(--text-secondary);
}

/* ========== Forms ========== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px 14px; border-radius: 4px;
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text); font-size: 15px;
}
.form-group textarea { resize: vertical; min-height: 70px; }
.btn { display: block; width: 100%; padding: 12px; border-radius: 4px; font-size: 15px; font-weight: 600; text-align: center; border: none; cursor: pointer; background: var(--primary); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-secondary { background: var(--surface); color: var(--primary); border: 1px solid var(--primary); }
.btn-sm { padding: 7px 14px; font-size: 13px; display: inline-block; width: auto; font-weight: 500; }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn { flex: 1; }

/* ========== Auth Pages ========== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; max-width: var(--max-width); margin: 0 auto; background: var(--bg); }
.auth-page .auth-header { padding: 40px 16px 24px; text-align: center; background: var(--primary); color: #fff; border-radius: 0 0 12px 12px; }
.auth-page .auth-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-page .auth-header p { opacity: 0.9; font-size: 13px; }
.auth-page .auth-body { padding: 24px 16px; flex: 1; background: var(--bg); }
.auth-page .auth-footer { text-align: center; padding: 14px 16px; font-size: 13px; color: var(--text-light); border-top: 1px solid var(--border); background: var(--surface); }
.auth-page .auth-footer a { color: var(--primary); }
@media (min-width: 769px) {
    .auth-page { max-width: var(--max-width); margin: 0 auto; box-shadow: 0 0 20px rgba(0,0,0,0.05); min-height: 100vh; }
    .auth-page .auth-header { border-radius: 0; }
    .auth-page .auth-body { padding: 32px 20px; }
}

/* ========== Profile ========== */
.profile-header {
    background: var(--primary); color: #fff; padding: 20px 14px 28px; text-align: center;
}
.profile-header .avatar {
    width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3);
    margin: 0 auto 10px; background: #fff; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: var(--primary);
}
.profile-header .name { font-size: 18px; font-weight: 700; }
.profile-header .points { display: inline-block; margin-top: 8px; padding: 4px 16px; background: rgba(255,255,255,0.2); border-radius: 4px; font-size: 13px; }
.profile-stats {
    display: flex; justify-content: space-around; padding: 14px;
    background: var(--surface); margin: -12px 10px 14px;
    border-radius: 6px; border: 1px solid var(--border);
    position: relative; z-index: 1;
}
.profile-stats .stat { text-align: center; }
.profile-stats .stat .num { font-size: 20px; font-weight: 700; color: var(--primary); }
.profile-stats .stat .label { font-size: 11px; color: var(--text-light); }

/* ========== Menu Grid ========== */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 10px; margin-bottom: 14px; }
.menu-grid .menu-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 4px; background: var(--surface); border-radius: 6px; border: 1px solid var(--border); }
.menu-grid .menu-item .icon { font-size: 20px; }
.menu-grid .menu-item .label { font-size: 11px; color: var(--text); }

/* ========== Player/Progress ========== */
.progress-bar { width: 100%; max-width: 320px; height: 4px; background: #e0e0e0; border-radius: 2px; margin: 14px auto 6px; cursor: pointer; position: relative; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 2px; width: 0%; }
.progress-time { font-size: 12px; color: #999; text-align: center; margin-bottom: 4px; }

/* ========== Comments ========== */
.comment-list { padding: 0 10px; max-height: 500px; overflow-y: auto; }
.comment-item { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-item .c-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; }
.comment-item .c-body { flex: 1; }
.comment-item .c-name { font-size: 13px; font-weight: 600; }
.comment-item .c-time { font-size: 11px; color: var(--text-light); font-weight: 400; }
.comment-item .c-text { font-size: 14px; margin-top: 3px; color: var(--text-secondary); }

/* ========== Upload ========== */
.upload-area { border: 2px dashed var(--border); border-radius: 6px; padding: 40px 16px; text-align: center; margin: 10px 0; background: var(--surface); }
.upload-area .upload-icon { font-size: 44px; margin-bottom: 10px; }
.upload-area p { color: var(--text-secondary); font-size: 13px; }

/* ========== Help ========== */
.help-list { display: flex; flex-direction: column; gap: 0px; padding: 0 10px; }
.help-card { background: var(--surface); border-radius: 6px; border: 1px solid var(--border); padding: 14px; display: block; }
.help-card .help-title { font-size: 15px; font-weight: 600; }
.help-card .help-meta { display: flex; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--text-light); }
.help-card .help-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; margin-top: 8px; }
.help-card .help-status.pending { background: #fff3e0; color: #e65100; }
.help-card .help-status.solved { background: #e8f5e9; color: #2e7d32; }

/* ========== Modal ========== */
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; align-items: flex-end; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--surface); max-width: var(--max-width); width: 100%; border-radius: 12px 12px 0 0; max-height: 85vh; overflow-y: auto; animation: slideUp 0.25s ease; }
@keyframes slideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { width: 30px; height: 30px; border-radius: 4px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--text-light); border: none; }
.modal-body { padding: 16px; }

/* ========== Points Log ========== */
.points-log { padding: 0 10px; }
.log-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.log-item:last-child { border-bottom: none; }
.log-item .log-info .log-type { font-size: 13px; font-weight: 500; }
.log-item .log-info .log-time { font-size: 11px; color: var(--text-light); }
.log-item .log-points { font-size: 15px; font-weight: 700; }
.log-item .log-points.plus { color: var(--success); }
.log-item .log-points.minus { color: var(--error); }

/* ========== Pagination ========== */
.pagination { display: flex; justify-content: center; gap: 5px; padding: 20px 10px; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 4px; font-size: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--text); min-width: 34px; text-align: center; }
.pagination a.active, .pagination span.current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ========== Captcha ========== */
.captcha-row { display: flex; gap: 8px; }
.captcha-row input { flex: 1; }
.captcha-row img { height: 42px; border-radius: 4px; cursor: pointer; border: 1px solid var(--border); }

/* ========== Empty ========== */
.empty { text-align: center; padding: 50px 16px; color: var(--text-light); }
.empty .empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty p { font-size: 14px; }

/* ========== User Page ========== */
.user-page .user-header { background: var(--primary); color: #fff; padding: 28px 14px; text-align: center; }
.user-page .user-header .avatar { width: 68px; height: 68px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); margin: 0 auto 10px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: var(--primary); }
.user-page .tabs { display: flex; justify-content: center; gap: 20px; padding: 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.user-page .tabs a { padding: 6px 0; font-size: 14px; color: var(--text-light); border-bottom: 2px solid transparent; font-weight: 500; }
.user-page .tabs a.active { color: var(--primary); border-color: var(--primary); }

/* ========== Poster Preview ========== */
.poster-preview { width: 240px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.poster-preview .poster-top { background: var(--primary); color: #fff; padding: 24px 16px; text-align: center; }
.poster-preview .poster-top h3 { font-size: 18px; margin-bottom: 4px; }
.poster-preview .poster-top .code { font-size: 24px; font-weight: 700; letter-spacing: 3px; background: rgba(255,255,255,0.2); padding: 6px 12px; border-radius: 4px; display: inline-block; margin-top: 8px; }
.poster-preview .poster-bottom { padding: 14px; text-align: center; }
.poster-preview .poster-bottom p { color: var(--text-secondary); font-size: 12px; }

/* ========== Admin ========== */
.admin-header { background: var(--primary); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.admin-header h1 { font-size: 16px; font-weight: 700; }
.admin-header a { color: #fff; }
.admin-nav { display: flex; overflow-x: auto; gap: 6px; padding: 8px 10px; background: var(--surface); border-bottom: 1px solid var(--border); -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav a { white-space: nowrap; padding: 6px 14px; border-radius: 4px; font-size: 12px; color: var(--text-secondary); background: var(--bg); }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-content { padding: 14px 10px; max-width: 1200px; margin: 0 auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th, .admin-table td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--text-light); font-weight: 600; font-size: 11px; }
.admin-table .actions { display: flex; gap: 5px; }
.admin-table .actions a, .admin-table .actions button { padding: 4px 10px; border-radius: 4px; font-size: 11px; background: var(--bg); color: var(--text); border: 1px solid var(--border); cursor: pointer; }
.badge { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-warning { background: #fff3e0; color: #e65100; }

/* ========== Stat Cards ========== */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 10px; margin-bottom: 14px; }
.stat-card { background: var(--surface); border-radius: 6px; padding: 14px; border: 1px solid var(--border); }
.stat-card .num { font-size: 24px; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* ========== Tab ========== */
.tab-container { background: #fff; border-bottom: 1px solid #eee; margin: 0px -8px 16px -7px; }
.tab-buttons { display: flex; gap: 0; background: #fff; }
.tab-btn { flex: 1; padding: 12px 16px; font-size: 14px; font-weight: 500; background: none; border: none; cursor: pointer; color: #666; position: relative; transition: all 0.2s ease; }
.tab-btn.active { color: #2196F3; }
.tab-btn.active::after { content: ''; position: absolute; bottom: 0; left: 20%; width: 60%; height: 3px; background: #2196F3; border-radius: 3px 3px 0 0; }
.tab-btn:hover:not(.active) { color: #333; background: #f5f5f5; }
.tab-content { display: none; padding: 16px 0; }
.tab-content.active { display: block; }

/* ========== Recommend ========== */
.recommend-list { display: flex; flex-direction: column; gap: 12px; }
.recommend-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #f9f9f9; border-radius: 12px; text-decoration: none; transition: all 0.2s ease; }
.recommend-item:hover { background: #f0f0f0; transform: translateX(4px); }
.recommend-cover { width: 50px; height: 50px; border-radius: 8px; background: linear-gradient(135deg, #667eea2b, #764ba20a); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; overflow: hidden; }
.recommend-cover img { width: 100%; height: 100%; object-fit: cover; }
.recommend-info { flex: 1; min-width: 0; }
.recommend-title { font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recommend-artist { font-size: 12px; color: #999;
}
.recommend-stats {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
}
.recommend-tag {
    font-size: 10px;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    white-space: nowrap;
}

.share-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}
.share-preview .song-name {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}
.share-preview .artist {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}
.share-qrcode {
    background: white;
    border-radius: 12px;
    padding: 12px;
    display: inline-block;
    margin: 10px auto;
    min-width: 174px;
    min-height: 174px;
    position: relative;
}
.qr-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.qr-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 8px;
}
.qr-loading span {
    font-size: 11px;
    color: #667eea;
}
.qr-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.qr-progress-fill {
    height: 100%;
    background: #667eea;
    width: 0%;
    transition: width 0.3s ease;
}

.graceful-qrcode {
    background: white;
    border-radius: 20px;
    padding: 16px;
    display: inline-block;
    margin: 10px auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.graceful-qrcode:hover {
    transform: scale(1.02);
}
.graceful-qrcode .qr-wrapper {
    position: relative;
    display: inline-block;
}
.graceful-qrcode .qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.graceful-qrcode .qr-logo span {
    font-size: 24px;
    display: block;
}

.poster-card {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 30px 24px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.poster-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.poster-cover-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    position: relative;
}
.poster-cover {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.poster-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.poster-song-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.poster-artist {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}
.poster-qr {
    background: white;
    border-radius: 20px;
    padding: 12px;
    display: inline-block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.poster-qr canvas {
    display: block;
    border-radius: 12px;
}
.poster-footer-text {
    font-size: 11px;
    margin-top: 16px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.comment-list {
    max-height: 500px;
    overflow-y: auto;
}
.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.c-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
}
.c-body {
    flex: 1;
}
.c-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.c-time {
    font-size: 11px;
    color: #999;
    margin-left: 8px;
    font-weight: normal;
}
.c-text {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
    line-height: 1.5;
}
