/* ═══════════════════════════════════════════════════════════
   DIXI 对超级个体实验舱前端的定制（不动原文件，升级时这份会保留）
   ═══════════════════════════════════════════════════════════ */

/* ── ① 企业家会客厅：恢复显示，排在先锋者后面（老板 2026-11-03）──
   之前把它合并进先锋者时隐藏了入口，现在独立出来：
   仇瑞锋、苏王钗 在「企业家AI会客厅」，徐景安在「先锋者AI会客厅」。
   地图页的功能网格仍然不重复放（避免和侧栏重复）。 */
.feature-entry-grid a[href="#lounge"] {
  display: none !important;
}

/* ── ② 先锋者从「中国 3D 地图」页取消，只保留底部/侧栏跳转 ── */
.feature-entry-grid a[href="#pioneers"] {
  display: none !important;
}

/* ── ③ 手机底部导航（2026-11-07 小d 重写 v2）──
 *
 * 老板：「浏览往上滚动的时候，底部标签显示不全」
 *
 * 根因：showcase.css 里手机端是这么做的 ——
 *     .sidebar nav a > span:not(.nav-dot) { display: none }   ← 真标签藏了
 *     .sidebar nav a:after { content: attr(data-short); font-size:10px }
 *   也就是说手机上显示的是 ::after 伪元素，不是原来的 <span>。
 *
 * 而底栏 a 的高度只有 45px：
 *     图标 20 + gap 4 + 文字 12 + 上下 padding 12 = 48 > 45  → 被裁
 * 再加上 white-space:nowrap 没有 max-width，长标签（AI会客厅）横向也被切。
 *
 * 现在按实际尺寸重算：
 *     图标 17 + gap 3 + 文字 11 + 上下 padding 8 = 39 ≤ 46  → 放得下
 *   并给 ::after 加 max-width + 省略号，横向也不切。
 *
 * 底栏 5 项全部显示，等宽。
 */
