/* ===================================
   首页专用样式
   =================================== */

/* === 首页搜索区域 === */

.index-home .gap-40 {
  gap: 40px;
}

.index-search-hero {
  background-color: #1548A4;
  color: #fff;
  background-image: url(https://cdn.gotohui.com/static/images/bg.svg);
  padding: 60px 0;
  margin-top: 60px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.index-search-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.index-search-hero .title {
  text-align: center;
  /* 半透明压暗：首屏只要搜索框一个焦点，标题退成背景信息。
     手机端同处是 .75，PC 字号大得多，.75 会发灰，取 .85 */
  color: rgba(255, 255, 255, 0.85);
  font-size: 26px;
  margin-bottom: 30px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.index-search-hero .title span {
  /* 数字不做任何区别处理，颜色字号全部继承标题；只留左右间距，
     中文与数字之间留空隙是排版惯例，不是样式差异 */
  margin: 0 5px;
}

.index-search-box {
  max-width: 800px;
  margin: 0 auto;
}

.index-search-form {
  margin-bottom: 20px;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--border-radius-md);
  padding: 6px 6px 6px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.search-input-group .search-icon {
  color: var(--color-link);
  font-size: 22px;
  margin-right: 12px;
}

.index-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 10px 0;
  background: transparent;
  color: #333;
}

.index-search-input::placeholder {
  color: #999;
}

.index-search-btn {
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 9px 28px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.index-search-btn:hover {
  border-color: #1240A0;
  background-color: #1240A0;
  transform: none;
  box-shadow: none;
}

.index-search-btn:active {
  transform: none;
  background-color: #1240A0;
}

/* AI 助手入口：嵌在搜索输入框内、搜索按钮左侧（数据平台克制风格：无边框、不加粗、hover 仅轻微加深） */
.index-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  padding: 8px 14px;
  border-radius: var(--border-radius-md, 4px);
  border: 1px solid #1A4FBE;
  background: none;
  color: #1A4FBE;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.index-ai-btn:hover {
  background: #f0f4fb;
}

.index-ai-spark {
  font-size: 14px;
}

/* 首页搜索历史下拉框 */
.index-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 20px 16px;
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

/* 首页实时搜索建议下拉框（类似百度/谷歌） */
.index-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1001;
  animation: slideDown 0.2s ease;
}

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

.index-search-suggestions .suggestions-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.index-search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f5f5f5;
  gap: 12px;
}

.index-search-suggestions .suggestion-item:last-child {
  border-bottom: none;
}

.index-search-suggestions .suggestion-item:hover,
.index-search-suggestions .suggestion-item.active {
  background-color: #f5f7fa;
  color: var(--color-link);
}

.index-search-suggestions .suggestion-item.active {
  background-color: #e8f4ff;
  font-weight: 500;
}

.index-search-suggestions .suggestion-icon {
  font-size: 16px;
  color: #999;
  flex-shrink: 0;
}

.index-search-suggestions .suggestion-item:hover .suggestion-icon,
.index-search-suggestions .suggestion-item.active .suggestion-icon {
  color: var(--color-link);
}

.index-search-suggestions .suggestion-text {
  flex: 1;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.index-search-suggestions .suggestion-item:hover .suggestion-text,
.index-search-suggestions .suggestion-item.active .suggestion-text {
  color: var(--color-link);
}

.search-dropdown-section {
  margin-bottom: 16px;
}

.search-dropdown-section:last-child {
  margin-bottom: 0;
}

.search-dropdown-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-dropdown-title .iconfont {
  font-size: 16px;
}

.clear-history-btn {
  font-size: 12px;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.clear-history-btn:hover {
  color: var(--color-link);
}

/* 下拉历史/热门标签：与 searchbox 头部 .hsd-tag 统一风格（无边框、浅灰底、hover 浅蓝） */
.search-hint-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-hint-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: #555;
  background: #f5f6f8;
  border-radius: var(--border-radius-sm, 3px);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-hint-tag:hover {
  background: #e8efff;
  color: var(--primary-color);
}

/* 热门搜索标签 */
.hot-search-tags {
  text-align: center;
  padding: 0 20px;
}

.hot-search-tags .hot-label {
  color: #e0e0e0;
  font-size: 14px;
}

.hot-search-tags a {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  padding: 2px 8px;
  font-size: 13px;
  margin-right: 10px;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(255,255,255,0.22);
}

.hot-search-tags a:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.10);
  transform: none;
  box-shadow: none;
}

/* === 首页专用头部样式 === */
.index-page-header {
  box-shadow: none;
}

