/* EyeNet — static portal shell */
:root {
  --nav-bg: #164a84;
  --nav-text: #ffffff;
  --nav-hover: rgba(255, 255, 255, 0.12);
  --nav-active: rgba(255, 255, 255, 0.2);
  --submit-bg: #e67e22;
  --submit-hover: #f39c12;
  --page-bg: #f5f7fa;
  --section-muted: #eef2f6;
  /* 全站版心：主内容 / 页脚等；顶栏内层 .header-inner 为通栏，不引用此变量 */
  --layout-max-width: 1800px;
  --layout-width: min(96%, var(--layout-max-width));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 避免顶栏/负 margin 区等造成的整页横向溢出；顶栏仍用 visible 不裁切导航 */
  overflow-x: hidden;
  width: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background: var(--page-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* jQuery .load() 注入后：子节点参与 body 的 flex，等同原先 replaceWith 顶栏/页脚 */
#site-header-mount,
#site-footer-mount {
  display: contents;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  /* 勿 hidden：单行主导航略宽时会被裁切；纵向仍由白底条自然裁切 */
  overflow-x: visible;
  overflow-y: visible;
}

/* 顶栏通栏：导航区铺满白底条，不与正文共用居中版心（正文仍用 --layout-width） */
.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(1.25rem, 3.5vw, 2.75rem);
  min-height: clamp(3.2rem, calc(2.55rem + 1.35vw), 5.5rem);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  box-sizing: border-box;
}

.brand {
  width: fit-content;
  max-width: min(13rem, 32vw);
  /* 占位由 .brand-img 固定盒宽承担 */
  min-width: 0;
  /* 与主导航之间的留白：随视口收，避免固定 14rem 在中等宽度下挤掉导航 */
  margin-right: clamp(0.6rem, 0.3rem + 2.65vw, 5.5rem);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
}

.brand-text {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-img {
  display: block;
  box-sizing: border-box;
  /* 固定槽位：无图与有图同一占位，避免 decode 前后横向差一帧 */
  width: clamp(5.5rem, 15vw, 11rem);
  height: clamp(1.5rem, calc(0.78rem + 3.4vw), 4rem);
  max-width: min(13rem, 32vw);
  object-fit: contain;
  object-position: left center;
  filter: none;
}

/* 无站点 logo：占位仍在，仅不可见，避免 display:none 导致槽位坍缩 */
.brand-img.brand-img--empty {
  opacity: 0;
  pointer-events: none;
}

.main-nav {
  display: flex;
  flex: 1 ;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  min-width: 0;
  margin-left: 0;
  /* 主导航不靠死视口右缘（与 header-inner 右 padding 叠加形成稳定边距） */
  padding-right: clamp(0.35rem, 0.9vw, 1.1rem);
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  /* 约束：单行导航 + 无横向滚动条 —— 字号按「剩余宽度」缩放（见 .nav-list + @supports cqi） */
  container-type: inline-size;
  container-name: site-nav;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  /* 大屏显著加大；窄屏仍靠 clamp/cqi 缩小，避免裁切 */
  font-size: clamp(0.28rem, 0.08rem + 1.22vw, 1.68rem);
  /* 项与项之间不留缝，靠链接 hover / active 背景区分 */
  gap: 0;
}

/* 优先：字号随主导航容器宽度变化 */
@supports (font-size: 1cqi) {
  .nav-list {
    font-size: clamp(0.28rem, 0.1rem + 1.38cqi, 1.68rem);
    gap: 0;
  }
}

.nav-list li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-link__ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.55em;
  height: 1.55em;
  margin-right: 0.32em;
  overflow: hidden;
}

.nav-link__ico-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-link__ico-img--active {
  opacity: 0;
  z-index: 1;
}

.nav-list a.is-active .nav-link__ico-img--idle,
.nav-list .nav-link--dropdown-trigger.is-active .nav-link__ico-img--idle {
  opacity: 0;
}

.nav-list a.is-active .nav-link__ico-img--active,
.nav-list .nav-link--dropdown-trigger.is-active .nav-link__ico-img--active {
  opacity: 1;
}

.nav-list a,
.nav-list .nav-link--dropdown-trigger {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.36em;
  padding-bottom: 0.36em;
  /* 窄屏主要靠缩小左右 padding 腾出宽度（非 margin） */
  padding-left: clamp(0.38rem, 0.14rem + 1.15vw, 1.4rem);
  padding-right: clamp(0.38rem, 0.14rem + 1.15vw, 1.4rem);
  min-height: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1em;
  color: #263A63;
  text-decoration: none;
  border-radius: clamp(8px, calc(5px + 0.5vw), 14px);
  white-space: nowrap;
  /* 底边指示用 inset 阴影，不占布局宽度；透明 → 有色避免点击时尺寸跳变 */
  box-shadow: inset 0 -2px 0 0 transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-list .nav-link--dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  /* font: inherit; */
  letter-spacing: inherit;
  text-align: inherit;
}

.nav-list a:hover,
.nav-list .nav-link--dropdown-trigger:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #263A63;
}

.nav-list a.is-active,
.nav-list a.is-active:hover,
.nav-list .nav-link--dropdown-trigger.is-active,
.nav-list .nav-link--dropdown-trigger.is-active:hover {
  background: #e8edf5;
  color: #64748b;
  font-weight: 700;
  /* box-shadow: inset 0 -2px 0 0 #2b579a; */
}

/* Analysis 悬停/聚焦下拉（仅 .nav-item--dropdown） */
.nav-item--dropdown {
  position: relative;
  align-items: stretch;
}

.nav-item--dropdown .nav-link--dropdown-trigger {
  z-index: 2;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 120;
  min-width: max(100%, 15.5rem);
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: clamp(4px, calc(2.5px + 0.25vw), 6px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.15rem);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

.nav-item--dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.45rem;
  z-index: 119;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-item--dropdown.nav-item--dropdown--suppress-open .nav-dropdown,
.nav-item--dropdown.nav-item--dropdown--suppress-open:hover .nav-dropdown,
.nav-item--dropdown.nav-item--dropdown--suppress-open:focus-within .nav-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.15rem);
}

.nav-dropdown > li {
  width: 100%;
}

.nav-dropdown a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 1rem;
  font-family: Arial, sans-serif;
  font-size: clamp(0.72rem, 0.62rem + 0.35vw, 0.92rem);
  font-weight: 600;
  line-height: 1.35;
  color: #263a63;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0;
  box-shadow: none;
}

.nav-dropdown a:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #263a63;
}

.nav-dropdown__pending {
  cursor: default;
}

/* 主导航容器变窄时，左右 padding 跟剩余宽度走（比纯 vw 更贴实际可用宽度） */
@supports (padding-left: 1cqi) {
  .nav-list a,
  .nav-list .nav-link--dropdown-trigger {
    padding-left: clamp(0.38rem, 0.12rem + 1.28cqi, 1.4rem);
    padding-right: clamp(0.38rem, 0.12rem + 1.28cqi, 1.4rem);
  }
}

/* 主导航区域极窄：字号再收一档 + 链接 padding 再收紧（须写在通用 .nav-list a 之后） */
@container site-nav (max-width: 560px) {
  .nav-list {
    font-size: clamp(0.24rem, 0.06rem + 1.02cqi, 1.68rem);
    gap: 0;
  }

  .nav-list a,
  .nav-list .nav-link--dropdown-trigger {
    padding-top: 0.32em;
    padding-bottom: 0.32em;
    padding-left: clamp(0.3rem, 0.08rem + 0.95cqi, 1.4rem);
    padding-right: clamp(0.3rem, 0.08rem + 0.95cqi, 1.4rem);
    font-weight: 700;
  }
}

/* 约 860–1100px：字略大、外框不胀：抬字号 + 略收 padding / 图标 em 框 */
@media (min-width: 860px) and (max-width: 1100px) {
  .nav-list {
    font-size: clamp(0.92rem, 0.34rem + 1.06vw, 1.62rem);
    gap: clamp(0.06rem, 0.04rem + 0.18vw, 0.32rem);
  }

  @supports (font-size: 1cqi) {
    .nav-list {
      font-size: clamp(0.92rem, 0.32rem + 1.2cqi, 1.62rem);
      gap: clamp(0.06rem, 0.03rem + 0.22cqi, 0.32rem);
    }
  }

  .nav-list a,
  .nav-list .nav-link--dropdown-trigger {
    padding-top: 0.28em;
    padding-bottom: 0.28em;
    padding-left: clamp(0.36rem, 0.12rem + 0.78vw, 1.1rem);
    padding-right: clamp(0.36rem, 0.12rem + 0.78vw, 1.1rem);
  }

  @supports (padding-left: 1cqi) {
    .nav-list a,
    .nav-list .nav-link--dropdown-trigger {
      padding-left: clamp(0.36rem, 0.1rem + 0.92cqi, 1.1rem);
      padding-right: clamp(0.36rem, 0.1rem + 0.92cqi, 1.1rem);
    }
  }

  .nav-link__ico {
    margin-right: 0.28em;
    width: 1.45em;
    height: 1.45em;
  }
}

/* 视口变窄：略收 Logo 与主导航之间的间距（不改 flex 布局，避免菜单与 Logo 贴死、字号被压得过小） */
@media (max-width: 1240px) {
  .brand {
    margin-right: clamp(0.45rem, 0.38rem + 1.15vw, 1.9rem);
  }
}

@media (max-width: 960px) {
  .brand {
    max-width: min(10rem, 44vw);
    margin-right: clamp(0.28rem, 0.24rem + 0.75vw, 1.05rem);
  }

  .brand-img {
    width: clamp(4rem, 24vw, 8.5rem);
    height: clamp(1.05rem, 0.42rem + 2.65vw, 2.45rem);
  }
}

/* 860–1100px：Logo 与主导航间距（写在 ≤960 之后，覆盖 1240/960 的 margin-right） */
@media (min-width: 860px) and (max-width: 1100px) {
  .brand {
    margin-right: clamp(0.65rem, 0.38rem + 1.1vw, 1.45rem);
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.65rem clamp(1rem, 4vw, 1.75rem);
    min-height: 0;
  }

  .brand {
    min-width: 0;
    max-width: min(10.5rem, 72vw);
    margin-right: clamp(0.25rem, 0.22rem + 0.55vw, 0.65rem);
  }

  .brand-img {
    width: clamp(4rem, 32vw, 9rem);
    height: clamp(1.35rem, 0.5rem + 4.5vw, 2.35rem);
  }

  .main-nav {
    width: 100%;
    justify-content: stretch;
    flex: none;
    min-width: 0;
    overflow-x: visible;
    padding-right: 0;
  }

  .nav-list {
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    width: 100%;
    flex: none;
    max-width: none;
    font-size: 1rem;
  }

  .nav-list a,
  .nav-list .nav-link--dropdown-trigger {
    min-height: 2.75rem;
    font-size: clamp(0.98rem, 0.88rem + 0.45vw, 1.12rem);
    font-weight: 700;
    padding: 0.4rem 0.65rem;
  }
}

.page-main {
  flex: 1;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-footer {
  background: #f8fafc;
  color: #475569;
  border-top: 1px solid #e2e8f0;
  margin-top: auto;
}

.footer-inner {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  color: #334155;
}

.layout-error {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: #fff3cd;
  color: #856404;
  border-bottom: 1px solid #ffc107;
}

/* Statistics / Analysis：后台富文本挂载区 */
.statistics-page-rich,
.analysis-page-rich {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
}

.statistics-page-rich img,
.analysis-page-rich img {
  max-width: 100%;
  height: auto;
}
.statistics-page .help-article-title {
  display: none;
}

/* Statistics page: sticky nav + window scroll + section panels + chart cards */
.statistics-page {
  background: #f4f6f8;
  --statistics-nav-top: 6rem;
}

.statistics-page .help-layout {
  align-items: flex-start;
}

.statistics-page .help-sidebar {
  flex: 0 0 280px;
  max-width: 100%;
  align-self: flex-start;
}

.statistics-page .help-sidebar-nav {
  max-height: calc(100vh - var(--statistics-nav-top) - 2rem);
  overflow-y: auto;
}

.statistics-page .help-sidebar-nav.is-fixed {
  position: fixed;
  z-index: 5;
}

.statistics-page .help-sidebar-nav.is-fixed.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.statistics-page-content {
  min-width: 0;
}

.statistics-page-sections {
  min-height: 12rem;
  padding-bottom: 0.5rem;
}

.statistics-page-inner {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.statistics-section {
  scroll-margin-top: var(--statistics-nav-top);
  border: 1px solid #d0d5dc;
  border-radius: 16px;
  background: #fff;
  padding: 1.25rem 2rem 1.5rem;
}

.statistics-section-title {
  margin: 0 0 1.35rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #d0d5dc;
  font-size: 2rem;
  font-weight: 700;
  color: #263a63;
  line-height: 1.35;
  text-align: center;
}

.statistics-section-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.statistics-chart-card {
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  background: #fff;
  padding: 1rem 1.15rem 1.15rem;
}

.statistics-chart-card__title {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: clamp(0.85rem, 1.1vw + 0.5rem, 1.4rem);
  font-weight: 600;
  color: #000;
  line-height: 1.45;
}

.statistics-chart-card__title-line {
  display: block;
}

@media (min-width: 1250px) {
  .statistics-chart-card__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2em;
  }

  .statistics-chart-card__title-line {
    white-space: nowrap;
    max-width: 100%;
  }
}

@media (min-width: 1250px) and (max-width: 1499.98px) {
  .statistics-chart-card__title {
    font-size: clamp(0.94rem, calc(0.3rem + 0.78vw), 1.07rem);
  }
}

@media (min-width: 1500px) {
  .statistics-chart-card__title {
    font-size: clamp(1rem, 0.35rem + 1.05vw, 1.6rem);
  }
}
.statistics-chart-card__media {
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
}

.statistics-chart-card__media img {
  display: block;
  width: auto;
  max-width: 72%;
  height: auto;
  margin: 0 auto;
}

.statistics-section-empty {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .statistics-page .help-sidebar-nav.is-fixed {
    position: static;
    top: auto !important;
    left: auto !important;
    width: auto !important;
  }

  .statistics-page .help-sidebar-nav.is-fixed.is-hidden {
    visibility: visible;
    pointer-events: auto;
  }

  .statistics-section {
    scroll-margin-top: 1rem;
  }
}

/* analysis.html：原型顶栏 + 左侧表单 + 右侧示意图 */
.analysis-page-main {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  /* 勿用 padding-top:0，否则会盖掉 .page-main 与顶栏之间的留白 */
  padding: 2rem 1rem 2.5rem;
}

.analysis-page-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1.25rem;
  background: #263A63;
  color: var(--nav-text);
  text-align: center;
  box-shadow: 0 2px 10px rgba(22, 74, 132, 0.2);
}

.analysis-page-banner-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.analysis-page-intro {
  margin: 0 0 1rem;
}

.analysis-page-intro .analysis-page-banner {
  margin-bottom: 0;
}

.analysis-page-intro-subtitle {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: #263a63;
}

.analysis-page-intro--conserved {
  margin-bottom: 0;
}

.analysis-page-intro--conserved .analysis-page-intro-subtitle {
  margin: 1.5rem 0;
}

.analysis-conserved-assembly-box {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 0.75rem;
  box-sizing: border-box;
  height: 3rem;
  min-height: 3rem;
  margin: 0 0 0.65rem;
  padding: 0 0.75rem;
  background: #fff;
  border: 1px solid #263a63;
  border-radius: 4px;
  font-size: 1.125rem;
  line-height: 1.4;
  color: #1a2332;
}

.analysis-conserved-assembly-box__species {
  flex: 0 0 auto;
  font-weight: 700;
}

.analysis-conserved-assembly-box__build {
  /* flex: 1 1 auto; */
  min-width: 0;
  text-align: right;
  font-weight: 700;
}

.analysis-conserved-assembly-box--target {
  position: relative;
  padding: 0;
  overflow: visible;
}

.analysis-conserved-assembly-dropdown__trigger {
  display: grid;
  grid-template-columns: 8.5rem 18rem;
  justify-content: center;
  justify-items: start;
  align-items: center;
  column-gap: 1.25rem;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 1.75rem 0 0.75rem;
  border: none;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  font-size: inherit;
  line-height: 1.4;
  color: #1a2332;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
}

.analysis-conserved-assembly-dropdown__trigger:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(38, 58, 99, 0.2);
}

.analysis-conserved-assembly-dropdown__caret {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 0;
  height: 0;
  margin-top: -3px;
  border-top: 6px solid #1a2332;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  pointer-events: none;
}

.analysis-conserved-assembly-dropdown__menu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 12;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #263a63;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(22, 74, 132, 0.12);
  max-height: 14rem;
  overflow: auto;
}

.analysis-conserved-assembly-dropdown__menu[hidden] {
  display: none;
}

