/* 恒通评估衡鉴AI系统 — Apple 风格设计体系（2026-08-27 页面美化）
 *
 * 设计原则：克制 / 留白 / 层级 / 质感 / 动效有意义
 * - 全部颜色走 :root 令牌，深色模式经 html.dark 覆盖
 * - 动效 200-500ms，prefers-reduced-motion 一键关闭
 * - 保持零依赖：无框架、无构建
 */

/* ============ 设计令牌 ============ */
:root {
  /* 品牌色 */
  --primary: #2a5cbe;
  --primary-dark: #1f4a9e;
  --primary-soft: #e8f0fe;
  --accent: #c00000;

  /* 中性色 */
  --bg: #f5f5f7;
  --card: #ffffff;
  --border: #d2d2d7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;

  /* 语义色 */
  --ok: #248a3d;      --ok-soft: #e6f4ea;
  --warn: #b26a00;    --warn-soft: #fff4e0;
  --fatal: #d70015;   --fatal-soft: #fde7e9;
  --serious: #e05b00;

  /* 形状 */
  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --radius-pill: 980px;

  /* 阴影 */
  --shadow-s: 0 1px 3px rgba(0,0,0,.06);
  --shadow-m: 0 4px 16px rgba(0,0,0,.08);
  --shadow-l: 0 12px 32px rgba(0,0,0,.14);

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-base: 300ms;

  /* 玻璃 */
  --glass-bg: rgba(255,255,255,.72);
}

/* 深色模式 */
html.dark {
  --bg: #000000;
  --card: #1d1d1f;
  --border: #3a3a3c;
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --primary: #2997ff;
  --primary-dark: #0a84ff;
  --primary-soft: rgba(41,151,255,.16);
  --ok-soft: rgba(36,138,61,.22);
  --warn-soft: rgba(178,106,0,.22);
  --fatal-soft: rgba(215,0,21,.18);
  --glass-bg: rgba(29,29,31,.72);
  --shadow-s: 0 1px 3px rgba(0,0,0,.4);
  --shadow-m: 0 4px 16px rgba(0,0,0,.5);
  --shadow-l: 0 12px 32px rgba(0,0,0,.6);
}

/* ============ 基础 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "PingFang SC",
               "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-base) var(--ease), color var(--dur-base) var(--ease);
}
.hidden { display: none !important; }

/* 焦点光环（可访问性） */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .upload-box:focus-within {
  outline: 3px solid rgba(42,92,190,.35); outline-offset: 2px;
}
html.dark button:focus-visible, html.dark a:focus-visible {
  outline-color: rgba(41,151,255,.5);
}

/* 页面切换动效 */
.page { animation: pageIn var(--dur-base) var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============ 登录页 ============ */
#view-login { display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 30px; min-height: 100vh; padding: 24px; }
.login-logo { text-align: center; }
.login-logo .co { font-size: 14px; color: var(--muted); letter-spacing: .5px; }
.login-logo h1 { font-size: 30px; font-weight: 600; margin-top: 6px; letter-spacing: 1px; }
.login-card { background: var(--card); padding: 40px 36px 32px; border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); width: 380px; max-width: 100%; border: 1px solid var(--border); }
.login-card h2 { font-size: 15px; color: var(--muted); font-weight: 500; text-align: center;
  margin-bottom: 24px; }
.login-card label { display: block; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.login-card input { width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  color: var(--text); transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.login-card input:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42,92,190,.18); }
html.dark .login-card input:focus { box-shadow: 0 0 0 4px rgba(41,151,255,.28); }
.login-card .primary { width: 100%; margin-top: 4px; }
.login-foot { font-size: 12px; color: var(--faint); text-align: center; }
.login-foot .beian-link { display: block; margin-top: 8px; }
.site-foot { text-align: center; padding: 18px 0 22px; font-size: 12px; color: var(--faint);
  margin-top: 24px; border-top: 1px solid rgba(128,128,128,.18); }
