/* public/style.css - 完整版本 */

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ====== 全局进度条样式 ====== */
.global-progress {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.progress-container {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 15px;
    border: 1px solid var(--gray-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-title {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.progress-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    padding: 2px;
    border-radius: 4px;
    transition: var(--transition);
}

.progress-close:hover {
    background: #f5f5f5;
    color: var(--dark-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.progress-percentage {
    font-weight: 600;
    color: var(--success-color);
}

.progress-speed {
    flex: 1;
    text-align: center;
}

.progress-size {
    text-align: right;
}

:root {
    --primary-color: #6c5ce7;
    --primary-dark: #5b4fcf;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --info-color: #00cec9;
    --dark-color: #2d3436;
    --light-color: #f9f9f9;
    --gray-color: #dfe6e9;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 12px 0;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(108, 92, 231, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.logo h1 {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo span {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 2px;
}

/* 主导航 */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-link i {
    font-size: 1rem;
}

/* 用户区域 */
.user-area {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.user-avatar i {
    color: #6c5ce7;
}

.user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.username {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.user-actions {
    display: flex;
    gap: 8px;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #8a7cfc;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: #00a085;
}

.btn-danger {
    background: var(--danger-color);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

.btn-info {
    background: var(--info-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    gap: 4px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
    gap: 10px;
}

.btn-block {
    width: 100%;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 30px 0 60px;
    min-height: calc(100vh - 200px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 首页样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.2rem;
    color: var(--accent-color);
}

.stat-card > div {
    flex: 1;
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 谱面部分标题 */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.section-title i {
    color: var(--primary-color);
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.view-all {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.view-all:hover {
    text-decoration: underline;
}

/* 谱面卡片网格 */
.trending-section,
.charts-container {
    margin-top: 40px;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.chart-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.chart-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.chart-header h4 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin: 0;
    flex: 1;
    line-height: 1.4;
    font-weight: 600;
    word-break: break-word;
}

.chart-difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-color);
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.chart-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.chart-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-color);
    padding: 6px 12px;
    border-radius: 15px;
}

.chart-meta .author-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray-color);
    padding: 6px 12px;
    border-radius: 15px;
}

.chart-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.chart-meta i {
    font-size: 0.9rem;
}

.chart-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.chart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.tag {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.chart-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--gray-color);
}

/* 表单样式 */
.upload-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.form-group label.required::after {
    content: ' *';
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
    font-family: inherit;
    color: var(--dark-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-control:invalid {
    border-color: var(--danger-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 6px;
    line-height: 1.4;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-select {
    padding: 10px 16px;
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    background: white;
    color: var(--dark-color);
    cursor: pointer;
    font-family: inherit;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 文件上传 */
.file-upload-area {
    border: 2px dashed var(--gray-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: #fafafa;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.02);
}

.file-upload-area.highlight {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
}

.file-preview i {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.file-preview p {
    margin: 0;
    font-weight: 500;
}

.file-types {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    margin-top: 15px;
    padding: 12px;
    background: var(--gray-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    border: 1px solid #ddd;
}

.file-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.file-info strong {
    color: var(--dark-color);
}

/* 上传者信息 */
.uploader-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(108, 92, 231, 0.05);
    border-radius: var(--border-radius);
    margin: 25px 0;
    border: 1px solid rgba(108, 92, 231, 0.1);
}

.uploader-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    overflow: hidden;
}

.uploader-details h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.uploader-notice {
    color: #666;
    font-size: 0.9rem;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin: 30px 0;
}

.form-terms {
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--dark-color);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.terms-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.terms-link:hover {
    text-decoration: underline;
}

/* 搜索框 */
.search-box {
    display: flex;
    background: white;
    border: 2px solid var(--gray-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    flex: 1;
    max-width: 400px;
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

#searchInput {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 0.95rem;
    outline: none;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.section-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination button,
.pagination span {
    min-width: 40px;
    height: 40px;
    border: 2px solid var(--gray-color);
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination span {
    border: none;
    background: none;
    cursor: default;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(3px);
}

.modal.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-dialog {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.modal-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.close-btn i {
    margin: 0;
}

.modal-body {
    padding: 20px;
}

/* 标签页 */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gray-color);
    padding-bottom: 5px;
}

.auth-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    margin-bottom: -5px;
    font-size: 1rem;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.ranking-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.ranking-tab {
    padding: 8px 20px;
    background: var(--gray-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    font-size: 0.95rem;
}

.ranking-tab.active {
    background: var(--primary-color);
    color: white;
}

/* 排行榜 */
.ranking-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 20px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
    transition: var(--transition);
}

.ranking-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.ranking-item.rank-1 {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), white);
    border-color: #ffd700;
}

.ranking-item.rank-2 {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), white);
    border-color: #c0c0c0;
}

.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), white);
    border-color: #cd7f32;
}

.rank-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.ranking-item.rank-1 .rank-number {
    color: #ffd700;
}

.ranking-item.rank-2 .rank-number {
    color: #c0c0c0;
}

.ranking-item.rank-3 .rank-number {
    color: #cd7f32;
}

.ranking-content {
    flex: 1;
}

.ranking-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.ranking-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.ranking-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ranking-actions {
    display: flex;
    gap: 10px;
}

/* 社区统计 */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* 页脚 */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.server-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.status-indicator.online {
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
}

/* 加载遮罩 */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(5px);
}

.loading-overlay i {
    font-size: 3rem;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    font-size: 1.2rem;
    color: var(--dark-color);
    font-weight: 500;
    letter-spacing: 1px;
}

/* 通知 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
    transform-origin: top right;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

.notification.success {
    border-left-color: var(--success-color);
}

.notification.error {
    border-left-color: var(--danger-color);
}

.notification.warning {
    border-left-color: var(--warning-color);
}

.notification.info {
    border-left-color: var(--info-color);
}

.notification i {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.warning i {
    color: var(--warning-color);
}

.notification.info i {
    color: var(--info-color);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 5px;
    font-size: 1.2rem;
    transition: var(--transition);
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
    color: var(--danger-color);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gray-color);
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.3rem;
    font-weight: 600;
}

.empty-state p {
    max-width: 400px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.loading i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loading p {
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
}

/* 标记 */
.badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
}

/* 谱面详情 */
.chart-detail {
    padding: 5px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-color);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.difficulty-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-color);
    color: white !important;
    letter-spacing: 0.5px;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.95rem;
}

.detail-stats {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 80px;
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-section h4 i {
    color: var(--primary-color);
}

.detail-section p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item strong {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-item span {
    color: var(--dark-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 30px 20px;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .upload-form-container {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .detail-stats {
        justify-content: space-between;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .server-status {
        margin: 10px 0 0;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        font-size: 0.9rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all {
        margin-left: 0;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ranking-meta {
        justify-content: center;
    }
    
    .ranking-actions {
        width: 100%;
        justify-content: center;
    }
    
    .modal-dialog {
        margin: 10px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .hero-actions,
    .chart-actions,
    .ranking-actions,
    .detail-actions {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
    }
    
    .hero,
    .chart-card,
    .upload-form-container,
    .ranking-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* .rdzip 上传相关样式 */
.file-tips {
    font-size: 0.85rem;
    color: var(--info-color);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 206, 201, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--info-color);
}

    .file-tips i {
        margin-right: 5px;
    }

.upload-instructions {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-color);
}

    .upload-instructions h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        color: var(--dark-color);
    }

        .upload-instructions h4 i {
            color: var(--info-color);
        }

    .upload-instructions ol {
        margin-left: 20px;
        margin-bottom: 0;
    }

    .upload-instructions li {
        margin-bottom: 8px;
        line-height: 1.5;
    }

.section-note {
    background: rgba(253, 203, 110, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-size: 0.95rem;
    color: #666;
}

    .section-note i {
        color: var(--warning-color);
        margin-right: 8px;
    }

/* 谱面卡片中显示文件格式 */
.chart-format {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* 文件信息显示样式 */
.file-info {
    background: var(--gray-color);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 10px;
    border: 1px solid #ddd;
    animation: fadeIn 0.3s ease;
}

.file-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-info-label {
    font-weight: 600;
    color: var(--dark-color);
    min-width: 80px;
}

.file-info-value {
    flex: 1;
    color: #666;
}

.file-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    animation: fadeIn 0.3s ease;
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #666;
    padding: 30px;
    transition: var(--transition);
}

    .file-preview i {
        font-size: 2.5rem;
        color: var(--primary-color);
        opacity: 0.8;
    }

    .file-preview p {
        margin: 0;
        font-weight: 500;
    }

.file-types {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
}

/* 选中状态 */
.file-upload-area.selected .file-preview {
    opacity: 0.3;
}

/* 高亮状态 */
.file-upload-area.highlight {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
}

/* 文件提示 */
.file-tips {
    font-size: 0.85rem;
    color: var(--info-color);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(0, 206, 201, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--info-color);
}

    .file-tips i {
        margin-right: 5px;
    }


/* 删除按钮样式 */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #b71540);
    color: white;
}

    .btn-danger:hover {
        background: linear-gradient(135deg, #c0392b, #8e0b28);
    }

/* 我的谱面标记 */
.my-chart-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* 详情页的删除按钮 */
.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--gray-color);
    flex-wrap: wrap;
}

    .detail-actions .btn {
        min-width: 120px;
    }

/* 确认对话框样式 */
.confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    backdrop-filter: blur(3px);
}

.confirm-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--box-shadow);
    text-align: center;
}

    .confirm-content h3 {
        margin-bottom: 15px;
        color: var(--danger-color);
        font-size: 1.3rem;
    }

    .confirm-content p {
        margin-bottom: 25px;
        color: #666;
        line-height: 1.6;
    }

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

    .confirm-buttons .btn {
        min-width: 100px;
    }

/* 管理面板样式 */
.admin-panel {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

    .admin-panel h3 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;
        color: var(--primary-color);
    }

        .admin-panel h3 i {
            font-size: 1.2rem;
        }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-stat-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    text-align: center;
    border: 1px solid #e9ecef;
}

    .admin-stat-item .stat-number {
        font-size: 1.8rem;
        font-weight: bold;
        color: var(--primary-color);
        display: block;
    }

    .admin-stat-item .stat-label {
        font-size: 0.9rem;
        color: #666;
        margin-top: 5px;
    }

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-actions {
        flex-direction: column;
    }

        .detail-actions .btn {
            width: 100%;
        }

    .chart-actions {
        flex-wrap: wrap;
    }

        .chart-actions .btn {
            flex: 1;
            min-width: 0;
            font-size: 0.85rem;
            padding: 6px 10px;
        }
}

/* 用户中心样式 */
.user-center {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 10px;
    z-index: 1001;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-center-content {
    padding: 20px;
}

.user-center-content h3 {
    margin: 0 0 20px;
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.user-center-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-color);
    margin-bottom: 20px;
    gap: 5px;
}

.user-center-tab {
    flex: 1;
    padding: 10px 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    font-size: 0.9rem;
}

.user-center-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.user-center-tab:hover {
    color: var(--primary-color);
}

.user-center-tab-content {
    display: none;
}

.user-center-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* 头像上传样式 */
.avatar-upload {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.current-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #666;
    overflow: hidden;
    margin: 0 auto;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-upload-area {
    border: 2px dashed var(--gray-color);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
    position: relative;
}

.avatar-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.02);
}

.avatar-upload-area.highlight {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .user-center {
        width: 300px;
    }
}

@media (max-width: 480px) {
    .user-center {
        width: 280px;
    }
    
    .user-center-content {
        padding: 15px;
    }
    
    .avatar-upload-area {
        padding: 20px;
    }
}

/* 活动卡片样式 */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.activity-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .activity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.activity-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

    .activity-header h4 {
        font-size: 1.2rem;
        margin: 0;
        flex: 1;
        line-height: 1.4;
        font-weight: 600;
    }

.activity-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-active {
    background: var(--success-color);
    color: white;
}

.status-upcoming {
    background: var(--warning-color);
    color: var(--dark-color);
}

.status-ended {
    background: #95a5a6;
    color: white;
}

.activity-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

    .activity-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
        background: var(--gray-color);
        padding: 4px 10px;
        border-radius: 15px;
    }

    .activity-meta i {
        font-size: 0.9rem;
    }

.activity-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-dates {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #666;
}

    .activity-dates span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

.activity-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--gray-color);
}