.analysis-conserved-assembly-dropdown__option {
  display: grid;
  grid-template-columns: 8.5rem 18rem;
  justify-content: center;
  justify-items: start;
  align-items: center;
  column-gap: 1.25rem;
  padding: 0.45rem 0.75rem;
  font-size: 1.125rem;
  line-height: 1.4;
  cursor: pointer;
}

.analysis-conserved-assembly-dropdown__trigger .analysis-conserved-assembly-box__build,
.analysis-conserved-assembly-dropdown__option .analysis-conserved-assembly-box__build {
  text-align: left;
  white-space: nowrap;
}

.analysis-conserved-assembly-dropdown__option:hover,
.analysis-conserved-assembly-dropdown__option.is-selected {
  background: #263a63;
  color: #fff;
}

.analysis-conserved-assembly-dropdown__option.is-selected {
  font-weight: 700;
}

.analysis-flow--conserved .analysis-flow__col--conserved,
.analysis-flow--conserved .analysis-flow__col--input.analysis-flow__col--conserved,
.analysis-flow--conserved .analysis-flow__col--results.analysis-flow__col--conserved {
  min-width: 0;
  gap: 0;
  align-items: stretch;
}

.analysis-flow.analysis-flow--conserved {
  display: flex;
  align-items: flex-start;
  gap: 1rem 2rem;
}

