/* ==========================================================================
   端砚 Inkstone UI Kit — Design Tokens
   取自 discovery.intern-ai.org.cn/chat（2026-11-16 抓取），命名改为 --hui-* 前缀。
   所有数值均可覆盖：在 :root 或任意作用域内重写同名变量即可换肤。
   ========================================================================== */

:root {

  /* ---------- 纸张 ---------- */
  --hui-bg: #fdfcf8;            /* 页面底：暖白宣纸 */
  --hui-bg-soft: #f7f4ec;       /* 次级底：暖米 */
  --hui-bg-soft-1: #fbfaf6;     /* 再浅一级 */
  --hui-paper: #ffffff;         /* 卡片纸面 */
  --hui-paper-cool: #fafaf7;    /* 冷一档的纸面（侧栏） */
  --hui-bubble: #faf8f2;        /* 用户气泡纸色 */

  /* ---------- 墨色 ---------- */
  --hui-ink: #1a2332;           /* 正文墨 */
  --hui-ink-soft: #3a4556;      /* 次级墨 */
  --hui-ink-mute: #7a8394;      /* 弱化墨（说明、时间戳） */
  --hui-ink-faint: #a8afbb;     /* 最弱墨（占位符、徽标） */
  --hui-ink-active: #464a53;    /* 侧栏默认文字 */

  /* ---------- 主色：墨蓝 ---------- */
  --hui-accent: #1554a8;
  --hui-accent-bright: #1661ab;
  --hui-accent-deep: #0c3c80;
  --hui-accent-soft: #88addd;
  --hui-accent-line: #7aa3d8;   /* 输入框聚焦描边 */
  --hui-accent-bg: #e9f0f9;
  --hui-accent-bg-hover: #e6f2ff;

  /* ---------- 描边 ---------- */
  --hui-rule: #e8e4d9;          /* 主分隔线（暖灰） */
  --hui-rule-soft: #efece3;     /* 细线 */
  --hui-rule-cool: #ebecf0;     /* 冷灰线（侧栏选中） */
  --hui-dot: #ebe6da;           /* 宣纸点纹 */

  /* ---------- 语义色 ---------- */
  --hui-success: #6b7a3a;
  --hui-success-bg: #f1f3e8;
  --hui-warning: #a8864b;
  --hui-warning-bg: #f8f1e3;
  --hui-danger: #c03030;
  --hui-danger-bg: #fdeaea;
  --hui-info: #1661ab;
  --hui-info-bg: #e9f0f9;

  /* ---------- 深色区域：日志控制台 / 媒体查看器 ---------- */
  --hui-console-bg: #1e2734;
  --hui-console-ink: #d5dce6;
  --hui-console-mute: #7f8b9c;
  --hui-console-line: rgba(255, 255, 255, 0.08);
  --hui-console-success: #7cc79b;
  --hui-console-warning: #e0b46f;
  --hui-console-danger: #e7928c;
  --hui-on-dark: #f4f1e9;
  --hui-on-dark-mute: rgba(244, 241, 233, 0.62);
  --hui-on-dark-faint: rgba(244, 241, 233, 0.38);
  --hui-on-dark-surface: rgba(244, 241, 233, 0.12);
  --hui-viewer-mask: rgba(15, 23, 35, 0.88);

  /* ---------- 字体 ---------- */
  --hui-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hui-font-serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "SimSun", serif;
  --hui-font-display: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif;
  --hui-font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* ---------- 字号 ---------- */
  --hui-text-2xs: 10px;
  --hui-text-xs: 12px;
  --hui-text-sm: 13px;
  --hui-text-base: 14px;
  --hui-text-md: 14.5px;
  --hui-text-lg: 16px;
  --hui-text-xl: 18px;
  --hui-text-2xl: 30px;
  --hui-text-3xl: 34px;
  --hui-text-display: 46px;

  /* ---------- 圆角 ---------- */
  --hui-radius-xs: 2px;
  --hui-radius-sm: 4px;
  --hui-radius-md: 6px;
  --hui-radius-lg: 8px;
  --hui-radius-xl: 10px;
  --hui-radius-2xl: 12px;
  --hui-radius-pill: 999px;
  --hui-radius-circle: 50%;

  /* ---------- 阴影：一律极淡、带墨色 ---------- */
  --hui-shadow-2xs: 0 1px 0 0 rgba(26, 35, 50, 0.02);
  --hui-shadow-xs: 0 1px 2px 0 rgba(26, 35, 50, 0.03);
  --hui-shadow-sm: 0 1px 3px 0 rgba(26, 35, 50, 0.04), 0 1px 2px -1px rgba(26, 35, 50, 0.04);
  --hui-shadow-md: 0 4px 12px -2px rgba(26, 35, 50, 0.06), 0 2px 6px -3px rgba(26, 35, 50, 0.05);
  --hui-shadow-lg: 0 8px 24px -2px rgba(0, 0, 0, 0.08);
  --hui-shadow-xl: 0 12px 40px -3px rgba(0, 0, 0, 0.1);
  --hui-shadow-composer: 0 2px 8px rgba(15, 28, 46, 0.06), 0 0 0 1px rgba(26, 79, 140, 0.04);
  --hui-shadow-composer-hover: inset 0 1px rgba(255, 255, 255, 0.6),
    0 18px 40px -28px rgba(60, 50, 20, 0.22);
  --hui-ring: 0 0 0 2px rgba(21, 84, 168, 0.32);
  --hui-mask: rgba(26, 35, 50, 0.28);

  /* ---------- 间距 ---------- */
  --hui-space-1: 2px;
  --hui-space-2: 4px;
  --hui-space-3: 6px;
  --hui-space-4: 8px;
  --hui-space-5: 10px;
  --hui-space-6: 12px;
  --hui-space-7: 14px;
  --hui-space-8: 18px;
  --hui-space-9: 20px;
  --hui-space-10: 22px;
  --hui-space-11: 26px;
  --hui-space-12: 32px;

  /* ---------- 布局 ---------- */
  --hui-sidebar-w: 232px;
  --hui-sidebar-pad: 18px 10px;
  --hui-topbar-h: 55px;
  --hui-thread-max: 756px;
  --hui-composer-max: 760px;
  --hui-composer-home-max: 880px;
  --hui-banner-h: 38px;
  --hui-nav-item-h: 40px;

  /* ---------- 动效 ---------- */
  --hui-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --hui-dur-fast: 0.15s;
  --hui-dur: 0.22s;
  --hui-dur-slow: 0.35s;
}