/* === CSS Variables === */
:root {
    /* Fonts */
    /* UI 字体：优先系统默认，其次苹果，再考虑 Windows 微软雅黑，去掉过细的字体 */
    --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";
    /* Data 字体：比例系统字体 + OpenType tnum/lnum 实现数字等宽对齐 */
    --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-color: #19487f;
    --secondary-blue: #6f89bf;
    --secondary-slate: #4A5568;
    --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;
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Sizes */
    --header-height: 60px;
    --container-width: 1170px;
    --main-width: 860px;
    --sidebar-width: 300px;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    /* 统一都用4px */
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    
    /* Shadows */
    --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 === */
  body {
    padding: 0;
    margin: 0;
    overflow: auto!important;
    background-color: var(--bg-light);
    font-family: var(--font-ui);
    color: var(--text-dark); /* 修正为更深的文字色，而非 var(--text-primary) */
  }
  
  a {
    text-decoration: none!important;
  }

  .tabular-nums {
    font-feature-settings: "tnum" on, "lnum" on;
    font-family: var(--font-data);
  }

  .clearfix::after {
    content: "";
    display: table;
    clear: both;
  }
  .mt--2 {
    margin-top: -2px !important;
  }
  .mt-10 {
    margin-top: 10px !important;
  }
  .p-20 {
    padding: 20px;
  }
  .ps-10 {
    padding-left: 10px !important;
  }
  .pe-10 {
    padding-right: 10px !important;
  }
  .px-10 {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .fs-sm {
    font-size: 14px !important; /* 自定义类，因为Bootstrap没有14px的字体大小 */
  }
  .fs-12 {
    font-size: 12px !important;
  }
  .fs-13 {
    font-size: 13px !important;
  }
  .fs-14 {
    font-size: 14px !important;
  }
  .fs-15 {
    font-size: 15px !important;
  }
 .w-60 {
    width: 60px;
 }
 .w-80 {
  width: 80px;
 }

.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);
}

.link-primary{
  color: var(--primary-dark)!important;
}
  
.link-color{
  color: var(--color-link);
}
.link-access{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.link-access .iconfont{
  font-size: 12px;
}
.badge{
  font-weight: 500!important;
}

.scroll-btn-bottom {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  box-shadow: none;
}

.scroll-btn-bottom:hover:not(.disabled) {
  background: var(--primary-color);
  color: #fff;
}

.scroll-btn-bottom.disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--bg-hover);
  color: var(--text-muted);
}

.scroll-btn-bottom i {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 左右滑动底部控制区 */
.scroll-controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-top: 0;
  background: #fff;
  height: 50px;
  box-sizing: border-box;
  width: 100%;
  border-bottom-left-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
}

.scroll-controls-bottom-left {
  flex: 1;
  display: flex;
  align-items: center;
}

.scroll-controls-bottom-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.scroll-controls-bottom-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.scroll-board-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-fullscreen-board {
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
}

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

