/* =============================================================
 * 资质达 · 江苏建筑资质服务平台
 * 设计系统 app.css
 * 视觉风格：安居客式信息列表 + 品牌绿
 * 主色 品牌绿 #00BC90（WorkBuddy 品牌色） / 价格红 #F5222D
 * 涨红跌绿（中国习惯）
 * ============================================================= */

:root {
  /* ---------- 品牌绿 ---------- */
  --brand:       #00BC90;
  --brand-d:     #00A57E;   /* hover */
  --brand-dd:    #0F8A6B;   /* 按下 / 深 */
  --brand-l:     #35CFAB;   /* 渐变高光 */
  --brand-ink:   #0E3B32;   /* 深绿文字 */
  --brand-soft:  #E7F9F3;   /* 浅底 */
  --brand-soft2: #D3F2E9;
  --brand-line:  #A5E6D3;   /* 浅边框 */
  --brand-rgb:   0, 188, 144;

  /* ---------- 中性 ---------- */
  --bg:     #F3F6F5;
  --card:   #FFFFFF;
  --line:   #EEF1F0;
  --line-2: #E2E7E5;
  --t1:     #14181B;
  --t2:     #4E565C;
  --t3:     #8A939B;
  --t4:     #B7C0C7;
  --fill:   #F5F7F6;
  --fill-2: #EDF0EF;

  /* ---------- 语义色 ---------- */
  --price:       #F5222D;
  --danger:      #F5222D;
  --danger-soft: #FFECEC;
  --ok:          #0E9F6E;
  --ok-soft:     #E6F7F0;
  --warn:        #FA8C16;   /* T21 目标值：两端同名同值；改这里即可全站生效 */
  --warn-soft:   #FFF6E8;
  --blue:        #2B7FFF;
  --blue-soft:   #EAF2FF;

  /* ---------- 圆角 / 阴影 ---------- */
  --r-s: 6px;
  --r:   10px;
  --r-l: 14px;
  --sh:    0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --sh-2:  0 8px 24px rgba(16, 24, 40, .10);
  --sh-up: 0 -2px 12px rgba(16, 24, 40, .07);
  --maxw: 780px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: #E9EEEC;
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; outline: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(0, 188, 144, .20); }

/* ---------- 应用外壳（移动优先，桌面居中） ---------- */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, .06);
  overflow-x: hidden;
}

/* ---------- 顶部品牌栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #0DC79C 0%, #00B98D 100%);
  padding: 13px 16px 14px;
  color: #fff;
  overflow: hidden;
}
.topbar::after {
  content: ''; position: absolute; right: -52px; top: -68px;
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .17), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.topbar-inner { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .38);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; letter-spacing: -.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}
.brand-text { min-width: 0; }
.brand-main {
  font-size: 21px; font-weight: 800; letter-spacing: 1.5px;
  line-height: 1.1; display: flex; align-items: center; gap: 6px;
}
.brand-sub {
  font-size: 10.5px; opacity: .9; letter-spacing: 2.4px;
  margin-top: 3px; font-weight: 400; white-space: nowrap;
}
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-btn {
  font-size: 12px; padding: 6px 11px; border-radius: 8px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .30);
  color: #fff; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.tb-btn:hover { background: rgba(255, 255, 255, .28); }
.tb-btn:active { background: rgba(255, 255, 255, .36); }
/* 已移除 .city-pick（2026-10-11）：顶栏「江苏全省 ▾」城市下拉是纯装饰死元素，
   id=cityPick 全站无 JS 引用、.city-pick 全站仅 index.html 一处使用；
   顶栏改由 .auth-entry 单独承载（flex 容器，少一个子项不会塌）。需要恢复请还原本规则
   并同时还原 index.html 中被注释的那两行。 */
/* 顶部登录态入口（未登录：登录；已登录：昵称 + 我的发布 + 退出） */
.auth-entry { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tb-btn-sm { padding: 5px 9px; font-size: 11.5px; border-radius: 7px; }
.tb-btn.tb-ghost { background: transparent; border-color: rgba(255, 255, 255, .22); }
.ae-name {
  font-size: 12px; max-width: 64px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; opacity: .95;
}

/* ---------- 搜索栏 ---------- */
.searchbar { padding: 10px 16px 2px; background: #00B98D; }
.searchbar.fixed-bg { background: transparent; }
.search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 5px 5px 5px 13px;
  box-shadow: 0 3px 12px rgba(0, 62, 46, .16);
}
.search-wrap .ico { color: var(--t3); flex: none; display: flex; }
.search-wrap input {
  flex: 1; border: 0; background: transparent; height: 34px;
  font-size: 14px; min-width: 0;
}
.search-wrap input::placeholder { color: var(--t4); }
.search-btn {
  flex: none; border: 0; border-radius: 7px; cursor: pointer;
  background: linear-gradient(180deg, #00C79A, #00AE84);
  color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 8px 18px; letter-spacing: .5px;
  transition: filter .15s;
}
.search-btn:hover { filter: brightness(1.04); }
.search-btn:active { filter: brightness(.95); }
.hot-words {
  display: flex; gap: 7px; padding: 10px 2px 11px; overflow-x: auto;
  font-size: 11.5px; color: #fff; white-space: nowrap;
  scrollbar-width: none;
}
.hot-words::-webkit-scrollbar { display: none; }
.hot-words span {
  cursor: pointer; flex: none;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 3px 10px; border-radius: 999px;
  transition: background .15s;
}
.hot-words span:hover { background: rgba(255, 255, 255, .30); }

/* ---------- 主标签页 ---------- */
.tabs {
  position: sticky; top: var(--hdr, 58px); z-index: 50;
  background: #fff; display: flex; border-bottom: 1px solid var(--line);
}
.tab {
  flex: 1 1 0; min-width: 0; text-align: center; padding: 13px 0 11px;
  font-size: 15px; color: var(--t2); cursor: pointer; position: relative;
  font-weight: 500; white-space: nowrap; transition: color .15s;
}
.tab:hover { color: var(--brand-d); }
.tab.active { color: var(--brand); font-weight: 700; }
.tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.tab .badge {
  position: absolute; top: 7px; right: 50%; margin-right: -34px;
  background: var(--danger); color: #fff; font-size: 10px;
  border-radius: 999px; padding: 1px 5px; font-weight: 500;
}

/* ---------- 筛选条 ---------- */
.filterbar {
  position: sticky; z-index: 45; top: calc(var(--hdr, 58px) + var(--tabsH, 45px));
  background: #fff; display: flex; align-items: center;
  border-bottom: 1px solid var(--line); overflow-x: auto;
  scrollbar-width: none; padding: 0 4px;
}
.filterbar::-webkit-scrollbar { display: none; }
.fchip {
  flex: none; display: flex; align-items: center; gap: 3px;
  padding: 11px 12px; font-size: 13.5px; color: var(--t2);
  cursor: pointer; white-space: nowrap; position: relative;
  transition: color .15s;
}
.fchip:hover { color: var(--brand-d); }
.fchip.on { color: var(--brand); font-weight: 600; }
.fchip.on .cv { color: var(--brand); }
.fchip .cv { font-size: 9px; color: var(--t4); transform: scale(.92); }
.fchip .txt { flex: none; }
.fchip.more { margin-left: auto; color: var(--brand); font-weight: 500; }
.fchip .dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  position: absolute; top: 8px; right: 5px;
}

/* ---------- 筛选选项（在底部弹层内使用） ----------
 * 首页的「地区 / 资质类别 / 有无经营 / 更多筛选」全部走底部弹层（UI.sheet），
 * 不再使用顶部下拉浮层 —— 手机上拇指够得到，也不会被吸顶标签栏压住。
 */
.dd-group { padding: 14px 16px 6px; }
.dd-group:first-child { padding-top: 8px; }
.dd-title { font-size: 12px; color: var(--t3); margin-bottom: 10px; }
.dd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
/* 选项多且短（城市、等级）时用网格，整齐好点 */
.dd-grid {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
}
.dd-opt {
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  background: var(--fill); color: var(--t2); cursor: pointer;
  border: 1px solid transparent; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .14s, color .14s, border-color .14s;
}
.dd-opts .dd-opt { white-space: normal; text-align: left; }
.dd-opt:hover { background: var(--fill-2); }
.dd-opt.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 600; }
.dd-date { display: flex; gap: 8px; align-items: center; }
.dd-date .finput { flex: 1; min-width: 0; }
.dd-date .sep { color: var(--t4); flex: none; }
/* 弹层打开时锁住背景滚动 */
body.no-scroll { overflow: hidden; }

