/* 个人中心样式 */

/* 头部背景 */
.profile-header {
    position: relative;
    margin-bottom: 60px;
}

.profile-bg {
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-top: -50px;
}

.avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--gradient-secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.user-info h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.user-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.credit-score {
    background: white;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--success);
}

.score-label {
    font-size: 11px;
    color: var(--gray-500);
}

/* 资产卡片 */
.assets-card {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    margin: 20px 16px 0;
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.asset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.asset-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.asset-label {
    font-size: 12px;
    color: var(--gray-500);
}

.asset-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* 会员卡片 */
.member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    margin: 0 16px 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    color: white;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-icon {
    font-size: 32px;
}

.member-text h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.member-text p {
    font-size: 12px;
    opacity: 0.9;
}

.btn-member {
    padding: 8px 20px;
    background: white;
    color: #f97316;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-member:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

/* 菜单区域 */
.menu-section {
    padding: 0 16px;
}

.menu-group {
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
}

.menu-title {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-100);
}

.menu-list {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--gray-800);
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: var(--gray-50);
}

.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.menu-text {
    flex: 1;
    font-size: 15px;
}

.menu-badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 8px;
}

.menu-arrow {
    color: var(--gray-400);
    font-size: 14px;
}

/* 退出登录 */
.logout-section {
    padding: 20px 16px 100px;
    text-align: center;
}

.btn-logout {
    padding: 14px 40px;
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    color: var(--danger);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fef2f2;
    border-color: var(--danger);
}

/* 会员弹窗 */
.member-benefits {
    margin-bottom: 24px;
}

.member-benefits h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-800);
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.benefit-icon {
    font-size: 20px;
}

.benefit-text {
    font-size: 14px;
    color: var(--gray-700);
}

.member-plans {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-item {
    position: relative;
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.plan-item.active,
.plan-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.plan-item.recommended {
    border-color: var(--secondary);
    background: rgba(245, 158, 11, 0.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: var(--secondary);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.plan-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-800);
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--danger);
}

.plan-period {
    font-size: 13px;
    color: var(--gray-500);
}

.plan-save {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: var(--success);
    color: white;
    border-radius: 10px;
    font-size: 11px;
}

/* 充值弹窗 */
.recharge-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.amount-item {
    padding: 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.amount-item.active,
.amount-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.amount-item.custom {
    padding: 8px;
}

.amount-item.custom input {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.amount-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.recharge-methods h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-700);
}

.method-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.method-item.active,
.method-item:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.method-icon {
    font-size: 24px;
}

.method-name {
    font-size: 15px;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 380px) {
    .profile-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .avatar-section {
        flex-direction: column;
    }
    
    .assets-card {
        flex-direction: column;
        gap: 16px;
    }
    
    .asset-divider {
        width: 100%;
        height: 1px;
    }
    
    .recharge-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
}