/* ============================================================
   Quntii Core Components & Layout
   依据：docs/design 组件视觉规格
   ============================================================ */

/* ---------- Header 导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-weight: var(--weight-semibold);
  font-size: var(--text-lg);
  color: var(--brand);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.site-logo svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: var(--space-1) 0;
}

.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-links a.is-active {
  color: var(--brand);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 汉堡菜单（移动端） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* 语言切换器 */
.lang-switcher {
  position: relative;
}

.lang-switcher__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}

.lang-switcher__trigger:hover {
  border-color: var(--brand);
  background: var(--surface);
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              visibility 0s linear var(--duration-fast);
  z-index: 200;
  list-style: none;
}

.lang-switcher.is-open .lang-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.lang-switcher__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out);
}

.lang-switcher__item:hover {
  background: var(--surface-subtle);
}

.lang-switcher__item.is-active {
  color: var(--brand);
  font-weight: var(--weight-medium);
}

.lang-switcher__item.is-disabled {
  color: var(--text-muted);
  cursor: default;
}

.lang-switcher__item.is-disabled:hover {
  background: transparent;
}

.lang-switcher__badge {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Mobile Drawer ---------- */

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--surface);
  z-index: 200;
  transition: right var(--duration-normal) var(--ease-out);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.is-open {
  right: 0;
}

.mobile-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-drawer__nav {
  padding: 80px 24px 24px;
  list-style: none;
  flex: 1;
}

.mobile-drawer__nav li {
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer__nav a {
  display: block;
  padding: 16px 0;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-drawer__nav a.is-active {
  color: var(--brand);
}

.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  z-index: 150;
  transition: opacity var(--duration-fast) var(--ease-out),
              visibility 0s linear var(--duration-fast);
}

.mobile-drawer.is-open ~ .mobile-drawer__overlay {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 1025px) {
  .mobile-drawer,
  .mobile-drawer__overlay {
    display: none !important;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: var(--space-16) 0 var(--space-12);
  text-align: center;
  position: relative;
}

.hero__subtitle {
  display: block;
  font-size: var(--text-lg);
  color: var(--brand);
  font-weight: var(--weight-normal);
  margin-bottom: var(--space-4);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero__bg svg {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

/* ---------- Trust Strip ---------- */

.trust-strip {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-6) 0;
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .trust-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .trust-strip__grid {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  text-align: center;
}

.trust-item__value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: var(--space-1);
}

.trust-item__num {
  font-size: clamp(28px, 3vw + 20px, 40px);
  font-weight: var(--weight-semibold);
  color: var(--brand);
  line-height: 1.2;
}

.trust-item__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ---------- Disease Entry Cards ---------- */

.entry-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .entry-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .entry-cards {
    grid-template-columns: 1fr;
  }
}

.entry-card {
  display: block;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-lighter);
  text-decoration: none;
}

.entry-card__tag {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--brand);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.entry-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.entry-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* ---------- CTA Button ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  text-decoration: none;
  line-height: 1.4;
  font-family: var(--font-zh);
}

.btn-primary {
  background: var(--brand);
  color: var(--surface);
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  color: var(--surface);
  text-decoration: none;
}

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

.btn-secondary:hover {
  background: var(--brand-soft);
  text-decoration: none;
  color: var(--brand);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-lg);
}

/* ---------- Evidence Chip ---------- */

.evidence-chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-family: var(--font-zh);
  line-height: 1;
  transition: opacity var(--duration-fast) var(--ease-out);
  vertical-align: middle;
  margin-left: 4px;
}

.evidence-chip--A {
  background: var(--success);
  color: var(--surface);
}

.evidence-chip--B {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}

.evidence-chip--pending {
  background: transparent;
  border: 1px dashed var(--pending);
  color: var(--pending);
  opacity: 0.7;
  cursor: default;
}

.evidence-chip[aria-disabled="true"] {
  cursor: default;
}

.evidence-popover {
  position: absolute;
  z-index: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-3);
  font-size: var(--text-sm);
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              visibility 0s linear var(--duration-fast);
}

.evidence-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.evidence-popover__field {
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.evidence-popover__field strong {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

.evidence-popover__url {
  display: block;
  margin-top: 8px;
  font-size: var(--text-xs);
  word-break: break-all;
  color: var(--brand);
}

/* ---------- Cost Range Card ---------- */

.cost-range {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
}

/* Header: title + tag (left), median (right) */
.cost-range__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.cost-range__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cost-range__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.cost-range__label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

/* Old bar layout (fallback when JS is disabled) */
.cost-range__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cost-range__bar .cost-range__track {
  flex: 1;
}

.cost-range__bar .cost-range__val {
  position: static;
  min-width: 72px;
  font-size: var(--text-sm);
}

.cost-range__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 2px 10px;
  line-height: 1.4;
}

.cost-range__median {
  text-align: right;
  flex-shrink: 0;
  margin-left: var(--space-3);
}

.cost-range__median-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-right: 4px;
}

