/* ============================================================
 * profile.css — 个人中心样式（多标签页）
 * ============================================================ */

.forum-profile-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
    background: rgba(22, 20, 17, 0.98);
    border: 1px solid rgba(224, 192, 96, 0.08);
    border-radius: 2px;
    margin-bottom: 2px;
}

.forum-profile-avatar {
    flex-shrink: 0;
    margin-top: 4px;
}

.forum-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(224, 192, 96, 0.15);
}

.forum-profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(224, 192, 96, 0.08);
    border: 2px solid rgba(224, 192, 96, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'VT323', monospace;
    font-size: 2.64rem;
    color: #e0c060;
}

.forum-profile-details {
    flex: 1;
    min-width: 0;
}

.forum-profile-details h2 {
    font-family: 'VT323', monospace;
    font-size: 1.56rem;
    color: #e0c060;
    margin: 0 0 4px;
}

.forum-profile-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.forum-profile-name-row h2 {
    margin-bottom: 0;
}

.forum-profile-signature {
    font-family: 'VT323', monospace;
    font-size: 0.98rem;
    color: rgba(184, 176, 160, 0.5);
    margin-bottom: 8px;
    font-style: italic;
}

.forum-profile-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: 'VT323', monospace;
    font-size: 1.02rem;
    color: rgba(184, 176, 160, 0.6);
}

.forum-profile-emerald {
    color: #7cfc00;
}

@media (max-width: 640px) {
    .forum-profile-card {
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }

    .forum-profile-avatar img,
    .forum-profile-avatar-placeholder {
        width: 60px;
        height: 60px;
    }

    .forum-growth-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }
}

/* Tab导航 */
.profile-tabs {
    display: flex;
    gap: 0;
    background: rgba(22, 20, 17, 0.98);
    border: 1px solid rgba(224, 192, 96, 0.08);
    border-radius: 2px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.profile-tab {
    padding: 12px 24px;
    font-family: 'VT323', monospace;
    font-size: 1.14rem;
    color: rgba(184, 176, 160, 0.5);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    user-select: none;
}

.profile-tab:hover {
    color: #e0d8c8;
    background: rgba(224, 192, 96, 0.03);
}

.profile-tab.active {
    color: #e0c060;
    border-bottom-color: #e0c060;
}

/* Tab面板 */
.profile-panel { display: none; }
.profile-panel.active { display: block; }

.forum-profile-section {
    margin-bottom: 20px;
}

.forum-profile-section-title {
    font-family: 'VT323', monospace;
    font-size: 1.32rem;
    color: #e0c060;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(224, 192, 96, 0.1);
}

/* 钱包 */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-family: 'VT323', monospace;
}

.wallet-balance-label {
    font-size: 1.2rem;
    color: rgba(184, 176, 160, 0.6);
}

.wallet-balance-value {
    font-size: 2.16rem;
    color: #7cfc00;
}

.wallet-balance-unit {
    font-size: 1.08rem;
    color: rgba(124, 252, 0, 0.6);
}

/* 设置 Tab */
.profile-settings-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(224, 192, 96, 0.08);
}

.profile-settings-text {
    flex: 1;
    min-width: 0;
}

.profile-settings-label {
    font-family: 'VT323', monospace;
    font-size: 1.18rem;
    color: #e0d8c8;
    margin-bottom: 4px;
}

.profile-settings-hint {
    font-size: 0.92rem;
    color: rgba(184, 176, 160, 0.7);
    line-height: 1.5;
}

.profile-settings-saved-hint {
    margin-top: 12px;
    font-size: 0.92rem;
    color: rgba(124, 252, 0, 0.85);
    min-height: 1em;
}

/* 开关样式 */
.profile-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}

.profile-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(184, 176, 160, 0.25);
    border: 1px solid rgba(224, 192, 96, 0.15);
    border-radius: 24px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.profile-switch-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: #e0d8c8;
    border-radius: 50%;
    transition: transform 0.18s ease, background 0.18s ease;
}

.profile-switch input:checked + .profile-switch-slider {
    background: rgba(224, 192, 96, 0.4);
    border-color: #e0c060;
}

.profile-switch input:checked + .profile-switch-slider::before {
    transform: translateX(22px);
    background: #e0c060;
}

.profile-switch input:disabled + .profile-switch-slider {
    cursor: not-allowed;
    opacity: 0.6;
}
