/* ==========================================================================
   集客信息助手 · H5 版样式
   视觉对齐微信小程序简洁版：主色 #0a4da3，页面底色 #f2f4f8，白色圆角卡片
   移动端优先；桌面端收窄为 420px 手机宽度居中显示
   ========================================================================== */

:root {
  --primary: #0a4da3;
  --primary-dark: #083d82;
  --primary-light: #e8f0fb;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #4b5563;
  --text-3: #9aa3af;
  --line: #eceff4;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
  --navbar-h: 44px;
  --good: #16a34a;
  --warn: #f59e0b;
  --bad: #ef4444;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------- 外壳布局 ---------- */
#jk-app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* 桌面端：收窄成手机宽度 */
@media (min-width: 560px) {
  body { background: #101318; }
  #jk-app {
    width: 420px;
    margin: 0 auto;
    box-shadow: 0 0 48px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- 顶部导航 ---------- */
.navbar {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--navbar-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-title {
  font-size: 17px;
  font-weight: 600;
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-back {
  position: absolute;
  left: 4px;
  top: env(safe-area-inset-top);
  height: var(--navbar-h);
  width: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.nav-back:active { opacity: 0.6; }

/* ---------- 内容区 ---------- */
.view {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
}
.view-inner {
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}

/* 移动端：为右下角 Coze 悬浮客服预留底部安全区，避免内容被遮挡 */
@media (max-width: 768px) {
  .view { padding-bottom: 80px; }
}

/* ---------- 通用块 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.section { margin-top: 16px; }
.section-head { display: flex; align-items: center; padding: 0 2px 8px; }
.section-head .t {
  font-size: 16px;
  font-weight: 600;
  padding-left: 9px;
  border-left: 3px solid var(--primary);
  line-height: 1.2;
}
.footer, .foot {
  text-align: center;
  color: var(--text-3);
  font-size: 12px;
  padding: 20px 0 4px;
}
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 40px 0; text-align: center; color: var(--text-3); font-size: 14px; }
.empty-sm { padding: 18px 0; text-align: center; color: var(--text-3); font-size: 13px; }
.tip { margin-top: 12px; text-align: center; color: var(--text-3); font-size: 12px; }

/* ---------- 首页 · 轮播 ---------- */
.banner-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--primary);
  height: 150px;
}
.slides { position: relative; height: 100%; }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 24px;
  text-align: center;
}
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide .b-title { font-size: 19px; font-weight: 600; }
.slide .b-sub { font-size: 13px; opacity: 0.85; margin-top: 6px; }
.dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}
.dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.45); }
.dot.on { background: #fff; width: 14px; }

/* ---------- 首页 · 三个入口 ---------- */
.icons {
  margin-top: 12px;
  display: flex;
  padding: 16px 0;
}
.icon { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.icon:active { background: #fafbfc; }
.ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
}
.ic-blue { background: var(--primary-light); }
.ic-txt { font-size: 13px; color: var(--text-2); }

/* ---------- 首页 · 指标入口卡 ---------- */
.metric-card {
  display: flex;
  align-items: center;
  padding: 16px 14px;
  gap: 10px;
}
.metric-card:active { background: #fafbfc; }
.metric-left { flex: 1; }
.m-title { font-size: 15px; font-weight: 600; }
.m-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.metric-arrow { color: var(--text-3); font-size: 22px; }

/* ---------- 首页 · 列表 ---------- */
.list .row {
  display: flex;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.list .row:last-child { border-bottom: 0; }
.list .row:active { background: #fafbfc; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-size: 15px; }
.row-arrow { color: #c7ccd6; font-size: 20px; margin-left: 8px; }

/* ---------- 查询页 ---------- */
.hint {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
}
.search { margin-top: 12px; padding: 4px 14px; }
.s-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  outline: none;
  background: transparent;
}
.s-input:last-child { border-bottom: 0; }
.s-input::placeholder { color: #c2c8d2; }

.btn-primary {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 13px 0;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:active { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; }

.results { margin-top: 4px; }
.res-item { margin-top: 12px; padding: 6px 14px; }
.kv {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv:last-child { border-bottom: 0; }
.kv .k { flex: 0 0 104px; color: var(--text-3); }
.kv .v { flex: 1; word-break: break-all; }
.res-count { text-align: center; color: var(--text-3); font-size: 12px; padding: 10px 0; }

/* ---------- 指标看板 ---------- */
.hd { padding: 4px 2px 12px; }
.hd .title { font-size: 18px; font-weight: 600; }
.hd .upd { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.hd .upd:first-child { margin-top: 0; }
.upd-foot { margin-top: 2px; }

.controls { padding: 4px 14px 14px; }
.controls .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.controls .lbl { flex: 0 0 56px; color: var(--text-2); font-size: 14px; }
.sel, .ipt {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.sel {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239aa3af' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.ipt:disabled { background: #f7f8fa; color: #c2c8d2; }

.btn-group { display: flex; gap: 10px; margin-top: 14px; }
.btn {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 11px 0;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.btn:active { opacity: 0.85; }
.btn.ghost { background: var(--primary-light); color: var(--primary-dark); }

.stats { padding: 12px 4px; font-size: 13px; color: var(--text-2); }

.tbl-wrap { padding: 4px 0 8px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
.tbl th, .tbl td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: center;
}
.tbl thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  position: sticky;
  top: 0;
}
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl tbody tr:nth-child(even) { background: #fafbfc; }
.tbl tr.total { background: #fff8e6 !important; font-weight: 600; }
.tbl td.pct-good { color: var(--good); }
.tbl td.pct-warn { color: var(--warn); }
.tbl td.pct-bad { color: var(--bad); }

/* 正文说明表：详情页里的小表，字号跟随正文、允许换行、支持纵向合并单元格 */
.detail-tbl { font-size: 14px; white-space: normal; }
.detail-tbl th, .detail-tbl td { border: 1px solid #c9d6e8; padding: 9px 8px; }
.detail-tbl thead th { background: #dbe5f4; position: static; }
.detail-tbl th:first-child, .detail-tbl td:first-child { text-align: center; }
.detail-tbl tbody tr:nth-child(even) { background: transparent; }

.note { padding: 12px 4px; color: var(--text-3); font-size: 12px; line-height: 1.6; }

/* ---------- 详情页 ---------- */
.toc { padding: 12px 14px; }
.toc-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.toc-item {
  padding: 7px 0;
  font-size: 14px;
  color: var(--primary);
  border-bottom: 1px dashed var(--line);
}
.toc-item:active { opacity: 0.6; }
.toc-sub { padding: 4px 0 8px 26px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.toc-sub:active { opacity: 0.6; }

.body { margin-top: 12px; background: #fff; border-radius: var(--radius); padding: 4px 16px 18px; box-shadow: var(--shadow); }
.sec { padding-top: 18px; scroll-margin-top: 8px; }
.sec-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.3; }
.sub-title { font-size: 15px; font-weight: 600; margin: 16px 0 8px; padding-left: 9px; border-left: 3px solid var(--primary-tint, #9ec1ee); color: var(--primary-dark); }

/* 书籍式：目录页子条目（章节 + 其子条目为一组，组内不画线，组末统一一条） */
.card.list .toc-ch-wrap { border-bottom: 1px solid var(--line); }
.card.list .toc-ch-wrap:last-child { border-bottom: 0; }
.card.list .toc-ch-wrap .row { border-bottom: 0; }
.card.list a.toc-sub { display: block; text-decoration: none; color: var(--text-2); font-size: 13px; border-bottom: 0; }
.card.list a.toc-sub:active { opacity: 0.6; }

/* 书籍式：内容页（左上角返回按钮直接回目录页，页面内不再放「返回目录」入口） */
.sub-bread { font-size: 12px; color: var(--text-3); margin-bottom: 6px; }
.sub-title-main { font-size: 18px; font-weight: 700; color: var(--primary-dark); margin-bottom: 14px; line-height: 1.35; }
.content-nav { display: flex; align-items: center; gap: 8px; margin: 16px 14px 0; padding: 11px 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.cn-btn { flex: 1; min-width: 0; color: var(--primary); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-btn.right { text-align: right; }
.cn-btn.disabled { color: var(--text-3); }
.cn-idx { flex: 0 0 auto; font-size: 12px; color: var(--text-3); padding: 0 4px; }
/* 章节自带正文时，底部的「本章小节」入口 */
.sub-links { margin: 18px 0 2px; border-top: 1px solid var(--line); }
.sub-links-h { font-size: 12px; color: var(--text-3); padding: 12px 0 2px; }
.sub-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sub-link:last-child { border-bottom: 0; }
.sub-link:active { opacity: 0.6; }
.sub-link-t { font-size: 14px; color: var(--primary); line-height: 1.45; }
.sub-link-arrow { flex: 0 0 auto; color: var(--text-3); font-size: 16px; }
.para { font-size: 15px; line-height: 1.85; color: var(--text-2); margin: 0 0 10px; }
.para-warn { color: #d93025; font-weight: 500; }
.para-note { font-size: 12.5px; color: var(--text-3); margin-top: -2px; }
.h2 { font-size: 15px; font-weight: 600; margin: 14px 0 8px; }
.h3 { font-size: 14px; font-weight: 600; margin: 12px 0 6px; color: var(--primary-dark); }

.blist { margin: 0 0 10px; padding-left: 20px; }
.blist li { font-size: 15px; line-height: 1.8; color: var(--text-2); }
.blist.ul { list-style: disc; }
.blist.ol { list-style: decimal; }

.quote {
  background: #fff9ec;
  border-left: 3px solid var(--warn);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 10px 0;
  display: block;
}
.quote-label { display: inline-block; font-size: 12px; color: #b45309; font-weight: 600; margin-right: 6px; }
.quote-text { font-size: 14px; color: #78350f; line-height: 1.7; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.divider.dashed { height: 0; background: none; border-top: 1px dashed var(--line); margin: 18px 0; }
.para-strong { font-weight: 700; }

/* ---------- 虚线框小节（标题骑在边框上） ---------- */
.fld {
  position: relative;
  border: 1px dashed #c2d2e8;
  border-radius: 6px;
  padding: 18px 14px 12px;
  margin: 14px 0 16px;
}
.fld-title {
  position: absolute;
  top: -10px;
  left: 12px;
  padding: 0 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  color: var(--primary-dark);
}
.fld-body > .para { margin-bottom: 0; }
.fld-body > .para + .para { margin-top: 8px; }
.fld-body > .blist { margin-bottom: 0; }
.fld-body > .para + .blist { margin-top: 8px; }
.fld-body > .fld { margin: 10px 0; }

/* ---------- 链接卡片（标题 + 说明 + 查看按钮） ---------- */
.linkcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin: 4px 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  text-decoration: none;
}
.linkcard:active { opacity: 0.68; }
.linkcard-main { flex: 1; min-width: 0; display: block; }
.linkcard-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
  line-height: 1.4;
}
.linkcard-desc { display: block; font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
.linkcard-btn {
  flex: 0 0 auto;
  padding: 6px 18px;
  border: 1px solid var(--primary);
  border-radius: 4px;
  color: var(--primary);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.para-img-wrap { margin: 10px 0; text-align: center; }
.para-img { width: 100%; border-radius: 8px; display: block; cursor: zoom-in; }
.para-img-cap { font-size: 12px; color: var(--text-3); margin-top: 6px; text-align: center; }

.file {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}
.file:active { background: #eef2f8; }
.file-ic { font-size: 20px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-tip { font-size: 12px; color: var(--text-3); }
.file-arrow { color: #c7ccd6; font-size: 20px; }

/* ---------- 我的 ---------- */
.about {
  background: linear-gradient(135deg, var(--primary), #2f6fc4);
  color: #fff;
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
}
.a-name { font-size: 19px; font-weight: 600; }
.a-ver { font-size: 12px; opacity: 0.8; margin-top: 6px; }

.block-title { padding: 16px 4px 8px; font-size: 13px; color: var(--text-3); }
.block { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.block .row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.block .row:last-child { border-bottom: 0; }
.block .row:active { background: #fafbfc; }
.block .row.static { cursor: default; }
.block .row.static:active { background: #fff; }
.block .ic {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; flex: 0 0 auto;
}
.block .label { flex: 1; font-size: 15px; }
.block .value { font-size: 13px; color: var(--text-3); }
.block .arr { color: #c7ccd6; font-size: 20px; }

/* ---------- 弹层：Toast / Modal / Loading / 图片预览 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22%;
  transform: translate(-50%, 10px);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 999;
  max-width: 80%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}
.modal {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}
.modal-title { padding: 18px 18px 6px; font-size: 16px; font-weight: 600; text-align: center; }
.modal-body { padding: 6px 18px 16px; }
.modal-text { font-size: 14px; color: var(--text-2); line-height: 1.7; text-align: center; }
.privacy-list { margin: 0; padding-left: 18px; }
.privacy-list li { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.modal-btns { display: flex; border-top: 1px solid var(--line); }
.modal-btn {
  flex: 1;
  border: 0;
  background: #fff;
  padding: 13px 0;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-2);
}
.modal-btn + .modal-btn { border-left: 1px solid var(--line); }
.modal-btn.primary { color: var(--primary); font-weight: 600; }
.modal-btn:active { background: #f5f6f8; }

.loading-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
}
.loading-box {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border-radius: 10px;
  padding: 18px 24px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.spinner {
  width: 26px; height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  padding: 16px;
}
.img-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- 首页 · 意见反馈入口 ---------- */
.feedback-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 14px;
}
.feedback-entry:active { background: #fafbfc; }
.feedback-entry .fb-ic {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.feedback-entry .fb-txt {
  flex: 1;
  font-size: 14px;
  color: var(--primary);
}
.feedback-entry .fb-txt b { font-weight: 600; }

/* ---------- 意见反馈页 ---------- */
.fb-head { padding: 8px 2px 14px; }
.fb-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
}
.fb-badge {
  font-size: 11px;
  font-weight: 400;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid #cfe0f7;
  border-radius: 4px;
  padding: 1px 6px;
}
.fb-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.fb-form { padding: 0 14px; }
.fb-field { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fb-field:last-child { border-bottom: 0; }
.fb-label { display: block; font-size: 14px; color: var(--text); margin-bottom: 10px; }
.fb-label i { color: var(--bad); font-style: normal; margin-right: 2px; }
.fb-textarea, .fb-input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  resize: none;
  padding: 0;
}
.fb-textarea { min-height: 132px; line-height: 1.6; }
.fb-input { padding: 2px 0; }
.fb-textarea::placeholder, .fb-input::placeholder { color: #c2c8d2; }

.fb-submit-wrap { padding: 26px 0 8px; display: flex; justify-content: center; }
.fb-submit {
  width: 62%;
  max-width: 240px;
  border: 0;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  cursor: pointer;
}
.fb-submit:active { background: var(--primary-dark); }
.fb-submit:disabled { opacity: 0.7; }

/* ---------- 集客专线指标查询（对齐原系统 sky-blue 风格） ---------- */
.mt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 136, 209, 0.22);
}
.mt-head-ico { font-size: 20px; line-height: 1; }
.mt-head-t { font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
.mt-head-s { font-size: 12px; color: #b3e5fc; margin-top: 3px; }

.mt-card {
  background: #fff;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.1);
  padding: 16px 16px 18px;
}
.mt-card.mt-alone { border-radius: 14px; }

.mt-field { margin-bottom: 14px; }
.mt-field:last-of-type { margin-bottom: 16px; }
.mt-label {
  display: block;
  font-size: 13px;
  color: #546e7a;
  font-weight: 500;
  margin-bottom: 6px;
}

/* 自定义下拉：展开面板绝对定位 + 内部滚动，不会把页面撑长 */
.mt-select { position: relative; }
.mt-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid #4fc3f7;
  border-radius: 9px;
  background: #fff;
  color: #37474f;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mt-trigger.on {
  border-color: #29b6f6;
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.18);
}
.mt-val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mt-val.ph { color: #9aa3af; }
.mt-arrow {
  font-size: 10px;
  color: #4fc3f7;
  margin-left: 8px;
  transition: transform 0.25s ease;
}
.mt-trigger.on .mt-arrow { transform: rotate(180deg); }

.mt-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 2px solid #4fc3f7;
  border-radius: 9px;
  max-height: 264px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  z-index: 60;
  display: none;
}
.mt-menu.on { display: block; }
.mt-opt {
  padding: 11px 14px;
  font-size: 13.5px;
  color: #37474f;
  border-bottom: 1px solid #e1f5fe;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-opt:last-child { border-bottom: 0; }
.mt-opt.cur { background: #e1f5fe; color: #01579b; font-weight: 600; }

.mt-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border: 2px solid #4fc3f7;
  border-radius: 9px;
  background: #fff;
  color: #37474f;
  outline: none;
}
.mt-input::placeholder { color: #9aa3af; }

.mt-btns { display: flex; gap: 10px; }
.mt-btn {
  flex: 1;
  border: 0;
  border-radius: 9px;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 500;
  color: #01579b;
  background: linear-gradient(135deg, #b3e5fc 0%, #81d4fa 100%);
  box-shadow: 0 2px 8px rgba(179, 229, 252, 0.5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mt-btn:active {
  background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
  color: #fff;
}

.mt-stats {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8f4fd;
  color: #01579b;
  font-size: 12.5px;
  line-height: 1.65;
}

.mt-tbl-card {
  margin-top: 12px;
  padding: 4px 0 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(33, 150, 243, 0.1);
  overflow: hidden;
}
.mt-tbl-card .tbl { font-size: 12.5px; }
.mt-tbl-card .tbl thead th {
  background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
  color: #fff;
  font-weight: 600;
}
.mt-tbl-card .tbl tbody tr:nth-child(even) { background: #f7fbfe; }
.mt-tbl-card .tbl tr.total { background: #e1f5fe !important; color: #01579b; }
.mt-tbl-card .empty { padding: 28px 0; }