/* ---------- 信息列表卡片 ---------- */
.page { display: block; }
.list { padding: 10px 12px 90px; }
.list-count { font-size: 12px; color: var(--t3); padding: 2px 4px 9px; }
.list-count b { color: var(--brand); }
.card {
  background: var(--card); border-radius: 12px;
  padding: 14px 15px; margin-bottom: 10px;
  border: 1px solid transparent;
  box-shadow: var(--sh); cursor: pointer; position: relative;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:active { transform: scale(.995); }
.card:hover { box-shadow: var(--sh-2); border-color: var(--brand-line); transform: translateY(-1px); }

.row1 { display: flex; align-items: flex-start; gap: 8px; }
.company {
  font-size: 15.5px; font-weight: 700; color: var(--t1);
  line-height: 1.35; flex: 1; min-width: 0; letter-spacing: -.2px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.row2 {
  display: flex; flex-wrap: wrap; gap: 5px 12px;
  margin-top: 8px; font-size: 12px; color: var(--t2);
}
.row2 .it { display: flex; align-items: center; gap: 4px; }
.row2 .it i { font-style: normal; color: var(--t4); }
.row3 { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; margin-bottom: 12px; }
.qual-tag {
  display: inline-block; font-size: 12px; line-height: 1.25;
  padding: 5px 10px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-d);
  border: 1px solid var(--brand-line); font-weight: 600;
}
.qual-tag.tag-plain {
  background: var(--fill); color: var(--t2);
  border-color: var(--line-2); font-weight: 400;
}
.qual-cnt { align-self: center; font-size: 11.5px; color: var(--t3); margin-left: 2px; }
.row4 {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line);
}
.price { color: var(--price); font-weight: 800; font-size: 20px; letter-spacing: -.4px; line-height: 1.1; }
.price small { font-size: 12px; font-weight: 600; margin-left: 1px; }
.price .neg {
  font-size: 10.5px; color: var(--brand-d); background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px;
  font-weight: 500; vertical-align: 2px;
}
.time { font-size: 11.5px; color: var(--t4); }

/* 状态标签 */
.st {
  flex: none; font-size: 11px; padding: 3px 8px; border-radius: 5px;
  font-weight: 600; line-height: 1.35; white-space: nowrap;
}
.st-on { background: var(--ok-soft); color: var(--ok); }
.st-done { background: var(--fill-2); color: var(--t3); }
.st-top { background: var(--danger-soft); color: var(--danger); }
.st-buy { background: var(--blue-soft); color: var(--blue); }

/* 求购卡片特殊行 */
.buy-title { font-size: 15.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.2px; }
.budget { color: var(--price); font-weight: 800; font-size: 19px; }
.budget small { font-size: 11.5px; color: var(--t3); font-weight: 400; }
.buy-desc {
  margin: 9px 0 12px; font-size: 12.5px; color: var(--t3); line-height: 1.55;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---------- 空状态 / 加载 ---------- */
.empty { padding: 70px 20px; text-align: center; color: var(--t3); }
.empty .eico { font-size: 46px; opacity: .25; margin-bottom: 10px; }
.empty p { margin: 4px 0; font-size: 13.5px; }
.empty .sub { font-size: 12px; color: var(--t4); }

/* ---------- 底部操作栏（详情页） ---------- */
.bottombar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 0; width: 100%; max-width: var(--maxw);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: var(--sh-up); z-index: 70;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.bb-mini {
  flex: none; width: 56px; background: none; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--t2); padding: 2px 0;
  transition: color .15s;
}
.bb-mini .ic { font-size: 19px; line-height: 1; }
.bb-mini:hover { color: var(--brand-d); }
.bb-mini.on { color: var(--brand); }
.bb-main {
  flex: 1; height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, #35CFAB 0%, #00BC90 55%, #00A57E 100%);
  color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(0, 188, 144, .34);
  transition: filter .15s;
}
.bb-main:hover { filter: brightness(1.04); }
.bb-main:active { transform: translateY(1px); }

