/* ==========================================================
   CYF捷修云 · 设计令牌
   版式思路：工厂 MES 终端 + 纸质维修单。顶部深灰导航，主体为冷灰纸面上的白色单据；
   直角细线、不用投影；状态色遵循 GB 2893 安全色（蓝=指令、黄=警告、红=禁止、绿=安全）。
   字体全部本地加载，考场断网也不回退。
   ========================================================== */
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  /* 纸面与墨色：中性色略带青灰，和蓝色指令色同一色温 */
  --paper: #eceeeb;
  --sheet: #fcfcfa;
  --sheet-alt: #f5f6f3;
  --ink: #1c2228;
  --ink-2: #48525c;
  --ink-3: #7a848d;
  --rule: #c9cec9;
  --rule-soft: #e1e4e0;
  --graphite: #23292f;
  --graphite-2: #313942;
  --graphite-ink: #aab3ba;

  /* GB 2893 安全色 */
  --blue: #1e5aa8;        /* 指令：主要操作 */
  --blue-deep: #17467f;
  --blue-wash: #e6edf6;
  --yellow: #e8b100;      /* 警告：待派、超期 */
  --yellow-wash: #fbf1cf;
  --red: #c4312a;         /* 禁止：驳回、删除、印章 */
  --red-wash: #f8e4e2;
  --green: #2c7a4b;       /* 安全：归档、正常 */
  --green-wash: #e2f0e7;
  --orange: #d4691e;      /* 图表第二系列 */

  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif;
  --font-display: "Barlow Condensed", "DIN Alternate", "Arial Narrow", var(--font-sans);
  --font-mono: "IBM Plex Mono", Consolas, "SFMono-Regular", monospace;

  --radius: 3px;
  --bar-h: 52px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 14px/1.6 var(--font-sans);
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.label {
  font-size: 11px; letter-spacing: .08em; color: var(--ink-3);
  font-family: var(--font-display); font-weight: 500;
}

.icon { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8;
        stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