/* === Header & Navigation === */
  .searchbox {
    -webkit-backface-visibility: hidden;
    position: fixed;
    width: 100%;
    height: 60px;
    top: 0;
    left: 0;
    -webkit-transition: top 0.5s;
    -moz-transition: top 0.5s;
    transition: top 0.5s;
    z-index: 999;
    /*box-shadow: 0 2px 6px rgba(0, 132, 255, 0.2);*/
    padding-right: 0 !important;
  }
  
  /* === Header Component === */
  .header-bg-primary {
    background: var(--secondary-color) !important;
  }
  
  .header-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
    height: var(--header-height);
  }
  
  .header-inner {
    width: var(--container-width);
    margin: 0 auto;
    position: relative;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  /* 左侧和右侧容器 */
  .header-left {
    display: flex;
    align-items: center;
  }
  
  .header-right {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  
  /* 创建左侧和右侧容器 */
  .header-inner::before,
  .header-inner::after {
    display: none; /* 移除clearfix的伪元素 */
  }
  
  /* 导航项内边距 - 优化版 */
  .navbar .nav-item {
    padding: 0 4px;
    position: relative;
  }
  
  .navbar-nav {
    flex-wrap: nowrap;
  }
  .navbar .nav-link {
    padding: 0 12px;
    line-height: var(--header-height);
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95) !important;
    position: relative;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
  }
  
  .navbar .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
  }
  
  .navbar .nav-link:hover::after {
    width: 50%;
  }
  
  /* Logo Component */
  .logo-box {
    display: flex;
    align-items: center;
    width: 160px;
    height: var(--header-height);
  }
  
  .logo-box a {
    display: flex;
    align-items: center;
  }
  
  .logo-box img {
    max-height: 40px;
    width: auto;
  }
  /* === Action Buttons Component === */
  .action-buttons {
    display: flex;
    align-items: center;
    height: var(--header-height);
    margin: 0 var(--spacing-md);
  }
  
  /* 数据工具触发器：与导航 nav-link 同机制——占满表头高度，菜单从底部落下自然留出间距 */
  .compare-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--header-height);
    padding: 0 12px;
    background-color: transparent;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    font-size: 15px;
    border: none;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s ease;
    box-shadow: none;
    white-space: nowrap;
  }
  .compare-button .dt-trigger-ico {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  .compare-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }

  /* 数据工具下拉（鼠标经过展开；复用 .dropdown-menu 视觉，右对齐避免溢出） */
  .data-tools-dropdown {
    position: relative;
    display: inline-block;
  }
  .data-tools-dropdown .compare-button {
    cursor: pointer;
  }
  .data-tools-dropdown .data-tools-menu {
    top: 100%;           /* 紧贴按钮底部，无间隙保证 hover 不断 */
    right: 0;
    left: auto;
    min-width: 124px;    /* 收窄至贴合内容，去掉两侧大留白 */
  }
  .data-tools-dropdown:hover .data-tools-menu {
    display: block;
  }
  /* 箭头改到右侧对齐触发按钮 */
  .data-tools-dropdown .data-tools-menu::before {
    left: auto;
    right: 20px;
  }
  .data-tools-dropdown .data-tools-menu li a {
    text-align: left;
    justify-content: flex-start;
    gap: 8px;            /* 图标与文字间距 */
  }
  /* 菜单项图标：克制的灰，hover 跟随主题色 */
  .data-tools-menu .dt-ico {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: color 0.15s ease;
  }
  .data-tools-menu li a:hover .dt-ico {
    color: var(--primary-dark);
  }
  /* === Navigation Component === */

