/*
 * violet 主题 —— Design Token
 *
 * 数值来源：docs/smartshell-theme/CLAUDE-HANDOFF.md 第 4 节（参考产品 demo 运行时 getComputedStyle），
 * 完整规则见 docs/smartshell-theme/reference/shell-css-rules.txt。
 *
 * 约定（跟 purple 一致）：
 * 1. 变量定义在 :root —— 本文件只在 violet 主题下加载，toastr / sweetalert 这类挂在 body 层级、
 *    不在 .theme-violet 里面的组件也取得到。
 * 2. 只用 rgba()，不用 color-mix()：客户端 CEF 内核不保证支持，表达式非法时整条声明失效。
 * 3. 强调色派生出的几档（--ss-accent-rgb / -hover / -dim）由 js/violet.js 按 CP 的 Theme color 计算后覆盖；
 *    这里是出厂默认值。
 */

@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('../webfonts/Geologica-cyrillic-ext.woff2') format('woff2');
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('../webfonts/Geologica-cyrillic.woff2') format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('../webfonts/Geologica-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Geologica';
	font-style: normal;
	font-weight: 300 600;
	font-display: swap;
	src: url('../webfonts/Geologica-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../webfonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url('../webfonts/Inter-SemiBold.woff2') format('woff2');
}

:root {
	/* ---- 强调色（CP Theme color 选了非 default 时由 js/violet.js 覆盖） ---- */
	--ss-accent:          #7C62FF;
	--ss-accent-rgb:      124, 98, 255;
	--ss-accent-hover:    #9580FF;   /* 向白提亮 20% */
	--ss-accent-text:     #FFFFFF;   /* 强调色底上的文字 */

	/* ---- 底与面 ---- */
	--ss-bg:              #232323;                 /* 没有背景图时的底色 */
	/* 参考产品的面板是 #151515b8（0.72）再加 backdrop-filter: blur(8px)，模糊能把花哨的背景糊成色块。
	   客户端软件渲染下禁用模糊，只靠透明度挡背景：内置背景都偏暗看不出来，网吧换成亮照片后
	   原来的 0.48 / 0.24 压不住，人像和灯光直接透进面板，所以下面两档都比参考值深 */
	--ss-surface:         rgba(21, 21, 21, 0.82);  /* 首页各区块、左栏、右栏卡片、任务栏、各页卡片 */
	/* 顶栏胶囊、Tabs 容器、分类标签 */
	--ss-surface-strong:  rgba(21, 21, 21, 0.9);
	--ss-drawer:          #151515;                 /* 右侧抽屉、登录面板 */
	--ss-scrim:           rgba(18, 18, 18, 0.55);  /* 压在背景图上的一层暗色（参考值 0.24，亮背景下压不住） */
	--ss-hover:           rgba(255, 255, 255, 0.08);
	--ss-border:          rgba(255, 255, 255, 0.1);

	/* ---- 文字 ---- */
	--ss-text:            #FFFFFF;
	--ss-text-90:         rgba(255, 255, 255, 0.9);
	--ss-text-muted:      rgba(255, 255, 255, 0.5);

	/* ---- 状态色 ---- */
	--ss-free:            #AFFF60;
	--ss-danger:          #FF3636;
	--ss-warning:         #FF7E36;

	/* ---- 字体 ---- */
	--ss-font-display:    'Geologica', 'Inter', 'Segoe UI', system-ui, sans-serif;
	--ss-font-body:       'Inter', 'Geologica', 'Segoe UI', system-ui, sans-serif;

	/* ---- 布局（1920×1080 基准，其它分辨率由 js/violet.js 整体 zoom） ---- */
	--ss-rail-col:        112px;
	--ss-sidebar-col:     296px;
	--ss-top-row:         80px;
	--ss-taskbar-row:     48px;
	--ss-radius-lg:       16px;
	--ss-radius-md:       12px;
	--ss-radius-sm:       8px;
}
