/* YFUC — 昆明臻蕈生物科技有限公司 */
:root {
  --color-bg: #f4f7f4;
  --color-surface: #ffffff;
  --color-primary: #1e4d3a;
  --color-primary-light: #2d6b52;
  --color-accent: #c9a227;
  --color-accent-soft: rgba(201, 162, 39, 0.12);
  --color-text: #1a1f1c;
  --color-muted: #5c6560;
  --color-border: #dce5df;
  --font-sans: "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
  --shadow-sm: 0 1px 3px rgba(30, 77, 58, 0.08);
  --shadow-md: 0 8px 24px rgba(30, 77, 58, 0.12);
  --radius: 10px;
  --header-h: 72px;
  /* 主栏宽度：适配 24–27" 等宽屏（约 1920×1080～2560×1440） */
  --max-w: 1560px;
  /* 长文段落最大行长（避免过宽难读） */
  --text-max: min(72rem, 100%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

.container {
  width: min(100% - clamp(1.5rem, 3vw, 3rem), min(var(--max-w), 96vw));
  margin-inline: auto;
}

/* ----- Site header (injected nav) ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
}

.brand__mark--img {
  display: block;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary);
  line-height: 1.2;
}

.brand__sub {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

/* Nav switch buttons — shared component */
.nav-switch {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.25rem;
  justify-content: flex-end;
}

.nav-switch__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--color-text);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-switch__link:hover {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

.nav-switch__link.is-active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.nav-switch__link--admin {
  border-color: var(--color-accent);
  color: var(--color-primary);
  background: var(--color-accent-soft);
}

.nav-switch__link--admin:hover {
  background: var(--color-accent);
  color: #1a1f1c;
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .nav-switch {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.25rem;
    border-top: 1px solid var(--color-border);
  }
}

/* ----- Footer ----- */
.site-footer {
  margin-top: auto;
  padding: 1.35rem 1rem 1.15rem;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer a:hover {
  color: var(--color-accent);
}

.site-footer__main {
  min-width: 0;
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__row--top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
}

.site-footer__brand-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.site-footer__row--bottom {
  display: grid;
  align-items: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
}

.site-footer__intro {
  margin: 0;
  min-width: 0;
  line-height: 1.6;
  text-indent: 2em;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.site-footer a.site-footer__intro-mail {
  font-weight: 500;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: rgba(255, 255, 255, 0.95);
}

.site-footer a.site-footer__intro-mail:hover {
  color: var(--color-accent);
}

.site-footer__actions {
  display: flex;
  justify-content: flex-end;
  align-self: center;
  margin: 0;
}

.site-footer__contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.site-footer__contact-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.52);
  color: var(--color-accent);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.12);
}

@media (max-width: 640px) {
  .site-footer__row--bottom {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: center;
  }

  .site-footer__intro {
    text-align: left;
    text-indent: 2em;
  }

  .site-footer__actions {
    justify-content: center;
  }
}

.site-footer__title {
  font-weight: 700;
  margin: 0;
  font-size: 1rem;
}

.site-footer__beian {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__beian-line {
  margin: 0;
  max-width: none;
}

.site-footer__beian a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.site-footer__beian a:hover {
  color: var(--color-accent);
}

.site-footer__beian-sep {
  opacity: 0.65;
  padding: 0 0.15rem;
}

.site-footer__beian-placeholder {
  margin: 0;
  max-width: var(--text-max);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__beian-placeholder code {
  font-size: 0.76rem;
  background: rgba(0, 0, 0, 0.15);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}

.site-footer__beian-text {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__beian-pending {
  color: rgba(255, 255, 255, 0.55);
  font-style: italic;
}

.site-footer__gongan-link {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  vertical-align: middle;
}

.site-footer__gongan-badge {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* ----- Contact: 留言弹窗 ----- */
body.modal-open {
  overflow: hidden;
}

.contact-page .section__title {
  margin-bottom: 0.75rem;
}

.contact-page .lead {
  max-width: none;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.message-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.message-modal.is-open {
  display: flex;
}

.message-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 40, 24, 0.48);
  backdrop-filter: blur(3px);
}

.message-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92vh, 42rem);
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  padding: 1.5rem 1.35rem 1.35rem;
}

.message-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.message-modal__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.message-modal__title {
  margin: 0 0 0.5rem;
  padding-right: 2rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.message-modal .form-group textarea {
  min-height: 120px;
}

.form-hint-muted {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ----- Contact: 快捷应用（二维码栏） ----- */
/* 与上方「给我们留言」同属 .container，网格拉满内容区宽度，左右与容器对称 */
.quick-apps {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: left;
}

.quick-apps__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: left;
}

.quick-apps__lead {
  margin: 0 0 2.25rem;
  max-width: none;
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
  text-align: left;
  white-space: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.quick-apps__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.75rem 3rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  justify-content: stretch;
  justify-items: center;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.quick-apps__item {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.quick-apps__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.quick-apps__qr {
  width: 100%;
  max-width: min(11rem, 100%);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.quick-apps__caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.45;
  text-align: center;
  width: 100%;
}

@media (min-width: 900px) {
  .quick-apps__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3rem 3.75rem;
    width: 100%;
  }
}

/* ----- Hero / carousel ----- */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: none;
  background: #0d2818;
  overflow: visible;
}

/* 不用 aspect-ratio + max-height 组合，否则宽屏下为保比例会收缩宽度，左右（尤其右侧）出现留白 */
.hero-carousel__viewport {
  position: relative;
  width: 100%;
  max-width: none;
  /* 宽屏（约 24–27" 常见宽度）下更高，接近 21:8 横幅观感；小屏仍由下方媒体查询收紧 */
  min-height: 280px;
  height: clamp(280px, calc(100vw * 8 / 21), 560px);
}

@media (max-width: 768px) {
  .hero-carousel__viewport {
    min-height: 200px;
    height: clamp(200px, calc(100vw * 9 / 18), 320px);
  }
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 1rem 1.25rem 1.4rem;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel__caption h1 {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-size: clamp(1.25rem, 3.5vw, 1.85rem);
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 20px rgba(0, 0, 0, 0.55);
}

.hero-carousel__caption p {
  margin: 0;
  width: max-content;
  max-width: none;
  font-size: clamp(1.02rem, 2.15vw, 1.14rem);
  line-height: 1.55;
  opacity: 0.98;
  text-align: left;
  white-space: nowrap;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 0, 0, 0.45);
}

/* 首页轮播：菌株检索靠下，但与指示点留出较宽空隙（与 .carousel-controls__dots 的 bottom 联动） */
.hero-search-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1rem;
  /* 指示点 bottom:4.5rem + 圆点条高度约 1.1rem + 与检索框之间的空隙 */
  padding-bottom: calc(4.5rem + 1.1rem + 2.75rem);
  pointer-events: none;
  box-sizing: border-box;
}

.hero-search-inner {
  position: relative;
  width: min(100% - 2rem, 42rem);
  max-width: 42rem;
  pointer-events: auto;
  flex-shrink: 0;
}

.hero-search__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  /* 背景更透；文字颜色在 input 上单独设为不透明显色 */
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-search__form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  color: var(--color-text);
  opacity: 1;
}

.hero-search__form input[type="search"]::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.hero-search__form .btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding-inline: 1.1rem;
}

