/* LOB 全站样式。规范：根目录「和力传播美术设计.md」，风格代号「星笺」，2026-09-22 换版。
   LOB 是工具页：深空只在登录页和总览页顶部的一块读数屏，其余全白；动效只做状态切换，不超过 300ms。
   四层材质，各层的边、影、圆角互不串用：
     舞台  深空与纸底，无边无影
     面板  卡片、切格、表格外框：1px 边线，无影，圆角 14
     槽    输入框、投递口：2px 主墨边，无影，圆角 10
     贴纸  按钮、芯片、提示条、铭牌、印章：2px 主墨边加不虚化的硬影，圆角 10 或 999
   配方卡（LOB 全部页面）：工具页  深空 ≤ 10（登录页整页、总览顶部一块）  星图 只在登录页
     亮块 总览页一个  贴纸 一屏 ≤ 8 张  动效 状态切换 ≤ 300ms  宽 侧栏 240 加主区 1280 */

/* 展示字三份都自托管：Baloo 2（可变字体，一个文件覆盖 500 到 800，只含拉丁字母与数字）管字母数字；
   霞鹜文楷 LXGW WenKai 粗体管汉字（09-22 晚主理人试过江城圆体后改选文楷，全站与登录页主标题同款），分片在 /fonts/wenkai.css；
   思源黑体 Noto Sans SC 600 兜底江城圆体没有的生僻字，分片在 /fonts/noto-sc.css。两份都由 layout.ts 单独引入，浏览器只下载用到的字所在的分片。
   2026-09-22 主理人定全站字重降一级：标题 700、按钮与芯片 600、等宽小字 400，正文仍 400。 */
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/baloo2-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;
}

:root {
  /* 舞台色（规范 2.1） */
  --space: #0a1526;
  --space-2: #132239;
  --paper: #f5f8fb;
  --card: #ffffff;
  --ink: #0b1526;
  --ink-2: #3e4b5e;
  --ink-3: #7c8a9c;
  --line: #d9e1ea;
  --line-2: #eef2f6;
  --silver: #e6ebf1;
  --silver-2: #b9c5d2;

  /* 青蓝与状态色（规范 2.2）：等待银、进行浅青、完成薄荷、失败玫红、投标钢蓝 */
  --cyan: #12b5d6;
  --cyan-hover: #25c3e2;
  --cyan-deep: #0a8aa6;
  --cyan-soft: #7fdcee;
  --steel: #6f9fd8;
  --mint: #2fbf8f;
  --mint-deep: #1f8f69;
  --rose: #e2586d;
  --rose-deep: #b8324a;
  /* 两档暖色状态（09-23 主理人定，配色「蜂蜜与杏」）：蜂蜜黄是正在进行，杏橙是紧急或等人处理；只用于状态，不做装饰与强调 */
  --honey: #f5d67f;
  --honey-deep: #9a7010;
  --apricot: #f3a56f;
  --apricot-deep: #b0561f;

  /* 深空上的文字与线（规范 2.3） */
  --on-space: #e6ebf1;
  --on-space-2: #aebbcb;
  --on-space-3: #8a9bb0;
  --space-line: rgba(201, 210, 220, 0.14);

  /* 贴纸的边与影同色；到了深空上换成纸色，像白色模切边 */
  --sticker-ink: var(--ink);
  /* 只给对话框与弹出层的浮起投影 */
  --lift: 0 1px 2px rgba(11, 21, 38, 0.05), 0 12px 32px -12px rgba(11, 21, 38, 0.12);

  /* 字体栈三套，分工严格（规范 4.1）：展示字标题 700、按钮与芯片 600（09-22 主理人定比规范轻一级），正文系统字，机器输出等宽 */
  --font-display: "Baloo 2", "LXGW WenKai", "Noto Sans SC", ui-rounded, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "LXGW WenKai", system-ui, -apple-system, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;  /* 09-22 晚主理人定：正文、表格、输入框也用文楷常规体 */
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, "PingFang SC", "Microsoft YaHei", monospace;

  /* 三档弹簧加一条缓出（规范 5.1）；不支持 linear() 的浏览器用下面的回退曲线 */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-snappy: 280ms;
  --spring-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-smooth: 420ms;
  --spring-bouncy: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-bouncy: 560ms;
}
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring-snappy: linear(0, 0.012, 0.049, 0.107, 0.185, 0.278, 0.383, 0.493, 0.601, 0.702, 0.791, 0.865, 0.924, 0.967, 0.995, 1.013, 1.019, 1.016, 1.009, 1.003, 1);
    --spring-smooth: linear(0, 0.0037, 0.0142, 0.031, 0.0534, 0.0804, 0.1108, 0.1438, 0.1784, 0.2135, 0.2484, 0.3145, 0.3746, 0.4283, 0.4755, 0.5562, 0.6215, 0.6726, 0.7112, 0.7735, 0.8196, 0.854, 0.8793, 0.9185, 0.9458, 0.9647, 0.9779, 0.9921, 1);
    --spring-bouncy: linear(0, 0.0018, 0.0069 1.15%, 0.026 2.3%, 0.0637, 0.1135 5.18%, 0.2229 7.78%, 0.5977 15.84%, 0.7014, 0.7904, 0.8641, 0.9228, 0.9676 28.8%, 1.0032 31.68%, 1.0225, 1.0352 36.29%, 1.0431 38.88%, 1.046 42.05%, 1.0448 44.35%, 1.0407 47.23%, 1.0118 61.63%, 1.0025 69.41%, 0.9981 80.35%, 0.9992 99.94%);
  }
}

/* 规范 2.5 第 7 条：不做全站暗色，系统暗色时只把纸底压深一档 */
@media (prefers-color-scheme: dark) {
  :root { --paper: #eef2f6; }
}

/* ---------- 基础 ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
}

/* 链接：主墨文字，2px 青蓝下划线（规范 4.5）；导航、按钮、卡片链接各自取消 */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color 0.15s var(--ease-out); }
a:hover { text-decoration-color: var(--ink); }
.space a { color: #fff; text-decoration-color: var(--cyan-soft); }
.space a:hover { text-decoration-color: #fff; }

/* 焦点环全站一种：3px 青蓝，偏移 3px（规范 7.4） */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { background: rgba(18, 181, 214, 0.25); }

/* 列表不用圆点，用一条 8px 青蓝短线（规范 6.14） */
ul, ol { list-style: none; margin: 0; padding: 0; }
li { position: relative; padding-left: 16px; }
li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 8px; height: 2px; border-radius: 1px; background: var(--cyan); }

code { font: 13px var(--font-mono); background: var(--silver); padding: 1px 6px; border-radius: 4px; }
strong { font-weight: 500; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--cyan); vertical-align: -2px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.inline { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 应用壳（规范 7.3）：左侧栏 240 纸底，顶条 52 浅玻璃，主区最宽 1280 ---------- */

.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }

.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto; }
.side .plate { align-self: flex-start; margin: 2px 0 8px 8px; }

/* 导航项平时是透明胶囊，当前项长出边与影（规范 6.13） */
.sidenav { display: grid; gap: 4px; }
.sidenav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 2px solid transparent; border-radius: 999px; font: 600 14px/1.2 var(--font-display); color: var(--ink-2); text-decoration: none; transition: background-color 0.15s var(--ease-out); }
.sidenav a:hover { background: rgba(127, 220, 238, 0.16); color: var(--ink); }
.sidenav a.is-on { background: var(--cyan-soft); color: var(--ink); border-color: var(--sticker-ink); box-shadow: 2px 2px 0 var(--sticker-ink); }
.sidenav svg, .side-foot svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidenav .grp { margin: 10px 12px 2px; font: 400 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.side-foot { margin-top: auto; display: grid; gap: 4px; padding: 12px 4px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.side-foot .who { padding: 0 8px; display: grid; gap: 2px; }
.side-foot .who b { font: 600 14px/1.3 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.side-foot .who span { font: 400 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: pre-wrap; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; border: 2px solid transparent; border-radius: 999px; background: transparent; font: 600 13px/1.2 var(--font-display); color: var(--ink-2); text-decoration: none; cursor: pointer; transition: background-color 0.15s var(--ease-out); }
.side-foot a:hover, .side-foot button:hover { background: var(--silver); color: var(--ink); }
.side-foot a.is-on { background: var(--cyan-soft); color: var(--ink); border-color: var(--sticker-ink); box-shadow: 2px 2px 0 var(--sticker-ink); }
.side-foot form { display: contents; }

.main { min-width: 0; }

/* 顶条：浅玻璃，只有这一块玻璃（规范第八节拨盘：LOB 玻璃只有顶条） */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 28px;
  background: rgba(245, 248, 251, 0.78); color: var(--ink);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.topbar .where { font: 400 11px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); white-space: pre; }
.topbar .clock { margin-left: auto; font: 400 11px var(--font-mono); letter-spacing: 0.06em; color: var(--ink-3); white-space: pre; }
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: rgba(245, 248, 251, 0.98); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* 页面容器：主区最宽 1280，单件页 720，双栏 960 */
.page { max-width: 1280px; margin: 0 auto; padding: 0 28px 72px; }
.page-narrow { max-width: 720px; }
.page-mid { max-width: 960px; }
.page-wide { max-width: 1280px; }
.page-task { max-width: 800px; }

/* 页头（规范 6.8 区块标题行的页级版）：深青等宽编号加展示字标题，最右一枚芯片 */
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 26px 0 2px; }
.page-head .no { font: 400 11px var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-deep); white-space: pre; }
.page-head h1 { margin: 0; font: 700 26px/1.15 var(--font-display); letter-spacing: -0.015em; text-wrap: balance; }
.page-head .chip { margin-left: auto; }
.crumbs { margin: 8px 0 0; font: 12px var(--font-mono); letter-spacing: 0.04em; color: var(--ink-3); white-space: pre-wrap; }
.crumbs a { color: var(--ink-2); }
.crumbs .mono { color: var(--ink-2); }

