/* ============================================================
   主题：深色模式
   深灰背景，护眼，适合长时间使用
   ============================================================ */

[data-theme="dark"] {
    /* 主色 - 亮蓝紫 */
    --primary-color: #7c8fff;
    --primary-light: #9aa9ff;
    --primary-rgb: 124, 143, 255;
    --primary-hover-1: #8a9cff;
    --primary-hover-2: #a8b4ff;
    --accent-color: #4a5570;
    --accent-light: #5a6580;

    /* 背景 - 深色 */
    --bg-body-from: #1a1a28;
    --bg-body-to: #252535;
    --bg-content: #2a2a3a;
    --bg-messages: #1e1e2a;
    --bg-input-area: #1e1e2a;
    --bg-user-msg: #2d3850;
    --bg-system-msg: #2a2a3a;
    --bg-input-field: #1a1a28;
    --bg-input-border: #3a3a4e;
    --bg-item-from: #2a2a3a;
    --bg-item-to: #2f2f42;
    --bg-hover-light-from: #3a3a52;
    --bg-hover-light-to: #2a2a3a;
    --bg-active-from: #354060;
    --bg-active-to: #2d3850;
    --bg-chat-header: rgba(124, 143, 255, 0.05);

    /* 侧边栏 */
    --sidebar-bg-from: #2a2a3a;
    --sidebar-bg-to: #232333;
    --sidebar-text: #d0d0e0;
    --sidebar-border: rgba(124, 143, 255, 0.25);

    /* 文字 */
    --text-primary: #d8d8e8;
    --text-secondary: #9090a8;
    --text-tertiary: #6a6a82;
    --text-on-primary: #ffffff;
    --text-link: #9aa9ff;

    /* 边框 */
    --border-light: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: #3a3a4e;
    --border-input: #3a3a4e;

    /* 阴影 */
    --shadow-black: rgba(0, 0, 0, 0.4);
    --shadow-black-light: rgba(0, 0, 0, 0.2);
    --shadow-black-softer: rgba(0, 0, 0, 0.1);
    --shadow-black-strong: rgba(0, 0, 0, 0.5);
    --shadow-primary: rgba(124, 143, 255, 0.3);
    --shadow-primary-light: rgba(124, 143, 255, 0.2);
    --shadow-primary-soft: rgba(124, 143, 255, 0.1);
    --shadow-primary-03: rgba(124, 143, 255, 0.05);
    --shadow-primary-strong: rgba(124, 143, 255, 0.4);
    --shadow-accent: rgba(0, 0, 0, 0.3);
    --shadow-error: rgba(220, 53, 69, 0.4);

    /* 滚动条 */
    --scrollbar-track: #1a1a28;
    --scrollbar-thumb: #4a4a60;
    --scrollbar-thumb-sidebar: #3a3a52;

    /* 代码块 */
    --code-bg: #1a1a28;
    --code-bg-inline: #252535;

    /* 特殊 */
    --shine: rgba(255, 255, 255, 0.08);

    /* 状态色 */
    --color-success: #4ade80;
    --color-success-light: #6ee7a7;
    --color-error: #f87171;
    --color-error-light: #fca5a5;
    --color-error-dark: #ef4444;
    --color-error-darker: #dc2626;
    --color-warning: #fbbf24;
    --color-warning-light: #fcd34d;
    --color-info: #38bdf8;
    --color-info-light: #7dd3fc;
}