/* ---------- 通用页面块 ---------- */
.sec {
  background: #fff; border-radius: var(--r-l); margin: 10px 12px;
  overflow: hidden;
}
.sec-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 15px 9px; font-size: 15px; font-weight: 700;
}
.sec-hd::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-l), var(--brand));
}
.sec-hd .more { margin-left: auto; font-size: 12px; color: var(--t3); font-weight: 400; }

.kv { display: flex; padding: 11px 15px; border-top: 1px solid var(--line); font-size: 13.5px; }
.kv:first-child { border-top: 0; }
.kv .k { width: 96px; flex: none; color: var(--t3); }
.kv .v { flex: 1; color: var(--t1); word-break: break-all; }
.kv .v.hl { color: var(--price); font-weight: 700; }
.gal { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 15px 14px; }

/* ---------- 三段式选择器 ---------- */
.cascade { background: #fff; border-bottom: 1px solid var(--line); }
.cas-tabs {
  display: flex; border-bottom: 1px solid var(--line);
  background: #FAFCFB; overflow-x: auto; scrollbar-width: none;
}
.cas-tabs::-webkit-scrollbar { display: none; }
.cas-tab {
  flex: 1; min-width: 88px; text-align: center; padding: 11px 6px;
  font-size: 13.5px; color: var(--t2); cursor: pointer; position: relative;
  white-space: nowrap;
}
.cas-tab.on { color: var(--brand); font-weight: 700; background: #fff; }
.cas-tab.on::after {
  content: ''; position: absolute; bottom: 0; left: 20%; right: 20%;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.cas-panel { display: none; padding: 13px 13px 7px; }
.cas-panel.on { display: block; }
.cas-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cas-item {
  padding: 8px 13px; border-radius: 8px; font-size: 13px;
  background: var(--fill); color: var(--t2); cursor: pointer;
  border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.cas-item:hover { background: var(--fill-2); }
.cas-item.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 600; }
.cas-crumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 11px 15px; font-size: 12.5px; color: var(--t2);
  background: #F7FCFA; border-bottom: 1px solid var(--line);
}
.cas-crumb b { color: var(--brand-d); font-weight: 600; }
.cas-crumb .sep { color: var(--t4); }
.cas-crumb .clr { margin-left: auto; color: var(--t3); font-size: 12px; cursor: pointer; }
.cas-crumb .clr:hover { color: var(--brand-d); }

/* ---------- 行情表格 ---------- */
.mk-head, .mk-row {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 15px; border-bottom: 1px solid var(--line);
}
.mk-head { background: #FAFCFB; font-size: 12px; color: var(--t3); font-weight: 500; }
.mk-row { background: #fff; font-size: 13.5px; transition: background .15s; }
.mk-row:hover { background: #F9FCFB; }
.mk-c1 { flex: 1; min-width: 0; }
.mk-c1 .nm {
  font-weight: 600; color: var(--t1); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.mk-c1 .cat { font-size: 11px; color: var(--t4); margin-top: 3px; }
.mk-c2 { width: 84px; flex: none; text-align: right; }
.mk-c3 { width: 96px; flex: none; text-align: right; }
.mk-price { font-weight: 800; color: var(--price); font-size: 15.5px; }
.mk-price small { font-size: 10.5px; font-weight: 500; }
.up { color: #F5222D; font-size: 11.5px; }
.down { color: var(--ok); font-size: 11.5px; }
.flat { color: var(--t3); font-size: 11.5px; }
.linkbtn {
  color: var(--brand-d); font-size: 12.5px; cursor: pointer;
  border: 1px solid var(--brand-line); background: var(--brand-soft);
  padding: 5px 11px; border-radius: 999px; display: inline-block;
  transition: background .15s;
}
.linkbtn:hover { background: var(--brand-soft2); }

/* ---------- 价格曲线 ---------- */
.chart-wrap { padding: 12px 8px 4px; background: #fff; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex; justify-content: space-around; padding: 11px 6px 16px;
  background: #fff; font-size: 12px; color: var(--t3);
}
.chart-legend b { display: block; font-size: 15px; color: var(--t1); margin-top: 2px; }

/* ---------- 表单 ---------- */
.form { padding-bottom: 90px; }
.form-sec { background: #fff; margin: 10px 0; }
.form-sec-hd {
  padding: 14px 16px 5px; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.form-sec-hd::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--brand-l), var(--brand));
}
.form-sec-hd .tip { font-size: 11.5px; color: var(--t3); font-weight: 400; margin-left: auto; }
.frow {
  display: flex; align-items: flex-start; padding: 12px 16px;
  border-bottom: 1px solid var(--line); min-height: 48px;
}
.frow:last-child { border-bottom: 0; }
.frow .lb {
  width: 96px; flex: none; font-size: 13.5px; color: var(--t2);
  padding-top: 8px; line-height: 1.4;
}
.frow .lb.req::after { content: '*'; color: var(--danger); margin-left: 2px; }
.frow .fd { flex: 1; min-width: 0; }
.finput, .fselect, .farea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 11px; font-size: 13.5px; background: #FAFCFB;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.finput:hover, .fselect:hover, .farea:hover { border-color: #CFD8D5; }
.finput:focus, .fselect:focus, .farea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 188, 144, .14);
}
.farea { min-height: 84px; resize: vertical; line-height: 1.6; }
.fselect { appearance: none; background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A939B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.fhint { font-size: 11.5px; color: var(--t4); margin-top: 5px; line-height: 1.5; }

/* ---------- 日期字段（点开自建选择器，支持年份快选） ---------- */
button.date-field {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; position: relative; padding-right: 30px;
}
button.date-field.empty { color: var(--t4); }
button.date-field::after {
  content: '▾'; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%); color: var(--t3); font-size: 11px;
}

/* ---------- 日期选择器弹层 ---------- */
.dp { padding: 0 0 6px; }
.dp-hd { display: flex; align-items: center; padding: 2px 14px 12px; }
.dp-nav {
  width: 36px; height: 36px; flex: none; border: 1px solid var(--line-2);
  background: #fff; border-radius: 9px; font-size: 17px; color: var(--t2);
  cursor: pointer; line-height: 1;
}
.dp-nav:hover { background: var(--fill); }
.dp-title {
  flex: 1; min-width: 0; margin: 0 10px; height: 36px; border: 0;
  background: var(--fill); border-radius: 9px; font-size: 15px; font-weight: 700;
  color: var(--t1); cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 5px;
}
.dp-title.on { background: var(--brand-soft); color: var(--brand); }
.dp-title .dp-caret { font-size: 9px; color: var(--t3); }
.dp-bd { min-height: 232px; }
.dp-week { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 10px; }
.dp-week span { text-align: center; font-size: 11.5px; color: var(--t3); padding-bottom: 6px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 0 10px; }
.dp-day {
  height: 38px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--t1); border-radius: 10px; cursor: pointer;
}
.dp-day:hover { background: var(--fill); }
.dp-day.blank { visibility: hidden; }
.dp-day.today { color: var(--brand); font-weight: 700; }
.dp-day.on { background: var(--brand); color: #fff; font-weight: 700; }
.dp-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 6px 14px; }
.dp-yr {
  height: 42px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; border-radius: 10px; background: var(--fill); color: var(--t2); cursor: pointer;
}
.dp-yr:hover { background: var(--fill-2); }
.dp-yr.today { color: var(--brand); font-weight: 700; }
.dp-yr.on { background: var(--brand); color: #fff; font-weight: 700; }

/* ---------- 多资质：录入 ---------- */
.qual-list { display: flex; flex-direction: column; gap: 8px; }
.qual-row {
  border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px; background: #FAFCFB;
}
.qual-row-hd { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; color: var(--t3); }
.qual-row-hd .n {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qual-row-hd .rm {
  margin-left: auto; color: var(--danger); font-size: 12px;
  cursor: pointer; padding: 2px 4px;
}
.qual-row .fselect { background: #fff; }
.qual-row .rowsel + .rowsel { margin-top: 8px; }
.qual-add {
  border: 1px dashed var(--brand-line); background: var(--brand-soft); color: var(--brand-d);
  border-radius: 10px; padding: 10px; font-size: 13px; text-align: center;
  cursor: pointer; font-weight: 600;
}
.qual-add:hover { background: var(--brand-soft2); }

/* ---------- 多资质：详情展示 ---------- */
.qual-item { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.qual-item:last-child { border-bottom: 0; }
.qual-item .qh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qual-item .qh .n {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qual-item .meta { margin-top: 7px; font-size: 12px; color: var(--t3); }

.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio {
  padding: 7px 14px; border-radius: 8px; font-size: 13px;
  background: var(--fill); color: var(--t2); cursor: pointer;
  border: 1px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
}
.radio:hover { background: var(--fill-2); }
.radio.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); font-weight: 600; }

/* 发布类型切换 */
.pub-switch {
  display: flex; gap: 0; background: #fff; margin: 0;
  border-bottom: 1px solid var(--line);
}
.pub-switch div {
  flex: 1; text-align: center; padding: 14px 0; font-size: 15.5px;
  color: var(--t2); cursor: pointer; position: relative; font-weight: 500;
}
.pub-switch div.on { color: var(--brand); font-weight: 700; }
.pub-switch div.on::after {
  content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0;
}

/* ---------- 后台 ---------- */
.admin-top {
  background: linear-gradient(135deg, #1B2A26, #101C1A);
  color: #fff; padding: 16px;
}
.admin-top h1 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.admin-top p { margin: 4px 0 0; font-size: 12px; opacity: .6; }
.admin-top .acts { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.abtn {
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1);
  color: #fff; border-radius: 8px; padding: 7px 12px; font-size: 12.5px; cursor: pointer;
  transition: background .15s;
}
.abtn:hover { background: rgba(255, 255, 255, .22); }
.admin-tabs {
  display: flex; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30; overflow-x: auto; scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs div {
  flex: 1; min-width: 96px; text-align: center; padding: 13px 8px;
  font-size: 14px; color: var(--t2); cursor: pointer; white-space: nowrap;
}
.admin-tabs div:hover { color: var(--brand-d); }
.admin-tabs div.on { color: var(--brand); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand); }
.pane { display: none; padding: 12px; }
.pane.on { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.stat {
  background: #fff; border-radius: var(--r); padding: 15px 12px; text-align: center;
  box-shadow: var(--sh);
}
.stat .n { font-size: 23px; font-weight: 800; color: var(--brand); letter-spacing: -.5px; }
/* 三档标题（如「30 天内到期」）较长，手机上必须允许压缩并缩小，
 * 否则格子里换行、卡片高度参差。nowrap + 缩字号是最稳的组合。 */
.stat .l { font-size: 11.5px; color: var(--t3); margin-top: 3px; white-space: nowrap; }

.panel { background: #fff; border-radius: var(--r); box-shadow: var(--sh); margin-bottom: 12px; overflow: hidden; }
.panel-hd {
  display: flex; align-items: center; gap: 8px; padding: 14px;
  border-bottom: 1px solid var(--line); font-size: 14.5px; font-weight: 700;
  flex-wrap: wrap;
}
/* 标题必须自身不换行、不被压缩：否则手机上图省事的 flex 会把「转让信息管理」挤成一列竖排字 */
.panel-hd .hd-txt { flex: none; white-space: nowrap; }
.panel-hd .sp { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* 面板标题右侧的筛选控件 */
.sp .sp-in { flex: 0 1 132px; min-width: 96px; }
.sp .sp-in.wide { flex: 0 1 170px; }
.btn {
  border: 0; border-radius: 8px; padding: 8px 14px; font-size: 13px;
  cursor: pointer; background: var(--brand); color: #fff; font-weight: 600;
  white-space: nowrap; line-height: 1.4;
  transition: background .15s;
}
.btn:hover { background: var(--brand-d); }
.btn:active { background: var(--brand-dd); }
.btn.ghost { background: var(--fill); color: var(--t2); font-weight: 500; }
.btn.ghost:hover { background: var(--fill-2); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }
.btn.danger { background: var(--danger-soft); color: var(--danger); }
.btn.danger:hover { background: #FFD9D9; }
.btn.blue { background: var(--blue-soft); color: var(--blue); }
.btn.blue:hover { background: #D6E6FF; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  background: #FAFCFB; text-align: left; padding: 10px 12px;
  font-weight: 500; color: var(--t3); font-size: 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #F9FCFB; }
.tbl .ell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.scroll-x { overflow-x: auto; }

/* 分类树管理 */
.tree { padding: 6px 0; }
.tree-l1 { border-bottom: 1px solid var(--line); }
.tree-l1 > .th {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  cursor: pointer; font-size: 14px; font-weight: 600;
}
.tree-l1 > .th .caret { font-size: 10px; color: var(--t3); transition: transform .15s; }
.tree-l1.open > .th .caret { transform: rotate(90deg); }
.tree-body { display: none; padding: 0 14px 12px 24px; }
.tree-l1.open .tree-body { display: block; }
.tree-l2 { margin-bottom: 8px; }
.tree-l2 > .th2 {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  font-size: 13.5px; color: var(--t1); flex-wrap: wrap;
}
.tree-l3 { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 6px 16px; }
.tree-l3 .t3 {
  font-size: 12px; background: var(--fill); border-radius: 6px;
  padding: 4px 9px; color: var(--t2); display: flex; align-items: center; gap: 5px;
}
.tree-l3 .t3 .x { color: var(--t4); cursor: pointer; font-size: 13px; }
.tree-l3 .t3 .x:hover { color: var(--danger); }
.add-mini {
  font-size: 11.5px; color: var(--brand-d); border: 1px dashed var(--brand-line);
  background: var(--brand-soft); border-radius: 6px; padding: 4px 9px; cursor: pointer;
  white-space: nowrap; transition: background .15s;
}
.add-mini:hover { background: var(--brand-soft2); }
.icon-btn {
  background: none; border: 0; cursor: pointer; color: var(--t3);
  font-size: 12.5px; padding: 2px 5px; white-space: nowrap; flex: none;
}
.icon-btn:hover { color: var(--brand-d); }
/* 二级行右侧的「一级 / 二级」速览，窄屏上多余（下面就是完整列表） */
.lv-sum { font-size: 11.5px; color: var(--t4); }

/* ---------- Toast / Modal ---------- */
.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%, -50%) scale(.94);
  background: rgba(0, 0, 0, .82); color: #fff; padding: 11px 20px;
  border-radius: 10px; font-size: 13.5px; z-index: 999;
  opacity: 0; pointer-events: none; transition: all .2s; max-width: 76vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.on { display: flex; }
.modal {
  background: #fff; border-radius: var(--r-l); width: 100%; max-width: 460px;
  max-height: 84vh; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.modal-hd {
  padding: 16px 18px; font-size: 16px; font-weight: 700; border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.modal-hd .x { margin-left: auto; cursor: pointer; color: var(--t3); font-size: 20px; line-height: 1; }
.modal-bd { padding: 16px 18px; overflow-y: auto; }
.modal-ft {
  padding: 12px 18px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; justify-content: flex-end;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--t2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 11px; font-size: 13.5px; background: #FAFCFB;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 188, 144, .14);
}

/* 抽屉（底部弹出：更多筛选 / 咨询） */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 150;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sheet-mask.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 50%; transform: translate(-50%, 100%);
  bottom: 0; width: 100%; max-width: var(--maxw);
  background: #fff; border-radius: 16px 16px 0 0; z-index: 160;
  max-height: 86dvh; display: flex; flex-direction: column;
  transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet-hd {
  padding: 16px 18px 11px; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; border-bottom: 1px solid var(--line);
}
.sheet-hd .x { margin-left: auto; cursor: pointer; color: var(--t3); font-size: 20px; }
.sheet-bd { overflow-y: auto; padding: 4px 0 10px; flex: 1; }
.sheet-ft {
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: flex; gap: 10px;
}

/* ---------- 详情页头部 ---------- */
.detail-hero {
  background: #fff; padding: 17px 15px 15px; border-bottom: 1px solid var(--line);
}
.detail-hero h1 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: -.3px; }
.detail-hero .subrow {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px;
  font-size: 12.5px; color: var(--t3);
}
.detail-price-box {
  display: flex; align-items: baseline; gap: 8px; margin-top: 13px;
  padding: 13px 15px;
  background: linear-gradient(135deg, #F7FCFA, #EFFAF6);
  border-radius: 12px; border: 1px solid var(--brand-line);
}
.detail-price-box .big { color: var(--price); font-size: 28px; font-weight: 800; letter-spacing: -.9px; }
.detail-price-box .lb { font-size: 12px; color: var(--t3); }
.detail-price-box .tagline {
  margin-left: auto; font-size: 11.5px; color: var(--brand-d);
  background: #fff; border: 1px solid var(--brand-line);
  padding: 4px 9px; border-radius: 999px;
}

.trust-bar {
  display: flex; background: #fff; padding: 13px 0;
  border-radius: var(--r-l); margin: 10px 12px;
}
.trust-bar .ti { flex: 1; text-align: center; border-right: 1px solid var(--line); }
.trust-bar .ti:last-child { border-right: 0; }
.trust-bar .ti .ic { font-size: 18px; }
.trust-bar .ti .t { font-size: 11.5px; color: var(--t2); margin-top: 3px; }

/* 页脚 */
.foot {
  text-align: center; padding: 22px 16px 30px; color: var(--t4);
  font-size: 11.5px; line-height: 1.9;
}
.foot b { color: var(--t3); font-weight: 500; }

/* 悬浮发布按钮
 * 注意：right 必须用 max() 兜底。当视口宽度小于 --maxw 时，
 * calc(50% - --maxw/2) 会算出负数，按钮会被推到屏幕外（之前手机上完全看不到就是这个原因）。 */
.fab {
  position: fixed;
  right: max(14px, calc(50% - var(--maxw) / 2 + 16px));
  bottom: 84px;
  z-index: 55; width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #35CFAB, #00B98D);
  color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 188, 144, .42);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; line-height: 1.15; font-weight: 600;
  transition: transform .16s, box-shadow .16s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 188, 144, .5); }
.fab .ic { font-size: 18px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 12px 26px; }
.pager button {
  min-width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #fff; cursor: pointer; font-size: 13px; color: var(--t2);
  transition: border-color .15s, color .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--brand-line); color: var(--brand-d); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* 小程序引导条 */
.mp-tip {
  margin: 10px 12px 0; background: linear-gradient(135deg, #EAFBF6, #DEF7EF);
  border: 1px solid var(--brand-line); border-radius: var(--r); padding: 12px 13px;
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--brand-dd);
}
.mp-tip .ic { font-size: 20px; }
.mp-tip b { display: block; margin-bottom: 1px; }

/* ---------- 到期提醒页（T15 首屏 / T16 扩展） ---------- */
.rem-head { padding: 18px 16px 4px; }
.rem-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .5px; color: var(--t1); }
.rem-sub { margin: 7px 0 0; font-size: 12.5px; color: var(--t3); line-height: 1.6; }
.ov-tip { padding: 0 15px 14px; font-size: 12px; color: var(--t3); }
.rem-foot { padding: 4px 16px 30px; }
.rem-foot .btn { width: 100%; height: 46px; font-size: 15.5px; letter-spacing: .5px; }
.rem-source { margin-top: 12px; text-align: center; font-size: 11.5px; color: var(--t4); line-height: 1.7; }

/* ---------- 我的发布：表格补充 ---------- */
.st-hist { background: var(--fill-2); color: var(--t3); }
.ml-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.ml-none { color: var(--t4); font-size: 12px; }
.ml-price { color: var(--price); font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.ml-price small { font-size: 11.5px; font-weight: 600; }

/* =============================================================
 * 平板 / 手机（≤860px）
 * 后台的宽表格在手机上必然横向溢出（截图里标题被挤成竖排、按钮堆成三行就是这个原因），
 * 这里统一改成「一行一卡」：每格变成「字段名 : 值」，彻底不需要左右拖动。
 * ============================================================= */
@media (max-width: 860px) {
  .pane { padding: 10px; }
  /* 到期概览三个数字必须挤在一行（老板 2026-10-11 明确要求）——
   * 以前这里强制 2 列，手机上「已过期/30天」一行、「90天」另起一行，很难看。
   * 改回 3 列并压缩 padding/字号，保证不换行。 */
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat { padding: 11px 4px; }
  .stat .n { font-size: 19px; }
  .stat .l { font-size: 10.5px; }

  .panel-hd { padding: 13px 12px; font-size: 14px; }
  /* 筛选控件换到第二行并铺满，避免把标题挤成竖排 */
  .panel-hd > .sp { margin-left: 0; width: 100%; justify-content: flex-start; }
  .sp .sp-in, .sp .sp-in.wide { flex: 1 1 96px; min-width: 0; }

  /* 后台标签栏：手机上改为 3 列两行，全部可见，不用左右滑 */
  .admin-tabs { flex-wrap: wrap; overflow-x: visible; }
  .admin-tabs div { flex: 1 0 33.333%; min-width: 0; padding: 11px 4px; font-size: 13px; }

  .tree-body { padding: 0 12px 10px 14px; }
  .tree-l1 > .th { padding: 12px 12px; }
  .lv-sum { display: none; }

  .modal-mask { padding: 14px; }
  .modal { max-height: 88dvh; }
  .sheet { max-height: 88dvh; }

  /* ---- 表格 → 卡片 ---- */
  .scroll-x { overflow-x: visible; }

  .tbl { display: block; }
  .tbl thead { display: none; }
  .tbl tbody { display: block; }
  .tbl tr {
    display: block; position: relative;
    background: #fff; border: 1px solid var(--line-2);
    border-radius: var(--r); padding: 4px 13px 11px; margin-bottom: 10px;
  }
  .tbl tr:hover td { background: transparent; }
  .tbl td {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 7px 0; border-bottom: 1px dashed var(--line);
    font-size: 13.5px;
  }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before {
    content: attr(data-label);
    flex: none; width: 68px; color: var(--t3);
    font-size: 12px; line-height: 1.6;
  }
  /* 首格当卡片标题：不加字段名、字大一号 */
  .tbl td:first-child {
    display: block; padding: 11px 0 8px;
    font-size: 15px; font-weight: 700; color: var(--t1);
    border-bottom: 1px solid var(--line); line-height: 1.4;
  }
  .tbl td:first-child::before { display: none; }
  /* 无字段名的格子（多为操作列）：整行铺满 */
  .tbl td[data-label=""] { display: block; padding-top: 10px; }
  .tbl td[data-label=""]::before { display: none; }
  /* 卡片里不再截断文本 */
  .tbl .ell { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
  .tbl td > div { min-width: 0; }
  /* 操作按钮横排，等分宽度，不再竖着堆 */
  .tbl-actions { display: flex; gap: 8px; width: 100%; }
  .tbl-actions .btn { flex: 1 1 0; min-width: 0; text-align: center; padding: 8px 6px; }
  /* 空数据行 */
  .tbl td[colspan] {
    display: block; text-align: center; border-bottom: 0;
    padding: 34px 0; font-size: 13.5px; font-weight: 400; color: var(--t3);
  }
}

@media (max-width: 640px) {
  .list { padding: 8px 10px 96px; }
  .filterbar { padding: 0 2px; }
  .fchip { padding: 11px 10px; font-size: 13px; }
  .admin-top { padding: 15px 13px; }
  .admin-top h1 { font-size: 17px; }
  .foot { padding: 20px 14px 28px; }
}

@media (max-width: 420px) {
  .mk-c2 { width: 70px; }
  .mk-c3 { width: 82px; }
  .kv .k { width: 84px; }
  .frow .lb { width: 84px; }
  .company { font-size: 15px; }
  .admin-tabs div { font-size: 12.5px; }
  .tbl td::before { width: 62px; }
  .tbl-actions .btn { font-size: 11.5px; padding: 8px 4px; }
  .brand-main { font-size: 19px; }
  .brand-sub { letter-spacing: 1.6px; }
  .fchip { padding: 11px 9px; font-size: 12.5px; }
  /* 4 个标签在窄屏：缩小字号与留白，确保单行不换行、不竖排 */
  .tab { font-size: 13.5px; padding: 13px 2px 11px; }
  .topbar-right { gap: 6px; }
  .tb-btn { padding: 6px 9px; }
}

@media (max-width: 360px) {
  .tab { font-size: 12.5px; padding: 13px 1px 11px; }
  .ae-name { max-width: 48px; }
}

/* =============================================================
 * 桌面端增强（≥900px）—— 由移动端单列升级为双列信息流
 * ============================================================= */
@media (min-width: 900px) {
  :root { --maxw: 1024px; }

  .app { box-shadow: 0 0 60px rgba(0, 0, 0, .10); }

  .topbar { padding: 16px 22px 16px; }
  .brand-logo { width: 40px; height: 40px; font-size: 19px; border-radius: 11px; }
  .brand-main { font-size: 23px; }
  .brand-sub { font-size: 11px; letter-spacing: 2.8px; }

  .searchbar { padding: 12px 22px 2px; }
  .search-wrap { border-radius: 12px; padding: 6px 6px 6px 16px; }
  .search-wrap input { height: 38px; font-size: 15px; }
  .search-btn { padding: 10px 26px; font-size: 14.5px; border-radius: 8px; }

  .tab { padding: 15px 0 13px; font-size: 16px; }

  .list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
    padding: 14px 16px 90px;
  }
  .list .card { margin-bottom: 0; }
  .list .empty { grid-column: 1 / -1; }
  .list-count { grid-column: 1 / -1; padding: 0 2px; }

  .mk-c2 { width: 120px; }
  .mk-c3 { width: 132px; }
  .mk-head, .mk-row { padding: 14px 22px; }

  .cascade { padding: 0 10px; }
  .cas-grid { padding: 0 2px; }

  .sec { margin: 12px 16px; }
  .trust-bar { margin: 12px 16px; }
  .foot { padding: 26px 22px 34px; }
}

/* =============================================================
 * 企业托管卡片 + 到期天数标签（T16）
 * 约定：只新增 ent- / days- 两个前缀，不新增任何 :root 令牌
 * ============================================================= */
.sec-hd .more { white-space: nowrap; }

.ent-list { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 10px; }
.ent-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 13px 14px; cursor: pointer; }
.ent-card:active { background: #FAFCFB; }
.ent-card-hd { display: flex; align-items: flex-start; gap: 8px; }
.ent-name {
  flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--t1);
  letter-spacing: -.2px; line-height: 1.45; word-break: break-all;
}
.ent-badge {
  flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px;
  border-radius: 999px; white-space: nowrap;
}
.ent-badge.ok   { color: var(--ok);       background: var(--ok-soft); }
.ent-badge.run  { color: var(--brand-dd); background: var(--brand-soft); }
.ent-badge.err  { color: var(--danger);   background: var(--danger-soft); }
.ent-badge.pick { color: var(--warn);     background: var(--warn-soft); }

.ent-meta { margin-top: 7px; font-size: 12px; color: var(--t3); line-height: 1.75; }
.ent-meta b { color: var(--t2); font-weight: 600; }
.ent-bar { margin-top: 9px; height: 4px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.ent-bar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--brand); transition: width .3s; }
.ent-err {
  margin-top: 9px; font-size: 12px; line-height: 1.6; color: var(--danger);
  background: var(--danger-soft); border-radius: var(--r-s); padding: 8px 10px; word-break: break-all;
}
.ent-acts { margin-top: 11px; display: flex; gap: 8px; flex-wrap: wrap; }
.ent-acts .btn { flex: none; padding: 6px 13px; font-size: 12.5px; }
/* 注：.ent-acts 已不再生成（底部按钮条按老板要求移除，按钮并入 .ent-l3），
   保留样式以防其它页面/未来复用；reminder.js 的事件委托也已改挂 .ent-l3。 */

/* ---------- 企业卡片三行布局（2026-10-11） ----------
 * 第1行：公司名 | 徽章
 * 第2行：资质/注册/安全员/特种工 四项计数（**必须一行**）
 * 第3行：最近到期 + 剩余 | 查看详情
 */
/* 第二行四项计数：老板要求「挤到一行，换行太丑」。
 * 用 flex + 等分 + 每项 nowrap，而不是整行 nowrap：
 *   - 四项永远各占一格、都在同一行，不会出现某项被挤到第二行；
 *   - 单项数字很大时该项内部省略号，比整行截断更可控。
 * 词已压到最短（资质/注册/安全员/特种工，数字不加单位）。*/
.ent-counts {
  margin-top: 8px;
  display: flex; align-items: baseline; gap: 3px;
  /* 五项（资质/安许/注册证/安全员/特种工）要挤一行，字号比四项版再降一档 */
  font-size: 11px; line-height: 1.6; color: var(--t3);
  letter-spacing: -.3px;
}
.ent-counts .c {
  flex: 1 1 0; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-align: center;
}
.ent-counts b { color: var(--t2); font-weight: 600; margin: 0 1px; }
.ent-l3 {
  margin-top: 9px; display: flex; align-items: center; gap: 10px;
}
.ent-l3-l {
  flex: 1; min-width: 0; font-size: 12px; color: var(--t3); line-height: 1.7;
}
.ent-l3 .btn { flex: none; padding: 6px 13px; font-size: 12.5px; }

/* 剩余天数：>90 绿 / 31~90 橙 / 0~30 红 / 已过期 实心红 / 无有效期 灰 */
.days {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 1.5;
}
.days-ok   { color: var(--ok);     background: var(--ok-soft); }
.days-d90  { color: var(--warn);   background: var(--warn-soft); }
.days-d30  { color: var(--danger); background: var(--danger-soft); }
.days-over { color: #fff;          background: var(--danger); }
.days-none { color: var(--t3);     background: var(--fill-2); font-weight: 500; }

.ent-empty { padding: 44px 20px; text-align: center; color: var(--t3); }
.ent-empty .eico { font-size: 32px; margin-bottom: 8px; }
.ent-empty p { margin: 0; font-size: 13.5px; }
.ent-empty .sub { margin-top: 7px; font-size: 12px; color: var(--t4); line-height: 1.7; }

.ent-add-hint { font-size: 11.5px; color: var(--t4); line-height: 1.65; margin-top: 6px; }
.ent-add-err { font-size: 12px; color: var(--danger); margin-top: 8px; min-height: 17px; line-height: 1.5; }
.ent-pick { display: flex; flex-direction: column; gap: 8px; }
.ent-pick button {
  text-align: left; border: 1px solid var(--line-2); background: #fff;
  border-radius: var(--r-s); padding: 10px 12px; font-size: 13.5px; cursor: pointer; line-height: 1.5;
}
.ent-pick button:hover { border-color: var(--brand); background: var(--brand-soft); }
.ent-pick button small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--t3); }

/* ---------- 提醒规则弹层（T17） ---------- */
.rl-sub { font-size: 12px; color: var(--t3); padding-bottom: 8px; }
.rl-switch { display: flex; align-items: center; gap: 9px; padding: 4px 0 12px; font-size: 14px; font-weight: 600; }
.rl-switch input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.rl-hd { font-size: 12px; color: var(--t3); padding: 4px 0 6px; }
.rl-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rl-day { width: 96px; flex: none; padding: 7px 10px; }
.rl-unit { font-size: 12.5px; color: var(--t3); flex: none; white-space: nowrap; }
.rl-sw { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--t2); flex: none; white-space: nowrap; }
.rl-sw input { width: 16px; height: 16px; accent-color: var(--brand); }
.rl-del { margin-left: auto; flex: none; }
.rl-add { display: flex; gap: 8px; align-items: center; margin-top: 11px; }
.rl-add .finput { flex: 1; min-width: 0; padding: 7px 10px; }
.rl-add .btn { flex: none; }
.rl-err { font-size: 12px; color: var(--danger); min-height: 17px; margin-top: 8px; line-height: 1.5; }
.rl-tip {
  font-size: 11.5px; color: var(--t3); line-height: 1.75; margin-top: 10px;
  background: var(--fill); border-radius: var(--r-s); padding: 9px 11px;
}
.rl-tip b, .rl-tip strong { color: var(--t2); }
.rl-ft { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rl-ft .btn { flex: none; }
.rl-empty { font-size: 12.5px; color: var(--t3); padding: 22px 0; text-align: center; }

@media (max-width: 860px) {
  .ent-list { padding: 0 10px 10px; }
  .ent-card { padding: 12px 13px; }
  .ent-acts .btn { flex: 1 1 0; min-width: 0; text-align: center; }
  .rl-ft .btn { flex: 1 1 0; min-width: 0; text-align: center; }
}

/* =============================================================
 * 后台增量（T20）：第二组「托管与提醒运维」
 * 全部复用现有 :root 令牌与 .panel / .stat / .btn / .tbl 区块类，不新增令牌。
 * ============================================================= */

/* ---------- 分组标题 ---------- */
.adm-grp-hd {
  padding: 12px 14px 8px;
  font-size: 12.5px; font-weight: 700; color: var(--t3);
  letter-spacing: .6px; white-space: nowrap;   /* 中文标题自身撑住，别被挤成竖排 */
  background: var(--bg);
}
/* 第二组标签栏：不吸顶（避免与第一组吸顶栏叠在一起） */
.admin-tabs.sub { position: static; border-top: 1px solid var(--line); }

/* ---------- pane 内登录卡片 ---------- */
.adm-login { padding: 22px 16px 20px; text-align: center; }
.adm-login .t { font-size: 15px; font-weight: 700; color: var(--t1); white-space: nowrap; }
.adm-login .s { margin: 8px auto 16px; max-width: 420px; font-size: 12.5px; color: var(--t3); line-height: 1.8; }
.adm-login .s.warn { margin-top: -6px; color: var(--warn); }
.adm-login .btn { max-width: 260px; }

/* ---------- 表单行 / 提示 ---------- */
.adm-form { padding: 4px 0; }
.adm-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-row label { flex: none; width: 76px; font-size: 13px; color: var(--t2); white-space: nowrap; }
.adm-row input, .adm-row select {
  flex: 1; min-width: 0; height: 40px; padding: 0 11px;
  border: 1px solid var(--line-2); border-radius: 9px; font-size: 13.5px; color: var(--t1); background: #fff;
}
.adm-hint { font-size: 12px; color: var(--t3); line-height: 1.8; }

/* ---------- 成功率统计条 ---------- */
.adm-stat { padding: 14px 14px 4px; }
.adm-stat .stat-grid { margin-bottom: 8px; }
.adm-stat .stat .n { color: var(--brand); }
.adm-stat .stat .n.ok { color: var(--ok); }
.adm-stat .stat .n.err { color: var(--danger); }
.adm-stat .stat .n.run { color: var(--brand-d); }
.adm-stat .stat .n.pick { color: var(--warn); }

/* ---------- 进度条 ---------- */
.adm-bar {
  display: inline-block; width: 68px; height: 6px; margin-right: 7px;
  border-radius: 4px; background: var(--fill-2); overflow: hidden; vertical-align: middle;
}
.adm-bar .in { height: 100%; border-radius: 4px; background: var(--brand); }

/* ---------- 分页 ---------- */
.adm-pager { padding: 12px 14px 16px; }
.adm-pager .pg { display: flex; align-items: center; justify-content: center; gap: 12px; }
.adm-pager .pg-t { font-size: 12.5px; color: var(--t3); white-space: nowrap; }
.adm-pager .btn { white-space: nowrap; }

/* ---------- 弹层内列表 ---------- */
.adm-sheet-list { padding: 2px 0 6px; }
.adm-sheet-item { padding: 11px 0; border-bottom: 1px solid var(--line); }
.adm-sheet-item:last-child { border-bottom: 0; }
.adm-sheet-item .n { font-size: 14px; font-weight: 600; color: var(--t1); line-height: 1.5; }
.adm-sheet-item .m { margin-top: 4px; font-size: 12px; color: var(--t3); }

/* ---------- 表格内小字 ---------- */
.tbl .mut { color: var(--t4); }

@media (max-width: 860px) {
  /* 第二组 4 个标签：2 列 × 2 行 */
  .admin-tabs.sub div { flex: 1 0 50%; min-width: 0; }
  .adm-row { flex-wrap: wrap; }
  .adm-row label { width: 100%; }
  .adm-row input, .adm-row select { flex: 1 1 100%; }
  .adm-stat .stat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
  .admin-tabs.sub div { font-size: 13px; padding: 11px 4px; }
  .adm-stat .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
