/* AI聚合搜索引擎 - 主题样式 */

/* ===== 浅色主题 (默认) ===== */
.theme-light {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-sidebar: #1e1b4b;

    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
}

/* ===== 深色主题 ===== */
.theme-dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-sidebar: #020617;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --border-color: #334155;
}

.theme-dark .sidebar {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.theme-dark .input-wrapper {
    background: var(--bg-secondary);
}

.theme-dark .input-box textarea {
    color: var(--text-primary);
}

.theme-dark .prompt-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.theme-dark .prompt-card:hover {
    background: var(--bg-tertiary);
}

.theme-dark .response-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.theme-dark .response-header {
    background: var(--bg-tertiary);
}

.theme-dark .modal-content {
    background: var(--bg-secondary);
}

.theme-dark .auth-form input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.theme-dark .model-card {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

.theme-dark .setting-item select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

/* ===== 主题切换动画 ===== */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar,
.main-content,
.modal-content,
.input-wrapper,
.response-card {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ===== 自定义颜色方案 ===== */
/* 蓝色主题 */
.theme-blue {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
}

/* 绿色主题 */
.theme-green {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
}

/* 橙色主题 */
.theme-orange {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
}

/* 粉色主题 */
.theme-pink {
    --primary: #ec4899;
    --primary-dark: #db2777;
    --primary-light: #f472b6;
}

/* ===== 高对比度模式 ===== */
@media (prefers-contrast: high) {
    .theme-light {
        --border-color: #1e293b;
    }

    .theme-dark {
        --border-color: #e2e8f0;
    }
}

/* ===== 减少动画模式 ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}