.message-unread-badge{
  position: absolute;
  top: 10px;
  right: 10px;
  height: 16px;
  min-width: 16px;     /* 固定宽撑不下两位数/99+，改最小宽+左右内边距自适应 */
  padding: 0 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .widget-tag-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    float: left;
    margin-left: var(--spacing-lg);
    height: var(--header-height);
  }
  
  .widget-tag-nav a,
  .widget-tag-nav span {
    display: flex;
    align-items: center;
    padding: 0 var(--spacing-sm);
    color: white;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    height: var(--header-height);
  }
  
  /* 为下拉菜单添加指示器 */
  .dropdown-toggle {
    cursor: pointer;
  }
  
  /* 移除Bootstrap默认的下拉图标 */
  .dropdown-toggle::after {
    display: none !important;
  }
  
  .widget-tag-nav a:hover {
    text-decoration: none;
  }
  
  /* Nav Divider */
  .nav-divider {
    color: #5c72af;
    padding-left: var(--spacing-sm) !important;
    min-width: 12px !important;
  }
  
  /* === Dropdown Component - 优化版 === */
  .dropdown-panel,
  .dropdown-menu {
    display: none;
    position: absolute;
    background: var(--bg-white);
    border: 1px solid #E2E8F0;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    z-index: 2000;
    list-style: none;
    padding: 8px;
    margin: 0;
    animation: dropdownFadeIn 0.02s ease;
  }
  
  @keyframes dropdownFadeIn {
    from {
      opacity: 0;
      transform: translateY(-5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 添加下拉菜单箭头 */
  .dropdown-panel::before,
  .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 8px;
    height: 8px;
    background: var(--bg-white);
    transform: rotate(45deg);
    border-top: 1px solid #E2E8F0;
    border-left: 1px solid #E2E8F0;
    z-index: 999;
  }
  
  /* Dropdown Widths and Columns */
  .dropdown-width-100 {
    min-width: 100px;
    column-count: 1;
    column-gap: 10px;
  }
  
  .dropdown-width-160 {
    column-count: 2;
    column-gap: 10px;
  }
  
  .region-dropdown {
    flex-wrap: wrap;
    width: 280px;
  }
  
  /* 鼠标悬停显示下拉菜单 */
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
  }

  .navbar .nav-item.dropdown:hover .region-dropdown {
    display: flex;
  }
  
  .region-dropdown li {
    width: calc(100% / 4);
  }

  /* Dropdown Items - 优化版 */
  .dropdown-menu li {
    padding: 2px 4px;
    /* 防止多列布局中的项目断开 */
    break-inside: avoid;
    page-break-inside: avoid;
  }
  
  .dropdown-menu li a {
    color: var(--text-dark);
    font-size: 14px;
    padding: 6px 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--border-radius-sm);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .dropdown-menu li a:hover {
    color: var(--primary-dark);
    background-color: #f8f9fa;
    transform: none;
  }
  
  /* === Search Component === */
  .searchtext {
    position: relative;
    margin: 0 var(--spacing-lg);
    width: 280px;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.15);
    height: 36px;
    border: none;
    float: left;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .searchtext:hover, 
  .searchtext:focus-within {
    background-color: rgba(255, 255, 255, 0.25);
  }
  
  /* 确保表单占满整个搜索框 */
  .searchtext form {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  
  .search-input {
    width: calc(100% - 36px);
    height: 36px;
    border: none;
    background: transparent;
    padding: 0 var(--spacing-lg);
    outline: none;
    color: white;
    font-size: 14px;
  }
  
  .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
  }
  
  .search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    width: 36px;
  }
  
  .btnup {
    border: none;
    outline: none;
    background: transparent;
    height: 36px;
    width: 36px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
  }

  .btnup:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  /* 头部搜索框：历史/热门下拉容器（包裹 .searchtext，定位下拉） */
  .header-search-box {
    position: relative;
    float: left;
    margin: 0 var(--spacing-lg);
  }
  .header-search-box .searchtext {
    margin: 0;
    float: none;
  }
  .header-search-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 12px;
    left: 0;
    width: 360px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-md, 4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    padding: 14px 16px;
    z-index: 2000;
  }
  .header-search-dropdown .hsd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }
  .header-search-dropdown .hsd-title {
    font-size: 13px;
    color: #999;
  }
  .header-search-dropdown .hsd-clear {
    font-size: 12px;
    color: #999;
    text-decoration: none;
  }
  .header-search-dropdown .hsd-clear:hover {
    color: var(--primary-dark, #1A4FBE);
  }
  .header-search-dropdown .hsd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-search-dropdown .hsd-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;
  }
  .header-search-dropdown .hsd-tag:hover {
    background: #e8efff;
    color: var(--primary-dark, #1A4FBE);
  }
  /* 头部右侧：清空 + AI 搜索 同行靠右 */
  .header-search-dropdown .hsd-head-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  .header-search-dropdown .hsd-ai-entry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--primary-dark, #1A4FBE);
    background: #fff;
    border: 1px solid var(--primary-dark, #1A4FBE);
    border-radius: var(--border-radius-sm, 3px);
    text-decoration: none;
  }
  .header-search-dropdown .hsd-ai-entry:hover {
    background: #e8efff;
  }
  .header-search-dropdown .hsd-ai-spark {
    font-size: 11px;
  }
/* === User Navigation Component === */
  .search-nav {
    height: var(--header-height);
    display: flex;
    align-items: center;
    margin-left: auto;
  }
  
  .search-nav a {
    position: relative;
    font-size: 14px;
    color: white;
    text-decoration: none;
    padding: 0 var(--spacing-md);
    height: 36px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
  }
  
  .search-nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }
  
  .search-nav span {
    display: flex;
    align-items: center;
    height: var(--header-height);
  }
  
  .line-height-60 {
    height: var(--header-height);
    display: flex;
    align-items: center;
  }
  
  /* === User Login Display Component === */
  .ws_text_login_reg {
    display: flex;
    align-items: center;
    min-width: 160px;
    justify-content: flex-end;
    height: var(--header-height);
    margin: 0 0 0 var(--spacing-xl);
  }
  
  .ws_text_login_reg .login-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  
  /* 登录按钮样式 */
  .ws_text_login_reg .login-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    line-height: 1;
  }
  
  /* 登录按钮 - 描边样式 */
  .ws_text_login_reg .login-buttons .btn-outline-light {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: transparent;
  }
  
  .ws_text_login_reg .login-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
    transform: translateY(-1px);
  }
  
  /* 注册按钮 - 实心样式 */
  .ws_text_login_reg .login-buttons .btn-light {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--secondary-color);
  }
  
  .ws_text_login_reg .login-buttons .btn-light:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: white;
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }
  
  /* 用户下拉菜单 */
  .ws_text_login_reg .user-dropdown {
    position: relative;
  }
  
  .ws_text_login_reg .user-dropdown .nav-link {
    padding-left: 0.75rem;
    white-space: nowrap;
    min-width: 120px;
    max-width: 160px;
    line-height: var(--header-height);
  }
  
  .ws_text_login_reg .user-dropdown .user-nickname {
    display: inline-block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 14px;
  }
  
  /* 鼠标悬停显示用户下拉菜单 */
  .ws_text_login_reg .user-dropdown:hover .dropdown-menu {
    display: block;
  }
  
  /* 用户下拉菜单样式优化 */
  .ws_text_login_reg .dropdown-menu {
    min-width: 140px;
  }

