/* ========================================
   移动端通用样式
   ======================================== */

/* === CSS Variables === */
:root {
  /* Fonts */
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-data: -apple-system, BlinkMacSystemFont, "Trebuchet MS", "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;

  /* Colors */
  --bg-primary: #2B57A5;
  --bg-secondary: #214381;
  --primary-color: #1A4FBE;
  --primary-dark: #1240A0;
  --secondary-blue: #6f89bf;
  --secondary-color: #19487f;
  --color-link: #1240A0;
  --text-dark: #333;
  --text-muted: #666;
  --text-gray: #838383;
  --text-light: #999;
  --border-color: #f0f2f5;
  --border-color-dark: #d3d3d3;
  --bg-light: #f4f5f9;
  --bg-white: #fff;
  --bg-gray: #f5f5f5;
  --bg-hover: #f0f0f0;
  --bg-gray-light: #f2f9ff;
  --bg-gray-th: #f5f7fa;
  --bg-gray-th-2: #f9f9f9;
  /* 次要元素激活态统一淡蓝底（分页当前页、次级切换选中等，替代填充主色反色块） */
  --active-bg-light: #e6f2ff;

  /* Sizes & Spacing */
  --header-height: 48px;
  --bottom-nav-height: 60px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  
  /* Border Radius */
  --border-radius: 4px;
  --border-radius-sm: 4px;
  --border-radius-md: 4px;
  --border-radius-lg: 8px;
  
  /* Shadows */
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  --bs-primary: #1A4FBE;
  --bs-primary-rgb: 0, 132, 255;
}

/* === Base Styles === */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* 会员身份 VIP 图标（主题色）：全站通用，与 PC common.css 的 .vip-badge-pro 同名同规格（共用 JS 弹窗消息两端才对得齐） */
.vip-badge-pro {
  font-size: 18px;
  color: var(--primary-color);
  vertical-align: -1px;
}

body.mobile-body {
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  background-color: var(--bg-light);
  font-family: var(--font-ui);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none !important;
  color: inherit;
}

.fs-12{
  font-size: 12px!important;
}

.fs-13{
  font-size: 13px!important;
}

.fs-14{
  font-size: 14px!important;
}

.mt-6 {
  margin-top: 6px !important;
}

.mobile-header-z {
  height: 48px;
}

.opacity-5{
  opacity: 0.5;
}

.opacity-6{
  opacity: 0.6;
}

.opacity-8{
  opacity: 0.8;
}

.badge{
  font-weight: 500!important;
}

.form-check .form-check-input{
  margin-left: 0;
}

.link-access {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-link);
  text-decoration: none;
}
.link-access .iconfont {
  font-size: 12px;
}
/* ========================================
  支付弹窗专用样式（紧凑版）
======================================== */

/* 弹层形态（全宽、贴底、圆角、把手、下滑关闭）一律由统一抽屉框架 .modal.bottom-sheet 提供，
   本段只管抽屉内部的内容排版，不再重写任何定位/动画（历史上那套 #pointsPayModal 私有抽屉已删）。
   抽屉高度由框架限到 85vh：头尾固定、中部滚动，条数再多也不会顶穿屏幕。

   🔴 手机端不是把 PC 弹窗缩窄：触控目标、字号、对齐方式、按钮形态都另有一套标准，
   下面每条与 PC(detail-consolidated.css) 的差异都是刻意的，勿照搬回去。 */
#pointsPayModal .pay-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
#pointsPayModal .pay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 16px 12px; border-bottom: 1px solid #E5E6EB; flex-shrink: 0; }
#pointsPayModal .pay-title { font-size: 16px; font-weight: 600; color: #1D2129; }
#pointsPayModal .pay-body { padding: 4px 16px 12px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
/* 底部动作区：手机端只留一个通栏主按钮，不描线 */
#pointsPayModal .pay-foot { padding: 4px 16px 16px; flex-shrink: 0; }

/* 信息行：标签定宽在左、值左对齐紧随其后（值统一从同一条竖线起排）；行高按手指尺度放松，字号 14px 起 */
#pointsPayModal .pay-kv { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid #F2F3F5; font-size: 14px; }
#pointsPayModal .pay-k { width: 42px; flex-shrink: 0; color: #86909C; line-height: 22px; }
#pointsPayModal .pay-v { flex: 1; min-width: 0; color: #1D2129; line-height: 22px; }
/* 付多少是手机支付的第一信息，必须一眼看到，不能与说明文字同一号 */
#pointsPayModal .pay-price { font-size: 20px; font-weight: 600; color: var(--primary-color); }

#pointsPayModal .pay-points { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; font-size: 14px; color: var(--text-muted); }
#pointsPayModal .pay-points b { color: var(--primary-color); font-weight: normal; }
/* 文字入口在手机上要有可点高度，不能只有几个字的热区 */
#pointsPayModal .pay-link { display: inline-block; padding: 6px 0; color: var(--primary-color); text-decoration: none; font-size: 14px; cursor: pointer; }

/* 主按钮通栏、48px 高：手指触控目标下限（iOS 44 / Android 48），不是 PC 的小圆角按钮靠右排 */
#pointsPayModal .pay-btn { display: block; width: 100%; height: 48px; padding: 0 16px; font-size: 16px; font-family: inherit; border-radius: 4px; border: 1px solid var(--border-color-dark); background: #fff; color: var(--text-muted); cursor: pointer; }
#pointsPayModal .pay-btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
#pointsPayModal .pay-btn:disabled { opacity: 0.6; }

/* 范围行：条数跟其它行的值一样左对齐，「查看明细」推到最右 */
#pointsPayModal .pay-scope-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
#pointsPayModal .pay-scope-line .pay-link { white-space: nowrap; }

/* 明细视图：与付款视图同一个抽屉，切视图而非叠第二层 modal */
#pointsPayModal .pay-detail-sum { font-size: 14px; color: var(--text-muted); padding: 12px 0 8px; }
#pointsPayModal .pay-detail-sum b { color: var(--primary-color); font-weight: 600; }
/* 滚动交给抽屉的 .pay-body 统一接管（框架限高 85vh），此处不再自套一层滚动窗 */
#pointsPayModal .pay-names { list-style: none; margin: 0; padding: 0 0 4px; }
#pointsPayModal .pay-names::-webkit-scrollbar { width: 3px; }
#pointsPayModal .pay-names::-webkit-scrollbar-thumb { background: var(--border-color-dark); border-radius: 2px; }
#pointsPayModal .pay-names::-webkit-scrollbar-track { background: transparent; }
#pointsPayModal .pay-names li { display: flex; gap: 10px; font-size: 14px; line-height: 22px; padding: 7px 0; color: #1D2129; border-bottom: 1px solid #F7F8FA; }
#pointsPayModal .pay-names li:last-child { border-bottom: none; }
/* 长名不截断不省略：付费前必须看清买的是什么 */
#pointsPayModal .pay-names li span:last-child { overflow-wrap: anywhere; min-width: 0; text-align: left; }
#pointsPayModal .pay-names .pay-name-i { width: 20px; flex-shrink: 0; text-align: right; color: #A9B0BC; font-variant-numeric: tabular-nums; }


/* 确认对话框按钮样式 */

.drawer-footer .btn-secondary {
  background-color: #f0f0f0;
  border-color: #d9d9d9;
  color: #666;
}

.drawer-footer .btn-secondary:hover {
  background-color: #e0e0e0;
  border-color: #bfbfbf;
  color: #333;
}

.drawer-footer .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.drawer-footer .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* === Mobile Header === */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: linear-gradient(135deg, #2B57A5 0%, #214381 100%);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 内页 header 布局：返回 → Logo → 搜索框（flex撑满）→ 菜单 */
.header-container {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 10px 0 4px;
}

/* 搜索页简洁导航：返回（左）+ Logo（绝对居中）+ 菜单（右） */
.header-container--simple {
  position: relative;
  justify-content: space-between;
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.logo-center img {
  height: 24px;
  width: auto;
}

.header-back-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 100%;
  cursor: pointer;
}
.header-back-btn .iconfont {
  font-size: 20px;
}

/* Logo（内页，紧跟返回按钮） */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 24px;
  width: auto;
}