/* 当前活动卡片 */
.current-activity-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 2px solid var(--primary-color);
}

.current-activity-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .current-activity-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
    }

.days-left {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-activity-content {
    padding: 25px;
}

.current-music {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

    .current-music i {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

.current-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.current-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* 活动详情页面 */
.activity-detail .detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.activity-detail .detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.activity-detail .activity-status {
    font-size: 0.85rem;
    padding: 6px 16px;
}

.activity-detail .detail-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.activity-detail .stat-item {
    text-align: center;
    min-width: 100px;
}

    .activity-detail .stat-item i {
        font-size: 1.8rem;
        color: white;
        margin-bottom: 8px;
        display: block;
        opacity: 0.9;
    }

    .activity-detail .stat-item strong {
        display: block;
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
        line-height: 1.2;
    }

    .activity-detail .stat-item span {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 500;
    }

.activity-detail .detail-section {
    margin: 25px 0;
    padding: 0 25px;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

    .music-info strong {
        font-size: 1.2rem;
        color: var(--primary-color);
    }

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

    .external-link:hover {
        background: var(--primary-color);
        color: white;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-header {
        flex-direction: column;
        gap: 10px;
    }

    .activity-actions {
        flex-direction: column;
    }

        .activity-actions .btn {
            width: 100%;
        }

    .current-actions {
        flex-direction: column;
    }

        .current-actions .btn {
            width: 100%;
        }

    .activity-detail .detail-stats {
        gap: 15px;
    }

    .activity-detail .stat-item {
        min-width: 80px;
    }

    .music-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .activity-card {
        margin: 0 -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .current-activity-card {
        margin: 0 -10px;
        border-radius: 0;
    }
}

/* ==================== 管理活动页面样式 ==================== */

/* 管理活动容器 */
#manage-activities.section {
    display: none;
}

    #manage-activities.section.active {
        display: block;
    }

/* 管理工具 */
.admin-tools {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(108, 92, 231, 0.1));
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    backdrop-filter: blur(10px);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.batch-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#selectedCount {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* 统计卡片 */
#adminStats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

    #adminStats .stat-card {
        background: white;
        border-radius: var(--border-radius);
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 18px;
        box-shadow: var(--box-shadow);
        border: 1px solid rgba(0, 0, 0, 0.05);
        transition: var(--transition);
    }

        #adminStats .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        #adminStats .stat-card i {
            font-size: 2.2rem;
            color: var(--primary-color);
        }

        #adminStats .stat-card > div {
            flex: 1;
        }

        #adminStats .stat-card h3 {
            font-size: 2rem;
            margin-bottom: 5px;
            font-weight: 700;
        }

        #adminStats .stat-card p {
            opacity: 0.9;
            font-size: 0.95rem;
            font-weight: 500;
        }

