/* 📝 个人中心页面按钮修复 */

/* ============================================
   侧边栏导航按钮 - 修复选中状态文字不可见
   ============================================ */

.profile-tab-btn {
    width: 80% !important;
    padding: 12px 20px !important;
    margin: 8px 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    font-weight: 500 !important;
}

/* 悬停状态 */
.profile-tab-btn:hover {
    background: rgba(245, 127, 23, 0.1) !important;
    color: #F57F17 !important;
    font-weight: 600 !important;
    transform: translateX(5px) !important;
}

/* 选中状态 - 强制白色文字 */
.profile-tab-btn.active {
    background: linear-gradient(135deg, #F57F17, #E65100) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 
        0 4px 12px rgba(245, 127, 23, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px) !important;
}

/* 选中状态悬停 */
.profile-tab-btn.active:hover {
    background: linear-gradient(135deg, #E65100, #D84315) !important;
    color: #FFFFFF !important;
    box-shadow: 
        0 6px 16px rgba(230, 81, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   保存资料按钮增强
   ============================================ */

#editProfileForm button[type="submit"],
#passwordForm button[type="submit"],
.profile-content button[type="submit"],
.profile-save-btn {
    padding: 12px 40px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #F57F17, #E65100) !important;
    border: none !important;
    border-radius: 50px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

#editProfileForm button[type="submit"]:hover,
#passwordForm button[type="submit"]:hover,
.profile-content button[type="submit"]:hover,
.profile-save-btn:hover {
    background: linear-gradient(135deg, #E65100, #D84315) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(230, 81, 0, 0.4) !important;
}

/* ============================================
   表单输入框优化
   ============================================ */

.profile-content input[type="text"],
.profile-content input[type="password"],
.profile-content input[type="email"],
.profile-content input[type="tel"],
.profile-content textarea {
    border: 2px solid rgba(245, 127, 23, 0.2) !important;
    border-radius: 8px !important;
    padding: 10px 15px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
}

.profile-content input[type="text"]:focus,
.profile-content input[type="password"]:focus,
.profile-content input[type="email"]:focus,
.profile-content input[type="tel"]:focus,
.profile-content textarea:focus {
    border-color: #F57F17 !important;
    box-shadow: 0 0 0 3px rgba(245, 127, 23, 0.1) !important;
    outline: none !important;
}

/* ============================================
   头像上传按钮
   ============================================ */

.avatar-upload-btn,
.upload-avatar-btn {
    padding: 8px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #F57F17 !important;
    background: #FFFFFF !important;
    border: 2px solid #F57F17 !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.avatar-upload-btn:hover,
.upload-avatar-btn:hover {
    color: #FFFFFF !important;
    background: linear-gradient(135deg, #F57F17, #E65100) !important;
    border-color: #F57F17 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 127, 23, 0.3) !important;
}

/* ============================================
   标题样式优化
   ============================================ */

.profile-content h2,
.profile-tab-content h2 {
    color: #2d2416 !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid rgba(245, 127, 23, 0.2) !important;
}

/* ============================================
   标签文字优化
   ============================================ */

.profile-content label {
    color: #555 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* ============================================
   提示文字
   ============================================ */

.profile-content .hint,
.profile-content .help-text,
.profile-content small {
    color: #999 !important;
    font-size: 0.9rem !important;
}

/* ============================================
   响应式优化
   ============================================ */

@media (max-width: 767px) {
    .profile-tab-btn {
        width: 100% !important;
        padding: 10px 15px !important;
    }
    
    .profile-tab-btn.active,
    .profile-tab-btn:hover {
        transform: none !important;
    }
    
    #editProfileForm button[type="submit"],
    #passwordForm button[type="submit"],
    .profile-save-btn {
        width: 100% !important;
        padding: 12px 30px !important;
    }
}

/* ============================================
   确保所有按钮文字可见
   ============================================ */

.profile-tab-btn *,
.profile-save-btn *,
button[type="submit"] * {
    color: inherit !important;
}

/* 选中状态的文字必须是白色 */
.profile-tab-btn.active * {
    color: #FFFFFF !important;
}