/* 搜索框（撑满剩余空间） */
.header-search-bar {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0 12px;
  height: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.header-search-bar:active {
  background: rgba(255, 255, 255, 0.24);
}
.header-search-bar .iconfont {
  flex-shrink: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.header-search-placeholder {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 菜单按钮 */
.menu-toggle {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
}
.menu-toggle:active {
  opacity: 0.7;
}

.menu-toggle i {
  font-size: 18px;
}


/* 通用 logo 基础样式（首页 hero 内使用） */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 26px;
  width: auto;
}

/* 顶部紧凑搜索条（非首页） */
.mobile-detail-search {
  padding: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-detail-search .mobile-search-form {
  margin: 0;
}

.mobile-detail-search .search-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-detail-search .search-icon {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 6px;
  flex-shrink: 0;
}

.mobile-detail-search .mobile-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  background: transparent;
  color: #fff;
}

.mobile-detail-search .mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.mobile-detail-search .mobile-search-btn {
  border: none;
  border-radius: var(--border-radius-sm);
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.action-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}
.action-btn .iconfont {
  font-size: 22px;
}
/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  visibility: hidden;
  transition: visibility 0.3s;
}

.mobile-menu.active {
  visibility: visible;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.active .menu-overlay {
  opacity: 1;
}

.menu-content {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 66.67vw;
  background: white;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}

.mobile-menu.active .menu-content {
  transform: translateX(0);
}

.mobile-menu-user-info {
  padding: 28px var(--spacing-md) 24px;
  background: #2B57A5;
  position: relative;
  color: white;
}

.menu-user-login-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-prompt-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.login-prompt-icon .iconfont {
  font-size: 32px;
  color: #fff;
}

.login-prompt-text {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.login-prompt-btn {
  padding: 8px 28px;
  background: #fff;
  color: #2B57A5;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  display: inline-block;
}

.login-prompt-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

/* 已登录用户信息样式（整块可点击，作为会员中心入口） */
.menu-user-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.menu-user-arrow {
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.menu-user-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-user-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-user-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-user-name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

.menu-user-level {
  align-self: flex-start;
  padding: 1px 8px;
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
  font-size: 11px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255, 193, 7, 0.4);
  line-height: 1.4;
}

.menu-user-stats {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.menu-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  flex: 1;
  position: relative;
}

.menu-stat-item:active {
  opacity: 0.8;
}

.menu-stat-value {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.menu-stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.menu-nav {
  padding: var(--spacing-sm) 0;
  background: white;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px var(--spacing-md);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  position: relative;
  margin: 0 var(--spacing-sm);
  border-radius: 8px;
}

.menu-item span {
  flex: 1;
}

.menu-item-arrow {
  margin-left: auto;
  color: #C9CDD4;
  background: none !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  font-size: 13px !important;
}

.menu-divider {
  margin: 8px var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.menu-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: var(--primary-color);
  border-radius: 0 2px 2px 0;
  transition: height 0.2s;
}

.menu-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-item:active {
  background: rgba(26, 79, 190, 0.06);
}

.menu-item:active::before {
  height: 60%;
}

.menu-item:active .menu-item-arrow {
  color: #C9CDD4;
}

.menu-item-group {
  margin: 0;
}

.menu-item.menu-item-header {
  cursor: pointer;
}

.menu-item.menu-item-header .menu-item-arrow {
  transform: rotate(90deg);
  transition: transform 0.2s;
}

.menu-item-group.is-expanded .menu-item-header .menu-item-arrow {
  transform: rotate(-90deg);
}

.menu-sub {
  display: none;
}

/* === Mobile Footer === */
.mobile-footer {
  background: #001220;
  color: #999;
  padding: var(--spacing-lg) var(--spacing-md);
  font-size: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: #ccc;
}

.footer-links span {
  color: #666;
}

.footer-info p {
  margin: 4px 0;
  line-height: 1.5;
}

.footer-info .beian {
  color: #999;
}

/* === Bottom Navigation === */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.2s;
}

.mobile-bottom-nav .nav-item i {
  font-size: 22px;
  margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--primary-color);
}

/* === Toast Styles (与PC端框架风格保持一致) === */
/* Toast 容器样式 - 居中显示 */
#toastContainer {
  z-index: 9999 !important;
  pointer-events: none;
  align-items: center;
}

#toastContainer > * {
  pointer-events: auto;
}

/* Toast - 胶囊形，黑色半透明背景，白色文字 */
.toast {
  background: rgba(0, 0, 0, 0.75);
  border: none;
  border-radius: 100px;
  box-shadow: none;
  padding: 0;
  width: auto;
  max-width: 72vw;
  margin-bottom: 8px;
}

.toast-body {
  padding: 10px 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.toast.show {
  animation: toastFadeIn 0.2s ease;
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.85); }
}

.toast.hiding {
  animation: toastFadeOut 0.15s ease;
}

/* === Modal Styles (Mobile Optimized) === */
/* 移动端弹窗样式（与PC端风格保持一致，仅做移动端适配） */
/* H5页面始终按照移动端规范，不需要媒体查询 */

/* 视觉基准 = 积分支付弹窗 #pointsPayModal（见下方「支付弹窗专用样式」段）：
   1px 边框 + 4px 圆角、15px 标题、底部不描线不铺灰。与 PC common.css 同一套设计语言。
   🔴 别为单个弹窗另建 css 文件：站内 CSS 按 PC / 手机各一份公共表组织，
      另起文件只多一次 CDN 请求（按次计费）。 */

/* 表单、表格、配置项类弹窗：内容要横向空间，左右等距占满即可 */
.modal-dialog {
  margin: var(--spacing-md);
  max-width: calc(100% - 32px);
}

/* 确认框：内容只有一句话，撑满屏幕显得空，收到 80% 宽并居中。
   🔴 选择器必须带上 .modal-dialog 提高特异性，否则被上面那条同级规则盖掉 */
.modal-dialog.simple-confirm-dialog {
  max-width: 80vw;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
}

/* modal-lg 在移动端缩小 */
.modal-lg {
  max-width: calc(100% - 32px);
}

.modal-content {
  border: 1px solid var(--border-color-dark);
  border-radius: 4px;
  box-shadow: none;
}

.modal-header {
  border-bottom: 1px solid #E5E6EB;
  padding: 12px 16px;
  border-radius: 0;
}

.modal-header .modal-title {
  font-weight: 600;
  color: #1D2129;
  font-size: 15px;
}

.modal-body {
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: #4E5969;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 底部：不描线、不铺灰底；按钮通栏平分、44px 最小触摸高度——手机上单手可点是底线 */
.modal-footer {
  padding: 12px 16px;
  border-top: 0;
  background-color: transparent;
  border-radius: 0;
  flex-wrap: nowrap;
  gap: 12px;
}

.modal-footer > * {
  margin: 0;
}

.modal-footer .btn,
.modal-footer > button {
  flex: 1 1 0;
  min-height: 44px;
  padding: 6px 16px;
  font-weight: normal;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-footer .btn-secondary {
  background-color: #fff;
  border-color: var(--border-color-dark);
  color: #4E5969;
}

.modal-footer .btn-secondary:hover {
  background-color: #F6F7F9;
  border-color: var(--border-color-dark);
  color: #4E5969;
}

.modal-footer .btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.modal-footer .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.modal-footer .btn .iconfont {
  font-size: 0.875rem;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
  opacity: 0.5;
}

.modal-open {
  padding-right: 0 !important;
}

/* === 预测弹窗表单优化 === */
/* 移动端适配，保持PC端布局结构 */

/* 预测弹窗表单优化（移动端适配，保持PC端布局结构） */
/* 修复Bootstrap form-check-input的浮动导致超出问题 */
#forecastModal .form-check,
#housePriceRankingForecastDrawer .form-check,
#housePriceRankingForecastModal .form-check,
#rankingForecastModal .form-check {
  margin-bottom: 0;
  padding: 5px 0;
}

#forecastModal .form-check-input,
#rankingForecastModal .form-check-input {
  float: none !important; /* 移除Bootstrap的float */
  margin-left: 0 !important; /* 移除Bootstrap的负margin */
  margin-right: 8px; /* 使用正margin替代 */
  margin-top: 0.25em; /* 垂直对齐 */
  position: relative;
}

