/* 微领模型：分组动物切换与对应的纯文字模型目录。 */
#models.vm-section {
  --vm-ink: #194d69;
  --vm-line: #dce7ee;
  background: #fff;
}
#models.vm-section .vm-heading {
  margin-bottom: 30px;
}
#models.vm-section .vm-heading h2 {
  color: var(--vm-ink);
}
#models.vm-section #vm-animal-directory {
  display: grid;
  gap: 42px;
}
#models.vm-section .vm-size-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--vm-line);
  color: #285f7c;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.5;
}
#models.vm-section .vm-size-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--vm-line);
}
#models.vm-section .vm-size-heading .vm-size-title {
  margin: 0;
  padding: 0;
  border: 0;
  flex-shrink: 0;
}
#models.vm-section .vm-animal-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  min-width: 0;
}
#models.vm-section .vm-animal-tab {
  min-height: 42px;
  padding: 9px 22px;
  border: 1px solid #d5e5f0;
  border-radius: 6px;
  background: #f8fbfd;
  color: #507a94;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
#models.vm-section .vm-animal-tab:hover {
  background: #edf6fc;
  border-color: #9dc9e3;
  color: #1e648e;
}
#models.vm-section .vm-animal-tab.is-active {
  background: #176c9b;
  border-color: #176c9b;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px #176c9b1c;
}
#models.vm-section .vm-animal-tab:focus-visible {
  outline: 2px solid #169bdd;
  outline-offset: 3px;
}
#models.vm-section .vm-animal-panel {
  border: 1px solid #d8e5ee;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 22px #194f7306;
}
#models.vm-section .vm-animal-panel[hidden] {
  display: none;
}
#models.vm-section .vm-animal-panel.is-active {
  animation: vm-panel-reveal 0.2s ease-out;
}
#models.vm-section .vm-animal-panel:focus-visible {
  outline: 2px solid #169bdd;
  outline-offset: 3px;
}
@keyframes vm-panel-reveal {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
#models.vm-section .vm-animal-data {
  min-width: 0;
  margin: 0;
}
#models.vm-section .vm-detail-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
}
#models.vm-section .vm-detail-row + .vm-detail-row {
  border-top: 1px solid var(--vm-line);
}
#models.vm-section .vm-type-value,
#models.vm-section .vm-name-value {
  margin: 0;
  padding: 18px 24px;
  font-size: 15px;
  line-height: 1.95;
  overflow-wrap: anywhere;
}
#models.vm-section .vm-type-value {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #285d79;
  font-weight: 600;
  background: #f2f8fc;
  border-right: 1px solid var(--vm-line);
}
#models.vm-section .vm-name-value {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  color: #486d82;
  font-weight: 400;
}
#models.vm-section .vm-detail-row:nth-child(even) .vm-name-value {
  background: #fcfdfe;
}
#models.vm-section .vm-model-item {
  display: block;
  flex: 0 1 auto;
  max-width: 100%;
  min-width: 0;
  padding: 6px 11px;
  border: 1px solid #d5e6f2;
  border-radius: 6px;
  background: #eff6fc;
  color: #3b6988;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#models.vm-section .vm-model-item:nth-child(4n + 2) {
  background: #eef8fa;
  border-color: #d1e7ed;
  color: #2f6d81;
}
#models.vm-section .vm-model-item:nth-child(4n + 3) {
  background: #f0f4fb;
  border-color: #dbe3f2;
  color: #506c8d;
}
#models.vm-section .vm-model-item:nth-child(4n) {
  background: #eef7f6;
  border-color: #d6e9e6;
  color: #397578;
}
#models.vm-section .vm-source-reference {
  margin: 42px auto 0;
}
#models.vm-section .vm-source-reference > h3 {
  margin: 0 0 20px;
  color: var(--vm-ink);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.5;
}
#models.vm-section .vm-tumor-table {
  width: 100%;
  table-layout: fixed;
  border-spacing: 0;
  border-collapse: separate;
  border: 1px solid #d4e4ee;
  border-radius: 10px;
  overflow: hidden;
  color: #3d647c;
  font-size: 15px;
  line-height: 1.75;
}
#models.vm-section .vm-tumor-table th,
#models.vm-section .vm-tumor-table td {
  padding: 14px 20px;
  border-right: 1px solid #e0eaf0;
  border-bottom: 1px solid #e0eaf0;
  text-align: left;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