.cost-range__median-val {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Values above track: positioned exactly at dot locations */
.cost-range__values {
  position: relative;
  height: 24px;
  margin-bottom: 6px;
}

.cost-range__val {
  position: absolute;
  transform: translateX(-50%);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cost-range__val--min {
  /* left% injected by JS, matches min dot position */
}

.cost-range__val--max {
  /* left% injected by JS, matches max dot position */
}

/* Track */
.cost-range__track {
  height: 6px;
  position: relative;
  background: var(--border);
  border-radius: 3px;
}

.cost-range__fill {
  position: absolute;
  height: 100%;
  background: var(--brand);
  border-radius: 3px;
}

.cost-range__dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--brand);
  border: 3px solid var(--surface);
  border-radius: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px var(--brand);
}

/* Scale below track: 0, mid, max */
.cost-range__scale {
  position: relative;
  height: 18px;
  margin-top: 6px;
}

.cost-range__scale-item {
  position: absolute;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  white-space: nowrap;
}

.cost-range__scale-item:first-child {
  transform: translateX(0);
}

.cost-range__scale-item:last-child {
  transform: translateX(-100%);
}

/* Notes */
.cost-range__notes {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* Hide old structure elements that JS replaces (only when JS is active) */
.js-enabled .cost-range__label {
  display: none;
}

.js-enabled .cost-range__bar {
  display: none;
}

/* Responsive */
@media (max-width: 640px) {
  .cost-range {
    padding: var(--space-3);
  }
  .cost-range__header {
    flex-direction: column;
    gap: var(--space-2);
  }
  .cost-range__median {
    text-align: left;
    margin-left: 0;
  }
}

/* ---------- Disclaimer Block ---------- */

.disclaimer-block {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--surface-subtle);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.disclaimer-block strong {
  color: var(--text-primary);
}

.disclaimer-block__supplement {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
}

/* ---------- Not For You List ---------- */

.not-for-you {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--surface);
}

.not-for-you h3 {
  color: var(--danger);
  margin-bottom: var(--space-3);
  font-size: var(--text-lg);
}

.not-for-you ul {
  list-style: none;
  padding: 0;
}

.not-for-you li {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.not-for-you li:last-child {
  border-bottom: none;
}

.not-for-you__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger);
  color: var(--surface);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ---------- Hospital Card ---------- */

.hospital-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  color: inherit;
  display: block;
}

.hospital-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.hospital-card__accent {
  height: 4px;
  background: var(--text-muted);
}

.hospital-card__accent--international {
  background: var(--brand);
}

.hospital-card__body {
  padding: var(--space-4);
}

.hospital-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.hospital-card__header h3 {
  margin-bottom: 0;
  flex-shrink: 0;
}

.hospital-card__header .evidence-chip {
  flex-shrink: 0;
}

.hospital-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.hospital-card__meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- In Page TOC ---------- */

.page-toc {
  position: sticky;
  top: 100px;
}

.page-toc h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.page-toc ul {
  list-style: none;
  padding: 0;
}

.page-toc li {
  margin-bottom: 8px;
}

.page-toc a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 4px 0;
  border-left: 2px solid transparent;
  transition: color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.page-toc a:hover {
  color: var(--brand);
  text-decoration: none;
}

.page-toc a.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
  padding-left: 12px;
}

/* ---------- Page TOC · Horizontal（快速导航 chips，用于总览页） ---------- */

.page-toc--horizontal {
  position: static;
  margin-bottom: var(--space-8);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.page-toc--horizontal h4 {
  margin-top: 0;
  margin-bottom: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.page-toc--horizontal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.page-toc--horizontal li {
  margin-bottom: 0;
}

.page-toc--horizontal a {
  display: inline-block;
  padding: 6px 14px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-out);
  border-left: 1px solid var(--border);
}

.page-toc--horizontal a:hover {
  color: var(--brand);
  border-color: var(--brand);
  text-decoration: none;
}

.page-toc--horizontal a.is-active {
  color: var(--surface);
  background: var(--brand);
  border-color: var(--brand);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.breadcrumb a {
  color: var(--text-muted);
}

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

.breadcrumb__sep {
  color: var(--border);
}

/* ---------- Hero Intro Banner ---------- */

.intro-banner {
  background: var(--brand);
  color: var(--surface);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.intro-banner--warning {
  background: var(--warning);
}

.intro-banner--danger {
  background: var(--danger);
}

.intro-banner a {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.intro-banner a:hover {
  color: var(--surface);
  opacity: 0.85;
}

/* ---------- 7-step Timeline ---------- */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}

@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .process-timeline {
    grid-template-columns: 1fr;
  }
}

.timeline-step {
  text-align: center;
  position: relative;
}

.timeline-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--brand);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-2);
}