#forecastModal .form-check-label,
#rankingForecastModal .form-check-label {
  word-break: break-word;
  white-space: normal;
  min-width: 0; /* 允许flex子元素收缩 */
  margin-left: 0; /* 移除Bootstrap默认的margin-left */
  padding-left: 0;
}

#forecastModal .form-check-label .text-dark,
#rankingForecastModal .form-check-label .text-dark {
  white-space: normal;
  word-break: break-word;
}

#forecastModal .form-check-label .text-muted,
#rankingForecastModal .form-check-label .text-muted {
  white-space: normal;
  word-break: break-word;
  flex-shrink: 1; /* 允许描述文字收缩 */
}

/* 预测期数区域优化 */
#forecastModal .form-label {
  display: block;
  margin-bottom: 8px;
}

#forecastModal #forecast-period-tip {
  display: block;
  margin-top: 4px;
  width: 100%;
}

#forecastModal .d-flex.gap-3 {
  flex-wrap: wrap;
  gap: 8px !important;
}

#forecastModal .w-80 {
  flex: 1;
  min-width: 80px;
}

/* 全屏模态框（仅用于特殊场景） */
.modal-fullscreen-sm-down {
  margin: 0;
  max-width: 100%;
}

.modal-fullscreen-sm-down .modal-content {
  height: 100vh;
  border-radius: 0;
}

/* === Loading Styles === */
#globalLoadingContainer .modal-dialog {
  max-width: 200px;
}

/* === Button Styles === */
.btn-outline-primary{
  --bs-btn-color: var(--primary-dark);
  --bs-btn-border-color: var(--primary-dark);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--primary-dark);
  --bs-btn-active-border-color: var(--primary-dark);
}

/* === Form Styles (Mobile Optimized) === */
.form-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.form-range {
  width: 100%;
}

.form-check {
  padding: 10px 0;
}

.form-check-label {
  font-size: 14px;
  margin-left: 8px;
}

/* === Utility Classes === */

.text-primary {
  color: var(--primary-color) !important;
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* 防止菜单打开时body滚动 */
body.menu-open {
  overflow: hidden;
}

/* ======================================
   预测功能相关样式（与PC端风格保持一致）
   ====================================== */

/* 预测配置弹窗 */
#housePriceForecastModal .form-check-label,
#housePriceRankingForecastDrawer .form-check-label,
#housePriceRankingForecastModal .form-check-label,
#forecastModal .form-check-label,
#rankingForecastModal .form-check-label {
  width: 100%;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--border-radius-md);
  transition: background-color 0.2s ease;
}

#housePriceForecastModal .form-check-label:hover,
#housePriceRankingForecastDrawer .form-check-label:hover,
#housePriceRankingForecastModal .form-check-label:hover,
#forecastModal .form-check-label:hover,
#rankingForecastModal .form-check-label:hover {
  background-color: rgba(26, 79, 190, 0.05);
}

#housePriceForecastModal .form-check-input:checked + .form-check-label,
#housePriceRankingForecastDrawer .form-check-input:checked + .form-check-label,
#housePriceRankingForecastModal .form-check-input:checked + .form-check-label,
#forecastModal .form-check-input:checked + .form-check-label,
#rankingForecastModal .form-check-input:checked + .form-check-label {
  background-color: rgba(26, 79, 190, 0.1);
}

/* 预测进度显示 */
.forecast-progress-content {
  padding: 20px;
}

.forecast-progress-content .progress-bar {
  font-weight: 600;
  font-size: 14px;
}

/* 预测结果弹窗 */
#forecastResultModal .modal-dialog {
  max-width: 1200px;
}

#housePriceForecastModal .form-check-input,
#housePriceRankingForecastDrawer .form-check-input,
#housePriceRankingForecastModal .form-check-input,
#forecastModal .form-check-input,
#rankingForecastModal .form-check-input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

#housePriceForecastModal .form-check-input:checked,
#housePriceRankingForecastDrawer .form-check-input:checked,
#housePriceRankingForecastModal .form-check-input:checked,
#forecastModal .form-check-input:checked,
#rankingForecastModal .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#housePriceForecastModal .form-check-input:focus,
#housePriceRankingForecastDrawer .form-check-input:focus,
#housePriceRankingForecastModal .form-check-input:focus,
#forecastModal .form-check-input:focus,
#rankingForecastModal .form-check-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#housePriceForecastModal .cursor-pointer,
#housePriceRankingForecastDrawer .cursor-pointer,
#housePriceRankingForecastModal .cursor-pointer,
#forecastModal .cursor-pointer,
#rankingForecastModal .cursor-pointer {
  cursor: pointer;
}

/* ===== 头部右侧「数据操作」入口按钮（全站公共，channel/fangjia 页通用）===== */
.header-ops-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s;
}
.header-ops-btn:active { opacity: 0.7; }
.header-ops-btn .iconfont { font-size: 11px; }

/* ===== 预测结果通知条（全站公共，供所有有预测功能的移动页面使用）===== */
.forecast-alert-content-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.forecast-alert-text-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.forecast-alert-actions-mobile {
  display: flex;
  gap: 8px;
}

.forecast-alert-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border-color-dark);
  background: #fff;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.15s;
}

.forecast-alert-action-btn.primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.forecast-alert-action-btn.primary:hover {
  background: var(--primary-color);
  color: #fff;
}

.forecast-alert-action-btn:hover {
  border-color: var(--text-light);
  color: var(--text-dark);
}

#housePriceForecastModal .form-range::-webkit-slider-thumb, #forecastModal .form-range::-webkit-slider-thumb {
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#housePriceForecastModal .form-range::-moz-range-thumb, #forecastModal .form-range::-moz-range-thumb {
  background: #0d6efd;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#housePriceForecastModal .modal-content, #forecastModal .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 底部抽屉式 Modal（通用） ===== */
.modal.bottom-sheet {
    padding-right: 0 !important;
}

.modal.bottom-sheet .modal-dialog {
    position: fixed;
    margin: 0;
    width: 100%;
    height: auto;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1056;
}

.modal.bottom-sheet.show .modal-dialog {
    transform: translateY(0);
}

.modal.bottom-sheet .modal-content {
    border-radius: 6px 6px 0 0;
    border: none;
    height: auto;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #f6f6f6;
}

.modal.bottom-sheet .modal-body {
    overflow-y: auto;
}

/* 拖动把手（由 mobile-common.js 自动注入） */
.bs-drawer-handle {
    width: 36px;
    height: 4px;
    background: #C9CDD4;
    border-radius: 2px;
    margin: 12px auto 4px;
    flex-shrink: 0;
}