#models.vm-section .vm-tumor-table tr > :last-child {
  border-right: 0;
}
#models.vm-section .vm-tumor-table tbody tr:last-child > * {
  border-bottom: 0;
}
#models.vm-section .vm-tumor-table thead th {
  background: #1c638b;
  border-color: #ffffff26;
  color: #fff;
  font-weight: 600;
}
#models.vm-section .vm-cancer-column {
  width: 25%;
}
#models.vm-section .vm-tumor-table .vm-name-cell {
  background: #f6fafc;
  color: #2b5e7a;
  font-weight: 550;
}
@media (max-width: 1180px) {
  #models.vm-section .vm-detail-row {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  #models.vm-section .vm-type-value,
  #models.vm-section .vm-name-value {
    padding: 16px 20px;
    font-size: 14px;
  }
  #models.vm-section .vm-tumor-table {
    font-size: 14px;
  }
  #models.vm-section .vm-tumor-table th,
  #models.vm-section .vm-tumor-table td {
    padding: 12px 15px;
  }
}
@media (max-width: 760px) {
  #models.vm-section .vm-size-heading {
    gap: 13px 20px;
  }
  #models.vm-section .vm-animal-tab {
    padding-inline: 17px;
  }
  #models.vm-section .vm-detail-row {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  #models.vm-section .vm-type-value,
  #models.vm-section .vm-name-value {
    padding-inline: 17px;
  }
}
@media (max-width: 640px) {
  #models.vm-section .vm-heading {
    margin-bottom: 24px;
  }
  #models.vm-section #vm-animal-directory {
    gap: 30px;
  }
  #models.vm-section .vm-size-title {
    margin-bottom: 16px;
    font-size: 21px;
  }
  #models.vm-section .vm-size-heading {
    padding-bottom: 15px;
    margin-bottom: 16px;
    gap: 12px;
  }
  #models.vm-section .vm-animal-tabs {
    gap: 7px;
  }
  #models.vm-section .vm-animal-tab {
    min-height: 40px;
    font-size: 13px;
    padding: 9px 14px;
  }
  #models.vm-section .vm-detail-row {
    display: block;
  }
  #models.vm-section .vm-type-value,
  #models.vm-section .vm-name-value {
    font-size: 14px;
    line-height: 1.95;
    padding: 13px 17px;
  }
  #models.vm-section .vm-name-value {
    gap: 7px;
  }
  #models.vm-section .vm-model-item {
    padding: 6px 9px;
    font-size: 13px;
  }
  #models.vm-section .vm-type-value {
    border-right: 0;
    padding-block: 10px;
    font-size: 14px;
  }
  #models.vm-section .vm-source-reference {
    margin-top: 30px;
  }
  #models.vm-section .vm-source-reference > h3 {
    margin-bottom: 16px;
    font-size: 21px;
  }
  #models.vm-section .vm-tumor-table {
    font-size: 12px;
  }
  #models.vm-section .vm-tumor-table th,
  #models.vm-section .vm-tumor-table td {
    padding: 9px 8px;
  }
}
@media (max-width: 380px) {
  #models.vm-section .vm-animal-tab {
    padding-inline: 12px;
  }
  #models.vm-section .vm-tumor-table th,
  #models.vm-section .vm-tumor-table td {
    padding-inline: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #models.vm-section .vm-animal-tab {
    transition: none;
  }
  #models.vm-section .vm-animal-panel.is-active {
    animation: none;
  }
}

/* 02-row-focus：模型目录行聚焦与标签轻浮起。 */
#models.vm-section .vm-detail-row {
  position: relative;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease;
}
#models.vm-section .vm-type-value,
#models.vm-section .vm-model-item,
#models.vm-section .vm-tumor-table tbody td {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  #models.vm-section .vm-detail-row:hover {
    z-index: 2;
    transform: translateY(-2px);
    background: #fbfdff;
    box-shadow: 0 12px 24px #1c598212;
  }
  #models.vm-section .vm-detail-row:hover .vm-name-value {
    background: #fbfdff;
  }
  #models.vm-section .vm-detail-row:hover .vm-type-value {
    background: #eaf4fa;
    color: #0a5e91;
  }
  #models.vm-section .vm-detail-row:hover .vm-model-item {
    border-color: #b9d6e8;
  }
  #models.vm-section .vm-model-item:hover {
    z-index: 1;
    background: #eaf6fc;
    color: #0b5f94;
    transform: translateY(-2px);
  }
  #models.vm-section .vm-tumor-table tbody tr {
    position: relative;
    transition:
      transform 0.28s ease,
      background-color 0.28s ease;
  }
  #models.vm-section .vm-tumor-table tbody tr:hover {
    transform: translateX(4px);
    background: #f8fbfd;
  }
  #models.vm-section .vm-tumor-table tbody tr:hover .vm-name-cell {
    background: #e9f3f9;
  }
}
@media (prefers-reduced-motion: reduce) {
  #models.vm-section .vm-detail-row,
  #models.vm-section .vm-type-value,
  #models.vm-section .vm-model-item,
  #models.vm-section .vm-tumor-table tbody tr,
  #models.vm-section .vm-tumor-table tbody td {
    transition: none;
  }
  #models.vm-section .vm-detail-row:hover,
  #models.vm-section .vm-model-item:hover,
  #models.vm-section .vm-tumor-table tbody tr:hover {
    transform: none;
  }
}
/* vm-row-focus-02 */
