/* public/new-style.css - 现代简约风格 */

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

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #f97316;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #06b6d4;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    --border-radius: 12px;
    --box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    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: white;
    color: var(--dark-color);
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 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: var(--dark-color);
}

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

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

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

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

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 10px 20px;
    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;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

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

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

/* 用户中心弹窗 */
.user-center {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 32px 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: 24px;
}

.user-center-content h3 {
    margin: 0 0 24px;
    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: 24px;
    gap: 8px;
}

.user-center-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    margin-bottom: -2px;
    font-size: 0.95rem;
}

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

.user-center-tab:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

/* 响应式调整 */
@media (max-width: 768px) {
    .user-center {
        width: 300px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .user-center {
        width: 280px;
        right: -40px;
    }
    
    .user-center-content {
        padding: 20px;
    }
}

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

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    border: 2px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.user-avatar i {
    color: var(--primary-color);
}

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

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

.username {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
}

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

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    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: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    background: var(--primary-color);
    color: white;
    font-family: inherit;
    line-height: 1.5;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.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: #475569;
}

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

.btn-success:hover {
    background: #059669;
}

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

.btn-danger:hover {
    background: #dc2626;
}

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

.btn-warning:hover {
    background: #d97706;
}

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

.btn-info:hover {
    background: #0e7490;
}

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

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

.btn-block {
    width: 100%;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* 主要内容区域 */
.main-content {
    flex: 1;
    padding: 40px 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, #3b82f6 0%, #8b5cf6 100%);
    border-radius: var(--border-radius);
    padding: 60px;
    margin-bottom: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.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="1" fill="white" opacity="0.15"/></svg>');
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0 auto 32px;
    line-height: 1.7;
    max-width: 600px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    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(-8px);
}

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

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

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

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

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

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

.section-title i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

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

.view-all:hover {
    text-decoration: underline;
    transform: translateX(4px);
}

/* 谱面卡片网格 */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin: 32px 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%;
    position: relative;
}

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

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

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

.chart-difficulty {
    padding: 6px 16px;
    border-radius: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-color);
    color: white;
    letter-spacing: 0.5px;
    white-space: nowrap;
    align-self: flex-start;
}

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

.chart-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    flex-wrap: wrap;
}

.chart-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-color);
    padding: 8px 14px;
    border-radius: 16px;
    transition: var(--transition);
}

.chart-meta span:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

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

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

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

.chart-description {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    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: 8px;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

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

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

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

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    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 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

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

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 8px;
    line-height: 1.4;
}

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

.form-select {
    padding: 12px 18px;
    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;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

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

.file-upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.02);
    transform: translateY(-2px);
}

.file-upload-area.highlight {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: var(--secondary-color);
}

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

.file-upload-area:hover .file-preview i {
    transform: scale(1.1);
}

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

.file-types {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 8px;
}

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

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

.file-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

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

/* 上传者信息 */
.uploader-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius);
    margin: 28px 0;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: var(--transition);
}

.uploader-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.1);
}

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

.uploader-details h4 {
    margin-bottom: 6px;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.uploader-notice {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.form-actions {
    display: flex;
    gap: 16px;
    margin: 32px 0;
}

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

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

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

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

.terms-link:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* 搜索框 */
.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 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

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

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

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

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

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

.pagination button,
.pagination span {
    min-width: 44px;
    height: 44px;
    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;
    font-weight: 500;
}

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

.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(4px);
}

.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 24px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
}

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

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

.modal-content {
    padding: 0;
}

.modal-header {
    padding: 24px;
    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;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

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

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    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) scale(1.1);
}

.close-btn i {
    margin: 0;
}

.modal-body {
    padding: 24px;
}

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

.auth-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
    margin-bottom: -2px;
    font-size: 1rem;
}

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

.auth-tab:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

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

.footer-section h3 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

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

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

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

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

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

.footer-section ul li a:hover {
    color: white;
    padding-left: 8px;
    transform: translateX(4px);
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .main-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 40px 24px;
    }
    
    .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: 24px;
    }
    
    .upload-form-container {
        padding: 32px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 8px 16px;
        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.6rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all {
        margin-left: 0;
    }
    
    .modal-dialog {
        margin: 16px;
    }
    
    .upload-form-container {
        padding: 24px;
    }
}

/* 用户中心页面样式 */
.user-center-page {
    padding: 30px 0;
}

.user-center-container {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.user-center-sidebar {
    flex: 0 0 300px;
}

.user-profile-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-avatar i {
    font-size: 48px;
    color: white;
}

.user-profile-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
}

.user-email {
    color: var(--secondary-color);
    margin: 0 0 20px;
    font-size: 14px;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--gray-color);
    padding-top: 20px;
    margin-top: 20px;
}

.user-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--secondary-color);
}

.user-center-nav {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px 0;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-center-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-center-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
    font-weight: 500;
}

.user-center-nav-item:hover {
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.user-center-nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.user-center-nav-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.user-center-content {
    flex: 1;
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tab-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-color);
}

.tab-header h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-header p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 14px;
}

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

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

/* 头像上传区域 */
.avatar-upload {
    text-align: center;
}

.current-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.current-avatar i {
    font-size: 64px;
    color: white;
}

.avatar-upload-area {
    max-width: 400px;
    margin: 0 auto 30px;
}

/* 我的谱面样式 */
.my-charts-container {
    margin-top: 20px;
}

/* 设置页面样式 */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.setting-group {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-color);
}

.setting-group h4 {
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-color);
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: var(--dark-color);
}

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

.danger-zone {
    border: 1px solid var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.danger-warning {
    color: var(--danger-color);
    font-size: 14px;
    margin: 0 0 20px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 4px;
    line-height: 1.4;
}

/* 响应式设计 - 用户中心 */
@media (max-width: 992px) {
    .user-center-container {
        flex-direction: column;
    }

    .user-center-sidebar {
        flex: 1;
    }

    .user-center-nav {
        margin-bottom: 30px;
    }

    .user-center-nav ul {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 0 20px;
        scrollbar-width: thin;
    }

    .user-center-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 15px;
    }

    .user-center-nav-item.active {
        border-left: none;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .user-center-page {
        padding: 20px 0;
    }

    .user-center-container {
        gap: 20px;
        margin-top: 20px;
    }

    .user-profile-card {
        padding: 20px;
    }

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

    .tab-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .user-profile-avatar {
        width: 100px;
        height: 100px;
    }

    .current-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .user-profile-card h3 {
        font-size: 18px;
    }

    .stat-value {
        font-size: 20px;
    }

    .tab-header h3 {
        font-size: 18px;
    }

    .setting-group {
        padding: 16px;
    }
}