.analysis-flow.analysis-flow--conserved > .analysis-flow__col--input,
.analysis-flow.analysis-flow--conserved > .analysis-flow__col--results {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.analysis-flow.analysis-flow--conserved > .analysis-flow__arrow {
  align-self: center;
  flex: 0 0 auto;
}

.analysis-conserved-section-badge {
  align-self: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  margin: 0 0 0.75rem;
  padding: 0 4rem;
  background: #263a63;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 3px;
  text-align: center;
}

.analysis-conserved-section-badge--sm {
  height: 3.5rem;
  padding: 0 3rem;
  font-size: 30px;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-page-main--conserved .analysis-card {
  position: relative;
  overflow: visible;
}

.analysis-card--conserved-dashed {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 18rem;
  min-height: 18rem;
  box-sizing: border-box;
}

.analysis-page-main--conserved .analysis-card.analysis-card--conserved-dashed {
  padding: 0.85rem 0.75rem 0.85rem;
}

.analysis-card__body--conserved-gene {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 0.5rem 0;
}

.analysis-card__body--conserved-result {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0.5rem 0;
}

.analysis-conserved-result-pane {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: auto;
  padding: 0;
  box-sizing: border-box;
}

.analysis-conserved-result-pane .analysis-result-table {
  font-size: 1rem;
  line-height: 1.45;
}

.analysis-conserved-result-pane .analysis-result-table th,
.analysis-conserved-result-pane .analysis-result-table td {
  padding: 0.42rem 0.6rem;
}

.analysis-conserved-result-pane .analysis-result-table td.analysis-result-table__nomatch {
  font-size: 1rem;
}

.analysis-conserved-result-pane .analysis-result-empty {
  font-size: 1rem;
  line-height: 1.5;
}

.analysis-page-main--conserved .analysis-workbench {
  margin-top: 0;
  padding-top: 1.75rem;
}

.analysis-gene-input {
  font-family: inherit;
}

.analysis-workbench {
  background: #fff;
  border-radius: 10px;
  padding: 3.25rem 1.25rem 3.25rem;
  box-shadow: 0 1px 4px rgba(22, 74, 132, 0.08);
  border: 1px solid #dde3eb;
  margin-top: 40px;
}

/* analysis.html — Novel variant 三栏静态工作区 */
.analysis-flow {
  display: flex;
  align-items: stretch;
  gap: 1rem 2.0rem;
}

.analysis-flow__col--input {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 31%;
  flex: 0 0 31%;
}

.analysis-flow__arrow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0 0.15rem;
}

.analysis-flow__arrow img {
  display: block;
  width: auto;
  height: auto;
  max-width: 2.75rem;
}

.analysis-flow__col--results {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.375rem;
}

.analysis-card {
  position: relative;
  z-index: 0;
  padding: 2.85rem 1rem 1.15rem;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: none;
}

.analysis-card--variant {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 20rem;
  padding-bottom: 1.35rem;
  box-sizing: border-box;
}

.analysis-card-border {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.analysis-card-border__svg {
  display: block;
  overflow: visible;
}

.analysis-card-border__svg path {
  stroke: #263a63;
  stroke-width: 2;
  stroke-dasharray: 16 12;
  stroke-linecap: butt;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.analysis-card-badge {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.65rem 4rem;
  transform: translate(-50%, -50%);
  background: #263a63;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 3px;
  pointer-events: none;
}

.analysis-card-badge--sm {
  padding: 0.45rem 3rem;
  font-size: 30px;
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.analysis-card__body {
  position: relative;
  z-index: 2;
}

.analysis-card__body--variant {
  flex: 1 1 auto;
  min-height: 13rem;
  padding: 0.35rem 0.5rem 0;
}

.analysis-variant-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1a2332;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.analysis-variant-input::placeholder {
  color: #5a6a7a;
  opacity: 1;
}

.analysis-variant-input:focus {
  outline: none;
  box-shadow: none;
}

.analysis-flow__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-evenly;
  margin-top: auto;
  padding-top: 1.15rem;
}

.analysis-flow__actions.analysis-flow__actions--conserved {
  flex-wrap: nowrap;
  width: 100%;
  margin-top: 0;
  padding-top: 1.15rem;
  gap: 0;
}

.analysis-flow__actions--conserved-submit {
  justify-content: flex-end;
}

.analysis-flow__actions--conserved-example {
  justify-content: flex-start;
}

.analysis-card--result {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-top: 1rem;
  padding-bottom: inherit;
  height: 204px;
}

.analysis-card__body--result {
  width: 100%;
  min-width: 0;
}

.analysis-result-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  min-height: 7.25rem;
}

.analysis-result-figure {
  /* flex: 0 0 180px; */
  width: 180px;
  margin-left: 10px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.analysis-result-figure img {
  display: block;
  max-width: 100%;
  /* max-height: 9rem; */
  width: auto;
  height: auto;
  object-fit: contain;
}

.analysis-result-pane {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  border: 1px solid #c5ccd6;
  border-radius: 4px;
  background: #fff;
  height: 144px;
  overflow: auto;
  padding: 0.35rem 0.4rem;
  box-sizing: border-box;
  margin-top: 28px;
}

.analysis-result-table-wrap {
  width: max-content;
  min-width: 100%;
  max-width: none;
}

.analysis-result-table {
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

.analysis-result-table th,
.analysis-result-table td {
  border: 1px solid #d0d5dd;
  padding: 0.42rem 0.6rem;
  white-space: nowrap;
}

.analysis-result-table th {
  background: #f0f4f9;
  font-weight: 600;
  color: #1a2332;
}

.analysis-result-table td {
  text-align: center;
  vertical-align: middle;
  color: #1a2332;
}

.analysis-result-table td.analysis-result-table__nomatch {
  text-align: left;
  white-space: normal;
  color: #5a6a7a;
  font-size: 1rem;
}

.analysis-result-table__nomatch code {
  font-size: 0.85em;
}

.analysis-result-empty {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #5a6a7a;
}

.btn-analysis-primary,
.btn-analysis-example {
  padding: 0.4rem 1.35rem;
  font-size: 20px;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-analysis-primary {
  color: #fff;
  background: #123a6b;
  border-color: #123a6b;
}

.btn-analysis-primary:hover {
  background: #11427f;
  border-color: #11427f;
  color: #fff;
}

.btn-analysis-example {
  color: #123a6b;
  background: #fff;
  border-color: #123a6b;
}

.btn-analysis-example:hover {
  background: #f0f4f9;
  color: #11427f;
  border-color: #11427f;
}

.btn-analysis-primary:focus-visible,
.btn-analysis-example:focus-visible {
  outline: 2px solid #263a63;
  outline-offset: 2px;
}

@media (max-width: 991.98px) {
  .analysis-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .analysis-flow__col--input {
    flex: 1 1 auto;
    max-width: none;
  }

  .analysis-flow__arrow {
    transform: rotate(90deg);
    padding: 0.35rem 0;
  }

  .analysis-card--variant {
    flex: 0 0 auto;
    min-height: 14rem;
  }

  .analysis-flow__actions {
    margin-top: 0;
    padding-top: 1.15rem;
  }

  .analysis-result-row {
    flex-direction: column;
  }

  .analysis-result-figure {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .analysis-card-badge {
    font-size: 1.1rem;
    padding: 0.5rem 1.25rem;
  }

  .analysis-card-badge--sm {
    font-size: 0.82rem;
    padding: 0.38rem 0.75rem;
    white-space: normal;
    text-align: center;
  }

  .analysis-flow__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-analysis-primary,
  .btn-analysis-example {
    width: 100%;
    text-align: center;
  }
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.analysis-panel--left {
  min-width: 0;
}

.analysis-panel--right {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: #fafbfd;
}

.analysis-variant-form {
  margin: 0;
}

.analysis-panel-heading {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #000;
}

.analysis-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
  margin-bottom: 1rem;
}

.analysis-option-block {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #edf1f5;
}

.analysis-option-block:last-of-type {
  border-bottom: none;
}

.analysis-radio-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #2c3e50;
  cursor: pointer;
}

.analysis-radio-line input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.analysis-radio-line > span {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.analysis-option-hint {
  display: inline;
  font-size: 0.82rem;
  font-weight: 400;
  color: #5a6a7a;
}

.analysis-file-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-left: 1.5rem;
}

.analysis-file-input {
  flex: 1 1 140px;
  min-width: 0;
}

.analysis-example-btn {
  flex-shrink: 0;
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  background: #5bc0de;
  border: 1px solid #46b8da;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.analysis-example-btn:hover {
  background: #4cb8d9;
  border-color: #39a9c9;
  color: #fff;
}

.analysis-example-btn:focus-visible {
  outline: 2px solid rgba(91, 192, 222, 0.55);
  outline-offset: 2px;
}

.analysis-select-row {
  display: flex;
  align-items: stretch;
  margin-bottom: 0.65rem;
  border: 1px solid #c5ccd6;
  border-radius: 6px;
  overflow: hidden;
  max-width: 100%;
}

.analysis-select-tag {
  flex: 0 0 auto;
  min-width: 6.5rem;
  padding: 0.4rem 0.65rem;
  background: #4a5568;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-select {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
}

.analysis-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.analysis-btn-cta {
  padding: 0.4rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  background: #3d4f5f;
  color: #fff;
  border: 1px solid #2f3d4a;
}

.analysis-btn-cta:hover {
  background: #2f3d4a;
  color: #fff;
}

@media (max-width: 991.98px) {
  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .analysis-panel--right {
    order: 2;
  }
}

.content-section {
  background: #fff;
  border-radius: 10px;
  padding: 2rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(22, 74, 132, 0.08);
}

.content-section.muted {
  background: var(--section-muted);
}

.content-section h1 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  color: var(--nav-bg);
}

.content-section h2 {
  margin: 0;
    font-size: clamp(1.65rem, 3.8vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    font-variant: normal;
    color: #263a63;
}

.content-section p {
  margin: 0;
  color: #4a5a6a;
}

/* —— Home: hero title + subtitle (centered, black) —— */
.home-intro {
  box-shadow: none;
  border-radius: 0;
}

/* 首屏：渐变主带（标题 + 检索 + 论文 / 入口 / Try） */
.home-intro .home-main-band {
  margin: -2rem -1.5rem 0;
  padding: 2.35rem 1.5rem 2.6rem;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 255, 255, 0.92) 0%, transparent 55%),
    linear-gradient(168deg, #e8f2fc 0%, #dceaf8 38%, #eef3f9 100%);
  border-bottom: 1px solid rgba(148, 184, 220, 0.55);
}

.home-intro .home-main-band__inner {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

.home-intro .home-main-band .home-hero {
  margin: 0 auto 1.25rem;
  max-width: 960px;
}

.home-intro .home-main-band .quick-search {
  margin-top: 0.35rem;
}

.home-intro .home-main-band .home-portal {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 1.05rem;
}

.home-intro .home-main-band .home-publication {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(148, 163, 184, 0.42);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset;
}

.home-intro .home-main-band .home-summary-card {
  background: rgba(255, 255, 255, 0.94);
}

.home-intro .home-main-band .home-try-examples {
  justify-content: flex-start;
}

/* 简介 + 三图：宽屏双栏，窄屏单列 */
.home-intro .home-main-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 2rem auto 0;
  align-items: start;
}

@media (min-width: 1100px) {
  .home-intro .home-main-split {
    grid-template-columns: minmax(300px, 0.4fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.4vw, 2.75rem);
  }

  .home-intro .home-main-split__intro {
    position: sticky;
    top: 4.75rem;
    align-self: start;
  }
}

.home-intro .home-main-split__intro .db-intro {
  margin-top: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.home-intro .home-main-split__primary .home-stats-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.home-intro .home-main-split__primary > .home-stats-section:first-child {
  margin-top: 0;
}

@media (max-width: 1099.98px) {
  .home-intro .home-main-split__intro {
    position: static;
  }
}

.home-hero {
  text-align: center;
  margin: 0 auto 1.75rem;
  max-width: 960px;
}

.home-intro .home-title {
  margin: 0 0 0.65rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.15;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

.home-intro .home-subtitle {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.55;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
}

/* —— Home: 门户条（论文 / 入口卡 / Try）—— */
.home-intro .home-portal {
  margin-top: 1.35rem;
  margin-bottom: 0;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .home-publication {
  margin: 0 0 1.15rem;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
}

.home-intro .home-publication-inner {
  max-width: 100%;
}

.home-intro .home-publication__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
}

.home-intro .home-publication__cite {
  font-style: normal;
}

.home-intro .home-publication__sep {
  margin: 0 0.35rem;
  color: #94a3b8;
}

.home-intro .home-publication__text a {
  font-weight: 600;
  color: #164a84;
  text-decoration: none;
}

.home-intro .home-publication__text a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-intro .home-summary {
  margin: 0 0 1rem;
}

.home-intro .home-summary__title {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  text-align: left;
}

.home-intro .home-summary-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 900px) {
  .home-intro .home-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .home-intro .home-summary-grid {
    grid-template-columns: 1fr;
  }
}

.home-intro .home-summary-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 1rem 1rem 0.95rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.home-intro .home-summary-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.home-intro .home-summary-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.home-intro .home-summary-card__kicker {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #164a84;
  margin-bottom: 0.35rem;
}

.home-intro .home-summary-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.home-intro .home-summary-card__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #64748b;
}

.home-intro .home-summary-card__go {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
}

.home-intro .home-try-wrap {
  margin: 0 0 0.15rem;
}

.home-intro .home-try-examples {
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
  text-align: center;
}

.home-intro .home-try-examples__label {
  font-weight: 600;
  color: #64748b;
}

.home-intro .home-try-chip {
  margin: 0;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.84rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e293b;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.home-intro .home-try-chip:hover {
  border-color: #164a84;
  color: #164a84;
  background: #f8fafc;
}

.home-intro .home-try-chip:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* —— Home: 数据库简要介绍 —— */
.home-intro .db-intro {
  margin-top: 2.25rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .db-intro-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-align: left;
}

.home-intro .db-intro-card.db-intro-card--v2 {
  position: relative;
  overflow: hidden;
  --db-intro-pad-x: clamp(1.2rem, 3.2vw, 2rem);
  padding: 1.5rem var(--db-intro-pad-x) 1.55rem;
  background:
    radial-gradient(85% 50% at 100% 0%, rgba(224, 242, 254, 0.55) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 40%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--nav-bg);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.055);
}

.home-intro .db-intro-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
  border: 1px solid #d1e9ff;
  border-left: 4px solid var(--nav-bg);
  border-radius: 18px;
  padding: 1.5rem 1.75rem 1.6rem;
  box-shadow:
    0 1px 3px rgba(22, 74, 132, 0.06),
    0 12px 32px rgba(15, 23, 42, 0.04);
}

.home-intro .db-intro-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e293b;
  text-align: left;
}

.home-intro .db-intro-rich.is-loading {
  opacity: 0.65;
}

.home-intro .db-intro-rich p {
  margin: 0 0 0.75em;
}

.home-intro .db-intro-rich p:last-child {
  margin-bottom: 0;
}

/* 首页写死简介：客户正文 + 红字数字（data-home-db-intro-static） */
.home-intro .db-intro-rich--layout.db-intro-rich--client {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
}

.home-intro .db-intro-rich--client .db-intro-article {
  max-width: 100%;
  width: 100%;
  margin: 0;
}

.home-intro .db-intro-rich--client .db-intro-lead {
  margin: 0 0 1.15rem;
  padding-left: 1rem;
  border-left: 3px solid #14b8a6;
  font-size: 1.04rem;
  line-height: 1.72;
  font-weight: 500;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.home-intro .db-intro-rich--client .db-intro-panel {
  margin: 0 0 1.15rem;
  padding: 1.1rem 1.25rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--nav-bg);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.home-intro .db-intro-rich--client .db-intro-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.home-intro .db-intro-rich--client .db-intro-tail {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #334155;
}

.home-intro .db-intro-rich--client .db-intro-abbr {
  font-variant: all-small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.92em;
  color: #164a84;
}

.home-intro .db-intro-num {
  color: #c91c1c;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.home-intro .db-intro-rich img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.home-intro .db-intro-rich a {
  color: #1666b5;
  text-decoration: underline;
}

/* —— Home: 主要构建流程（多图网格；.db-flow--strip = 全宽渐变带 + 弱内框） —— */
.home-intro .db-flow {
  margin-top: 2.25rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .db-flow.db-flow--strip {
  margin-top: 2.5rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1.85rem 1.5rem 2.35rem;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(191, 219, 254, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, #f0f6fc 0%, #f8fafc 55%, #eef2f7 100%);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  border-bottom: 1px solid rgba(203, 213, 225, 0.65);
}

.home-intro .db-flow.db-flow--strip .db-flow-title {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.home-intro .db-flow.db-flow--strip .db-flow-frame {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .db-flow.db-flow--strip .db-flow-mosaic {
  gap: 1.15rem 1.35rem;
}

@media (min-width: 900px) {
  .home-intro .db-flow.db-flow--strip .db-flow-mosaic {
    position: relative;
    padding-top: 0.5rem;
  }

  .home-intro .db-flow.db-flow--strip .db-flow-mosaic::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(22, 74, 132, 0.2) 15%,
      rgba(22, 74, 132, 0.28) 50%,
      rgba(22, 74, 132, 0.2) 85%,
      transparent 100%
    );
    pointer-events: none;
  }
}

.home-intro .db-flow.db-flow--strip .db-flow-card {
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 22px rgba(15, 23, 42, 0.06);
}

.home-intro .db-flow.db-flow--strip .db-flow-card__img-wrap {
  background: #fff;
}

.home-intro .db-flow-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-align: left;
}

.home-intro .db-flow-frame {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: #fafbfc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.home-intro .db-flow-gallery {
  min-width: 0;
}

.home-intro .db-flow-gallery--empty .db-flow-mosaic {
  display: none;
}

.home-intro .db-flow-main-empty {
  margin: 0;
  padding: 1.35rem 1.1rem;
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
  line-height: 1.55;
}

.home-intro .db-flow-main-empty.is-hidden {
  display: none;
}

.home-intro .db-flow-mosaic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem 1.15rem;
}

@media (min-width: 1000px) {
  .home-intro .db-flow-mosaic {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

.home-intro .db-flow-mosaic__item {
  margin: 0;
  min-width: 0;
}

.home-intro .db-flow-card {
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.home-intro .db-flow-card__img-wrap {
  flex: 1 1 auto;
  min-height: 9.5rem;
  max-height: min(40vh, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.8rem;
  background: #f8fafc;
}

.home-intro .db-flow-card__img-wrap img {
  display: block;
  max-width: 100%;
  max-height: min(38vh, 300px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.home-intro .db-flow-card__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
  padding: 0.48rem 0.75rem 0.55rem;
  border-top: 1px solid #eef2f6;
  font-size: 0.82rem;
}

.home-intro .db-flow-card__step {
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
}

.home-intro .db-flow-card__open {
  font-weight: 600;
  color: #164a84;
  text-decoration: none;
}

.home-intro .db-flow-card__open:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-intro .db-flow-card__open:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* 旧版：无 #dbFlowGallery 时仍用平铺 grid（兼容） */
.home-intro .db-flow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 992px) {
  .home-intro .db-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .home-intro .db-flow-grid {
    grid-template-columns: 1fr;
  }
}

.home-intro .db-flow-panel {
  --flow-hover-ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(22, 74, 132, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.38s var(--flow-hover-ease),
    box-shadow 0.38s var(--flow-hover-ease);
}

.home-intro .db-flow-panel:hover {
  transform: translateY(-7px) scale(1.015);
  box-shadow:
    0 12px 28px rgba(22, 74, 132, 0.16),
    0 4px 10px rgba(22, 74, 132, 0.09);
}

@media (prefers-reduced-motion: reduce) {
  .home-intro .db-flow-panel {
    transition: box-shadow 0.25s ease;
  }

  .home-intro .db-flow-panel:hover {
    transform: none;
    box-shadow:
      0 3px 10px rgba(22, 74, 132, 0.1),
      0 1px 2px rgba(15, 23, 42, 0.05);
  }
}

.home-intro .db-flow-panel img {
  display: block;
  width: 100%;
  height: auto;
}

.home-intro .db-flow-panel--empty {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6rem;
  background: rgba(248, 250, 252, 0.95);
  box-shadow: none;
}

.home-intro .db-flow-panel--empty:hover {
  transform: none;
}

.home-intro .db-flow-empty-msg {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  text-align: center;
}

/* —— Home: 统计图 1（横向堆叠条形，白底轻边框，与图 2/3 一致） —— */
.home-intro .home-stats-section {
  margin-top: 2.75rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
}

.home-intro .home-stats-section__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000;
  text-align: left;
}

.home-intro .home-stats-section__lead {
  margin: 0 0 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5a6a7a;
  max-width: 52rem;
}

.home-intro .home-stats-chart1-shell {
  border-radius: 18px;
  padding: 0.65rem 0.45rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-intro .home-stats-chart1-canvas {
  width: 100%;
  height: min(95vw, 720px);
  min-height: 520px;
}

.home-stats-chart1-legend {
  display: none;
}

.home-stats-chart1-legend__title {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.home-stats-chart1-legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.85rem 1.15rem;
  flex: 1 1 12rem;
}

.home-stats-chart1-legend__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: 2.75rem;
}

.home-stats-chart1-legend__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid #0f172a;
  box-sizing: border-box;
  flex-shrink: 0;
}

.home-stats-chart1-legend__label {
  font-size: 0.72rem;
  line-height: 1.2;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

@media (min-width: 992px) {
  .home-intro .home-stats-chart1-canvas {
    height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro .home-stats-chart1-shell {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.28);
  }
}

/* —— Home: 统计图 2（极坐标柱 + 同心圆网格，白底轻边框） —— */
.home-intro .home-stats-section--chart2 {
  margin-top: 2.5rem;
}

.home-intro .home-stats-chart2-shell {
  border-radius: 18px;
  padding: 0.65rem 0.45rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-intro .home-stats-chart2-canvas {
  width: 100%;
  height: min(92vw, 680px);
  min-height: 440px;
}

@media (min-width: 992px) {
  .home-intro .home-stats-chart2-canvas {
    height: 580px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro .home-stats-chart2-shell {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.28);
  }
}

/* —— Home: 统计图 3（Enrichment heatmap，白底轻边框） —— */
.home-intro .home-stats-section--chart3 {
  margin-top: 2.5rem;
}

.home-intro .home-stats-chart3-shell {
  border-radius: 18px;
  padding: 0.65rem 0.45rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.home-intro .home-stats-chart3-canvas {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  height: min(120vw, 420px);
  min-height: 380px;
}

@media (min-width: 992px) {
  .home-intro .home-stats-chart3-canvas {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-intro .home-stats-chart3-shell {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.28);
  }
}

/* —— Home: Highlights / Links（index 可写死 + data-home-info-static；否则由 siteConfig 注入） —— */
.home-intro .home-info-stack {
  margin-top: 2.25rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  flex-direction: column;
  gap: 1.25rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.home-intro .home-info-stack.home-info-stack--band {
  margin-top: 2.35rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1.65rem 1.5rem 1.85rem;
  width: auto;
  max-width: none;
  box-sizing: border-box;
  gap: 0;
  background: linear-gradient(180deg, #eef2f7 0%, #f8fafc 48%, #f1f5f9 100%);
  border-top: 1px solid #d1dae6;
  border-bottom: 1px solid #d1dae6;
}

.home-intro .home-info-stack--band .home-info-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
}

@media (min-width: 1000px) {
  .home-intro .home-info-stack--band .home-info-band {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 0 1.35rem;
    align-items: start;
  }

  .home-intro .home-info-stack--band .home-info-band__col--highlights {
    padding-right: 1.35rem;
    border-right: 1px solid rgba(148, 163, 184, 0.45);
  }
}

@media (max-width: 999.98px) {
  .home-intro .home-info-stack--band .home-info-band__col:not(:last-child) {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.38);
  }
}

.home-intro .home-info-stack--band .home-info-card--feature,
.home-intro .home-info-stack--band .home-info-card--compact {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.home-intro .home-info-stack--band .home-info-head {
  border-bottom-color: rgba(148, 163, 184, 0.4);
  margin-bottom: 1rem;
}

.home-intro .home-info-stack--band .home-info-card--compact .home-info-card__title,
.home-intro .home-info-stack--band .home-info-card--compact .home-info-card__title--caps {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  border-bottom-color: rgba(148, 163, 184, 0.42);
}

.home-intro .home-info-stack--band .home-cite-panel {
  padding: 0.85rem 1rem 0.95rem;
  background: #fff;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 22px rgba(15, 23, 42, 0.05);
}

.home-intro #homeInfoStack.home-info-stack {
  display: none;
}

.home-intro #homeInfoStack.home-info-stack.home-info-stack--static-duo {
  display: flex;
}

/* 首页 Highlights / Links / Cite：滚动入场（由 home-info-reveal.js 加 class） */
@media (prefers-reduced-motion: no-preference) {
  .home-intro #homeInfoStack.home-info-reveal--armed .home-info-band__col > article,
  .home-intro #homeInfoStack.home-info-reveal--armed .home-info-bottom-row > article {
    opacity: 0;
    -webkit-transform: translate3d(0, 18px, 0);
    transform: translate3d(0, 18px, 0);
    transition:
      opacity 0.52s cubic-bezier(0.22, 0.99, 0.36, 1),
      transform 0.52s cubic-bezier(0.22, 0.99, 0.36, 1);
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    .home-info-band__col:nth-child(1)
    > article {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    .home-info-band__col:nth-child(2)
    > article {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0.1s;
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    .home-info-band__col:nth-child(3)
    > article {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0.18s;
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    > article.home-info-card--feature {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    .home-info-bottom-row
    > article:nth-of-type(1) {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0.1s;
  }

  .home-intro
    #homeInfoStack.home-info-reveal--armed.home-info-stack--in-view
    .home-info-bottom-row
    > article:nth-of-type(2) {
    opacity: 1;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0.2s;
  }
}

.home-intro .home-info-bottom-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  width: 100%;
}

@media (min-width: 768px) {
  .home-intro .home-info-bottom-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.home-intro .home-info-card[data-home-rich-card] {
  display: none;
}

.home-intro .home-info-card[data-home-rich-card][data-home-rich-filled='1'] {
  display: block;
}

.home-intro .home-info-card {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.28rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 18px rgba(15, 23, 42, 0.055);
}

.home-intro .home-info-card--feature {
  position: relative;
  overflow: hidden;
  padding: 1.45rem clamp(1.15rem, 3vw, 1.65rem) 1.55rem;
  background:
    radial-gradient(88% 58% at 100% 0%, rgba(224, 242, 254, 0.58) 0%, transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 42%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--nav-bg);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.07);
}

.home-intro .home-info-card--compact {
  position: relative;
  overflow: hidden;
  padding: 1.32rem clamp(1.1rem, 2.8vw, 1.45rem) 1.42rem;
  background:
    radial-gradient(82% 52% at 100% 0%, rgba(224, 242, 254, 0.48) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 45%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--nav-bg);
  border-radius: 18px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 26px rgba(15, 23, 42, 0.06);
}

.home-intro .home-info-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.home-intro .home-info-head__spark {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  color: var(--nav-bg);
}

.home-intro .home-info-head__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  font-family: Arial, Helvetica, sans-serif;
}

/* 首页静态双卡片：标题与 Workflow 白卡片顶栏（.db-flow-card-shell__title）一致 */
.home-intro .home-proto-card__title {
  margin: 0 0 1rem;
  padding: 0 0 clamp(0.75rem, 2vw, 1rem);
  border: none;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-size: clamp(1.65rem, 3.8vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #263a63;
  font-family: Arial, Helvetica, sans-serif;
}

.home-intro .home-highlight-iconlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.35vw, 0.95rem);
}

.home-intro .home-highlight-iconlist > li {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.2rem);
  margin: 0;
  min-width: 0;
}

.home-intro .home-highlight-iconlist__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-intro .home-highlight-iconlist__icon img {
  display: block;
  width: 4rem;
  max-width: 4rem;
  height: auto;
  object-fit: contain;
}

.home-intro .home-highlight-iconlist__text {
  margin: 0;
  font-size: clamp(1.58rem, 1.4rem + 1.27vw, 2rem);
  line-height: 1.5;
  color: #111827;
}

.home-intro .home-hl-em {
  font-weight: 700;
}

/* Highlights 强调色（与标注原型一致） */
.home-intro .home-hl-em--coral {
  color: #c6522a;
}

.home-intro .home-hl-em--amber {
  color: #d5895b;
}

.home-intro .home-hl-em--multi-spec {
  color: #028484;
}

.home-intro .home-hl-em--func-anno {
  color: #39968b;
}

.home-intro .home-hl-em--teal {
  color: #028484;
}

/* 保留类名供其它页使用 */
.home-intro .home-hl-em--teal-strong {
  color: #39968b;
}


/* Related links：首页 Pro 区已改为 .home-related-board + 整块缩放（见 home-portal-pro.css） */
.home-intro .home-highlight-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .home-intro .home-info-card--feature .home-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 0.85rem;
  }
}

.home-intro .home-info-card--feature .home-highlight-grid > li {
  min-width: 0;
}

.home-intro .home-highlight-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.5rem 0.05rem 0.05rem;
  min-height: 0;
}

.home-intro .home-info-stack--band .home-highlight-tile {
  padding: 0.72rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.home-intro .home-highlight-tile__icon {
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(22, 74, 132, 0.18);
  background: rgba(22, 74, 132, 0.1);
  box-shadow: none;
}

.home-intro .home-highlight-tile__icon img {
  width: 1.42rem;
  height: 1.42rem;
  object-fit: contain;
  display: block;
}

.home-intro .home-highlight-tile--teal .home-highlight-tile__icon {
  border-color: rgba(14, 116, 144, 0.28);
  background: rgba(14, 116, 144, 0.12);
}

.home-intro .home-highlight-tile--blue .home-highlight-tile__icon {
  border-color: rgba(22, 74, 132, 0.24);
  background: rgba(22, 74, 132, 0.11);
}

.home-intro .home-highlight-tile--green .home-highlight-tile__icon {
  border-color: rgba(21, 128, 61, 0.26);
  background: rgba(21, 128, 61, 0.11);
}

.home-intro .home-highlight-tile--rose .home-highlight-tile__icon {
  border-color: rgba(157, 23, 77, 0.22);
  background: rgba(157, 23, 77, 0.1);
}

.home-intro .home-highlight-tile__body {
  flex: 1;
  min-width: 0;
}

.home-intro .home-highlight-tile__title {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.28rem;
  font-family: Arial, Helvetica, sans-serif;
}

.home-intro .home-highlight-tile__desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #64748b;
}

.home-intro .home-info-stack--band .home-highlight-tile__desc {
  color: #475569;
}

.home-intro .home-info-card__title {
  margin: 0 0 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #000;
  text-align: left;
  font-family: Arial, Helvetica, sans-serif;
}

.home-intro .home-info-card__title--caps {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #000;
  border-bottom-color: rgba(148, 163, 184, 0.4);
}

.home-intro .home-info-card--compact .home-info-card__title,
.home-intro .home-info-card--compact .home-info-card__title--caps {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #000;
}

.home-intro .home-related-simple {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-intro .home-related-simple li {
  position: relative;
  padding: 0.38rem 0 0.38rem 1.05rem;
  border-bottom: 1px solid rgba(241, 245, 249, 0.95);
}

.home-intro .home-related-simple li:last-child {
  border-bottom: none;
}

.home-intro .home-related-simple li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--nav-bg);
  opacity: 0.85;
}

.home-intro .home-related-simple a {
  font-size: 0.92rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
}

.home-intro .home-related-simple a:hover {
  color: var(--nav-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-intro .home-cite-panel {
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.home-intro .home-info-card--compact .home-cite-panel {
  border-left: none;
}

.home-intro .home-cite-panel__text {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #334155;
}

.home-intro .home-cite-panel__text em {
  font-style: italic;
  color: #1e293b;
}

.home-intro .home-cite-panel__pmid {
  margin: 0 0 0.72rem;
  font-size: 0.8rem;
  color: #64748b;
}

.home-intro .home-cite-panel__actions {
  margin: 0;
  font-size: 0.88rem;
}

.home-intro .home-cite-panel__actions a {
  font-weight: 600;
  color: var(--nav-bg);
  text-decoration: none;
}

.home-intro .home-cite-panel__actions a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-intro .home-cite-panel__sep {
  margin: 0 0.4rem;
  color: #94a3b8;
}

.home-intro .home-info-static {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.home-intro .home-rich {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-intro .home-rich > :first-child {
  margin-top: 0;
}

.home-intro .home-rich > :last-child {
  margin-bottom: 0;
}

.home-intro .home-rich p {
  margin: 0 0 0.75rem;
}

.home-intro .home-rich ul {
  margin: 0;
  padding: 0;
}

.home-intro .home-rich a {
  color: var(--nav-bg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-intro .home-rich a:hover {
  color: #1a5a9a;
}

.home-intro .home-rich .home-related-simple a {
  color: #475569;
  text-decoration: none;
}

.home-intro .home-rich .home-related-simple a:hover {
  color: var(--nav-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-intro .home-rich .home-cite-panel__actions a {
  color: var(--nav-bg);
  text-decoration: none;
}

.home-intro .home-rich .home-cite-panel__actions a:hover {
  color: #1a5a9a;
  text-decoration: underline;
}

.home-intro .home-rich strong:not(.home-hl-em) {
  font-weight: 600;
  color: #1e293b;
}

.home-intro .home-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.home-intro .home-related-list li.home-related-line > a.home-related-rowlink {
  display: block;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.home-intro .home-related-list .home-related-name {
  font-weight: 600;
}

.home-intro .home-related-list .home-related-urltext {
  font-weight: 400;
}

.home-intro .home-related-list a {
  font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
  .home-intro .home-info-card {
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.28);
  }
}

.site-back-to-top-mount:empty {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: calc(6rem + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 与 img/top.png 外圈同径：无内边距，避免「外层按钮 + 内层小图」双圈 */
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  line-height: 0;
  font-size: 0;
  color: transparent;
  background: transparent;
  border: none;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(22, 74, 132, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.back-to-top__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top.is-visible:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 74, 132, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition:
      opacity 0.15s ease,
      visibility 0.15s ease,
      background 0.2s ease,
      box-shadow 0.2s ease;
  }

  .back-to-top.is-visible:hover {
    transform: none;
  }
}

/* —— Home: Quick Search（参考：蓝框白底 + 浅蓝菜单） —— */
#quickSearch {
  --qs-accent: #2b579a;
  --qs-menu-bg-top: #f4f8ff;
  --qs-menu-bg-bottom: #dde8f5;
  --qs-placeholder: #b0b0b0;
  --qs-shadow: 0 2px 8px rgba(43, 87, 154, 0.14);
}

.quick-search {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
}

.quick-search-row {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  flex-wrap: nowrap;
}

#quickSearch .quick-search-row > .qs-species-select {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

/* 分类 + 输入：无缝拼接，中间仅一条竖线；外圈一层阴影 */
#quickSearch .qs-search-merge {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  min-width: 0;
  border-radius: 7px;
  box-shadow: var(--qs-shadow);
  overflow: visible;
}

/* Bootstrap .form-select 默认 width:100%，在 input-group 内会把每项撑成整行 —— 必须收回宽度 */
#quickSearch .qs-search-merge .qs-category-select {
  flex: 0 0 auto;
  width: auto;
  min-width: 12rem;
  max-width: min(14.5rem, 40vw);
  border-radius: 7px 0 0 7px;
  border-right: 0;
  box-shadow: none;
}

/* 中间竖线：Bootstrap input-group 默认负 margin 会把边框叠没，这里显式画出分隔线 */
#quickSearch .qs-search-merge > .form-control.qs-input {
  position: relative;
  margin-left: 0 !important;
  border-radius: 0 7px 7px 0;
  box-shadow: none;
  border-left: 1px solid var(--qs-accent);
  z-index: 1;
}

#quickSearch .qs-search-merge > .form-control.qs-input:focus {
  z-index: 2;
}

#quickSearch .qs-category-select,
#quickSearch .qs-species-select {
  box-sizing: border-box;
  min-width: 11rem;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0 2rem 0 0.9rem;
  /* font-size: 0.9rem; */
  font-weight: 500;
  line-height: 2.75rem;
  color: var(--qs-accent);
  background-color: #fff;
  border: 1px solid var(--qs-accent);
  border-radius: 7px;
  box-shadow: var(--qs-shadow);
  cursor: pointer;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%232b579a' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 0.65rem;
}

#quickSearch .qs-category-select::-ms-expand,
#quickSearch .qs-species-select::-ms-expand {
  display: none;
}

#quickSearch .qs-category-select:hover,
#quickSearch .qs-species-select:hover,
#quickSearch .qs-category-select:focus,
#quickSearch .qs-species-select:focus {
  color: var(--qs-accent);
  background-color: #fff;
  border-color: var(--qs-accent);
}

#quickSearch .qs-category-select:focus-visible,
#quickSearch .qs-species-select:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(43, 87, 154, 0.28);
}

#quickSearch .qs-species-select option:disabled {
  color: #94a3b5;
}

#quickSearch .qs-input {
  min-width: 0;
  flex: 1 1 auto;
  width: 1%;
  min-height: 2.75rem;
  height: 2.75rem;
  /* font-size: 0.9rem; */
  line-height: 1.35;
  color: #2c3e50;
  background-color: #fff;
  border: 1px solid var(--qs-accent);
  border-radius: 7px;
  box-shadow: var(--qs-shadow);
}

#quickSearch .qs-input::placeholder {
  color: var(--qs-placeholder);
}

#quickSearch .qs-input:focus {
  border-color: var(--qs-accent);
  box-shadow: 0 0 0 0.15rem rgba(43, 87, 154, 0.2);
  color: #2c3e50;
}

#quickSearch .qs-submit {
  flex: 0 0 auto;
  align-self: stretch;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  /* font-size: 0.95rem; */
  font-weight: 600;
  color: #fff;
  background-color: var(--qs-accent);
  border: 1px solid var(--qs-accent);
  border-radius: 7px;
  box-shadow: var(--qs-shadow);
  white-space: nowrap;
}