.h-495{
  height: 495px;
}
.h-528{
  height: 528px;
}
.p-4-2{
  padding: 1rem 1.2rem !important;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .index-layout {
    flex-direction: column;
  }
  
  .content-main,
  .content-sidebar {
    width: 100% !important;
  }
  
  .content-sidebar {
    position: static;
    max-height: none;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .index-search-hero {
    padding: 40px 0;
    margin-top: 60px;
  }
  
  .index-search-hero .title {
    font-size: 24px;
  }
  
  .search-input-group {
    padding: 6px 6px 6px 16px;
  }
  
  .index-search-input {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .index-search-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .hot-search-tags a {
    font-size: 13px;
    padding: 5px 12px;
    margin: 0 4px 6px;
  }
}

@media (max-width: 576px) {
  .index-search-hero {
    padding: 30px 0;
  }
  
  .index-search-hero .title {
    font-size: 20px;
  }
  
  .index-search-hero .title span {
    font-size: 24px;
  }
  
  .search-input-group {
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
  }
  
  .search-input-group .search-icon {
    display: none;
  }
  
  .index-search-input {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .index-search-btn {
    width: 100%;
    border-radius: 12px;
  }
}

/* === 通用卡片标题 === */
.index-section-title {
  font-size: 16px; /* 统一字号为 16px */
  font-weight: 600; /* 加粗标题 */
  color: #1A202C; /* 稍微深一点的黑灰色，避免纯黑死板 */
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.index-section-title .iconfont {
  font-size: 20px;
}

/* === 数据快讯区 === */
.quicknews-header {
  padding: 0 6px 8px;
}
.quicknews-header .btn-link,.housing-ranking-header .btn-link{
  color: #666666;
}
/* Tab导航（通用样式）
   - quicknews-tabs: 数据快讯分类切换
   - board-tabs: 数据看板切换（省份/国家）
*/
.quicknews-tabs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.quicknews-tabs .tab-link {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.quicknews-tabs .tab-link:hover {
  color: var(--primary-color);
}

.quicknews-tabs .tab-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: 500;
}

/* 重构实时看板 Tab 为极简文字切换样式 */
.board-tabs {
  display: inline-flex;
  gap: 40px; /* 宽松的间距 */
  position: relative;
}

.board-tab-link {
  font-size: 16px; /* 字体稍大，作为标题层级 */
  color: #999;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.board-tab-link:hover {
  color: var(--primary-color);
}

.board-tab-link.active {
  background-color: transparent;
  color: #1A202C; /* 调整为沉稳的深灰色 */
  border-bottom-color: #1A202C;
  font-weight: 600; /* 选中状态加粗 */
  box-shadow: none;
}

.quicknews-list {
  padding: 10px 20px;
}

.quicknews-item {
  display: flex;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  transition: background-color 0.2s;
}

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

.quicknews-item:hover {
  background-color: var(--bg-gray-light);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.quicknews-time {
  color: var(--text-muted);
  font-size: 12px;
  min-width: 60px;
  margin-right: 15px;
  padding-top: 2px;
}

.quicknews-content {
  flex: 1;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.6;
  font-size: 14px;
}

.quicknews-content:hover {
  color: var(--primary-color);
}

.quicknews-tag {
  display: inline-block;
  background: var(--bg-gray-light);
  color: var(--primary-color);
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-size: 12px;
  margin-right: 8px;
  font-weight: 500;
}

.quicknews-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quicknews-tag-item {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  background: #f5f5f5;
  color: #999;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.quicknews-tag-item:hover {
  background: #e8f2ff;
  color: var(--primary-color);
}

/* === 热门数据表格 === */
/* 柱状图容器 */
.bar-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 16px;
  width: 80px;
  float: right;
}

.bar {
  width: 5px;
  height: 16px;
  background-color: #1682d9;
  transition: height 0.3s ease;
}

.data-category-tabs,
.community-tabs {
  display: flex;
  gap: 5px;
}

.tab-btn {
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-muted);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.tab-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.tab-btn.active {
  background: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.hot-data-table {
  padding: 0;
  margin: 0;
}

.hot-data-table .data-table {
  width: 100%;
  border-collapse: collapse;
}

.hot-data-table .data-table th {
  background: var(--bg-gray-th-2);
  padding: 9px 12px;
  font-size: 12px;
  color: #4A5568;
  text-align: left;
  border: none;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hot-data-table .data-table th:last-child {
  border-right: none;
}

.hot-data-table .data-table tr {
  transition: background 0.2s;
}

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

/* 有行边框时，去掉斑马纹交错背景，避免视觉过度复杂 */
.hot-data-table .data-table tbody tr:nth-child(even) {
  background: transparent;
}

.hot-data-table .data-table tbody tr:nth-child(even):hover {
  background: #f0f4fa;
}

.hot-data-table .data-table td {
  padding: 10px;
  border: none;
  border-bottom: 1px solid #f0f2f5;
  font-size: 14px;
  font-family: var(--font-ui);
  font-feature-settings: "tnum" on, "lnum" on;
  color: var(--text-dark);
}

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

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

.rank-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  color: white;
  font-size: 13px;
}

.rank-badge.rank-1 {
  background: #1240A0; /* 品牌蓝实色 */
  color: #fff;
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
  color: #999;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);
  color: #8b5a2b;
}

.data-name-link {
  color: var(--text-dark) !important;
  text-decoration: none;
  font-weight: 400;
  max-width: 100%;
  overflow: hidden;
}

.col-data-name {
  width: 260px;
  max-width: 260px;
}

.data-name-link span {
  line-height: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-name-link:hover {
  color: var(--primary-color);
}

/* 区域缩略图（小尺寸，用于列表） */
.region-thumb-sm {
  width: 18px;
  height: 16px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

/* 无缩略图纯色占位，对齐手机 web .hot-thumb-ph */
.data-name-link .hot-thumb,
.hot-data-table .hot-thumb {
  width: 18px;
  height: 16px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
  margin-right: 0.5rem;
}
.data-name-link .hot-thumb-ph,
.hot-data-table .hot-thumb-ph {
  background: #eef1f5;
  display: inline-block;
}

.growth-rate {
  font-family: 'Courier New', monospace;
  font-weight: 500;
}

/* === 数据排行榜网格 === */
.ranking-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* =================现代滑动系统样式================= */
/* 隐藏丑陋的原生滚动条 */
.ranking-grid::-webkit-scrollbar,
.data-board-scroll::-webkit-scrollbar,
.pro-data-table-wrapper::-webkit-scrollbar,
.show-table::-webkit-scrollbar {
  display: none;
}
.ranking-grid,
.data-board-scroll,
.pro-data-table-wrapper,
.show-table {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  scroll-behavior: smooth; /* 开启平滑滚动 */
}

/* 现代滑动按钮容器（相对定位包裹原区域） */
.scroll-wrapper {
  position: relative;
  width: 100%;
}

.ranking-grid-wrapper.scroll-wrapper {
  position: relative;
}

.data-board-container.scroll-wrapper {
  position: relative;
}

/* 添加右端悬浮遮罩暗示 */
.scroll-wrapper::after {
  content: '';
  position: absolute;
  top: 0px; /* Adjust for internal placement */
  bottom: 50px; /* Leave space for bottom controls (height of the controls div) */
  width: 60px;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-wrapper.ranking-grid-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
  z-index: 15;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.scroll-wrapper.data-board-container::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.7) 40%, rgba(255, 255, 255, 0) 100%);
  z-index: 15;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.scroll-wrapper.has-scroll-right::after {
  opacity: 1;
}

.btn-fullscreen-board:hover {
  color: var(--primary-color) !important;
}

/* 卡片流区域特化 */
.ranking-grid {
  cursor: default; /* 取消 grab 拖拽鼠标指针 */
}

/* === 社区精选（侧边栏无图版：标题+描述） === */
.sidebar-community-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-community-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f0f0f0;
}

.sidebar-community-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #f0f0f0;
}

.sidebar-community-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-community-title {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  
  /* 多行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-community-title:hover {
  color: var(--primary-color);
}

.sidebar-community-summary {
  font-size: 13px;
  color: #888; /* 描述文字颜色变浅 */
  line-height: 1.6;
  margin: 0;
  
  /* 双行省略 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  word-break: break-all;
}

.sidebar-community-meta,
.sidebar-community-tags {
  display: none; /* 隐藏不需要的元素 */
}

/* === 侧边栏：拉伸至与主内容等高，使内部 sticky 生效 === */
.sidebar-container {
  align-self: stretch;
}

/* === 社区精选滚动吸顶 === */
.sidebar-sticky {
  position: sticky;
  top: 70px;
}

/* === 数据分类网格 === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 15px 20px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all 0.3s;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.category-icon {
  width: 40px;
  height: 40px;
  display: block;
  margin: 0 auto 12px;
}

.category-info {
  text-align: center;
}

.category-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* === 热门搜索 === */
.hot-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-light);
  color: var(--text-dark);
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

.keyword-tag:hover {
  background: var(--primary-color);
  color: white;
}

.keyword-tag.hot {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  font-weight: 500;
}

.keyword-rank {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-sm);
  margin-right: 6px;
  font-size: 11px;
}

/* === 侧边栏排行榜 === */
.sidebar-ranking {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-ranking-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
}

.sidebar-ranking-item:hover {
  background-color: var(--bg-hover);
}

.sidebar-ranking-num {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--bg-gray);
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.sidebar-ranking-num.top {
  background: #1240A0; /* 品牌蓝实色 */
  color: white;
}

.sidebar-ranking-name {
  flex: 1;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-ranking-name:hover {
  color: var(--primary-color);
}

.sidebar-ranking-value {
  color: var(--text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

/* === 活跃用户列表 === */
.active-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.active-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s;
}

.active-user-item:hover {
  background-color: var(--bg-hover);
}

.active-user-rank {
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--bg-gray);
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.active-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.active-user-nickname {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-user-points {
  font-size: 12px;
  flex-shrink: 0;
  color: var(--text-muted);
}

/* === 数据看板（航班时刻表风格） === */
.data-board-tabs {
  display: flex;
  gap: 10px;
}

.data-board-container {
  padding: 0;
  min-height: 500px;
}

.data-board-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  cursor: default; /* 取消 grab 拖拽鼠标指针 */
  scroll-behavior: smooth;
}

.data-board-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  background: white;
  font-size: 13px;
  min-height: 448px;
}

.data-board-table thead {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: #F7FAFC; /* 亮白色，与深色背景对比 */
  position: sticky;
  top: 0;
  z-index: 25; /* 提高层级，盖住白色的滑动渐变遮罩 */
}

.data-board-table th {
  padding: 8px 10px; /* 稍微压缩一点高度 */
  text-align: center;
  font-weight: 500;
  white-space: nowrap;
  font-size: 13px; /* 保持13px */
  color: #F7FAFC; /* 亮白色文字 */
  min-width: 80px;
  letter-spacing: 0.02em;
  border-bottom: none; /* 去掉下划线，因为深底色本身就是强分割 */
}

/* 表头排序：点表头按该指标排列，箭头标出当前排序列 */
.data-board-table th.sortable {
  cursor: pointer;
  user-select: none;
}

.data-board-table th.sortable:hover {
  background: rgba(255, 255, 255, 0.06);
}

.data-board-table th.sort-asc::after {
  content: '▲';
  font-size: 10px;
  margin-left: 4px;
}

.data-board-table th.sort-desc::after {
  content: '▼';
  font-size: 10px;
  margin-left: 4px;
}

.data-board-table th.sticky-col {
  position: sticky;
  left: 0;
  z-index: 16; /* 确保首列在表头中层级最高 */
  background-color: #1A202C; /* 保持同色 */
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2); /* 加深投影以区分滚动内容 */
  min-width: 80px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.data-board-table tbody tr {
  transition: background 0.15s ease;
}

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

.data-board-table td {
  padding: 6px 16px;
  text-align: end; /* 改为默认靠右 */
  white-space: nowrap;
  border-bottom: 1px solid #EDF2F7; /* 极淡的底部分割线 */
  font-family: var(--font-ui);
  font-feature-settings: "tnum" on, "lnum" on;
  font-size: 14px; /* 保持14px */
  color: #2D3748; /* 文字稍微加深 */
}

.data-board-table td:last-child {
  border-right: none;
}

.data-board-table td.sticky-col {
  position: sticky;
  left: 0;
  background: white; /* 奇数行白 */
  z-index: 9;
  text-align: start; /* 首列强制靠左 */
  padding-left: 24px;
  font-weight: 500;
  font-family: var(--font-ui);
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

/* 同步修复 hover 时 sticky 列的背景色 */
.data-board-table tbody tr:hover td.sticky-col {
  background: #f0f4fa;
}

/* 数据看板区域滚动 */
.data-board-scroll {
  cursor: grab;
  position: relative; /* 为可能需要的子元素定位 */
}
.data-board-container {
  position: relative;
}


/* === 房价排行榜样式 === */
/* 标题栏容器（通栏下划线） */
.housing-ranking-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-sm);
}

/* 覆盖全局 sidebar-title 样式 */
.housing-ranking-header .sidebar-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  font-weight: 600; /* 加粗侧边栏标题 */
  color: #1A202C;
}

.housing-ranking-header .actions-group {
    display: flex;
    border: 1px solid var(--border-color);
}

.housing-ranking-header .actions-group-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background-color: transparent;
    padding: 4px 10px;
    font-size: 11px;
}