/* 表格容器 */
.admin-activities-container {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .admin-table thead {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    }

    .admin-table th {
        color: white;
        padding: 16px;
        text-align: left;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
    }

        .admin-table th:first-child {
            border-radius: var(--border-radius) 0 0 0;
        }

        .admin-table th:last-child {
            border-radius: 0 var(--border-radius) 0 0;
        }

    .admin-table tbody tr {
        border-bottom: 1px solid #f0f0f0;
        transition: var(--transition);
    }

        .admin-table tbody tr:hover {
            background-color: #f8f9fa;
        }

        .admin-table tbody tr.table-active {
            background-color: rgba(108, 92, 231, 0.05);
        }

    .admin-table td {
        padding: 16px;
        vertical-align: middle;
    }

/* 活动标题单元格 */
.activity-title-cell strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.activity-title-cell .text-muted {
    font-size: 0.85rem;
    color: #666;
}

    .activity-title-cell .text-muted i {
        margin-right: 5px;
        color: var(--primary-color);
    }

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: #333;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

.badge-danger {
    background: var(--danger-color);
    color: white;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 5px;
}

    .btn-group .btn {
        padding: 6px 12px;
        border-radius: var(--border-radius);
    }

/* 空状态和加载状态 */
.admin-table .empty-state {
    text-align: center;
    padding: 60px 20px;
}

    .admin-table .empty-state i {
        font-size: 2.5rem;
        color: #ddd;
        margin-bottom: 15px;
    }

    .admin-table .empty-state p {
        color: #888;
        margin-bottom: 15px;
    }

.admin-table .loading {
    text-align: center;
    padding: 40px 20px;
}

    .admin-table .loading i {
        font-size: 1.5rem;
        color: var(--primary-color);
        animation: spin 1s linear infinite;
    }

    .admin-table .loading p {
        margin-top: 10px;
        color: #666;
    }

/* 分页 */
#adminPagination {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .admin-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
    }

    .batch-actions {
        margin-left: 0;
        margin-top: 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #selectedCount {
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .batch-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 3px;
    }

        .btn-group .btn {
            width: 100%;
            justify-content: center;
        }

    .activity-title-cell strong {
        font-size: 0.9rem;
    }
}

