/* 配置页面容器 */
.config-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 页面标题 */
.page-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 配置区块样式 */
.config-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 18px;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 8px;
    color: #1976d2;
}

/* 表单样式 */
.config-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .config-form {
        grid-template-columns: 1fr;
    }
}

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

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #1976d2;
    outline: none;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

/* 开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2196F3;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-label {
    display: flex;
    align-items: center;
}

.toggle-label span {
    margin-left: 10px;
}

/* 按钮样式 */
.config-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #1976d2;
    color: white;
}

.btn-primary:hover {
    background-color: #1565c0;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* 帮助描述 */
.form-help {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 警告/提示信息 */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-warning {
    background-color: #fff3e0;
    border: 1px solid #ffcc80;
    color: #ef6c00;
}

.alert-info {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1976d2;
}

.alert-success {
    background-color: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #388e3c;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* 反馈信息 */
.feedback-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.feedback-success {
    background-color: #4caf50;
}

.feedback-error {
    background-color: #f44336;
}

.feedback-message i {
    margin-right: 10px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 分组标题 */
.config-group-title {
    font-size: 16px;
    font-weight: 500;
    margin: 15px 0;
    padding-bottom: 8px;
    color: #444;
    grid-column: 1 / -1;
    border-bottom: 1px solid #eee;
}

/* 密码输入框容器 */
.password-field {
    position: relative;
    width: 100%;
}

/* 密码可见性切换按钮 */
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 30px;
    height: 30px;
}

.password-toggle:hover {
    color: #1976d2;
}

/* 确保密码输入框右侧有足够空间 */
.password-field input {
    padding-right: 40px;
} 