/* ========================================
   个人中心 - 简约现代风格 v2.0.5
   个人简介标题左对齐
   ======================================== */

/* 主容器优化 */
.profile-main {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 50px 30px;
}

.profile-container {
    max-width: 1000px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    align-items: stretch !important;
}

/* 顶部信息栏优化 */
.profile-sidebar {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 0 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    overflow: hidden !important;
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

/* 头像区域 */
.profile-avatar-box {
    background: linear-gradient(135deg, #F57F17 0%, #FF9800 100%) !important;
    padding: 45px 50px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.profile-avatar-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.profile-avatar-box img {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 4px solid rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 1 !important;
    transition: all 0.3s ease !important;
}

.profile-avatar-box img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
}

.profile-username {
    color: #fff !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    margin-top: 16px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
    z-index: 1 !important;
    letter-spacing: 0.3px !important;
}

.profile-phone,
.profile-register-time {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 13px !important;
    margin-top: 5px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 导航菜单 */
.profile-nav {
    padding: 30px 40px !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    background: #fff !important;
}

.profile-tab-btn {
    flex: 0 0 auto !important;
    padding: 14px 28px !important;
    border: 2px solid #e9ecef !important;
    background: #fff !important;
    color: #666 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 25px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    width: 250px !important;
    white-space: nowrap !important;
}

.profile-tab-btn::before {
    display: none !important;
}

.profile-tab-btn:hover {
    background: #fafafa !important;
    color: #F57F17 !important;
    border-color: #F57F17 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(245, 127, 23, 0.15) !important;
}

.profile-tab-btn.active {
    background: linear-gradient(135deg, #F57F17, #FF9800) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(245, 127, 23, 0.3) !important;
}

/* 右侧内容区 */
.profile-content {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 50px 60px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    min-height: 650px !important;
    position: relative !important;
}

.profile-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #F57F17, #FF9800, #F57F17);
    border-radius: 24px 24px 0 0;
}

/* Tab内容 */
.profile-tab-content {
    display: none !important;
    animation: fadeIn 0.4s ease-out !important;
}

.profile-tab-content.active {
    display: block !important;
}

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

/* 表单优化 */
.profile-content form {
    max-width: 100% !important;
    margin: 0 !important;
}

.profile-content form > div {
    margin-bottom: 0 !important;
    gap: 50px !important;
}

/* 表单字段容器 */
.profile-content form > div > div {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

.profile-content form > div > div > div {
    margin-bottom: 0 !important;
}

/* 表单字段组 */
.profile-content label {
    display: block !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-bottom: 12px !important;
    font-size: 15px !important;
    letter-spacing: 0.3px !important;
    text-align: left !important;
}

/* 右侧表单区域的label左对齐 */
.profile-content form > div > div:last-child label {
    text-align: left !important;
    width: 100% !important;
    color: #222 !important;
}

/* 左侧头像区域的label - 确保颜色可见 */
.profile-content form > div > div:first-child label {
    color: #222 !important;
}

/* 超高优先级 - 强制所有label为深色 */
.profile-main .profile-content label,
.profile-main .profile-content form label,
.profile-main .profile-content form > div label,
.profile-main .profile-content form > div > div label {
    color: #222 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 覆盖 yellow-theme-global.css 的 .active 白色文字 */
.profile-tab-content.active,
.profile-tab-content.active *,
.profile-tab-content.active label,
.profile-tab-content.active h4,
.profile-tab-content.active p,
.profile-tab-content.active span,
.profile-tab-content.active div {
    color: inherit !important;
}

/* 确保编辑资料区域的所有文字为深色 */
.profile-tab-content.active label {
    color: #222 !important;
}

.profile-tab-content.active h4 {
    color: #222 !important;
}

.profile-content input[type="text"],
.profile-content input[type="password"],
.profile-content input[type="file"],
.profile-content textarea {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    background: #fafafa !important;
    color: #333 !important;
    box-sizing: border-box !important;
}

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

.profile-content textarea {
    min-height: 120px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

/* 头像上传区域 */
.profile-content form > div > div:first-child {
    max-width: 200px !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding-left: 25px !important;
}

.profile-content form > div > div:first-child label {
    text-align: center !important;
    width: 100% !important;
}

/* 头像上传虚线框 */
.profile-content .avatar-upload-box {
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto 15px !important;
    border: 2px dashed #F57F17 !important;
    border-radius: 16px !important;
    background: #fafafa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.profile-content .avatar-upload-box:hover {
    border-color: #FF9800 !important;
    box-shadow: 0 6px 20px rgba(245, 127, 23, 0.15) !important;
}

.profile-content .avatar-upload-box img {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 5px solid #f5f5f5 !important;
    object-fit: cover !important;
}

.profile-content img[alt="头像预览"] {
    width: 150px !important;
    height: 150px !important;
    border-radius: 50% !important;
    border: 5px solid #f5f5f5 !important;
    object-fit: cover !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    margin: 0 auto !important;
    display: block !important;
    aspect-ratio: 1/1 !important;
}

.profile-content img[alt="头像预览"]:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 16px 40px rgba(245, 127, 23, 0.25) !important;
    border-color: #F57F17 !important;
}

.profile-content input[type="file"] {
    text-align: center !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
}

/* 按钮优化 */
.profile-content form > div > div:last-child {
    flex: 1 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    padding-top: 30px !important;
}

.profile-content button[type="submit"],
.profile-content button[type="button"] {
    padding: 16px 40px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}

.profile-content button[type="submit"] {
    background: linear-gradient(135deg, #F57F17 0%, #FF9800 100%) !important;
    color: white !important;
    min-width: 140px !important;
}

.profile-content button[type="submit"]:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(245, 127, 23, 0.4) !important;
}

.profile-content button[type="button"] {
    background: #f8f9fa !important;
    color: #666 !important;
    margin-left: 0 !important;
    border: 2px solid #e9ecef !important;
    box-shadow: none !important;
}

.profile-content button[type="button"]:hover {
    background: #e9ecef !important;
    color: #333 !important;
    border-color: #dee2e6 !important;
}

/* 账号安全卡片 */
.security-item {
    padding: 25px !important;
    margin-bottom: 20px !important;
    border: 2px solid #f0f0f0 !important;
    border-radius: 16px !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
}

.security-item:hover {
    border-color: rgba(245, 127, 23, 0.3) !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(245, 127, 23, 0.1) !important;
    transform: translateY(-2px) !important;
}

.security-item h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.security-item h3 i {
    color: #F57F17 !important;
    font-size: 18px !important;
}

.security-item p {
    color: #888 !important;
    font-size: 14px !important;
    margin-bottom: 15px !important;
    line-height: 1.6 !important;
}

.security-item button {
    padding: 10px 24px !important;
    background: linear-gradient(135deg, #F57F17, #FF9800) !important;
    color: white !important;
    border: none !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(245, 127, 23, 0.3) !important;
}

.security-item button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(245, 127, 23, 0.4) !important;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .profile-container {
        max-width: 900px !important;
    }
    
    .profile-content {
        padding: 45px 50px !important;
    }
}

@media (max-width: 992px) {
    .profile-main {
        padding: 40px 20px;
    }
    
    .profile-container {
        max-width: 100% !important;
        gap: 25px !important;
    }
    
    .profile-avatar-box {
        padding: 40px 30px !important;
    }
    
    .profile-avatar-box img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .profile-nav {
        padding: 25px 30px !important;
        gap: 15px !important;
    }
    
    .profile-tab-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 220px !important;
    }
    
    .profile-content {
        padding: 40px 35px !important;
    }
    
    .profile-content form > div {
        gap: 35px !important;
    }
}

@media (max-width: 768px) {
    .profile-main {
        padding: 30px 15px;
    }
    
    .profile-avatar-box {
        padding: 35px 25px !important;
    }
    
    .profile-avatar-box img {
        width: 95px !important;
        height: 95px !important;
    }
    
    .profile-username {
        font-size: 18px !important;
    }
    
    .profile-nav {
        padding: 20px 25px !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }
    
    .profile-tab-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
        width: 200px !important;
    }
    
    .profile-content {
        padding: 35px 25px !important;
        border-radius: 20px !important;
    }
    
    .profile-content form > div {
        gap: 25px !important;
    }
    
    .profile-content input[type="text"],
    .profile-content input[type="password"],
    .profile-content textarea {
        padding: 13px 17px !important;
        font-size: 14px !important;
    }
    
    .profile-content button[type="submit"],
    .profile-content button[type="button"] {
        padding: 14px 32px !important;
        font-size: 15px !important;
    }
    
    .security-item {
        padding: 22px !important;
    }
}

@media (max-width: 480px) {
    .profile-nav {
        padding: 20px 20px !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .profile-tab-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100% !important;
        min-width: auto !important;
    }
    
    .profile-content img[alt="头像预览"] {
        width: 100px !important;
        height: 100px !important;
        margin: 0 auto !important;
    }
    
    .profile-content form > div > div:first-child {
        padding-left: 15px !important;
    }
    
    .profile-content .avatar-upload-box {
        width: 130px !important;
        height: 130px !important;
        margin: 0 auto 12px !important;
    }
    
    .profile-content .avatar-upload-box img {
        width: 100px !important;
        height: 100px !important;
    }
    
    .profile-content form > div {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .profile-content button[type="button"] {
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}

/* 性能优化 */
.profile-sidebar,
.profile-content,
.security-item {
    will-change: transform;
}

.profile-avatar-box::before {
    will-change: transform, opacity;
}

/* 确保不与其他样式冲突 */
.profile-main *,
.profile-container *,
.profile-sidebar *,
.profile-content * {
    box-sizing: border-box;
}

/* 滚动条优化 */
.profile-content::-webkit-scrollbar {
    width: 6px;
}

.profile-content::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.profile-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #F57F17, #FF9800);
    border-radius: 10px;
}

.profile-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #E65100, #F57F17);
}

