/* 用户中心样式 - 现代简洁风格 */

/* 页面容器 */
.user-center-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* 用户资料卡片 */
.user-profile-card {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 50%, #2dd4bf 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(15, 118, 110, 0.2);
    position: relative;
    overflow: hidden;
}

.user-profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.user-profile-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    background: #fff;
}

.profile-info {
    flex: 1;
    color: #fff;
}

.profile-name {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-meta {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* 用户等级徽章 */
.user-level-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 8px;
}

.user-level-badge.vip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.user-level-badge.normal {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-logout {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.profile-logout:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 区块卡片 */
.section-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.section-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg, #fafafa 0%, #fff 100%);
}

.section-header i {
    font-size: 18px;
    color: #14b8a6;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.section-body {
    padding: 24px;
}

/* 资源配额网格 */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #14b8a6;
}

.resource-item i {
    font-size: 20px;
    color: #14b8a6;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 184, 166, 0.1);
    border-radius: 10px;
}

.resource-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resource-label {
    font-size: 12px;
    color: #64748b;
}

.resource-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.resource-item .unlimited {
    color: #14b8a6;
    font-weight: 600;
}

/* 进度条 */
.progress-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.progress-item {
    margin-bottom: 16px;
}

.progress-item:last-child {
    margin-bottom: 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.progress-label span:first-child {
    color: #64748b;
}

.progress-label span:last-child {
    color: #14b8a6;
    font-weight: 600;
}

.progress-bar-custom {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-custom .bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-storage {
    background: linear-gradient(90deg, #14b8a6 0%, #2dd4bf 100%);
}

.bar-traffic {
    background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

/* 卡密兑换表单 */
.redeem-form {
    display: flex;
    gap: 12px;
}

.redeem-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.redeem-form input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.redeem-form button {
    padding: 12px 28px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.redeem-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

.redeem-hint {
    margin: 12px 0 0 0;
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.redeem-hint i {
    color: #14b8a6;
}

/* 表单样式 */
.form-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-card label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-card input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
    background: #fff;
}

.form-card input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.form-card input[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.form-card-full {
    grid-column: 1 / -1;
}

.help-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.form-actions {
    margin-top: 8px;
}

.btn-save {
    padding: 12px 32px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* 安全选项卡 */
.security-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    padding: 4px;
    background: #f1f5f9;
    border-radius: 10px;
}

.security-tabs button {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.security-tabs button:hover {
    color: #14b8a6;
}

.security-tabs button.active {
    background: #fff;
    color: #14b8a6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.security-tab-content {
    display: none;
}

.security-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 密码表单 */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.btn-submit {
    padding: 12px 32px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.4);
}

/* 社交账号绑定 */
.social-bind-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.social-item:hover {
    border-color: #14b8a6;
    background: #f0fdfa;
}

.social-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.social-icon.qq {
    background: linear-gradient(135deg, #12b7f5 0%, #0099ff 100%);
}

.social-icon.wx {
    background: linear-gradient(135deg, #07c160 0%, #05a350 100%);
}

.social-name {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
}

.social-status {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

.social-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn.bind {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
}

.social-btn.unbind {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn.bind:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

/* 邮箱绑定 */
.email-bind-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.current-email {
    padding: 16px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
    border-radius: 12px;
    border: 1px solid #99f6e4;
    text-align: center;
}

.email-text {
    font-size: 16px;
    font-weight: 600;
    color: #0f766e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.email-text i {
    color: #14b8a6;
}

.email-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 6px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.input-group input.code-input {
    flex: 0 0 120px;
}

.btn-send-code {
    padding: 12px 16px;
    background: #f1f5f9;
    color: #14b8a6;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-send-code:hover:not(:disabled) {
    background: #e0f2fe;
    border-color: #14b8a6;
}

.btn-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 警告提示 */
.alert-warning {
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    color: #92400e;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 响应式设计 */
@media (max-width: 991px) {
    .user-profile-card {
        padding: 24px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-name {
        font-size: 22px;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .user-center-page {
        padding: 0 5px;
    }
    
    .user-profile-card {
        padding: 20px;
        border-radius: 12px;
    }
    
    .profile-header {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-meta {
        font-size: 12px;
    }
    
    .profile-logout {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .section-body {
        padding: 16px;
    }
    
    .section-header {
        padding: 14px 16px;
    }
    
    .redeem-form {
        flex-direction: column;
    }
    
    .redeem-form button {
        width: 100%;
    }
    
    .security-tabs {
        flex-wrap: wrap;
    }
    
    .security-tabs button {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group input.code-input {
        flex: 1;
    }
    
    .social-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .social-info {
        flex-direction: column;
    }
    
    .social-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-header {
        text-align: center;
        justify-content: center;
    }
    
    .profile-info {
        width: 100%;
        text-align: center;
    }
    
    .profile-logout {
        width: 100%;
        text-align: center;
    }
    
    .resource-item {
        padding: 12px;
    }
    
    .resource-item i {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .resource-item .value {
        font-size: 14px;
    }
}
