/* ============================================================
   阅卷系统样式系统 v4.0（大气版）—— 权威源见项目根 DESIGN.md
   视觉方向：加高顶部横排导航 · 大字号宽留白 · 舒展卡片 · 教育蓝强调
   原则：对比度达标 · 零依赖 · 无紫蓝渐变 · 无卡片嵌套
   ============================================================ */
:root {
  /* 中性色（v3 · 复用报修设计系统，见 DESIGN.md §2） */
  --bg: #f4f6fa;
  --panel: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d5dbe3;
  --text: #1f2937;
  --muted: #666c7a;
  --muted-l: #8b919d;
  /* 品牌色（#2563eb） */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  /* 顶栏（白底） */
  --side-bg: #ffffff;
  --side-bg2: #f7f9fc;
  --side-text: #374151;
  --side-text-strong: #1f2937;
  --side-active-bg: #eff6ff;
  --side-active-text: #1d4ed8;
  /* 语义色（AA 调深档） */
  --ok: #117d39;
  --ok-bg: #dcfce7;
  --ok-border: #a7e0bf;
  --warn: #a45a05;
  --warn-strong: #8a4c04;
  --warn-bg: #fef3c7;
  --warn-border: #f3dfa6;
  --err: #d52525;
  --err-strong: #b91c1c;
  --err-bg: #fee2e2;
  --err-border: #f5bcbc;
  --info: #235dde;
  --info-bg: #dbeafe;
  --review: #7c3aed;
  --review-bg: #ede9fe;
  --teal: #0b7970;
  --teal-bg: #ccfbf1;
  /* 布局（v4 大气版：圆角加大、内容区加宽、阴影更柔） */
  --radius: 12px;
  --radius-sm: 10px;
  --sidebar-w: 224px;
  --content-max: 1440px;
  --shadow: 0 2px 6px rgba(20, 42, 70, .07), 0 1px 2px rgba(20, 42, 70, .04);
  --shadow-lg: 0 10px 24px rgba(37, 99, 235, .16);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.7 "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.boot { padding: 80px; text-align: center; color: var(--muted); }
#app { min-height: 100vh; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ccd3dc; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局骨架（顶部横向导航 · T-036 提亮改造） ---------- */
.layout { display: flex; flex-direction: column; min-height: 100vh; }
.topnav {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 28px; padding: 0 32px; height: 72px;
  box-shadow: 0 2px 6px rgba(22, 50, 79, 0.06);
}
.brand {
  display: flex; align-items: center; gap: 12px; padding: 0; margin-right: 8px;
  color: var(--side-text-strong); flex: 0 0 auto;
}
/* ui-ignore R6 品牌 logo 标识（白字压品牌渐变，非正文） */
.brand .logo {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, #4a9fd8, var(--brand));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0;
}
/* 品牌 Logo（系统设置上传的图片）：白底内衬，保持透明 PNG 干净 */
.brand .logo.has-img { background: #fff; border: 1px solid var(--border); padding: 3px; }
.brand .logo img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 9px; }
/* 题目明细表：题干列（点一下展开全文，含选项与小问） */
.qstem { cursor: pointer; }
.qstem .stem-cell {
  max-width: 460px; white-space: normal; line-height: 1.6;
  border-radius: 8px; padding: 2px 6px; margin: -2px -6px;
}
.qstem:hover .stem-cell { background: var(--brand-soft); }
.qstem-full { display: none; white-space: pre-wrap; max-width: 720px; line-height: 1.6; }
.qstem.open .qstem-short { display: none; }
.qstem.open .qstem-full { display: block; }
.qstem.open .sub { display: none; }

.logo-box {
  width: 72px; height: 72px; border-radius: 14px; border: 1px dashed var(--border-strong);
  display: grid; place-items: center; background: #fff; overflow: hidden; flex: 0 0 72px;
  font-size: 26px; font-weight: 700; color: var(--brand);
}
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.fav-strip { display: flex; align-items: flex-end; gap: 10px; }
.fav-strip span { display: block; text-align: center; font-size: 11px; color: var(--muted-l); }
.fav-strip img { display: block; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.brand-text b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: .5px; color: var(--side-text-strong); }
.brand-text small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); letter-spacing: .3px; }