/* ===== 整行点击跳转（配合 mobile-common.js 的 [data-row-url] 委托） ===== */
[data-row-url] { cursor: pointer; }
tr[data-row-url]:active { background: #f5f7fa; }

/* ===== Action Sheet 列表（抽屉内通用，白色卡片浮于 #f6f6f6 底色上） ===== */
.action-sheet-list {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.action-sheet-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 12px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 15px;
    color: var(--text-dark);
    font-family: var(--font-ui);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.action-sheet-item.active {
  background: #EBF0FB;
  color: var(--primary-color);
  font-weight: 500;
}

.action-sheet-item.active::after {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2 6l3 3 5-5-1.4-1.4L5 6.2 3.4 4.6z'/%3E%3C/svg%3E") center/10px no-repeat;
  flex-shrink: 0;
  margin-left: auto;
}

.action-sheet-item:last-child {
    border-bottom: none;
}

.action-sheet-item:active {
    background: var(--bg-light);
}

.action-sheet-item > .iconfont:first-child {
    font-size: 20px;
    color: var(--primary-color);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.action-sheet-item > span {
    flex: 1;
}

.action-sheet-arrow {
    font-size: 14px;
    color: var(--text-light);
    flex-shrink: 0;
}

/* ===== ActionPicker 触发器按钮（替代原生 <select>）===== */
.ap-trigger {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: #fff;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
    transition: border-color 0.15s ease;
}
.ap-trigger:active {
    border-color: var(--primary-color);
    background: #f8f9fa;
}
.ap-trigger-arrow {
    font-size: 12px;
    color: var(--text-light);
    transition: transform 0.2s;
}
/* ===== 底部抽屉内容：图标网格布局 ===== */
/* 主要操作行：2 列 */
.drawer-grid-primary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}

/* 次要操作行：3 列（6 项 = 2 行 × 3 列） */
.drawer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 8px;
}

.drawer-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px 0;
    color: var(--text-dark);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-ui);
}

.drawer-grid-item:active .drawer-icon-box {
    background: #e6ebf5;
}

.drawer-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.drawer-icon-box .iconfont {
    font-size: 22px;
    color: var(--primary-color);
}

/* ===== Bootstrap Modal 自定义遮罩层（通用） ===== */

/* === 预测弹窗表单优化 === */
/* 移动端适配，保持PC端布局结构 */

/* 预测弹窗表单优化（移动端适配，保持PC端布局结构） */
/* 修复Bootstrap form-check-input的浮动导致超出问题 */

/* 预测期数区域优化 */

/* 全屏模态框（仅用于特殊场景） */

/* === Loading Styles === */

/* === Button Styles === */

/* === Form Styles (Mobile Optimized) === */

/* === Utility Classes === */

/* 防止菜单打开时body滚动 */

/* ======================================
   预测功能相关样式（与PC端风格保持一致）
   ====================================== */

/* 预测配置弹窗 */

/* 预测进度显示 */

/* 预测结果弹窗 */

@keyframes modalSlideIn {
}

/* ===== 底部抽屉式 Modal（通用） ===== */

/* ===== Bootstrap Modal 自定义遮罩层（通用） ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1054; /* 在 Bootstrap Modal 下方 (Modal 默认 z-index 是 1055) */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top-btn {
    position: fixed;
    right: 16px;
    bottom: 160px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: #2B57A5;
    border-color: #2B57A5;
    box-shadow: 0 4px 16px rgba(43, 87, 165, 0.3);
}

.back-to-top-btn:hover .iconfont {
    color: #fff;
}

.back-to-top-btn .iconfont {
    font-size: 18px;
    color: #2B57A5;
    transition: color 0.3s;
}

.back-to-top-btn:active {
    transform: scale(0.95);
}

/* === 操作按钮条（移动端） === */
.mobile-action-bar {
  background: #f8f9fa;
  padding: 15px 12px;
  display: flex;
  gap: 6px;
}

.mobile-action-bar .btn {
  flex: 1;
  font-size: 13px;
  padding: 5px;
  border-radius: var(--border-radius-md);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-action-bar .btn-outline-secondary {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.mobile-action-bar .btn-primary {
  background: #1240A0;
  color: #fff;
}

/* === 图表锁定覆盖层 === */
.chart-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.chart-lock-overlay .lock-content {
  background: rgba(255, 255, 255);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 2px;
  color: #1240A0;
  border: 1px solid #1969c9;
}

/* ========================================
   频道切换标签组件（通用）
   ======================================== */

/* ===== 频道切换标签 ===== */
.channel-tabs-mobile {
    padding-top: 0;
    border-top: none;
    position: relative;
    background-color: #ffffff;
}

.channel-tabs-wrapper-mobile {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.channel-tabs-wrapper-mobile::-webkit-scrollbar {
    display: none;
}

/* 右侧渐变遮罩 - 提示用户可以滑动 */
.channel-tabs-mobile::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, rgba(245, 246, 248, 0), rgba(255, 255, 255, 0.95));
    pointer-events: none;
    border-radius: 0 6px 6px 0;
    opacity: 1;
    transition: opacity 0.3s;
}

/* 当滚动到最右侧时，隐藏渐变遮罩 */
.channel-tabs-mobile.scrolled-end::after {
    opacity: 0;
}

.channel-tab-mobile {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 0 !important;
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
    margin-bottom: -1px;
}

.channel-tab-mobile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.2s;
}

.channel-tab-mobile:hover {
    color: var(--primary-color);
    background: transparent;
}

.channel-tab-mobile:hover::after {
    width: 50%;
}

.channel-tab-mobile.active {
    background: transparent;
    color: var(--primary-color);
    z-index: 1;
}

.channel-tab-mobile.active::after {
    width: 50%;
}

.channel-tab-more-mobile {
    position: relative;
}

.channel-tab-more-mobile .more-trigger {
    color: #2B57A5;
    background: rgba(43, 87, 165, 0.05);
}

.channel-dropdown-mobile {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    min-width: 90px;
    z-index: 100;
    display: none;
    overflow: hidden;
}

.channel-tab-more-mobile:hover .channel-dropdown-mobile,
.channel-tab-more-mobile.show .channel-dropdown-mobile {
    display: block;
}

.channel-dropdown-item-mobile {
    display: block;
    padding: 10px 14px;
    color: #444;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
    transition: all 0.15s;
}

.channel-dropdown-item-mobile:last-child {
    border-bottom: none;
}

.channel-dropdown-item-mobile:hover {
    background: #f8f9fa;
}

.channel-dropdown-item-mobile.active {
    background: #f0f6ff;
    color: #2B57A5;
    font-weight: 500;
}