/* ---------- 面板层：卡片、切格、表格（1px 边，无影） ---------- */

.card { margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.card-title { margin: 0 0 10px; font: 600 17px/1.3 var(--font-display); letter-spacing: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
h1.card-title { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.card-text { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card-text:last-child { margin-bottom: 0; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; }
.card-actions:empty { display: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head .card-title { margin-bottom: 0; }
.card-head > span { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mono-line { margin: 12px 0 0; font: 400 11px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); white-space: pre-wrap; }
.mono-line a { text-transform: none; letter-spacing: 0.04em; }

/* 可点击的面板：hover 边变深银、上浮 2px，缓出，不弹（规范 6.7） */
.card--link { display: block; color: inherit; text-decoration: none; transition: transform 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card--link:hover { transform: translateY(-2px); border-color: var(--silver-2); }
}

/* 1px 网格切格（规范 3.1）：并列的键值信息用切格，不用多张独立卡 */
.grid1 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; margin: 14px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.grid1 > div { display: grid; gap: 3px; padding: 12px 14px; background: var(--card); }
.grid1 dt { font: 400 10px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: pre; }
.grid1 dd { margin: 0; font: 400 14px/1.4 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
dl.grid1 { margin-bottom: 0; }

/* 表格是例外区（规范 6.9）：不歪、不铺色、不画竖线、不加投影，表头只有一条 2px 墨线 */
.table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 6px; font-size: 13.5px; }
.table th { padding: 8px 12px 10px; border-bottom: 2px solid var(--ink); text-align: left; white-space: nowrap; font: 400 11px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-2); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table td.mono, .table .mono { font: 400 13px var(--font-mono); font-variant-numeric: tabular-nums; }
.table tbody tr:hover td { background: var(--paper); }
.table .row-muted td { color: var(--ink-3); }
.table-dense td, .table-dense th { padding: 6px 8px; font-size: 13px; }
.table-dense td.mono { font-size: 12.5px; }
.table .btn--sm { min-height: 30px; }
@media (min-width: 1000px) {
  .table th { position: sticky; top: 52px; background: var(--card); z-index: 1; }
}
@media (max-width: 900px) {
  .card:has(.table) { overflow-x: auto; }
}

/* ---------- 贴纸层：按钮、芯片、提示条、印章、铭牌（2px 边加硬影，按下影归零） ---------- */

/* 按钮三级（规范 6.1）：主按钮青蓝面每屏一个，次按钮白面 hover 变浅青，幽灵按钮只有字 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--sticker-ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 600 15px/1.2 var(--font-display); white-space: nowrap; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; text-decoration: none;
  box-shadow: 3px 3px 0 var(--sticker-ink);
  transition: transform var(--dur-snappy) var(--spring-snappy), box-shadow var(--dur-snappy) var(--spring-snappy), background-color 0.15s var(--ease-out); }
.btn:hover { background: var(--cyan-soft); color: var(--ink); }
/* 按下配方（规范 5.3）：80ms 压平，松手 280ms 弹回，两段节奏不同 */
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--sticker-ink); transition-duration: 80ms; transition-timing-function: var(--ease-out); }
.btn--primary { background: var(--cyan); }
.btn--primary:hover { background: var(--cyan-hover); }
.btn--ghost { border-color: transparent; box-shadow: none; background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--silver); color: var(--ink); }
.btn--ghost:active { transform: translate(1px, 1px); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; box-shadow: 2px 2px 0 var(--sticker-ink); }
.btn--sm:active { transform: translate(2px, 2px); }
.btn--ghost.btn--sm { box-shadow: none; }
/* 危险动作（删除）：标红。幽灵版红字，hover 淡红底；主按钮版玫红面 */
.btn--danger { color: var(--rose-deep); }
.btn--danger:hover { background: color-mix(in srgb, var(--rose) 18%, #fff); color: var(--rose-deep); }
.btn--primary.btn--danger { background: var(--rose); color: var(--ink); }
.btn--primary.btn--danger:hover { background: color-mix(in srgb, var(--rose) 85%, #fff); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:active { transform: none; box-shadow: 3px 3px 0 var(--sticker-ink); }
.space .btn--ghost { color: var(--on-space-2); }
.space .btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
/* 深空上的贴纸：只留纸色的 2px 边，不带偏移硬影。规范 3.2 原写白色模切边加白影，主理人 09-22 看过觉得怪，定为去掉；
   按下改成轻微缩小（同规范 3.6 玻璃胶囊的手感），不再平移 */
.space .btn, .space .chip, .space .note, .space .plate { box-shadow: none; }
.space .btn:active, .space .btn--sm:active { transform: scale(0.97); box-shadow: none; }
.space .btn:disabled:active { transform: none; }

/* 进行中态（规范 6.11）：按钮变成三个步进跳出的墨点，不转圈 */
.is-busy { position: relative; pointer-events: none; color: transparent !important; }
.is-busy > * { visibility: hidden; }
.is-busy::after { content: ""; position: absolute; top: 50%; left: calc(50% - 18px); height: 8px; width: 36px; margin-top: -4px;
  background: radial-gradient(circle, var(--ink) 3px, transparent 3.5px) 0 50% / 12px 8px repeat-x; animation: dots 1.05s steps(3, end) infinite; }
@keyframes dots { from { width: 12px; } to { width: 48px; } }

/* 状态芯片（规范 6.2）：等待纸底、常规浅青、进行蜂蜜黄、紧急杏橙、完成薄荷、失败玫红；灯旁必有文字 */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 3px;
  border: 1.5px solid var(--sticker-ink); border-radius: 999px; background: var(--card); color: var(--ink);
  font: 600 12px/1.6 var(--font-display); box-shadow: 1.5px 1.5px 0 var(--sticker-ink); white-space: nowrap; vertical-align: middle; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--silver-2); }
.chip--wait { background: var(--paper); }
.chip--info { background: var(--cyan-soft); }
.chip--info i { background: var(--cyan); }
.chip--prog { background: var(--honey); }
.chip--prog i { background: var(--honey-deep); animation: pulse 1.6s ease-in-out infinite; }
.chip--warn { background: var(--apricot); }
.chip--warn i { background: var(--apricot-deep); }
.chip--done { background: var(--mint); }
.chip--done i { background: var(--mint-deep); }
.chip--fail { background: var(--rose); }
.chip--fail i { background: var(--rose-deep); }
.chip--steel i { background: var(--steel); }
.chip--live i { animation: pulse 1.6s ease-in-out infinite; }  /* 在线与访问：在线的灯呼吸 */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* 提示条：页面级的通知与出错，做成静止的吐司贴纸；提示浅青、进行蜂蜜黄、请注意杏橙、出错玫红、完成薄荷 */
.note { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px 11px;
  border: 2px solid var(--sticker-ink); border-radius: 12px; background: var(--card); color: var(--ink);
  box-shadow: 3px 3px 0 var(--sticker-ink); font: 600 14px/1.35 var(--font-display); transform: rotate(-0.4deg); max-width: 100%; }
.note--info { background: var(--cyan-soft); }
.note--prog { background: var(--honey); }
.note--warn { background: var(--apricot); }
.note--err { background: var(--rose); }
.note--done { background: var(--mint); }
.card .note { margin-top: 0; margin-bottom: 12px; }

/* 印章（规范 6.12）：盖在完成或批准的东西上，一页最后一处弹性动效 */
.seal { display: inline-block; padding: 5px 10px 6px; border: 2.5px solid currentColor; border-radius: 6px;
  font: 700 13px/1 var(--font-display); letter-spacing: 0.14em; color: var(--mint-deep); transform: rotate(-8deg); opacity: 0.92; }
.seal--fail { color: var(--rose-deep); }
.seal--ink { color: var(--ink); }
.seal.is-in { animation: seal-in 0.4s var(--spring-bouncy) both; }
@keyframes seal-in { from { opacity: 0; transform: rotate(-8deg) scale(1.5); } to { opacity: 0.92; transform: rotate(-8deg) scale(1); } }

/* 品牌铭牌（规范 6.13）：一张微歪 1 度的小贴纸 */
.plate { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 6px; border: 2px solid var(--sticker-ink); border-radius: 8px;
  background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--sticker-ink); font: 700 13px/1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none; transform: rotate(-1deg); }
.plate small { font: 400 10px var(--font-mono); letter-spacing: 0.14em; color: var(--ink-3); }

/* 亮块（规范 6.3）：荧光笔涂过去的那一处，一页只有一个 */
.hl { display: inline-block; padding: 0 0.18em 0.05em; border-radius: 10px; background: var(--cyan-soft); color: var(--ink);
  transform: rotate(-1deg); animation: hl-in var(--dur-bouncy) var(--spring-bouncy) both; }
@keyframes hl-in { from { opacity: 0; transform: rotate(-1deg) scale(0.86); } to { opacity: 1; transform: rotate(-1deg) scale(1); } }

/* 标签栏（项目分区）：同导航项，当前标签长出边与影 */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 20px 0 0; }
.tabs .tab { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 2px solid transparent; border-radius: 999px;
  font: 600 14px/1.2 var(--font-display); color: var(--ink-2); text-decoration: none; transition: background-color 0.15s var(--ease-out); }
.tabs a.tab:hover { background: rgba(127, 220, 238, 0.16); color: var(--ink); }
.tabs .tab.is-on { background: var(--cyan-soft); color: var(--ink); border-color: var(--sticker-ink); box-shadow: 2px 2px 0 var(--sticker-ink); }
.tabs .tab.is-off { color: var(--ink-3); cursor: default; }

/* 吐司（规范 6.10）：从底部弹入 380ms，淡出 180ms，3.5 秒自收 */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 60; display: grid; gap: 10px; justify-items: center; translate: -50% 0; pointer-events: none; }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink); font: 600 14px/1.3 var(--font-display); pointer-events: auto; transform: rotate(-0.6deg); animation: toast-in 0.38s var(--spring-snappy) both; }
.toast--done { background: var(--mint); }
.toast--fail { background: var(--rose); }
.toast--info { background: var(--cyan-soft); }
.toast--prog { background: var(--honey); }
.toast--warn { background: var(--apricot); }
.toast.is-out { animation: toast-out 0.18s var(--ease-out) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(0.94) rotate(-0.6deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(-0.6deg); } }
@keyframes toast-out { to { opacity: 0; } }