#quickSearch .qs-submit:hover {
  background-color: #234a80;
  border-color: #234a80;
  color: #fff;
}

#quickSearch .qs-submit:focus {
  box-shadow: 0 0 0 0.2rem rgba(43, 87, 154, 0.35);
}

/* Quick Search：Safari / WebKit 原生 select（闭合态 + 避免菜单向上翻盖住检索区） */
@supports (-webkit-touch-callout: none) {
  body.portal-home.portal-home--pro .home-intro .home-hero-pro,
  body.portal-home.portal-home--pro .home-hero-pro__head,
  body.portal-home.portal-home--pro .home-portal-shell__search,
  body.portal-home #quickSearch.home-search-dock,
  body.portal-home #quickSearch .quick-search-row,
  body.portal-home #quickSearch .qs-search-merge {
    overflow: visible;
  }

  #quickSearch .qs-category-select,
  #quickSearch .qs-species-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem;
    -webkit-padding-end: 2rem;
    line-height: 2.75rem;
    overflow: visible;
  }
}

/* Help page: sidebar + rich content */
.help-page {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.help-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.help-sidebar {
  flex: 0 0 280px;
  max-width: 100%;
  /* position: sticky; */
  top: 5.5rem;
  align-self: flex-start;
}

.help-sidebar-nav {
  border: 1px solid #d0d5dc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.help-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav-list li {
  min-width: 0;
}

.help-nav-list li + li {
  border-top: 1px solid #e2e6ed;
}

.help-nav-item {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: #2b579a;
  background: #fff;
  border: none;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.help-nav-item:hover,
.help-nav-item:focus-visible {
  background: #f4f7fb;
  color: #1e4680;
  outline: none;
}

.help-nav-item.is-active {
  background: #e8f0fa;
  color: #1e4680;
  font-weight: 600;
}

.help-content-panel {
  flex: 1 1 320px;
  min-width: 0;
}

.help-rich {
  min-height: 12rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #d0d5dc;
  border-radius: 6px;
  background: #fff;
}

.help-rich-inner {
}

.help-page-msg {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-page-msg--error {
  color: #b91c1c;
}

.help-article-body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-article-title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #c0392b;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-rich p,
.help-rich ul,
.help-rich ol {
  margin-bottom: 0.75rem;
  color: #2c3e50;
  line-height: 1.65;
}

.help-rich img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  margin: 0.75rem 0;
}

.help-card-rich__body p[style*="text-align: center"] img,
.help-card-rich__body p[style*="text-align:center"] img,
.help-rich p[style*="text-align: center"] img,
.help-rich p[style*="text-align:center"] img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.help-card-rich__body p[style*="text-align: right"] img,
.help-card-rich__body p[style*="text-align:right"] img,
.help-rich p[style*="text-align: right"] img,
.help-rich p[style*="text-align:right"] img {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

@media (max-width: 991.98px) {
  .help-sidebar {
    flex: 1 1 100%;
    /* position: static; */
  }

  .help-nav-list {
    max-height: 16rem;
    overflow-y: auto;
  }
}

.help-nav-group {
  min-width: 0;
}

.help-nav-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.help-nav-sublist li + li {
  border-top: 1px solid #e2e6ed;
}

.help-nav-group .help-nav-item + .help-nav-sublist {
  border-top: 1px solid #e2e6ed;
}

.help-page .help-sidebar-nav.is-fixed {
  position: fixed;
  z-index: 40;
  overflow-y: auto;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.help-card-rich__body {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.help-card-rich__body p,
.help-card-rich__body ul,
.help-card-rich__body ol {
  margin-bottom: 0.75rem;
  color: #2c3e50;
  line-height: 1.65;
}

.help-card-rich__body img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  margin: 0.75rem 0;
}

.help-card-rich__body h1,
.help-card-rich__body h2,
.help-card-rich__body h3,
.help-card-rich__body h4 {
  margin: 0 0 0.75rem;
  color: #263a63;
  line-height: 1.35;
}

/* ---------- Download page (category tables) ---------- */
.download-page-main {
  padding-bottom: 2.5rem;
}

.download-page {
  --download-accent: #2A3A63;
}

.download-page .download-page-h1 {
  margin-bottom: 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--download-accent);
}

.download-sections {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.download-section {
  width: 100%;
}

.download-page .download-section__title {
  color: var(--download-accent);
  font-size: 1.3rem;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0.75rem;
}

.download-section__title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.download-section__title::before {
  content: '';
  flex: 0 0 0.2rem;
  align-self: stretch;
  min-height: 1.3rem;
  background: var(--download-accent);
  border-radius: 1px;
}

.download-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #d8dee6;
  border-radius: 4px;
  background: #fff;
}

.download-data-table {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.download-data-table__col-dataset {
  width: 42%;
}

.download-data-table__col-species {
  width: 22%;
}

.download-data-table__col-genome {
  width: 22%;
}

.download-data-table__col-txt {
  width: 14%;
}

.download-page .download-data-table thead,
.download-page .download-data-table thead th {
  background-color: var(--download-accent);
}

.download-data-table thead {
  background: var(--download-accent);
}

.download-data-table thead th {
  padding: 0.55rem 1rem;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  background-color: var(--download-accent);
  border: none;
  white-space: nowrap;
}

.download-data-table thead th:nth-child(2),
.download-data-table thead th:nth-child(3) {
  text-align: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.download-data-table td.download-data-table__cell-centered {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
  vertical-align: middle;
}

.download-data-table__cell-inner {
  display: block;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.35;
  box-sizing: border-box;
  white-space: nowrap;
}

.download-data-table thead th:last-child {
  text-align: center;
}

.download-data-table tbody td {
  padding: 0.45rem 1rem;
  color: #1e293b;
  border-top: 1px solid #e5e9ef;
  vertical-align: middle;
}

.download-data-table tbody tr:nth-child(even) {
  background: #f7f9fb;
}

.download-data-table__dataset {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.download-data-table__action {
  text-align: center;
  white-space: nowrap;
}

.btn-download-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2rem;
  height: 1.35rem;
  padding: 0 0.55rem;
  padding-top: 3px;
  margin-left: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  text-decoration: none !important;
  background: rgb(131, 0, 61);
  border: none;
  border-radius: 999px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-download-txt:hover {
  background: rgb(105, 0, 49);
  color: #fff !important;
}

.btn-download-txt:focus-visible {
  outline: 2px solid var(--download-accent);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .download-section__title {
    font-size: 1.15rem;
  }

  .download-data-table {
    font-size: 1rem;
  }

  .download-data-table thead th {
    font-size: 1.0625rem;
  }

  .download-data-table thead th,
  .download-data-table tbody td {
    padding: 0.4rem 0.75rem;
  }
}

/* Contact page: dashed cards + icons */
.contact-page {
  margin-left: auto;
  margin-right: auto;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-page__title {
  margin: 0 0 3.25rem;
  text-align: center;
  font-size: 35px;
  font-weight: 700;
  color: #263a63;
  line-height: 1.2;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.contact-card {
  margin: 0;
}

.contact-card__frame {
  --contact-card-border: 2px;
  position: relative;
  padding: 2.35rem 1.75rem 1.65rem;
  background: #fff;
  border: var(--contact-card-border) dashed #263a63;
  border-radius: 0;
  padding-left: 70px;
}

.contact-card__name {
  position: absolute;
  top: 0;
  left: calc(-1 * var(--contact-card-border));
  z-index: 2;
  margin: 0;
  padding: 0.5rem 3rem;
  transform: translateY(-50%);
  background: #263a63;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}

.contact-card__row {
  display: flex;
}
.contact-card__icon-container {
  width: 80px;
  display: flex;
  justify-content: center;
  margin-right: 25px;
}

.contact-card__icon {
  display: block;
  height: auto;
  object-fit: contain;
}
.icon-contact-1 {
  width: 80px;
}
.icon-contact-2 {
  width: 64px;
}
.icon-contact-3 {
  width: 56px;
}

.contact-card__detail {
  min-width: 0;
}

.contact-card__label {
  margin: 0 0 0.35rem;
  font-size: 26px;
  font-weight: 700;
  color: #263a63;
  line-height: 1.25;
}

.contact-card__value {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  color: #000;
  line-height: 1;
}

.contact-card__value a {
  color: inherit;
  text-decoration: none;
}

.contact-card__value a:hover,
.contact-card__value a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 575.98px) {
  .contact-page__title {
    font-size: 1.65rem;
    margin-bottom: 1.75rem;
  }

  .contact-card__frame {
    padding: 2rem 1.1rem 1.35rem;
  }

  .contact-card__name {
    left: calc(-1 * var(--contact-card-border));
    padding: 0.45rem 0.9rem;
    font-size: 1rem;
  }

  .contact-card__row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 0.85rem;
  }

  .contact-card__icon {
    width: 44px;
  }
}

/* Submit page: bordered intro + form */
.submit-page {
  /* max-width: 900px; */
  font-family: Arial, Helvetica, sans-serif;
}

.submit-page .submit-intro,
.submit-page .submit-title,
.submit-page .submit-lead,
.submit-page .submit-forms,
.submit-page .submit-form,
.submit-page .submit-form-badge,
.submit-page .submit-label,
.submit-page .submit-input,
.submit-page .submit-textarea,
.submit-page .submit-select,
.submit-page .submit-select option {
  font-family: Arial, Helvetica, sans-serif;
}

.submit-page .btn-submit-primary {
  font-family: Arial, Helvetica, sans-serif;
  padding: 0.55rem 2.1rem;
  font-size: 1.35rem;
  background: #263a63;
  border-color: #263a63;
}

.submit-page .btn-submit-primary:hover {
  background: #1e2f50;
  border-color: #1e2f50;
}

.submit-page .submit-input::placeholder,
.submit-page .submit-textarea::placeholder {
  font-family: Arial, Helvetica, sans-serif;
}

.submit-intro {
  padding: 0.35rem 0.5rem;
  margin-bottom: 2.8rem;
  background: #fff;
  border: 2px solid #C7C7C7;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(22, 74, 132, 0.08);
  color: #000;
}

.submit-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.submit-lead {
  margin: 0;
  line-height: 1.6;
  font-size: 18px;
}

.submit-form {
  position: relative;
  z-index: 0;
  padding: 3rem 1.5rem 1.75rem;
  background: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: none;
}

/* 圆角虚线：单条 SVG path，外扩 1px 避免描边被裁切 */
.submit-form-border {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.submit-form-border__svg {
  display: block;
  overflow: visible;
}

.submit-form-border__svg path {
  stroke: #263a63;
  stroke-width: 2;
  stroke-dasharray: 16 12;
  stroke-linecap: butt;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.submit-form-badge {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  margin: 0;
  padding: 0.6rem 7rem;
  transform: translate(-50%, -50%);
  background: #263a63;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  font-style: normal;
  line-height: 1.15;
  white-space: nowrap;
  border-radius: 3px;
  pointer-events: none;
}

.submit-form__grid,
.submit-form__bottom {
  position: relative;
  z-index: 2;
}

.submit-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
  margin-bottom: 0.25rem;
}

.submit-form__col .submit-row {
  grid-template-columns: minmax(7.5rem, 1fr) minmax(0, 1.15fr);
  gap: 0.5rem 0.75rem;
}

/*
 * RNA-RNA 上排双列：7 列 grid + 两列输入各 1fr（等宽、随屏伸缩）
 * [左标 200][34][输入 1fr][中缝 2rem][右标 250][0.5rem][输入 1fr]
 * 底部 submit-form__bottom 独立布局，不并入此 grid
 */
.submit-form--interaction .submit-form__grid {
  grid-template-columns: 200px 34px minmax(0, 1fr) 2rem 250px 0.5rem minmax(0, 1fr);
  gap: 0;
}

.submit-form--interaction .submit-form__col {
  display: contents;
}

.submit-form--interaction .submit-form__col .submit-row {
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0;
}

.submit-form--interaction .submit-form__col:first-child .submit-row {
  grid-column: 1 / 4;
}

.submit-form--interaction .submit-form__col:first-child .submit-label {
  grid-column: 1;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
}

.submit-form--interaction .submit-form__col:first-child .submit-field {
  grid-column: 3;
  min-width: 0;
}

.submit-form--interaction .submit-form__col:last-child .submit-row {
  grid-column: 5 / 8;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(1) {
  grid-row: 1;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(2) {
  grid-row: 2;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(3) {
  grid-row: 3;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(4) {
  grid-row: 4;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(5) {
  grid-row: 5;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(6) {
  grid-row: 6;
}

.submit-form--interaction .submit-form__col:last-child .submit-row:nth-child(7) {
  grid-row: 7;
}

.submit-form--interaction .submit-form__col:last-child .submit-label {
  grid-column: 1;
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  flex-shrink: 0;
}

.submit-form--interaction .submit-form__col:last-child .submit-field {
  grid-column: 3;
  min-width: 0;
}

.submit-form--interaction .submit-form__col .submit-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.submit-form--interaction .submit-form__col .submit-field,
.submit-form--interaction .submit-form__bottom .submit-field {
  width: 100%;
}

.submit-form--interaction .submit-field {
  min-width: 0;
}

.submit-form__bottom {
  margin-top: 0.5rem;
  padding-top: 0;
}

.submit-form__bottom .submit-row:last-child {
  margin-bottom: 0;
}

.submit-forms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.75rem 1.5rem;
  padding-top: 0.85rem;
}

.submit-forms__col {
  min-width: 0;
}

.submit-forms__col--variant {
  width: 27%;
}

.submit-forms__col--interaction {
  flex: 1 1 560px;
  min-width: min(100%, 520px);
}

.submit-panel-form {
  max-width: 100%;
}

.submit-form--variant {
  padding: 3rem 1.15rem 1.5rem;
}

.submit-form--variant .submit-form__body {
  position: relative;
  z-index: 2;
}

.submit-form--variant .submit-row {
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.85rem;
}

.submit-form--variant .submit-label {
  width: 110px;
  max-width: 110px;
  flex-shrink: 0;
}

.submit-form--variant .submit-field {
  min-width: 0;
}

.submit-form--variant .submit-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 1700px) {
  .submit-form-badge-variant {
    padding: 0.6rem 5rem;
    font-size: 1.8rem;
  }
  .analysis-card-badge {
    padding: 0.65rem 3rem;
    font-size: 28px;
  }
  .analysis-card-badge--sm {
    padding: 0.45rem 2rem;
    font-size: 24px;
  }
  
}
@media (max-width: 1600px) {
  .submit-form-badge-variant {
    padding: 0.6rem 4rem;
    font-size: 1.8rem;
  }
  .analysis-card-badge {
    padding: 0.65rem 3rem;
    font-size: 28px;
  }
  .analysis-card-badge--sm {
    padding: 0.45rem 1.8rem;
    font-size: 20px;
  }
  
}

@media (max-width: 1500px) {
  .submit-page .submit-form-badge {
    padding: 0.5rem 3rem;
    font-size: 1.35rem;
  }
  .analysis-card-badge {
    padding: 0.65rem 3rem;
    font-size: 28px;
  }
  .analysis-card-badge--sm {
    padding: 0.45rem 1.6rem;
    font-size: 18px;
  }
  
}

@media (max-width: 1080px) {
  .submit-forms {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-forms__col--variant,
  .submit-forms__col--interaction {
    flex: 1 1 auto;
    max-width: none;
  }
}

.submit-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  .submit-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-form--interaction .submit-form__col {
    display: block;
  }

  .submit-form--interaction .submit-form__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .submit-form--interaction .submit-form__col:first-child .submit-row,
  .submit-form--interaction .submit-form__col:last-child .submit-row {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 200px 34px minmax(0, 1fr);
  }

  .submit-form--interaction .submit-form__col:last-child .submit-row {
    grid-template-columns: 250px 0.5rem minmax(0, 1fr);
  }
}

.submit-row {
  display: grid;
  grid-template-columns: minmax(10rem, 220px) minmax(0, 1fr);
  gap: 0.65rem 1.25rem;
  align-items: center;
  margin-bottom: 1rem;
}

.submit-row--stack {
  align-items: start;
}

/* RNA 底部四行：与左列同 200px 标签 + 34px 间距（写在 .submit-row 之后以免被覆盖） */
.submit-form--interaction .submit-form__bottom .submit-row {
  display: grid;
  grid-template-columns: 200px 34px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  margin-bottom: 1rem;
}

.submit-form--interaction .submit-form__bottom .submit-label {
  grid-column: 1;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submit-form--interaction .submit-form__bottom .submit-field {
  grid-column: 3;
  min-width: 0;
  width: 100%;
}

.submit-form--interaction .submit-form__bottom .submit-row--stack {
  align-items: start;
}

/* 无 subgrid：上排回退为两列独立 grid（底部样式不变） */
@supports not (grid-template-columns: subgrid) {
  .submit-form--interaction .submit-form__col {
    display: block;
  }

  .submit-form--interaction .submit-form__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 2rem;
  }

  .submit-form--interaction .submit-form__col .submit-row {
    grid-column: auto;
    grid-row: auto;
  }

  .submit-form--interaction .submit-form__col:first-child .submit-row {
    grid-template-columns: 200px 34px minmax(0, 1fr);
  }

  .submit-form--interaction .submit-form__col:last-child .submit-row {
    grid-template-columns: 250px 0.5rem minmax(0, 1fr);
  }
}

/* 上排行：压过通用 .submit-row 两列规则 */
.submit-form--interaction .submit-form__grid .submit-form__col .submit-row {
  gap: 0;
}

@supports (grid-template-columns: subgrid) {
  .submit-form--interaction .submit-form__grid .submit-form__col .submit-row {
    grid-template-columns: subgrid;
  }
}

.submit-label {
  margin: 0;
  font-size: 18px;
  color: #000;
  line-height: 1.4;
}

.submit-req {
  color: #c0392b;
  font-weight: 700;
  font-style: normal;
}

.submit-field {
  min-width: 0;
}

/* Status 等下拉：右侧倒三角（select 的 background-image 在 Win/Mac 常不显示） */
.submit-field--select {
  position: relative;
}

.submit-field--select::after {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: 1px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #263a63;
  transform: translateY(-50%);
  pointer-events: none;
}

.submit-input,
.submit-textarea,
.submit-select {
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #000;
  background-color: #fff;
  border: 1px solid #c5ccd6;
  border-radius: 4px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* 下拉：统一外观，兼容 macOS Safari / Chrome；箭头见 .submit-field--select::after */
.submit-select {
  display: block;
  min-height: 2.35rem;
  padding-right: 2.1rem;
  cursor: pointer;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.submit-select::-ms-expand {
  display: none;
}

.submit-select:has(option[value=""]:checked) {
  color: #9aa5b5;
}

.submit-select option {
  color: #000;
  font-weight: 400;
  font-style: normal;
}

.submit-select option[value=""] {
  color: #9aa5b5;
}

.submit-input::placeholder,
.submit-textarea::placeholder {
  color: #9aa5b5;
}

.submit-input:focus,
.submit-textarea:focus,
.submit-select:focus {
  outline: none;
  border-color: var(--nav-bg);
  box-shadow: 0 0 0 0.15rem rgba(22, 74, 132, 0.2);
}

.submit-textarea {
  resize: vertical;
  min-height: 5rem;
}

.submit-hint {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #5a6a7a;
  line-height: 1.45;
}

.submit-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dde3eb;
}

.submit-footer--submit-only {
  display: flex;
  justify-content: flex-end;
}

/* submit.html：顶部 Toast（由 submit-page.js 挂到 body） */
.submit-toast {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 10050;
  max-width: min(32rem, calc(100% - 2rem));
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translate(-50%, -0.75rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.submit-toast.submit-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.submit-toast--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.submit-toast--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.submit-required-note {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #4a5a6a;
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

.submit-spam {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.92rem;
  color: #2c3e50;
  cursor: pointer;
  text-align: left;
  max-width: 22rem;
}

.submit-spam input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.submit-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.btn-submit-primary,
.btn-submit-reset {
  padding: 0.4rem 1.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-submit-primary {
  color: #fff;
  background: #123a6b;
  border-color: #123a6b;
}

.btn-submit-primary:hover {
  background: #11427f;
  border-color: #11427f;
  color: #fff;
}

.btn-submit-primary:focus-visible {
  outline: 2px solid var(--nav-bg);
  outline-offset: 2px;
}

.btn-submit-reset {
  color: #fff;
  background: #8b4513;
  border-color: #6b3410;
}

.btn-submit-reset:hover {
  background: #6b3410;
  border-color: #5a2d0d;
  color: #fff;
}

.btn-submit-reset:focus-visible {
  outline: 2px solid #8b4513;
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .submit-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .submit-label {
    margin-bottom: -0.15rem;
  }

  .submit-actions {
    align-items: stretch;
  }

  .submit-buttons {
    justify-content: stretch;
  }

  .btn-submit-primary,
  .btn-submit-reset {
    flex: 1 1 auto;
    text-align: center;
  }
}

/* Search page — layout aligned to wireframe panels */
/* .page-main--search {
  max-width: 920px;
} */

.search-page {
  margin: 0 auto;
}

.search-page__hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #d5dde8;
}

.search-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nav-bg);
}

.search-page__lead {
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: #4a5f73;
}

/* Search 页：表格左上角 CSV / PDF 导出 */
.page-main--search .search-table-export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.35rem;
}

.page-main--search .search-table-export-bar .btn {
  font-size: 14px;
  line-height: 1.2;
  padding: 0.3rem 0.8rem;
}

/* Search 页：表格单元格字号 +2px、单行不换行、不省略号；容器横向滚动看全列 */
.page-main--search .table-responsive {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.page-main--search .gene-intra__table-scroll {
  max-height: 420px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.page-main--search .rsid-result__table-wrap {
  max-height: 480px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.page-main--search .disease-result__table-wrap {
  max-height: 480px;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
}

.page-main--search .rsid-result__table-wrap::-webkit-scrollbar,
.page-main--search .disease-result__table-wrap::-webkit-scrollbar {
  height: 10px;
  width: 10px;
  -webkit-appearance: none;
}

.page-main--search .rsid-result__table-wrap::-webkit-scrollbar-track,
.page-main--search .disease-result__table-wrap::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}

.page-main--search .rsid-result__table-wrap::-webkit-scrollbar-thumb,
.page-main--search .disease-result__table-wrap::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
  min-width: 48px;
  min-height: 48px;
}

.page-main--search .rsid-result__table-wrap::-webkit-scrollbar-thumb:hover,
.page-main--search .disease-result__table-wrap::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.page-main--search .search-ep-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.page-main--search .search-ep-cell__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  text-align: center;
}

.page-main--search .search-ep-cell__expand {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.page-main--search .search-ep-cell.is-overflow .search-ep-cell__expand {
  display: inline-flex;
}

.page-main--search .search-ep-cell__expand:hover,
.page-main--search .search-ep-cell__expand:focus-visible {
  color: #164a84;
  outline: none;
}

.page-main--search .search-ep-cell__expand-ico {
  font-size: 0.62rem;
  line-height: 1;
}

.search-ep-cell-popover {
  z-index: 1090;
  min-width: 12rem;
  max-width: min(28rem, calc(100vw - 1.5rem));
  max-height: min(16rem, calc(100vh - 1.5rem));
  overflow: auto;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid rgba(22, 74, 132, 0.2);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.search-ep-cell-popover.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.search-ep-cell-popover__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #164a84;
  margin-bottom: 0.35rem;
}

.search-ep-cell-popover__body {
  font-size: calc(1em + 2px);
  line-height: 1.45;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

.page-main--search table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}

.page-main--search table th,
.page-main--search table td {
  font-size: calc(1em + 2px);
  text-align: center !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-overflow: clip !important;
  max-width: none !important;
}

.page-main--search table thead .search-sort-th__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: nowrap !important;
  max-width: none !important;
}

.page-main--search table thead .search-sort-th__text {
  white-space: nowrap !important;
  min-width: 0;
  text-align: center;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* rsID / Disease 结果表：Located in E/P 固定 600px；表格按内容撑开，超出容器再横向滚动 */
.page-main--search .rsid-result__table-wrap > table,
.page-main--search .disease-result__table-wrap > table {
  width: max-content;
  min-width: 100%;
}

.page-main--search .rsid-result__table-wrap > table col.search-col-located-ep-col,
.page-main--search .disease-result__table-wrap > table col.search-col-located-ep-col {
  width: 600px;
}

.page-main--search table th.search-col-located-ep,
.page-main--search table td.search-col-located-ep {
  width: 580px !important;
  max-width: 580px !important;
  min-width: 580px !important;
  overflow: hidden !important;
  white-space: normal !important;
  box-sizing: border-box;
  padding-left: 0.35rem !important;
  padding-right: 0.35rem !important;
}

.page-main--search table th.search-col-located-ep .search-sort-th__btn {
  max-width: 100% !important;
  width: 100%;
  white-space: normal !important;
}

.page-main--search table th.search-col-located-ep .search-sort-th__text {
  min-width: 0 !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.page-main--search table td.search-col-located-ep .search-ep-cell {
  max-width: 100%;
}

/* Search 页结果表：无斑马纹，行底统一白底（与 gene intra 表一致） */
.page-main--search .gene-intra-table > tbody > tr > * {
  --bs-table-accent-bg: transparent;
  box-shadow: none;
}

.page-main--search .gene-intra-table > tbody > tr:nth-of-type(odd) > *,
.page-main--search .gene-intra-table > tbody > tr:nth-of-type(even) > * {
  --bs-table-accent-bg: transparent;
}

.page-main--search .gene-intra-table > tbody > tr > td {
  background-color: #fff;
}

/* Search 页：分页（左文案 + 右控件组；与面板主色统一） */
.page-main--search .search-dt-pager__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap !important;
  gap: 0.75rem 1rem;
  /* width: 100%; */
  padding: 0.2rem 0;
  overflow-x: visible !important;
  overflow-y: visible !important;
  /* margin-left: 0.9rem; */
  margin-right: 0.9rem;
}

.page-main--search .search-dt-pager__info {
  font-size: 15px;
  color: #4a5f73;
  line-height: 1.5;
  flex: 1 1 auto;
  min-width: 10rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.page-main--search .search-dt-pager__controls {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  flex: 0 1 auto;
  justify-content: flex-end;
  padding: 0.28rem 0.4rem;
  padding-right: 0rem;
  /* background: linear-gradient(180deg, #f8fafc 0%, #eef3f9 100%);
  border: 1px solid #cdd8e6;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(22, 74, 132, 0.06); */
}

.page-main--search .search-dt-pager__edge,
.page-main--search .search-dt-pager__page {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  min-height: 2.2rem;
  padding: 0.2rem 0.45rem;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid #b8c9d9;
  background: #fff;
  color: #164a84;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(22, 74, 132, 0.07);
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.page-main--search .search-dt-pager__edge {
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.page-main--search .search-dt-pager__edge:hover:not(:disabled),
.page-main--search .search-dt-pager__page:hover {
  background: #e8f2fc;
  border-color: #7aa3c9;
  color: #0f3558;
  box-shadow: 0 2px 4px rgba(22, 74, 132, 0.1);
}

.page-main--search .search-dt-pager__edge:active:not(:disabled),
.page-main--search .search-dt-pager__page:active {
  box-shadow: inset 0 1px 3px rgba(22, 74, 132, 0.12);
}

.page-main--search .search-dt-pager__edge:focus-visible,
.page-main--search .search-dt-pager__page:focus-visible {
  outline: 2px solid #5b9bd5;
  outline-offset: 2px;
}

.page-main--search .search-dt-pager__edge:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: #f1f4f8;
  color: #8a9bab;
  box-shadow: none;
}

.page-main--search .search-dt-pager__pages {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
  padding: 0 0.12rem;
  margin: 0;
  list-style: none;
}

.page-main--search .search-dt-pager__page-item {
  list-style: none;
  margin: 0;
}

.page-main--search .search-dt-pager__page-item.is-active .search-dt-pager__page,
.page-main--search .search-dt-pager__page.is-active {
  background: linear-gradient(180deg, #1a5594 0%, #164a84 100%);
  border-color: #123a66;
  color: #fff;
  font-weight: 700;
  cursor: default;
  box-shadow:
    0 2px 6px rgba(22, 74, 132, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.page-main--search .search-dt-pager__page-item.is-active .search-dt-pager__page:hover,
.page-main--search .search-dt-pager__page.is-active:hover {
  background: linear-gradient(180deg, #1a5594 0%, #164a84 100%);
  border-color: #123a66;
  color: #fff;
}

.page-main--search .search-dt-pager__ellipsis {
  list-style: none;
  margin: 0;
  padding: 0 0.2rem;
  display: flex;
  align-items: center;
  min-height: 2.2rem;
}

.page-main--search .search-dt-pager__ellipsis-txt {
  color: #6b7c8f;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  user-select: none;
}

.search-panel {
  background: #fff;
  border-radius: 12px;
  /* overflow: hidden; */
  margin-bottom: 1.75rem;
  box-shadow:
    0 1px 0 rgba(22, 74, 132, 0.06),
    0 8px 24px rgba(22, 74, 132, 0.08);
  border: 1px solid #cdd8e6;
}

.search-panel--blue-border {
  border: 2px solid var(--nav-bg);
  box-shadow:
    0 1px 0 rgba(22, 74, 132, 0.08),
    0 8px 24px rgba(22, 74, 132, 0.1);
}

.search-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 1.35rem 0.5rem 1rem;
  background: #263a63;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 8px 8px 0 0;
  height: 46px;
}

.search-panel__head-start {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.search-panel__collapse-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 1px solid #263a63;
  border-radius: 999px;
  background: #fff;
  color: #263a63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-panel__collapse-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.search-panel__collapse-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  user-select: none;
}

/* 手风琴：表单区高度动画（grid 0fr / 1fr） */
.search-panel__body-wrap {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-panel__body-wrap.is-collapsed {
  grid-template-rows: 0fr;
}

.search-panel__body-inner {
  min-height: 0;
  overflow: hidden;
}

.search-panel.search-panel--accordion-collapsed .search-panel__head {
  border-radius: 8px;
}

/* 手风琴收起时：紧邻的搜索结果块同步淡出；展开时淡入 */
#geneResultPanel,
#regionResultPanel,
#rsidResultPanel,
#diseaseResultPanel {
  transition: opacity 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

#geneSearchBlock:has(#searchGenePanel.search-panel--accordion-collapsed) + #geneResultPanel:not([hidden]),
#searchRegionPanel.search-panel--accordion-collapsed + #regionResultPanel:not([hidden]),
#searchRsPanel.search-panel--accordion-collapsed + #rsidResultPanel:not([hidden]),
#searchDiseasePanel.search-panel--accordion-collapsed + #diseaseResultPanel:not([hidden]) {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* 新标签页仅展示结果：隐藏搜索表单。rsID/Disease 的结果区在 #rsidSearchBlock / #diseaseSearchBlock 内，只能隐藏内部表单 panel，不能隐藏整块 wrapper */
html.search-results-only #geneSearchBlock,
html.search-results-only #searchRegionPanel,
html.search-results-only #searchRsPanel,
html.search-results-only #searchDiseasePanel,
html.search-results-only #rsidSearchLoading,
html.search-results-only #diseaseSearchLoading {
  display: none !important;
}

/* 避免与「手风琴收起时隐藏相邻结果」规则冲突（后者 ID 权重更高），用同等选择器链 + html 前缀覆盖 */
html.search-results-only #geneSearchBlock:has(#searchGenePanel.search-panel--accordion-collapsed) + #geneResultPanel:not([hidden]),
html.search-results-only #searchRegionPanel.search-panel--accordion-collapsed + #regionResultPanel:not([hidden]),
html.search-results-only #searchRsPanel.search-panel--accordion-collapsed + #rsidResultPanel:not([hidden]),
html.search-results-only #searchDiseasePanel.search-panel--accordion-collapsed + #diseaseResultPanel:not([hidden]),
html.search-results-only #geneResultPanel:not([hidden]),
html.search-results-only #regionResultPanel:not([hidden]),
html.search-results-only #rsidResultPanel:not([hidden]),
html.search-results-only #diseaseResultPanel:not([hidden]) {
  opacity: 1 !important;
  pointer-events: auto !important;
  max-height: none !important;
  overflow: visible !important;
  margin-top: unset !important;
  margin-bottom: unset !important;
  padding: unset !important;
  border: unset !important;
  box-shadow: unset !important;
}

/* 新窗口仅结果：全屏加载（URL 自动提交期间） */
.search-results-only-fullpage-loading {
  position: fixed;
  inset: 0;
  z-index: 20050;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}
.search-results-only-fullpage-loading.is-active {
  display: flex;
}
.search-results-only-fullpage-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(2px);
}
.search-results-only-fullpage-loading__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
}
.search-results-only-fullpage-loading__spinner {
  width: 2.75rem;
  height: 2.75rem;
}
.search-results-only-fullpage-loading__text {
  margin: 0;
  font-size: 1rem;
  color: #475569;
}

@media (prefers-reduced-motion: reduce) {
  .search-panel__body-wrap {
    transition-duration: 0.01ms;
  }

  #geneResultPanel,
  #regionResultPanel,
  #rsidResultPanel,
  #diseaseResultPanel {
    transition-duration: 0.01ms;
  }
}

.search-panel__mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--submit-bg);
  flex-shrink: 0;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.45),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.search-panel__icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.search-panel__icon img {
  width: 36px;
}

.search-panel__title {
  margin: 0;
  font-size: 24px;
  font-weight: inherit;
  color: #fff;
}

.search-panel__body {
  padding: 1.5rem 1.35rem 1.6rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 120px);
  border-radius: 12px;
  padding-top: 0.65rem;
}

.search-field {
  margin-bottom: 0.25rem;
}

.search-field__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* justify-content: space-between; */
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
}

.search-field__intro {
  flex: 1 1 240px;
  min-width: 0;
}

.search-field__intro .search-field__label {
  margin-bottom: 0;
}

.search-field__species {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  min-width: min(12.5rem, 100%);
}

.search-field__top--region .search-field__intro {
  flex: 1 1 140px;
}

.search-field__top--region .search-field__species {
  flex: 0 1 220px;
  min-width: min(12.5rem, 100%);
}

/* E/P region: label + 4 dropdowns — single row, horizontal scroll if needed */
.search-field__top--region.search-field__top--nowrap {
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0.45rem 0.65rem;
  /* overflow-x: auto;
  overflow-y: visible; */
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.search-field__top--region .search-field__intro--region-tag {
  flex: 0 0 auto;
  max-width: none;
}

.search-field__top--region .search-field__intro--region-tag .search-field__label {
  white-space: nowrap;
  margin-bottom: 0;
  line-height: 1.2;
  padding-bottom: 0.55rem;
}

.search-field__top--nowrap .search-field__species--row {
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0;
  width: 11.75rem;
  min-width: 11.75rem;
  max-width: 11.75rem;
  margin-left: 0.3rem;
}

.search-field__top--nowrap .search-field__species--row .search-dd-select {
  width: 100%;
  min-width: 0;
}

.search-ep-greenbox__row--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
}

.search-ep-inline-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  flex: 1 1 320px;
  min-width: 0;
}

.search-ep-inline-label {
  flex: 0 1 auto;
  max-width: 12rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1e6b3d;
  line-height: 1.35;
}

.search-page .search-dd--grow {
  flex: 1 1 12.5rem;
  min-width: min(12.5rem, 100%);
}

.search-field__label {
  display: block;
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  letter-spacing: 0.01em;
}

.search-field__hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #6b7c8c;
}

.search-textarea {
  width: 100%;
  resize: vertical;
  min-height: 8.5rem;
  padding: 0.75rem 0.9rem;
  font-size: 18px;
  line-height: 1.5;
  color: #000;
  background: #fff;
  border: 1px solid #b8c5d4;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(22, 74, 132, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.search-textarea::placeholder {
  color: #94a3b5;
}

.search-textarea:hover {
  border-color: #9dafc4;
}

.search-textarea:focus {
  border-color: var(--nav-bg);
  box-shadow:
    inset 0 1px 2px rgba(22, 74, 132, 0.04),
    0 0 0 3px rgba(22, 74, 132, 0.18);
  outline: none;
}

.search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e8edf4;
}

.search-toolbar--split {
  justify-content: flex-start;
}

.search-toolbar__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: min(100%, 220px);
}

.search-toolbar__cap {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6d80;
}

.search-page .search-dd-btn,
.search-page select.search-dd-select {
  width: 100%;
  min-width: 12.5rem;
  padding: 0.5rem 0.85rem;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--nav-bg);
  background-color: #fff;
  border: 1px solid #8aa3bd;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(22, 74, 132, 0.06);
  cursor: pointer;
}

.search-page select.search-dd-select {
  display: block;
  padding-right: 2rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%231a5594' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem;
}

.search-page .search-dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.search-page .search-dd-btn:hover,
.search-page .search-dd-btn:focus,
.search-page .search-dd-btn.show,
.search-page select.search-dd-select:hover,
.search-page select.search-dd-select:focus {
  color: var(--nav-bg);
  background-color: #f4f8fd;
  border-color: var(--nav-bg);
}

.search-page .search-dd-btn:disabled,
.search-page select.search-dd-select:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  background-color: #f0f3f7;
}

.search-page .search-dd-btn.dropdown-toggle::after {
  margin-left: 0;
  flex-shrink: 0;
  align-self: center;
  border-top-color: var(--nav-bg);
}

.search-page .search-dd-label {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.search-ep-greenbox {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem 1.2rem;
  background: linear-gradient(145deg, #e9f7ef 0%, #dff5e8 50%, #e8f6ee 100%);
  border: 1px solid #52c580;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 2px 8px rgba(46, 160, 90, 0.12);
}

.search-ep-greenbox__head {
  margin-bottom: 0.85rem;
}

.search-ep-greenbox__kicker {
  display: inline-block;
  margin-bottom: 0.2rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e6b3d;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 4px;
  border: 1px solid rgba(46, 160, 90, 0.35);
}

.search-ep-greenbox__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: #186a3b;
}

.search-ep-greenbox .search-dd-btn {
  border-color: #3da76a;
  background: rgba(255, 255, 255, 0.92);
}

.search-ep-greenbox .search-dd-btn:hover,
.search-ep-greenbox .search-dd-btn:focus,
.search-ep-greenbox .search-dd-btn.show {
  background: #fff;
  border-color: #239b56;
  color: #145a32;
}

.search-ep-greenbox .search-dd-btn.dropdown-toggle::after {
  border-top-color: #145a32;
}

.search-upload {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #f4f7fb;
  border: 1px dashed #a8b8cc;
  border-radius: 8px;
}

.search-upload__label {
  display: block;
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2c3e50;
}

.search-upload__input {
  max-width: 28rem;
  font-size: 0.88rem;
  border-radius: 6px;
  border: 1px solid #b8c5d4;
  background: #fff;
}

.search-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  /* margin-top: 1.35rem; */
  padding-top: 1.2rem;
  /* border-top: 1px solid #e8edf4; */
}

.btn-search-action {
  padding: 0.5rem 1.5rem;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid var(--nav-bg);
  background: #fff;
  color: var(--nav-bg);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-search-action:hover {
  background: #eef4fc;
  color: var(--nav-bg);
}

.btn-search-action:focus-visible {
  outline: 2px solid var(--nav-bg);
  outline-offset: 2px;
}

.btn-search-action--primary {
  background: #263a63;
  color: #fff;
  border-color: #263a63;
  box-shadow: 0 2px 6px rgba(22, 74, 132, 0.25);
}

.btn-search-action--primary:hover {
  background: #263a63;
  color: #fff;
  border-color: #263a63;
}

@media (max-width: 639.98px) {
  .search-page .search-dd-btn,
  .search-page select.search-dd-select {
    min-width: 100%;
  }

  .search-toolbar__item {
    min-width: 100%;
  }

  .search-field__species:not(.search-field__species--row) {
    flex: 1 1 100%;
  }

  .search-field__top--region:not(.search-field__top--nowrap) .search-field__species {
    flex: 1 1 100%;
  }

  .search-ep-inline-group {
    flex: 1 1 100%;
  }

  .search-field__top--nowrap .search-field__species--row {
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
  }

  .search-field__top--nowrap .search-field__species--row .search-dd-btn,
  .search-field__top--nowrap .search-field__species--row select.search-dd-select {
    min-width: 0;
  }
}

/* Search: rsID / Disease panels — mode toggle + footer (buttons + upload) */
.search-rsid-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
  justify-content: space-between;
}

.search-rsid-toggle__btn {
  padding: 0.35rem 1rem;
  font-size: 18px;
  font-weight: 600;
  color: var(--nav-bg);
  background: #fff;
  border: 1px solid #8aa3bd;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.search-rsid-toggle__btn:hover {
  background: #f4f8fd;
  border-color: var(--nav-bg);
}

.search-rsid-toggle__btn.is-active {
  border: 1px solid #8aa3bd;
  color: #fff;
  background: var(--nav-bg);
}

.search-rsid-toggle__btn:focus-visible {
  outline: 2px solid var(--nav-bg);
  outline-offset: 2px;
}

/* rsID / Disease：表单 + 结果整块相对定位，遮罩盖住整块 */
.rsid-search-block,
.disease-search-block {
  position: relative;
}

.search-panel-loading--rsid-block,
.search-panel-loading--disease-block {
  z-index: 40;
  border-radius: 12px;
}

.search-panel-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(3px);
  border-radius: 12px;
}

.search-panel-loading[hidden] {
  display: none !important;
}

.search-panel-loading__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem;
  text-align: center;
}

.search-panel-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--nav-bg);
  border-width: 0.28em;
}

.search-panel-loading__label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nav-bg);
}