/* === Breadcrumb Component === */
  .breadcrumb-nav {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
  }
  
  .breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .breadcrumb-nav a:hover {
    color: var(--primary-color);
  }
  
  .breadcrumb-nav span {
    margin: 0 5px;
    color: #CBD5E0;
  }
  
  /* Bootstrap面包屑样式覆盖 */
  .breadcrumb {
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
  }
  
  .breadcrumb-item a {
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s ease;
  }

  .breadcrumb-item a:hover {
    color: var(--primary-color);
  }

  .breadcrumb-item + .breadcrumb-item::before {
    color: #CBD5E0;
  }

  /* === Main Content Layout Component === */
  .index {
    width: var(--container-width) !important;
    margin: 0 auto;
    padding-top: 80px; /* 替代h-90和margin-top的组合 */
  }

  /* 首页专属容器：等同 .index 的宽度/居中，外加白底 + 底部留白；
     不含公共 .index 给详情页用的 padding-top:80px（首页上方有搜索区，不需要） */
  .index-home {
    width: var(--container-width) !important;
    margin: 0 auto;
    background: var(--bg-white);
    padding-bottom: 20px;
  }
  
  .index-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-white);
    padding-bottom: 20px;
  }
  
  .content-main {
    width: var(--main-width);
    flex-shrink: 0;
  }
  
  /* === Sidebar Component === */
  .content-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    border-left: 1px solid #f0f2f5;
    /* sticky 子元素生效的必要条件：父容器必须能够撑满（stretch）整个主轴高度，以便子元素在其中滑动 */
    align-self: stretch;
  }
  
  .sidebar-container {
    /* 添加侧边栏容器样式，替代原来的aside和collection类 */
    margin-top: 0;
  }

  /* 侧边栏标题统一样式 */
  .sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A202C;
    margin-bottom: 0;
  }
/* === 全屏表格弹窗样式 === */

/* 全屏弹窗背景 */
.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: 95%;*/
  max-width: 1600px;
  min-width: 900px;
  height: 90%;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

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

/* 弹窗头部 */
.fullscreen-modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8f9fa;
}