.hero-search__panel {
  margin-top: 0.65rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  border: 1px solid rgba(220, 229, 223, 0.65);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.hero-search__panel[hidden] {
  display: none !important;
}

.hero-search__empty {
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--color-muted);
}

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

.hero-search__list li {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-search__list li:last-child {
  border-bottom: none;
}

.hero-search__list strong {
  color: var(--color-primary);
  font-weight: 600;
}

.hero-search__meta {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.hero-search__list--cards li {
  padding: 0.75rem 1rem;
}

.hero-search__card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.hero-search__card-imgs {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 168px;
}

.hero-search__card-img {
  flex-shrink: 0;
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
}

.hero-search__card-body {
  flex: 1;
  min-width: 0;
}

.hero-search__card-no {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

.hero-search__card-cn {
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.hero-search__card-sn {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--color-text);
  margin-top: 0.1rem;
}

.hero-search__card-pres {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* Carousel controls — from components/carousel-controls.js */
.carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.carousel-controls__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.15s;
  font-size: 1.25rem;
  line-height: 1;
}

.carousel-controls__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-controls__btn--prev {
  left: 1rem;
}

.carousel-controls__btn--next {
  right: 1rem;
}

.carousel-controls__dots {
  position: absolute;
  bottom: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.carousel-controls__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-controls__dot.is-active {
  background: var(--color-accent);
  transform: scale(1.2);
}

@media (max-width: 640px) {
  .hero-search-overlay {
    padding-bottom: calc(3.75rem + 1.1rem + 2.25rem);
  }

  .carousel-controls__dots {
    bottom: 3.75rem;
  }

  .carousel-controls__btn {
    width: 38px;
    height: 38px;
  }
}

/* ----- 菌株资源目录页 strains.html：检索条 + 5 列卡片栅格 ----- */
.strains-page__title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.strains-hero-search {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

/* 检索条与首页共用 .hero-search-inner + .hero-search__form，尺寸一致 */

.strains-page__status {
  text-align: center;
  margin-bottom: 1rem;
}

/* 固定 5×3 栅格；窄屏横向滚动以保持每行 5 格 */
.strains-stock-grid-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.strains-stock-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  gap: 1rem;
  align-items: stretch;
  min-width: min(100%, 720px);
  margin: 0 auto;
}

.strains-stock-grid--message-only {
  display: block;
  min-width: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.strains-stock-slot {
  border-radius: var(--radius);
  min-height: 1px;
  align-self: stretch;
}

.strains-stock-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  margin: 0;
  padding: 1rem 1rem 1.1rem;
  text-align: left;
}

.strains-stock-card--message {
  grid-column: 1 / -1;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.strains-stock-card__line {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.strains-stock-card__line--title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
}

.strains-stock-card__line--latin {
  color: var(--color-text);
  font-size: 0.85rem;
}

.strains-stock-card__line--latin em {
  font-style: italic;
}

.strains-stock-card__line--pres,
.strains-stock-card__line--use {
  font-size: 0.82rem;
  color: var(--color-muted);
}

a.strains-stock-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  box-sizing: border-box;
}

a.strains-stock-card--link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

a.strains-stock-card--link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ----- 标本馆 / 学名释译：检索区下方统计展示框 ----- */
.hall-stat-panel {
  margin: 0.75rem auto 1.25rem;
  max-width: min(44rem, 100%);
  padding: 0.9rem 1.15rem;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.hall-stat-panel .specimen-hall__stock {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--color-muted);
}

/* ----- 标本馆（前台分页卡片，每行 4 张，行数随条数增加） ----- */
.specimen-hall__stock {
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 0.5rem 0 1.25rem;
}

.specimen-hall-grid-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.specimen-hall-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 1rem;
  align-items: stretch;
  min-width: min(100%, 900px);
  margin: 0 auto;
}

.specimen-hall-pagination {
  max-width: min(100%, 56rem);
  margin-left: auto;
  margin-right: auto;
}

.specimen-hall-grid--message-only {
  display: block;
  min-width: 0;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.specimen-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  min-height: 0;
}

.specimen-card__media {
  flex: 0 0 5.25rem;
  width: 5.25rem;
  min-width: 5.25rem;
  max-width: 5.25rem;
  background: #e8ece9;
  overflow: hidden;
  align-self: stretch;
  min-height: 5rem;
}

.specimen-card__media img {
  width: 100%;
  height: 100%;
  min-height: 5rem;
  object-fit: cover;
  display: block;
}

.specimen-card__media--etym {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-muted);
}

/* 学名释译首页卡片：无配图，仅文字 */
.specimen-card--etym-text-only {
  width: 100%;
}

.specimen-card--etym-text-only .specimen-card__body--etym-only {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

/* 释译检索结果：无缩略图 */
.strain-hit-card--no-thumb .strain-hit-card__meta-line {
  max-width: 100%;
}

.specimen-card__body {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.65rem 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  justify-content: center;
}

.specimen-card__cn {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin: 0;
  line-height: 1.3;
}

.specimen-card__latin {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-text);
}

.specimen-card__latin em {
  font-style: italic;
}

.specimen-card__no {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--color-muted);
}

a.specimen-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

a.specimen-card--link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.specimen-hall-slot {
  border-radius: var(--radius);
  min-height: 1px;
}

@media (max-width: 900px) {
  .specimen-hall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-width: 0;
  }
}