/* 草稿状态 */
.status-draft {
    background: #6c757d;
    color: white;
}

/* 时间信息 */
.activity-status .time-info {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: normal;
    line-height: 1.2;
}

/* 已结束活动提示 */
.ended-notice .alert {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 15px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

    .ended-notice .alert i {
        color: #2196f3;
        font-size: 1.2rem;
        margin-top: 2px;
    }

    .ended-notice .alert strong {
        display: block;
        margin-bottom: 5px;
        color: #1565c0;
    }

    .ended-notice .alert p {
        margin: 0;
        color: #37474f;
        font-size: 0.9rem;
    }

/* 活动筛选控件 */
.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#activityStatusFilter {
    min-width: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

    .checkbox-label input[type="checkbox"] {
        margin: 0;
        width: 16px;
        height: 16px;
        accent-color: var(--primary-color);
    }

    .checkbox-label label {
        margin: 0;
        font-size: 0.9rem;
        color: #666;
        cursor: pointer;
        font-weight: 500;
    }

/* 活动卡片中的历史信息 */
.activity-card.status-ended {
    opacity: 0.9;
    border-color: #e0e0e0;
}

    .activity-card.status-ended:hover {
        opacity: 1;
        border-color: #bdbdbd;
    }

/* 空状态按钮 */
.empty-state button {
    margin-top: 15px;
}

/* 谱面分类标签页 */
.chart-category-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: var(--gray-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover {
    background: rgba(108, 92, 231, 0.2);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

/* 活动选择器 */
.activity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-selector select {
    flex: 1;
    max-width: 300px;
}

/* 以下为修改enter键逻辑而完善的显示 */
/* 提交按钮焦点效果 */
#submitBtn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.3);
}

/* 输入框的视觉提示 */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

/* 按键提示 */
.key-hint {
    font-size: 0.85rem;
    color: #888;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .key-hint kbd {
        background: #f0f0f0;
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid #ddd;
        font-family: monospace;
        font-size: 0.8rem;
    }

/* ==================== 曲目推荐样式 ==================== */

/* 标签页 */
.song-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--gray-color);
    padding-bottom: 5px;
    flex-wrap: wrap;
}