/* 顶部分组一级入口（知卷风格：大文字 + 底部短下划线，无药丸底） + hover 下拉二级 */
.topnav-menu { display: flex; align-items: stretch; gap: 4px; flex: 1; min-width: 0; }
.nav-drop { position: relative; display: flex; flex-direction: column; }
.nav-drop-label {
  display: flex; align-items: center; height: 72px; padding: 0 22px;
  font-size: 16.5px; color: #4b5563; cursor: pointer; white-space: nowrap;
  position: relative; transition: color .15s;
}
.nav-drop-label::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0;
  height: 3px; border-radius: 2px 2px 0 0; background: var(--brand);
  transform: scaleX(0); opacity: .5; transition: transform .18s, opacity .18s;
}
.nav-drop:hover .nav-drop-label { color: var(--brand); }
.nav-drop:hover .nav-drop-label::after { transform: scaleX(1); opacity: .6; }
.nav-drop.active .nav-drop-label { color: var(--brand); font-weight: 600; }
.nav-drop.active .nav-drop-label::after { transform: scaleX(1); opacity: 1; }
.nav-drop-menu {
  display: none; position: absolute; top: 100%; left: 6px; min-width: 224px; padding: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 34px rgba(22, 50, 79, 0.14); list-style: none; margin: 0; z-index: 30;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; font-size: 14.5px;
  color: var(--text); border-radius: 10px; text-decoration: none; white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-drop-menu a:hover { background: var(--brand-soft); color: var(--brand-hover); }
.nav-drop-menu a.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
/* 折叠：窄屏汉堡菜单容器（见响应式段） */
.nav-burger { display: none; }

/* ---------- 导航样式切换：顶部横向 / 左侧纵向（用户可选，偏好存本机） ---------- */
.nav-toggle { white-space: nowrap; }
.layout.nav-side { flex-direction: row; align-items: stretch; }
.sidenav {
  flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
  position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto;
  background: var(--side-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 21;
}
.side-brand { padding: 16px 14px 14px; border-bottom: 1px solid var(--border); }
.side-brand .brand { margin-right: 0; }
.side-brand .brand-text small { display: none; }
.side-menu { padding: 8px 10px 18px; }
/* 一级分组：小字粗体标题 + 分组间分隔线；二级项缩进并带竖向引导线，
   让"主菜单"和"子菜单"一眼分层，不再混成一条平铺列表 */
.side-group { margin-top: 2px; }
.side-group + .side-group { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); }
.side-group-head {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px;
  background: var(--side-bg2); border: 0; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; color: var(--side-text-strong); letter-spacing: 1.2px; text-align: left;
  transition: background .12s, color .12s;
}
.side-group-head:hover { background: var(--brand-soft); color: var(--brand-hover); }
.side-group.open .side-group-head { background: var(--brand-soft); color: var(--brand); }
.side-group.active .side-group-head { color: var(--brand); font-weight: 700; }
.side-group-head .ng { font-size: 14px; line-height: 1; letter-spacing: 0; }
.side-group-head .hd { flex: 1; }
.side-group-head .car { font-size: 11px; line-height: 1; transition: transform .15s; }
.side-group:not(.open) .side-group-head .car { transform: rotate(-90deg); }
.side-group:not(.open) .side-links { display: none; }
.side-links {
  list-style: none; margin: 4px 0 6px 16px; padding: 0 0 0 10px;
  border-left: 2px solid var(--border);
}
.side-links a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--side-text); text-decoration: none;
  transition: background .12s, color .12s;
}
.side-links a:hover { background: var(--side-bg2); color: var(--brand-hover); }
.side-links a.active { background: var(--side-active-bg); color: var(--side-active-text); font-weight: 600; }
.side-links a .ni { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.side-foot {
  margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted-l);
}
/* 侧边模式下顶栏贴顶，不再为顶部导航留 72px 偏移 */
.layout.nav-side .topbar { top: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  min-height: 62px; background: var(--panel); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  position: sticky; top: 72px; z-index: 10;
}
.topbar h1 { font-size: 20px; font-weight: 600; margin: 0; letter-spacing: .3px; }
.who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 9px; }
/* ui-ignore R6 头像首字母标识（白字压品牌渐变，非正文） */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: linear-gradient(135deg, #4a9fd8, var(--brand)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 600;
}
.content {
  padding: 30px 32px 64px; max-width: var(--content-max); width: 100%; margin: 0 auto;
}

