/* 设置页面样式 */

/* 设置内容容器 */
.settings-container {
    padding: 25px;
}

/* 设置区块 */
.settings-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.settings-section:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 设置区块头部 */
.settings-header {
    padding: 18px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(to right, #f9fafb, #fff);
}

.settings-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
}

.settings-header h3 i {
    margin-right: 10px;
    font-size: 20px;
    color: #00823C;
}

/* 设置区块内容 */
.settings-content {
    padding: 5px 0;
}

/* 设置项 */
.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.3s;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:hover {
    background-color: #f9fafb;
}

/* 设置项信息 */
.settings-item-info {
    flex: 1;
}

.settings-item-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.settings-item-desc {
    font-size: 14px;
    color: #666;
}

/* 按钮样式 */
.btn-outline {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-outline:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    color: #333;
}

.btn-outline i {
    font-size: 16px;
}

/* 修改密码按钮 */
.change-password-btn {
    color: #2c7be5;
    border-color: #d0e2ff;
}

.change-password-btn:hover {
    background-color: #f0f7ff;
    border-color: #2c7be5;
    color: #1a56a0;
}

/* 注销账号按钮 */
.btn-danger {
    color: #e63757;
    border-color: #fad7dd;
}

.btn-danger:hover {
    background-color: #fff5f7;
    border-color: #e63757;
    color: #d21e3c;
}

/* 退出登录按钮 */
.btn-logout {
    color: #fd7e14;
    border-color: #ffe5d0;
}

.btn-logout:hover {
    background-color: #fff8f0;
    border-color: #fd7e14;
    color: #e56a00;
}

/* 修改密码弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #fff;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

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

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

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #00823C;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #006d32;
}

/* 账号注销弹窗样式 */
.deactivate-warning {
    padding: 5px;
}

.warning-header {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #e63757;
    margin-bottom: 15px;
}

.warning-header i {
    font-size: 20px;
    margin-right: 8px;
    color: #e63757;
}

.warning-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    background-color: #fff5f7;
    border: 1px solid #fad7dd;
    border-radius: 8px;
    padding: 15px 20px;
}

.warning-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #333;
    font-size: 14px;
}

.warning-list li i {
    color: #e63757;
    margin-right: 10px;
    font-size: 16px;
    flex-shrink: 0;
}

.warning-footer {
    text-align: center;
    font-weight: 500;
    color: #333;
    margin-top: 10px;
    font-size: 15px;
}

.confirm-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #fff8f0;
    border: 1px solid #ffe5d0;
    border-radius: 8px;
    color: #fd7e14;
    font-weight: 500;
}

.confirm-message i {
    font-size: 20px;
    margin-right: 10px;
    color: #fd7e14;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #00823C;
    box-shadow: 0 0 0 3px rgba(0, 130, 60, 0.1);
    outline: none;
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.verification-code-group {
    display: flex;
    gap: 10px;
}

.verification-code-group .form-control {
    flex: 1;
}

.send-code-btn {
    padding: 10px 15px;
    background-color: #00823C;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.send-code-btn:hover {
    background-color: #006d32;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .settings-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-item-info {
        margin-bottom: 15px;
    }
    
    .btn-outline {
        width: 100%;
        justify-content: center;
    }
    
    .verification-code-group {
        flex-direction: column;
    }
    
    .send-code-btn {
        width: 100%;
    }
} 