.beian-link { color: var(--faint); text-decoration: none; transition: color var(--dur-fast); }
.beian-link:hover { color: var(--primary); text-decoration: underline; }

/* ============ 顶栏（毛玻璃悬浮导航） ============ */
header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 24px;
  padding: 0 28px; height: 52px; background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(128,128,128,.18); }
@supports not (backdrop-filter: blur(20px)) and not (-webkit-backdrop-filter: blur(20px)) {
  header { background: var(--card); }
}
.brand { font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand .sub { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
nav { display: flex; gap: 2px; flex: 1; }
.nav-btn { background: none; border: none; color: var(--muted); font-size: 14px;
  padding: 8px 14px; cursor: pointer; border-radius: var(--radius-s); position: relative;
  transition: color var(--dur-fast); }
.nav-btn:hover { color: var(--text); }
.nav-btn.active { color: var(--text); font-weight: 600; }
.nav-btn.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; border-radius: 2px; background: var(--primary); }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0; }
.role-tag { background: var(--primary-soft); color: var(--primary); padding: 2px 10px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.icon-btn { background: none; border: none; cursor: pointer; font-size: 15px; color: var(--muted);
  padding: 4px 6px; border-radius: var(--radius-s); transition: color var(--dur-fast),
  background var(--dur-fast); }
.icon-btn:hover { color: var(--text); background: rgba(128,128,128,.12); }

/* ============ 主内容 ============ */
main { max-width: 1120px; margin: 0 auto; padding: 32px 24px 120px; }
.page h2 { font-size: 28px; font-weight: 600; letter-spacing: .3px; }
.page h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 600; }
.page-head { margin-bottom: 22px; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 5px; }
.page-sub { color: var(--muted); font-size: 14px; margin: 5px 0 4px; }

/* ============ 按钮 ============ */
button.primary { background: var(--primary); color: #fff; border: none; padding: 10px 24px;
  font-size: 14px; font-weight: 600; border-radius: var(--radius-pill); cursor: pointer;
  transition: background var(--dur-fast), transform .1s; }
button.primary:hover { background: var(--primary-dark); }
button.primary:active { transform: scale(.98); }
button.primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
button.ghost { background: rgba(128,128,128,.1); border: none; color: var(--text);
  padding: 7px 16px; border-radius: var(--radius-pill); cursor: pointer; font-size: 13px;
  transition: background var(--dur-fast); }
button.ghost:hover { background: rgba(128,128,128,.18); }
.btn-del { display: inline-flex; align-items: center; height: 26px; padding: 0 14px;
  border: 1px solid var(--fatal); background: var(--card); color: var(--fatal);
  border-radius: var(--radius-pill); cursor: pointer; font-size: 12px;
  white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast); }
