/* 用户信息页面样式 - 表单风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.5;
}

/* 顶部导航栏 */
.top-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    position: relative;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #f0f0f0;
}

.page-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.feedback-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #1890ff;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.feedback-btn:hover {
    background: #f0f8ff;
}

/* 主要内容区域 */
.main-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.profile-form {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-content {
    flex: 1;
}

.form-spacer {
    flex: 1;
    min-height: 40px;
}

/* 表单行 */
.form-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    min-height: 60px;
}

.form-row:last-child {
    border-bottom: none;
}

.form-label {
    width: 120px;
    font-size: 14px;
    color: #666;
    flex-shrink: 0;
}

.form-value {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.value-text {
    font-size: 14px;
    color: #333;
}

/* 会员状态相关样式 */
.member-action {
    display: flex;
    align-items: center;
}

.upgrade-vip {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ff6b35;
    transition: all 0.2s ease;
}

.upgrade-vip:hover {
    background-color: #fff7e6;
    border-color: #f7931e;
}

.vip-icon {
    width: 16px;
    height: 16px;
}

.upgrade-text {
    font-size: 12px;
    color: #ff6b35;
    font-weight: 500;
}

.vip-info,
.remaining-info {
    font-size: 12px;
    color: #666;
}

.expiry-text,
.remaining-text {
    font-size: 12px;
    color: #666;
}

/* 头像行特殊样式 */
.avatar-row {
    padding: 20px;
}

.avatar-wrapper {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #e5e5e5;
    object-fit: cover;
}

.member-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.badge-text {
    font-size: 10px;
}

/* 操作按钮区域 */
.form-actions {
    padding: 20px;
    background: #fafafa;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 8px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    color: #333;
}

.btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.btn-primary {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background: #40a9ff;
    border-color: #40a9ff;
    color: white;
}

.btn-danger {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background: #ff7875;
    border-color: #ff7875;
    color: white;
}

/* 底部信息 */
.page-footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
}

.footer-content a {
    color: inherit;
    text-decoration: none;
}

/* 仅对服务协议和隐私政策添加链接样式 */
.footer-content a[href="#"], 
.footer-content a[onclick] {
    color: #1890ff;
}

.footer-content a[href="#"]:hover, 
.footer-content a[onclick]:hover {
    text-decoration: underline;
}

/* 备案号链接保持原有样式 */
.footer-content a[href^="https://beian.miit.gov.cn"] {
    color: inherit;
    text-decoration: none;
}

.separator {
    margin: 0 8px;
    color: #d9d9d9;
}

/* VIP会员特殊样式 */
.vip-status {
    color: #ff6b35 !important;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        margin: 10px auto;
        padding: 0 10px;
    }
    
    .header-container {
        padding: 12px 15px;
    }
    
    .form-row {
        padding: 12px 15px;
    }
    
    .avatar-row {
        padding: 15px;
    }
    
    .form-actions {
        padding: 15px;
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .form-label {
        width: 80px;
        font-size: 13px;
    }
    
    .value-text {
        font-size: 13px;
    }
    
    .page-title {
        font-size: 15px;
    }
    
    .feedback-btn {
        font-size: 13px;
        padding: 6px 8px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-form {
    animation: fadeIn 0.3s ease-out;
}

/* 悬停效果 */
.form-row:hover {
    background-color: #fafafa;
}

.user-avatar {
    cursor: default;
}

/* 意见反馈弹窗样式 */
.feedback-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.feedback-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-content {
    background: white;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.feedback-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.feedback-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

.feedback-close:hover {
    background: #f0f0f0;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feedback-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.feedback-input,
.feedback-textarea {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.feedback-input:focus,
.feedback-textarea:focus {
    outline: none;
    border-color: #1890ff;
}

.feedback-textarea {
    resize: vertical;
    min-height: 80px;
}

.feedback-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.feedback-btn {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feedback-btn-cancel {
    background: white;
    color: #333;
}

.feedback-btn-cancel:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.feedback-btn-submit {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.feedback-btn-submit:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.feedback-btn-submit:disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #bfbfbf;
    cursor: not-allowed;
}

/* 新的意见反馈弹窗按钮样式 */
.feedback-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.feedback-modal-btn {
    padding: 8px 20px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.feedback-modal-btn-cancel {
    background: white;
    color: #333;
    margin-right: 8px;
}

.feedback-modal-btn-cancel:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.feedback-modal-btn-submit {
    background: #1890ff;
    border-color: #1890ff;
    color: white;
}

.feedback-modal-btn-submit:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}

.feedback-modal-btn-submit:disabled {
    background: #f5f5f5;
    border-color: #d9d9d9;
    color: #bfbfbf;
    cursor: not-allowed;
}

/* Loading效果样式 */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    animation: fadeIn 0.3s ease-out;
}

.loading-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-width: 200px;
    max-width: 300px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}