:root {
  --brand: #1e5eff;
  --brand-dark: #1341b8;
  --ink: #1a2233;
  --muted: #6b7488;
  --line: #e5e9f2;
  --bg: #f5f7fb;
  --card: #ffffff;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

/* T40 首页七条（拍板-7）：备案号吸底 —— sticky footer：
   body 拉满视口高，主内容 .wrap 弹性撑开，footer 永远贴在最底部（内容多少都贴边） */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .wrap { flex: 1 0 auto; }
body > footer { margin-top: auto; width: 100%; }

/* T11：任何页面不许出现横向滚动条（兜底，真正的撑破点逐个修） */
html { overflow-x: hidden; }
body { max-width: 100%; overflow-wrap: break-word; }
img { max-width: 100%; }
table { max-width: 100%; }
th, td { overflow-wrap: break-word; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部导航 */
.topbar {
  display: flex; align-items: center; gap: 18px;
  padding: 8px 24px; min-height: 58px;
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.logo { font-weight: 700; font-size: 17px; color: var(--ink); white-space: nowrap; }
/* ★ T165（2026-11-02 老板定）：登录态顶栏品牌名改两行 ——
   上「本园区名」下「企业一站式服务平台」，与右侧两排导航对齐。 */
.logo2 { display: flex; flex-direction: column; justify-content: center; white-space: nowrap;
         line-height: 1.15; gap: 1px; align-items: center; text-align: center; }
.logo2 img { height: 24px; margin-bottom: 2px; }
/* ★ T167（2026-11-02 老板定）：两行品牌**字号匀称**（原来一个 17 一个 11.5，差太多），
   并把**两行之间的行距拉开**（原来挨太近，像挤在一起的一行半）。 */
/* ★ T168（2026-11-02 老板定）：第一行园区名**不加粗**——字号本来就比下行大，加粗显得太重 */
.logo2 .l1 { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.logo2 .l2 { font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: .4px; line-height: 1.5; }
/* 品牌高亮片段不再用品牌色（2026-10-10 走查批复 BUG-04：全站文字颜色统一，
   避免被误认为链接）；片段仍保留在 DOM 里，租户如需高亮可后续按需恢复。 */
.logo span { color: inherit; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 6px 12px; border-radius: 8px; color: var(--ink); font-size: 14px;
}
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--brand); }
.nav a.active { background: #eaf0ff; color: var(--brand); font-weight: 600; }
/* ★ T206（2026-11-04 老板定，公开页统一）：未登录顶栏
   ①品牌两行（上主体名 / 下固定「企业一站式服务平台」）左对齐，字号比后台品牌略大；
   ②菜单只一层一行五项，字号 15px、左右间距放大；③右侧「登录｜注册」，注册描边按钮。 */
.topbar.anon { min-height: 68px; gap: 26px; }
/* ★ T206 追加（2026-11-04 老板定）：品牌两行**居中**对齐、副行字号加大——两行差距别太大 */
.topbar.anon .anon-brand { align-items: center; text-align: center; }
.topbar.anon .anon-brand .l1 { font-size: 18px; letter-spacing: .2px; }
.topbar.anon .anon-brand .l2 { font-size: 15px; }
.topbar.anon .nav-guest { gap: 10px; align-items: center; }
.topbar.anon .nav-guest a { font-size: 15px; padding: 8px 16px; }
.topbar.anon .userbox { gap: 10px; font-size: 14px; }
.topbar.anon .login-link { padding: 6px 10px; }
.topbar.anon .reg-link {
  padding: 5px 14px; border: 1px solid var(--brand); border-radius: 8px;
  color: var(--brand); font-size: 14px;
}
.topbar.anon .reg-link:hover { background: #eaf0ff; text-decoration: none; }

/* ★ T165（2026-11-02 老板定）：电脑端后台导航改「上下两排」——
   上排＝平台公共导航（浅色小字），下排＝本账号工作台导航（正常字号）。
   只作用于登录态（.nav2）；未登录顶栏与手机端折叠菜单仍走原来的 .nav 规则。 */
.nav2 { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.nav2 .nav-row { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
/* ★ T172（2026-11-02 老板定）：上下两排导航**逐项对齐** —— 每项定宽格子、文字居中，
   字多字少列都齐（原来「工作台」比「平台首页」少一字，两排起始位置就斜了）。
   92px 容得下最长的五字项（园区二维码 / 企业花名册 / 承诺书文本）。 */
.nav2 .nav-row > a, .nav2 .nav-row .nav-off { width: 92px; padding: 4px 0; text-align: center; box-sizing: border-box; }
/* ★ T167（老板定）：上排（平台导航）与下排（工作台）之间**加一条横线**区分 —— 不用深浅分主次 */
.nav2 .nav-row-sub { border-top: 1px solid var(--line); margin-top: 3px; padding-top: 4px; }
/* ★ T168（老板定）：上排与下排**字体颜色不区分**（原来上排小一号又是灰字，像两个体系）；
   当前页高亮蓝色保留（老板：工作台是蓝的，这是对的）。 */
.nav2 .nav-row > a { font-size: 14px; color: var(--ink); }
.nav2 .nav-row > a:hover { color: var(--brand); }
/* ★ T170（老板定）：占位项颜色与其他项**一样**（不再灰字区分）—— 上线后改成真链接 */
.nav2 .nav-row .nav-off { font-size: 14px; color: var(--ink); cursor: default; }
/* ★ T172（老板定）：待办条**拉通一整行**（两列显窄，难看） */
.todo-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.nav2 .nav-row > a.active { color: var(--brand); background: #eaf0ff; font-weight: 600; }
.nav2 .nav-row-sub > a { font-size: 14px; color: var(--ink); }
.nav2 .nav-row-sub > a.active { color: var(--brand); background: #eaf0ff; font-weight: 600; }
/* ★ T165：「关于平台」挪到页面右下角一角（仅园区 / 平台账号可见） */
.about-corner { position: fixed; right: 16px; bottom: 14px; z-index: 6;
  font-size: 13px; color: var(--muted); background: rgba(255,255,255,.94);
  border: 1px solid var(--line); border-radius: 14px; padding: 5px 12px; }
.about-corner:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }
.userbox { font-size: 13px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.userbox b { color: var(--ink); }
.userbox .usep { color: var(--line); }
.userlink { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.userlink:hover { text-decoration: none; }
.btn-logout { color: var(--danger); }
/* ★ T175（2026-11-02 老板定）：顶栏头像圆 —— 简称前两字，或 logo 图；点击回自己工作台 */
.uavatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
           background: var(--brand); color: #fff; font-size: 13px; font-weight: 600;
           display: inline-flex; align-items: center; justify-content: center; }
span.uavatar { border: none; }
img.uavatar { border: 1px solid var(--line); background: #fff; }

.wrap { max-width: 1200px; width: 100%; margin: 24px auto; padding: 0 24px; }
/* ★ T172（2026-11-02）：补 width:100% —— body 是 flex 列布局，.wrap 作为弹性子项
   只有 auto 外边距时宽度会**随内容收缩**（fit-content），整页内容缩在中间一条
   （园区工作台实测只有 ~820px），这就是「页面窄、两边空」的根因。 */

/* 宽屏时顶部导航与 1200 内容区左对齐（T11） */
@media (min-width: 1248px) {
  .topbar {
    padding-left: calc((100% - 1200px) / 2 + 24px);
    padding-right: calc((100% - 1200px) / 2 + 24px);
  }
}

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 18px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: #fafbfd; white-space: nowrap; }
tr:hover td { background: #fafbff; }

/* 徽标 */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
/* T29：审核不通过原因是长句（如「图片含联系方式，请去除后重传」），
   徽标默认 nowrap 会把卡片顶出屏幕 → 这类长原因徽标允许换行，圆角改小以免变成胶囊条 */
.badge.badge-wrap { white-space: normal; line-height: 1.5; max-width: 100%; border-radius: 10px; }
.badge.pending { background: #fef3c7; color: var(--warn); }
.badge.matched { background: #e0f2fe; color: #0369a1; }
.badge.contacted { background: #e0e7ff; color: #4338ca; }
.badge.quoted { background: #fbeafe; color: #a21caf; }
.badge.cooperating { background: #dbeafe; color: var(--brand); }
.badge.completed { background: #dcfce7; color: var(--ok); }
.badge.reviewed { background: #e5e7eb; color: #4b5563; }
.badge.approved { background: #dcfce7; color: var(--ok); }
.badge.rejected { background: #fee2e2; color: var(--danger); }
.badge.open { background: #dcfce7; color: var(--ok); }
.badge.closed { background: #e5e7eb; color: #4b5563; }
.badge.overdue { background: #fee2e2; color: var(--danger); }
.badge.blue { background: #e0f2fe; color: #0369a1; }
/* 「临期」= 中性提示（灰蓝），不用告警橙，避免后台列表观感像"待办"（2026-10-10 拍板·方案A） */
.badge.expiring { background: #eef2f7; color: #475569; }

/* 表单 */
input, textarea, select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #c7d8ff; border-color: var(--brand); }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
/* ★ T233（2026-11-06 小许指令①）：勾选框/单选框不吃满宽——全局 input{width:100%}
   曾把 checkbox 拉成整行、文字挤到右边（导出报告页布局破碎的病根） */
input[type=checkbox], input[type=radio] { width: auto; }
.field { margin-bottom: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 160px; }

/* 需求高级筛选栅格（桌面端两列，手机端塌成单列） */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.filters > .field { min-width: 0; }
.filters > .field.span2 { grid-column: 1 / -1; }
.filters select, .filters input { width: 100%; }

.btn {
  display: inline-block; padding: 9px 18px; border-radius: 8px; border: none;
  background: var(--brand); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: #eaf0ff; }
/* ★ T181（2026-11-02 老板定）：页签按钮——当前页签实心蓝（primary），其余**无色**白底（plain）。
   根因：.btn 默认就是实心蓝，.primary 以前没有定义，导致页签全蓝分不清在哪个页。 */
.btn.primary { background: var(--brand); color: #fff; }
.btn.plain { background: #fff; color: #4a5568; border: 1px solid #d8dee6; font-weight: 500; }
.btn.plain:hover { background: #f2f5f9; text-decoration: none; }
.btn.small { padding: 5px 12px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.warn { background: var(--warn); }
.btn.ok { background: var(--ok); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.ok { background: #dcfce7; color: #14532d; }
.alert.err { background: #fee2e2; color: #7f1d1d; }
.alert.warn { background: #fef3c7; color: #78350f; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }
.score { color: var(--brand); font-size: 28px; font-weight: 700; }
.score-sm { color: var(--brand); font-weight: 700; }

/* 树形分类侧栏 */
.cat-tree { list-style: none; padding: 0; margin: 0; }
.cat-tree li { margin: 3px 0; }
.cat-tree a { display: block; padding: 5px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; }
.cat-tree a:hover { background: var(--bg); text-decoration: none; }
.cat-tree .top > a { font-weight: 600; }
.cat-tree ul { list-style: none; padding-left: 14px; margin: 2px 0; }
.cat-tree a.active { background: #eaf0ff; color: var(--brand); font-weight: 600; }
/* ★ T206（2026-11-04 老板定）：服务中心左栏 —— 折叠箭头 ▶ 与分类名**同一行**（原来箭头单独占位、
   名称被挤到第二行，看着散）；点名称照旧进分类，点箭头照旧展开二级。 */
.cat-tree summary { display: flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.cat-tree summary::-webkit-details-marker { display: none; }
.cat-tree summary::before {
  content: "▸"; flex: none; width: 12px; color: var(--muted); font-size: 13px;
  transition: transform .15s; display: inline-block;
}
.cat-tree details[open] > summary::before { transform: rotate(90deg); }
.cat-tree summary > a { flex: 1; min-width: 0; white-space: nowrap; }

/* ★ T206：服务中心机构卡 —— 一家一行改两家一行（窄屏回落单列），卡等高、按钮沉底 */
.ag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ag-list .ag-card {
  margin: 0; display: flex; flex-direction: column; min-height: 168px;
}
.ag-list .ag-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ag-list .ag-head h3 { font-size: 16px; line-height: 1.4; }
.ag-list .ag-score { text-align: right; flex: none; }
.ag-list .ag-hook { flex: 1; }
.ag-list .ag-foot { margin-top: auto; padding-top: 10px; text-align: right; }
/* ★ T206：需求大厅 —— 一条一行改一行三个小卡片（窄屏 2 列 / 单列），卡等高、按钮沉底，
   标题最多两行、描述最多三行（超出省略）；底部分页条（翻页带筛选）。 */
.dm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dm-grid .dm-card { margin: 0; display: flex; flex-direction: column; min-height: 220px; }
.dm-grid .dm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dm-grid .dm-title {
  font-size: 16px; line-height: 1.4; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-grid .dm-desc {
  margin: 8px 0 0; font-size: 14px; color: #4b5563; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-grid .dm-budget { margin-top: 8px; }
.dm-grid .dm-card > .mt:last-child, .dm-grid .dm-card > details:last-child { margin-top: auto; padding-top: 10px; }
@media (max-width: 1199px) { .dm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .dm-grid { grid-template-columns: 1fr; } }

/* 分页条 */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 4px; }

@media (max-width: 1023px) {
  .ag-list { grid-template-columns: 1fr; }
}


/* 登录页 */
.login-wrap { max-width: 400px; margin: 80px auto; }
.login-wrap .card { padding: 32px; }
.login-wrap h1 { font-size: 22px; margin: 0 0 6px; }
.stars { color: #f59e0b; letter-spacing: 2px; }

.flex { display: flex; gap: 12px; align-items: center; }
.flex.between { justify-content: space-between; }

/* AI 预留入口 */
.ai-banner {
  border: 1px dashed var(--brand); border-radius: 12px; padding: 16px 18px;
  background: #f7faff; display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
}
.ai-banner .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; max-width: 1200px; margin: 0 auto; }

/* T40 首页七条（拍板-6）：声明行 —— 小字、浅灰、居中，不抢内容 */
/* T40 拍板-6：板块声明小字浅灰（T11-2 硬指标：全站字号最小 13px） */
.decl { color: #9aa1ad; font-size: 13px; text-align: center; margin: 18px 0 6px; }
.home-decl p { margin: 4px 0; }

/* ============================================================
   需求智能引导（第 3 项）：三步走 + 规则表推荐，无 JS 依赖、无外部调用
   ============================================================ */
.steps { display: flex; gap: 8px; margin: 12px 0 4px; flex-wrap: wrap; }
.steps .step { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted);
  background: #f1f5f9; border-radius: 999px; padding: 5px 12px; }
.steps .step.on { background: var(--brand); color: #fff; }
.steps .step.done { background: #dcfce7; color: #14532d; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 10px; margin-top: 12px; }
.guide-opt { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; background: #fff; }
.guide-opt:hover { border-color: var(--brand); text-decoration: none; }
.guide-opt b { display: block; font-size: 15px; margin-bottom: 4px; }

.draft-box { background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px;
  padding: 12px 14px; white-space: pre-line; font-size: 14px; }
.rec-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-top: 10px; }
.rec-badge { background: #dcfce7; color: #14532d; font-size: 13px; padding: 2px 8px; border-radius: 999px; }

/* NEW-03 服务产品化：机构详情页的产品按钮（点一下带入对接表单） */
.svc-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.svc-item {
  background: #f0f5ff; color: var(--brand-dark); border: 1px solid #c7d8ff;
  border-radius: 999px; padding: 7px 14px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.svc-item:hover { background: #e3ecff; }
.svc-item:active { background: var(--brand); color: #fff; }

/* NEW-01 对接方式二选一 */
.mode-box { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.mode-line { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; margin: 0; font-size: 14px; color: var(--ink); }
.mode-line + .mode-line { border-top: 1px dashed var(--line); }
.mode-line input { width: auto; margin-top: 4px; }
.mode-line .small { line-height: 1.5; }

/* 页脚「联系我们」：全站唯一对外公开的电话入口（企业服务专线） */
.footer-contact { margin-bottom: 8px; color: var(--text); font-size: 13px; }
.footer-contact .fc-label { color: var(--muted); margin-right: 6px; }
.footer-contact .fc-tel { color: var(--brand); font-weight: 700; text-decoration: none; }
.footer-contact .fc-note { color: var(--muted); margin-left: 6px; }

/* ============================================================
   移动端适配（第 11 项）
   设计原则：
   1. 桌面端外观不变 —— 所有规则都收在 max-width 断点内；
   2. 手机端：单列卡片、分类横滑、筛选底部抽屉、底部固定主操作；
   3. 触摸友好：可控区 ≥ 44px，输入框字号 16px（防 iOS 聚焦时自动放大）；
   4. 微信内置浏览器：不使用 inset / 复杂渐变等新特性，避免白屏或错位。
   ============================================================ */

/* --- 移动端专用组件（桌面端默认隐藏，不影响现有外观） --- */
.chips { display: none; }
.sheet-mask { display: none; }
.sheet { display: none; }
.action-bar { display: none; }

/* 通用：允许两列小卡片的栅格（桌面端与 cols-3 同宽） */
.grid.cols-2m { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

@media (max-width: 820px) {
  html { -webkit-text-size-adjust: 100%; }
  body { font-size: 15px; }
  a { -webkit-tap-highlight-color: transparent; }

  /* 布局：左右分栏一律塌成单列，吸顶侧栏改为普通文档流 */
  .wrap { margin: 12px auto; padding: 0 14px; max-width: 100%; }
  .grid,
  .grid.cols-2,
  .grid.cols-3,
  .grid.cols-4 { grid-template-columns: 1fr !important; gap: 12px !important; }
  /* 关键：栅格轨道的最小尺寸默认取内容宽度，横滑条等内容会把页面撑破，
     必须允许栅格子项收缩到 0，横滑条才能真正「横滑」而不是撑开页面 */
  .grid > * { min-width: 0; }
  .sticky,
  [style*="position:sticky"],
  [style*="position: sticky"] { position: static !important; top: auto !important; }
  .flex { flex-wrap: wrap; }
  .card { padding: 16px; border-radius: 10px; margin-bottom: 12px; overflow-wrap: break-word; }
  .card h2 { font-size: 17px; }
  .card h3 { font-size: 15px; }
  .score { font-size: 24px; }

  /* 需求高级筛选：手机上塌成单列，避免选择框被压得过窄 */
  .filters { grid-template-columns: 1fr !important; }
  .filters > .field.span2 { grid-column: auto; }

  /* 顶部导航：两行布局，第二行横向滑动（微信里也能滑） */
  .topbar {
    flex-wrap: wrap; height: auto; padding: 10px 14px 0;
    gap: 4px 10px; align-items: center;
  }
  .logo { font-size: 15px; }
  .topbar.anon { min-height: 0; gap: 8px 12px; }
  .topbar.anon .anon-brand .l1 { font-size: 15px; }
  .topbar.anon .anon-brand .l2 { font-size: 13px; }
  .topbar.anon .nav-guest a { font-size: 14px; padding: 8px 12px; }
  .userbox { font-size: 13px; margin-left: auto; white-space: normal; text-align: right; }
  .nav {
    order: 3; width: 100%; flex: 0 0 100%;
    flex-wrap: nowrap; overflow-x: auto; gap: 2px; padding: 4px 0 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 8px 12px; white-space: nowrap; }

  /* 表单：字号 16px + 更大的点击区，手机上不再“戳不中” */
  input, textarea, select { font-size: 16px; padding: 11px 12px; }
  label { margin: 14px 0 5px; }
  .btn { padding: 12px 18px; font-size: 15px; }
  .btn.small { padding: 9px 14px; font-size: 14px; }
  .btn.block-m { display: block; width: 100%; text-align: center; }
  .row > .field { min-width: 100%; }

  /* 表格：允许横向滑动，不硬挤（后台页在手机上也能看；页面本身不出现横滚条） */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  th, td { padding: 9px 10px; }

  /* T11：手机端可点区域一律 ≥44px（按钮、链接都算） */
  a { min-height: 44px; display: inline-flex; align-items: center; }
  button, input[type=submit], input[type=button] { min-height: 44px; }
  input[type=color] { min-height: 44px; width: 56px; }
  .btn, .btn.small {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
    padding-top: 0; padding-bottom: 0;
  }
  .nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .userbox a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; }
  footer a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 2px; }
  .cat-tree a { min-height: 44px; display: flex; align-items: center; }
  .chips .chip { min-height: 44px; display: inline-flex; align-items: center; }
  .sheet-close { min-height: 44px; }
  .tenant-band a, .alert a, .logline a, .intentline a,
  table a, .mode-line a, .guide-opt { min-height: 44px; display: inline-flex; align-items: center; }
  .guide-opt { display: block; }
  .svc-item { min-height: 44px; }

  /* 登录页 */
  .login-wrap { margin: 28px auto; padding: 0 16px; }
  .login-wrap .card { padding: 22px; }

  /* 分类横滑条（替代手机上的左侧分类树） */
  .chips {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    max-width: 100%;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip {
    flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: #fff; color: var(--ink); font-size: 14px; white-space: nowrap; line-height: 1.2;
  }
  .chip:active { background: var(--bg); }
  .chip.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
  /* 二级分类横滑条（拍板-4：手机端只用横滑条，不用抽屉，也不与左侧树同屏） */
  .chips-sub { padding: 0 0 10px; }
  .chips-sub .chip { font-size: 13px; padding: 6px 12px; background: var(--bg); }
  .side-panel { display: none; }   /* 手机上由 chips 取代 */

  /* 底部抽屉 */
  .sheet-mask {
    display: block; position: fixed; left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(15, 23, 42, .45); opacity: 0; visibility: hidden;
    transition: opacity .2s ease; z-index: 60;
  }
  .sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
    max-height: 80vh; overflow-y: auto; background: #fff;
    border-radius: 16px 16px 0 0; padding: 18px 16px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    transform: translateY(102%); transition: transform .24s ease;
    -webkit-overflow-scrolling: touch;
  }
  body.sheet-open .sheet-mask { opacity: 1; visibility: visible; }
  body.sheet-open .sheet { transform: translateY(0); }
  /* 抽屉「关闭」：真按钮 + 内联兜底（BUG-01），样式与文字链一致 */
  .sheet-close {
    background: none; border: none; padding: 6px 8px; cursor: pointer;
    color: var(--brand); font-size: 13px; font-family: inherit;
  }
  .sheet-close:active { opacity: .7; }
  .sheet-handle {
    width: 40px; height: 4px; border-radius: 2px; background: var(--line);
    margin: -6px auto 12px;
  }

  /* 底部固定主操作条：拇指够得着 */
  .action-bar {
    display: flex; gap: 10px; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(15, 23, 42, .06);
  }
  .action-bar .btn { flex: 1; text-align: center; }
  .action-bar .btn.ghost { flex: 0 0 auto; }
  body.has-action-bar { padding-bottom: 92px; }

  /* 页脚「联系我们」：手机上把专线号码做成可点击的大字 */
  .footer-contact { display: block; font-size: 13px; line-height: 1.9; }
  .footer-contact .fc-note { display: block; margin-left: 0; }
  .footer-contact .fc-tel { font-size: 15px; }
  body.has-action-bar footer .footer-contact { margin-bottom: 4px; }
}

/* 超窄屏（iPhone SE 等）再收一档 */
@media (max-width: 380px) {
  .wrap { padding: 0 10px; }
  .card { padding: 13px; }
  .logo { font-size: 14px; }
}

/* ---------------- 租户变更日志（审计 / 对账） ---------------- */
.scope { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.scope.billing { background: #e0e7ff; color: #4338ca; }
.scope.modules { background: #fef3c7; color: #b45309; }
.scope.brand { background: #e5e7eb; color: #4b5563; }

.logline { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.7; }
.logline:last-child { border-bottom: none; }
.logline .lg-time { color: var(--muted); font-size: 13px; }
.logline .lg-who { color: var(--muted); font-size: 13px; }
.logline .lg-arrow { color: var(--muted); margin: 0 4px; }

@media (max-width: 560px) {
  .logline { font-size: 13px; }
  table .lg-hide { display: none; }
}

/* ---------------- 名片意向清单（第 5 项） ---------------- */
.intentline { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 13px; line-height: 1.7; }
.intentline:last-child { border-bottom: none; }
.intentline .badge { margin-right: 4px; }
.intentline form input { font-size: 13px; }
@media (max-width: 560px) {
  .intentline { font-size: 13px; }
}

/* ---------------- 「本平台」署名（展示位 ①②③） ----------------
   三处展示位统一显示**租户自己的名称**（园区账号=园区名 / 平台账号=平台名）。
   甲方口径：不做第三方单位挂名，不使用「共建 / 支持单位 / 合作单位」等字样。 */
/* ① 各角色首页头部署名条 */
.tenant-band {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px;
  background: linear-gradient(90deg, #f4f7ff, #ffffff);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13px;
}
.tenant-band .tb-name {
  font-weight: 700; color: var(--brand); font-size: 14px;
  padding-left: 10px; border-left: 2px solid var(--brand);
}
.tenant-band .tb-more { color: var(--muted); font-size: 13px; white-space: nowrap; margin-left: auto; }

/* Logo 上传位：租户配了 Logo 就显示图片，没配则只显示文字版名称 */
.tb-logo { height: 22px; vertical-align: -6px; margin-right: 8px; }

/* ②③ 关于页 / 名片页底部的署名 */
.tenant-sign { display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.tenant-sign .tb-name { font-weight: 700; color: var(--ink); font-size: 16px; }

/* ---------------- 责任边界免责声明（甲方批复的红线文案，不得回退） ---------------- */
/* 机构名片页：紧邻脱敏声明，小字、左描边弱化视觉，但必须清晰可读 */
.disclaimer {
  margin-top: 8px; padding: 8px 10px; line-height: 1.7;
  border-left: 3px solid var(--line); border-radius: 0 6px 6px 0;
  background: #fafbfd;
}

/* 登录页大标题的品牌片段：与正文同色（BUG-04：全站文字颜色统一，不再用品牌色高亮） */
.login-wrap h1 .brand-accent { color: inherit; }

/* T18 · U06 / U18：二次确认按钮（点第一次变红，点第二次才执行） */
button[data-armed="1"], .btn[data-armed="1"] {
  background: #b42318 !important; color: #fff !important; border-color: #b42318 !important;
}

/* ============================================================
   2026-10-21 图十定稿：顶栏与页脚改版
   —— 未登录顶栏五项导航；电脑端不显示「登录」按钮（手机端保留）；
      已登录右侧「某某公司▾」下拉；☰ 仅窄屏出现。
   ============================================================ */
.burger { display: none; border: 0; background: none; font-size: 20px; line-height: 1;
          padding: 6px 10px; cursor: pointer; color: var(--ink); }

/* 已登录用户下拉菜单（details/summary 原生，无 JS 依赖） */
.usermenu { position: relative; display: inline-block; }
.usermenu summary { list-style: none; cursor: pointer; color: var(--ink);
                    display: inline-flex; align-items: center; gap: 4px;
                    min-height: 44px; padding: 0 4px; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu .caret { font-size: 13px; color: var(--muted); }
.usermenu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
                 background: #fff; border: 1px solid var(--line); border-radius: 10px;
                 box-shadow: 0 8px 24px rgba(0,0,0,.10); min-width: 148px; padding: 6px; }
.usermenu-list a { display: block; padding: 9px 12px; border-radius: 8px;
                   color: var(--ink); font-size: 14px; white-space: nowrap; }
.usermenu-list a:hover { background: var(--bg); text-decoration: none; color: var(--brand); }
.usermenu-list .btn-logout { color: var(--danger); }

/* 未登录顶栏：电脑端不显示「登录」按钮（页面中间就是登录框）
   ★ T206（2026-11-04 老板定）：改回**每页都显示「登录｜注册」**——游客在哪页想用都能一步进登录，
   注册直接进企业入驻申请；原「只在手机端显示」的规则撤。 */
.topbar .login-link { display: none; padding: 6px 14px; border: 1px solid var(--brand);
                      border-radius: 8px; color: var(--brand); font-size: 14px; }
.topbar.anon .login-link { display: inline-block; }
.topbar .login-link:hover { background: var(--brand); color: #fff; text-decoration: none; }

@media (max-width: 860px) {
  /* 手机端：☰ + 平台名 + 右上角「登录」（登录按钮手机端保留） */
  .burger { display: inline-block; }
  .topbar { gap: 8px; padding: 0 14px; }
  .topbar .nav { display: none; position: absolute; top: 58px; left: 0; right: 0;
                 background: #fff; border-bottom: 1px solid var(--line);
                 flex-direction: column; padding: 8px 14px; gap: 2px;
                 box-shadow: 0 10px 24px rgba(0,0,0,.08); }
  .topbar .nav.open { display: flex; }
  .topbar .nav a { padding: 11px 12px; }
  .topbar .login-link { display: inline-block; }
  .usermenu-list { position: fixed; right: 10px; top: 64px; }
}

/* ============================================================
   2026-10-21 图十定稿 · 平台总首页（portal.html）
   电脑端：淡蓝灰渐变色带（调浅）+ 统计条 + 四板块卡 + 登录区两行；
   手机端：蓝色品牌区保留，四板块收成横条，登录区放最后（格局不变）。
   ============================================================ */
.portal2 { max-width: 1080px; margin: 0 auto; }
/* ★ T167（2026-11-02 老板定）：**字号一律不变**，只动留白 ——
   横幅这块「整体大一些」（字不大、空白多一些）；统计行反过来「数字别小、空白小一些」。 */
.hero2 { border-radius: 14px; padding: 62px 32px 54px; text-align: center; margin-bottom: 12px;
         background: linear-gradient(180deg, #eef4fb 0%, #f6f9fd 100%);
         border: 1px solid #e3ecf6; }
.hero2-title { margin: 0; font-size: 30px; color: var(--ink); letter-spacing: 1px; }
.hero2-suffix { color: var(--brand); }
.hero2-sub { margin: 16px 0 0; color: var(--muted); font-size: 15px; letter-spacing: 2px; }
/* T40 拍板-5 效果图：数字在上、标签在下，整组居中不铺满 */
/* ★ T167：数字字号不动，只把这一行的上下留白收紧 */
.stats2 { display: flex; gap: 48px; text-align: center; padding: 9px 16px; justify-content: center; }
.stats2 .label { color: var(--muted); font-size: 13px; letter-spacing: 0.35em; margin-right: -0.35em; }
.stats2 .num { font-size: 22px; font-weight: 700; color: var(--ink); }
/* ★ T165（2026-11-02 老板定）：宫格从「一排 4 个小格」改「两排 3 个、每格放大」——
   机构介绍自动落到第二行第一格（企业风采/服务中心/需求大厅 占第一行）。内容一字不动。 */
.cards2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 0 20px; }
.card2 { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
         padding: 26px 20px; text-align: center; color: var(--ink); }
.card2:hover { border-color: var(--brand); text-decoration: none; }
.card2 .ic { display: block; font-size: 28px; margin-bottom: 10px; color: var(--brand); }
.card2 b { display: block; font-size: 17px; }
.card2 i { display: block; font-style: normal; color: var(--muted); font-size: 13.5px;
           margin-top: 8px; line-height: 1.55; }
/* ★ T156（2026-11-01 老板定）：「敬请期待」灰格 —— 没上线的板块先占位，点了不出错 */
.card2.off { opacity: .62; cursor: default; }
.card2.off .ic { color: var(--muted); }
/* ★ T171（2026-11-02 老板定）：公益服务 / 政策匹配的「敬请期待」**另起一行、加粗** */
.card2 .soon { display: block; font-weight: 700; margin-top: 4px; color: var(--ink); }
.login2 { padding: 20px; }
.login2-head { font-weight: 700; font-size: 15px; margin-bottom: 10px; color: var(--ink); }
/* T40 拍板-5：账号+密码+登录一行居中 */
.login2-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
/* 登录区输入/按钮：可点高度 ≥44（2026-10-21 体验口径）；T40 拍板-5 效果图：一行居中、输入框不铺满整行 */
.login2-form input { flex: 0 1 300px; min-width: 200px; padding: 9px 12px; min-height: 44px;
                     border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.login2-form .btn { flex: 0 0 auto; padding: 9px 22px; min-height: 44px; display: inline-flex;
                    align-items: center; justify-content: center; }
.login2-form .reg { color: var(--muted); font-size: 13px; flex-basis: 100%; }
/* T40 拍板-5：辅助行（注册 / 忘记密码 / 第三方机构入驻）一行居中 */
.login2-aux { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px;
              color: var(--muted); font-size: 13.5px; text-align: center;
              display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: center; }
.login2-aux .tel { color: var(--ink); white-space: nowrap; }
.login2-row2 { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
               color: var(--muted); font-size: 13.5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.login2-row2 .tel { color: var(--ink); white-space: nowrap; }
.login2-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 860px) {
  /* 手机端：蓝色品牌区（原格局）+ 四横条卡片 + 登录区最后；
     左右负边距必须与 .wrap 内边距严格相等，否则会横向溢出（375 屏字距实测） */
  .hero2 { border-radius: 0; margin: 0 -14px 14px; padding: 34px 18px 30px;
           background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
           border: 0; }
  .hero2-title { color: #fff; font-size: 22px; }
  .hero2-suffix { color: #fff; }
  .hero2-sub { color: rgba(255,255,255,.88); }
  .cards2 { grid-template-columns: 1fr; gap: 10px; }
  .card2 { display: flex; align-items: center; text-align: left; gap: 12px; padding: 14px 16px; }
  .card2 .ic { margin: 0; font-size: 20px; }
  .card2 i { margin: 2px 0 0; }
  /* T40 拍板-5：手机端统计条保持三组一行，间距收窄防溢出；数字/标签上下顺序与电脑端一致 */
  .stats2 { gap: 20px; }
  .login2-form input { flex: 1 1 100%; }
  .login2-form .btn { flex: 1 1 100%; }
}

/* 超窄屏：.wrap 内边距收到 10px，首页品牌区负边距跟着收（必须写在本块之后才生效） */
@media (max-width: 380px) {
  .hero2 { margin-left: -10px; margin-right: -10px; }
}

/* T130（2026-10-31）：电脑端登录页两种凭证切换（账号密码 / 验证码），
   与手机端 .tabs 同一套观感，横版排版，可点区域 ≥44px。 */
.lg-tabs{display:flex;gap:8px;margin:0 0 16px}
.lg-tabs .lg-tab{flex:1;min-height:44px;padding:0 12px;border:1px solid var(--line);
  border-radius:8px;background:#fff;color:var(--ink-2);font-size:15px;cursor:pointer}
.lg-tabs .lg-tab.on{border-color:var(--brand);background:var(--brand-weak);color:var(--brand);
  font-weight:600}
/* ★ T165：平台首页登录条里的「账号密码 / 验证码」切换 —— 比整页登录页更紧凑 */
.login2 .lg-tabs{max-width:380px;margin:0 auto 14px}
.login2 .lg-tabs .lg-tab{min-height:44px;font-size:14px}

/* ============================================================
   ★ T200（2026-11-04 老板拍板）：后台整体放大铺满 —— 只作用于登录态后台
   （base.html 登录态给 .wrap 加 .deskbig），公开页（门户 / 大厅 / 公开详情）不动，
   手机端断点（max-820px）内规则不动。通用标准：除带表格页外板块一律放大铺满，
   字号同步加大（老板：笔记本上字太小看不清）。
   ============================================================ */
.deskbig { max-width: 1440px; }
.deskbig .card { padding: 24px; margin-bottom: 20px; }
.deskbig .card h2 { font-size: 19px; }
.deskbig .card h3 { font-size: 16px; }
.deskbig table { font-size: 15px; }
.deskbig th, .deskbig td { padding: 12px 14px; }
.deskbig .small { font-size: 14px; }
.deskbig .badge { font-size: 14px; }
.deskbig .btn { font-size: 15px; }
.deskbig .btn.small { font-size: 14px; padding: 6px 14px; }
.deskbig label { font-size: 14px; }
.deskbig input, .deskbig textarea, .deskbig select { font-size: 15px; }
.deskbig .alert { font-size: 15px; }
.deskbig .logline { font-size: 14px; }
.deskbig .intentline { font-size: 14px; }
.deskbig .tenant-band { font-size: 14px; }
.deskbig .steps .step { font-size: 14px; }
.deskbig .cat-tree a { font-size: 15px; }
/* 模板里大量内联 font-size 跟着抬一档（13→14、14→15），后台看得清；公开页不受影响 */
.deskbig [style*="font-size:13px"] { font-size: 14px !important; }
.deskbig [style*="font-size:14px"] { font-size: 15px !important; }
/* 顶栏导航与 1440 内容区对齐（只调登录态；公开页仍按 1200 对齐） */
@media (min-width: 1468px) {
  body.authed .topbar {
    padding-left: calc((100% - 1440px) / 2 + 24px);
    padding-right: calc((100% - 1440px) / 2 + 24px);
  }
}

/* ★ T262（2026-11-13 老板定「全站详情页统一骨架」）：机构详情页改用与风采页同一套折叠件。
   原样式只在 h5.css（手机端）里，电脑端补一份，两边用词与交互完全一致：
   查看全部 › / 收起 ⌃。 */
details.fold { margin-top: 2px; }
details.fold > summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary .pre {
  flex: 1; min-width: 0; font-size: 13px; color: #555;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
details.fold > summary .more,
details.fold > summary .less { color: var(--brand, #1152A8); font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
details.fold > summary .less { display: none; }
details.fold[open] > summary .more { display: none; }
details.fold[open] > summary .less { display: inline; }
details.fold[open] > summary { margin-bottom: 8px; }
.prose { font-size: 14px; line-height: 1.9; color: #333; }

/* ★ T330（2026-11-17 老板拍板·参照企查查）：游客（官网对外视角）三栏大页脚 + 底部版权备案条。
   登录用户不渲染（站内窄条口径）；招商负责人真号与备案号待老板给后填模板即可。 */
footer.gfoot { background: #12253f; color: #c9d6e8; padding: 34px 0 0; margin-top: auto; }
footer.gfoot .gfoot-in { max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 28px; }
footer.gfoot .gfoot-t { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 12px; }
footer.gfoot .gfoot-b { font-size: 13px; line-height: 1.8; margin: 0 0 6px; color: #c9d6e8; }
footer.gfoot .gfoot-col a { display: block; font-size: 13px; color: #c9d6e8;
  text-decoration: none; line-height: 2; }
footer.gfoot .gfoot-col a:hover { color: #fff; }
footer.gfoot .gfoot-bar { max-width: 1200px; margin: 26px auto 0; padding: 12px 20px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; color: #8fa3bd;
  text-align: center; line-height: 1.8; }
/* T332 备案号真号落页：两处页脚（游客大页脚 / 登录态窄条）均链工信部官网 */
a.icp-link { color: inherit; text-decoration: none; border-bottom: 1px dotted currentColor; }
a.icp-link:hover { text-decoration: underline; }
footer.gfoot .gfoot-bar a.icp-link { color: #c9d6e8; }
@media (max-width: 720px) {
  footer.gfoot .gfoot-in { grid-template-columns: 1fr; gap: 18px; }
}