.fullscreen-modal-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.fullscreen-modal-header .modal-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 弹窗主体 */
.fullscreen-modal-body {
  flex: 1;
  overflow: hidden; /* 改为hidden，让子容器滚动 */
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

/* 表格容器 - 这里才是真正的滚动容器 */
.fullscreen-modal-body .data-table-container {
  flex: 1;
  overflow: auto; /* 滚动发生在这里 */
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius-sm);
  background-color: #fff;
}

/* 弹窗底部 */
.fullscreen-modal-footer {
  padding: 0.75rem 1.5rem;
  background-color: #f8f9fa;
  text-align: right;
}

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

/* 全屏模式下的表格样式 */
.fullscreen-table {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.fullscreen-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

/* ========================================
   表格样式
   ======================================== */

/* 表格滚动容器 */
.data-table-scrollable {
  overflow: auto;
  max-height: 700px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
}

.data-table-scrollable::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

.data-table-scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,.32);
}

.data-table-scrollable::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.16);
  border-radius: var(--border-radius-md);
}

/* === 统一数据表格（data-table）===
 * 合并自原 data-table + pro-data-table，现为全站唯一表格基类。
 * pro-data-table 作为向后兼容别名保留在 detail-consolidated.css。
 */

.pro-data-table-wrapper {
  overflow-x: auto;
  margin-top: 0;
  border-radius: var(--border-radius-sm);
}

.data-table {
  min-width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
}

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

.data-table th, .data-table td {
    min-width: 100px; /* 列宽地板：防 auto 布局把短内容列挤扁 */
    max-width: 200px;
    padding: 10px;
    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;
}

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

.data-table th .th-data-link:hover {
    color: #2d3748;
    text-decoration: underline;
}

.data-table td {
    transition: background-color 0.2s ease;
}

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

.data-table-fixed-header th {
  position: sticky;
  top: -1px;
  z-index: 10;
  color: #333;
  background-color: var(--bg-gray-th-2);
}

.sticky-column {
  position: sticky !important;
  left: -1px;
  z-index: 9;
  background-color: var(--bg-gray-th-2);
}

/* 数据表格操作栏（独立于表格外） */
.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;
}

/* 查看更多链接推到右侧（替代float-end） */
.data-table-actions .btn.link-color {
  margin-left: auto;
}

/* 批量查看表格容器样式 */
.batch-view-content {
  flex: 1; /* 改用flex占据剩余空间，而不是height: 100% */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 防止内容溢出 */
}

.batch-view-table-wrapper {
  flex: 1;
  overflow: auto; /* 支持横向和纵向滚动 */
  border-radius: var(--border-radius-sm);
}

/* 表格内的数据名称和单位样式 */
.batch-view-content .data-name {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.batch-view-content .unit-label {
  font-size: 12px;
  color: #666;
  font-weight: normal;
  white-space: nowrap; /* 防止换行 */
}

/* 表格样式优化 */
.batch-view-content .data-table {
  width: max-content; /* 允许表格超出容器宽度 */
  min-width: 100%;
}

/* 滚动条样式 */
.batch-view-table-wrapper::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.batch-view-table-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: var(--border-radius-md);
}

.batch-view-table-wrapper::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: var(--border-radius-md);
}

.batch-view-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* 同时具有固定表头和固定列的单元格需要更高的z-index */
.data-table-fixed-header th.sticky-column {
  z-index: 11;
}

.year-column, .index-column, .period-column {
  min-width: 100px !important;
  max-width: 100px !important;
}

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