@media (max-width: 580px) {
  .sidebar {
    bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: auto;
    min-height: 54px;
  }

  .sidebar nav {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow: visible;
    width: 100%;
    gap: 0;
  }

  /* 5 项全部显示（覆盖 showcase 的 desktop-nav-only 隐藏和会员隐藏） */
  .sidebar nav a,
  .sidebar nav a.desktop-nav-only,
  .sidebar nav a[data-view="member"] {
    display: flex !important;
  }

  .sidebar nav a {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    height: 46px;
    padding: 5px 2px 6px;
    gap: 3px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  /* 图标缩到 17，给文字让位 */
  .sidebar nav a > i,
  .sidebar nav a > svg,
  .sidebar nav svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
  }

  /* 真标签在手机上本来就隐藏，这里保持隐藏（避免和 ::after 重复） */
  .sidebar nav a > span:not(.nav-dot) {
    display: none;
  }

  /* 手机上真正显示的那行字 */
  .sidebar nav a::after {
    content: attr(data-short);
    display: block;
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: -0.2px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
  }

  .sidebar nav a.active {
    color: #0a6b62;
  }

  /* 2026-11-07 老板：「所有页面底部不要留白」
   *
   * 底栏是 position:fixed，正常做法要给内容留出底栏高度，
   * 但那会在每页底部留一条空白带，老板不要。
   *
   * 所以：内容一律不加底部内边距，页脚直接贴底。
   * 底栏本身有 98% 不透明度 + 毛玻璃，扫过去时页脚文字会从下面经过，
   * 滚到底时页脚正好收在底栏上沿，不挡关键内容也不留白。
   */
  main,
  main footer,
  main > *:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* 右下角「问 AI」浮球抬高，别压着底栏 */
  .sxt-ai {
    bottom: calc(62px + 16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── ④ 中国地图页的功能入口网格：少了 2 块后重排 ──
   原来 5 块（省级/先锋者/企业家/城市/机构），
   现在只剩 3 块（省级/城市/机构），让它们铺满一行。 */
.feature-entry-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}


/* ═══════════════════════════════════════════════════════════
   先锋者 · 一人一卡
   ═══════════════════════════════════════════════════════════ */

.pc-list { display: grid; gap: 16px; }

.pc-card {
  background: #fff;
  border: 1px solid var(--line, #e8ebe2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(40, 55, 30, .03);
  transition: border-color .16s, box-shadow .16s;
}
.pc-card:hover { border-color: #dbe4d1; box-shadow: 0 4px 14px rgba(40, 55, 30, .06); }

/* ── 卡头（可点，收起/展开）── */
.pc-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 20px;
  border: none; background: none; text-align: left; cursor: pointer;
  font: inherit;
}
.pc-head:hover { background: #fafcf7; }

.pc-mark {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 13px;
  background: linear-gradient(160deg, #f2f5ec 0%, #e7ede0 100%);
  border: 1px solid #dfe6d4;
  display: grid; place-items: center;
  font-size: 23px; font-weight: 600; color: #5c7447;
  font-family: 'Songti SC', 'STSong', serif;
}

.pc-id { flex: 1 1 auto; min-width: 0; display: grid; gap: 3px; }
.pc-name {
  font-size: 19px; font-weight: 600; color: var(--ink, #292b27);
  letter-spacing: .5px; line-height: 1.3;
}
.pc-role { font-size: 12px; color: #5f6d52; line-height: 1.5; }
.pc-org { font-size: 10.5px; color: #9aa88c; line-height: 1.5; }

.pc-badge {
  flex: 0 0 auto;
  font-size: 10px; color: #7c8f68;
  background: #f3f6ee; border: 1px solid #e6ecdd;
  border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}

.pc-toggle {
  flex: 0 0 auto; width: 28px; height: 28px;
  display: grid; place-items: center;
  color: #a3b197;
  transition: transform .2s;
}
.pc-card.is-open .pc-toggle { transform: rotate(180deg); }

/* ── 卡身 ── */
.pc-body {
  display: none;
  padding: 0 20px 22px;
  border-top: 1px solid #f2f4ee;
  padding-top: 16px;
}
.pc-card.is-open .pc-body { display: block; }

.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  font-size: 10px; padding: 3px 9px; border-radius: 4px;
  background: #f3f6ee; color: #7c8f68; border: 1px solid #e9eee1;
}

.pc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 2px; margin-top: 16px;
  background: #fafbf7; border: 1px solid #eff2ea; border-radius: 12px;
  overflow: hidden;
}
.pc-stat {
  display: grid; gap: 3px; padding: 13px 12px; text-align: center;
  border-right: 1px solid #eff2ea;
}
.pc-stat:last-child { border-right: 0; }
.pc-stat strong {
  font-size: 20px; font-weight: 600; color: #5c7447;
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.pc-stat span { font-size: 9.5px; color: #9aa88c; }

.pc-summary {
  margin: 16px 0 0;
  font-size: 13px; line-height: 1.95; color: #4a5444;
  padding-left: 13px; border-left: 3px solid #d6e0c8;
}

.pc-boards {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 16px; padding: 10px 14px;
  background: #f7f9f2; border-radius: 10px; border: 1px dashed #dde6d0;
}
.pc-boards-label { font-size: 10px; color: #96a08a; margin-right: 3px; }
.pc-boards b {
  font-size: 10.5px; font-weight: 500; color: #63764d;
  padding: 3px 9px; background: #fff;
  border: 1px solid #e2e9d6; border-radius: 999px;
}

.pc-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 28px; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid #f0f2ec;
}
.pc-section h4 {
  margin: 0 0 7px;
  font-size: 12px; font-weight: 600; color: #5c7447; letter-spacing: .5px;
  display: flex; align-items: center; gap: 7px;
}
.pc-section h4::before {
  content: ''; width: 3px; height: 12px; border-radius: 2px; background: #b8cca0;
}
.pc-section p { margin: 0; font-size: 12px; line-height: 1.9; color: #5a6551; }

/* 专栏 */
.pc-column { margin-top: 22px; padding-top: 18px; border-top: 1px solid #f0f2ec; }
.pc-column-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.pc-eyebrow { display: block; font-size: 9px; letter-spacing: 2.2px; color: #9aa88c; margin-bottom: 6px; }
.pc-column-head h3 {
  margin: 0 0 5px; font-size: 16px; font-weight: 600;
  color: var(--ink, #292b27); line-height: 1.5;
}
.pc-column-head p { margin: 0; font-size: 11px; color: #96a08a; line-height: 1.7; }
.pc-count {
  flex: 0 0 auto; font-size: 10px; color: #7c8f68;
  background: #f3f6ee; border: 1px solid #e6ecdd;
  border-radius: 999px; padding: 3px 11px;
}
.pc-article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 7px; margin: 0; padding: 0; list-style: none;
  counter-reset: pc-art;
}
.pc-article-grid li {
  counter-increment: pc-art;
  position: relative; padding: 10px 11px 10px 40px;
  border: 1px solid #eef1e8; border-radius: 9px; background: #fcfdf9;
  transition: border-color .16s, background .16s;
}
.pc-article-grid li:hover { border-color: #d3e0c2; background: #f8fbf3; }
.pc-article-grid li::before {
  content: counter(pc-art, decimal-leading-zero);
  position: absolute; left: 11px; top: 10px;
  font-size: 10px; color: #b3c19f;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.pc-article-grid h4 {
  margin: 0; font-size: 12px; font-weight: 500; line-height: 1.6; color: #4a5444;
}

/* ── 手机 ── */
@media (max-width: 720px) {
  .pc-head { padding: 15px 16px; gap: 11px; }
  .pc-mark { width: 46px; height: 46px; border-radius: 11px; font-size: 19px; }
  .pc-name { font-size: 17px; }
  .pc-role { font-size: 11px; }
  .pc-body { padding: 0 16px 18px; padding-top: 14px; }
  .pc-badge { display: none; }
  .pc-stats { grid-template-columns: 1fr 1fr; }
  .pc-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .pc-stat strong { font-size: 17px; }
  .pc-sections { grid-template-columns: 1fr; gap: 16px; }
  .pc-article-grid { grid-template-columns: 1fr; }
  .pc-column-head { flex-direction: column; gap: 7px; }
  .pc-summary { font-size: 12.5px; }
}

/* ═══════════════════════════════════════════════════════════
   防横向溢出（手机 390 宽时右侧被裁、底部「会员」被挤出屏）
   ═══════════════════════════════════════════════════════════ */
html, body { max-width: 100%; overflow-x: hidden; }
.workspace, main { max-width: 100%; min-width: 0; box-sizing: border-box; }

.pc-card, .pc-list, .pc-body, .pc-sections, .pc-column,
.pc-article-grid, .pc-stats, .pc-boards {
  min-width: 0; max-width: 100%; box-sizing: border-box;
}
.pc-head { min-width: 0; }
.pc-id { min-width: 0; }
.pc-summary, .pc-section p, .pc-article-grid h4, .pc-org,
.pc-column-head h3, .pc-column-head p { overflow-wrap: anywhere; word-break: break-word; }
.pc-tags { min-width: 0; }
.pc-tags span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 底部栏 5 项（全球/中国/名录/先锋者/会员）必须排得开 */
@media (max-width: 580px) {
  .sidebar { box-sizing: border-box; }
  .sidebar nav {
    justify-content: space-between;
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  .sidebar nav a {
    min-width: 0 !important;
    flex: 1 1 0 !important;
    padding: 5px 2px !important;
    font-size: 9px !important;
    box-sizing: border-box;
  }
  .sidebar nav a > span {
    font-size: 9px;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar nav svg { width: 18px; height: 18px; }
}

/* ═══════════════════════════════════════════════════════════
   DIXI 的 AI 助理（右下角浮球）
   ═══════════════════════════════════════════════════════════ */

.sxt-ai { position: fixed; right: 22px; bottom: 22px; z-index: 900; }

/* 浮球 */
.sxt-ai-fab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px 12px 14px;
  border: none; border-radius: 999px;
  background: #0d7f79; color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(13, 127, 121, .30), 0 2px 6px rgba(13, 127, 121, .18);
  transition: transform .16s, box-shadow .16s, background .16s;
}
.sxt-ai-fab:hover {
  transform: translateY(-2px);
  background: #0a6d68;
  box-shadow: 0 12px 28px rgba(13, 127, 121, .34);
}
.sxt-ai-fab-icon { display: grid; place-items: center; }
.sxt-ai.is-open .sxt-ai-fab { display: none; }

/* 面板 */
.sxt-ai-panel {
  position: absolute; right: 0; bottom: 0;
  width: 372px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #e4e9e2;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(30, 48, 44, .18), 0 2px 8px rgba(30, 48, 44, .06);
  overflow: hidden;
}
.sxt-ai-panel[hidden] { display: none; }

.sxt-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, #0d7f79 0%, #0f8f88 100%);
  color: #fff;
}
.sxt-ai-head strong { display: block; font-size: 14px; letter-spacing: .3px; }
.sxt-ai-head small { display: block; font-size: 10px; opacity: .78; margin-top: 2px; }
.sxt-ai-close {
  flex: 0 0 auto; width: 28px; height: 28px;
  border: none; border-radius: 8px;
  background: rgba(255, 255, 255, .16); color: #fff;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.sxt-ai-close:hover { background: rgba(255, 255, 255, .28); }

.sxt-ai-body { flex: 1 1 auto; overflow-y: auto; padding: 14px; background: #fafcfa; }
.sxt-ai-list { display: grid; gap: 10px; align-content: start; }

.sxt-ai-msg { display: flex; }
.sxt-ai-msg.user { justify-content: flex-end; }
.sxt-ai-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 12.5px; line-height: 1.8;
  background: #f1f6f1; color: #3d4f42;
  border: 1px solid #e6eee4;
  word-break: break-word;
}
.sxt-ai-msg.user .sxt-ai-bubble {
  background: #0d7f79; color: #fff; border-color: #0d7f79;
  border-bottom-right-radius: 4px;
}
.sxt-ai-msg.bot .sxt-ai-bubble { border-bottom-left-radius: 4px; }
.sxt-ai-bubble.muted { color: #9bab9c; }

.sxt-ai-input {
  display: flex; gap: 8px; padding: 10px 12px 12px;
  border-top: 1px solid #eef2ec; background: #fff;
}
.sxt-ai-input input {
  flex: 1 1 auto; min-width: 0;
  padding: 10px 13px;
  border: 1px solid #dfe7db; border-radius: 10px;
  font-size: 12.5px; background: #fbfdfa;
}
.sxt-ai-input input:focus { outline: 2px solid #cfe3d3; outline-offset: -1px; }
.sxt-ai-input button {
  flex: 0 0 auto; width: 40px; height: 40px;
  border: none; border-radius: 10px;
  background: #0d7f79; color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.sxt-ai-input button:disabled { opacity: .45; cursor: not-allowed; }

/* ── 手机（2026-11-07 小d 重做）──
 *
 * 老板：「问ai界面没有做手机适配」
 *
 * 原来的问题：
 *   ① 高度写死 76vh。iOS Safari 的 vh 把地址栏也算进去，
 *      实际可视区比 vh 小，输入框被挤到屏幕外面。
 *   ② 没有安全区内边距。iPhone 底部有 home indicator（小白条），
 *      输入框正好被它压住，点不到也看不到。
 *   ③ 面板直接盖住底部导航，没有任何视觉提示。
 *
 * 现在：
 *   高度用 dvh（动态视口高度），不支持的浏览器退回 vh
 *   输入区加 env(safe-area-inset-bottom)
 *   顶部加拖拽提示条
 *   body 区加惯性滚动和 overscroll 隔离
 */
@media (max-width: 580px) {
  .sxt-ai { right: 14px; bottom: calc(69px + 14px + env(safe-area-inset-bottom, 0px)); }
  .sxt-ai-fab { padding: 11px 15px 11px 12px; font-size: 12px; }

  .sxt-ai-panel {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100%;
    height: 78vh;
    max-height: 78vh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 32px rgba(20, 40, 36, .22);
  }
  .sxt-ai-panel::before {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 38px; height: 4px;
    margin-left: -19px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .45);
    z-index: 2;
    pointer-events: none;
  }
  .sxt-ai-head { padding: 18px 16px 12px; border-radius: 18px 18px 0 0; }
  .sxt-ai-head strong { font-size: 15px; }
  .sxt-ai-head small { font-size: 11px; }
  .sxt-ai-close { width: 34px; height: 34px; font-size: 20px; }
  .sxt-ai-body {
    padding: 14px 14px 6px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .sxt-ai-bubble { max-width: 88%; font-size: 13.5px; line-height: 1.75; padding: 11px 14px; }
  .sxt-ai-input {
    gap: 9px;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #fff;
  }
  .sxt-ai-input input {
    padding: 12px 14px;
    font-size: 16px;   /* iOS 小于 16px 聚焦会被强制放大整页 */
    -webkit-text-size-adjust: 100%;
  }
  .sxt-ai-input button { width: 44px; height: 44px; }
}
@supports (height: 100dvh) {
  @media (max-width: 580px) {
    .sxt-ai-panel { height: 78dvh; max-height: 78dvh; }
  }
}

/* ═══════════════════════════════════════════════════════════
   地图里「进入浏览」的按钮要醒目
   老板：地图里面，进入浏览的标签要明显一点
   ⚠️ #map 用的是 map3d.js/map3d.css，类名是 sxt-map-*（不是 local-map 的 slm-*）
   ═══════════════════════════════════════════════════════════ */

/* ① 「浏览XX名录 →」：原来是顶边一条线的透明文字链接，改成实心亮按钮 */
.sxt-map-browse {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #35e6ae 0%, #14c894 100%) !important;
  color: #04241d !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .3px !important;
  box-shadow: 0 4px 18px rgba(53, 230, 174, .38) !important;
  transition: transform .16s, box-shadow .16s, filter .16s !important;
}
.sxt-map-browse:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 8px 26px rgba(53, 230, 174, .55) !important;
  color: #04241d !important;
}
.sxt-map-browse:active { transform: translateY(0) !important; }
.sxt-map-browse svg { width: 16px !important; }

/* ② 底部地区芯片：未选中的提亮，选中的用亮绿描边 */
.sxt-map-region-nav > button {
  border-color: #35635c !important;
  color: #a6d2c2 !important;
  background: #0e2b34 !important;
  transition: background .16s, border-color .16s, color .16s, box-shadow .16s !important;
}
.sxt-map-region-nav > button span { color: #6fa596 !important; }
.sxt-map-region-nav > button:hover {
  background: #1a4f46 !important;
  color: #e8fff4 !important;
  border-color: #57c9a2 !important;
}
.sxt-map-region-nav > button:hover span { color: #9de0c4 !important; }
.sxt-map-region-nav > button[aria-pressed="true"],
.sxt-map-region-nav > button.is-active {
  background: #1f6355 !important;
  color: #f0fff8 !important;
  border-color: #4fe0b0 !important;
  box-shadow: 0 0 0 1px rgba(79, 224, 176, .45), 0 2px 12px rgba(79, 224, 176, .22) !important;
}
.sxt-map-region-nav > button[aria-pressed="true"] span,
.sxt-map-region-nav > button.is-active span { color: #b6f2d8 !important; }

/* ③ 选中的地区标题后面加个箭头，暗示可点 */
.sxt-map-region-title::after {
  content: ' →';
  font-size: .62em;
  color: #6fd3b0;
  opacity: .9;
}

/* ④ 右上「直接浏览名录」按钮加一点光 */
#content .primary-button {
  box-shadow: 0 4px 16px rgba(8, 127, 114, .28);
  transition: transform .16s, box-shadow .16s;
}
#content .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(8, 127, 114, .38);
}

/* ⑤ 同一套逻辑也给 local-map（手机上可能走这条）*/
.slm-selection > button[data-slm-browse] {
  margin-top: 12px !important;
  padding: 12px 14px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #35e6ae 0%, #14c894 100%) !important;
  color: #04241d !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(53, 230, 174, .38) !important;
}
.slm-selection > button[data-slm-browse]:hover {
  filter: brightness(1.06) !important;
  color: #04241d !important;
}

/* 先锋者卡片 · 进入专属 AI 会客厅（徐景安） */
.pc-enter{
  display:inline-flex;align-items:center;gap:7px;
  margin-top:16px;padding:10px 20px;border-radius:99px;
  background:linear-gradient(150deg,#0d7f79,#0a5f5b);color:#fff !important;
  font-size:13px;font-weight:600;text-decoration:none;
  box-shadow:0 8px 20px -10px rgba(13,127,121,.85);
  transition:transform .18s,box-shadow .18s;
}
.pc-enter:hover{transform:translateY(-2px);box-shadow:0 14px 28px -12px rgba(13,127,121,.95)}
.pc-enter svg{flex:0 0 auto}

/* ═══════════════════════════════════════════════════════════
   手机端：3D 地图卡只加大「点击面积」（2026-11-07 小d）
   ═══════════════════════════════════════════════════════════
   实测（iPhone 15，393 宽）：
     地图控制按钮 25x27px、地图标记 47x21px、地区标签 34px 高
     —— 都低于 44x44 的最小可点尺寸，手指容易点错。

   ⚠️ 试过放大字号：标题立刻变两行，跟上方的绝对定位统计块叠在一起，
      选中地区面板也被裁。这套地图卡是按固定字号排的绝对定位布局，
      动字号就散架。所以这里只动尺寸，不动字号。
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 580px) {
  .sxt-map-controls button,
  .sxt-map-toolbar button {
    min-width: 36px !important;
    min-height: 36px !important;
  }
  .sxt-map-controls { gap: 7px !important; }

  .sxt-map-zoom { right: 12px !important; gap: 8px !important; }
  .sxt-map-zoom button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
  }

  .sxt-map-marker {
    padding: 7px 10px !important;
    min-height: 34px;
    border-radius: 8px;
  }
  .sxt-map-marker-dot { width: 6px !important; height: 6px !important; }

  .sxt-map-region-nav > button { min-height: 36px; padding: 7px 11px; }

  /* 工具条换行：标题独占一行，按钮另起一行靠右
     原来标题和按钮并排，按钮从 25px 放大到 36px 后，
     标题区被挤到只剩 199px 宽，两行折行、压到统计块上。
     改成 wrap 后标题拿回整行宽度。 */
  .sxt-map-toolbar {
    top: 16px !important;
    left: 14px !important;
    right: 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .sxt-map-heading {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }
  /* 控制按钮改成右侧竖排，浮在地图上方、缩放按钮的上面
     原来它们换行后落在地图区，正好压住「北京」标记，点不到。 */
  .sxt-map-controls {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    display: grid !important;
    grid-auto-flow: row !important;
    gap: 7px !important;
    margin: 0 !important;
  }
  .sxt-map-heading { padding-right: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════
   手机端：名录页的点击区域（2026-11-07 小d）
   ═══════════════════════════════════════════════════════════
   实测（iPhone 15）：
     筛选 chip   36x26  —— 高度只有 26，手指容易点错
     收藏星标    27x33
     查看详情    70x18  —— 只有 18 高，几乎点不到
   全部放大到 32-40 的可点尺寸。
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 580px) {
  .chip {
    min-height: 32px;
    padding: 6px 13px;
    font-size: 13px;
    border-radius: 16px;
  }
  .card-star {
    width: 40px !important;
    height: 40px !important;
    display: grid;
    place-items: center;
  }
  .detail-link {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
  }
  /* 名录卡片上下留白也放宽，避免手指误触相邻卡 */
  .directory-list, .org-list { gap: 12px; }
}

/* ═══════════════════════════════════════════════════════════
   手机端：地图卡里的文字链接可点性（2026-11-07 小d）
   ═══════════════════════════════════════════════════════════
   「全国性组织 18」74x14、「其他地区 12」65x14、底图署名 46x7
   —— 高度只有 7-14px，手机上根本点不准。
   它们在地图卡内部用绝对定位排布，直接加高度会挤，所以用
   padding + 负 margin 的方式扩大热区，视觉位置不变。
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 580px) {
  .sxt-map-unlocated > button,
  .sxt-map-foot button,
  .sxt-map-more button,
  .sxt-map-footer button {
    padding: 8px 4px;
    margin: -4px 0;
    min-height: 28px;
  }
  .sxt-map-attribution {
    display: inline-block;
    padding: 8px 0;
    margin: -6px 0;
    min-height: 26px;
  }
  /* 页面底部那句「超级个体实验舱 · 独立部署」也加高一点 */
  footer a, .site-footer a {
    display: inline-block;
    padding: 6px 0;
  }
}
