/* ========== 个人资料页整体 ========== */
.profile-page {
    padding: 0;
}

.profile-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========== 顶部头像区 ========== */
.profile-header {
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.img-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.default-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
}

.btn-avatar {
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem;
}

.profile-username {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1rem 0 0 0;
    letter-spacing: -0.02em;
}

/* ========== 分区标题 ========== */
.profile-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.profile-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section-title i {
    color: #64748b;
    font-size: 1rem;
}

/* ========== 信息行网格 ========== */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.5rem;
}

@media (min-width: 576px) {
    .profile-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    .info-row-full {
        grid-column: 1 / -1;
    }
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.8125rem;
    color: #64748b;
    min-width: 5.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.info-label i {
    font-size: 0.9em;
    color: #94a3b8;
}

.info-value {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 500;
}

.info-value-brief {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: #334155;
}

.info-link {
    font-size: 0.8125rem;
    color: #0d6efd;
    text-decoration: none;
    margin-left: auto;
}

.info-link:hover {
    text-decoration: underline;
    color: #0a58ca;
}

.status-dot {
    font-size: 0.5rem;
    vertical-align: middle;
}

/* ========== 修改密码区域 ========== */
.change-password-box {
    grid-column: 1 / -1;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 320px;
}

.change-password-box .form-control {
    border-radius: 6px;
    border-color: #e2e8f0;
}

.change-password-box .btn {
    align-self: flex-start;
}

#avatar-upload {
    display: none;
}