/* === Footer === */
.qz-foot {
    width: 100%;
    background: #001220;
    overflow: hidden;
    padding-bottom: 80px;
    background-size: contain;
  }
  
  .qz-foot-nr {
    position: relative;
    padding-top: 50px;
    width: 1160px;
    overflow: visible;
    margin: 0 auto;
  }
  
  .qz-foot-s {
    overflow: hidden;
    margin: 0 auto;
    padding-bottom: 20px;
  }
  
  .qz-foot-xia {
    overflow: hidden;
    margin: 0 auto 15px;
  }
  
  .qz-foot-xia p {
    height: 28px;
    font-size: 12px;
    line-height: 28px;
    color: #999;
    margin: 0 0 5px;
  }
  
  .qz-foot-xia span {
    padding-right: 10px;
  }
  
  .fmenu {
    display: block;
    overflow: visible;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .fmenu li.rmzf {
    padding-left: 0;
  }
  
  .fmenu li.zwgjy,
  .fmenu li.zwgjy a {
    padding-right: 0;
    background: none;
    border-right: 0 solid #999;
  }
  
  .fmenu li {
    position: relative;
    float: left;
    padding-right: 20px;
    padding-left: 20px;
    color: #cccdd3;
    font-size: 12px;
    border-right: 1px solid #999;
    overflow: visible;
    line-height: normal;
  }
  
  .fmenu li a {
    display: block;
    color: #cccdd3;
    font-size: 12px;
    padding-right: 5px;
    background: none;
    text-decoration: none;
  }
  
  .fmenu li a:hover {
    color: var(--bg-white);
  }
  
  .beian {
    color: var(--text-light);
  }
  
  .in-code,
  .ou-code {
    position: absolute;
    top: 50px;
  }
  
  .in-code {
    right: 10px;
  }
  
  .ou-code {
    right: 150px;
  }
  
  .in-code img,
  .ou-code img {
    width: 80px;
  }
  
  .code_tx {
    color: var(--text-light);
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
  }

/* ========================================
   支付弹窗专用样式
   ======================================== */
   .pd-10-20 {
    padding: 10px 20px!important;
   }
   .pd-6-16 {
    padding: 6px 16px!important;
   }
   .pd-8-12 {
    padding: 8px 12px!important;
   }
   .pd-6-12 {
    padding: 6px 12px!important;
   }
   .pd-12-20 {
    padding: 12px 20px!important;
   }
   .pd-20 {
    padding: 20px!important;
   }
   .f-w600{
    font-weight: 600!important;
   }
   .m-w-380{
   max-width: 380px!important;
  }
   
/* ========================================
/* Toast 容器样式 - 居中显示 */
#toastContainer {
    z-index: 9999 !important;
    pointer-events: none;
    align-items: center; /* toast 水平居中堆叠 */
}

#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;        /* 覆盖 Bootstrap 默认 350px */
    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;
}

/* ===== 全站弹窗统一样式（确认框与各页面 Bootstrap Modal 共用）=====
 *
 * 视觉基准 = 积分支付弹窗 #pointsPayModal（见 detail-consolidated.css「支付弹窗专用样式」段）：
 * 1px 边框 + 4px 圆角、无阴影、15px 标题、30px 高小按钮、底部不描线不铺灰。
 * 支付弹窗是站内打磨过的弹窗范式，其余弹窗一律向它看齐，别各长各的。
 *
 * 【改前是什么样】header 带渐变、10px 圆角，footer 铺 #fafafa 加上边框，
 * content 挂 0 12px 40px 的重阴影——这条阴影连支付弹窗都被殃及
 * （.pay-content 没设 box-shadow，common.css 后加载，直接盖上去）。
 * 这才是确认框看起来「原始」的真正原因，不是 Bootstrap 默认。
 *
 * 🔴 别再为单个弹窗另建 css 文件：站内 CSS 按 PC / 手机各一份公共表组织，
 *    另起文件只多一次 CDN 请求（按次计费），解决不了任何问题。
 */

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

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

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

.modal-body {
    padding: 16px;
    font-size: 13px;
    line-height: 1.7;
    color: #4E5969;
}

/* 底部：不描线、不铺灰底——外层已有边界，里面再切一刀再铺一层灰是多余噪音 */
.modal-footer {
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 0;
    background-color: transparent;
    border-radius: 0;
}

/* Bootstrap 给 .modal-footer > * 加了 margin，会和 gap 叠加，清掉 */
.modal-footer > * {
    margin: 0;
}

/* 按钮：与 #pointsPayModal .pay-btn 同参数（30px 高、13px 字、4px 圆角） */
.modal-footer .btn {
    height: 30px;
    padding: 0 16px;
    font-weight: normal;
    border-radius: 4px;
    font-size: 13px;
    line-height: 28px;
    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);
}