.btn-del:hover { background: var(--fatal); color: #fff; }
.btn-edit { display: inline-flex; align-items: center; height: 26px; padding: 0 14px;
  border: 1px solid var(--primary); background: var(--card); color: var(--primary);
  border-radius: var(--radius-pill); cursor: pointer; font-size: 12px;
  white-space: nowrap; transition: background var(--dur-fast), color var(--dur-fast); }
.btn-edit:hover { background: var(--primary); color: #fff; }
/* 函件行下载链接按钮化，与同行徽章/按钮等高居中 */
.task-row a[data-dl] { display: inline-flex; align-items: center; height: 26px; padding: 0 14px;
  background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast); }
.task-row a[data-dl]:hover { background: var(--primary); color: #fff; }
.back-btn { background: none; border: none; color: var(--primary); font-size: 14px;
  cursor: pointer; padding: 6px 0; margin-bottom: 10px; }
.back-btn:hover { text-decoration: underline; }

.error { color: var(--fatal); font-size: 13px; margin-top: 10px; min-height: 18px; }
.progress { color: var(--primary); font-size: 13px; margin-top: 10px; }

/* ============ 筛选胶囊 ============ */
.filter-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pill { border: 1px solid var(--border); background: var(--card); color: var(--muted);
  padding: 6px 16px; border-radius: var(--radius-pill); font-size: 13px; cursor: pointer;
  transition: all var(--dur-fast) var(--ease); }
.pill:hover { border-color: var(--primary); color: var(--primary); }
.pill.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ============ 表单 ============ */
/* minmax(0,1fr)：禁止内容最小宽度撑列，两列严格等宽（2026-09-05 上传框与字段行对不齐修复） */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px; margin-bottom: 16px; }
.form-grid label { font-size: 13px; color: var(--muted); display: block; }
.form-grid input, .form-grid select { width: 100%; margin-top: 6px; height: 42px;
  padding: 0 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
/* select 与 input 完全等高：去掉原生外观，自定义下拉箭头（浅/深色两套） */
.form-grid select { -webkit-appearance: none; appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
html.dark .form-grid select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.form-grid input:focus, .form-grid select:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42,92,190,.15); }
html.dark .form-grid input:focus, html.dark .form-grid select:focus,
html.dark .form-grid textarea:focus { box-shadow: 0 0 0 4px rgba(41,151,255,.25); }
.form-grid textarea { width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  color: var(--text); font-family: inherit; resize: vertical; line-height: 1.6;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.form-grid textarea:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(42,92,190,.15); }

/* ============ 上传区 ============ */
.upload-box { border: 1.5px dashed var(--border); border-radius: var(--radius-l);
  padding: 32px 20px; text-align: center; cursor: pointer; background: var(--card);
  transition: border-color var(--dur-fast), background var(--dur-fast),
  transform var(--dur-fast) var(--ease); }
.upload-box:hover { border-color: var(--primary); }
.upload-box.dragover { border-color: var(--primary); background: var(--primary-soft);
  transform: scale(1.01); }
.upload-box p { color: var(--muted); font-size: 14px; }
.upload-box + button.primary { margin-top: 16px; }
.upload-box + .form-grid { margin-top: 16px; }

/* 报告编号三段式（类型下拉+年号+序号） */
.report-no-row { display: flex; gap: 8px; margin-top: 6px; }
.report-no-row select, .report-no-row input { width: auto; min-width: 0;
  margin-top: 0; height: 42px; }
.report-no-row select { flex: 1.5; }
.report-no-row input { flex: 1; }
#w-report-year, #l-letter-year { flex: 0.6; }
.report-no-preview { margin-top: 6px; font-size: 13px; color: var(--primary); }
.file-name { color: var(--ok) !important; font-size: 13px; margin-top: 8px; }

/* 多文件上传 chips（2026-09-10 专业评审上传优化） */
.file-name { display: flex; flex-wrap: wrap; gap: 6px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 8px 3px 10px; font-size: 12px; max-width: 100%; }
.file-chip .chip-x { border: none; background: none; color: var(--muted);
  cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; border-radius: 50%; }
.file-chip .chip-x:hover { color: var(--fatal); }

/* ============ 任务列表卡片 ============ */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 16px 20px; cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
  border-color var(--dur-fast); }
.task-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); border-color: transparent; }
.task-main { flex: 1; min-width: 0; }
.task-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.task-score { display: inline-flex; flex-direction: column; justify-content: center;
  align-items: flex-end; text-align: right; white-space: nowrap; min-height: 44px; }