/* ---------- 班级与学生（合并页）：左侧组织结构树 + 右侧班级/学生 ---------- */
.cs-page { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 18px; align-items: start; }
.cs-tree {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); position: sticky; top: 84px;
  display: flex; flex-direction: column; max-height: calc(100vh - 120px);
}
.cs-tree-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px;
}
.cs-tree-head .sm { padding: 2px 8px; }
.cs-tree > #csTree { overflow: auto; padding: 8px 10px 12px; }
.cs-tree-foot { padding: 8px 14px 12px; font-size: 12px; border-top: 1px solid var(--border); }
.cs-school { margin-bottom: 4px; }
.cs-node {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 8px;
  background: transparent; border: 0; border-radius: 8px; cursor: pointer; text-align: left;
  font: inherit; font-size: 13px; color: var(--text); line-height: 1.4;
}
.cs-node .ic { flex: 0 0 auto; font-size: 13px; }
.cs-node .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-node .cnt { flex: 0 0 auto; font-size: 11px; color: var(--muted-l); }
.cs-node .car { flex: 0 0 auto; font-size: 11px; color: var(--muted-l); }
.cs-node:hover { background: var(--side-bg2); }
.cs-node.sel { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cs-root { cursor: default; font-weight: 600; font-size: 13.5px; color: var(--side-text-strong); }
.cs-root:hover { background: transparent; }
.cs-org-sub { list-style: none; margin: 2px 0 2px 10px; padding-left: 10px; border-left: 1px dashed var(--border-strong); }
.cs-org-sub .cs-empty { margin: 2px 0 4px 8px; font-size: 12px; }
.cs-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (max-width: 1000px) {
  .cs-page { grid-template-columns: 1fr; }
  .cs-tree { position: static; max-height: 320px; }
}

/* ---------- 卡片（v4 大气版：内距与标题放大） ---------- */
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.card h2 {
  font-size: 17px; font-weight: 600; margin: 0 0 16px;
  display: flex; align-items: center; gap: 9px; letter-spacing: .2px;
}
.card h2::before {
  content: ""; width: 4px; height: 17px; border-radius: 2px; flex: 0 0 4px;
  background: var(--brand);
}
/* 卡片头（带右侧操作链接，替代 h2 单行标题） */
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.card-head b { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.card-head b::before {
  content: ""; width: 4px; height: 17px; border-radius: 2px; background: var(--brand);
}
.card-head a { font-size: 13.5px; color: var(--brand); text-decoration: none; white-space: nowrap; }
.card-head a:hover { color: var(--brand-hover); text-decoration: underline; }
.card h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 10px; }
/* 区块小标题（取代行内 font-weight:bold） */
.sec { font-size: 15px; font-weight: 600; margin: 16px 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
/* 间距语义类（替代行内 margin 样式） */
.mt { margin-top: 14px; }
.mt-sm { margin-top: 7px; }
.mb { margin-bottom: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 22px; }
.grid-2 > .card { margin-bottom: 0; }
/* 表单按钮单元（取代 align-self:flex-end 行内样式） */
.btn-cell { flex: 0 0 auto; align-self: flex-end; }

/* ---------- 表单字段宽度语义类（取代行内 flex:1 1 Npx / width:Npx） ---------- */
.f-xs { flex: 0 0 80px; }        /* 数量、容量等窄数字字段 */
.f-sm { flex: 1 1 110px; }       /* 学科、年级、关系 */
.f-md { flex: 1 1 140px; }       /* 设备类型、渠道、校区 code */
.f-lg { flex: 1 1 200px; }       /* 常规筛选/表单字段 */
.f-xl { flex: 1 1 240px; }       /* 宽字段、多选考试 */
.f-full { flex: 1 1 100%; }      /* 占满整行（题干、粘贴区） */
.f-auto { flex: 0 0 auto; }      /* 不伸缩 */
.w-64 { width: 64px; }
.w-70 { width: 70px; }
.w-80 { width: 80px; }
.w-104 { width: 104px; }
.w-120 { width: 120px; }
.h-120 { height: 120px; }
/* 细粒度间距 / 文本（取代行内 margin、font-size、color） */
.mt-xs { margin-top: 4px; }
.mb-xs { margin-bottom: 6px; }
.my-xs { margin: 6px 0; }
.ml-8 { margin-left: 8px; }
.text-xs { font-size: 11px; }
.pre-wrap { white-space: pre-wrap; }
.check-label { width: auto; }    /* 复选框行内标签 */
.money-due { color: var(--err); font-weight: 600; }   /* 欠费：语义红 */
.money-paid { color: var(--ok); }                      /* 已收：语义绿 */
/* 筛选工具栏 */
.toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  padding: 18px; background: #f6f8fb; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.toolbar > div { flex: 1 1 130px; min-width: 0; }
.loading { padding: 32px; text-align: center; color: var(--muted); font-size: 14px; }
.loading::before {
  content: ""; display: block; width: 24px; height: 24px; margin: 0 auto 10px;
  border: 3px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 统计卡（v4 大气版：大数值大卡片，DESIGN.md §5.2） ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.stat.s-gray::before { background: #9aa3af; }
.stat.s-teal::before { background: var(--teal); }
.stat.s-green::before { background: var(--ok); }
.stat.s-warn::before { background: var(--warn); }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.stat b { display: block; font-size: 28px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat.s-gray b { color: #4b5563; }
.stat.s-teal b { color: var(--teal); }
.stat.s-green b { color: var(--ok); }
.stat.s-warn b { color: var(--warn); }
.stat .foot { font-size: 12px; color: var(--muted-l); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 表格（v4 大气版：行高与字号放大） ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; line-height: 1.55; }
th { color: #4b5563; font-weight: 600; font-size: 13px; background: #f8fafc; white-space: nowrap; letter-spacing: .3px; vertical-align: middle; }
thead th:first-child { border-radius: 8px 0 0 0; }
thead th:last-child { border-radius: 0 8px 0 0; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: #f9fafb; }
tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub { display: block; font-size: 12.5px; color: var(--muted-l); margin-top: 2px; white-space: nowrap; }
.scroll { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow-x: auto; overscroll-behavior-x: contain; }
.scroll table { border: none; }
/* 防错位：窄容器里表格横滚而不是把列压成单字竖排（DESIGN.md §8） */
.scroll table { min-width: 720px; }
.scroll td:first-child, .scroll th:first-child { min-width: 170px; }

/* ---------- 表单（v4 大气版：控件加高） ---------- */
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px; background: #fff; color: var(--text);
  transition: border-color .14s, box-shadow .14s;
}
input:hover, select:hover, textarea:hover { border-color: #aab4c0; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(24, 90, 157, 0.13);
}
textarea { min-height: 110px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.6; }
input[type="checkbox"] { width: auto; accent-color: var(--brand); cursor: pointer; }
/* T-071：按钮行里的内联勾选项（不占整行标签高度，和按钮对齐） */
.check-inline { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 13.5px; color: var(--text); cursor: pointer; }
.field { margin-bottom: 16px; }
.field-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.field-inline > div { flex: 1 1 160px; }

/* ---------- 按钮（v4 大气版） ---------- */
button, .btn {
  padding: 10px 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .14s, border-color .14s, box-shadow .14s, transform .06s;
}
button:hover, .btn:hover { background: #f2f4f7; border-color: #aab4c0; }
button:active, .btn:active { transform: translateY(1px); }
button:focus-visible, .btn:focus-visible, a:focus-visible {
  outline: none; box-shadow: 0 0 0 3px rgba(24, 90, 157, 0.28);
}
button.primary, .btn.primary {
  background: linear-gradient(180deg, #3d93d4, var(--brand)); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(43, 127, 196, 0.25);
}
button.primary:hover, .btn.primary:hover {
  background: linear-gradient(180deg, #3586c6, var(--brand-hover)); border-color: var(--brand-hover);
  box-shadow: 0 2px 6px rgba(43, 127, 196, 0.3);
}
button.danger, .btn.danger { color: var(--err-strong); border-color: var(--err-border); background: #fff; }
button.danger:hover, .btn.danger:hover { background: var(--err-bg); border-color: var(--err-strong); }
button.sm, .btn.sm { padding: 6px 13px; font-size: 12.5px; border-radius: 8px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 标签（v4 大气版） ---------- */
.tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 13px; border: 1px solid var(--border-strong); color: var(--muted); line-height: 1.6; background: #fff; white-space: nowrap; }
.tag.ok { color: var(--ok); border-color: var(--ok-border); background: var(--ok-bg); }
.tag.warn { color: var(--warn); border-color: var(--warn-border); background: var(--warn-bg); }
.tag.err { color: var(--err); border-color: var(--err-border); background: var(--err-bg); }
.tag.info { color: var(--brand); border-color: #bcd6ee; background: var(--brand-soft); }

/* ---------- 反馈 ---------- */
.empty { padding: 40px 28px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: #fafbfc; }
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; line-height: 1.65; }
.alert.err { color: var(--err); background: var(--err-bg); border-color: var(--err-border); }
.alert.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-border); }
.alert.warn { color: var(--warn, #8a5a00); background: #fff8e6; border-color: #f0d9a6; }
.bar { height: 8px; background: #e8ecf1; border-radius: 4px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, #2f7cc4, var(--brand)); border-radius: 4px; transition: width .25s; }

.toast { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast > div {
  background: #2a3038; color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px;
  max-width: 340px; box-shadow: 0 4px 14px rgba(28, 33, 40, 0.22); animation: slideIn .18s ease-out;
}
.toast > div.ok { background: #14563e; }
.toast > div.err { background: #7d1f1f; }
@keyframes slideIn { from { transform: translateY(6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- 登录页 ---------- */
.login-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(43, 127, 196, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 45% at 10% 90%, rgba(43, 127, 196, 0.10), transparent 60%),
    linear-gradient(165deg, #eaf3fa 0%, #dceaf6 55%, #cfe3f2 100%);
}
.login-card {
  width: 420px; max-width: 100%; background: var(--panel); border: none; border-radius: 18px;
  padding: 40px 36px 34px; box-shadow: 0 14px 44px rgba(10, 25, 40, 0.35);
}
.login-card .logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
/* ui-ignore R6 登录页 logo 标识（白字压品牌渐变，非正文） */
.login-card .logo-row .logo {
  width: 48px; height: 48px; border-radius: 12px; flex: 0 0 48px;
  background: linear-gradient(135deg, #2f7cc4, #185a9d);
  display: flex; align-items: center; justify-content: center;
  font-size: 23px; font-weight: 700; color: #fff;
}
.login-card h1 { font-size: 24px; margin: 0; color: var(--text); letter-spacing: .5px; }
.login-card .muted { margin-bottom: 22px; line-height: 1.7; }
.login-card input { padding: 12px 14px; }
.login-card button.primary { width: 100%; padding: 12px; font-size: 15px; }
.login-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.login-demo {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--brand-soft); border: 1px solid #d3e4f3; font-size: 12px; color: #2b5d8f; line-height: 1.7;
}

/* ---------- 其他 ---------- */
.tree { font-size: 13px; }
.tree ul { list-style: none; margin: 0; padding-left: 16px; }
.tree li { padding: 3px 0; }
.tree > ul > li { font-weight: 600; }
.tree > ul > li > ul > li { font-weight: 400; }
.code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #f2f4f7; padding: 2px 7px; border-radius: 5px; color: #4a5560; }
a { color: var(--brand); }
.scroll { overflow-x: auto; }
.crop { max-width: 220px; max-height: 160px; border: 1px solid var(--border); border-radius: 6px; background: #fafafa; }

/* ---------- AI 出题视图 ---------- */
.q-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px;
  margin-bottom: 12px; background: #fbfcfe; line-height: 1.7;
  border-left: 4px solid #bcd6ee; transition: border-color .14s, box-shadow .14s;
}
.q-item:hover { border-left-color: var(--brand); box-shadow: var(--shadow); }
.q-item b { font-weight: 600; }
/* T-027 识题异常导航 */
.q-item.q-abnormal { border-left-color: #d92b2b; background: #fdf3f3; }
#t27nav .tab-active { background: var(--brand); color: #fff; border-color: var(--brand); }
@keyframes t27flash { 0%,100% { box-shadow: none; } 50% { box-shadow: 0 0 0 3px rgba(217,43,43,.35); } }
.q-item.flash { animation: t27flash 1.6s ease; }
/* 质量评估 / 覆盖率报告（AI 阶段二） */
.score-ring { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.score-ring .big { font-size: 34px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.score-ring .lbl { font-size: 12px; color: var(--muted); }
.metric-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.metric {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.metric .m-name { font-size: 12px; color: var(--muted); }
.metric .m-val { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-note { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; line-height: 1.7;
  background: var(--brand-soft); border: 1px solid #d3e4f3; color: #2b5d8f; }
.cov-gap { color: var(--err); }
.cov-ok { color: var(--ok); }

/* ---------- 响应式：窄屏顶栏菜单换行可滚动（v4 大气版） ---------- */
@media (max-width: 900px) {
  .topnav { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
  .topnav-menu { flex-wrap: wrap; gap: 2px; }
  .nav-drop-label { height: auto; padding: 9px 11px; font-size: 14px; }
  .nav-drop-label::after { display: none; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 14px; min-height: 52px; top: 0; }
  /* 窄屏下侧边导航收成横向可滑动条，避免挤占正文宽度 */
  .layout.nav-side { flex-direction: column; }
  .sidenav {
    position: static; width: 100%; flex: 0 0 auto; height: auto; overflow: visible;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .side-brand { padding: 10px 14px; }
  .side-menu { display: flex; gap: 10px; padding: 6px 10px 10px; overflow-x: auto; }
  .side-group { margin-top: 0; flex: 0 0 auto; }
  .side-group + .side-group { margin-top: 0; padding-top: 0; border-top: 0; }
  .side-group-head { display: none; }
  .side-group:not(.open) .side-links,
  .side-group .side-links { display: flex; gap: 2px; margin: 0; padding: 0; border-left: 0; }
  .side-links a { padding: 6px 10px; font-size: 13px; white-space: nowrap; }
  .side-foot { display: none; }
}

/* ===================== 答题卡（M-N11）===================== */
.q-pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.q-pick { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.q-pick .q-no { font-weight: 600; color: var(--brand); min-width: 22px; }
.q-pick .q-cat { color: var(--muted); min-width: 72px; }
.q-pick .q-stem { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-pick .q-score { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.q-pick .q-score input { width: 56px; padding: 3px 6px; }
.q-pick .ghost.sm { padding: 2px 8px; font-size: 13px; }

/* 答题卡本体（A4 比例呈现，打印时按 A4 输出） */
.ans-card {
  background: #fff; color: #1a2330; border: 1px solid #cfd8e3; border-radius: 8px;
  padding: 22px 26px; max-width: 760px; margin: 0 auto; box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.5;
}
.ac-head { border-bottom: 2px solid var(--brand); padding-bottom: 8px; margin-bottom: 12px; }
.ac-title { font-size: 18px; font-weight: 700; text-align: center; letter-spacing: 1px; }
.ac-meta { font-size: 11px; color: #5c6672; margin-top: 6px; text-align: center; }
.sec-title { font-weight: 700; font-size: 14px; margin: 14px 0 8px; color: var(--brand); border-left: 4px solid var(--brand); padding-left: 8px; }

/* 卷头信息区（姓名/班级/考号/条形码），对齐中高考答题卡版式 */
.ac-info { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; }
.ac-info-left { flex: 1; min-width: 0; }
.ac-info-row { display: flex; gap: 18px; margin-bottom: 7px; flex-wrap: wrap; }
.ac-field { display: flex; align-items: center; gap: 4px; font-size: 12.5px; }
.ac-field b { font-weight: 600; }
.ac-line { display: inline-block; min-width: 92px; border-bottom: 1px solid #4a5866; height: 18px; }
.ac-line.short { min-width: 46px; }
.ac-bar { flex: 0 0 156px; border: 1px dashed #6b7785; height: 62px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #6b7785; letter-spacing: .5px; }
.ac-bar-note { font-size: 10.5px; color: #6b7785; text-align: center; margin-top: 3px; }
/* 定位点：OMR 识别用黑色方块（四角） */
.ac-anchor { position: absolute; width: 12px; height: 12px; background: #111; }
.ac-anchor.tl { left: 10px; top: 10px; } .ac-anchor.tr { right: 10px; top: 10px; }
.ac-anchor.bl { left: 10px; bottom: 10px; } .ac-anchor.br { right: 10px; bottom: 10px; }
.ans-card { position: relative; }

/* 考号填涂区 */
.sn-block { border: 1px solid #cfd8e3; border-radius: 6px; padding: 8px 10px; background: #f7fafd; }
.sn-title { font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.sn-grid { display: flex; gap: 5px; justify-content: center; }
.sn-col { display: flex; flex-direction: column; align-items: center; gap: 1px; border-right: 1px dashed #d8e0ea; padding-right: 5px; }
.sn-col:last-child { border-right: none; }
.sn-digit { font-size: 11px; color: #5c6672; min-height: 14px; }
.sn-cell {
  display: flex; align-items: center; justify-content: center;
  width: 15px; height: 9px; border: 1px solid #42536a; border-radius: 1.5px;
  box-sizing: border-box; background: #fff; font-size: 8px; color: #8a94a2; line-height: 1;
}
/* 填涂框：中高考为矩形框（非圆形），A/B/C/D 与考号共用同一形态 */
.bub {
  display: inline-block; width: 15px; height: 9px; border: 1px solid #42536a;
  border-radius: 1.5px; box-sizing: border-box; background: #fff; vertical-align: middle;
}
.bub.sm { width: 15px; height: 9px; }

/* 客观题填涂行 */
.obj-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed #e3e9f0; }
.obj-no { font-weight: 600; min-width: 24px; }
.obj-opts { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
.opt { display: inline-flex; align-items: center; gap: 5px; }
.opt .bub { border-color: #42536a; }
.opt-lbl { font-size: 13px; }
.obj-meta { font-size: 11px; color: #5c6672; min-width: 70px; text-align: right; }

/* 主观题作答框 */
.subj-q { margin: 12px 0 14px; }
.subj-head { font-weight: 600; margin-bottom: 5px; }
.subj-box {
  border: 1.5px solid #9fb0c2; border-radius: 4px; background:
    repeating-linear-gradient(to bottom, #fff 0, #fff 25px, #c3d2e2 25px, #c3d2e2 26px);
}

/* ===== T-035 排版工作台（遵循 DESIGN.md：教育蓝/无紫蓝渐变/对比达标） ===== */
.lw-ruler { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--border); }
.lw-ruler-x { height: 26px; margin-bottom: 4px; }
.lw-ruler-y { width: 26px; height: 891px; flex: 0 0 26px; }
.lw-ruler-track { position: relative; display: block; }
.lw-tick { position: absolute; background: var(--border-strong); }
/* 刻度数字属度量标注组件，11px 独立梯度，不参与正文字号梯度 */
.lw-tick i { position: absolute; font-size: 11px; font-style: normal; color: var(--muted); line-height: 1; }
.lw-ruler-x .lw-tick { bottom: 0; width: 1px; }
.lw-ruler-x .lw-tick.mid { height: 7px; }
.lw-ruler-x .lw-tick.major { height: 12px; }
.lw-ruler-x .lw-tick i { top: -14px; left: 2px; }
.lw-ruler-y .lw-tick { right: 0; height: 1px; }
.lw-ruler-y .lw-tick.mid { width: 7px; }
.lw-ruler-y .lw-tick.major { width: 12px; }
.lw-ruler-y .lw-tick i { left: -22px; top: -5px; }
.lw-ruler .lw-tick.minor { height: 1px; width: 1px; opacity: .5; }
.lw-ruler-y .lw-tick.minor { width: 1px; height: 1px; }
.lw-sheet { max-width: 100%; overflow: auto; background: var(--panel); border: 1px solid var(--border); }
.lw-page { position: relative; background: #fff; margin: 8px auto; border: 1px solid var(--border); }
/* T-062 精确预览（服务端渲染，公式/书写格与导出一致） */
.lw-frame { display: block; width: 100%; min-height: 780px; border: 0; background: #fff; }
.lw-block { position: absolute; border: 1px dashed var(--border-strong); padding: 3px; font-size: 12px; line-height: 1.5; overflow: hidden; }
.lw-qno { float: left; font-weight: 600; margin-right: 3px; }
.lw-stem { display: inline; }
.lw-a { clear: both; font-size: 11px; color: var(--muted); }
.lw-omr { clear: both; margin-top: 3px; font-size: 11px; }
.lw-bub { display: inline-block; width: 12px; height: 6px; border: 1px solid var(--muted); border-radius: 1.5px; vertical-align: middle; }
.lw-health-detail { flex: 1; min-width: 0; }
.lw-issues { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.65; }
.lw-issues li { margin: 4px 0; word-break: normal; }

/* 打印：仅输出答题卡，按 A4 竖版、10mm 页边距 */
@page { size: A4 portrait; margin: 10mm; }
@media print {
  .layout, .topbar, .card > h2, .card .muted, .toolbar, #picker, #selected,
  .row.mt, .ac-meta { display: none !important; }
  .content { padding: 0 !important; }
  .card { border: none !important; box-shadow: none !important; background: none !important; padding: 0 !important; }
  .ans-card { box-shadow: none !important; border: none !important; max-width: 100% !important; width: 190mm; padding: 0 !important; }
  /* 打印按毫米输出：填涂框 5mm×2.5mm，考号格 6mm×3mm，定位点 8mm */
  .bub, .bub.sm { width: 5mm; height: 2.5mm; border-width: 0.3mm; }
  .sn-cell { width: 6mm; height: 3mm; border-width: 0.3mm; }
  .ac-anchor { width: 8mm; height: 8mm; }
  .opt-opts, .obj-opts { gap: 8mm; }
}

/* ---- T-025 批改留痕编辑器（原卷痕迹层） ---- */
.anno-mask{position:fixed;inset:0;background:rgba(15,23,42,.45);display:flex;align-items:center;justify-content:center;z-index:1200}
.anno-win{width:min(1180px,94vw);height:min(860px,92vh);background:#f7faff;border-radius:12px;box-shadow:0 24px 60px rgba(15,23,42,.28);display:flex;flex-direction:column;overflow:hidden}
.anno-head{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#fff;border-bottom:1px solid #e4ebf7}
.anno-head b{font-size:15px;color:#152238;margin-right:10px}
.anno-head-r{display:flex;align-items:center;gap:8px}
.anno-rev{font-size:12px;padding:3px 9px;border-radius:99px;background:#eaf2ff;color:#1f5ad4}
.anno-tools{display:flex;align-items:center;gap:6px;padding:10px 16px;background:#fff;border-bottom:1px solid #eff4fb;flex-wrap:wrap}
.anno-tool{border:1px solid #e4ebf7;background:#fff;border-radius:8px;padding:5px 12px;font-size:12.5px;color:#46587a;cursor:pointer}
.anno-tool:hover{border-color:#c7d2fe}
.anno-tool.on{background:#eaf2ff;border-color:#9dc0ff;color:#1f5ad4;font-weight:600}
.anno-tip{font-size:11.5px;margin-left:auto}
.anno-body{flex:1;min-height:0;display:flex;gap:12px;padding:12px 16px}
.anno-stage{flex:1;min-width:0;overflow:auto;background:#eef2f8;border:1px solid #e4ebf7;border-radius:10px;position:relative;display:flex;align-items:flex-start;justify-content:center;padding:10px}
.anno-stage img{max-width:100%;height:auto;display:block;user-select:none;pointer-events:none}
.anno-stage canvas{position:absolute;left:50%;top:10px;transform:translateX(-50%);cursor:crosshair;touch-action:none}
.anno-loading,.anno-nofile{position:absolute;inset:0;display:grid;place-items:center;color:#8fa1b8;font-size:13px;background:#f7faff}
.anno-stage .anno-nofile{background:transparent;pointer-events:none;z-index:0}
.anno-stage canvas{z-index:1}
.anno-side{width:220px;flex:0 0 220px;background:#fff;border:1px solid #e4ebf7;border-radius:10px;padding:12px;overflow:auto}
.anno-side h4{margin:0 0 10px;font-size:13px;color:#152238}
.anno-grades{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.anno-g{border:1px solid #e4ebf7;background:#fff;border-radius:8px;padding:6px 8px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#46587a}
.anno-g b{color:#152238}
.anno-g.on{background:#eaf2ff;border-color:#9dc0ff;color:#1f5ad4}
.anno-side-h2{margin:14px 0 8px!important}
.anno-vers{display:flex;flex-direction:column;gap:5px}
.anno-ver{border:1px solid #e4ebf7;background:#fff;border-radius:8px;padding:5px 8px;cursor:pointer;display:flex;align-items:center;gap:6px;font-size:11.5px;color:#46587a;text-align:left}
.anno-ver b{color:#152238;font-size:12px}
.anno-ver span{padding:1px 7px;border-radius:99px;background:#dcfce7;color:#117d39;font-size:11px}
.anno-ver.draft span{background:#fef3c7;color:#a45a05}
.anno-ver i{margin-left:auto;font-style:normal;color:#9aa8bd;font-size:10.5px}
.anno-ver.on{border-color:#9dc0ff;background:#eaf2ff}
.anno-readonly .anno-tool,.anno-readonly #annoUndo,.anno-readonly #annoClear,.anno-readonly #annoSync,.anno-readonly #annoCommit{opacity:.45;pointer-events:none}
.anno-readonly .anno-stage canvas{background:rgba(120,140,170,.06)}
@media(max-width:900px){.anno-body{flex-direction:column}.anno-side{width:auto;flex:none;max-height:180px}}

/* ============ v3 组件（DESIGN.md §5 · 复用报修设计系统） ============ */
/* 状态英雄：全站唯一渐变区（v4 大气版） */
.hero{background:linear-gradient(135deg,#2563eb 0%,#0ea5e9 100%);border-radius:12px;color:#fff;
  padding:24px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;
  box-shadow:0 8px 22px rgba(37,99,235,.24);margin-bottom:18px}
.hero h2{font-size:22px;font-weight:600;margin:0;letter-spacing:.3px;display:flex;align-items:center;gap:8px}
.hero h2::before{display:none}
.hero p{font-size:13.5px;opacity:.9;margin:5px 0 0}
.hero-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}
.hero-facts span{font-size:13px;background:rgba(255,255,255,.17);border-radius:20px;padding:3px 12px;white-space:nowrap}
.hero-cta{background:#fff;color:var(--brand-hover);border:none;border-radius:10px;padding:11px 22px;
  font-size:14.5px;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.12);flex:0 0 auto;white-space:nowrap}
.hero-cta:hover{background:#f2f7ff}

/* 磁贴入口（v4 大气版：磁贴加高、图标放大） */
.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}
.tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;
  min-height:92px;padding:12px 6px;border-radius:var(--radius);background:var(--panel);color:#374151;
  border:1px solid var(--border);box-shadow:var(--shadow);cursor:pointer;transition:.15s;
  font:inherit;text-align:center}
.tile:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:#bfd4fb}
.tile .ico{font-size:27px;line-height:1}
.tile .label{font-size:13.5px;white-space:nowrap}
.tile.primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:0 4px 14px rgba(37,99,235,.22)}
.tile.primary:hover{background:var(--brand-hover);box-shadow:0 6px 18px rgba(37,99,235,.3)}

/* 双栏内容区（v4 大气版：栏间距加大） */
.cols{display:grid;grid-template-columns:1.55fr 1fr;gap:18px;align-items:start}
.cols > .card{margin-bottom:0}

/* 待办列表（v4 大气版） */
.todo{display:flex;gap:12px;padding:12px 0;border-bottom:1px dashed var(--border)}
.todo:last-child{border-bottom:none;padding-bottom:2px}
.todo .t-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:14px;flex:0 0 30px}
.todo .t-main{flex:1;min-width:0}
.todo .t-title{font-size:14px;font-weight:500;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.todo .t-meta{font-size:12.5px;color:var(--muted-l);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.todo .t-btn{align-self:center;flex:0 0 auto;font-size:13px;color:var(--brand);background:var(--brand-soft);
  border:none;border-radius:8px;padding:6px 12px;cursor:pointer;white-space:nowrap;font-family:inherit}
.todo .t-btn:hover{background:#dfe9ff}

/* 空态（图标 + 一句解释 + 一个动作，v4 大气版） */
.empty-call{text-align:center;padding:36px 14px;color:var(--muted)}
.empty-call .ec-ico{font-size:32px;line-height:1;margin-bottom:8px;opacity:.7}
.empty-call .ec-title{font-size:14.5px;color:#4b5563;font-weight:500}
.empty-call .ec-desc{font-size:13px;color:var(--muted-l);margin-top:3px;line-height:1.6}
.empty-call .ec-btn{margin-top:13px;background:var(--brand-soft);color:var(--brand-hover);border:1px solid #c7dcff;
  border-radius:9px;padding:7px 15px;font-size:13.5px;cursor:pointer;font-family:inherit}
.empty-call .ec-btn:hover{background:#dfe9ff}

/* 标签扩展（DESIGN.md §5.5） */
.tag.gray{color:#4b5563;border-color:#e5e7eb;background:#f3f4f6}
.tag.review{color:var(--review);border-color:#ddd0fb;background:var(--review-bg)}
.act-cell{display:flex;gap:6px;white-space:nowrap}
.tag.teal{color:var(--teal);border-color:#a8e5dd;background:var(--teal-bg)}

/* 导航图标位（固定 16×16，避免 emoji 视觉重量不一） */
.nav-drop-menu a{display:flex;align-items:center;gap:10px}
.nav-drop-menu a .ni{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center;
  font-size:17px;line-height:1;flex:0 0 18px;opacity:.85}
.nav-drop-label .ng{font-size:17px;margin-right:8px;line-height:1;opacity:.9}

/* ---------- v4 断点（DESIGN.md §4.2） ---------- */
@media (max-width:1080px){
  .cols{grid-template-columns:1fr}
  .content{padding:22px 20px 44px}
}
@media (max-width:820px){
  .stats{grid-template-columns:repeat(2,1fr)}
  .quick-grid{grid-template-columns:repeat(3,1fr)}
  .hero{flex-direction:column;align-items:flex-start;gap:10px}
}
@media (max-width:640px){
  .stats{grid-template-columns:1fr}
  .quick-grid{grid-template-columns:repeat(2,1fr)}
}

/* T-042 BYOK 绑定区：平台卡片一行一个平台，选中高亮；Key 链接做成一等按钮 */
.bind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.bind-tile { border: 1px solid var(--border-strong); display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 10px 12px; border-radius: 10px; background: #fff; }
.bind-tile.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(37,99,235,.12); background: var(--brand-soft); }
.bind-tile-t { font-size: 14px; font-weight: 600; color: var(--text); }
.bind-tile-v { font-size: 12px; color: var(--muted); }
.bind-steps { margin: 4px 0 10px; font-size: 12px; color: var(--muted); line-height: 1.9; }
.bind-steps b { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; margin-right: 6px; }
.bind-linkrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bind-get { display: inline-block; text-decoration: none; padding: 9px 16px; font-size: 14px; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 8px; }
.bind-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bind-l { flex: 0 0 132px; font-size: 13px; color: var(--muted); }
.bind-row input { flex: 1 1 260px; max-width: 460px; }
.linklike { border: 0; background: none; color: var(--brand); padding: 0 4px; font-size: 12px; }
.linklike:hover { background: none; text-decoration: underline; }