.actions-group-btn.active {
    background: rgba(26, 79, 190, 0.08);
    color: #4A5568;
}

/* 房价排行 tab 按钮 — 与 channel.css 的 btn-pro-outline 保持一致 */
.housing-ranking-header .btn-pro-outline {
  background: transparent;
  color: #4A5568;
}
.housing-ranking-header .btn-pro-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #F0F4FB;
}

.housing-ranking-table {
  width: 100%;
}

.housing-ranking-table table {
  font-size: 13px;
  border-collapse: collapse;
}

.housing-ranking-table thead th {
  font-weight: 500;
  background: #f9f9f9;
}

.housing-ranking-table tbody::before {
  content: "";
  display: block;
  height: 6px;
}

.housing-ranking-row {
  transition: background 0.2s;
}

.housing-ranking-row:hover {
  background: #f8f9fa;
}

.housing-ranking-row td {
  padding: 8.5px 4px;
  vertical-align: middle;
}

.housing-ranking-row .ranking-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;
}

.housing-ranking-row .ranking-num.top {
  background: var(--secondary-blue) !important;
  color: #fff;
}

.housing-ranking-row .housing-name {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
  display: block;
}

.housing-ranking-row .housing-name:hover {
  color: var(--primary);
  text-decoration: underline;
}

