/* ==================== 个人中心 · 样式 ==================== */

body {
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 导航栏 ---------- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: #333;
    transition: color .2s;
}

.nav-link:hover { color: #667eea; }

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    border-radius: 12px;
    padding: .5rem 0;
}

.dropdown-item {
    padding: .6rem 1.2rem;
    font-size: .92rem;
    border-radius: 8px;
}

.dropdown-item:hover { background: #f0f2ff; color: #667eea; }

/* ---------- 个人名片头部 ---------- */
.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px 0 32px;
    border-radius: 0 0 32px 32px;
    box-shadow: 0 8px 30px rgba(102, 126, 234, .25);
}

.avatar-xl {
    width: 104px;
    height: 104px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, .85);
}

#authBadge {
    font-size: .72rem;
    padding: .3rem .6rem;
    border-radius: 999px;
}

/* ---------- 左侧菜单 ---------- */
.nav-pills .nav-link {
    color: #4a5568;
    border-radius: 10px;
    padding: .7rem 1rem;
    text-align: left;
    font-size: .94rem;
    transition: all .18s;
}

.nav-pills .nav-link:hover { background: #f0f2ff; color: #667eea; }

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(102, 126, 234, .35);
}

.nav-pills .nav-link.text-danger:hover { background: #fdeaea; }

/* ---------- 统计卡片 ---------- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
    transition: transform .25s, box-shadow .25s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: var(--sc, #667eea);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .1);
}

.stat-card i {
    font-size: 1.4rem;
    color: var(--sc, #667eea);
    margin-bottom: 6px;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.2;
    color: #2d3748;
}

.stat-label {
    font-size: .82rem;
    color: #8a94a6;
    margin-top: 2px;
}

/* ---------- 账号信息列表 ---------- */
.info-list .col {
    padding: 10px 14px;
    border-bottom: 1px dashed #edf0f5;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.info-key { color: #8a94a6; font-size: .88rem; white-space: nowrap; }

.info-val { color: #2d3748; font-weight: 500; font-size: .9rem; text-align: right; word-break: break-all; }

/* ---------- 卡片 ---------- */
.card {
    border-radius: 14px;
}

.card-header h6 { color: #2d3748; }

/* ---------- 表单 ---------- */
.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 .2rem rgba(102, 126, 234, .15);
}

.form-label {
    font-size: .87rem;
    color: #4a5568;
    font-weight: 500;
}

/* ---------- 第三方账号项 ---------- */
.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #edf0f5;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: border-color .2s, box-shadow .2s;
}

.social-item:hover {
    border-color: #c9d2ff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, .1);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.social-icon.QQ { background: #12b7f5; }
.social-icon.WECHAT { background: #07c160; }
.social-icon.DOUYIN { background: #161823; }
.social-icon.KUAISHOU { background: #ff7a00; }
.social-icon.DEFAULT { background: #8a94a6; }

.social-name { font-weight: 600; font-size: .92rem; color: #2d3748; }
.social-meta { font-size: .78rem; color: #8a94a6; }

/* ---------- 表格 ---------- */
.table th {
    font-size: .85rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.table td { font-size: .87rem; color: #4a5568; }

.badge-soft-success {
    background: #e6f7ee;
    color: #0f9d58;
    padding: .35em .7em;
    border-radius: 999px;
    font-weight: 500;
}

.badge-soft-danger {
    background: #fdeaea;
    color: #d93025;
    padding: .35em .7em;
    border-radius: 999px;
    font-weight: 500;
}

/* ---------- 响应式 ---------- */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1rem;
    }
    .profile-header { padding: 28px 0 24px; border-radius: 0 0 24px 24px; }
    .avatar-xl { width: 84px; height: 84px; }
}

@media (max-width: 575.98px) {
    .stat-value { font-size: 1.4rem; }
    .info-list .col { padding: 8px 10px; }
}