/* ----- Sections ----- */
.section {
  padding: 3rem 1rem;
}

/* 保藏统计（横向无缝轮转滚动） */
.section--stats {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(180deg, #eef4ef 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--stats .container {
  text-align: center;
}

.section--stats .section__title {
  margin-bottom: 1.1rem;
}

/* 首页新闻动态（资源库简介上方） */
.section--home-news {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}

.home-news-container {
  max-width: var(--container-max, 72rem);
}

.home-news-title-block {
  text-align: center;
  margin-bottom: 1.15rem;
}

.home-news-title {
  margin-bottom: 0.2rem;
}

.home-news-subtitle-en {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--color-muted);
  font-weight: 500;
}

.home-news-status {
  margin: 0 0 0.65rem;
  min-height: 1.2em;
  text-align: center;
}

.home-news-root {
  width: 100%;
  min-height: 2rem;
}

.home-news-footer-more {
  text-align: center;
  margin: 1.65rem 0 0;
}

.home-news-empty {
  margin: 0;
  padding: 1.1rem 1.15rem;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: center;
}

/* 无置顶：纵向列表最多 5 条 */
.home-news-list-simple {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.home-news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-news-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

.home-news-item__time {
  flex: 0 0 auto;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.home-news-item__title {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.home-news-item__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-news-item__title a:hover {
  text-decoration: underline;
}

/* 置顶：左轮播 + 右 4 条 */
.home-news-split {
  display: flex;
  flex-direction: row;
  gap: 1.25rem;
  align-items: stretch;
  width: 100%;
}

.home-news-featured {
  flex: 1 1 48%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.home-news-carousel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(6, 182, 212, 0.45);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  min-height: 300px;
}

.home-news-carousel__viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-height: 200px;
}

.home-news-carousel__track {
  display: flex;
  flex-direction: row;
  height: 100%;
  transition: transform 0.38s ease;
}

.home-news-carousel__slide {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.home-news-slide-visual {
  position: relative;
  flex: 1 1 58%;
  min-height: 168px;
  background: linear-gradient(
    145deg,
    var(--color-primary) 0%,
    #06b6d4 42%,
    #ccfbf1 100%
  );
}

.home-news-slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-news-slide-caption {
  flex: 0 0 auto;
  padding: 0.85rem 1rem;
  background: #fff;
  text-align: left;
}

.home-news-slide-caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}

.home-news-slide-caption h3 a {
  color: var(--color-primary);
  text-decoration: none;
}

.home-news-slide-caption h3 a:hover {
  text-decoration: underline;
}

.home-news-slide-date {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.home-news-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0 0.7rem;
  background: #fff;
}

.home-news-carousel__dot {
  width: 1.4rem;
  height: 3px;
  border-radius: 2px;
  border: none;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
}

.home-news-carousel__dot.is-active {
  background: var(--color-accent);
}

.home-news-side-list {
  flex: 1 1 48%;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.home-news-side-item {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 0.65rem;
  align-items: stretch;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  min-height: 0;
}

.home-news-side-date {
  flex: 0 0 3.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-right: 1px solid var(--color-border);
  padding-right: 0.55rem;
}

.home-news-side-date__day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.home-news-side-date__line {
  width: 100%;
  max-width: 2.5rem;
  height: 1px;
  background: var(--color-border);
  margin: 0.32rem 0;
}

.home-news-side-date__ym {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.home-news-side-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.home-news-side-body__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.home-news-side-body__title a {
  color: var(--color-text);
  text-decoration: none;
}

.home-news-side-body__title a:hover {
  color: var(--color-primary);
}

.home-news-side-body__summary {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .home-news-split {
    flex-direction: column;
  }

  .home-news-side-item {
    flex: none;
  }
}

@media (max-width: 560px) {
  .home-news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* 资源库简介：栏目标题居中；正文左右各比同容器内保藏统计轮播窄约 3 字宽；两端对齐、1.6 行距 */
.section--resource-intro .container {
  text-align: center;
}

.section--resource-intro .resource-library-intro {
  /* 与同栏轮播同宽，用 padding 收正文；font-size 与 .lead 一致，3em ≈ 三个汉字宽 */
  width: 100%;
  margin-inline: auto;
  padding-inline: 3em;
  box-sizing: border-box;
  font-size: 1.05rem;
  text-align: justify;
  text-align-last: left;
  font-family: "Times New Roman", var(--font-sans);
  line-height: 1.6;
}

.section--resource-intro .resource-library-intro .lead {
  max-width: none;
  width: 100%;
  margin: 0;
  margin-bottom: 0.8em; /* 段后约 0.5 行（0.5 × line-height 1.6） */
  text-align: justify;
  text-indent: 2em;
  /* 比全局 .lead 的 muted 更深一档，长文更易读 */
  color: #2a3b32;
}

.section--resource-intro .resource-library-intro .lead:last-child {
  margin-bottom: 0;
}

.section--resource-intro .resource-library-intro .lead + .lead {
  margin-top: 0;
}

.section--resource-intro .card-grid--quick {
  text-align: left;
}

/* ----- 关于我们（about.html） ----- */
.section--about-yunxun .about-yunxun__header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.section--about-yunxun .about-yunxun__intro {
  margin-bottom: 0.25rem;
}

.section--about-yunxun .about-yunxun__para {
  margin: 0 auto 1rem;
  max-width: var(--text-max);
  font-size: 1.05rem; /* 与首页 .lead 一致 */
  line-height: 1.6;
  text-indent: 2em;
  text-align: justify;
  text-align-last: left;
  color: var(--color-text);
  word-break: break-word;
}

/* 资源库简介下方三格：整块可点，尺寸与原卡片一致 */
.section--resource-intro a.resource-quick-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section--resource-intro a.resource-quick-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.section--resource-intro a.resource-quick-card h3 {
  color: var(--color-primary);
}

.section--resource-intro a.resource-quick-card:hover h3 {
  color: var(--color-primary-light);
}

.section--resource-intro .resource-quick-card__action {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 500;
}

.section--resource-intro a.resource-quick-card:hover .resource-quick-card__action {
  color: var(--color-primary-light);
}

/* 友情链接：标题居中；卡片栅格内左对齐；背景图在框内、无粗边框 */
.section--friend-links .container {
  text-align: center;
}

.section--friend-links .friend-links-grid {
  text-align: left;
  margin-top: 0.25rem;
}

.section--friend-links a.friend-link-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: none !important;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
  box-shadow: 0 10px 28px rgba(18, 42, 34, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.section--friend-links a.friend-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.45s ease;
}

.section--friend-links a.friend-link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 底色拉亮后减轻遮罩；略保留压暗以平衡白字对比 */
  background: linear-gradient(
    160deg,
    rgba(12, 42, 32, 0.46) 0%,
    rgba(8, 28, 20, 0.58) 100%
  );
  pointer-events: none;
}

.section--friend-links a.friend-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(18, 42, 34, 0.18);
}

.section--friend-links a.friend-link-card:hover::before {
  transform: scale(1.05);
}

.section--friend-links .friend-link-card__inner {
  position: relative;
  z-index: 2;
  display: block;
  padding: 1.35rem 1.25rem 1.3rem;
  text-align: center;
}

.section--friend-links .friend-link-card__name-cn,
.section--friend-links .friend-link-card__abbr,
.section--friend-links .friend-link-card__desc {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.22);
}

.section--friend-links .friend-link-card__name-cn {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0faf5;
  line-height: 1.5;
  text-align: center;
  word-break: break-word;
}

.section--friend-links .friend-link-card__abbr {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.55;
  text-align: center;
  word-break: break-word;
}

.section--friend-links .friend-link-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
  word-break: break-word;
}

/* 说明仅一行时，下移约半行高，使与 NMDC/YIMCC 双行说明的纵向中线大致对齐 */
.section--friend-links .friend-link-card--cgmcc .friend-link-card__desc,
.section--friend-links .friend-link-card--cctcc .friend-link-card__desc {
  margin-top: calc(0.95rem * 1.65 * 0.5);
  margin-top: 0.5lh;
}

/* 四卡：青绿 / 翠绿 / 黄绿 / 墨绿（整体大幅提亮，末端仍保留色相） */
.section--friend-links .friend-link-card--cgmcc::before {
  /* 翠绿为主，一角揉入浅橙 */
  background-image: linear-gradient(
    155deg,
    #fff7ed 0%,
    #fdba74 22%,
    #bbf7d0 44%,
    #86efac 68%,
    #22c55e 100%
  );
}

.section--friend-links .friend-link-card--cctcc::before {
  /* 青绿为主，一角揉入浅紫 */
  background-image: linear-gradient(
    140deg,
    #ede9fe 0%,
    #c4b5fd 16%,
    #99f6e4 40%,
    #5eead4 62%,
    #14b8a6 100%
  );
}

.section--friend-links .friend-link-card--nmdc::before {
  /* 黄绿为主，加强明黄层次 */
  background-image: linear-gradient(
    125deg,
    #fffbeb 0%,
    #fef3c7 14%,
    #fef08a 32%,
    #ecfccb 52%,
    #d9f99d 72%,
    #a3e635 100%
  );
}

.section--friend-links .friend-link-card--yimcc::before {
  /* 绿为主，一角揉入浅红 / 玫调，与其它卡区分 */
  background-image: linear-gradient(
    165deg,
    #fecdd3 0%,
    #fda4af 18%,
    #d1fae5 38%,
    #6ee7b7 68%,
    #047857 100%
  );
}

.stats-marquee {
  margin-top: 0;
  position: relative;
  text-align: left;
}

.stats-marquee__viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0 0.75rem;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 4%,
    #000 96%,
    transparent
  );
}