/* 小屏幕响应式调整 */
@media (max-width: 375px) {
    .channel-tab-mobile {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* ========================================
   相关数据卡片组件（通用）
   ======================================== */

.related-card {
    background: #fff;
    overflow: hidden;
}

.related-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
}

.related-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.related-item:last-child {
    border-bottom: none;
}

.related-item:active {
    background-color: rgba(26, 79, 190, 0.05);
}

.related-item-checkbox {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-item-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    margin: 0;
}

.related-link {
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-item-meta span {
    white-space: nowrap;
}

/* 响应式优化 */
@media (max-width: 375px) {
    .related-item {
        padding: 12px 14px;
    }
    
    .related-item-title {
        font-size: 14px;
    }
    
    .related-item-meta {
        font-size: 11px;
    }
}

.data-actions-mobile {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
}

.action-group-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.action-group-mobile input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.action-group-mobile label {
  cursor: pointer;
  margin: 0;
  user-select: none;
}

.action-btns-mobile {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}

/* ===== 相关数据 ===== */

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

.filter-options-mobile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-select-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-select-mobile label {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.filter-select-mobile .form-select {
  flex: 1;
  font-size: 13px;
}

.filter-trigger-mobile {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}

.filter-trigger-mobile .iconfont {
  font-size: 11px;
}

.related-data-list-mobile {
  margin-top: 16px;
}

.more-link-mobile {
  color: #2B57A5;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  align-self: flex-end;
}

.more-link-mobile:hover {
  color: #1a3d6d;
}

.more-link-mobile .iconfont {
  font-size: 12px;
}

/* ========================================
   区域功能导航（移动端）
   ======================================== */

/* 功能导航按钮条 - 统一样式 */
.region-feature-nav-mobile {
  background: #f8f9fa;
  padding: 15px 12px;
  display: flex;
  gap: 6px;
}

.feature-nav-btn {
  flex: 1;
  font-size: 13px;
  padding: 5px;
  border-radius: var(--border-radius-md);
  border: none;
  background: #fff;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #ddd;
}

.feature-nav-btn.active {
  background: #1240A0;
  color: #fff;
  border-color: #1240A0;
}

.feature-nav-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* 功能内容区 */
.feature-content {
  display: none;
  background: #fff;
  padding: 16px;
  margin-bottom: 10px;
}

.feature-content.active {
  display: block;
}

/* 功能区块专用标题（减少内边距） */
.feature-section-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.feature-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* === 子区域导航（移动端） === */
.sub-region-nav-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sub-region-link-mobile {
  display: block;
  padding: 10px 8px;
  background: #f8f9fa;
  border-radius: var(--border-radius-md);
  color: #495057;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-region-link-mobile:active {
  background: #2B57A5;
  color: white;
  transform: scale(0.98);
}

/* === 区域对比（移动端） === */
.region-compare-links-mobile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.region-compare-link-mobile {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: #1240A0;
  text-decoration: none;
  line-height: 1.5;
  word-break: break-word;
  border-radius: var(--border-radius-sm);
  transition: all 0.2s ease;
}

.region-compare-link-mobile:active {
  background: rgba(43, 87, 165, 0.1);
  color: #2B57A5;
}

.compare-action-mobile {
  margin-top: 12px;
  padding-top: 12px;
}

.compare-action-mobile .btn {
  font-size: 14px;
  padding: 8px 16px;
}

/* === 地图看数据占位（移动端） === */
.map-placeholder-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #999;
}

.map-placeholder-mobile .iconfont {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 12px;
}

.map-placeholder-mobile p {
  margin: 0;
  font-size: 14px;
}

/* === 热点排行榜（移动端） === */
.ranking-tabs-mobile {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.ranking-tabs-mobile::-webkit-scrollbar {
  display: none;
}

.ranking-tab-mobile {
  flex-shrink: 0;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #666;
  font-size: 13px;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* UI规范：禁止色块背景，激活态用文字色 + 边框表达 */
.ranking-tab-mobile.active {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
}

.ranking-tab-mobile:active {
  transform: scale(0.95);
}

.ranking-content-mobile {
  position: relative;
}

.ranking-panel-mobile {
  display: none;
}

.ranking-panel-mobile.active {
  display: block;
}

.ranking-list-mobile {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-item-mobile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.ranking-item-mobile:active {
  background: #f0f0f0;
}

.rank-badge-mobile {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #bfbfbf;
}

.rank-content-mobile {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rank-name-mobile {
  flex: 1;
  min-width: 0;
}

.rank-name-mobile a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-name-mobile a:active {
  color: #2B57A5;
}

.rank-value-wrapper-mobile {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rank-value-mobile {
  font-size: 15px;
  color: var(--text-dark);
}

.rank-unit-mobile {
  font-size: 12px;
  color: #999;
}

.ranking-empty-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #999;
}

.ranking-empty-mobile .iconfont {
  font-size: 48px;
  color: #ddd;
  margin-bottom: 12px;
}

.ranking-empty-mobile p {
  margin: 0;
  font-size: 14px;
}

/* 小屏幕优化 */
@media (max-width: 375px) {
  .sub-region-nav-mobile {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  .sub-region-link-mobile {
    padding: 8px 6px;
    font-size: 12px;
  }
  
  .region-compare-links-mobile {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .region-compare-link-mobile {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .feature-nav-btn {
    font-size: 12px;
    padding: 4px;
  }
  
  .ranking-item-mobile {
    padding: 8px;
    gap: 10px;
  }
  
  .rank-badge-mobile {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  
  .rank-name-mobile a {
    font-size: 13px;
  }
  
  .rank-value-mobile {
    font-size: 14px;
  }
}

/* === 面包屑导航 === */
.breadcrumb {
  background: #fff;
  padding: 10px 15px;
  font-size: 12px;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #333;
}

/* 移动端表格样式 - 顶级样式类 */
/* === 统一数据表格（data-table）===
 * 与 PC common.css 保持结构一致，移动端保留数据字体等专属规则。
 */
.data-table {
  min-width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

.data-table a {
  color: var(--color-link);
}

/* 共用规则：th + td 同步 PC border: 1px solid #eee 网格风格 */
.data-table th, .data-table td {
  min-width: 100px; /* 列宽地板：防 auto 布局把短内容列挤扁（与小程序 160rpx 对齐） */
  max-width: 200px;
  padding: 8px;
  font-size: 14px;
  text-align: center;
  border: 1px solid #eee;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table th {
  background: var(--bg-gray-th-2);
  color: #4A5568;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: sticky;
  top: -1px;
  z-index: 99;
}

/* 列头指向数据单页的链接：外观仍是列头（不染链接色、不加粗），只在按压时轻微加深 */
.data-table th .th-data-link {
  color: inherit;
  text-decoration: none;
}

.data-table th .th-data-link:active {
  color: #2d3748;
}

/* 移动端专属：数据列等宽字体 + 数字对齐 */
.data-table td {
  color: var(--text-dark);
  font-family: var(--font-data);
  font-feature-settings: "tnum" on, "lnum" on;
  transition: background-color 0.15s ease;
}

/* 名称列恢复 UI 字体 */
.data-table td:first-child {
  font-family: var(--font-ui);
}

.data-table th:first-child {
  z-index: 101 !important;
}

.data-table tbody tr:hover td {
  background-color: #f0f4fa;
}



/* 固定表头（需额外追加 .data-table-fixed-header 类） */
.data-table-fixed-header th {
  position: sticky;
  top: -1px;
  z-index: 10;
  color: #333;
  background-color: var(--bg-gray-th-2);
}

/* 固定首列（与 PC 对齐，z-index: 9） */
.sticky-column {
  position: sticky !important;
  left: -1px;
  z-index: 100 !important;
  background-color: #ffffff;
}

/* 固定表头 + 固定首列交叉单元格 */
.data-table-fixed-header th.sticky-column {
  z-index: 11;
}

/* 列宽辅助类（与 PC 对齐） */
.year-column, .index-column, .period-column {
  min-width: 80px !important;
  max-width: 100px !important;
}

.unit-label {
  font-weight: 500 !important;
  font-size: 12px;
  color: #666;
}

/* 锁定单元格链接 */
.data-table .link-access {
  color: var(--primary-color) !important;
  font-family: var(--font-ui);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* ========================================
   移动端数据表格（适配 common.js 框架）
   采用卡片列表视觉效果
   ======================================== */

.mobile-data-table {
  background: #fff;
  overflow: hidden;
}

.mobile-data-table .ntable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-height: 80px;
}

/* 表格行转换为卡片样式 */
.mobile-data-table .ntable tbody tr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

.mobile-data-table .ntable tbody tr:last-child {
  border-bottom: none;
}

.mobile-data-table .ntable tbody tr:active {
  background-color: rgba(26, 79, 190, 0.05);
}

/* 复选框列 - 左侧固定 */
.mobile-data-table .ntable td.w-60 {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
}

.mobile-data-table .ntable td.w-60 input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
  margin: 0;
}

/* 数据标题列 - 占据主要空间 */
.mobile-data-table .ntable td.data-title-col {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.mobile-data-table .ntable .title-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* 数据名称 */
.mobile-data-table .ntable .data-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.mobile-data-table .ntable .title-link:active .data-name {
  color: var(--primary-color);
}

/* 数据元信息（时间范围 + 单位） */
.mobile-data-table .ntable .data-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-data-table .ntable .data-meta span {
  white-space: nowrap;
}

/* 数据表格操作栏（独立于表格外） */
.data-table-actions {
  padding: 12px var(--spacing-md);
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.data-table-actions .btn {
  font-size: 14px;
  padding: 5px 12px;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
}

.data-table-actions .btn-outline-primary {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.data-table-actions .btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.data-table-actions .btn-outline-secondary:hover,
.data-table-actions .btn-outline-secondary:active,
.data-table-actions .btn-outline-secondary:focus {
  background: transparent;
  border-color: #6c757d;
  color: #6c757d;
  box-shadow: none;
}

.data-table-actions .link-color {
  color: var(--primary-dark);
  text-decoration: none;
  margin-left: auto; /* 查看更多链接推到右侧（替代float-end） */
}

.data-table-actions input[type="checkbox"]#chkall {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
  vertical-align: middle;
}

.data-table-actions label[for="chkall"] {
  cursor: pointer;
  margin: 0;
  user-select: none;
  font-size: 13px;
  vertical-align: middle;
}

/* 小程序模式：优化布局 */
.mobile-data-table.mini-mode .ntable tbody tr {
  padding: 12px 14px;
}

.mobile-data-table.mini-mode .ntable .data-name {
  font-size: 14px;
}

.mobile-data-table.mini-mode .ntable .data-meta {
  font-size: 11px;
}

/* 小屏幕优化 */
@media (max-width: 375px) {
  .mobile-data-table .ntable tbody tr {
    padding: 12px 14px;
  }
  
  .mobile-data-table .ntable .data-name {
    font-size: 14px;
  }
  
  .mobile-data-table .ntable .data-meta {
    font-size: 11px;
  }
  
  .mobile-data-table .ntable tbody tr:last-child td .btn {
    font-size: 11px;
    padding: 4px 8px;
  }
}

/* ========================================
   分页
   ======================================== */

.pagination-mobile {
  width: 100%;
  padding: 20px 16px;
  background: #fff;
}

.pagination-info-mobile {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.pagination-controls-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pagination-btn-mobile {
  padding: 8px 16px;
  background: #f8f9fa;
  border-radius: var(--border-radius-md);
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.pagination-btn-mobile:active {
  background: #e9ecef;
}

.pagination-btn-mobile.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-current-mobile {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

/* ========================================
   批量查看全屏弹窗样式（移动端适配）
   ======================================== */

/* 全屏弹窗背景 */
.fullscreen-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-modal.open {
  opacity: 1;
  visibility: visible;
}

/* 弹窗内容容器 - 移动端全屏显示 */
.fullscreen-modal-content {
  background-color: #fff;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.fullscreen-modal.open .fullscreen-modal-content {
  transform: translateY(0);
}

/* 弹窗头部 - 移动端优化 */
.fullscreen-modal-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.fullscreen-modal-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fullscreen-modal-header .modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fullscreen-modal-header .modal-actions .btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: var(--border-radius-md);
  white-space: nowrap;
}

/* 弹窗主体 - 移动端优化 */
.fullscreen-modal-body {
  flex: 1;
  overflow: hidden;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* 表格容器 - 滚动容器 */
.fullscreen-modal-body .data-table-container {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border: none;
  border-radius: 0;
  background-color: #fff;
  min-height: 0;
}

/* 弹窗底部 - 移动端优化 */
.fullscreen-modal-footer {
  padding: 12px 16px;
  background-color: #f8f9fa;
  text-align: center;
  border-top: 1px solid #e5e5e5;
  flex-shrink: 0;
}

.fullscreen-modal-footer .text-muted {
  font-size: 12px;
  color: #6c757d;
}

/* 批量查看表格容器样式 - 移动端优化 */
.batch-view-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.batch-view-table-wrapper {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
  min-height: 0;
}

/* 小屏幕优化 */
@media (max-width: 375px) {
  .fullscreen-modal-header {
    padding: 10px 12px;
  }
  
  .fullscreen-modal-header h5 {
    font-size: 15px;
  }
  
  .fullscreen-modal-header .modal-actions .btn {
    padding: 5px 10px;
    font-size: 12px;
  }

}

/* ========================================
   宏观数据地图样式（移动端）
   ======================================== */

/* ==================== 地图容器主区域 ==================== */
.map-view-section-mobile {
    background: #fff;
    padding: 16px;
    margin-bottom: 12px;
}

/* ==================== 地图头部 ==================== */
.map-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.map-title-mobile {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.map-controls-mobile {
    flex: 0 0 auto;
    margin-left: 12px;
}

#mapDataSelector {
    min-width: 150px;
    max-width: 200px;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-md);
    background-color: #fff;
    color: #333;
}

#mapDataSelector:focus {
    border-color: #1890ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

/* ==================== 地图容器 ==================== */
.map-container-mobile {
    width: 100%;
    height: 480px;
    position: relative;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

/* 响应式高度调整 */
@media (min-width: 768px) {
    .map-container-mobile {
        height: 500px;
    }
}

@media (max-width: 375px) {
    .map-container-mobile {
        height: 350px;
    }
}

/* ==================== 地图加载状态 ==================== */
/* ===== 地图加载提示 ===== */
.map-loading-pc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.map-loading-pc .spinner-border {
  width: 2rem;
  height: 2rem;
  color: #2B57A5;
}

.map-loading-pc p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* 数据地图工作台 canvas 内占位（index-map.js 写入 .hm-loading/.hm-empty；移动端未引 map-channel.css 须在此居中） */
#homeMapCanvas .hm-loading,
#homeMapCanvas .hm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--text-muted, #999);
  font-size: 13px;
  text-align: center;
  line-height: 2;
}
/* 会员闸/解锁按钮（与 map-channel.css 同款；移动端未引 map-channel.css） */
#homeMapCanvas .map-buy-btn {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 20px;
  border: none;
  border-radius: var(--border-radius-md, 4px);
  background: var(--primary-color, #1A4FBE);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
#homeMapCanvas .map-buy-btn:active {
  background: #1240A0;
}
#homeMapCanvas .hm-buy-alt {
  color: var(--text-muted, #999);
  font-size: 12px;
  text-decoration: none;
}
#homeMapCanvas .hm-loading::before {
  content: '';
  width: 32px;
  height: 32px;
  border: 3px solid #e9ecef;
  border-top-color: var(--primary-color, #1A4FBE);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
  margin-bottom: 12px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.map-loading-mobile p,
.map-error-mobile p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* ==================== 地图图例说明 ==================== */
.map-legend-mobile {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.legend-title {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: var(--border-radius-sm);
    margin-right: 6px;
}

/* ==================== ECharts 覆盖样式 ==================== */
.map-container-mobile canvas {
    max-width: 100% !important;
    max-height: 100% !important;
}

/* 调整 ECharts tooltip 在移动端的显示 */
.map-container-mobile .echarts-tooltip {
    max-width: 80vw;
    font-size: 13px;
}

/* ==================== 动画效果 ==================== */
.map-view-section-mobile {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 深色模式适配（可选） ==================== */
@media (prefers-color-scheme: dark) {
    .map-view-section-mobile {
        background: #1f1f1f;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .map-header-mobile {
        border-bottom-color: #333;
    }
    
    .map-title-mobile {
        color: #e0e0e0;
    }
    
    #mapDataSelector {
        background-color: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .map-container-mobile {
        background: #2a2a2a;
    }
    
    .map-legend-mobile {
        border-top-color: #333;
    }
    
    .legend-title {
        color: #999;
    }
}

/* ==================== 小屏幕适配 ==================== */
@media (max-width: 480px) {
    .map-view-section-mobile {
        border-radius: 0;
        margin-bottom: 12px;
        padding: 12px;
    }
    
    .map-header-mobile {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .map-controls-mobile {
        margin-left: 0;
        width: 100%;
    }
    
    #mapDataSelector {
        width: 100%;
        max-width: 100%;
    }
    
    .map-container-mobile {
        border-radius: var(--border-radius-md);
    }
}

/* ==================== 横屏适配 ==================== */
@media (orientation: landscape) and (max-height: 500px) {
    .map-container-mobile {
        height: 80vh;
    }
}

/* ==================== 地图 Modal 抽屉样式 ==================== */
.map-modal-fullheight .modal-content {
    max-height: 92vh !important;
    height: 92vh;
}

.map-modal-fullheight .modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 !important;
}

.map-modal-fullheight .map-container-mobile {
    flex: 1;
    height: auto;
    min-height: 400px;
    margin-bottom: 0;
}

.map-modal-fullheight .map-controls-mobile {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.map-modal-fullheight .map-controls-mobile .form-label {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: 14px;
    color: #666;
}

.map-modal-fullheight .map-controls-mobile .form-select {
    flex: 1;
    max-width: 200px;
}

.map-modal-fullheight .map-note-mobile {
    flex-shrink: 0;
    padding: 12px 16px;
    background: #fafafa;
    border-top: 1px solid #e9ecef;
}

/* 地图 Modal 内的选择器样式优化 */
#mapModal #mapDataSelector {
    font-size: 14px;
    padding: 8px 12px;
}

/* 防止地图拖拽与页面滚动冲突 */
#mapModal .modal-body {
    touch-action: none;
    -webkit-overflow-scrolling: auto;
}

#mapModal .map-container-mobile {
    touch-action: pan-x pan-y;
}

/* 横屏模式下的地图 Modal */
@media (orientation: landscape) {
    .map-modal-fullheight .modal-content {
        max-height: 95vh !important;
        height: 95vh;
    }
}

/* =========================================
   全局 H5 底部操作与切换类组件 (Bottom Actions & Switchers)
   ========================================= */

/* 1. 底部纯净文字链动作按钮 */
.minimal-load-more {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 16px 20px;
  transition: color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.minimal-load-more:hover {
  color: var(--text-dark);
}

/* 2. 左右分离式面板切换组 */
.widget-btns-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-white);
}

.widget-btns-split .switch-link {
  color: var(--text-muted);
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.widget-btns-split .switch-link::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background: url("https://cdn.gotohui.com/static/ico/qiehuan.png") no-repeat center center;
  background-size: contain;
}

.widget-btns-split .minimal-load-more {
  margin: 0;
  width: auto;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
}

/* 全屏入口：左侧 iconfont 展开图标（与小程序/PC 首页同口径） */
.widget-btns .btn-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================
   全局数据宽表组件 (Data Board Scroll)
   ========================================= */
.data-board-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.data-board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: 13px;
  color: var(--text-dark);
}

.data-board-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-board-table th {
  padding: 10px 8px;
  min-width: 60px;
  text-align: right;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  background: #f8fafc;
  font-size: 12px;
}

.data-board-table.text-center th,
.data-board-table.text-center td {
  text-align: center !important;
}

.data-board-table th:first-child {
  text-align: left;
}

.data-board-table th.sticky-col {
  position: sticky;
  left: 0;
  background: #f8fafc;
  z-index: 11;
}

.data-board-table td {
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-data);
  font-feature-settings: "tnum";
  font-feature-settings: "tnum" on, "lnum" on;
  line-height: 1.4;
  border-bottom: 1px solid var(--border-color);
}

.data-board-table td.text-center {
  text-align: center;
}

.data-board-table td.sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 9;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-ui);
  font-variant-numeric: normal;
  font-weight: 500;
  color: var(--text-dark);
}

.data-board-table tbody tr:last-child td {
  border-bottom: none;
}

/* =========================================
   全局社区资讯信息流组件 (Community / Bloomberg News)
   ========================================= */
.community-container {
  padding: 0;
}

.community-list {
  display: flex;
  flex-direction: column;
}

.bloomberg-news-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease;
  text-decoration: none;
}

.bloomberg-news-item:last-child {
  border-bottom: none;
}

.bloomberg-news-item:active {
  background: #f8f9fa;
}

.bloomberg-time {
  font-family: var(--font-data, monospace);
  font-size: 13px;
  color: #86909C;
  white-space: nowrap;
  line-height: 1.4;
  margin-top: 1px;
}

.bloomberg-news-item .community-content {
  flex: 1;
  min-width: 0;
}

.bloomberg-news-item .community-title {
  font-family: var(--font-ui);
  font-size: 14px;
  color: #000000;
  line-height: 1.4;
  margin: 0 0 4px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bloomberg-news-item .community-summary {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================
   全局图表切换按钮组件 (btn-pro)
   来源: detail-consolidated.css，迁入供移动端共用
   ========================================= */
.btn-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 手机端最小点击区：PC 的 26px 紧凑高度在手机上按不准，统一抬到 32px */
  min-height: 32px;
  padding: 4px 10px;
  font-size: 13px;
  color: #4A5568;
  background-color: transparent;
  border: 1px solid #E2E8F0;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pro:hover {
  background-color: #F7FAFC;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-pro.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.btn-pro .iconfont {
  font-size: 13px;
  margin-right: 3px;
}

.btn-pro-divider {
  width: 1px;
  height: 14px;
  background-color: #E2E8F0;
  flex-shrink: 0;
}

/* 抽屉里的 btn-pro 一律撑到 44px 点击区（PC 的紧凑尺寸在手机上点不准）；
   一处收口，所有 .bottom-sheet 内的操作按钮共用，各页不要再自己写高度 */
.modal.bottom-sheet .btn-pro {
  min-height: 44px;
  font-size: 15px;
}

/* 主次两档变体，口径同 PC（detail-consolidated.css / channel.css）。
   🔴 必须写成 .btn-pro.btn-pro-xxx 组合选择器，不能裸挂变体类：
   首页房价分段按钮（mobile/index/index.html 的县级/市区）历史上就带着 btn-pro-outline
   这个当时无定义的空 class，裸类一进全站公共样式就会给它加三面边框+圆角，把分段条画裂。 */
.btn-pro.btn-pro-action {
  border-color: #E2E8F0;
  background-color: #fff;
}

.btn-pro.btn-pro-action:hover {
  border-color: var(--primary-color);
  background-color: #fff;
}

/* CTA（预测等）：默认与普通操作同款，仅按下/hover 才高亮，不默认反色 */
.btn-pro.btn-pro-action-hover {
  border-color: #E2E8F0;
  background-color: #fff;
}

.btn-pro.btn-pro-action-hover:hover {
  border-color: var(--primary-color);
  background-color: #fff;
}

.btn-pro.btn-pro-outline {
  background: transparent;
  border: 1px solid #C9CDD4;
  color: #4A5568;
  border-radius: var(--border-radius-sm);
}

.btn-pro.btn-pro-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #F0F4FB;
}
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.more-link {
  font-size: 13px;
  color: #8c9aaf;
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}

.more-link i {
  font-size: 12px;
}

/* =========================================
   图表类型切换器 - 极简文字 Tab (Chart Type Links)
   ========================================= */
.chart-type-links {
  display: flex;
  align-items: center;
  padding: 10px 0 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
}

.chart-type-link {
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 4px 12px 8px;
  margin-bottom: -1px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-ui);
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.chart-type-link:hover {
  color: var(--primary-color);
}

.chart-type-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.chart-type-link.chart-save-link {
  margin-left: auto;
  font-size: 13px;
  padding-right: 10px;
}

.chart-type-link.chart-save-link:hover {
  color: var(--primary-color);
  border-bottom-color: transparent;
}

.ui-slider-horizontal .ui-slider-handle{
  border-radius: 50%!important;
}

/* 图表时间范围滑块（#slider-range-min）统一样式：对齐 PC 的朴素轨道 + 扁平圆角矩形手柄。
   详情/频道首页/区域页/房价共用同一 ID，此处单一真相源，各页勿再重复覆盖 */
#slider-range-min {
  margin: 6px 0 0;
}
#slider-range-min.ui-slider {
  height: 12px;
  background: #ebedf0;
  border: none;
  border-radius: 2px;
}
#slider-range-min .ui-slider-range {
  background: rgba(26, 79, 190, 0.18) !important;
  border-radius: 2px;
}
#slider-range-min .ui-slider-handle {
  width: 20px;
  height: 16px;
  top: -2px;
  margin-left: -10px;
  background: #fff;
  border: 1px solid #b6bcc7;
  border-radius: 4px !important; /* 覆盖上面的 50% 圆形手柄 */
  cursor: pointer;
  outline: none;
}
#slider-range-min .ui-slider-handle:hover,
#slider-range-min .ui-slider-handle.ui-state-active {
  border-color: var(--primary-color, #1A4FBE);
}

/* ===== 区域页共享组件：头部图标按钮 + 核心动作栏 ===== */
.region-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.region-header-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    padding: 4px 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
}

.region-header-icon-btn .iconfont {
    font-size: 18px;
    line-height: 1;
}

.region-header-icon-btn span {
    font-size: 10px;
    font-family: var(--font-ui);
    line-height: 1;
}

.region-header-icon-btn.active {
    color: var(--primary-color);
}

.region-header-icon-btn:active {
    color: var(--primary-color);
}

.region-chart-toolbar {
    display: flex;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    height: 44px;
    background: #fff;
}

.region-chart-type-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border-right: 1px solid var(--border-color);
}

.region-chart-type-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color-dark);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    z-index: 200;
    min-width: 80px;
    overflow: hidden;
}

