/* ==========================================================================
   门诊智能服务中枢 · 设计变量 v7「临床建筑感 · 产品内」
   --------------------------------------------------------------------------
   官网是门面，可以戏剧化；产品里要安静、耐看、手指按得准。
   所以这里把官网的色系收进产品：暖砂纸底 + 松绿主操作 + 琥珀路标 + 陶土警示。
   旧变量名（--brand / --fs-15 / --r-pill …）全部保留，老页面不会炸。
   ========================================================================== */

:root {
  /* ---------- 纸与墨 ---------- */
  --canvas: #f3eee3; /* 小程序页面底：暖砂 */
  --paper: #fffdf7; /* 卡片：奶白 */
  --paper-2: #faf5ea; /* 卡内分区 */
  --paper-3: #f0e9da; /* 轨道、占位 */
  --deep: #0b241d; /* 深色卡：号序票根 */
  --deep-2: #123128;

  --ink: #17211d;
  --ink-2: #3c4844;
  --muted: #6f7b76;
  --faint: #97a19c;

  --line: #e6ddcc;
  --line-2: #efe8d9;
  --line-3: #d8cdb8;

  /* ---------- 色彩角色 ---------- */
  --primary: #0e6e5e; /* 主操作、当前态 */
  --brand: var(--primary);
  --brand-700: #0a5145;
  --brand-600: #0b6153;
  --brand-500: #17806d;
  --brand-400: #4f9e8e;
  --brand-200: #b9d6cd;
  --brand-100: #d6e8e1;
  --brand-50: #ecf5f1;

  --mint: #cfe6dc;
  --mint-soft: #e9f4ef;

  --amber: #b97a2e; /* 浅底上的琥珀要够深才读得清 */
  --amber-2: #c98a3c; /* 深底上的琥珀 */
  --amber-100: #f7e9d3;
  --amber-50: #fdf6ea;

  --clay: #a84a36;
  --clay-50: #f8e9e4;

  --mist: #5f8398;
  --mist-50: #eaf1f5;

  --ok: #1c6749;
  --ok-50: #e6f2ec;
  --warn: #8a5a12;
  --warn-50: #faf1e0;
  --danger: #a4322a;
  --danger-50: #f8e8e4;

  /* ---------- 兼容别名（老页面用） ---------- */
  --bg: var(--canvas);
  --surface: var(--paper);
  --surface-2: var(--paper-2);
  --surface-3: var(--paper-3);
  --muted-2: var(--faint);

  /* ---------- 字体 ---------- */
  --font:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'HarmonyOS Sans SC', 'MiSans',
    'Microsoft YaHei', system-ui, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, ui-monospace, 'JetBrains Mono', Menlo, monospace;
  --serif: 'Songti SC', 'STSong', 'Source Han Serif SC', 'Noto Serif SC', 'SimSun', Georgia, serif;

  /* ---------- 字号：10 档，够用就好 ---------- */
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-17: 17px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-22: 22px;
  --fs-24: 26px;
  --fs-28: 30px;
  --fs-32: 34px;

  --lh: 1.62;
  --lh-tight: 1.2;

  /* ---------- 间距 ---------- */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 20px;
  --s6: 24px;
  --s7: 32px;
  --s8: 40px;

  /* ---------- 圆角 ---------- */
  --r-xs: 6px;
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 20px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* ---------- 阴影：暖墨色，只为「浮起来」 ---------- */
  --shadow-1: 0 1px 2px rgba(40, 33, 20, 0.05), 0 10px 24px -16px rgba(40, 33, 20, 0.28);
  --shadow-2: 0 2px 4px rgba(40, 33, 20, 0.06), 0 26px 50px -28px rgba(40, 33, 20, 0.38);
  --shadow-pine: 0 10px 24px -14px rgba(14, 110, 94, 0.5);
  --shadow-amber: 0 10px 24px -14px rgba(185, 122, 46, 0.5);
  --shadow-in: inset 0 1px 2px rgba(40, 33, 20, 0.06);

  /* ---------- 动效 ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-1: 120ms;
  --dur-2: 200ms;
  --dur-3: 320ms;
  --dur-4: 560ms;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-1: 0ms;
    --dur-2: 0ms;
    --dur-3: 0ms;
    --dur-4: 0ms;
  }
}
