:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --line: #e6e9f0;
  --text: #1f2733;
  --muted: #7a8494;
  --primary: #1677ff;
  --primary-d: #0e5fd8;
  --green: #16a34a;
  --amber: #f59e0b;
  --violet: #7c3aed;
  --shadow: 0 4px 20px rgba(22, 34, 56, .06);
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* 确保 hidden 属性始终生效，避免被下方 display:flex 等规则覆盖 */
[hidden] { display: none !important; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.app { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 18px; border-bottom: 1px solid var(--line);
}
.brand-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, #1677ff, #16a34a);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(22, 119, 255, .22);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.brand-text strong { font-size: 13.5px; line-height: 1.45; text-wrap: balance; }
.brand-text span { font-size: 11px; color: var(--muted); }

.nav { padding: 16px 12px; flex: 1; }
.nav-label {
  font-size: 11px; color: var(--muted); letter-spacing: .5px;
  padding: 12px 10px 6px;
}
.nav-item {
  width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; color: #4a5565;
  font-size: 14px; text-align: left; transition: .15s;
  font-family: inherit;
}
.nav-item:hover { background: #f3f6fc; }
.nav-item.active { background: #eaf2ff; color: var(--primary); font-weight: 600; }
.nav-ico {
  width: 22px; text-align: center; font-size: 16px; color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
/* 每个板块用自带主色，图标与业务一一对应 */
.nav-ico.sun, .nav-ico.solar { color: var(--amber); }
.nav-ico.charging { color: #1677ff; }
.nav-ico.storage { color: var(--violet); }
.nav-ico.defense { color: #0d9488; }
.nav-ico.archive { color: #0891b2; }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 32px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 2px 12px rgba(22, 34, 56, .03);
}
.topbar h1 { font-size: 20px; }
.subtitle { color: var(--muted); font-size: 13px; margin-top: 3px; }
.topbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  border: 0; border-radius: 10px; padding: 10px 18px; cursor: pointer;
  font-size: 14px; font-family: inherit; font-weight: 600; transition: .15s;
}
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: #f1f3f8; color: #4a5565; }
.btn.ghost:hover { background: #e7eaf1; }
.btn.danger { background: #fee2e2; color: #dc2626; }
.btn.danger:hover { background: #fecaca; }
.btn .btn-ic { display: inline-flex; align-items: center; margin-right: 6px; vertical-align: middle; }

/* ---------- 统一图标：24×24 线性 SVG，颜色继承 currentColor ---------- */
.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex-shrink: 0; }
.btn .btn-ic .ic { width: 16px; height: 16px; }
.brand-icon .ic { width: 24px; height: 24px; }
.nav-ico .ic { width: 18px; height: 18px; }
.proj-badge .ic { width: 20px; height: 20px; }
.tag .ic { width: 12px; height: 12px; margin-right: 3px; vertical-align: -.14em; }
.icon-btn .ic { width: 15px; height: 15px; }
.upload-ico .ic { width: 22px; height: 22px; }
.success-icon .ic { width: 34px; height: 34px; }
.login-ico .ic { width: 28px; height: 28px; }
.inspection-files .ic, .existing-file .ic, .insp-files .ic { width: 13px; height: 13px; margin-right: 4px; vertical-align: -.15em; }

.content { padding: 26px 32px 60px; }

.overview-charts {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-bottom: 20px;
}
.overview-charts > .card { min-width: 0; }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { font-size: 15px; margin-bottom: 16px; }

/* 柱状图 */
.bar-chart { display: flex; align-items: flex-end; gap: 26px; height: 150px; padding: 0 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-wrap { width: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 46px; border-radius: 8px 8px 0 0; min-height: 4px;
  transition: height .4s ease; position: relative;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, .08), 0 3px 8px rgba(22, 34, 56, .08);
}
.bar-val { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.bar-label { font-size: 12px; color: var(--muted); }
.bar-col { cursor: default; }
.chart-empty {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--muted); font-size: 13px;
}
.bar-col { transition: opacity .2s; }
.overview-charts.board-mode .bar-col:not(.active) { opacity: .38; }
.overview-charts.board-mode .bar-col.active .bar-label { color: var(--primary); font-weight: 700; }

/* 状态分布 */
.status-chart { display: flex; flex-direction: column; gap: 12px; }
.status-row { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 0; }
.status-row .name { width: 56px; flex-shrink: 0; color: #4a5565; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-track { flex: 1; min-width: 0; height: 9px; background: #eef1f6; border-radius: 6px; overflow: hidden; }
.status-fill { height: 100%; border-radius: 6px; }
.status-row .num { width: 24px; text-align: right; color: var(--muted); }

/* 检查归档：本月检查清单 */
.month-insp-row {
  display: flex; align-items: flex-start; gap: 9px; min-width: 0;
  padding: 8px 10px; border-radius: 9px; background: #f7f9fc;
  border: 1px solid #eef1f6;
}
.month-insp-row .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.month-insp-row .mi-body { min-width: 0; flex: 1; }
.month-insp-row .mi-name {
  font-size: 13px; color: #263041; font-weight: 600; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.month-insp-row .mi-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* 项目列表 */
.list-card { padding-bottom: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.list-head h3 { margin: 0; }
.search-wrap { position: relative; width: 240px; max-width: 100%; flex-shrink: 0; }
.search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #9aa4b2; pointer-events: none; display: inline-flex; z-index: 1;
}
.search-ico .ic { width: 15px; height: 15px; }
.search {
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px 9px 34px;
  width: 100%; max-width: 100%; font-size: 13px; font-family: inherit;
  outline: none; background: #fafbfe; transition: .15s;
}
.search:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px #eaf2ff; }
/* minmax(0, 1fr) 是关键：防止长项目名/地址把网格列撑宽，造成整页横向溢出 */
.project-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; align-items: stretch; min-width: 0;
}
.project-item {
  border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px;
  display: flex; gap: 12px; align-items: stretch; min-width: 0;
  overflow: hidden; cursor: pointer; position: relative;
  background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.project-item:hover {
  border-color: #bcd3f7; box-shadow: 0 10px 24px rgba(22, 34, 56, .09);
  transform: translateY(-2px);
}
.project-item::after {
  content: ''; position: absolute; right: 12px; bottom: 11px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b6c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .18s, transform .18s;
}
.project-item:hover::after { opacity: 1; transform: none; }
.proj-badge {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  align-self: flex-start;
  display: grid; place-items: center; color: #fff; font-size: 17px;
  box-shadow: 0 3px 9px rgba(22, 34, 56, .13);
}
.proj-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.proj-name {
  font-weight: 650; font-size: 14.5px; line-height: 1.45; margin-bottom: 7px;
  color: #1f2733; min-width: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.proj-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.proj-contacts { margin-top: 5px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 3px 14px; min-width: 0; }
.proj-meta > span, .proj-contacts > span {
  min-width: 0; max-width: 100%; line-height: 1.5;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.proj-meta em, .proj-contacts em { font-style: normal; color: #a3adbb; margin-right: 5px; }
.proj-tags {
  margin-top: auto; padding-top: 10px; padding-right: 18px;
  display: flex; gap: 6px; flex-wrap: wrap; min-width: 0;
}
.tag {
  font-size: 11px; padding: 3px 9px; border-radius: 20px;
  background: #f1f3f8; color: #5b6575; line-height: 1.5;
  max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tag.cat { background: #eaf2ff; color: var(--primary); font-weight: 600; }
.tag.ok { background: #dcfce7; color: #15803d; }
.tag.status-tag { border: 1px solid rgba(31, 39, 51, .05); }
.tag.insp-seq { background: #fff3e0; color: #b45309; font-weight: 600; }
.tag .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; margin-right: 5px; vertical-align: 1px;
}
.empty {
  grid-column: 1 / -1; text-align: center; color: var(--muted);
  padding: 50px 20px; border: 1px dashed var(--line); border-radius: 12px;
}

/* 检查归档：逐条检查记录卡片 */
.inspection-row .insp-summary {
  margin-top: 8px; display: flex; flex-direction: column; gap: 5px;
  font-size: 12px; color: #4a5565; min-width: 0;
}
.inspection-row .insp-summary > div {
  min-width: 0; line-height: 1.5; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.inspection-row .insp-summary em {
  font-style: normal; color: var(--muted); margin-right: 8px; font-weight: 600;
}
.insp-files a { color: var(--primary); font-size: 12px; text-decoration: none; word-break: break-all; }
.insp-files a:hover { text-decoration: underline; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18, 26, 40, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 30px 16px; z-index: 50; overflow-y: auto;
}
.modal {
  background: #fff; width: 760px; max-width: 100%; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2); overflow: hidden;
  animation: pop .2s ease-out;
  /* 标题 / 内容 / 底栏三段式：内容超高时只滚内容区，操作按钮常驻可见 */
  display: flex; flex-direction: column; max-height: calc(100vh - 60px);
}
@keyframes pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 20px 26px; border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.modal-head h2 { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.modal-head p { color: var(--muted); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.icon-btn {
  border: 0; background: #f1f3f8; width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; color: #6b7280; font-size: 15px;
  display: grid; place-items: center;
}
.modal-body {
  padding: 22px 26px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
}
/* 弹窗底部操作栏（导出 / 项目详情 / 检查记录 / Excel 导入）：
   与内容区分离，四周留白，按钮不再贴边贴底，长内容时始终可见 */
.modal > .form-actions {
  flex: 0 0 auto;
  padding: 16px 26px 22px;
  background: #fbfcfe;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -6px 18px rgba(24, 40, 70, .05);
}
.modal > .form-actions .action-btns {
  min-width: 0; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
}
/* 项目信息弹窗（48 字段只读/编辑网格） */
.pinfo-modal { width: 920px; }
.pv-group { margin-bottom: 20px; }
.pv-group-title { font-size: 14px; font-weight: 600; color: var(--primary); padding: 6px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.pv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.pv-item { min-width: 0; }
.pv-item.full { grid-column: 1 / -1; }
.pv-item > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.pv-value { font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; padding: 7px 10px; background: #f7f8fb; border-radius: 7px; min-height: 32px; }
.pv-item input, .pv-item select, .pv-item textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-size: 13px; font-family: inherit; outline: none; color: var(--text);
  background: #fff; width: 100%;
}
.pv-item textarea { resize: vertical; line-height: 1.5; }
.pv-item input:focus, .pv-item select:focus, .pv-item textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #eaf2ff; }
.form-section { margin-bottom: 22px; }
.section-title {
  font-size: 14px; font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title span {
  width: 22px; height: 22px; border-radius: 6px; background: #eaf2ff;
  color: var(--primary); display: grid; place-items: center; font-size: 12px;
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 13px; color: #4a5565; font-weight: 500; }
.field em { color: #e11d48; font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px;
  font-size: 13px; font-family: inherit; outline: none; color: var(--text);
  background: #fff; transition: .15s; width: 100%;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #eaf2ff; }
/* 项目信息登记：数字单位、加载提示 */
.field-with-unit { display: flex; align-items: center; gap: 8px; }
.field-with-unit input { flex: 1; min-width: 0; }
.field-unit { font-size: 12px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.loading-tip { padding: 40px 10px; text-align: center; color: var(--muted); font-size: 14px; }

/* 检查登记：项目名称搜索已登记项目 */
.project-name-field > label { font-size: 13px; color: #4a5565; font-weight: 500; }
.field-hint { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.autocomplete-wrap { position: relative; display: block; }
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
  max-height: 280px; overflow-y: auto; padding: 4px;
}
.autocomplete-item { padding: 9px 10px; border-radius: 7px; cursor: pointer; }
.autocomplete-item:hover, .autocomplete-item.active { background: #f0f6ff; }
.ac-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; word-break: break-all; }
.ac-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 11px; color: var(--muted); }
.ac-type { background: #e8f2ff; color: var(--primary-d); border-radius: 999px; padding: 1px 8px; }
.ac-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ac-reg { color: var(--green); }
.autocomplete-empty { padding: 12px 10px; font-size: 12px; color: var(--muted); text-align: center; }

/* 已归档附件（编辑模式） */
.existing-block {
  border: 1px solid #d8e6fa; background: #f6faff; border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px;
}
.existing-title { font-size: 13px; font-weight: 600; color: #33527f; margin-bottom: 10px; }
.existing-title span { font-weight: 400; color: var(--muted); font-size: 12px; }
.existing-file { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; cursor: pointer; }
.existing-file a { color: var(--primary); text-decoration: none; }
.existing-file a:hover { text-decoration: underline; }
.existing-hint { color: var(--muted); font-size: 11px; }
.existing-photos { display: flex; flex-wrap: wrap; gap: 10px; }
.existing-photo { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.existing-photo img { width: 76px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.existing-photo span { font-size: 11px; color: var(--muted); }
.existing-photo input { accent-color: var(--primary); }
.existing-none { font-size: 12px; color: var(--muted); }

/* 上传区 */
.upload-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box {
  border: 1.5px dashed #cfd8e6; border-radius: 12px; padding: 16px;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: .15s; background: #fafbfe;
}
.upload-box:hover { border-color: var(--primary); background: #f5f9ff; }
.upload-box.filled { border-style: solid; border-color: var(--green); background: #f6fdf9; }
.upload-ico {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}
.upload-ico.pdf { background: #e11d48; }
.upload-ico.photo { background: var(--violet); font-size: 20px; }
.upload-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.upload-info strong { font-size: 13px; }
.upload-info span { font-size: 11px; color: var(--muted); }
.upload-state { margin-left: auto; font-size: 11px; color: var(--primary); max-width: 110px; text-align: right; word-break: break-all; }
/* 上传预览 */
.pdf-preview-wrap { margin-top: 10px; }
.pdf-preview {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #fecdd3; background: #fff5f6; border-radius: 10px;
  padding: 8px 12px; text-decoration: none; transition: .15s;
}
.pdf-preview:hover { border-color: #e11d48; background: #fff0f2; }
.pdf-preview-ico {
  background: #e11d48; color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 5px; padding: 4px 6px;
}
.pdf-preview-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pdf-preview-info strong { font-size: 12px; color: var(--text); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-preview-info small { font-size: 11px; color: var(--muted); }

.photo-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.photo-thumb {
  width: 88px; cursor: zoom-in; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; background: #fafbfe; transition: .15s;
}
.photo-thumb:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.photo-thumb img { width: 100%; height: 66px; object-fit: cover; display: block; }
.photo-thumb span {
  display: block; font-size: 10px; color: var(--muted);
  padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.photo-chip {
  background: #f1f3f8; border-radius: 7px; padding: 4px 9px; font-size: 11px; color: #5b6575;
}

/* 图片放大 */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 20, 30, .88);
  display: flex; align-items: center; justify-content: center; z-index: 200;
}
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lightbox-inner img { max-width: 90vw; max-height: 78vh; border-radius: 8px; object-fit: contain; }
.lightbox-inner p { color: #fff; font-size: 13px; }
.lightbox-inner .btn { background: rgba(255,255,255,.15); color: #fff; }

.form-actions {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.err-msg { color: #e11d48; font-size: 13px; }
.action-btns { display: flex; gap: 10px; margin-left: auto; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1f2937; color: #fff; padding: 13px 22px; border-radius: 10px;
  font-size: 14px; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,.2);
  animation: pop .2s ease-out;
}

/* ---------- 独立填写页 ---------- */
.fill-page { background: var(--bg); }
.fill-header {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 14px 32px; display: flex; align-items: center;
}
.fill-brand { display: flex; align-items: center; gap: 12px; }
.fill-brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.fill-brand-text strong { font-size: 15px; }
.fill-brand-text span { font-size: 12px; color: var(--muted); }
.fill-main { max-width: 820px; margin: 0 auto; padding: 30px 20px 70px; }
.fill-intro { text-align: center; margin-bottom: 24px; }
.fill-intro h1 { font-size: 23px; margin-bottom: 8px; }
.fill-intro p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.fill-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px; box-shadow: var(--shadow);
}
.fill-card .form-actions { justify-content: flex-end; }
.fill-card .action-btns { margin-left: 0; }

.success-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 40px 30px; box-shadow: var(--shadow); text-align: center;
}
.success-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: #dcfce7; color: var(--green); font-size: 30px;
  display: grid; place-items: center;
}
.success-panel h2 { font-size: 22px; margin-bottom: 8px; }
.success-panel > p { color: #4a5565; margin-bottom: 20px; }
.success-detail {
  background: #f6faff; border: 1px solid #d8e6fa; border-radius: 10px;
  padding: 14px 18px; text-align: left; font-size: 13px; line-height: 1.9;
  color: #33527f; margin-bottom: 22px; word-break: break-all;
}

/* 提交后展示刚归档的项目 */
.submitted-project {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  text-align: left; margin-bottom: 18px; overflow: hidden;
}
.sp-head {
  padding: 18px 20px; border-bottom: 1px solid #dbe8fa;
  background: linear-gradient(135deg, #f0f7ff, #f9fbff);
}
.sp-head-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sp-tag {
  display: inline-block; background: #e8f2ff; color: var(--primary-d);
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.sp-serial { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sp-head h3 { font-size: 19px; line-height: 1.4; word-break: break-all; }
.sp-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px; padding: 18px 20px;
}
.sp-item { min-width: 0; }
.sp-item.full { grid-column: 1 / -1; }
.sp-item > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.sp-value { font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.sp-files {
  border-top: 1px dashed var(--line); margin: 0 20px; padding: 14px 0 18px;
  font-size: 12px; color: #33527f; line-height: 1.8; word-break: break-all;
}

/* 管理员登录 / 首次设置密码 */
.login-main { max-width: 460px; margin: 0 auto; padding: 48px 16px 80px; }
.login-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 30px; box-shadow: var(--shadow); text-align: center;
}
.login-ico {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 16px;
  background: #e8f2ff; color: var(--primary); display: grid; place-items: center;
}
.login-card h1 { font-size: 22px; margin-bottom: 8px; }
.login-card > p { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-card form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.login-card form .btn { width: 100%; padding: 11px; }
.login-tip { margin-top: 18px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.small-modal { max-width: 460px; }
.small-modal .field { margin-bottom: 14px; }
.export-scope {
  background: #f0f6ff; border: 1px solid #d8e6fa; border-radius: 9px;
  padding: 9px 12px; font-size: 13px; color: #33527f; font-weight: 600; margin-bottom: 14px;
}
.export-type-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.export-radio {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; transition: .15s;
}
.export-radio.checked { border-color: var(--primary); background: #f6faff; }
.export-radio input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; margin-top: 2px; }
.export-radio span { display: flex; flex-direction: column; gap: 3px; }
.export-radio strong { font-size: 14px; color: var(--text); }
.export-radio small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.export-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.export-checkbox input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.export-checkbox.disabled { opacity: .5; cursor: not-allowed; }
.export-checkbox.disabled input { cursor: not-allowed; }
.export-hint { margin-top: 10px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.export-hint a { color: var(--primary); text-decoration: underline; }
.import-result { margin-top: 16px; padding: 14px; background: var(--bg-soft, #f6f8fc); border-radius: 10px; }
.import-summary { display: flex; gap: 8px; flex-wrap: wrap; }
.import-summary > div { flex: 1 1 60px; text-align: center; padding: 10px 4px; background: #fff; border-radius: 8px; border: 1px solid var(--border, #e8ecf3); }
.import-summary .num { display: block; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2; }
.import-summary .num.ok { color: #16a34a; }
.import-summary .num.merge { color: #1677ff; }
.import-summary .num.skip { color: #e11d48; }
.import-summary > div > span:last-child { font-size: 12px; color: var(--muted); }
.import-ok-msg { margin: 12px 0 0; font-size: 13px; color: var(--text); }
.import-errors { margin-top: 10px; font-size: 12px; color: var(--muted); }
.import-errors ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; }
.import-error-msg { margin-top: 12px; padding: 10px 12px; background: #fff1f2; color: #e11d48; border-radius: 8px; font-size: 13px; }

/* 项目信息登记页：Excel 批量导入入口 */
.fill-tools {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.fill-tools .btn { white-space: nowrap; }
.fill-tools-tip { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- 项目详情：项目信息 + 检查信息 ---------- */
.topbar-actions .work-btn { box-shadow: 0 4px 12px rgba(22,119,255,.18); }
.detail-tabs { margin-bottom: 24px; }
.inspection-section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.inspection-section-head h3 { font-size: 15px; }
.inspection-section-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.inspection-list { display: flex; flex-direction: column; gap: 12px; }
.inspection-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fafbfe; }
.inspection-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.inspection-head strong { display: block; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.inspection-head span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.small-btn { padding: 6px 12px; font-size: 12px; white-space: nowrap; }
.inspection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.insp-item { min-width: 0; }
.insp-item.full { grid-column: 1 / -1; }
.insp-item > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.insp-item > div { font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.inspection-files { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.inspection-files a { color: var(--primary); font-size: 12px; text-decoration: none; word-break: break-all; }
.inspection-files a:hover { text-decoration: underline; }
.insp-file-chip {
  display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%;
  padding: 3px 6px; border: 1px solid var(--line); border-radius: 7px; background: #fff;
}
.insp-file-chip .insp-file-link { display: inline-flex; align-items: center; min-width: 0; }
.insp-file-chip .insp-file-label { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.insp-file-chip .insp-file-input {
  width: 230px; max-width: 46vw; height: 24px; padding: 0 6px;
  border: 1px solid var(--primary); border-radius: 5px;
  background: #fff; color: #263041; font-size: 12px; outline: none;
}
.insp-file-chip .insp-file-input:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.insp-file-chip button {
  border: 0; background: transparent; color: #94a0b0; cursor: pointer;
  padding: 2px; border-radius: 4px; display: flex; flex-shrink: 0;
}
.insp-file-chip button .ic { width: 13px; height: 13px; margin-right: 0; }
.insp-file-chip .insp-file-edit:hover { background: #e8f1ff; color: var(--primary); }
.insp-file-chip .insp-file-save:hover { background: #e7f7ee; color: #16a34a; }
.insp-file-chip .insp-file-cancel:hover { background: #f1f3f7; color: #64748b; }

/* 检查信息附件缩略图卡片 */
.insp-file-chip.insp-file-thumb {
  position: relative; display: inline-flex; flex-direction: column; align-items: stretch;
  gap: 0; padding: 6px; width: 116px; max-width: 116px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.insp-file-chip.insp-file-thumb:hover { border-color: var(--primary); box-shadow: 0 3px 10px rgba(37,99,235,.10); }
.insp-file-thumb .insp-file-link { display: flex; flex-direction: column; align-items: center; min-width: 0; color: var(--primary); }
.insp-file-thumb .insp-file-link:hover { text-decoration: none; }
.insp-file-thumb .thumb-box {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 78px; overflow: hidden; border-radius: 6px;
  background: #f2f5fa; color: #94a0b0;
}
.insp-file-thumb .thumb-fallback { display: flex; }
.insp-file-thumb .thumb-fallback .ic { width: 30px; height: 30px; margin: 0; }
.insp-file-thumb .thumb-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; background: #fff;
}
.insp-file-thumb .thumb-doc { background: #f5f6fa; }
.insp-file-thumb .thumb-doc > .ic { width: 34px; height: 34px; margin: 0; color: #64748b; }
.insp-file-thumb .thumb-doc-badge {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  padding: 1px 5px; border-radius: 4px; font-size: 10px; line-height: 1.5; font-weight: 600;
  color: #fff; background: #dc2626; letter-spacing: .3px;
}
.insp-file-thumb .insp-file-label {
  display: block; width: 100%; max-width: 100%; margin-top: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
  color: #334155; font-size: 12px; line-height: 1.4;
}
.insp-file-thumb .insp-file-input { width: 100%; max-width: 100%; margin-top: 6px; }
.insp-file-chip.insp-file-thumb.editing { width: 170px; max-width: 170px; }
.insp-file-chip.insp-file-thumb.editing .insp-file-input { width: 158px; max-width: 158px; }
.insp-file-thumb button {
  position: absolute; top: 3px; z-index: 2;
  padding: 3px; border-radius: 6px; background: rgba(255,255,255,.94);
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.insp-file-thumb .insp-file-edit { right: 3px; }
.insp-file-thumb .insp-file-save { right: 3px; }
.insp-file-thumb .insp-file-cancel { right: 25px; }
.insp-file-thumb button .ic { width: 14px; height: 14px; margin: 0; }
.insp-file-thumb.inspection-files a { word-break: normal; }
.small-empty { padding: 24px 16px; }

/* 项目相关文件 */
.proj-files-section { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.proj-files-section + .inspection-section-head {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
.proj-files-section .pf-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px;
}
.proj-files-section .pf-head h3 { margin: 0; font-size: 15px; }
.proj-files-section .pf-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.pf-upload-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.pf-upload-btn .ic { width: 16px; height: 16px; }
.pf-list { display: flex; flex-direction: column; gap: 8px; }
.proj-file-row {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe;
}
.proj-file-row .pf-ico { color: var(--primary); flex-shrink: 0; display: flex; }
.proj-file-row .pf-ico .ic { width: 17px; height: 17px; }
.proj-file-row .pf-name {
  flex: 1; min-width: 0; color: #263041; font-size: 13px; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.proj-file-row .pf-name:hover { color: var(--primary); text-decoration: underline; }
.proj-file-row .pf-size { color: var(--muted); font-size: 11px; flex-shrink: 0; }
.proj-file-row .pf-edit,
.proj-file-row .pf-save,
.proj-file-row .pf-cancel,
.proj-file-row .pf-del {
  border: 0; background: transparent; color: #94a0b0; cursor: pointer;
  flex-shrink: 0; padding: 3px; border-radius: 6px; display: flex;
}
.proj-file-row .pf-edit:hover { background: #e8f1ff; color: var(--primary); }
.proj-file-row .pf-save:hover { background: #e7f7ee; color: #16a34a; }
.proj-file-row .pf-cancel:hover { background: #f1f3f7; color: #64748b; }
.proj-file-row .pf-del:hover { background: #fee2e2; color: #dc2626; }
.proj-file-row .pf-edit .ic,
.proj-file-row .pf-save .ic,
.proj-file-row .pf-cancel .ic,
.proj-file-row .pf-del .ic { width: 15px; height: 15px; }
.proj-file-row .pf-rename-input {
  flex: 1; min-width: 0; height: 28px; padding: 0 8px;
  border: 1px solid var(--primary); border-radius: 6px;
  background: #fff; color: #263041; font-size: 13px; outline: none;
}
.proj-file-row .pf-rename-input:focus { box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.pf-empty { padding: 18px 14px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 9px; }

@media (max-width: 900px) {
  .overview-charts { grid-template-columns: minmax(0, 1fr); }
  .project-list { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .upload-row { grid-template-columns: 1fr; }
  .sidebar { width: 68px; }
  /* 折叠态只保留图标：彻底隐藏文字容器，避免零号字仍占位把品牌区撑高 */
  .brand { justify-content: center; padding: 16px 0; }
  .brand-text, .nav-label { display: none; }
  .nav-item { justify-content: center; font-size: 0; }
  .nav-ico .ic { width: 20px; height: 20px; }
  .fill-header { padding: 12px 16px; }
  .fill-main { padding: 20px 12px 50px; }
  .fill-card { padding: 18px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-head h3 { font-size: 17px; }
  .topbar { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .topbar-actions { flex-wrap: wrap; }
}

/* ---------- 手机（≤640px）：侧边栏改顶部横向导航，内容全宽 ---------- */
@media (max-width: 640px) {
  .app { flex-direction: column; }

  /* 侧边栏 → 顶部导航 */
  .sidebar {
    width: 100%; height: auto; position: static;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .brand { justify-content: flex-start; padding: 11px 14px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text { display: flex; }
  .brand-text, .nav-item:not(.active) { font-size: 13px; }
  .brand-text strong { font-size: 14px; }
  .nav {
    display: flex; flex: 0 0 auto; gap: 6px;
    padding: 8px 12px 10px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav-label { display: none; }
  .nav-item {
    width: auto; flex: 0 0 auto; justify-content: flex-start;
    padding: 8px 12px; gap: 6px; font-size: 13px;
  }
  .nav-ico { width: auto; }
  .nav-ico .ic { width: 16px; height: 16px; }

  /* 顶栏：标题一行，按钮两列网格，主操作占整行 */
  .topbar { position: static; padding: 14px 14px 12px; gap: 10px; align-items: flex-start; box-shadow: none; }
  .topbar h1 { font-size: 18px; }
  .subtitle { font-size: 12px; }
  .topbar-actions {
    width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  }
  .topbar-actions .btn { padding: 9px 8px; font-size: 13px; text-align: center; }
  .topbar-actions .btn.primary { grid-column: 1 / -1; }

  /* 内容区 */
  .content { padding: 16px 12px 48px; }
  .card { padding: 16px; }
  .card h3 { font-size: 14px; margin-bottom: 12px; }
  .bar-chart { gap: 10px; padding: 0; }
  .bar { width: 38px; }
  .status-row .name { width: 52px; }
  .list-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-wrap, .search { width: 100%; }
  /* 手机卡片：缩小内边距，隐藏悬停箭头，长文本仍限制在卡片内 */
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .project-item { padding: 13px 12px; gap: 10px; border-radius: 12px; }
  .project-item::after { display: none; }
  .proj-badge { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
  .proj-badge .ic { width: 18px; height: 18px; }
  .proj-name { font-size: 14px; }
  .proj-tags { padding-right: 0; }
  .pv-grid, .inspection-grid { grid-template-columns: 1fr; gap: 12px; }
  .inspection-head { flex-direction: column; align-items: stretch; }
  .inspection-section-head { flex-direction: column; align-items: stretch; }

  /* 输入控件 16px，避免 iOS 聚焦时自动放大页面 */
  .field input, .field select, .field textarea, .search { font-size: 16px; }

  /* 弹窗全屏 */
  .modal-mask {
    padding: 0; align-items: flex-start;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .modal {
    width: 100%; max-width: 100%; min-height: 100vh;
    border-radius: 0; overflow: visible; max-height: none;
  }
  .modal-head { padding: 16px; }
  .modal-head h2 { font-size: 16px; }
  .modal-head p { font-size: 11px; }
  .modal-body { padding: 16px; overflow: visible; }
  .form-section { margin-bottom: 18px; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .modal > .form-actions {
    padding: 14px 16px 20px; border-radius: 0;
    position: sticky; bottom: 0; z-index: 2;
  }
  .modal > .form-actions .btn {
    padding-left: 8px; padding-right: 8px; font-size: 13px; white-space: nowrap;
  }
  .action-btns {
    margin-left: 0; width: 100%; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 8px;
  }
  .upload-box { padding: 12px; }
  .upload-state { max-width: 88px; }
  .existing-hint { display: block; }

  /* 独立填写页 */
  .fill-header { padding: 11px 14px; }
  .fill-brand-text strong { font-size: 13px; }
  .fill-intro h1 { font-size: 19px; }
  .fill-card { padding: 16px; border-radius: 12px; }

  /* 提交成功页 */
  .success-panel { padding: 28px 16px; }
  .success-panel h2 { font-size: 19px; }
  .sp-head { padding: 14px 16px; }
  .sp-head h3 { font-size: 16px; }
  .sp-grid { padding: 14px 16px; gap: 12px; }
  .sp-files { margin: 0 16px; }

  /* 登录页 */
  .login-main { padding: 24px 12px 50px; }
  .login-card { padding: 24px 18px; }
  .login-card h1 { font-size: 20px; }

  /* 提示条不溢出屏幕 */
  .toast {
    left: 12px; right: 12px; transform: none;
    text-align: center; font-size: 13px; padding: 11px 14px;
  }
}

/* ---------- 检查表逐项字段（按项目类型动态渲染） ---------- */
.checklist-container {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.checklist-tip {
  background: #eef5ff; color: #33527d; border-radius: 9px;
  padding: 9px 12px; font-size: 12.5px; line-height: 1.5; margin-bottom: 12px;
}
.checklist-error {
  color: #b42318; background: #fff1f0; border-radius: 8px;
  padding: 10px 12px; font-size: 13px;
}
.checklist-group { margin-bottom: 16px; }
.checklist-group-title {
  font-weight: 600; font-size: 13px; color: var(--primary-d);
  background: #f2f6ff; padding: 8px 11px; border-radius: 8px; margin-bottom: 8px;
}
.checklist-item {
  display: flex; gap: 10px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; background: #fff;
}
.checklist-no {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: #eaf2ff; color: var(--primary-d);
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
}
.checklist-main {
  flex: 1; min-width: 0; display: flex; gap: 14px;
  align-items: flex-start; justify-content: space-between;
}
.checklist-text { flex: 1; min-width: 0; }
.checklist-title {
  display: flex; gap: 8px; flex-wrap: wrap;
  align-items: center; font-size: 13px; margin-bottom: 4px;
}
.checklist-title strong { color: var(--text); }
.checklist-group-tag {
  color: #667085; background: #f3f5f9; border-radius: 5px;
  padding: 1px 6px; font-size: 11.5px; font-weight: 400;
}
.checklist-content {
  font-size: 13px; line-height: 1.55; color: #4a5565;
  overflow-wrap: anywhere;
}
.checklist-control {
  width: 260px; flex-shrink: 0; display: flex; flex-wrap: wrap;
  gap: 8px; align-items: center; justify-content: flex-end;
}
.checklist-radio {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: #344054; cursor: pointer;
}
.checklist-desc {
  width: 100%; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; font-size: 12.5px; font-family: inherit;
  color: var(--text); background: #fff;
}
.checklist-desc:disabled { background: #f7f8fa; color: #a6adba; }
.checklist-desc:focus { outline: 2px solid #cfe0ff; border-color: var(--primary); }

/* 检查详情中的逐项结果汇总 */
.cl-summary {
  margin: 12px 0; padding: 12px 14px;
  border: 1px solid #dbe7fa; border-radius: 10px; background: #f8fbff;
}
.cl-summary-title {
  font-weight: 600; font-size: 13px; color: var(--primary-d); margin-bottom: 8px;
}
.cl-summary-item {
  display: flex; gap: 12px; padding: 6px 0;
  border-top: 1px dashed #e3eaf5; font-size: 12.5px;
  align-items: flex-start;
}
.cl-summary-item:first-of-type { border-top: 0; }
.cl-summary-item > span { flex: 1; min-width: 0; color: #344054; overflow-wrap: anywhere; }
.cl-summary-item > div { flex: 0 0 130px; text-align: right; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .checklist-main { flex-direction: column; }
  .checklist-control { width: 100%; justify-content: flex-start; }
  .cl-summary-item { flex-direction: column; gap: 2px; }
  .cl-summary-item > span { flex: none; }
  .cl-summary-item > div { flex: none; text-align: left; }
}