/* 确认框（common.js showConfirm 生成）：按内容收紧并显式水平居中 */
.simple-confirm-dialog {
    max-width: max-content;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* 确认按钮图标样式 */
.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;
}


/* 响应式优化 */
@media (max-width: 576px) {
    .toast {
        min-width: 90vw;
        max-width: 90vw;
    }
    
    #toastContainer {
        left: 5%;
        right: 5%;
        padding: 0.5rem !important;
    }
}

/* 会员身份 VIP 图标（主题色）：全站通用，与手机端 .vip-badge-mobile 同一套（原定义在 member.css，因非会员页的 VIP 引导也要用而上移全局） */
.vip-badge-pro {
    font-size: 18px;
    color: var(--primary-color);
    vertical-align: -1px;
}

/* ======================================
   预测功能相关样式
   ====================================== */

/* 预测配置弹窗 */
#housePriceForecastModal .form-check-label, #forecastModal .form-check-label, #rankingForecastModal .form-check-label, #housePriceRankingForecastModal .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, #forecastModal .form-check-label:hover, #rankingForecastModal .form-check-label:hover, #housePriceRankingForecastModal .form-check-label:hover {
    background-color: rgba(0, 132, 255, 0.05);
}

#housePriceForecastModal .form-check-input:checked + .form-check-label, #forecastModal .form-check-input:checked + .form-check-label, #rankingForecastModal .form-check-input:checked + .form-check-label, #housePriceRankingForecastModal .form-check-input:checked + .form-check-label {
    background-color: rgba(0, 132, 255, 0.1);
}

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

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

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

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

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

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

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

#housePriceForecastModal .form-range::-webkit-slider-thumb, #forecastModal .form-range::-webkit-slider-thumb, #rankingForecastModal .form-range::-webkit-slider-thumb, #housePriceRankingForecastModal .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, #rankingForecastModal .form-range::-moz-range-thumb, #housePriceRankingForecastModal .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, #rankingForecastModal .modal-content, #housePriceRankingForecastModal .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

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

/* ==================== 统一分页组件样式 ====================
 * 覆盖 Bootstrap 默认蓝色（#0d6efd），统一为设计规范主色
 * 供所有页面分页组件（pc/components/pagination.html）使用
 * ========================================================= */
.pagination-info {
  font-size: 13px;
  color: var(--text-muted);
}

.pagination-info .text-primary {
  color: var(--primary-color) !important;
  font-feature-settings: "tnum" on, "lnum" on;
}

/* 轻量分页：去 Bootstrap 重边框，独立圆角按钮 + 间距，对齐框架风格 */
.pagination {
  display: flex;
  gap: 4px;
}

.pagination .page-link {
  color: var(--text-dark) !important;
  border: none;
  margin-left: 0;
  background: transparent;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm, 4px);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.pagination .page-link:hover {
  color: var(--primary-color) !important;
  background-color: var(--bg-hover, #f2f3f5);
}

.pagination .page-link:focus {
  box-shadow: none;
  outline: none;
}

.pagination .page-item.active .page-link {
  background-color: var(--active-bg-light) !important;
}

.pagination .page-item.disabled .page-link {
  color: var(--text-light) !important;
  background-color: transparent;
}

/* JS 动态显隐工具类（无 !important，不阻断 jQuery .show()/.hide()） */
.hidden { display: none; }

/* 分段切换控件（次要切换：区域类型等）— 连体描边、选中浅蓝底 */
.seg-tabs {
  display: inline-flex;
  border: 1px solid var(--border-color-dark);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}
.seg-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 16px;
  font-size: 13px;
  line-height: 1.2;
  color: var(--secondary-slate);
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
.seg-tab + .seg-tab {
  border-left: 1px solid var(--border-color-dark);
}
.seg-tab:hover {
  color: var(--primary-color);
}
.seg-tab.active {
  background: rgba(26, 79, 190, 0.08);
  color: var(--secondary-slate);
}