.timeline-step__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-step__dur {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ---------- Alert Banner ---------- */

.alert-banner {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  line-height: var(--leading-normal);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.alert-banner__icon {
  flex-shrink: 0;
  font-size: var(--text-lg);
}

.alert-banner--critical {
  background: #FDF2F3;
  border: 1px solid #F5C6CB;
  color: #721C24;
}

.alert-banner--info {
  background: var(--brand-soft);
  border: 1px solid var(--brand-lighter);
  color: var(--brand);
}

.alert-banner--warning {
  background: #FFF8E1;
  border: 1px solid #FDD835;
  color: #5D4E00;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--surface-subtle);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-10) 0 var(--space-6);
  margin-top: var(--space-16);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brand);
  text-decoration: none;
}

.site-footer__bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ---------- 语言引导 Banner（首页） ---------- */

.lang-banner {
  background: var(--brand);
  color: var(--surface);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  text-align: center;
  position: relative;
}

.lang-banner a {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-banner__close {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--surface);
  cursor: pointer;
  padding: 4px;
  font-size: var(--text-lg);
  opacity: 0.7;
}

.lang-banner__close:hover {
  opacity: 1;
}

/* ---------- Utility ---------- */

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

/* ============================================================
   补充组件（后续页面填充新增）
   ============================================================ */

/* ---------- Card · 通用卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color var(--duration-fast) var(--ease-out);
}

.card:hover {
  border-color: var(--brand-soft);
}

/* ---------- Metric Card · 关键数据速览 ---------- */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.metric-card__value {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-2);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--brand);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

/* metric-card 内的 evidence-chip 贴右，数值 span 居中 */
.metric-card__value > span {
  flex: 1;
  text-align: center;
}

.metric-card__value > .evidence-chip {
  flex-shrink: 0;
}

.metric-card__label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

@media (max-width: 640px) {
  .metric-card {
    padding: var(--space-4);
  }
  .metric-card__value {
    font-size: var(--text-xl);
  }
}

/* ---------- Data Table · 对标表格 ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-4) 0;
}

.data-table thead th {
  text-align: left;
  padding: var(--space-3);
  border-bottom: 2px solid var(--border);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  background: var(--surface-subtle);
  font-size: var(--text-base);
}

.data-table tbody td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table tbody tr:hover td {
  background: var(--surface-subtle);
}

.data-table td:first-child {
  color: var(--text-primary);
  font-weight: var(--weight-medium);
}

@media (max-width: 640px) {
  .data-table thead {
    display: none;
  }
  .data-table tbody tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    padding: var(--space-3);
  }
  .data-table tbody td {
    display: block;
    padding: var(--space-1) 0;
    border-bottom: none;
  }
}

/* ---------- Hospital Card Placeholder ---------- */
.hospital-card.hospital-card--placeholder {
  opacity: 0.85;
}

.hospital-card.hospital-card--placeholder .hospital-card__body::after {
  content: "Detail page coming soon";
  display: inline-block;
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: var(--surface-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* ---------- Anchor scroll offset ---------- */
/* 与 components.js initPageToc 中的 window.scrollY + 120 保持一致 */
section[id] {
  scroll-margin-top: 120px;
}

/* ---------- Indication Index · 癌种快速定位 ---------- */

.indication-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--space-3) 0 var(--space-5);
}

.indication-quicknav__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
  min-height: 36px;
}

.indication-quicknav__pill:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.indication-quicknav__badge,
.indication-group__badge {
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--surface);
  font-size: 10px;
  font-weight: var(--weight-semibold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.indication-group {
  margin-top: var(--space-8);
  scroll-margin-top: 120px;
}

.indication-group__title {
  font-size: 20px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.indication-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: var(--surface);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.indication-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.indication-card__title {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0;
}

.indication-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.indication-card__item {
  border-left: 2px solid var(--brand);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.indication-card__item--na {
  border-left-color: var(--danger);
}

.indication-card__item--na .indication-card__item-name {
  color: var(--danger);
  text-decoration: line-through;
}

.indication-card__item-name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.indication-card__item-name .evidence-chip {
  margin-left: 8px;
  flex-shrink: 0;
}

.indication-card__item-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: var(--leading-normal);
}

.indication-card__item-link {
  font-size: var(--text-sm);
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.indication-card__item-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .indication-card {
    padding: var(--space-3);
  }
  .indication-card__title {
    font-size: 16px;
  }
}