.song-tab {
    padding: 10px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: var(--transition);
    margin-bottom: -5px;
    font-size: 1rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

    .song-tab:hover {
        background: rgba(108, 92, 231, 0.05);
        color: var(--primary-color);
    }

    .song-tab.active {
        color: var(--primary-color);
        border-bottom-color: var(--primary-color);
        background: rgba(108, 92, 231, 0.1);
    }

/* 标签页内容 */
.song-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

    .song-tab-content.active {
        display: block;
    }

/* 活动信息卡片 */
.activity-info-card {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.activity-info-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.activity-info-meta {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

    .activity-info-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

/* 推荐状态 */
.suggestion-status {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.status-indicators {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

    .status-indicator i {
        font-size: 1.2rem;
    }

    .status-indicator.can-suggest i {
        color: var(--success-color);
    }

    .status-indicator.cannot-suggest i {
        color: var(--danger-color);
    }

    .status-indicator.ended i {
        color: #95a5a6;
    }

/* 表单容器 */
.suggestion-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 音频预览 */
.audio-preview {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.audio-player {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid #e9ecef;
}

/* 我的推荐列表 */
.my-suggestions {
    margin-top: 30px;
}

    .my-suggestions h3 {
        margin-bottom: 20px;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.my-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-suggestion-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

    .my-suggestion-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.suggestion-item-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.suggestion-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
}

.suggestion-item-status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(253, 203, 110, 0.2);
    color: #e17055;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.status-approved {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.status-rejected {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(214, 48, 49, 0.2);
}

/* 投票区 */
.vote-info {
    margin-bottom: 25px;
}

.vote-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(108, 92, 231, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.vote-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.stat-max {
    color: #999;
    font-size: 0.9rem;
}

/* 曲目推荐网格 */
.suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.suggestion-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

    .suggestion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .suggestion-card.voted {
        border-color: var(--primary-color);
    }

.suggestion-card-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

    .suggestion-card-header h4 {
        font-size: 1.2rem;
        color: var(--dark-color);
        margin: 0;
        flex: 1;
        line-height: 1.4;
        font-weight: 600;
    }

    .suggestion-card-header .artist {
        font-size: 0.9rem;
        color: #666;
        margin-top: 5px;
    }

.suggestion-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.suggestion-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.suggestion-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.suggestion-submitter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
}

.submitter-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.suggestion-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.suggestion-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-color);
}

/* 音频播放器在卡片中 */
.suggestion-audio {
    margin: 10px 0;
}

.audio-preview-small {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
}

    .audio-preview-small audio {
        width: 100%;
        height: 36px;
    }

/* 外部链接 */
.external-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    transition: var(--transition);
}

    .external-link-btn:hover {
        background: var(--primary-color);
        color: white;
    }

/* 投票按钮 */
.vote-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .vote-btn.voted {
        background: var(--success-color);
        color: white;
    }

        .vote-btn.voted:hover {
            background: #00a085;
        }

/* 投票结果页面 */
.results-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(108, 92, 231, 0.05));
    border-radius: var(--border-radius);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

    .result-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.result-rank {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    min-width: 50px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.result-item.rank-1 .result-rank {
    color: #ffd700;
}

.result-item.rank-2 .result-rank {
    color: #c0c0c0;
}

.result-item.rank-3 .result-rank {
    color: #cd7f32;
}

.result-content {
    flex: 1;
}

    .result-content h4 {
        margin-bottom: 8px;
        color: var(--dark-color);
    }

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.result-votes {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.result-bar {
    flex: 1;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 10px;
}

.result-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease;
}

/* 管理页面样式 */
.admin-controls {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(108, 92, 231, 0.1));
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .song-tabs {
        flex-direction: column;
    }

    .song-tab {
        width: 100%;
        text-align: center;
        border-radius: var(--border-radius);
        margin-bottom: 5px;
    }

    .suggestions-grid {
        grid-template-columns: 1fr;
    }

    .vote-stats {
        flex-direction: column;
        gap: 15px;
    }

    .result-item {
        flex-direction: column;
        text-align: center;
    }

    .result-rank {
        min-width: auto;
    }

    .result-meta {
        justify-content: center;
    }

    .admin-controls .filter-group {
        flex-direction: column;
    }

    .filter-group > * {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .suggestion-form-container {
        padding: 20px;
    }

    .suggestion-card {
        margin: 0 -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .suggestion-actions {
        flex-direction: column;
    }
}

/* 我的推荐区域 */
.my-suggestions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--gray-color);
}

    .my-suggestions h3 {
        margin-bottom: 20px;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.my-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.my-suggestion-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

    .my-suggestion-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

.suggestion-item-info h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.suggestion-item-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.suggestion-item-status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending {
    background: rgba(253, 203, 110, 0.2);
    color: #e17055;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.status-approved {
    background: rgba(0, 184, 148, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.status-rejected {
    background: rgba(214, 48, 49, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(214, 48, 49, 0.2);
}

.suggestion-item-actions {
    display: flex;
    gap: 10px;
}


/* 投票结果进度条 */
.progress {
    height: 20px;
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-bar {
    height: 100%;
    line-height: 20px;
    color: white;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    transition: width 0.6s ease;
}

/* 外部链接按钮 */
.external-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 12px;
    border: 1px solid var(--primary-color);
    border-radius: 15px;
    transition: var(--transition);
}

    .external-link-btn:hover {
        background: var(--primary-color);
        color: white;
    }

/* 管理员面板 */
.admin-panel {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

    .admin-panel h3 {
        margin-bottom: 15px;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        gap: 10px;
    }

.admin-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* 排名徽章特殊样式 */
.badge[style*="background:#ffd700"] {
    color: #333;
    font-weight: bold;
}

.badge[style*="background:#c0c0c0"] {
    color: #333;
    font-weight: bold;
}

.badge[style*="background:#cd7f32"] {
    color: white;
    font-weight: bold;
}

.status-draft {
    background: #6c757d; /* 灰色 */
    color: white;
}

.status-pending {
    background: #ffc107; /* 黄色 */
    color: #000;
}

.status-approved {
    background: #28a745; /* 绿色 */
    color: white;
}

.status-rejected {
    background: #dc3545; /* 红色 */
    color: white;
}

.activity-status .time-info {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: normal;
}

.suggestion-item-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 8px;
}

.status-draft {
    background: #6c757d;
    color: white;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-approved {
    background: #28a745;
    color: white;
}

.status-rejected {
    background: #dc3545;
    color: white;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: bold;
}

.activity-status .time-info {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: normal;
}

.suggestion-item-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-left: 8px;
}

/* 活动状态样式 */
.status-upcoming {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-active {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-ended {
    background: linear-gradient(135deg, #f44336, #ef5350);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-draft {
    background: linear-gradient(135deg, #9e9e9e, #bdbdbd);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

/* 活动状态中的时间信息 */
.activity-status .time-info {
    font-size: 0.7rem;
    opacity: 0.9;
    margin-top: 2px;
    font-weight: normal;
}

/* 通知样式 */
.upcoming-notice .alert {
    background: linear-gradient(135deg, #fff3e0, #ffecb3);
    border-left: 4px solid #ff9800;
}

.ended-notice .alert {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border-left: 4px solid #f44336;
}

/* 阶段标签 */
.phase-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 5px;
}

.phase-recommendation {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.phase-submission {
    background: #e8f5e9;
    color: #388e3c;
    border: 1px solid #c8e6c9;
}

.phase-ended {
    background: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

/* 音频预览相关样式 */
.audio-preview-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
}

    .audio-preview-container audio {
        border-radius: 4px;
        background: white;
    }

/* 链接复制按钮样式 */
.copy-link-btn, .audio-preview-btn {
    transition: all 0.3s ease;
}

    .copy-link-btn:hover {
        background-color: #e3f2fd;
        border-color: #2196F3;
    }

    .audio-preview-btn:hover {
        background-color: #e3f2fd;
        border-color: #2196F3;
    }

/* 管理页面样式 */
.admin-suggestion-card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

    .admin-suggestion-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        border-color: #bdbdbd;
    }

.meta-item {
    margin-bottom: 10px;
}

    .meta-item strong {
        display: block;
        margin-bottom: 5px;
        color: #555;
    }

/* 音频预览模态框 */
#audioPreviewModal .modal-dialog {
    max-width: 500px;
}

#audioPreviewModal audio {
    outline: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .suggestion-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-item {
        margin-bottom: 5px;
    }
}

/* 管理推荐卡片样式修复 */
.admin-suggestion-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

    .admin-suggestion-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transform: translateY(-2px);
    }

.suggestion-card-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.suggestion-card-body {
    padding: 16px;
}

/* 卡片标题区域 */
.suggestion-card-header h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.suggestion-card-header .artist {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 状态徽章 */
.admin-suggestion-card .badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* 描述区域 */
.description-section {
    margin-bottom: 15px;
}

    .description-section p {
        margin: 0;
        color: #555;
        font-size: 14px;
        line-height: 1.5;
        max-height: 60px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
    }

/* 资源区域 */
.resources-section {
    margin-bottom: 15px;
}

.resource-item {
    margin-bottom: 15px;
}

    .resource-item:last-child {
        margin-bottom: 0;
    }

.resource-title {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

    .resource-title i {
        color: #666;
        margin-right: 8px;
    }

/* 链接输入框样式 */
.external-link-item input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #f8f9fa;
    min-width: 0; /* 防止flex布局溢出 */
}

/* 元信息区域 */
.suggestion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #555;
}

    .meta-item i {
        color: #666;
    }

/* 操作按钮区域 */
.suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .suggestion-actions .btn {
        flex: 1;
        min-width: 80px;
        white-space: nowrap;
        padding: 6px 8px;
        font-size: 13px;
    }

        .suggestion-actions .btn i {
            margin-right: 4px;
        }

/* 响应式调整 */
@media (max-width: 768px) {
    .suggestions-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-suggestion-card {
        margin-bottom: 15px;
    }

    .suggestion-actions {
        flex-direction: column;
    }

        .suggestion-actions .btn {
            width: 100%;
            min-width: 0 !important;
        }

    .suggestion-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .suggestion-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .suggestion-card-header .badge {
            margin-top: 8px;
            margin-left: 0;
        }

    .external-link-item .link-controls {
        flex-direction: column;
        gap: 5px;
    }

    .external-link-item input[type="text"] {
        width: 100%;
    }
}

/* 公告卡片样式 */
.announcements-section {
    margin: 40px 0;
}

.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.announcement-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .announcement-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .announcement-card.pinned {
        border-left: 4px solid var(--accent-color);
    }

.announcement-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.announcement-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

    .announcement-title-section h4 {
        font-size: 1.1rem;
        margin: 0;
        flex: 1;
        line-height: 1.4;
        font-weight: 600;
    }

.announcement-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    opacity: 0.9;
    flex-wrap: wrap;
}

    .announcement-meta span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .announcement-meta i {
        font-size: 0.9rem;
    }

.announcement-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.announcement-content {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.announcement-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-color);
}

.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pinned {
    background: var(--accent-color);
    color: white;
    margin-right: 8px;
}

.badge-success {
    background: var(--success-color);
    color: white;
}

.badge-warning {
    background: var(--warning-color);
    color: var(--dark-color);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .announcements-grid {
        grid-template-columns: 1fr;
    }

    .announcement-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .announcement-meta {
        flex-direction: column;
        gap: 5px;
    }

    .announcement-actions {
        flex-direction: column;
    }

        .announcement-actions .btn {
            width: 100%;
        }
}