.housing-ranking-row .housing-value {
  font-size: 13px;
  font-weight: 500;
}

.housing-ranking-row .housing-yoy {
  font-size: 12px;
  font-weight: 500;
}

/* === 侧边栏数据排行列表 === */
.sidebar-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-ranking-item-card {
  display: block;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.sidebar-ranking-item-card:hover {
  background: #fff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.sidebar-ranking-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.sidebar-ranking-item-card:hover .sidebar-ranking-item-title {
  color: var(--primary-color);
}

.sidebar-ranking-item-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sidebar-ranking-item-preview .preview-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
}

.sidebar-ranking-item-preview .preview-rank-num {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  background: #e9ecef;
  border-radius: 50%;
  font-size: 10px;
  color: #666;
}

.sidebar-ranking-item-preview .preview-name {
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === 数据日历样式 === */
.data-calendar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-calendar-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.data-calendar-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calendar-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 6px 8px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-radius: var(--border-radius-sm);
  color: #fff;
}

.calendar-day {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.calendar-month {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.calendar-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.calendar-title {
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.calendar-title:hover {
  color: var(--primary-color);
}

.calendar-source {
  font-size: 11px;
  color: #999;
}

/* ============================================================
   首页重构：① 对比图表区  ② 热门数据卡片  ③ 通栏区
   ============================================================ */

/* === ③ 通栏区：与上段两栏同宽，块间留白 === */
.index-fullwidth > .content-card:last-child {
  margin-bottom: 0;
}

/* === ① 数据列表（热点数据/我的收藏/我的监控 选项卡 + SVG面积走势） === */
/* 卡片固定高(h-528)：选项卡条 + 当前面板撑满并内部滚动，复原原热点数据定高面板观感 */
.hot-list-card { display: flex; flex-direction: column; }
.hd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border-color);
}
.hd-tabs { display: flex; }
.hd-tab {
  position: relative;
  padding: 13px 18px;
  font-size: 14px;
  color: #8a94a3;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.hd-tab:hover { color: #1A202C; }
.hd-tab.active { color: #1A202C; }
.hd-tab.active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -1px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
}
/* 选项卡拖拽排序：仅 PC 启用（移动端不设 draggable、不出手型） */
/* 落点指示用 inset box-shadow，避开 .hd-tab.active::after 伪元素冲突 */
body:not(.mobile-body) .hd-tab[draggable="true"] { cursor: grab; }
body:not(.mobile-body) .hd-tab.hd-tab-dragging { opacity: 0.45; cursor: grabbing; }
body:not(.mobile-body) .hd-tab.hd-tab-drop-before { box-shadow: inset 2px 0 0 0 var(--primary-color); }
body:not(.mobile-body) .hd-tab.hd-tab-drop-after { box-shadow: inset -2px 0 0 0 var(--primary-color); }
.hd-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 14px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--primary-color);
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hd-add:hover { background: #eef2fb; }
.hd-add .iconfont { font-size: 12px; }
.hd-pane { width: 100%; flex: 1; min-height: 0; overflow-y: auto; }
.hd-pane.d-none { display: none; }
/* 走势列：SVG 面积图（宏观/快讯）或柱状图（排行榜横截面），加宽更显走势，右对齐 */
.hd-spark { width: 132px; height: 20px; margin-left: auto; line-height: 0; }
.hd-spark-svg { display: block; width: 100%; }
/* 名称后的内容类型标记（快讯行）：沿用站内既有「快讯」标签视觉（.quicknews-tag 同款：
   淡蓝底 + 主色字 + 4px 圆角），行内尺寸收紧一档，避免与数据名连读成一句话 */
.hd-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--bg-gray-light);
  color: var(--primary-color);
  border-radius: var(--border-radius-sm);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 400;
  vertical-align: middle;
}
/* 收藏/监控行内「取消」：同上不描边，hover 才现警示色 */
.hd-del-btn { padding: 3px 10px; font-size: 12px; line-height: 1.4; color: #97a1ad; background: transparent; border: none; border-radius: 3px; cursor: pointer; white-space: nowrap; transition: color 0.15s ease, background-color 0.15s ease; }
.hd-del-btn:hover { color: #ba2a20; background: rgba(186, 42, 32, 0.06); }
/* 尾部「查看全部」（首页只出前 20 条，其余去会员中心） */
.hd-more { padding: 10px 16px; text-align: center; border-top: 1px solid #f4f6f9; }
.hd-more a { font-size: 13px; color: var(--primary-color); text-decoration: none; }
.hd-more a:hover { text-decoration: underline; }
.hd-loading,
.hd-empty {
  padding: 40px 24px;
  text-align: center;
  color: #97a1ad;
  font-size: 13px;
}
/* 未登录提示（收藏/监控选项卡） */
.hd-login {
  padding: 48px 24px;
  text-align: center;
  color: #97a1ad;
  font-size: 13px;
}
.hd-login-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--primary-color);
  background: none;
  text-decoration: none;
}
.hd-login-btn:hover { color: var(--primary-dark); text-decoration: underline; }

/* === 添加数据弹窗（搜索站内数据加入收藏） === */
.ida-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 26, 36, 0.45);
  align-items: center;
  justify-content: center;
}
.ida-mask.ida-open { display: flex; }
.ida-modal {
  width: 560px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.ida-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}
