/* 用户资料页面样式 - 红色主题 */
.user-profile-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 80px 0;
    background: #F4F1EB;
    min-height: 100vh;
}

.container-max-width {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* 页面标题 */
.page-header {
    margin-bottom: 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #E21111;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #9A958D;
    font-weight: 500;
}

/* 表单容器 */
.profile-form-container {
    background: #fff;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 5px 20px rgba(226, 17, 17, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(226, 17, 17, 0.1);
}

/* 表单部分 */
.form-section {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E21111;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #E21111;
}

/* 表单组 */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.required {
    color: #E21111;
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #D7D2C9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #E21111;
    box-shadow: 0 0 0 3px rgba(226, 17, 17, 0.1);
}

.form-input.error {
    border-color: #E21111;
}

.form-hint {
    font-size: 0.875rem;
    color: #9A958D;
    margin-top: 5px;
}

.error-message {
    font-size: 0.875rem;
    color: #E21111;
    margin-top: 5px;
    min-height: 20px;
    font-weight: 500;
}

/* 按钮组 */
.form-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-primary {
    background: #E21111;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: #c50f0f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(226, 17, 17, 0.3);
}

.btn-primary:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #fff;
    color: #343434;
    border: 2px solid #E21111;
    border-radius: 50px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: #E21111;
    color: white;
    transform: translateY(-2px);
}

/* 信息卡片 */
.info-section {
    background: #fde8e8;
    border-radius: 15px;
    padding: 30px;
    border-left: 4px solid #E21111;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-icon {
    color: #E21111;
    font-size: 1.5rem;
    margin-top: 2px;
}

.info-content h4 {
    color: #E21111;
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.info-content p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid #E21111;
}

.loading-content .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E21111;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-content p {
    color: #333;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义弹窗样式 */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid #E21111;
}

.modal-header {
    background: #E21111;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 30px 20px;
    text-align: center;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal-icon.success {
    color: #27ae60;
}

.modal-icon.error {
    color: #E21111;
}

.modal-message {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-btn-primary {
    background: #E21111;
    color: white;
}

.modal-btn-primary:hover {
    background: #c50f0f;
    transform: translateY(-2px);
}

.modal-btn-secondary {
    background: #ecf0f1;
    color: #333;
}

.modal-btn-secondary:hover {
    background: #bdc3c7;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .user-profile-page {
        padding: 60px 0;
    }
    
    .profile-form-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .user-profile-page {
        padding: 40px 0;
    }
    
    .container-max-width {
        padding: 0 15px;
    }
    
    .profile-form-container {
        padding: 30px 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .info-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .profile-form-container {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .form-input {
        padding: 12px 15px;
    }
    
    .modal-body {
        padding: 20px 15px;
    }
    
    .modal-icon {
        font-size: 2.5rem;
    }
    
    .modal-message {
        font-size: 1rem;
    }
}



/* 电话号码输入组样式 */
.phone-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-prefix {
    background: #f8f9fa;
    border: 2px solid #D7D2C9;
    border-radius: 10px;
    padding: 15px 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.phone-separator {
    color: #9A958D;
    font-weight: 600;
    font-size: 1.1rem;
}

.phone-input {
    flex: 1;
    min-width: 0;
    padding: 15px 12px;
    border: 2px solid #D7D2C9;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.phone-input:focus {
    outline: none;
    border-color: #E21111;
    box-shadow: 0 0 0 3px rgba(226, 17, 17, 0.1);
}

.phone-input.error {
    border-color: #E21111;
}

/* 响应式设计 - 电话号码输入 */
@media (max-width: 768px) {
    .phone-input-group {
        gap: 5px;
    }
    
    .phone-prefix {
        padding: 12px 8px;
        min-width: 50px;
        font-size: 0.9rem;
    }
    
    .phone-input {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .phone-separator {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .phone-input-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .phone-prefix {
        order: 1;
        min-width: 80px;
    }
    
    .phone-separator:nth-child(2) {
        order: 2;
    }
    
    #mobilePart1 {
        order: 3;
        min-width: 60px;
    }
    
    .phone-separator:nth-child(4) {
        order: 4;
    }
    
    #mobilePart2 {
        order: 5;
        min-width: 60px;
    }
    
    .phone-separator:nth-child(6) {
        order: 6;
    }
    
    #mobilePart3 {
        order: 7;
        min-width: 40px;
    }
    
    .phone-separator:nth-child(8) {
        order: 8;
    }
    
    #mobilePart4 {
        order: 9;
        min-width: 40px;
    }
}



/* 文本域样式 */
.form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #D7D2C9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #E21111;
    box-shadow: 0 0 0 3px rgba(226, 17, 17, 0.1);
}

.form-textarea.error {
    border-color: #E21111;
}

/* 表单部分显示控制 */
.form-section.hidden {
    display: none;
}

/* 导航标签样式 */
.profile-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #eee;
}

.nav-tab {
    padding: 15px 30px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #9A958D;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-tab:hover {
    color: #E21111;
}

.nav-tab.active {
    color: #E21111;
    border-bottom-color: #E21111;
}