/* ===========================
   Profile Page
   =========================== */

.profile-page {
    padding: 3rem 0;
    min-height: calc(100vh - 300px);
    background: var(--bg-color);
}
.profile-content { max-width: 960px; margin: 0 auto; }

/* 用户卡片 */
.user-card {
    background: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #0ea5e9 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    display: flex; align-items: center; gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}
.user-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.user-avatar-large {
    width: 96px; height: 96px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-inverse);
    font-size: 2.5rem; font-weight: 800;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
}
.user-info { flex: 1; position: relative; }
.user-info h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; }
.user-info p { color: rgba(255,255,255,0.75); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.user-stats { display: flex; gap: 2rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-value {
    font-size: 1.75rem; font-weight: 800;
    color: var(--text-inverse);
    line-height: 1.2;
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 0.8125rem; }

/* 标签页 */
.profile-tabs {
    background: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 0 2rem;
    display: flex; gap: 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}
.tab-btn {
    padding: 1rem 1.5rem;
    background: none; border: none;
    cursor: pointer; font-size: 0.9375rem; font-weight: 600;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-fast);
}
.tab-btn:hover { color: var(--primary-color); }
.tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }

/* 标签页内容 */
.tab-content {
    background: var(--bg-white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 2rem;
    display: none;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-top: none;
}
.tab-content.active { display: block; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}
.section-header h3 { font-size: 1.25rem; color: var(--text-color); font-weight: 700; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* 内容列表 */
.content-list { display: flex; flex-direction: column; gap: 0.75rem; }
.content-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.content-item:hover { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }

.content-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.content-item-title { font-size: 1.0625rem; font-weight: 600; }
.content-item-title a { color: var(--primary-color); }
.content-item-title a:hover { text-decoration: underline; }
.content-item-meta { font-size: 0.8125rem; color: var(--text-light); }
.content-item-body { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.content-item-footer {
    display: flex; gap: 1.25rem;
    padding-top: 0.75rem; border-top: 1px solid var(--border-light);
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem; font-weight: 600;
}
.status-pending { background: var(--warning-light); color: #92400e; }
.status-approved { background: var(--success-light); color: #065f46; }
.status-rejected { background: var(--danger-light); color: #991b1b; }

/* 账户设置 */
.settings-card { max-width: 560px; }
.settings-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; font-weight: 700; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.375rem; font-weight: 600; font-size: 0.9375rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group input[readonly] { background: var(--bg-color); cursor: not-allowed; color: var(--text-secondary); }

/* 危险区域 */
.danger-zone {
    margin-top: 2.5rem; padding: 1.5rem;
    background: var(--danger-light);
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
}
.danger-zone h4 { color: #991b1b; margin-bottom: 0.5rem; font-weight: 700; }
.danger-zone p { color: #7f1d1d; margin-bottom: 1.25rem; font-size: 0.9375rem; }
.btn-danger {
    background: var(--danger-color); color: var(--text-inverse);
    border: none; padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm); font-size: 0.9375rem;
    font-weight: 600; cursor: pointer; transition: all var(--transition-fast);
}
.btn-danger:hover { background: #dc2626; }

/* 响应式 */
@media (max-width: 768px) {
    .profile-content { padding: 0 0.5rem; }
    .user-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1.5rem; }
    .user-avatar-large { width: 80px; height: 80px; font-size: 2rem; }
    .user-info h2 { font-size: 1.375rem; }
    .user-stats { justify-content: center; }
    .profile-tabs { padding: 0 1rem; gap: 0; overflow-x: auto; }
    .tab-btn { padding: 0.75rem 1rem; font-size: 0.875rem; white-space: nowrap; }
    .section-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
    .settings-card { max-width: 100%; }
}
@media (max-width: 480px) {
    .stat-value { font-size: 1.375rem; }
}
