/**
 * 设置页面样式
 */

/* 设置页面布局 */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
}

.settings-nav {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.settings-nav .nav-link {
    color: #666;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.settings-nav .nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.settings-nav .nav-link.active {
    color: #007bff;
    background-color: #e7f3ff;
    border-left: 3px solid #007bff;
}

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

/* 设置内容区域 */
.settings-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 2rem;
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
}

.settings-section-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* 表单样式 */
.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form .form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.settings-form .form-control,
.settings-form .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.settings-form .form-control:focus,
.settings-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.settings-form .form-text {
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.settings-form .form-check {
    margin-bottom: 1rem;
}

.settings-form .form-check-input {
    margin-top: 0.25rem;
}

.settings-form .form-check-label {
    color: #333;
    font-weight: 500;
}

/* 提示词模板样式 */
.prompt-template {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.prompt-template-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.prompt-template-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.prompt-template-actions {
    display: flex;
    gap: 0.5rem;
}

.prompt-template-content {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.prompt-template-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

/* 系统设置样式 */
.system-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: background-color 0.2s;
}

.system-setting-item:hover {
    background-color: #f8f9fa;
}

.system-setting-info {
    flex: 1;
}

.system-setting-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.system-setting-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.system-setting-value {
    color: #666;
    font-size: 0.9rem;
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-left: 1rem;
}

.system-setting-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

/* 通知设置样式 */
.notification-setting {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.notification-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.notification-setting-title {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.notification-setting-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-setting-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 定时任务设置样式 */
.schedule-setting {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.schedule-setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.schedule-setting-title {
    font-weight: 500;
    color: #333;
    margin: 0;
}

.schedule-setting-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.schedule-setting-status.active {
    background-color: #d4edda;
    color: #155724;
}

.schedule-setting-status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.schedule-setting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.schedule-setting-info-item {
    display: flex;
    flex-direction: column;
}

.schedule-setting-info-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.schedule-setting-info-value {
    font-weight: 500;
    color: #333;
    font-family: monospace;
}

/* 操作按钮样式 */
.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.settings-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .settings-nav {
        margin-bottom: 1rem;
    }
    
    .settings-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .settings-content {
        padding: 1rem;
    }
    
    .settings-section-title {
        font-size: 1.1rem;
    }
    
    .system-setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .system-setting-value {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .system-setting-actions {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .schedule-setting-info {
        grid-template-columns: 1fr;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .settings-container {
        padding: 0 1rem;
    }
    
    .settings-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .settings-content {
        padding: 0.75rem;
    }
    
    .prompt-template-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .notification-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .schedule-setting-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
