/* ==================== CSS 变量定义 ==================== */
:root {
    /* 颜色系统 - 浅色主题 - 优化版 */
    --color-bg-base: #f8f9fa;
    --color-bg-elevated: #ffffff;
    --color-bg-hover: #f1f3f5;
    --color-bg-input: #f8f9fa;
    --color-text-primary: #1f2937;
    --color-text-secondary: #6b7280;
    --color-border-default: #e5e7eb;
    
    /* 主题色 - 优化为更具现代感的橙红色 */
    --color-accent-primary: #ea580c; /* vibrant orange-600 */
    --color-accent-hover: #c2410c;   /* darker orange-700 */
    
    --color-danger: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* 区域背景色 */
    --color-bg-header-footer: #ffffff;

    /* 阴影系统 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    /* 字体系统 */
    --font-family-base: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* 固定尺寸布局 - 针对 14 寸 MacBook (1440x900) 优化 */
    --layout-app-width: 1400px;
    --layout-app-height: 860px;
    --layout-header-height: 60px;
    --layout-footer-height: 40px;
    --layout-tab-nav-height: 48px;
    --layout-page-header-height: 64px;
    --layout-content-padding: 24px;

    /* 账号卡片尺寸 */
    --card-width: 280px;
    --card-height: auto;
    --card-gap: 16px;
    --card-columns: 4;

    /* Chat 尺寸 */
    --chat-sidebar-width: 260px;
    --chat-header-height: 60px;
    --chat-input-min-height: 44px;
}

/* 深色主题 - 优化版 */
[data-theme="dark"] {
    --color-bg-base: #09090b;
    --color-bg-elevated: #18181b;
    --color-bg-hover: #27272a;
    --color-bg-input: #27272a;
    --color-text-primary: #f9fafb;
    --color-text-secondary: #9ca3af;
    --color-border-default: #27272a;
    
    --color-accent-primary: #f97316; /* orange-500 */
    --color-accent-hover: #ea580c;   /* orange-600 */
    
    --color-danger: #f87171;
    --color-success: #34d399;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);

    --color-bg-header-footer: #18181b;
}