/* ---------- 槽：输入与字段四态（规范 6.4） ---------- */

.form { margin-top: 6px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; }
.form-row .card-actions { grid-column: 1 / -1; margin-top: 4px; }
.form-row .field { margin: 0; }
.field { display: grid; gap: 6px; margin: 12px 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field-label { font: 400 11px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); white-space: pre-wrap; }
.input { width: 100%; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--ink);
  font: 16px var(--font-body); outline: none; transition: border-color 0.15s var(--ease-out); }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--cyan); }
.input:disabled { background: var(--paper); color: var(--ink-3); }
textarea.input { padding: 10px 14px; min-height: 88px; line-height: 1.5; resize: vertical; }
input[type="file"].input { padding: 8px 12px; font-size: 14px; }
input[type="date"].input { font-family: var(--font-mono); }
.input-small { min-height: 36px; padding: 0 10px; font-size: 14px; width: auto; }
textarea.input-small { padding: 6px 10px; }
/* 验证码与邀请码：24px 以上的数字用展示字 800（规范 4.4） */
.input-code { font: 700 26px/1.2 var(--font-display); letter-spacing: 0.18em; text-align: center; font-variant-numeric: tabular-nums; }
/* 占位提示是中英混排（如「6 位数字」），展示字里的数字比汉字矮一截，所以占位统一用正文字体、常规字重、正常字距；输入的数字仍是展示字 */
.input-code::placeholder { font: 400 17px/1.2 var(--font-body); letter-spacing: 0.06em; }
/* 下拉框：两段渐变画一个 V，纸面上唯一允许的 linear-gradient（规范 6.5） */
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
/* 出错态：玫红边、抖一次、说明变深玫红，不用红字 */
.field.is-error .input { border-color: var(--rose); animation: shake 0.32s var(--ease-out); }
.field.is-error > span { color: var(--rose-deep); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.bulk-bar { margin: 0 0 8px; }
.ext { font-size: 12px; color: var(--ink-3); text-decoration: none; margin-left: 4px; }

/* 投递口：一个 2px 虚线的槽；默认、拖入、已选、出错四态 */
.drop { position: relative; display: grid; gap: 6px; place-items: center; margin: 8px 0; padding: 26px 20px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--card); text-align: center; cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out); }
.drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.drop-title { font: 600 15px var(--font-display); color: var(--ink); }
.drop-hint { margin: 0; }
.drop-name { font: 400 13px var(--font-mono); color: var(--ink-2); }
.drop.is-over { border-style: solid; border-color: var(--cyan); background: var(--paper); }
.drop.is-ready { border-style: solid; border-color: var(--mint-deep); }
.drop.is-error { border-style: solid; border-color: var(--rose); animation: shake 0.32s var(--ease-out); }

/* ---------- 任务页零件 ---------- */