/* Search 页：Toast 视口居中，浮在面板 loading 之上 */
.search-page-toast-container {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  width: min(92vw, 28rem);
  max-width: 100%;
  padding: 0.75rem;
  margin: 0;
}

.search-page-toast-container .toast {
  width: 100%;
}

.search-page-toast-container .toast-body {
  text-align: center;
  flex: 1 1 auto;
}

.search-page-toast-container .toast .d-flex {
  align-items: center;
}

.search-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  /* padding-top: 1.15rem; */
}

.search-footer-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.search-footer-bar__upload {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: min(16rem, 100%);
}

.search-footer-bar__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
  cursor: pointer;
}

.search-footer-bar__radio input {
  margin: 0;
  flex-shrink: 0;
}

.search-footer-bar__file {
  max-width: 20rem;
  border-radius: 6px;
  border: 1px solid #b8c5d4;
  font-size: 0.85rem;
}

label.search-footer-bar__file-trigger {
  margin: 0;
  cursor: pointer;
}

@media (max-width: 639.98px) {
  .search-footer-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-footer-bar__upload {
    min-width: 0;
  }

  .search-footer-bar__file {
    max-width: none;
  }
}

/* 官网 Search：按基因 — 结果区 + 覆盖块内遮罩 */
.search-gene-block {
  position: relative;
  margin-bottom: 1.75rem;
}

