/* 星宿食堂 V0.2.3B 白色淡白主题统一样式表 - 淡白非纯白，Ant Design配色 */
/* 引用：<link rel="stylesheet" href="资源/白色主题.css"> 应放在其他主题样式表之后 */
/* V0.2.3B 更新：背景#FAFAFA淡白，卡片#FFFFFF，主色#1890FF，实时生成#52C41A */
/* 去除所有emoji符号，保留简单白色符号角标如[+] [x] [<] [>] */

:root {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0F2F5;
    --bg-card: #FFFFFF;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #E8E8E8;
    --accent-color: #1890FF;
    --accent-light: #E6F7FF;
    --realtime-color: #52C41A;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 8px;

    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-soft: #FAFAFA;
    --surface-hover: #F0F2F5;
    --surface-active: #E6F7FF;
    --paper: #FFFFFF;
    --mist: #F0F2F5;
    --border: #E8E8E8;
    --border-soft: #F0F0F0;
    --text: #333333;
    --ink: #333333;
    --text-faint: #BFBFBF;
    --river: #1890FF;
    --deep: #096DD9;
    --gold: #FAAD14;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --shadow-top: 0 -4px 12px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --icon-color: #333333;
}

:root,
[data-theme="dark"],
[data-theme="light"],
[data-theme="white"],
[data-theme=""],
.dark,
.dark-mode,
body,
html {
    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-soft: #FAFAFA;
    --surface-hover: #F0F2F5;
    --surface-active: #E6F7FF;
    --paper: #FFFFFF;
    --mist: #F0F2F5;
    --bg-dark: #FAFAFA;
    --surface-dark: #F0F2F5;
    --border-dark: #E8E8E8;
    --text-dark: #333333;
    --border: #E8E8E8;
    --border-soft: #F0F0F0;
    --text: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-faint: #BFBFBF;
    --ink: #333333;
    --icon-color: #333333;
    --river: #1890FF;
    --deep: #096DD9;
    --gold: #FAAD14;
    --realtime-color: #52C41A;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
}

html, body {
    background-color: #FAFAFA !important;
    background: #FAFAFA !important;
    color: #333333 !important;
}
.card, .panel, .surface, .modal, .dialog, .popup, .bubble, .container-card {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.sidebar, aside, .nav, nav, .topbar, header, .header {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
}
input, textarea, select, .input,
input[type="text"], input[type="password"], input[type="email"],
input[type="search"], input[type="number"], input[type="url"], input[type="tel"] {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
}
input::placeholder, textarea::placeholder { color: #BFBFBF !important; }
.btn, button, .button {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
}
.btn-primary, button.primary, .button-primary, .send-btn {
    background-color: #1890FF !important;
    background: #1890FF !important;
    color: #FFFFFF !important;
    border-color: #1890FF !important;
}
.btn-primary:hover, button.primary:hover, .button-primary:hover, .send-btn:hover {
    background-color: #40A9FF !important;
    background: #40A9FF !important;
    border-color: #40A9FF !important;
}
a, .link { color: #1890FF !important; }
a:hover, .link:hover { color: #40A9FF !important; }
.list-item, .row, li {
    background-color: #FFFFFF !important;
    color: #333333 !important;
}
.list-item:hover, .row:hover, li:hover { background-color: #F0F2F5 !important; }
table, th, td {
    background-color: #FFFFFF !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
}
th { background-color: #FAFAFA !important; background: #FAFAFA !important; }
pre, code, .code-block {
    background-color: #F0F2F5 !important;
    background: #F0F2F5 !important;
    color: #333333 !important;
    border-color: #E8E8E8 !important;
}
/* 实时生成标识样式 */
.realtime-badge, .realtime-tag, .streaming-indicator {
    color: #52C41A !important;
    background-color: #F6FFED !important;
    border-color: #B7EB8F !important;
}
.realtime-dot, .streaming-dot {
    background-color: #52C41A !important;
}
/* 群聊角色头像配色 */
.role-avatar-tcm { background-color: #1890FF !important; color: #FFFFFF !important; }
.role-avatar-nutrition { background-color: #52C41A !important; color: #FFFFFF !important; }
.role-avatar-fitness { background-color: #FA8C16 !important; color: #FFFFFF !important; }
/* 深色背景兜底：将常见深色 hex 强制浅色化 */
[style*="background:#1a1a2e"], [style*="background: #1a1a2e"],
[style*="background-color:#1a1a2e"], [style*="background-color: #1a1a2e"],
[style*="background:#16213e"], [style*="background: #16213e"],
[style*="background-color:#16213e"], [style*="background-color: #16213e"],
[style*="background:#0f3460"], [style*="background: #0f3460"],
[style*="background-color:#0f3460"], [style*="background-color: #0f3460"],
[style*="background:#1e1e1e"], [style*="background: #1e1e1e"],
[style*="background-color:#1e1e1e"], [style*="background-color: #1e1e1e"],
[style*="background:#252526"], [style*="background: #252526"],
[style*="background-color:#252526"], [style*="background-color: #252526"],
[style*="background:#2d2d30"], [style*="background: #2d2d30"],
[style*="background-color:#2d2d30"], [style*="background-color: #2d2d30"],
[style*="background:#533483"], [style*="background: #533483"],
[style*="background-color:#533483"], [style*="background-color: #533483"],
[style*="background:#e94560"], [style*="background: #e94560"],
[style*="background-color:#e94560"], [style*="background-color: #e94560"] {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #333333 !important;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #FAFAFA; }
::-webkit-scrollbar-thumb { background: #D9D9D9; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #BFBFBF; }
::selection { background: #E6F7FF; color: #333333; }
:focus-visible { outline: 2px solid #1890FF; outline-offset: 2px; }