.ida-title { font-size: 15px; font-weight: 600; color: #1A202C; }
.ida-close {
  width: 28px;
  height: 28px;
  font-size: 20px;
  line-height: 1;
  color: #97a1ad;
  background: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
.ida-close:hover { color: #1A202C; background: #f4f6f9; }
.ida-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  min-height: 120px;
}
.ida-hint { color: #97a1ad; font-size: 13px; line-height: 1.6; }
.ida-user {
  margin: 6px 0 6px auto;
  max-width: 80%;
  padding: 6px 10px;
  font-size: 13px;
  color: #fff;
  background: var(--primary-color);
  border-radius: 4px;
  width: fit-content;
}
.ida-status { margin: 8px 0; font-size: 13px; color: #5b6470; line-height: 1.6; }
.ida-results { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.ida-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.ida-r-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ida-r-name { font-size: 13px; color: #1A202C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ida-r-meta { font-size: 12px; color: #97a1ad; }
.ida-r-add {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--primary-color);
  background: none;
  border: 1px solid #c4cdda;
  border-radius: 3px;
  cursor: pointer;
}
.ida-r-add:hover { background: #eef2fb; }
.ida-r-add:disabled { color: #b3bac4; border-color: var(--border-color); background: #f4f6f9; cursor: default; }
.ida-choice { margin: 8px 0; }
.ida-choice-q { font-size: 13px; color: #5b6470; margin-bottom: 6px; }
.ida-choice-opt {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 5px 12px;
  font-size: 13px;
  color: #1A202C;
  background: #f4f6f9;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
}
.ida-choice-opt:hover { background: #eef2fb; border-color: #c4cdda; }
.ida-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
}
.ida-input input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}
.ida-input input:focus { border-color: var(--primary-color); }
.ida-send {
  flex-shrink: 0;
  padding: 0 18px;
  height: 36px;
  font-size: 14px;
  color: #fff;
  background: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.ida-send:hover { background: var(--primary-dark); }
.ida-send:disabled { background: #9fb3da; cursor: default; }
/* 底部：搜索框 + 折叠式高级筛选（默认只露搜索框，渐进展开包含/排除） */
.ida-foot { border-top: 1px solid var(--border-color); }
.ida-foot .ida-input { border-top: none; padding-bottom: 8px; }
.ida-adv { padding: 0 16px 12px; }
.ida-adv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  font-size: 12px;
  color: #8a94a3;
  background: none;
  border: none;
  cursor: pointer;
}
.ida-adv-toggle:hover { color: var(--primary-color); }
.ida-adv-toggle .iconfont { font-size: 11px; transition: transform 0.15s ease; }
.ida-adv.open .ida-adv-toggle .iconfont { transform: rotate(180deg); }
.ida-filters {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.ida-filters.d-none { display: none; }
.ida-filters input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
.ida-filters input:focus { border-color: var(--primary-color); outline: none; }

/* 首页右侧边栏（房价排行）：左缘竖线分隔，与下方「社区推荐」右栏视觉一致 */
.index-home .content-sidebar {
  box-sizing: border-box;
  border-left: 1px solid #f0f2f5;
}

/* 首页主布局下缘分隔线 */
.index-home .index-layout {
  border-bottom: 1px solid #f0f2f5;
}

/* 省份/国家通栏大表：去掉圆角（通栏平铺，方角更利落） */
#province-wrapper,
#country-wrapper {
  border-radius: 0;
}

/* 首页容器响应式：窄屏(≤1200)放开固定宽 + 左右安全边距
   （原 .index 在 detail-consolidated.css 同断点有 width:100%，首页改用 .index-home 后在此补回，避免窄屏溢出） */
@media (max-width: 1200px) {
  .index-home {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* === ② 数据洞察（左：置顶洞察卡 2×2；右：社区推荐 4 格；随 .index 容器宽度） === */
.di-band { padding: var(--spacing-sm) 0; }

/* 标题「数据洞察」 */
.di-band-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  padding: 10px 26px 0;
}

/* 横排：左卡片网格 + 右推荐栏（gap 与上方 index-layout 一致，对齐成显式约束而非靠容器宽巧合） */
.di-carousel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--spacing-sm);
}

/* 左栏：2 行 2 列洞察卡（宽度与上方主内容区对齐） */
.di-track {
  width: var(--main-width);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-sm);
}

.di-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid transparent;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.di-card:hover { border-color: var(--primary-color); }
.di-card-img {
  flex: 0 0 120px;
  align-self: stretch;
  min-height: 96px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: var(--border-color);
}
.di-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 封面图 404 时 onerror 会移除 .di-card-img，卡片退化为纯文字、文字撑满整行；
   内容是主体、配图是配角，图挂了(换CDN/迁域名/缓存未刷)绝不连内容一起隐藏 */
.di-card > .di-card-body:only-child { flex: 1 1 100%; }
.di-card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.di-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.di-card-summary {
  position: relative;
  flex: 1;
  max-height: 68px;
  overflow: hidden;
}
.di-card-summary p { margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-muted); }
.di-card-summary::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg-white));
}
.di-card-more { font-size: 13px; color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }
.di-card-more .iconfont { font-size: 12px; text-decoration: none; display: inline-block; }

/* 右栏：社区推荐（宽度与上方房价排行对齐 = var(--sidebar-width)；与房价列同左缘；右留内边距，格子不贴页面边缘） */
.di-reco {
  width: var(--sidebar-width);
  flex-shrink: 0;
  box-sizing: border-box;
  padding-right: 16px;
}
/* 社区推荐：序号 + 标题 的简洁列表，虚线分隔、不加粗、无边框 */
.di-reco-list { display: flex; flex-direction: column; }
.di-reco-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dark);
  text-decoration: none;
  border-bottom: 1px dashed #dcdfe5;
}
.di-reco-item:last-child { border-bottom: none; }
.di-reco-item:hover { color: var(--primary-color); }
/* 序号单独一列，标题占满第二列：换行的次行也对齐在标题列内，不会流到序号下方 */
.di-reco-no { flex-shrink: 0; color: var(--text-light); }
.di-reco-tt { flex: 1; min-width: 0; word-break: break-all; }