.search-gene-block__loading {
  z-index: 30;
  border-radius: 12px;
  min-height: 8rem;
}

.search-panel--gene-result {
  margin-top: 1.25rem;
  border: 2px solid #5b9fd4;
  box-shadow:
    0 1px 0 rgba(22, 74, 132, 0.08),
    0 6px 20px rgba(22, 74, 132, 0.1);
}

.search-panel--gene-result .search-panel__body {
  padding-top: 1.1rem;
}

.gene-result__sub {
  position: relative;
  margin: 0 0 0.9rem;
  padding-left: 10px;
  font-size: 19px;
  font-weight: 700;
  color: #164a84;
}

.gene-result__sub::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.08em;
  bottom: 0.08em;
  width: 6px;
  border-radius: 3px;
  background: var(--nav-bg);
  pointer-events: none;
}

/* 基因结果 Gene Summary：FPKM 图与 RefSeq / Summary 左侧 0.9rem 对齐 */
#geneResultPanel .search-panel__body > .search-result-subsection-box {
  padding: 0.75rem 1rem 0.75rem 1rem;
}

#geneResultPanel .gene-expr-chart {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

/* 基因 / 区域结果：小标题下方的内容区描边 */
.search-result-subsection-box {
  border: 1px solid #cdcece;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
  border-radius: 26px;
}

.search-panel--gene-result .gene-intra__layout.gene-inter__layout > .search-result-subsection-box {
  min-width: 0;
}

.gene-summary-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
  width: 100%;
  /* max-width: 56rem; */
  margin: 0 0 0rem 0.9rem;
}

@media (max-width: 640px) {
  .gene-summary-dl {
    grid-template-columns: 1fr;
  }
}

.gene-summary-dl__row {
  align-items: flex-start;
  min-width: 0;
  display: block;
}

.gene-summary-dl__term {
  flex: 0 0 auto;
  width: 6.75rem;
  max-width: 42%;
  font-weight: 600;
  color: #000;
  font-size: 18px;
}

.gene-summary-dl__def {
  flex: 1 1 0;
  min-width: 0;
  color: #000;
  word-break: break-word;
  font-size: 18px;
}

