/* shanglish 设计令牌（仅变量，不含组件样式）—— 与 theme.css 同源 */
:root{
  /* —— 颜色：品牌 —— */
  --brand:#244F40; --brand-hover:#1C3F33; --brand-press:#16332A;
  --brand-soft:#E4EBE3; --brand-line:#BFD0C3;
  /* —— 颜色：中性 —— */
  --paper:#F5F4EF;      /* 页面底 */
  --surface:#FFFEFA;    /* 卡片 */
  --surface-2:#EFEEE7;  /* 次级底、输入框只读、分段控件底 */
  --line:#DFE4D7; --line-strong:#C9D0C1;
  --ink:#1E2E28;        /* 标题 */
  --text:#253C34;       /* 正文 */
  --muted:#69766E;      /* 次要文字 */
  --faint:#9AA39C;      /* 占位、禁用 */
  --on-brand:#FFFEFA;
  /* —— 反馈色（低饱和，与暖纸协调） —— */
  --ok:#2E6B4E;   --ok-bg:#E3EFE6;   --ok-line:#B9D5C2;
  --err:#A4443A;  --err-bg:#F6E4E0;  --err-line:#E3BDB6;
  --warn:#94681F; --warn-bg:#F5ECD9; --warn-line:#E2CFA6;
  --info:#2B3A67; --info-bg:#E7EAF2; --info-line:#C4CBDF;
  /* —— 字体 —— */
  --font-sans:"PingFang SC","Noto Sans SC","Noto Sans CJK SC","Hiragino Sans GB","Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  --font-serif:"Songti SC","Noto Serif SC","Noto Serif CJK SC",Georgia,serif; /* 仅大标题/英文展示词 */
  --font-en:"Georgia","Times New Roman",serif;  /* 英文目标词展示，可选 */
  --font-mono:"SF Mono",Menlo,Consolas,monospace;
  /* 字号阶梯 1.25 */
  --fs-xs:12px; --fs-sm:14px; --fs-md:16px; --fs-lg:18px; --fs-xl:22px; --fs-2xl:28px; --fs-3xl:36px; --fs-4xl:48px;
  --lh-tight:1.25; --lh:1.6;
  --fw-r:400; --fw-m:500; --fw-b:600;
  /* 间距 4 基准 */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px; --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;
  /* 圆角 */
  --r-sm:6px; --r-md:10px; --r-lg:16px; --r-xl:22px; --r-pill:999px;
  /* 阴影（只有两档 + 弹窗） */
  --sh-1:0 1px 2px rgba(30,46,40,.05),0 1px 1px rgba(30,46,40,.03);
  --sh-2:0 4px 16px rgba(30,46,40,.07);
  --sh-3:0 16px 48px rgba(30,46,40,.16);
  --focus:0 0 0 3px var(--brand-soft);
  --nav-h:56px; --ctl-h:40px; --ctl-h-lg:48px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
/* 经典主题：藏青 */
[data-theme="classic"]{
  --brand:#2B3A67; --brand-hover:#223056; --brand-press:#1A2545;
  --brand-soft:#E5E8F1; --brand-line:#C2C9DD;
  --paper:#F4F4F1; --line:#DCDFE6; --line-strong:#C7CCD8;
  --ink:#1B2238; --text:#28304A; --muted:#6A7183;
  --info:#244F40; --info-bg:#E4EBE3; --info-line:#BFD0C3;
}
@media (max-width:640px){ :root{ --ctl-h:44px; --fs-3xl:30px; --fs-4xl:38px; } }


/* 单色线条图标（替代 emoji）。仅此一个独有 class，不影响各程序原有样式 */
.sl-ico{width:1em;height:1em;flex:none;display:inline-block;vertical-align:-0.14em;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