/* === 响应式 === */
@media (max-width: 992px) {
  .di-carousel { flex-direction: column; }
  .di-track { width: 100%; grid-template-columns: 1fr; }
  .di-reco { width: 100%; border-left: none; padding-left: 0; margin-top: 16px; }
  .di-card { padding: 16px; gap: 14px; }
  .di-card-img { flex-basis: 110px; min-height: 88px; }
}

/* === ③ 排行榜单（容器内·不通栏；手风琴榜单 + 左导读 + 右 grapher） === */
.ex-band { background: var(--bg-white); padding: 0; overflow: hidden; }
.ex-inner { width: 100%; padding: 18px; }
.ex-header { margin-bottom: 18px; }
.ex-title { font-size: 16px; font-weight: 700; line-height: 1.2; color: var(--text-dark); }
.ex-seeall { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--primary-color); text-decoration: none; white-space: nowrap; }
.ex-seeall .iconfont { font-size: 12px; }

/* 左菜单（精选榜单）+ 右内容 两栏 */
.ex-layout { display: flex; gap: 24px; align-items: stretch; background: #f0f4fa; }
.ex-menu { flex: 0 0 240px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; }
/* 标题置于左菜单头部：小标题 + 下分隔线 */
.ex-menu > .ex-title { padding: 16px; }
/* 手风琴项：容器 + 可点头部 + 选中展开的详情（无背景高亮） */
.ex-menu-item { border-radius: var(--border-radius-md); }
.ex-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.ex-menu-icon { font-size: 16px; color: var(--text-light); flex-shrink: 0; }
.ex-menu-item.active .ex-menu-icon { color: var(--primary-color); }
.ex-menu-text { display: flex; flex-direction: column; min-width: 0; }
.ex-menu-title { font-size: 14px; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-menu-item.active .ex-menu-title { font-weight: 600; }
.ex-menu-brief { font-size: 12px; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 选中项展开：描述 + 去探索 */
.ex-menu-detail { padding: 2px 12px 14px; }
.ex-menu-desc { font-size: 13px; line-height: 1.7; color: #4a5568; }
.ex-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--primary-color);
  text-decoration: none;
  white-space: nowrap;
}
.ex-explore-btn:hover { color: var(--primary-dark); }
.ex-explore-btn .iconfont { font-size: 12px; }

/* 搜索添加：搜索框 + 结果下拉 */
.ex-search { position: relative; margin: 8px 12px 4px; }
.ex-search-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--text-light); pointer-events: none; }
.ex-search-input { width: 100%; height: 34px; padding: 0 10px 0 28px; font-size: 13px; color: var(--text-dark); background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); outline: none; }
.ex-search-input:focus { border-color: var(--primary-color); }
.ex-search-results { position: absolute; left: 0; right: 0; top: 38px; z-index: 30; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.ex-sr-tip { padding: 12px; text-align: center; font-size: 12px; color: var(--text-light); }
.ex-sr-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #eef1f5; }
.ex-sr-item:last-child { border-bottom: none; }
.ex-sr-item:hover { background: var(--bg-light); }
.ex-sr-title { min-width: 0; font-size: 13px; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-sr-add { flex-shrink: 0; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--primary-color); }
.ex-sr-add .iconfont { font-size: 12px; }

/* 我添加的：分组小标题 + 付费角标 + 移除 */
.ex-subtitle { margin-top: 6px; padding: 12px 12px 4px; font-size: 12px; font-weight: 600; color: var(--text-light); border-top: 1px solid var(--border-color); }
.ex-menu-added .ex-menu-text { flex: 1; }
.ex-menu-remove { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: var(--text-light); cursor: pointer; opacity: 0.55; }
.ex-menu-remove:hover { color: #e54d42; opacity: 1; }
.ex-menu-remove .iconfont { font-size: 13px; }
.ex-badge-paid { display: inline-block; margin-left: 6px; padding: 0 5px; font-size: 11px; line-height: 16px; color: #b26a00; background: #fff3e0; border-radius: 3px; vertical-align: middle; }

/* 付费榜预览横幅 */
.ex-pay-banner { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 8px 12px; font-size: 13px; color: #8a5a00; background: #fff8ec; border: 1px solid #ffe3b3; border-radius: var(--border-radius-md); }
.ex-pay-banner a { color: var(--primary-color); text-decoration: none; }
.ex-pay-banner .iconfont { font-size: 13px; }

/* 右内容：只放 grapher（标题已收到左侧菜单，避免重复） */
.ex-content { flex: 1; min-width: 0; min-height: 575px; }

/* grapher 卡片 */
.ex-graph { background: var(--bg-white); border: 1px solid #f0f4fa; border-radius: var(--border-radius-md); padding: 16px 18px; }
/* 主区：地图/图占满左侧，操作栏竖列在右（不再占顶部高度，地图更大） */
.ex-graph-main { display: flex; gap: 14px; align-items: stretch; position: relative; }
/* 右侧竖列操作栏 */
.ex-graph-side { width: 92px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
/* 单位：浮在图区左上角，不挡交互。前提「左上空白」只有地图成立——
   柱状左上是 y 轴顶端刻度，预留顶带让开；表格左上是表头，浮层隐藏、单位并入数值表头 */
.ex-graph-sub {
  position: absolute; top: 6px; left: 8px; z-index: 5;
  margin: 0; text-align: left; line-height: 1.4;
  font-size: 12px; color: var(--text-light);
  pointer-events: none;
}
.ex-graph-main.ex-vw-table .ex-graph-sub { display: none; }
.ex-graph-main.ex-vw-bar .ex-chart-canvas { height: calc(100% - 26px); margin-top: 26px; }
/* 视图切换：竖排分段控件（柱状/表格/地图） */
.ex-views { display: flex; flex-direction: column; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--border-radius-md); overflow: hidden; }
.ex-view { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; font-size: 13px; color: var(--text-muted); background: none; border: none; border-top: 1px solid var(--border-color); cursor: pointer; transition: all 0.12s ease; }
.ex-view:first-child { border-top: none; }
.ex-view:hover { color: var(--text-dark); background: var(--bg-light); }
.ex-view.active { background: rgba(26, 79, 190, 0.08); }
.ex-view .iconfont { font-size: 13px; }
.ex-view-ico { width: 13px; height: 13px; fill: currentColor; }
/* 工具按钮：竖排 */
.ex-tools { display: flex; flex-direction: column; gap: 6px; }
.ex-tool { width: 100%; height: 30px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-light); background: none; border: 1px solid var(--border-color); border-radius: var(--border-radius-md); cursor: pointer; transition: all 0.12s ease; }
.ex-tool:hover { color: var(--primary-color); border-color: var(--border-color-dark); }
.ex-tool .iconfont { font-size: 13px; }
/* 「数值」「3D」两颗开关：无合适字体图标，直接用文字当标识（图标规范禁 emoji，生造图标不如字认得快） */
.ex-tool-3d, .ex-tool-val { font-size: 12px; font-weight: 500; letter-spacing: 0.5px; padding: 0; }
/* 开启态只轻微加深，不做反色跳变（与 .ex-view.active 同款） */
.ex-tool.active { color: var(--primary-color); background: rgba(26, 79, 190, 0.08); }

/* 固定高度，柱状/表格/地图三视图切换与异步加载都不再撑动页面；操作栏移到右侧后给地图更大高度 */
.ex-graph-body { flex: 1; min-width: 0; height: 500px; position: relative; }
.ex-chart-canvas { width: 100%; height: 100%; }

/* 表格视图：固定布局按比例分列（排名15/区域35/数值25/同比25），空白摊进各列，
   不再由内容最长的列独吞宽度造成单条巨大空档；排名/同比居中对齐详情页范式 */
.ex-table-wrap { height: 100%; overflow-y: auto; }
.ex-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.ex-table th { position: sticky; top: 0; background: var(--bg-gray-th); color: var(--text-muted); font-weight: 600; text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--border-color); }
.ex-table th:first-child { text-align: center; width: 15%; }
.ex-table td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--border-color); color: var(--text-dark); }
.ex-table td:first-child { text-align: center; color: var(--text-muted); }
.ex-table th:last-child, .ex-table td:last-child { text-align: center; }
.ex-th-name, .ex-td-name { text-align: left !important; }
.ex-th-name { width: 35%; }
.ex-td-name a { color: var(--text-dark); text-decoration: none; }
.ex-td-name a:hover { color: var(--primary-color); }

/* 加载/空态：占满固定高度并居中，避免塌陷 */
.ex-loading, .ex-empty { height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); font-size: 13px; }