.gene-result__h4 {
  margin: 0.75rem 0 0.4rem 0.9rem;
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.gene-refseq-box {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: #f2f6fa;
  border: 1px solid #d5e0ec;
  border-radius: 8px;
  max-height: 16rem;
  overflow: auto;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #2c3e50;
}

.gene-refseq-p {
  margin: 0;
  white-space: pre-wrap;
  color: #000;
  font-size: 16px;
}

.gene-expr-hint {
  font-size: 0.9rem;
  color: #5a6b7a;
  margin: 0.25rem 0 0.5rem 0.9rem;
}

.gene-expr-chart {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 480px;
  box-sizing: border-box;
  margin-left: 0.9rem;
}

/* E/P region result — Metascape GO block（左输入 + 右示意图；底行 Submit 与 logo 同高） */
.region-metascape-box .region-metascape-lead {
  margin-left: 0;
  margin-right: 0;
}

.region-metascape-layout {
  --region-metascape-footer-h: 2.75rem;
  width: 100%;
  min-width: 0;
}

.region-metascape-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem 1.25rem;
  align-items: stretch;
  min-width: 0;
}

.region-metascape-cell--textarea {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.region-metascape-cell--diagram {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.region-metascape-cell--submit {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.region-metascape-cell--logo {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.region-metascape-textarea {
  flex: 1 1 auto;
  width: 100%;
  /* min-height: 12rem; */
  height: 100%;
  resize: none;
  box-sizing: border-box;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d5e0ec;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font-size: 0.92rem;
  line-height: 1.45;
  font-family: inherit;
}

.region-metascape-textarea::placeholder {
  color: #94a3b8;
}

.region-metascape-textarea:focus {
  outline: 0;
  border-color: #1a5594;
  box-shadow: 0 0 0 2px rgba(26, 85, 148, 0.18);
}

.region-metascape-diagram-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.region-metascape-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--region-metascape-footer-h);
  padding: 0 1.85rem;
  border: none;
  border-radius: 10px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #1a5594 0%, #164a84 100%);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.region-metascape-submit:hover {
  color: #fff;
  filter: brightness(1.04);
}

.region-metascape-submit:focus-visible {
  outline: 2px solid #1a5594;
  outline-offset: 2px;
}

.region-metascape-logo-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
}

.region-metascape-logo-link:hover {
  opacity: 0.94;
}

.region-metascape-logo-img {
  display: block;
  height: var(--region-metascape-footer-h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .region-metascape-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(11rem, auto) auto auto;
    gap: 0.85rem;
  }

  .region-metascape-cell--diagram {
    grid-column: 1;
    grid-row: 1;
  }

  .region-metascape-cell--textarea {
    grid-column: 1;
    grid-row: 2;
  }

  .region-metascape-cell--submit {
    grid-column: 1;
    grid-row: 3;
  }

  .region-metascape-cell--logo {
    grid-column: 1;
    grid-row: 4;
    justify-content: center;
  }
}

/* Gene 结果：Aroline（WashU 浏览器 iframe） */
.gene-aroline-wrap {
  margin-top: 0;
}

.gene-aroline-box {
  padding: 0.5rem 0.75rem;
  overflow: hidden;
}

.gene-aroline-frame,
.gene-aroline-embed {
  display: block;
  width: 100%;
  min-width: 0;
  /* height: 1200px;
  min-height: 720px; */
  border: 0;
  background: #fff;
}

/* E/P Region：非 Homo sapiens 时整块隐藏，避免子图表 min-height 仍留出白边 */
#regionVariantsWrap[hidden] {
  display: none !important;
  padding-top: 0 !important;
  margin: 0 !important;
}

.gene-variants-hint {
  font-size: 0.88rem;
  color: #5a6b7a;
  margin: 0.15rem 0 0.5rem 0.9rem;
}

.gene-variants-pager {
  margin: 0.55rem 0 0;
}

.gene-variants-chart {
  display: block;
  width: 100%;
  min-width: 0;
  height: 440px;
  min-height: 440px;
  box-sizing: border-box;
  background-color: #ffffff;
  padding-right: 1.2rem;
}

.gene-variants-total {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  font-family: Arial,sans-serif;
  margin-bottom: 0px;
}

/* 基因变异分页：全屏等待 */
.gene-variants-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.gene-variants-page-loading[hidden] {
  display: none !important;
}

.gene-variants-page-loading__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
}

.gene-variants-page-loading__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.75rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a5594 0%, #164a84 100%);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  color: #fff;
}

.gene-variants-page-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 0.28em;
  color: #fff;
}

.gene-variants-page-loading__text {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .gene-variants-page-loading__backdrop {
    backdrop-filter: none;
  }
}

/* Gene search — RNA–RNA Intra (section 3) */
.gene-intra-wrap {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  /* border-top: 1px solid #e2e8f0; */
}

.gene-intra__title-intra {
  margin: 0 0 0.85rem 0.9rem;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  font-family: Arial,sans-serif;
  text-align: center;
}

.gene-intra__title-inter {
  margin: 1.5rem 0 0.85rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
}

.gene-inter__layout {
  margin-top: 0.25rem;
  justify-content: center;
}

/* RNA–RNA Inter：弦图独占一行（70vh），表格在其下方全宽 */
.gene-inter__layout.gene-intra__layout {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 1rem;
}

.gene-inter-chord-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 70vh;
  min-height: 280px;
  box-sizing: border-box;
  padding: 0.25rem 0 0.5rem;
}

.gene-inter-chord-stage .gene-intra__chord-toolbar {
  flex: 0 0 auto;
  width: 100%;
  /* max-width: 48rem; */
}

/* Intra 二级结构：工具栏与 Inter 弦图同宽，整块居中（标题与按钮仍在条内两侧对齐） */
.gene-intra__figure.gene-intra__figure--diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.gene-intra__figure--diagram .gene-intra__chord-toolbar {
  flex: 0 0 auto;
  width: 100%;
  /* max-width: 48rem; */
}

.gene-inter-chord-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
  padding: 0.15rem;
  box-sizing: border-box;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.gene-inter-chord-canvas-wrap.is-chord-panning {
  cursor: grabbing;
}

.gene-chord-zoom-layer {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  line-height: 0;
  will-change: transform;
}

/* 和弦图工具栏：图标按钮去掉浏览器默认 button 外观 */
button.gene-chord-icon-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

button.gene-chord-icon-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

button.gene-chord-icon-btn:focus-visible {
  outline: 2px solid var(--nav-bg, #2563eb);
  outline-offset: 2px;
}

button.gene-chord-icon-btn img {
  display: block;
}

.gene-chord-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  margin-right: 0.9rem;
}

/** 区域结果弦图：工具栏仅图标按钮，整组靠右 */
.gene-intra__chord-toolbar.gene-chord-toolbar--region-actions {
  justify-content: flex-end;
  gap: 0.5rem;
}

/** 弦图外圈悬停：染色体名 + 长度（固定定位，避免被 overflow 裁切） */
.chord-ring-tooltip {
  position: fixed;
  z-index: 10060;
  min-width: 9.5rem;
  max-width: min(22rem, calc(100vw - 1rem));
  padding: 0.5rem 0.72rem;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.35;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.38);
  font-family: system-ui, 'Segoe UI', sans-serif;
}

.chord-ring-tooltip__row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.chord-ring-tooltip__swatch {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.chord-ring-tooltip__len {
  margin-top: 0.28rem;
  color: rgba(248, 250, 252, 0.9);
  font-weight: 400;
  font-size: 0.78rem;
}

.gene-inter-chord-canvas-wrap .gene-inter-chord-canvas {
  display: block;
  width: 440px;
  height: 440px;
  max-width: none;
  flex: 0 0 auto;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 8px;
  background: #fff;
}

.gene-inter__layout .gene-inter-table-side {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.gene-intra__layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  align-items: flex-start;
}

.gene-intra__figure {
  flex: 0 0 auto;
  max-width: 100%;
}

.gene-intra__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #f8fafc;
}

.gene-intra__chord-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  min-height: 2.5rem;
}

/* 有标题时：标题在整条工具栏水平居中，按钮组仍在右侧（标题不占 flex 流） */
.gene-intra__chord-toolbar:has(.gene-intra__chord-title) .gene-intra__chord-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: min(36rem, calc(100% - 8.5rem));
  text-align: center;
  pointer-events: none;
  z-index: 0;
}

.gene-intra__chord-toolbar:has(.gene-intra__chord-title) .gene-chord-toolbar-actions {
  margin-left: auto;
}

.gene-intra__chord-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.gene-intra__chord-canvas {
  display: block;
  width: 440px;
  max-width: 100%;
  height: 440px;
  border-radius: 8px;
  background: #fff;
  /* box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06); */
}

.gene-intra__chord-hint {
  margin-top: 0.5rem;
  max-width: 440px;
  line-height: 1.45;
}

.gene-intra__table-side {
  flex: 1 1 320px;
  min-width: 0;
}

.gene-intra__xlsx-hint {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #164a84;
}

.gene-intra__xlsx-icon {
  margin-right: 0.35rem;
}

.gene-intra__filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.gene-intra__filter-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #3d5a73;
}

.gene-intra__tissue-select {
  width: auto;
  min-width: 12rem;
  max-width: 100%;
}

.gene-intra__table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

.gene-intra__table-toolbar .search-table-export-bar {
  flex: 0 0 auto;
}

.gene-intra__row-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  flex: 0 1 28rem;
  min-width: 0;
  justify-content: flex-end;
}

.gene-intra__row-search-label {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #3d5a73;
  white-space: nowrap;
}

.gene-intra__row-search-input {
  flex: 1 1 160px;
  min-width: 8rem;
  max-width: 28rem;
}

.gene-intra__table-scroll {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
}

.gene-intra-table {
  font-size: 0.92rem;
}

.gene-intra-table thead th {
  white-space: nowrap;
  vertical-align: middle;
  background: #e8f2fc !important;
  color: #164a84;
  font-weight: 700;
}

.gene-intra-table td {
  vertical-align: middle;
}

.gene-intra-variants {
  color: #e67e22;
  font-weight: 600;
}

.gene-intra-pager {
  margin-top: 0.65rem;
  margin-left: 0.9rem;
}

/* rsID / location search — result table + instructions */
.search-panel__body--rsid-result {
  padding-top: 1.1rem;
}

.rsid-result__xlsx-hint {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #164a84;
}

.rsid-result__xlsx-icon {
  margin-right: 0.35rem;
}

.rsid-result__table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.rsid-result-pager {
  margin: 0.65rem 0 1rem;
}

/* 与疾病/基因结果一致：灰色圆角外框；原粉红描边取消 */
.rsid-result-instructions.search-result-subsection-box {
  margin-top: 0.25rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 72%);
}

.rsid-result-instructions .rsid-result-instructions__title.gene-result__sub {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.rsid-result-instructions__list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #2c3e50;
}

.rsid-result-instructions__list li {
  margin-bottom: 0.35rem;
}

/* Disease / Phenotype — 结果概览 + 表格 */
.search-panel__body--disease-result {
  padding-top: 1.1rem;
}

.disease-result-overview {
  margin-bottom: 0.5rem;
}

.disease-result-overview__title.gene-result__sub {
  margin-bottom: 0.75rem;
}

.search-panel__body--disease-result .disease-result-section-title.gene-result__sub {
  margin-top: 1.35rem;
  margin-bottom: 0.75rem;
}

.disease-overview-chart {
  height: 320px;
  min-height: 260px;
  width: 100%;
  border: 1px solid rgba(22, 74, 132, 0.14);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%);
}

/* 疾病 Overview 第三、四张图：底部略留空，避免刻度贴容器底边 */
#diseaseChartEpLine,
#diseaseChartRegionLine {
  margin-bottom: 0.55rem;
}

.disease-result__table-wrap {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.disease-result-pager {
  margin: 0.65rem 0 0.5rem;
}

/* =============================================================================
   Portal home (index only): NAR-style database landing — light shell, flat
   panels; site footer is the global light strip (home only tweaks margin-top)
   ============================================================================= */
body.portal-home {
  /* 整页单色底：避免多段渐变叠在一起显「花」 */
  background: #f4f6f9;
  color: #1e293b;
}

body.portal-home .site-footer {
  /* 首页内容不满一屏时不要再用 margin-top:auto 撑开大块留白 */
  margin-top: 0;
}

body.portal-home .page-main.page-main--portal {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  /* 不占满视口剩余高度，避免出现 cite 区与页脚之间大片空白 */
  flex: 0 1 auto;
}

body.portal-home .home-intro {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.portal-home .home-intro .home-main-band {
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-home .home-intro .home-main-band__inner {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
}

/* v4 portal shell: NAR-style — brand + search row, metrics + cite strip, minimal toolbelt */
body.portal-home .home-intro .home-main-band--v4 {
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-home .home-main-band__inner--v4 {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
  padding: 1.85rem clamp(1rem, 3vw, 1.75rem) 1.85rem;
}

body.portal-home .home-portal-shell {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

body.portal-home .home-portal-shell__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  body.portal-home .home-portal-shell__top {
    /* 品牌区定宽上限，搜索区吃掉剩余宽度，避免 Quick Search 一行被压扁 */
    grid-template-columns: minmax(0, min(36rem, 42%)) minmax(26rem, 1fr);
    align-items: start;
  }
}

body.portal-home .home-portal-shell__brand {
  min-width: 0;
}

body.portal-home .home-portal-shell__brand .home-hero-eyebrow {
  margin: 0 0 0.35rem;
}

body.portal-home .home-title--portal {
  margin: 0 0 0.4rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

body.portal-home .home-subtitle--portal {
  margin: 0;
  max-width: 38rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 400;
}

body.portal-home .home-portal-shell__search {
  min-width: 0;
  width: 100%;
}

body.portal-home .home-search-dock.quick-search {
  display: block;
  width: 100%;
  max-width: none;
}

body.portal-home .home-search-dock__label {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

body.portal-home .home-search-dock {
  margin: 0;
  padding: 0.9rem 1rem 0.95rem;
  background: #fafbfc;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  box-shadow: none;
}

body.portal-home .home-search-dock .quick-search-row {
  width: 100%;
  max-width: none;
  flex-wrap: wrap;
}

/* 顶栏搜索：默认「分类+关键词」占满一行，物种与按钮下一行；宽屏再并单行 */
body.portal-home #quickSearch.home-search-dock .quick-search-row > .qs-search-merge {
  flex: 1 1 100%;
  min-width: 0;
}

body.portal-home #quickSearch.home-search-dock .quick-search-row > .qs-species-select {
  flex: 1 1 10rem;
  min-width: min(100%, 10.5rem);
  max-width: 100%;
}

body.portal-home #quickSearch.home-search-dock .quick-search-row > .qs-submit {
  flex: 0 0 auto;
}

@media (min-width: 1180px) {
  body.portal-home #quickSearch.home-search-dock .quick-search-row > .qs-search-merge {
    flex: 1 1 auto;
    min-width: min(100%, 20rem);
  }

  body.portal-home #quickSearch.home-search-dock .quick-search-row > .qs-species-select {
    flex: 0 0 auto;
    width: auto;
    max-width: 13rem;
  }
}

/* 门户首页：略收紧分类下拉最小宽，给关键词输入让路 */
body.portal-home #quickSearch .qs-search-merge .qs-category-select {
  min-width: 10.75rem;
  max-width: min(14rem, 42%);
}

@media (max-width: 599.98px) {
  body.portal-home .home-search-dock .quick-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-home .home-search-dock .quick-search-row .qs-submit {
    width: 100%;
  }

  body.portal-home #quickSearch .qs-search-merge .qs-category-select {
    max-width: none;
  }
}

body.portal-home .home-portal-shell__meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1rem 1.1rem;
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

@media (min-width: 768px) {
  body.portal-home .home-portal-shell__meta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
  }
}

body.portal-home .home-metrics-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

body.portal-home .home-metrics-chips--portal {
  flex: 1 1 auto;
  min-width: 0;
}

body.portal-home .home-metrics-chips li {
  margin: 0;
  flex: 1 1 calc(50% - 0.25rem);
  min-width: 7.5rem;
  padding: 0.6rem 0.65rem 0.62rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: none;
}

@media (min-width: 640px) {
  body.portal-home .home-metrics-chips li {
    flex: 1 1 calc(25% - 0.4rem);
    min-width: 0;
  }
}

body.portal-home .home-metrics-chips__num {
  display: block;
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f4c81;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.portal-home .home-metrics-chips__lab {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  line-height: 1.3;
}

body.portal-home .home-publication--portal-strip {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  flex: 0 0 auto;
}

body.portal-home .home-publication--portal-strip .home-publication__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #64748b;
}

body.portal-home .home-publication--portal-strip a {
  color: #0f4c81;
  font-weight: 600;
}

body.portal-home .home-portal-shell__nav {
  margin: 0;
  padding: 0;
}

