/* ===== 个人中心样式 ===== */
.profile-header {
    margin-top: 70px;
    position: relative;
}

.profile-cover {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.profile-info {
    position: relative;
    margin-top: -80px;
    padding-bottom: 30px;
}

.profile-avatar {
    text-align: center;
    margin-bottom: 20px;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--dark-bg);
    object-fit: cover;
    margin-bottom: 15px;
}

.edit-avatar-btn {
    padding: 8px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-avatar-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.profile-details {
    text-align: center;
}

.profile-details h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.profile-details p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 标签页 ===== */
.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== 内容头部 ===== */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.content-header h3 {
    font-size: 24px;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 15px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== 历史记录列表 ===== */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    display: flex;
    gap: 20px;
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    transform: translateX(10px);
    border-color: var(--primary-color);
}

.history-image {
    width: 100px;
    height: 140px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-info {
    flex: 1;
}

.history-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.history-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.history-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.history-progress {
    margin-top: 10px;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.progress-bar-inline {
    height: 4px;
    background: var(--dark-bg);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

/* ===== 评论列表 ===== */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-comic {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action-btn {
    padding: 5px 12px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-action-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===== 设置表单 ===== */
.settings-form {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .profile-stats {
        gap: 20px;
    }
    
    .history-item {
        flex-direction: column;
    }
    
    .history-image {
        width: 100%;
        height: 200px;
    }
}

