/* 个人中心容器 */
.user-center {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
}

/* 个人信息头部 */
.user-info-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #e6e6e6;
    margin-bottom: 20px;
}

.user-info-header .username {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.user-info-header .logout-btn {
    margin-top: 10px;
    width: 80px;
}

/* 个人信息项 */
.user-info-item {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f7ff;
    font-size: 15px;
}

.user-info-item .label {
    display: inline-block;
    width: 180px;
    color: #333;
    font-weight:700;
}

.user-info-item .value {
    color: #333;
    flex:1;
}

/* 改写功能区域 */
.rewrite-section {
    margin-top: 30px;
}

.rewrite-section .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

/* 改写输入框 */
.rewrite-input {
    width: 100%;
    height: 120px;
    resize: none;
    padding: 10px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    margin-bottom: 15px;
}

.rewrite-input:focus {
    border-color: #409eff;
}

/* 改写结果区域 */
.rewrite-result {
    width: 100%;
}

/* 遮罩层样式 */
.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-large);
    z-index: 10;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 20px;
}

.overlay-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
}

.complete-btn {
    background-color: white;
    color: #ff0000;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.complete-btn:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    background-color: #f5f5f5;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-item {
    margin-bottom: 16px;
}

.form-item label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #409eff;
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #409eff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #66b1ff;
}

.error-message {
    color: #f5222d;
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

/* 卡片容器样式 */
.profile-card,
.password-change-card {
    position: relative;
    background-color: var(--bg-white);
    border-radius: var(--radius-large);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 改写结果区域 */
.rewrite-result {
    width: 100%;
    height: 120px;
    padding: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: auto;
}

/* 改写按钮组 */
.rewrite-btn-group {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.rewrite-btn {
    width: 120px;
}

.copy-btn {
    width: 100px;
}

.logout-btn {
    margin-top:30px;
    padding:10px 30px;
    background: #ff4d4f;
    color:#fff;
    border:none;
    border-radius:6px;
    font-size:15px;
    cursor:pointer;
}
.logout-btn:hover {
    background: #ff2d2d;
}