body.portal-home .home-toolbelt--portal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0;
  padding: 0.85rem 0 0.15rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid #e2e8f0;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__title {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0.65rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  border-right: 1px solid #e2e8f0;
  line-height: 1.4;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__list {
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.2rem 0.15rem;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__link {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  min-height: 0;
  padding: 0.45rem 0.65rem;
  text-decoration: none;
  color: #1e293b;
  border-radius: 6px;
  border: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__link:hover {
  background: rgba(22, 74, 132, 0.07);
  box-shadow: none;
  transform: none;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__link:focus-visible {
  outline: 2px solid #164a84;
  outline-offset: 2px;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__glyph {
  font-size: 0.75rem;
  line-height: 1;
  color: #164a84;
  opacity: 0.85;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__name {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #164a84;
}

body.portal-home .home-toolbelt--portal .home-toolbelt__hint {
  flex: 1 0 100%;
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #64748b;
}

@media (min-width: 720px) {
  body.portal-home .home-toolbelt--portal .home-toolbelt__hint {
    display: none;
  }
}

/* Portal home: intro split (aside stat ladder + main article), charts deck label, workflow motion */
body.portal-home .home-intro .db-intro--portal {
  margin-top: 0;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-home .db-intro-portal {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: 2.5rem clamp(1rem, 3vw, 1.75rem) 2.75rem;
  box-sizing: border-box;
}

body.portal-home .db-intro-portal .db-intro-title {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-variant: normal;
  color: #64748b;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}

body.portal-home .db-intro-portal .db-intro-title::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #164a84, #3b82a6);
}

body.portal-home .db-intro-portal__body {
  display: grid;
  gap: 1.45rem;
  align-items: start;
}

@media (min-width: 900px) {
  body.portal-home .db-intro-portal__body {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 1.65rem;
  }
}

body.portal-home .db-intro-aside {
  padding: 1.05rem 0.95rem 1.15rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

body.portal-home .db-intro-aside__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

body.portal-home .db-intro-stat-ladder {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.portal-home .db-intro-stat-ladder li {
  margin: 0 0 0.65rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

body.portal-home .db-intro-stat-ladder li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

body.portal-home .db-intro-stat-ladder__n {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #c91c1c;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

body.portal-home .db-intro-stat-ladder__l {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  line-height: 1.35;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body.portal-home .home-intro .db-intro--portal .db-intro-card.db-intro-card--v2 {
  border-radius: 8px;
  border-left-width: 3px;
  box-shadow: none;
  background: #fafbfc;
  padding: 1.75rem clamp(1.1rem, 2.8vw, 1.95rem) 1.85rem;
  border: 1px solid #e2e8f0;
}

body.portal-home .db-intro-rich--client .db-intro-article {
  max-width: 68ch;
}

body.portal-home .db-intro-rich--client .db-intro-lead {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  font-size: 1.03rem;
  line-height: 1.78;
  font-weight: 500;
  color: #0f172a;
  border-left-color: #94a3b8;
}

body.portal-home .db-intro-rich--client .db-intro-panel {
  margin: 0 0 1.25rem;
  padding: 1.2rem 1.25rem 1.25rem;
}

body.portal-home .db-intro-rich--client .db-intro-panel p {
  font-size: 0.96rem;
  line-height: 1.75;
}

body.portal-home .db-intro-rich--client .db-intro-tail {
  font-size: 0.96rem;
  line-height: 1.75;
}

@keyframes portal-flow-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-card {
    animation: portal-flow-float 11s ease-in-out infinite;
  }

  body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic__item:nth-child(2) .db-flow-card {
    animation-delay: 1.4s;
  }

  body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic__item:nth-child(3) .db-flow-card {
    animation-delay: 2.8s;
  }

  body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic__item:nth-child(4) .db-flow-card {
    animation-delay: 4.2s;
  }
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-card {
  transition:
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic__item:hover .db-flow-card,
body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic__item:focus-within .db-flow-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  animation: none;
}

body.portal-home .home-main-band__inner--reflow {
  max-width: var(--layout-max-width);
  width: var(--layout-width);
}

/* 参考站式首屏：居中标题 + 检索块 + 浅色指标带 + 文献 + 列表化入口（非双栏、非深色码头） */
body.portal-home .home-hero--reflow {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 38rem;
}

body.portal-home .home-hero-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

body.portal-home .home-intro .home-main-band .home-hero {
  margin-left: auto;
  margin-right: auto;
}

body.portal-home .home-hero {
  text-align: center;
}

body.portal-home .home-intro .home-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4.2vw, 2.45rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  color: #0f172a;
}

body.portal-home .home-intro .home-subtitle {
  margin: 0 auto;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 400;
  color: #475569;
  max-width: 36rem;
}

body.portal-home .home-search-panel {
  margin: 0 auto 1.65rem;
  max-width: 52rem;
  padding: 1.15rem 1.2rem 1.2rem;
  background: #fff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

body.portal-home .home-search-panel__label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}

body.portal-home .home-search-panel .quick-search {
  margin-top: 0;
}

body.portal-home .quick-search {
  justify-content: center;
}

body.portal-home .home-search-panel .quick-search-row {
  width: 100%;
  max-width: none;
  flex-wrap: wrap;
}

@media (max-width: 599.98px) {
  body.portal-home .home-search-panel .quick-search-row {
    flex-direction: column;
    align-items: stretch;
  }

  body.portal-home .home-search-panel .quick-search-row .qs-submit {
    width: 100%;
  }
}

body.portal-home .home-intro .home-portal--reflow {
  margin-top: 0.25rem;
  padding-top: 0;
  border-top: none;
  width: 100%;
  max-width: none;
  position: static;
  left: auto;
  transform: none;
}

body.portal-home .home-reflow-strip {
  margin: 0 auto 1.5rem;
  max-width: 52rem;
  padding: 1rem 1.15rem 1rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e8edf3;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

body.portal-home .home-metrics-rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.5rem;
}

body.portal-home .home-metrics-rail li {
  flex: 1 1 42%;
  min-width: 8.5rem;
  margin: 0;
  padding: 0.5rem 0.45rem;
  text-align: center;
}

@media (min-width: 720px) {
  body.portal-home .home-metrics-rail li {
    flex: 1 1 0;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
  }

  body.portal-home .home-metrics-rail li:last-child {
    border-right: none;
  }
}

body.portal-home .home-metrics-rail__num {
  display: block;
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0f4c81;
  line-height: 1.2;
}

body.portal-home .home-metrics-rail__lab {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  line-height: 1.3;
}

body.portal-home .home-publication--strip {
  margin: 0.85rem 0 0;
  padding: 0.7rem 0 0;
  border: none;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  text-align: center;
}

body.portal-home .home-publication--strip .home-publication__text {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #475569;
}

body.portal-home .home-publication--strip a {
  color: #0f4c81;
  font-weight: 600;
}

body.portal-home .home-module-nav {
  margin: 0 auto;
  max-width: 52rem;
}

body.portal-home .home-module-nav__h {
  margin: 0 0 0.85rem;
  padding: 0;
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}

body.portal-home .home-module-nav__list--grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  border: none;
  background: transparent;
  overflow: visible;
}

@media (min-width: 640px) {
  body.portal-home .home-module-nav__list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

body.portal-home .home-module-nav__list--grid .home-module-nav__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 7.25rem;
  height: 100%;
  padding: 1.15rem 1.2rem 0.95rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

body.portal-home .home-module-nav__list--grid .home-module-nav__row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 24px rgba(22, 74, 132, 0.1);
  transform: translateY(-2px);
}

body.portal-home .home-module-nav__list--grid .home-module-nav__row:focus-visible {
  outline: 2px solid #164a84;
  outline-offset: 2px;
}

body.portal-home .home-module-nav__list--grid .home-module-nav__name {
  flex: none;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.portal-home .home-module-nav__list--grid .home-module-nav__body {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

body.portal-home .home-module-nav__list--grid .home-module-nav__desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: #64748b;
}

body.portal-home .home-module-nav__list--grid .home-module-nav__chev {
  margin-top: auto;
  align-self: flex-end;
  font-size: 1.15rem;
  font-weight: 600;
  color: #164a84;
  line-height: 1;
}

/* 单列主内容：简介 + 图表灰区（取消左文右图） */
body.portal-home .home-body-stack {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.portal-home .home-body-stack > .db-intro {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 1.75rem 1.25rem 0.5rem;
  box-sizing: border-box;
}

body.portal-home .home-body-stack > .db-intro.db-intro--portal {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
}

body.portal-home .home-charts-deck {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 1.75rem clamp(1rem, 3vw, 1.6rem) 2.25rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: #eef1f5;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-home .home-charts-deck--portal {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: #eef1f5;
}

body.portal-home .home-charts-deck--portal .home-charts-deck__head {
  margin-bottom: 0.35rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #cbd5e1;
}

body.portal-home .home-charts-deck--portal .home-charts-deck__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: none;
  font-variant: normal;
  color: #0f172a;
}

body.portal-home .home-charts-deck--portal .home-charts-deck__sub {
  max-width: 48rem;
  line-height: 1.62;
}

body.portal-home .home-charts-deck--portal .home-stats-section {
  margin-top: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid #d1d9e6;
}

body.portal-home .home-charts-deck--portal .home-stats-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

body.portal-home .home-charts-deck--portal .home-stats-section:first-of-type {
  margin-top: 1.5rem;
}

body.portal-home .home-charts-deck--portal .home-stats-section__title {
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.portal-home .home-charts-deck--portal .home-stats-section__lead {
  margin-top: 0.4rem;
  max-width: 52rem;
  line-height: 1.65;
  color: #475569;
}

body.portal-home .home-charts-deck__head {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin: 0 auto 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

body.portal-home .home-charts-deck__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

body.portal-home .home-charts-deck__sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  max-width: 40rem;
}

body.portal-home .home-charts-deck .home-stats-section {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: 1.75rem;
}

body.portal-home .home-charts-deck .home-stats-section:first-of-type {
  margin-top: 0;
}

body.portal-home .home-charts-deck .home-stats-section--chart2,
body.portal-home .home-charts-deck .home-stats-section--chart3 {
  margin-top: 1.75rem;
}

body.portal-home .home-intro .db-intro {
  margin-top: 0;
}

body.portal-home .home-intro .db-intro-rich--client .db-intro-panel {
  background: #f8fafc;
  border: 1px solid #e6ebf2;
  border-left: 3px solid #164a84;
  box-shadow: none;
}

body.portal-home .home-intro .db-intro-num {
  color: #c91c1c;
}

body.portal-home .home-intro .db-flow.db-flow--strip {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding: 2.35rem clamp(1rem, 3vw, 1.75rem) 2.5rem;
  width: 100%;
  max-width: none;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-mosaic {
  gap: 1rem 1.2rem;
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-card__img-wrap {
  min-height: 12.5rem;
  max-height: min(52vh, 460px);
  padding: 0.75rem 0.95rem;
}

body.portal-home .home-intro .db-flow.db-flow--strip .db-flow-card__img-wrap img {
  max-height: min(48vh, 420px);
}

body.portal-home .home-intro .home-stats-section__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

body.portal-home .home-intro .home-stats-chart1-shell,
body.portal-home .home-intro .home-stats-chart2-shell,
body.portal-home .home-intro .home-stats-chart3-shell {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  border: 1px solid #e2e8f0;
}

body.portal-home .home-charts-deck--portal .home-stats-chart1-shell,
body.portal-home .home-charts-deck--portal .home-stats-chart2-shell,
body.portal-home .home-charts-deck--portal .home-stats-chart3-shell {
  border-radius: 10px;
  background: #ffffff;
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

body.portal-home .home-charts-deck--portal .home-stats-chart1-shell:hover,
body.portal-home .home-charts-deck--portal .home-stats-chart2-shell:hover,
body.portal-home .home-charts-deck--portal .home-stats-chart3-shell:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

body.portal-home .home-intro .home-info-stack.home-info-stack--band {
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  padding: 2.35rem clamp(1rem, 3vw, 1.75rem) 2.6rem;
  width: 100%;
  max-width: none;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: none;
}

body.portal-home .home-intro .home-info-stack--band .home-highlight-tile {
  padding: 0.85rem 0.95rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: none;
}

body.portal-home .home-intro .home-info-stack--band .home-cite-panel {
  padding: 1.05rem 1.15rem 1.15rem;
  border-radius: 8px;
  box-shadow: none;
  border: 1px solid #e2e8f0;
}

body.portal-home .home-intro .home-info-stack--band .home-info-card__title,
body.portal-home .home-intro .home-info-stack--band .home-info-card__title--caps {
  letter-spacing: 0.1em;
}

body.portal-home .home-intro .home-info-stack--band .home-info-band {
  width: var(--layout-width);
  max-width: var(--layout-max-width);
}
.gene-variant-count-trigger {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.gene-rr-variant-ids-popover {
  z-index: 1080;
  min-width: 10rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  max-height: 16rem;
  overflow: auto;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border: 1px solid rgba(22, 74, 132, 0.2);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.gene-rr-variant-ids-popover.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.gene-rr-variant-ids-popover__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #164a84;
  margin-bottom: 0.35rem;
}

.gene-rr-variant-ids-popover__list {
  padding-left: 0;
}

.gene-rr-variant-ids-popover__item + .gene-rr-variant-ids-popover__item {
  margin-top: 0.15rem;
}

.gene-rr-variant-id-btn {
  text-align: left;
  word-break: break-all;
}

.gene-intra-pager {
  margin-top: 0.65rem;
}

/* 搜索页结果表：表头列排序（同时仅一列激活） */
.search-sort-th__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  vertical-align: middle;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.05rem;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  border-radius: 4px;
  white-space: normal;
}

.search-sort-th__btn:hover {
  background: rgba(22, 74, 132, 0.08);
}

.search-sort-th__btn:focus {
  outline: 2px solid rgba(22, 74, 132, 0.35);
  outline-offset: 1px;
}

.search-sort-th__text {
  min-width: 0;
  text-align: left;
  font-weight: 700;
  color: #000;
}

.search-sort-th__ico {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.72rem;
  position: relative;
  display: inline-block;
  margin-left: 0.1rem;
}

.search-sort-th__ico::before,
.search-sort-th__ico::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.35;
}

.search-sort-th__ico::before {
  top: 0;
  border-bottom: 5px solid #94a3b8;
}

.search-sort-th__ico::after {
  bottom: 0;
  border-top: 5px solid #94a3b8;
}

.search-sort-th__btn.is-sorted-asc .search-sort-th__ico::before {
  border-bottom-color: #1e293b;
  opacity: 1;
}

.search-sort-th__btn.is-sorted-asc .search-sort-th__ico::after {
  opacity: 0.18;
}

.search-sort-th__btn.is-sorted-desc .search-sort-th__ico::after {
  border-top-color: #1e293b;
  opacity: 1;
}

.search-sort-th__btn.is-sorted-desc .search-sort-th__ico::before {
  opacity: 0.18;
}

/* Region：弦图与下方记录表同一张白卡片（表格外层不再单独套 search-result-subsection-box） */
.region-chord-records-below {
  width: 100%;
  min-width: 0;
  margin-top: 0.35rem;
  padding-top: 0.25rem;
}

/* Region FPKM 图：外层描边、内层滚动（边框与 overflow 同层时易被画布盖住，故拆成 frame + scroll） */
.page-main--search .region-enh-fpkm-chart-frame {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  max-width: 100%;
  box-sizing: border-box;
  /* border: 1px solid #dee2e6; */
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.page-main--search .region-enh-fpkm-chart-scroll {
  overflow-x: auto !important;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
}
.page-main--search .region-enh-fpkm-chart-scroll .gene-expr-chart {
  margin-left: 0;
  margin-right: 0;
  min-width: max(100%, 720px);
}

/* E/P Region 记录表：表头单行 + 按内容撑开列宽 + 横向滚动（macOS 下滚动条常显）
   （覆盖 Search 页全局 table-layout:fixed / .table-responsive overflow:visible，否则会表头重叠） */
.page-main--search .table-responsive.region-enhancer-table-responsive {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #f1f5f9;
  max-width: 100%;
  margin-left: 0.9rem;
  margin-right: 0.9rem;
  border: 1px solid #dee2e6;
}
.page-main--search .table-responsive.region-enhancer-table-responsive::-webkit-scrollbar {
  height: 10px;
  -webkit-appearance: none;
}
.page-main--search .table-responsive.region-enhancer-table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 5px;
}
.page-main--search .table-responsive.region-enhancer-table-responsive::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
  min-width: 48px;
}
.page-main--search .table-responsive.region-enhancer-table-responsive::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
.page-main--search #regionEnhancerTable {
  table-layout: auto !important;
  width: max-content !important;
  min-width: 100%;
}
#regionEnhancerTable thead th {
  white-space: nowrap !important;
  vertical-align: middle;
}
#regionEnhancerTable thead .search-sort-th__btn {
  white-space: nowrap;
  max-width: none;
}
#regionEnhancerTable thead .search-sort-th__text {
  white-space: nowrap;
  min-width: max-content;
}