/* 骨架屏：异步加载（地图等）时占位，配合微光扫过 */
.ex-skeleton { height: 100%; width: 100%; position: relative; overflow: hidden; background: var(--bg-light); border-radius: var(--border-radius-md); }
.ex-skeleton-graph { height: 575px; }
.ex-skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); animation: exShimmer 1.3s infinite; }
@keyframes exShimmer { 100% { transform: translateX(100%); } }

/* 地图占位 */
.ex-map-stub { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text-light); }
.ex-map-stub .iconfont { font-size: 40px; color: var(--border-color-dark); margin-bottom: 10px; }
.ex-map-stub p { margin: 0 0 6px; font-size: 15px; color: var(--text-muted); font-weight: 600; }
.ex-map-stub span { font-size: 12px; max-width: 360px; line-height: 1.6; }
.ex-map-stub a { color: var(--primary-color); text-decoration: none; }
.ex-map-stub a .iconfont { font-size: 12px; }

/* 年份选择器（明显的浅底条：左标题 + 滑块 + 当前年份大字主题色） */
.ex-slider-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 9px 14px; background: var(--bg-light); border-radius: var(--border-radius-md); }
.ex-slider-label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.ex-slider-label .iconfont { font-size: 12px; }
/* 年份滑块：参考详情页时间范围滑块（灰轨 + 半透明主色填充 + 白色方块手柄） */
.ex-slider { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(to right, rgba(26, 79, 190, 0.25) 0 var(--pct, 0%), #ebedf0 var(--pct, 0%) 100%); }
.ex-slider:focus { outline: none; }
.ex-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 16px; border-radius: 4px; background: var(--bg-white); border: 1px solid #b6bcc7; cursor: pointer; transition: border-color 0.12s ease; }
.ex-slider::-webkit-slider-thumb:hover { border-color: var(--primary-color); }
.ex-slider::-moz-range-track { height: 6px; border-radius: 2px; background: #ebedf0; }
.ex-slider::-moz-range-progress { height: 6px; border-radius: 2px; background: rgba(26, 79, 190, 0.25); }
.ex-slider::-moz-range-thumb { width: 18px; height: 16px; border-radius: 4px; background: var(--bg-white); border: 1px solid #b6bcc7; cursor: pointer; }
.ex-slider-cur { font-size: 16px; color: var(--primary-color); text-align: right; flex-shrink: 0; }
.ex-graph-source { margin-top: 12px; font-size: 11px; color: var(--text-light); }

/* 全屏：纵向 flex 让主区自动撑满剩余空间（付费条/滑块各占自身高度），避免写死高度与实际不符留白 */
.ex-graph.ex-fullscreen { position: fixed; inset: 24px; z-index: 1200; overflow: auto; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.ex-graph.ex-fullscreen .ex-graph-main { flex: 1 1 auto; min-height: 0; }
.ex-graph.ex-fullscreen .ex-graph-body { height: auto; min-height: 0; }

@media (max-width: 992px) {
  .ex-band { padding: 16px; }
  .ex-layout { flex-direction: column; gap: 14px; }
  .ex-menu { flex: 0 0 auto; max-width: 100%; flex-direction: row; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border-color); padding: 0 0 8px; }
  .ex-menu-item { flex-shrink: 0; }
  .ex-search { flex: 1 1 100%; margin: 8px 0 4px; }
  .ex-subtitle { flex: 1 1 100%; }
  /* 窄屏：地图在上、操作栏改横排沉底（避免 92px 竖列挤压地图） */
  .ex-graph-main { flex-direction: column; }
  .ex-graph-side { width: 100%; flex-direction: row; align-items: center; gap: 10px; }
  .ex-views { flex-direction: row; }
  .ex-view { border-top: none; border-left: 1px solid var(--border-color); }
  .ex-view:first-child { border-left: none; }
  .ex-tools { flex-direction: row; }
  .ex-tool { width: 30px; }
  /* 窄屏地图仍在上方，单位浮层保持左上角 */
  .ex-graph-sub { top: 4px; left: 6px; }
}