/* 任务牌：一块面板，轮次是展示字 800 大数字，状态用芯片说 */
.board { display: grid; gap: 10px; margin-top: 20px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.board .frac { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.board .frac b { font: 700 34px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.board .frac span { font: 400 12px var(--font-mono); letter-spacing: 0.06em; color: var(--ink-3); }
.board .frac .chip, .board .frac .seal { margin-left: auto; }
.board--run .frac b { color: var(--cyan-deep); }
.board--done .frac b { color: var(--mint-deep); }
.board--fail .frac b { color: var(--rose-deep); }
.board-title { margin: 0; font: 600 17px/1.35 var(--font-display); }
.board .mono-line { margin: 0; text-transform: none; }  /* 这一行里有模型 ID，保留原大小写 */
.board .card-text { margin: 0; }
.board + .card { margin-top: 20px; }

/* 任务板上的需协调卡：可点的面板 */
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 8px; }
.board-link { margin-top: 0; }
.board-link .card-text { margin: 0; }

/* 日志：纸底的等宽面板，只放机器输出（深空不出现在这里） */
.klog { margin: 0; max-height: 280px; overflow: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink-2);
  font: 12px/1.75 var(--font-mono); white-space: pre-wrap; word-break: break-word; }
.klog .t { color: var(--ink-3); margin-right: 8px; }
.klog .bad { color: var(--rose-deep); }
.klog .ok { color: var(--mint-deep); }
.klog .caret { display: inline-block; width: 6px; height: 12px; margin-left: 4px; vertical-align: -2px; background: var(--cyan); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* 产出框与审核记录块：纸底面板 */
.output { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); font: 15px/1.7 var(--font-body); white-space: pre-wrap; word-break: break-word; }
.review { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.review-head { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- 总览页顶部的读数屏：LOB 里唯一一块深空（登录页除外） ---------- */

.readout-strip { position: relative; overflow: hidden; margin-top: 20px; padding: 20px 22px 22px; border-radius: 18px; background: var(--space); color: var(--on-space); --sticker-ink: var(--paper);
  background-image: radial-gradient(ellipse 70% 70% at 50% -10%, rgba(18, 181, 214, 0.18), transparent 70%); }
.readout-strip .lbl { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; font: 400 10.5px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--on-space-3); white-space: pre; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--space-line); border: 1px solid var(--space-line); border-radius: 10px; overflow: hidden; }
.kpi > a, .kpi > div { display: grid; gap: 2px; padding: 12px 14px; background: var(--space); color: inherit; text-decoration: none; }
.kpi > a:hover { background: var(--space-2); }
.kpi .k { font: 400 10px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; color: var(--on-space-3); }
.kpi b { font: 600 30px/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: #fff; }
.kpi b small { font-size: 0.45em; color: var(--on-space-3); letter-spacing: 0; margin-left: 4px; }
.kpi b.is-hot { color: var(--apricot); } /* 读数屏上要人处理的数字用杏橙（深空上对比够） */

/* 灯（规范 2.2）：8px 圆点，深空上发光，白纸上不发光 */
.lamp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.space .lamp { box-shadow: 0 0 0 3px rgba(18, 181, 214, 0.22), 0 0 10px var(--cyan); }
.lamp--live { animation: pulse 1.6s ease-in-out infinite; }
.lamp--mint { background: var(--mint); }
.lamp--rose { background: var(--rose); }
.lamp--idle { background: var(--silver-2); box-shadow: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 400 11px var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); white-space: pre; }
.space .eyebrow { color: var(--on-space-3); }

/* ---------- 门禁页（登录、验证码、注册）：整页深空，星图只在这里，表单装在一块玻璃里 ---------- */

.gate { background: var(--space); }
.gate .space { position: relative; overflow: hidden; min-height: 100vh; display: grid; align-content: center; padding: 48px 24px; color: var(--on-space); --sticker-ink: var(--paper);
  background: var(--space); background-image: radial-gradient(ellipse 70% 45% at 50% -5%, rgba(18, 181, 214, 0.16), transparent 70%); }
.gate-wrap { position: relative; z-index: 1; display: grid; gap: 18px; width: min(100%, 520px); margin: 0 auto; }
.gate-wrap h1 { margin: 0 0 8px; font: 700 clamp(26px, 4vw, 32px)/1.15 "LXGW WenKai", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; letter-spacing: 0.05em; color: #fff; text-wrap: balance; }  /* 霞鹜文楷粗体（主理人 09-22 要看效果），字距 0.05em；只有门禁页主标题：字母也用思源黑体，整行一个脾气（主理人 09-22） */
.gate-wrap .card-text { color: var(--on-space-2); font-size: 15px; }
.gate-wrap .field > span { color: var(--on-space-3); }
.gate-wrap .fine { font: 500 14px var(--font-mono); letter-spacing: 0.12em; color: var(--on-space-2); text-align: center; white-space: pre-wrap; }

/* 门禁页顶部的品牌行（主理人 09-22 定）：灯、公司红色标志、公司名每 3 秒中英互换、最右一支羽毛笔做点缀 */
.gate-brand { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.gate-logo { height: 26px; width: auto; flex: none; }
.brand-swap { position: relative; top: 2px; display: inline-grid; align-items: center; height: 1.5em; font: 600 15px/1.5 var(--font-display); color: var(--on-space); letter-spacing: 0.02em; }  /* 汉字在行框里偏高，整体压低 2px 和标志对齐 */
.brand-swap b { grid-area: 1 / 1; font-weight: inherit; white-space: nowrap; animation: swap-zh 12s ease-in-out infinite; }
.brand-swap .en { font-weight: 700; letter-spacing: 0; animation-name: swap-en; }
/* 12 秒一圈：前 6 秒中文，后 6 秒英文（主理人 09-22 定 6 秒一换），换的时候 0.3 秒淡入淡出 */
@keyframes swap-zh { 0%, 47.5% { opacity: 1; transform: none; } 50%, 97.5% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
@keyframes swap-en { 0%, 47.5% { opacity: 0; transform: translateY(4px); } 50%, 97.5% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(4px); } }
.quill { position: relative; margin-left: auto; width: 34px; height: 34px; color: var(--cyan-soft); transform-origin: 30% 85%; animation: quill-float 2.4s ease-in-out infinite; }  /* 主理人 09-22 嫌太隐蔽：动作放大、2.4 秒一圈 */
.quill svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(18, 181, 214, 0.55)); }
.quill::after { content: ""; position: absolute; left: 0; bottom: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(18, 181, 214, 0.6); animation: ink-drip 1.2s ease-in-out infinite; }
/* 像在写字：抬起、落笔、划一下、再抬起，位移十几像素，转动二十来度 */
@keyframes quill-float {
  0% { transform: translate(0, 0) rotate(-16deg); }
  28% { transform: translate(-5px, -14px) rotate(6deg); }
  52% { transform: translate(4px, -4px) rotate(14deg); }
  76% { transform: translate(-3px, -16px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(-16deg); }
}
@keyframes ink-drip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.5); } }
.gate-wrap .mono-line { color: var(--on-space-3); }
.space .input { border-color: rgba(245, 248, 251, 0.35); background: rgba(255, 255, 255, 0.06); color: #fff; }
.space .input:focus { border-color: var(--cyan); }
.space .input::placeholder { color: var(--on-space-3); }
.space .input-code { color: #fff; }
.space select.input { background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); }

/* 液态玻璃（规范 3.6）：只给深空上的浮层。背后有星图和一团慢漂的光，边上一根发丝边加顶部高光 */
.glass { position: relative; overflow: hidden; padding: 26px 26px 24px; border-radius: 20px;
  background: rgba(19, 34, 57, 0.38);
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.05); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(ellipse 80% 40% at 28% 0%, rgba(255, 255, 255, 0.16) 0%, transparent 70%); }
.glass > * { position: relative; }
@media (prefers-reduced-transparency: reduce) {
  .glass { background: rgba(19, 34, 57, 0.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
/* 光团：位置由 gate.js 每隔几秒随机换一个点（以玻璃卡为中心的一个大矩形范围内），这里只负责慢慢滑过去。
   主理人 09-22 定：不要只在左上角小幅来回，要在整个界面范围里随机漂 */
.blob { position: absolute; left: 0; top: 0; width: 52vmin; height: 52vmin; margin: -26vmin 0 0 -26vmin; border-radius: 50%; pointer-events: none; filter: blur(40px); opacity: 0.55;
  background: radial-gradient(circle at 40% 40%, rgba(18, 181, 214, 0.55), rgba(111, 159, 216, 0.25) 55%, transparent 72%);
  transform: translate(50vw, 45vh); will-change: transform; transition: transform 8s ease-in-out; }

/* 星图（规范 3.4）：固定种子的随机星图，由 app.js 生成；星星呼吸、近邻连线偶尔亮一下、三条流星 */
.sky { position: absolute; inset: 0; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%); }
.sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky line { stroke: var(--cyan-soft); stroke-width: 1; animation: flare var(--d, 10s) linear infinite; animation-delay: var(--dl, 0s); }
.star { position: absolute; border-radius: 50%; background: #c9d2dc; animation: twinkle var(--d, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
.star.big { background: var(--cyan-soft); box-shadow: 0 0 8px rgba(18, 181, 214, 0.8); }
.streak { position: absolute; width: 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-soft)); rotate: 28deg; opacity: 0;
  animation: streak var(--d, 14s) ease-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 0%, 100% { opacity: var(--o, 0.6); transform: scale(1); } 50% { opacity: calc(var(--o, 0.6) * 0.15); transform: scale(0.6); } }
@keyframes flare { 0%, 88%, 100% { opacity: 0.16; } 92% { opacity: 0.7; } }
@keyframes streak { 0% { opacity: 0; transform: translate(0, 0); } 6% { opacity: 0.9; } 18%, 100% { opacity: 0; transform: translate(220px, 120px); } }

/* ---------- 断点（规范 7.5） ---------- */

@media (max-width: 900px) {
  /* 侧栏收成 64px 图标栏：只留图标，文字藏起来 */
  .app { grid-template-columns: 64px minmax(0, 1fr); }
  .side { padding: 14px 10px; gap: 10px; }
  .side .plate { margin-left: 0; padding: 5px 8px 6px; }
  .side .plate b { display: none; }
  .sidenav a, .side-foot a, .side-foot button { justify-content: center; padding: 0; min-height: 40px; width: 40px; margin: 0 auto; }
  .sidenav a span, .side-foot a span, .side-foot button span, .sidenav .grp, .side-foot .who { display: none; }
  .topbar { padding: 0 16px; }
  .page { padding: 0 16px 56px; }
  .form-row { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 24px; }
  .table th { position: static; }
}
@media (max-width: 640px) {
  .page-head { padding-top: 18px; }
  .page-head h1 { font-size: 22px; }
  .card { padding: 16px; }
  .card-actions { gap: 8px; }
  .gate .space { padding: 32px 16px; }
  .glass { padding: 20px 18px; }
}
@media (pointer: coarse) {
  .btn, .tabs .tab, .sidenav a { min-height: 44px; }
}

/* ---------- 二层任务板：五列看板、任务卡、公开只读页 ---------- */

/* 五列：面板层，纸底的列装白卡；需协调列染 6% 青（设计图 7.1 灯色分配） */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.kcol { display: flex; flex-direction: column; min-height: 220px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out); }
.kcol--blocked { background: color-mix(in srgb, var(--apricot) 10%, var(--paper)); }
.kcol.is-over { border-color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, var(--paper)); }
.kcol-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px 8px; font: 600 13px/1.3 var(--font-display); color: var(--ink-2); }
.kcol-head .kcol-count { font: 600 13px var(--font-mono); color: var(--ink-3); }
.kcol--blocked .kcol-head { color: var(--apricot-deep); }
.kcol-body { display: grid; gap: 8px; padding: 0 8px 10px; align-content: start; }