.task-score .num { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.task-score .num.不合格 { color: var(--fatal); }
.task-score .num.合格 { color: var(--ok); }
.task-score .num.muted { color: var(--faint); }
.task-score .lbl { font-size: 11px; color: var(--faint); margin-top: 3px; }

/* ============ 状态徽章 ============ */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.pending { background: rgba(128,128,128,.14); color: var(--muted); }
.badge.reviewing, .badge.scoring, .badge.generating { background: var(--primary-soft); color: var(--primary); }
.badge.done { background: var(--ok-soft); color: var(--ok); }
.badge.failed { background: var(--fatal-soft); color: var(--fatal); }
/* 撰写任务状态 */
.badge.drafted, .badge.inputs_ready { background: rgba(128,128,128,.14); color: var(--muted); }
.badge.data_ready, .badge.generated, .badge.self_checked { background: var(--primary-soft); color: var(--primary); }
.badge.issued { background: var(--ok-soft); color: var(--ok); }
.check-line { display: block; margin: 10px 0; font-size: 14px; }
.grade { font-weight: 700; }
.grade.一等 { color: var(--ok); }
.grade.二等 { color: #2f6fb3; }
.grade.三等 { color: var(--warn); }
.grade.四等 { color: #b26a00; }
.grade.不合格 { color: var(--fatal); }
.grade.合格 { color: var(--ok); }

/* ============ 用户管理行内编辑 ============ */
.user-edit { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; margin-top: -4px; }
.user-edit .edit-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.user-edit input { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-s);
  font-size: 14px; min-width: 180px; background: var(--card); color: var(--text); }
.user-edit input:focus { outline: none; border-color: var(--primary); }
.user-edit .edit-actions { display: flex; gap: 8px; margin-top: 2px; }
.user-edit .edit-actions button { display: inline-flex; align-items: center; height: 34px; padding: 0 18px; font-size: 13px; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty .icon { font-size: 44px; margin-bottom: 14px; opacity: .6; }
.empty h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 0 0 6px; }
.empty p { font-size: 13px; margin: 0 0 18px; }
.empty .primary { padding: 9px 22px; }

/* ============ 详情页 ============ */
.status-bar { margin: 12px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============ 任务进度条（审核/撰写/评审通用，2026-09-09） ============ */
.progress { display: inline-flex; align-items: center; gap: 8px; min-width: 200px; }
.progress-track { flex: 1; height: 6px; border-radius: var(--radius-pill);
  background: var(--primary-soft); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-pill); background: var(--primary);
  animation: progress-grow .8s var(--ease); }
.progress-text { font-size: 12px; color: var(--muted); white-space: nowrap;
  font-variant-numeric: tabular-nums; }
.progress-text b { color: var(--primary); font-weight: 700; }
/* 列表卡片内嵌：窄条 */
.task-main .progress { margin-top: 6px; min-width: 140px; max-width: 240px; }
@keyframes progress-grow { from { width: 0; } }
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0; }
.score-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 20px 22px; position: relative; overflow: hidden; text-align: left; }
.score-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--bar, var(--primary)); }
.score-card .label { color: var(--muted); font-size: 13px; }
.score-card .value { font-size: 34px; font-weight: 600; margin: 6px 0 2px;
  font-variant-numeric: tabular-nums; line-height: 1.1; }
.score-card .grade { font-size: 13px; }

/* ============ 问题清单 ============ */
.issue-list { display: flex; flex-direction: column; gap: 10px; }
.issue-card { background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--muted);
  border-radius: var(--radius-m); padding: 14px 18px; }