.region-chart-type-wrap.open .region-chart-type-menu {
    display: block;
}

.region-chart-type-wrap.open .region-chart-arrow {
    transform: rotate(180deg);
}

.region-chart-option {
    display: block;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    font-size: 13px;
    color: var(--text-dark);
    font-family: var(--font-ui);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.region-chart-option:last-child {
    border-bottom: none;
}

.region-chart-option:active {
    background: var(--bg-light);
}

.region-chart-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

.region-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: none;
    border: none;
    border-left: 1px solid var(--border-color);
    padding: 4px 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease;
    position: relative;
}

.region-action-btn:first-child {
    border-left: none;
}

.region-chart-type-btn {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    border-left: none;
    padding: 0 12px;
    color: var(--text-dark);
    font-size: 14px;
    font-family: var(--font-ui);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.region-chart-arrow {
    font-size: 10px !important;
    color: var(--text-light);
    transition: transform 0.15s ease;
}

.region-action-btn .iconfont {
    font-size: 17px;
    line-height: 1;
}

.region-action-btn span {
    font-size: 11px;
    font-family: var(--font-ui);
    line-height: 1;
}

.region-action-btn:active {
    color: var(--primary-color);
}

/* ===== 数据探索板块：辖区排行 / 热门排行 / 数据地图 均分切换（宏观/房价区域页通用） ===== */
.region-explore-section-mobile { background: #fff; margin-top: 8px; margin-bottom: 8px; }
.region-explore-tabs { display: flex; border-bottom: 1px solid var(--border-color); }
.region-explore-tab { position: relative; flex: 1; text-align: center; padding: 13px 2px; background: none; border: none; color: #000; font-size: 14px; white-space: nowrap; cursor: pointer; }
.region-explore-tab.active { color: #000; font-size: 15px; font-weight: 600; }
.region-explore-tab.active::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 20px; height: 2px; background: var(--primary-color); border-radius: 2px; }
.region-explore-panel { display: none; padding: 15px; }
.region-explore-panel.active { display: block; }
/* 地图面板复用整幅地图组件，去掉外层重复内边距与上边框（紧贴 tab 分割线下方） */
#explore-map { padding: 0; }
#explore-map .region-map-inline { border-top: none; border-bottom: none; }

/* 探索面板排行表格（宏观热门排行/辖区排行 + 房价辖区排行共用；自 mobile-channel.css 上移） */
/* 与首页房价排行(.housing-ranking-table)对齐：同一份视觉规格——列宽/内边距/thead下4px留白/名称block/涨红跌绿一致 */
.region-rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.region-rank-table thead th { font-weight: 500; font-size: 12px; color: #8a94a3; background: #f9f9f9; padding: 7px 6px; text-align: left; }
.region-rank-table tbody::before { content: ""; display: block; height: 4px; }
.region-rank-table th.rk-num, .region-rank-table td.rk-num { width: 44px; text-align: center; }
.region-rank-table th.rk-val, .region-rank-table td.rk-val { text-align: right; }
.region-rank-table th.rk-yoy, .region-rank-table td.rk-yoy { text-align: right; }  /* 不固定宽度，与首页房价排行同为 auto 分配，列分布一致 */
.rank-yoy { font-size: 12px; font-weight: 500; font-family: var(--font-data); font-feature-settings: "tnum" on, "lnum" on; }
.rank-yoy.up { color: #dc2626; }   /* 同比涨=红（全站涨红跌绿惯例） */
.rank-yoy.down { color: #059669; } /* 同比跌=绿 */
.rank-yoy-na { font-size: 13px; color: rgba(33, 37, 41, 0.75); }  /* 对齐首页房价排行的 .text-muted 占位 */
.region-rank-table tbody tr { border-bottom: 1px solid #f5f5f5; }
.region-rank-table tbody tr:last-child { border-bottom: none; }
.region-rank-table td { padding: 9px 6px; vertical-align: middle; }
.region-rank-num { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: var(--border-radius-sm); font-size: 12px; color: #666; background: #f5f5f5; font-weight: 500; font-family: var(--font-data); font-feature-settings: "tnum" on, "lnum" on; }
.region-rank-num.top { background: var(--secondary-blue); color: #fff; }
.region-rank-table td.rk-name a { display: block; color: var(--text-dark); text-decoration: none; font-size: 14px; }
.region-rank-value { font-size: 13px; font-weight: 500; color: var(--text-dark); font-family: var(--font-data); font-feature-settings: "tnum" on, "lnum" on; }
/* 辖区导航排行：年份列 + 表头「按X排名」+ 未上榜名次占位 + 完整排行入口 */
.region-rank-table th.rk-year, .region-rank-table td.rk-year { text-align: right; white-space: nowrap; color: #8a94a3; font-size: 12px; font-family: var(--font-data); }
.rk-na-num { color: #c4ccd6; font-size: 12px; }
.sub-nav-rank-head { padding: 2px 2px 8px; font-size: 12px; color: #8a94a3; }

/* 页内数据地图（就地展开，非模态/非跳页；宏观走 index-map.js，房价走 house-price-map 接口，同套样式） */
.region-map-inline { padding: 12px; background: #fff; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.region-map-inline-controls { display: flex; flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.region-map-inline-controls::-webkit-scrollbar { display: none; }
.region-map-inline-controls .rmi-chip { flex: none; }
.region-map-inline-controls .ap-trigger-label { white-space: nowrap; }
.region-map-inline-stage { position: relative; height: 360px; }
.region-map-inline-stage .rmi-canvas { width: 100%; height: 100%; }
/* 读数面板隐藏：小窗里遮挡，点击时 echarts 自带 tooltip 已显示数值（面板 DOM 保留供 index-map 写入） */
.region-map-inline-stage .rmi-panel { display: none; }
.region-map-inline-note { margin-top: 8px; font-size: 12px; color: var(--text-muted); text-align: center; }

/* 时间选择两列联动（年份+月份，与房价地图页 map_channel 时间抽屉同模式） */
.time-col-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f8f8;
  font-size: 12px;
  color: var(--text-light);
  font-weight: 600;
  padding: 10px 16px 6px;
  letter-spacing: 0.5px;
}
.time-col .action-sheet-item {
  padding: 12px 16px;
  font-size: 14px;
}

/* ============================================================
   移动端 AI 助手入口（.m-ai-entry：文字+图标的克制行，非填充大 CTA）
   AI 一律走 ai-assistant.css 的 .gha-sheet 底部抽屉（无遮罩两档、主屏常驻可见）。
   ============================================================ */

/* 入口：文字+图标的克制行，非填充大 CTA */
.m-ai-entry {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 11px 14px;
    border: none;
    background: #fff;
    color: var(--primary-color);
    font-size: 14px;
    font-family: var(--font-ui);
    text-align: left;
    cursor: pointer;
}
.m-ai-entry-ico { width: 16px; height: 16px; flex: none; }
.m-ai-entry-sub { color: var(--text-muted); font-size: 12px; }
.m-ai-entry-arrow { margin-left: auto; font-size: 12px; color: var(--text-light); }