/* 任务卡：白卡，1px 边，无影；拖动时半透明；紧急的左边一道玫红细线 */
.kcard { position: relative; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: grab; transition: border-color 0.15s var(--ease-out); }
.kcard:hover { border-color: var(--silver-2); }
.kcard.is-dragging { opacity: 0.5; cursor: grabbing; }
.kcard--urgent { box-shadow: inset 3px 0 0 var(--apricot); }
.kcard--ai { cursor: default; border-style: dashed; border-color: var(--cyan); }
.kcard-title { margin: 0 0 4px; font: 600 14px/1.4 var(--font-display); overflow-wrap: anywhere; }
.kcard-title a { text-decoration: none; }
.kcard-title a:hover { text-decoration: underline; text-decoration-color: var(--cyan); }
.kcard-meta { margin: 0 0 6px; font: 400 11px var(--font-mono); letter-spacing: 0.02em; color: var(--ink-3); white-space: pre-wrap; }
.kcard-text { margin: 0; font-size: 13px; color: var(--ink-2); }
.kcard-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; align-items: center; }
.kcard-chips .chip { font-size: 11px; padding: 1px 8px 2px; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--silver); font: 400 11px var(--font-mono); color: var(--ink-2); }
.tag--cost { background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.kstats dd { font: 700 24px/1.1 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kstats .tiny { font: 400 11px var(--font-mono); letter-spacing: 0.06em; margin-left: 6px; vertical-align: middle; }
.kfilter { margin-top: 14px; }
.hub dd a { display: inline-block; margin: 2px 0; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kanban { grid-template-columns: 1fr 1fr; } }

/* 公开只读页：白底、没有壳，只有一张铭牌和内容 */
.plain { background: var(--paper); }
.plain .page-head .plate { margin-right: 8px; }

/* ---------- 应用壳里的同页换页（app.js 第 5 段）：侧栏当前项的胶囊在两个项之间滑过去变形，内容区轻微上浮淡入 ----------
   只给三样东西起名：顶条、内容区、侧栏当前项；整页底不做交叉淡化，所以侧栏本身纹丝不动 */
.app .topbar { view-transition-name: topbar; }
.app .page { view-transition-name: page; }
.app .sidenav a.is-on, .app .side-foot a.is-on { view-transition-name: nav-pill; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(nav-pill) { animation-duration: 0.32s; animation-timing-function: var(--spring-snappy); }
::view-transition-old(nav-pill), ::view-transition-new(nav-pill) { animation-duration: 0.16s; }
::view-transition-group(page) { animation-duration: 0.34s; animation-timing-function: var(--ease-out); }
::view-transition-old(page) { animation: page-out 0.14s var(--ease-out) both; }
::view-transition-new(page) { animation: page-in 0.34s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
::view-transition-old(topbar), ::view-transition-new(topbar) { animation-duration: 0.18s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 0.12s !important; }
  ::view-transition-new(page) { animation-name: gate-in-plain; }
  @keyframes gate-in-plain { from { opacity: 0; } }
}

/* 减弱动效（规范 5.7）：位移换淡入，星图静止，按下保留影归零，颜色反馈保留 */
@media (prefers-reduced-motion: reduce) {
  .star, .streak, .sky line, .lamp--live, .chip--prog i, .chip--live i, .hl, .seal.is-in, .toast, .klog .caret, .brand-swap b, .quill, .quill::after { animation: none !important; }
  .blob { transition: none; }
  .brand-swap .en { display: none; }
  .btn, .btn:active, .plate, .tabs .tab, .sidenav a { transition: background-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
  .btn:active { transform: none; }
  .card--link:hover { transform: none; }
  .drop.is-error, .field.is-error .input { animation: none; }
}

/* ---- 一层 投标：七格流水线（就是这层楼的标签栏）、AI 建议区、零碎 ---- */
/* 七格严格等宽（minmax(0, 1fr)）：按内容分宽时英文小字短的那格会被挤成一字一行 */
.pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 16px 0 20px; padding: 0; list-style: none; }
.pipe-step > a, .pipe-step > span { display: flex; flex-direction: column; gap: 2px; min-height: 74px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; transition: background-color 0.15s var(--ease-out); }
.pipe-step > a:hover { background: var(--cyan-soft); }
.pipe-step.is-done > a { background: var(--mint); }
.pipe-step.is-on > a { background: var(--cyan); box-shadow: 4px 4px 0 var(--ink); }
.pipe-step.is-next > span { color: var(--ink-3); background: var(--paper); }
/* 还没到的步骤能点进去先看：白格、字淡一点，悬停时描边变青蓝 */
.pipe-step.is-next > a { color: var(--ink-3); background: var(--paper); }
.pipe-step.is-next > a:hover { border-color: var(--cyan); color: var(--ink); }
/* 只读预览：正文里的表单看得见点不了 */
.bid-preview form:not([method="get"]) { opacity: 0.55; pointer-events: none; }
.bid-preview form:not([method="get"]) .btn { box-shadow: none; }
.pipe-step.is-locked > span { color: var(--ink-3); background: var(--paper); border-style: dashed; }
.pipe-step.is-here > a .pipe-zh { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pipe-no { font: 400 10px var(--font-mono); letter-spacing: 0.12em; opacity: 0.75; }
.pipe-zh { font: 700 15px/1.2 var(--font-display); }
.pipe-en { overflow: hidden; font: 400 10px var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; opacity: 0.7; }
@media (max-width: 900px) { .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sugg { margin: 14px 0 0; padding: 14px 16px 12px; border: 2px dashed var(--ink); border-radius: 12px; background: color-mix(in srgb, var(--cyan) 6%, #fff); }
.sugg .card-title { font-size: 16px; }
.bullets { margin: 6px 0 12px; padding-left: 1.2em; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.bullets li { margin: 2px 0; }
.card-sub { margin: 16px 0 6px; font: 700 14px/1.3 var(--font-display); color: var(--ink); }
.chipbtn { padding: 0; border: 0; background: none; cursor: pointer; }
.chipbtn:hover .chip { background: var(--cyan-soft); }
.nowrap { white-space: nowrap; }
.plainlink { color: inherit; text-decoration: none; }
.plainlink:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.fold { margin-top: 14px; }
.fold > summary { cursor: pointer; font: 600 14px var(--font-display); color: var(--ink-2); }
.radios { gap: 18px; align-items: center; }
.form--tight { display: grid; gap: 6px; margin: 0; }

/* 表格里的数字列右对齐；投标排期里拖过截止的任务整行玫红字 */
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-late td { color: var(--rose-deep); }

/* 甘特条（投标第 3 步）：左列任务名与负责人，右边按天铺开。
   横条是任务（浅青待办、蜂蜜黄进行中与审核中、杏橙需协调、薄荷完成、玫红拖过截止；09-24 按状态四档补改），菱形是里程碑，玫红竖线是投标截止，青蓝虚线是今天。
   窄屏时只有甘特条自己横向滚动，整页不横滚。 */
.gantt { --gl: 210px; overflow-x: auto; margin-top: 6px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); }
.gantt-inner { position: relative; min-width: 760px; overflow: hidden; }
.gantt-head, .gantt-row { display: grid; grid-template-columns: var(--gl) 1fr; align-items: stretch; }
.gantt-head { height: 30px; border-bottom: 2px solid var(--ink); font: 400 11px var(--font-mono); color: var(--ink-3); }
.gantt-head .gantt-label { justify-content: center; letter-spacing: 0.10em; }
.gantt-row { min-height: 40px; border-bottom: 1px solid var(--line-2); }
.gantt-row:last-of-type { border-bottom: 0; }
.gantt-label { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-width: 0; padding: 4px 12px; border-right: 1px solid var(--line); font-size: 13px; }
.gantt-label a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.gantt-owner { font: 400 11px var(--font-mono); color: var(--ink-3); }
.gantt-track { position: relative; }
.gantt-tick { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; }
.gantt-bar { position: absolute; top: 50%; height: 14px; min-width: 6px; margin-top: -7px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cyan-soft); }
.gantt-bar.is-doing, .gantt-bar.is-review { background: var(--honey); }
.gantt-bar.is-blocked { background: var(--apricot); }
.gantt-bar.is-done { background: var(--mint); }
.gantt-bar.is-late { background: var(--rose); }
.gantt-ms { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid var(--ink); background: var(--ink); transform: rotate(45deg); }
.gantt-ms.is-done { background: var(--mint); }
.gantt-ms.is-late { background: var(--rose); }
.gantt-lines { position: absolute; top: 0; bottom: 0; left: var(--gl); right: 0; pointer-events: none; }
.gantt-deadline { position: absolute; top: 0; bottom: 0; margin-left: -2px; border-left: 2px solid var(--rose); }
.gantt-deadline span { position: absolute; top: 34px; right: 4px; padding: 0 4px; border-radius: 4px; background: var(--card); font: 400 11px var(--font-mono); color: var(--rose-deep); white-space: nowrap; }
.gantt-today { position: absolute; top: 30px; bottom: 0; border-left: 1px dashed var(--cyan-deep); }
@media (max-width: 640px) { .gantt { --gl: 140px; } }

/* 侧栏图标悬停小动画：鼠标停到菜单项上，图标里的零件动一下；离开就回原样。
   按规范第五节：只动 transform 与 opacity；进来 280ms 利落弹簧，离开 180ms 缓出（出现慢、消失快）；
   只给能悬停的精确指针（触屏没有悬停）；系统开了「减弱动态效果」就一律不动。
   两种写法：换姿势的（屋顶、前片、对勾、芯片、票、箭头）用 transition，停着就保持；晃一下的（柱子、奖章、人、窗、点头）用只播一次的 animation */
.side svg .i-check { opacity: 0; } /* 盾牌里的对勾静止时一律透明，放在条件外面，触屏与减弱动效的人看到的也是原样 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .sidenav svg, .side-foot svg { overflow: visible; } /* 零件动起来会探出 24 格画布一点，别被裁掉 */
  .side svg :is(.i-roof, .i-flap, .i-check, .i-chip, .i-ticket, .i-arrow, .i-medal, .i-c1, .i-c2, .i-c3, .i-p1, .i-p2, .i-head) {
    transform-box: fill-box; transform-origin: center; transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
  }
  :is(.sidenav a, .side-foot a, .side-foot button):hover svg :is(.i-roof, .i-flap, .i-check, .i-chip, .i-ticket, .i-arrow) {
    transition: transform var(--dur-snappy) var(--spring-snappy), opacity var(--dur-snappy) var(--ease-out);
  }
  /* 总览：屋顶抬起 */
  :is(.sidenav a):hover .i-roof { transform: translateY(-2.5px); }
  /* 项目：前片以底边为轴往前倾，像文件夹被掀开 */
  .side svg .i-flap { transform-origin: 0 100%; }
  .sidenav a:hover .i-flap { transform: skewX(-14deg) scaleY(0.8); }
  /* 用户管理：对勾静止时透明，悬停时放大淡入 */
  .side svg .i-check { transform: scale(0.4); }
  .sidenav a:hover .i-check { opacity: 1; transform: scale(1); }
  /* 模型与额度：芯片转四分之一圈 */
  .sidenav a:hover .i-chip { transform: rotate(90deg); }
  /* 邀请码：票歪一下、抬一点 */
  .sidenav a:hover .i-ticket { transform: translateY(-1px) rotate(-12deg); }
  /* 退出登录：箭头往外滑 */
  .side-foot button:hover .i-arrow { transform: translateX(2.5px); }
  /* 任务板：三根柱子依次跳，错开 60ms */
  .sidenav a:hover :is(.i-c1, .i-c2, .i-c3) { animation: i-hop 420ms var(--ease-out) both; }
  .sidenav a:hover .i-c2 { animation-delay: 60ms; }
  .sidenav a:hover .i-c3 { animation-delay: 120ms; }
  /* 达人库：小的先跳，大的跟着 */
  .sidenav a:hover .i-p2 { animation: i-hop 420ms var(--ease-out) both; }
  .sidenav a:hover .i-p1 { animation: i-hop-small 420ms var(--ease-out) 70ms both; }
  /* 投标：奖章以顶上为轴晃两下停住 */
  .side svg .i-medal { transform-origin: 50% 0; }
  .sidenav a:hover .i-medal { animation: i-swing 640ms var(--ease-out) both; }
  /* 客户：窗户从下往上一层层亮，错开 50ms */
  .sidenav a:hover :is(.i-w1, .i-w2, .i-w3) { animation: i-blink 360ms var(--ease-out) both; }
  .sidenav a:hover .i-w3 { animation-delay: 0ms; }
  .sidenav a:hover .i-w2 { animation-delay: 50ms; }
  .sidenav a:hover .i-w1 { animation-delay: 100ms; }
  /* 个人设置：点一下头 */
  .side-foot a:hover .i-head { animation: i-nod 420ms var(--ease-out) both; }
}
@keyframes i-hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } 70% { transform: translateY(0.6px); } }
@keyframes i-hop-small { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-1.5px); } 70% { transform: translateY(0.3px); } }
@keyframes i-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 55% { transform: rotate(10deg); } 80% { transform: rotate(-4deg); } }
@keyframes i-blink { 0%, 100% { opacity: 1; } 45% { opacity: 0.1; } }
@keyframes i-nod { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(1.5px); } 70% { transform: translateY(-0.8px); } }