.issue-card.fatal { border-left-color: var(--fatal); }
.issue-card.serious { border-left-color: var(--serious); }
.issue-card.important { border-left-color: var(--warn); }
.issue-head { display: flex; gap: 10px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.issue-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.6; }
.issue-evidence, .issue-suggestion { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.sev-tag { padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px; color: #fff; font-weight: 600; }
.sev-tag.fatal { background: var(--fatal); }
.sev-tag.serious { background: var(--serious); }
.sev-tag.important { background: var(--warn); }
.sev-tag.normal { background: var(--muted); }
.sev-tag.moderate { background: var(--muted); }
/* 专业评审裁决徽章（4值判断） */
.issue-card.j-unsupported { border-left-color: var(--muted); }
.issue-card.j-supported { border-left-color: var(--fatal); }
.issue-card.j-partial { border-left-color: var(--warn); }
.issue-card.j-excluded { border-left-color: #2f6fb3; }
.sev-tag.j-unsupported { background: var(--muted); }
.sev-tag.j-supported { background: var(--fatal); }
.sev-tag.j-partial { background: var(--warn); }
.sev-tag.j-excluded { background: #2f6fb3; }

/* 评审结论段 */
#exconclusion { font-size: 14px; line-height: 1.8; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px 18px;
  white-space: pre-wrap; }

/* ============ 文件列表 ============ */
/* 纵向排列：提示行（标记版定位等）独占一行在上，文件框满宽等长等宽（2026-09-09 细节修复） */
.file-list { display: flex; flex-direction: column; gap: 12px; }
.file-list .task-meta { margin: 0; }
.file-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-m);
  padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: 13px;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.file-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.file-item a { color: var(--primary); text-decoration: none; font-weight: 600; }
.file-item a:hover { text-decoration: underline; }
.file-item .file-icon { font-size: 16px; line-height: 1; }
.file-item .size { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.file-item .link-preview { font-weight: 500; }
.link-dl { font-weight: 600; color: var(--primary); text-decoration: none; }
.link-dl:hover { text-decoration: underline; }
.badge-marked { background: #FFC7CE; color: #C00000; }
.badge-lock { background: #E7E6E6; color: #595959; }
.file-name-lock { color: #595959; }

/* ============ Toast ============ */
#toast-box { position: fixed; top: 66px; left: 50%; transform: translateX(-50%); z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(128,128,128,.25); color: var(--text);
  padding: 10px 22px; border-radius: var(--radius-pill); font-size: 14px;
  box-shadow: var(--shadow-l); animation: toastIn var(--dur-base) var(--ease); }
.toast.ok { color: var(--ok); }
.toast.err { color: var(--fatal); }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ============ 骨架屏 ============ */
.skeleton { background: linear-gradient(90deg, rgba(128,128,128,.1) 25%,
  rgba(128,128,128,.2) 50%, rgba(128,128,128,.1) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-m); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ============ 动效降级 ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============ 响应式 ============ */
@media (max-width: 760px) {
  .form-grid { grid-template-columns: 1fr; }
  .report-no-row { flex-wrap: wrap; }
  .report-no-row select { flex: 1 1 100%; }
  .score-cards { grid-template-columns: 1fr; }
  header { padding: 0 14px; gap: 12px; }
  .brand .sub, .role-tag { display: none; }
  nav { overflow-x: auto; }
  .nav-btn { padding: 8px 10px; white-space: nowrap; }
}

/* ============ 弹窗（修改密码，2026-09-09） ============ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; background: rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  width: 380px; max-width: calc(100vw - 32px); padding: 28px 28px 24px;
  animation: toastIn var(--dur-base) var(--ease); }
.modal-card h3 { margin: 0 0 18px; font-size: 18px; font-weight: 600; }
.modal-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.modal-card input { width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--card);
  color: var(--text); box-sizing: border-box; }
.modal-card input:focus { outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft); }
.modal-card .error { min-height: 0; margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ============ 评审费计算器（2026-09-12，38号附件2 七档差额定率） ============ */
.modal-card.fee-card { width: min(560px, calc(100vw - 32px)); padding: 22px 22px 18px; }
.modal-card.fee-card h3 { margin-bottom: 12px; }
.fee-sub { font-size: 12px; color: var(--muted); margin: -6px 0 12px; }
.fee-types { display: flex; gap: 8px; margin-bottom: 14px; }
.fee-types .pill { flex: 1; padding: 8px 0; text-align: center; }
.fee-table { width: 100%; border-collapse: collapse; margin-top: 4px;
  font-size: 12px; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.fee-table th { color: var(--muted); font-weight: 500; text-align: left; }
.fee-table th.num, .fee-table td.num { text-align: right; }
.fee-table tr.fee-zero td { color: var(--faint); }
.fee-total { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.fee-final { display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.fee-final span { font-size: 13px; color: var(--muted); }
.fee-final strong { font-size: 24px; font-weight: 700; color: var(--primary);
  font-variant-numeric: tabular-nums; }
.fee-card .task-meta { margin: 10px 0 0; }