.stats-marquee__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: max-content;
  will-change: transform;
  animation: stats-marquee-scroll 134s linear infinite;
}

.stats-marquee__viewport:hover .stats-marquee__track {
  animation-play-state: paused;
}

.stats-marquee__segment {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1rem;
  flex: 0 0 auto;
  padding-right: 1rem;
}

@keyframes stats-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stats-marquee__track {
    animation: none;
    transform: none;
  }

  .stats-marquee__viewport {
    overflow-x: auto;
    mask-image: none;
  }
}

.stat-card {
  flex: 0 0 clamp(10.5rem, 20vw, 14rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.55rem 0.55rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.stat-card__value {
  margin: 0 0 0.25rem;
  line-height: 1.05;
  flex-shrink: 0;
}

.stat-card__num {
  font-size: clamp(1.55rem, 3.6vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-card__media {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0;
  background: var(--color-border);
  aspect-ratio: 480 / 280;
}

.stat-card__name {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  box-sizing: border-box;
  width: calc(100% - 0.75rem);
  max-width: 100%;
  margin: 0;
  padding: 0.35rem 0.4rem;
  /* 较原先约加大两档字号；无底框，仅靠阴影保证可读 */
  font-size: clamp(0.92rem, 2.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.97);
  text-align: center;
  background: transparent;
  border-radius: 0;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 2px 16px rgba(0, 0, 0, 0.55);
}

.stat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 640px) {
  .stats-marquee .stat-card {
    flex: 0 0 min(78vw, 14.5rem);
  }
}

.section--alt {
  background: #e8efe9;
}

.section__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: var(--text-max);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ----- Admin / forms ----- */
.auth-panel {
  max-width: 420px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.auth-panel h1 {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  color: var(--color-primary);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.form-group label .req {
  color: #b42318;
  font-weight: 700;
}

.form-group label .opt {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 0.82rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(45, 107, 82, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

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

.btn--primary:hover {
  background: var(--color-primary-light);
}

.btn--secondary {
  background: var(--color-border);
  color: var(--color-text);
}

.btn--gold {
  background: var(--color-accent);
  color: #1a1f1c;
}

.btn--gold:hover {
  filter: brightness(1.05);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.alert--error {
  background: #fde8e6;
  color: #8a1c0f;
  border: 1px solid #f0c4be;
}

.alert--success {
  background: #e6f4ea;
  color: #1e4d2e;
  border: 1px solid #b8dcc4;
}

.dashboard-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .dashboard-layout {
    grid-template-columns: 240px 1fr;
  }
}

.dashboard-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: fit-content;
}

.dashboard-sidebar h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.dashboard-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-sidebar li {
  margin-bottom: 0.35rem;
}

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

.dashboard-nav-link {
  display: inline-block;
  padding: 0.35rem 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
  cursor: pointer;
}

.dashboard-nav-link:hover {
  color: var(--color-primary);
}

.dashboard-nav-link.is-active {
  color: var(--color-primary);
  font-weight: 600;
  border-bottom-color: var(--color-accent);
}

.dashboard-sidebar__current {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  background: var(--color-accent-soft);
  color: var(--color-primary);
  font-weight: 600;
  cursor: default;
}

.dashboard-panel[hidden] {
  display: none !important;
}

/* 后台：标题行居中，成功提示与「知道了」在标题右侧 */
.dashboard-page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  width: 100%;
}

.dashboard-page-heading__title {
  margin: 0;
  text-align: center;
}

.dashboard-success-inline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  background: #e6f4ea;
  border: 1px solid #b8dcc4;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #1e4d2e;
}

.dashboard-success-inline[hidden] {
  display: none !important;
}

.dashboard-success-inline__text {
  line-height: 1.45;
}

.dashboard-success-inline__btn {
  flex-shrink: 0;
  padding: 0.4rem 0.95rem;
  font-size: 0.88rem;
}

/* 菌株信息审核（dashboard #history）：整块内容在内容区居中 */
.dashboard-main--history .dashboard-layout > div:last-child {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.dashboard-panel--history {
  text-align: center;
}

.history-toolbar-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.history-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

/* 覆盖上方 display:flex，否则 hidden 属性无法隐藏该区域 */
.history-edit-actions[hidden] {
  display: none !important;
}

.history-status-line {
  margin: 0 0 0.75rem;
  text-align: center;
}

.history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.history-toolbar input[type="search"] {
  flex: 1;
  min-width: 12rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.history-table-wrap {
  overflow: auto;
  max-height: min(65vh, 560px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.history-pagination {
  margin: 1rem auto 0;
  text-align: center;
}

.history-pagination__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.history-pagination__info {
  font-size: 0.88rem;
  color: var(--color-muted);
  min-width: 6rem;
}

.history-pagination .history-page-btn.is-active {
  border-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 600;
}

.history-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.history-yfuc-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.history-yfuc-link:hover {
  color: var(--color-accent, #b8860b);
}

.admin-strain-detail-page {
  text-align: left;
}

.admin-strain-detail-inner {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.admin-strain-detail-toolbar {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.admin-strain-detail-photo {
  margin-bottom: 1.5rem;
}

.admin-strain-detail-photo-label {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-primary);
}

.admin-strain-detail-photo-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.admin-strain-detail-photo-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.admin-strain-detail-photo-grid:has(.admin-strain-detail-photo-img:nth-child(2))
  .admin-strain-detail-photo-img {
  flex: 1 1 calc(50% - 0.33rem);
  max-width: calc(50% - 0.33rem);
  min-width: 0;
}

.admin-strain-detail-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 32%) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.92rem;
}

.admin-strain-detail-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--color-muted);
}

.admin-strain-detail-dl dd {
  margin: 0;
  word-break: break-word;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.history-col-select,
.history-td-select {
  display: none;
  width: 2.75rem;
  text-align: center;
  vertical-align: middle;
}

.history-table--edit .history-col-select,
.history-table--edit .history-td-select {
  display: table-cell;
}

.history-table th,
.history-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.dashboard-panel--history .history-table th,
.dashboard-panel--history .history-table td {
  text-align: center;
}

.dashboard-panel--history .history-table td em {
  font-style: italic;
}

.history-table th {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
  font-weight: 600;
  color: var(--color-primary);
}

.history-table img {
  max-height: 48px;
  max-width: 72px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.form-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.form-section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ----- Dashboard: preservation multi + logout FAB ----- */
.dashboard-page {
  padding-bottom: 5rem;
}

.preservation-fieldset {
  margin: 0 0 1.1rem;
  padding: 1rem 1rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.preservation-fieldset legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  padding: 0 0.35rem;
}

.preservation-fieldset .form-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.preservation-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.preservation-row:last-child {
  margin-bottom: 0;
}

.preservation-row label.preservation-row__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  min-width: 11rem;
  margin-bottom: 0;
}

.preservation-row__qty {
  width: 5.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
}

.preservation-row__unit {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.textarea-sequence {
  min-height: 120px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

.logout-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
}

.logout-fab:hover {
  filter: brightness(1.02);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- 菌株检索结果页 strain-search.html ----- */
.strain-search-hero {
  position: relative;
  margin: 0;
}

.strain-search-hero__media {
  position: relative;
  width: 100%;
  max-height: min(52vh, 420px);
  overflow: hidden;
}

.strain-search-hero__img {
  display: block;
  width: 100%;
  height: min(52vh, 420px);
  object-fit: cover;
  object-position: center;
}

.strain-search-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 35, 28, 0.15) 0%,
    rgba(20, 35, 28, 0.45) 100%
  );
  pointer-events: none;
}

.strain-search-hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2;
}

.strain-search-hero__form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  width: min(100% - 2rem, 42rem);
  max-width: 42rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.strain-search-hero__form input[type="search"] {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  color: var(--color-text);
}

.strain-search-hero__form .btn {
  flex-shrink: 0;
  border-radius: 999px;
  padding-inline: 1.1rem;
}

.strain-search-main {
  padding-top: 2rem;
}

.strain-search-back-home {
  margin: 0 0 0.75rem;
}

.strain-search-count {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1.25rem;
}

.strain-search-status {
  text-align: center;
  margin-bottom: 0.75rem;
}

.strain-search-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 检索结果卡片：顶栏拉丁名（可点进详情）；左图右文一行；底部分类地位 */
.strain-hit-card {
  padding: 1rem 1.15rem 1.05rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: 0 2px 12px rgba(20, 40, 30, 0.07);
}

.strain-hit-card__latin {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  text-decoration: none;
}

.strain-hit-card__latin:hover {
  text-decoration: underline;
}

.strain-hit-card__latin em {
  font-style: italic;
  font-weight: 600;
}

.strain-hit-card__latin--plain {
  margin: 0 0 0.75rem;
  font-size: 1.28rem;
  color: var(--color-muted);
}

.strain-hit-card__body {
  min-width: 0;
}

.strain-hit-card__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
}

.strain-hit-card__thumb {
  flex-shrink: 0;
  width: 108px;
  height: 81px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.05);
}

.strain-hit-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strain-hit-card__thumb--empty {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: var(--color-muted);
}

.strain-hit-card__meta-line {
  flex: 1;
  min-width: min(100%, 12rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--color-text);
}

.strain-hit-card__meta-chunk {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strain-hit-card__taxon {
  margin: 0.65rem 0 0;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--color-border);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.strain-hit-card__taxon-label {
  font-weight: 600;
  color: var(--color-text);
  margin-right: 0.35rem;
}

@media (max-width: 560px) {
  .strain-hit-card__meta-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .strain-hit-card__meta-chunk {
    white-space: normal;
  }
}

/* ----- 菌株详情页 strain-detail.html ----- */
.strain-detail-page {
  padding-top: 1.5rem;
}

.strain-detail-toolbar {
  margin: 0 0 1.25rem;
}

.strain-detail-article {
  max-width: 48rem;
  margin: 0 auto;
}

.strain-detail-title {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-primary);
  line-height: 1.4;
}

.strain-detail-photo {
  margin: 0 0 1.25rem;
}

.strain-detail-photo__label {
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.strain-detail-photo__img {
  max-width: min(18rem, 50%);
  max-height: 180px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  display: block;
}

.strain-detail-photo__grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-start;
}

.strain-detail-photo__grid:has(.strain-detail-photo__img:nth-child(2))
  .strain-detail-photo__img {
  flex: 1 1 calc(50% - 0.33rem);
  max-width: calc(50% - 0.33rem);
  min-width: 0;
}

.strain-detail-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) 1fr;
  gap: 0.55rem 1.25rem;
  align-items: start;
}

.strain-detail-dl dt {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-muted);
}