/* 投标第 4 步：待采用的 AI 稿用青蓝虚线框圈出来，和正式稿分开 */
.pending { margin-top: 14px; padding: 12px 14px; border: 2px dashed var(--cyan-deep); border-radius: 12px; }
.pending .card-head { margin-bottom: 8px; }

/* ---------- 投标第 5、6 步：审批签名 ---------- */
.sig-thumb { display: block; max-width: 120px; max-height: 44px; object-fit: contain; }
.sig-preview { display: block; max-width: 280px; max-height: 110px; object-fit: contain; padding: 8px; border: 2px dashed var(--line); border-radius: 10px; background: var(--card); }
.table tr.is-current td { background: rgba(18, 181, 214, 0.08); }

/* ---------- 反馈（所有人）与反馈收件（主理人） ---------- */
.sidenav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border: 1.5px solid var(--sticker-ink); border-radius: 999px; background: var(--apricot); color: var(--ink); font: 600 11px/17px var(--font-mono); text-align: center; }
@media (max-width: 900px) {
  .sidenav a .nav-badge { position: absolute; top: -2px; right: -4px; margin: 0; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; line-height: 13px; }
}
.fb-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.fb-kind { position: relative; display: grid; gap: 2px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.fb-kind input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-kind b { font: 600 14px/1.3 var(--font-display); color: var(--ink); }
.fb-kind span { font-size: 12px; color: var(--ink-3); }
.fb-kind:has(input:checked) { padding: 10px 12px; border: 2px solid var(--sticker-ink); background: var(--cyan-soft); box-shadow: 2px 2px 0 var(--sticker-ink); }
.fb-kind:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 3px; }
.fb-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fb-files li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 13px; }
.fb-files li img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fb-files li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.fb-files li::before { content: none; }
.fb-item { padding: 12px 0; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.fb-item:first-of-type { border-top: 0; padding-top: 0; }
.fb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fb-head .mono { font-size: 12px; color: var(--ink-3); }
.fb-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: var(--ink); }
.fb-body { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); }
.fb-reply { padding: 10px 12px; border-left: 2px solid var(--mint-deep); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--mint) 8%, #fff); display: grid; gap: 4px; }
.fb-reply .mono { font-size: 11px; color: var(--ink-3); }
.fb-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-grid a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--card); }
.fb-grid img { display: block; max-width: 220px; max-height: 160px; object-fit: contain; }
.fb-others { margin: 0; padding-left: 18px; font-size: 14px; }
.fb-ua { overflow-wrap: anywhere; text-transform: none; letter-spacing: 0.04em; } /* 浏览器信息是原始数据，保留原大小写 */
/* 反馈与反馈收件的图标悬停小动画，规矩同上一段：只动 transform 与 opacity，触屏与减弱动效不动 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg :is(.i-bubble, .i-drop) { transform-box: fill-box; transform-origin: center; transition: transform 180ms var(--ease-out); }
  .side svg .i-bubble { transform-origin: 0 100%; }
  .sidenav a:hover :is(.i-bubble, .i-drop) { transition: transform var(--dur-snappy) var(--spring-snappy); }
  .sidenav a:hover .i-bubble { transform: rotate(-6deg); }
  .sidenav a:hover .i-bang { animation: i-hop 420ms var(--ease-out) 40ms both; }
  .sidenav a:hover .i-drop { transform: translateY(2px); }
  .side svg .i-bang { transform-box: fill-box; transform-origin: center; }
}

/* ---------- 总览问候语（09-23 主理人定）：按北京时间分五段，整句霞鹜文楷粗体；换字时从下方 4px、透明、轻微模糊滑回原位 ---------- */
.card-title.greet { display: block; font-family: "LXGW WenKai", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .greet.is-swap { animation: greet-swap 0.32s var(--ease-out) both; }
}
@keyframes greet-swap { from { opacity: 0; transform: translateY(4px); filter: blur(1px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- 菜单分组（09-23 主理人定的菜单调整）：组名沿用 .grp，反馈前面只画一条细线 ---------- */
.sidenav .grp--line { height: 1px; margin: 10px 12px 4px; padding: 0; background: var(--line); }
.text-fail { color: var(--rose-deep); }
/* 三个新图标的悬停小动画，规矩同「侧栏图标悬停小动画」：只动 transform 与 opacity，触屏与减弱动效不动 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg :is(.i-spark1, .i-spark2, .i-tag, .i-tick) { transform-box: fill-box; transform-origin: center; transition: transform 180ms var(--ease-out); }
  .sidenav a:hover .i-spark1 { transition: transform var(--dur-snappy) var(--spring-snappy); transform: rotate(45deg) scale(0.92); }
  .sidenav a:hover .i-spark2 { animation: i-blink 420ms var(--ease-out) 60ms both; }
  .side svg .i-tag { transform-origin: 25% 25%; }
  .sidenav a:hover .i-tag { animation: i-swing 640ms var(--ease-out) both; }
  .sidenav a:hover .i-tick { animation: i-pop 360ms var(--ease-out) both; }
}
@keyframes i-pop { 0% { transform: scale(0.4); opacity: 0.2; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- 第四层：发稿台、舆情、结案、案例库（09-24） ---------- */
.kpi.kpi--auto { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.text-warn { color: var(--apricot-deep); }
/* 发稿截图：纸底细边，点开看原图 */
.shot { margin: 12px 0; }
.shot img { display: block; max-width: 100%; max-height: 420px; object-fit: contain; object-position: left top; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.shot figcaption { margin-top: 4px; }
/* 舆情最近 14 天：每天一根柱子，正面薄荷、中性钢蓝、待判断银、负面杏橙叠起来；今天那根底下画青蓝线 */
.daybars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; padding: 8px 0 0; }
.daybar { display: grid; grid-template-rows: 1fr auto auto; height: 100%; gap: 2px; color: inherit; text-decoration: none; text-align: center; }
.daybar-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; min-height: 2px; border-bottom: 2px solid var(--line); border-radius: 6px 6px 0 0; overflow: hidden; }
.daybar-stack i { display: block; flex: none; }
.daybar-stack .pos, .daybar-legend .pos { background: var(--mint); }
.daybar-stack .neu, .daybar-legend .neu { background: var(--steel); }
.daybar-stack .pen, .daybar-legend .pen { background: var(--silver-2); }
.daybar-stack .neg, .daybar-legend .neg { background: var(--apricot); }
.daybar-n { font-size: 11px; color: var(--ink-2); min-height: 14px; }
.daybar-d { font-size: 10px; color: var(--ink-3); }
.daybar.is-today .daybar-stack { border-bottom-color: var(--cyan); }
.daybar:hover .daybar-stack { opacity: 0.8; }
.daybar-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px -1px 0; }
.daybar-legend { text-transform: none; }
@media (max-width: 640px) { .daybars { gap: 2px; } .daybar-d { font-size: 9px; } }
.digest { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.digest:last-of-type { border-bottom: 0; }
.digest .mono-line { margin: 0 0 4px; }
.digest .card-text { margin: 0; }
/* 关键词与标签：小贴纸 */
.chips-line { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.kw { display: inline-flex; align-items: center; gap: 2px; padding: 2px 10px 3px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font: 600 13px var(--font-display); }
.kw-x { border: 0; background: none; padding: 0 0 0 4px; font: 600 14px/1 var(--font-body); color: var(--ink-3); cursor: pointer; }
.kw-x:hover { color: var(--rose-deep); }
/* 报告正文（结案、案例）：小标题、段落、列表 */
.doc { margin-top: 14px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: 15px/1.8 var(--font-body); color: var(--ink); }
.doc h2 { margin: 18px 0 8px; font: 700 20px var(--font-display); }
.doc h3 { margin: 16px 0 6px; font: 700 17px var(--font-display); }
.doc > :first-child { margin-top: 0; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-left: 1.3em; }
.doc li { margin: 2px 0; }
/* 案例库检索结果 */
.case-list { display: grid; gap: 10px; margin-top: 10px; }
.case-hit { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.case-hit .card-head { margin-bottom: 0; }
.case-hit .card-title { font-size: 17px; }
.case-hit .mono-line { margin-top: 4px; }
.case-hit .card-text { margin: 6px 0 0; }
mark { background: var(--honey); color: var(--ink); border-radius: 3px; padding: 0 1px; }
/* 结案报告网页版：白底 A4，打印时按钮条藏起来 */
.print-doc { max-width: 820px; margin: 0 auto; padding: 32px 24px 48px; font: 15px/1.8 var(--font-body); color: var(--ink); }
.print-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.print-head { padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--ink); }
.print-org { margin: 0; font: 600 13px var(--font-display); color: var(--ink-2); }
.print-head h1 { margin: 6px 0; font: 700 28px/1.3 var(--font-display); }
.print-meta { margin: 0; font: 400 12px var(--font-mono); color: var(--ink-3); }
.print-doc h2 { font: 700 20px var(--font-display); margin: 22px 0 8px; }
.print-doc .doc { padding: 0; border: 0; background: none; }
.print-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 14px; }
.print-table th, .print-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.print-table thead th, .print-table tbody th { background: var(--silver); font-weight: 600; white-space: nowrap; }
.print-foot { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
@media print {
  @page { size: A4; margin: 16mm 14mm; }
  body.plain { background: #fff; }
  .print-bar { display: none; }
  .print-doc { max-width: none; padding: 0; }
  .print-table tr, .doc li, .doc p { break-inside: avoid; }
  .doc h2, .doc h3, .print-doc h2 { break-after: avoid; }
}
/* 第四层四个侧栏图标的悬停小动画，规矩同上：只动 transform 与 opacity，触屏与减弱动效不动 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg :is(.i-wave, .i-blip, .i-sound, .i-stamp, .i-lean) { transform-box: fill-box; transform-origin: center; transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out); }
  .sidenav a:hover .i-wave { animation: i-wave 520ms var(--ease-out) both; }
  .sidenav a:hover .i-blip { animation: i-blink 420ms var(--ease-out) 120ms both; }
  .side svg .i-sound { transform-origin: 0 50%; }
  .sidenav a:hover .i-sound { animation: i-sound 560ms var(--ease-out) both; }
  .sidenav a:hover .i-stamp { animation: i-stamp 480ms var(--ease-out) both; }
  .side svg .i-lean { transform-origin: 30% 100%; }
  .sidenav a:hover .i-lean { transition: transform var(--dur-snappy) var(--spring-snappy); transform: rotate(-14deg); }
}
@keyframes i-wave { 0%, 100% { transform: scaleY(1); } 35% { transform: scaleY(1.25); } 70% { transform: scaleY(0.85); } }
@keyframes i-sound { 0% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(2px); opacity: 0.25; } 46% { transform: translateX(-1px); opacity: 0.25; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes i-stamp { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.12); } 70% { transform: translateY(0.5px) scale(0.96); } }

/* ---------- 内容工坊（09-24） ---------- */
.sub-title { margin: 16px 0 6px; font: 600 15px var(--font-display); color: var(--ink); }
.card > .sub-title:first-of-type { margin-top: 8px; }
/* 两版对比：加的薄荷底、删的玫红划线；保留原文换行 */
.diff { margin-top: 10px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: 15px/1.9 var(--font-body); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.diff ins, .diff-legend ins { text-decoration: none; background: rgba(47, 191, 143, 0.22); border-bottom: 2px solid var(--mint); border-radius: 3px; padding: 0 1px; }
.diff del, .diff-legend del { color: var(--rose-deep); text-decoration: line-through; text-decoration-thickness: 1.5px; background: rgba(226, 88, 109, 0.10); border-radius: 3px; padding: 0 1px; }
.diff-legend { margin-left: 8px; font-size: 13px; }
/* 内容工坊图标：笔往右写一小段，横线跟着长出来；规矩同其它侧栏图标 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg :is(.i-pen, .i-line) { transform-box: fill-box; transition: transform 180ms var(--ease-out); }
  .side svg .i-line { transform-origin: 0 50%; }
  .sidenav a:hover .i-pen { animation: i-write 520ms var(--ease-out) both; }
  .sidenav a:hover .i-line { transition: transform var(--dur-snappy) var(--spring-snappy); transform: scaleX(1.35); }
}
@keyframes i-write { 0%, 100% { transform: translate(0, 0) rotate(0); } 30% { transform: translate(1.5px, 1px) rotate(-6deg); } 60% { transform: translate(3px, 0) rotate(4deg); } }

/* ---------- 09-24 晚：项目标签分组的细分隔、审批与媒体库两个侧栏图标 ---------- */
.tabs .tab-sep { flex: none; width: 1px; margin: 8px 6px; background: var(--line); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg .i-press { transform-box: fill-box; transform-origin: center; }
  .sidenav a:hover .i-press { animation: i-press 460ms var(--ease-out) both; }
  .sidenav a:hover :is(.i-n1, .i-n2, .i-n3) { animation: i-blink 360ms var(--ease-out) both; }
  .sidenav a:hover .i-n2 { animation-delay: 60ms; }
  .sidenav a:hover .i-n3 { animation-delay: 120ms; }
}
@keyframes i-press { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(2.5px); } 70% { transform: translateY(-0.6px); } }

/* ---------- 项目作战图、我的活（09-24 晚） ---------- */
/* 作战图：每段一行，段名与状态、进度条、现在什么样、卡在哪、等谁、去看；窄屏折成两行 */
.ov { display: grid; gap: 0; }
.ov-row { display: grid; grid-template-columns: 150px 150px minmax(0, 1.2fr) minmax(0, 1fr) 120px auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line-2); }
.ov-row:last-child { border-bottom: 0; }
.ov-row.is-none { color: var(--ink-3); }
.ov-name { display: flex; align-items: center; gap: 8px; }
.ov-name b { font: 700 15px var(--font-display); color: var(--ink); min-width: 4.2em; }
.ov-row.is-none .ov-name b { color: var(--ink-3); }
.ov-bar { position: relative; height: 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.ov-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--silver-2); }
.ov-row.is-doing .ov-bar i { background: var(--honey); }
.ov-row.is-stuck .ov-bar i { background: var(--apricot); }
.ov-row.is-done .ov-bar i { background: var(--mint); }
.ov-row.is-none .ov-bar { border-color: var(--line); }
.ov-bar span { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 10px; line-height: 1; color: var(--ink-2); }
.ov-sum { font-size: 14px; }
.ov-stuck { font-size: 14px; color: var(--apricot-deep); }
.ov-wait { font: 400 12px var(--font-mono); color: var(--ink-2); }
@media (max-width: 900px) {
  .ov-row { grid-template-columns: 1fr 1fr; }
  .ov-sum, .ov-stuck { grid-column: 1 / -1; }
}
/* 我的活：提醒列表，没读的左边一条杏橙线 */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); border-left: 3px solid transparent; }
.notes li:last-child { border-bottom: 0; }
.notes li.is-unread { border-left-color: var(--apricot); background: rgba(243, 165, 111, 0.06); }
.notes li.is-unread a { font-weight: 600; }
.notes li .mono { margin-left: auto; font-size: 11px; color: var(--ink-3); }
.my-proj { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.my-proj:last-child { border-bottom: 0; }
.my-proj .bullets { margin-bottom: 4px; }
.my-proj .mono-line { margin-top: 4px; }

/* ---------- 09-24 深夜：侧栏「管理」组的四个新图标（内容定稿、Brief 批准、项目中心；团队任务复用人跳与三行闪） ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg :is(.i-sign, .i-thumb, .i-t1, .i-t2, .i-t3, .i-t4) { transform-box: fill-box; transform-origin: center; }
  .side svg .i-sign { transform-origin: 0 50%; }
  .sidenav a:hover .i-sign { animation: i-sign 520ms var(--ease-out) both; }
  .side svg .i-thumb { transform-origin: 0 100%; transition: transform 180ms var(--ease-out); }
  .sidenav a:hover .i-thumb { transition: transform var(--dur-snappy) var(--spring-snappy); transform: rotate(-10deg); }
  .sidenav a:hover :is(.i-t1, .i-t2, .i-t3, .i-t4) { animation: i-shrink 380ms var(--ease-out) both; }
  .sidenav a:hover .i-t2 { animation-delay: 50ms; }
  .sidenav a:hover .i-t3 { animation-delay: 100ms; }
  .sidenav a:hover .i-t4 { animation-delay: 150ms; }
}
@keyframes i-sign { 0% { transform: scaleX(0.15); opacity: 0.3; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes i-shrink { 0%, 100% { transform: scale(1); } 45% { transform: scale(0.82); } }

/* ---------- 总览日历（09-24 深夜，替换原来的说明卡） ---------- */
/* 月视图七列，周一开头；格子是纸底圆角块，今天是青蓝贴纸；前后月补齐的格子画浅；休薄荷、班杏橙（班要人注意，按规范暖色只用于状态） */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cal-wd { padding: 2px 0 8px; text-align: center; font: 600 13px/1 var(--font-body); color: var(--ink-2); border-bottom: 2px solid var(--ink); margin-bottom: 2px; }
.cal-wd.is-weekend { color: var(--ink-3); }
.cal-d { position: relative; min-height: 66px; padding: 8px 9px 7px; border-radius: 10px; background: var(--paper); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d b { font: 700 20px/1.05 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-d small { font: 12px/1.25 var(--font-body); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-d small.is-fest { color: var(--cyan-deep); font-weight: 700; }
.cal-d.is-weekend b { color: var(--ink-2); }
.cal-d.is-rest { background: rgba(47, 191, 143, 0.10); }
.cal-d.is-out { background: transparent; }
.cal-d.is-out b, .cal-d.is-out small, .cal-d.is-out small.is-fest { color: var(--silver-2); }
.cal-d.is-today { background: var(--cyan-soft); box-shadow: inset 0 0 0 2px var(--ink), 2px 2px 0 var(--ink); }
.cal-d.is-today small, .cal-d.is-today small.is-fest { color: var(--ink); }
.cal-mark { position: absolute; top: 6px; right: 6px; padding: 2px 5px 3px; border-radius: 6px; font: 700 11px/1 var(--font-body); font-style: normal; }
.cal-d.is-rest .cal-mark { background: var(--mint); color: #fff; }
.cal-d.is-work .cal-mark { background: var(--apricot); color: var(--ink); }
.cal-d.is-out .cal-mark { opacity: 0.45; }
@media (max-width: 600px) {
  .cal-grid { gap: 4px; }
  .cal-d { min-height: 52px; padding: 6px 5px 5px; border-radius: 8px; }
  .cal-d b { font-size: 16px; }
  .cal-d small { font-size: 10px; }
  .cal-mark { top: 4px; right: 4px; padding: 1px 3px 2px; font-size: 10px; }
}

/* ---------- 项目成员勾选区（09-24 同事反馈：建项目、建投标时就把项目组成员加进来） ---------- */
.member-picks { border: 0; padding: 0; margin: 0; min-width: 0; }
.member-picks legend { padding: 0; margin-bottom: 6px; }
.member-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

/* ---------- 投标评审项批量设符合度（09-24 同事反馈） ---------- */
/* 改完跳回原位时，别让顶条挡住那一行 */
#criteria, tr[id^="c-"] { scroll-margin-top: 72px; }
/* 投标团队页任务表里的状态下拉：选了就提交；进行中、需协调、已完成用状态色打底（暖色只用于状态） */
#tasks { scroll-margin-top: 72px; }
.status-select { min-width: 112px; }
.check--inline { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
/* 全站公告：总览上的卡，最新一条在上，往下滚看历史；侧栏「总览」的「新」气泡用青蓝 */
.nav-badge--new { background: var(--cyan); font-family: var(--font-display); }
.scroll-box { max-height: 360px; overflow: auto; padding-right: 6px; }
.release + .release { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.release-head { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.release .card-sub { margin: 8px 0 2px; font-size: 13px; }
/* 公告后台：一行里好几个小按钮，不换行、留点间隙 */
td.actions { white-space: nowrap; }
td.actions form, td.actions > a { margin-right: 4px; }
input[type="date"].input-small { width: 150px; }
.status-select.is-doing { background: var(--honey); }
.status-select.is-blocked { background: var(--apricot); }
.status-select.is-done { background: var(--mint); }
#bulk-criteria { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- 友商库（09-24）：侧栏望远镜图标，悬停时镜筒左右扫一下；规矩同其它侧栏图标 ---------- */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .side svg .i-scope { transform-box: fill-box; transform-origin: center; }
  .sidenav a:hover .i-scope { animation: i-scan 560ms var(--ease-out) both; }
}
@keyframes i-scan { 0%, 100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(-1.5px) rotate(-4deg); } 65% { transform: translateX(1.5px) rotate(4deg); } }