.strain-detail-dl dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--color-text);
  word-break: break-word;
}

@media (max-width: 560px) {
  .strain-detail-dl {
    grid-template-columns: 1fr;
  }

  .strain-detail-dl dt {
    margin-top: 0.35rem;
  }

  .strain-detail-dl dt:first-child {
    margin-top: 0;
  }
}

.strain-search-empty {
  text-align: center;
  color: var(--color-muted);
  margin: 2rem 0;
}

.strain-search-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface, #fff);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.06));
}

.strain-search-card__media {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.strain-search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strain-search-card__media--empty {
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.strain-search-card__body {
  flex: 1;
  min-width: 0;
}

.strain-search-card__no {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.strain-search-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.strain-search-card__sn {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.strain-search-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.strain-search-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.strain-search-pagination__suggest {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-left: 0.35rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .strain-search-pagination__suggest {
    display: block;
    width: 100%;
    margin: 0.35rem 0 0;
    white-space: normal;
  }
}

.strain-search-pagination__size {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.strain-search-select {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--color-bg);
}

.strain-search-pagination__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.strain-search-page-btn.btn--ghost {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.strain-search-page-btn.btn--ghost:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

.strain-search-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.strain-search-page-num {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-primary);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.strain-search-page-num:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.04);
}

.strain-search-page-num.is-active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  cursor: default;
}

.strain-search-pagination__hint {
  width: 100%;
  text-align: center;
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-muted);
}

@media (max-width: 640px) {
  .strain-search-card {
    flex-direction: column;
  }

  .strain-search-card__media,
  .strain-search-card__media--empty {
    width: 100%;
    height: auto;
    min-height: 140px;
  }

  .strain-search-card__media img {
    max-height: 200px;
  }
}

/* ----- 新闻动态与后台发布新闻 / 新闻内容审核 ----- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.news-list-status {
  margin: 0.25rem 0 0;
}

.news-list-empty {
  margin: 1rem 0 0;
  color: var(--color-muted);
}

.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-align: left;
}

.news-display-box {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.news-pagination__pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.news-pagination__nav {
  min-width: 4.5rem;
}

.news-pagination__num {
  min-width: 2.5rem;
}

.news-pagination__num--current {
  pointer-events: none;
  cursor: default;
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.news-pagination__ellipsis {
  padding: 0 0.15rem;
  color: var(--color-muted);
  user-select: none;
}

.news-card__time {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.news-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.news-card__title a {
  color: var(--color-primary);
  text-decoration: none;
}

.news-card__title a:hover {
  text-decoration: underline;
}

.news-card__summary {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.55;
}

.news-detail-page {
  text-align: left;
}

.news-detail-inner {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.news-detail-toolbar {
  margin: 0 0 1rem;
}

.news-detail-title {
  text-align: center;
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-primary);
}

.news-detail-meta {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.news-detail-time {
  margin-right: 0.35rem;
}

.news-detail-source-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.news-detail-body {
  margin-top: 0.5rem;
  line-height: 1.75;
}

.news-body-rich,
.news-body-editor {
  font-family: "SimSun", "Songti SC", "STSong", "Times New Roman", Times, serif;
}

.news-body-rich img,
.news-body-editor img {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  height: auto;
  clear: both;
}

.news-edit-page {
  text-align: left;
}

.news-edit-inner {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.news-edit-toolbar-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-primary);
}

.news-edit-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.news-tb-sep {
  width: 1px;
  height: 1.5rem;
  background: var(--color-border);
  margin: 0 0.15rem;
}

.news-tb-color-wrap input[type="color"] {
  width: 2.25rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  vertical-align: middle;
}

.news-body-editor {
  min-height: 280px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow-x: auto;
}

.news-body-editor:empty:before {
  content: attr(data-placeholder);
  color: var(--color-muted);
  pointer-events: none;
}

.news-history-page {
  text-align: left;
}

/* 新闻审核：内容区拉满容器宽度，贴近页面两侧 */
.news-history-page--wide .news-history-dashboard-wrap.container {
  width: 100%;
  max-width: min(var(--max-w, 72rem), 100vw - clamp(0.75rem, 3vw, 1.5rem));
  padding-inline: clamp(0.35rem, 1.5vw, 0.75rem);
}

.news-history-inner {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.news-history-page--wide .news-history-inner {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

@media (min-width: 900px) {
  .news-history-page--wide .news-history-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem 1rem;
  }

  .news-history-page--wide .news-history-row__title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-history-page--wide .news-history-pin {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .news-history-page--wide .news-history-row__actions {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.news-history-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-history-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.news-history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  margin-bottom: 0.65rem;
}

.news-history-pin {
  flex: 1 1 auto;
  min-width: 8rem;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
}

.news-history-pin input {
  cursor: pointer;
}

.news-history-status {
  flex-shrink: 0;
  min-width: 4.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
}

.news-history-status--published {
  color: #1a5d2a;
  background: rgba(34, 139, 34, 0.14);
  border: 1px solid rgba(34, 139, 34, 0.35);
}

.news-history-status--pending {
  color: #8a5a00;
  background: rgba(212, 165, 0, 0.16);
  border: 1px solid rgba(180, 130, 0, 0.4);
}

.news-history-status--revision {
  color: #6b2d5c;
  background: rgba(142, 68, 173, 0.12);
  border: 1px solid rgba(120, 60, 130, 0.38);
}

.news-history-row__title {
  flex: 1;
  min-width: 12rem;
  text-align: left;
}

.news-history-row__title a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.news-history-row__title a:hover {
  text-decoration: underline;
}

.news-history-row__actions {
  flex-shrink: 0;
}

.news-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.news-preview-actions {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* 标本入库：验证方式弹窗（<dialog>） */
.yfuc-specimen-verify-dialog {
  border: 1px solid var(--color-border, #ddd);
  border-radius: var(--radius, 8px);
  padding: 1.25rem 1.35rem;
  max-width: min(36rem, 92vw);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.yfuc-specimen-verify-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.yfuc-specimen-verify-dialog__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.yfuc-specimen-verify-dialog__actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ----- 学名释译（前台） ----- */
.etymology-hall-list-wrap {
  margin-top: 1rem;
}

.etymology-hall-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.etymology-hit-card {
  margin: 0;
}

.etymology-hit-card__link {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.etymology-hit-card__link:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.etymology-hit-card__cn {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.etymology-hit-card__latin {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.etymology-hit-card__go {
  margin: 0;
  font-size: 0.88rem;
  color: var(--color-primary);
}

.etymology-hit-card--wide .etymology-hit-card__link {
  max-width: 40rem;
}

.etymology-search-list.strain-search-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
