:root {
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-alt: #eef3f0;
  --ink: #1d2527;
  --muted: #5a666a;
  --line: #d9ded9;
  --accent: #176b5d;
  --accent-dark: #0f493f;
  --amber: #b86b18;
  --blue: #235c8f;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(32, 42, 43, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 247, 243, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 280px;
}

.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.nav-link {
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface-alt);
  color: var(--accent-dark);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 32px 64px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  min-height: 340px;
}

.hero-content,
.page-hero {
  background:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.84)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Crect width='900' height='520' fill='%23e8f0eb'/%3E%3Cg fill='none' stroke='%239bb8ad' stroke-width='2' opacity='.75'%3E%3Cpath d='M80 420 C180 310, 260 360, 350 245 S520 110, 680 170 820 260, 840 110'/%3E%3Cpath d='M120 120 H330 M120 162 H440 M120 204 H280 M560 335 h190 M560 377 h145'/%3E%3Ccircle cx='702' cy='176' r='52'/%3E%3Ccircle cx='352' cy='246' r='36'/%3E%3C/g%3E%3Cg fill='%23176b5d' opacity='.85'%3E%3Ccircle cx='352' cy='246' r='8'/%3E%3Ccircle cx='702' cy='176' r='10'/%3E%3Ccircle cx='515' cy='157' r='7'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 48px;
}

.hero-content h1,
.page-hero h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 780px;
}

.lead,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.hero-disclaimer {
  background: rgba(255, 248, 237, 0.84);
  border: 1px solid #ead7bb;
  border-radius: 6px;
  color: #5f4930;
  font-size: 13px;
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 860px;
  padding: 10px 12px;
}

.button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 16px;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hero-panel,
.info-card,
.source-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 26px 28px;
}

.hero-panel h2 {
  font-size: 24px;
  margin: 0 0 14px;
}

.steps,
.wide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: 34px 1fr;
  padding: 14px 0;
}

.steps span {
  align-items: center;
  background: var(--surface-alt);
  border-radius: 50%;
  color: var(--accent-dark);
  display: inline-flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.steps small {
  color: var(--muted);
  grid-column: 2;
}

.section,
.notice-band,
.doctor-note {
  margin-top: 34px;
}

.section {
  background: transparent;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.split h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  font-size: 23px;
  margin: 5px 0 10px;
}

.info-card p,
.source-card p,
.split p,
.prose p {
  color: var(--muted);
  margin: 0;
}

.card-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span,
.source-card span,
.source-list a span,
.authority-meta {
  background: var(--surface-alt);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
}

.notice-band,
.doctor-note {
  background: #fff8ed;
  border: 1px solid #ead7bb;
  border-radius: var(--radius);
  padding: 20px 24px;
}

.notice-band p,
.doctor-note p {
  color: #5f4930;
  margin: 4px 0 0;
}

.split,
.two-column {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-columns {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-column {
  display: grid;
  gap: 28px;
}

.authority-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.authority-heading {
  max-width: 920px;
}

.authority-heading p:last-child {
  color: var(--muted);
  font-size: 17px;
  margin: 10px 0 0;
}

.authority-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.authority-row {
  align-items: center;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 52px;
  padding: 18px 20px;
}

.authority-main {
  display: grid;
  gap: 6px;
}

.authority-name {
  font-size: 19px;
  font-weight: 850;
  line-height: 1.3;
}

.authority-meta {
  align-self: center;
  border: 1px solid #d9e5df;
  border-radius: 999px;
  justify-self: end;
  line-height: 1;
  min-width: 42px;
  padding: 6px 9px;
  text-align: center;
}

.authority-row p,
.domestic-source p {
  color: var(--muted);
  margin: 0;
}

.domestic-source {
  background: #fff8ed;
  border: 1px solid #ead7bb;
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 16px 18px;
}

.domestic-source a {
  color: var(--accent-dark);
  font-weight: 800;
}

.page-hero {
  min-height: 260px;
}

.cancer-hero {
  justify-content: flex-end;
}

.name-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 0;
}

.name-meta div {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.name-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.name-meta dd {
  font-weight: 800;
  margin: 2px 0 0;
}

.clean-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.clean-list li {
  border-top: 1px solid var(--line);
  padding: 11px 18px;
}

.clean-list li:first-child {
  border-top: 0;
}

.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtype-grid {
  align-content: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subtype-tag {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  padding: 8px 12px;
}

.keyword {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.source-list {
  display: grid;
  gap: 12px;
}

.source-list.compact {
  gap: 10px;
}

.source-link,
.source-list.compact a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.source-link small {
  color: var(--muted);
}

.data-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}

.table-scroll {
  overflow-x: auto;
}

.data-table th,
.data-table td {
  border-top: 1px solid var(--line);
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-alt);
}

.data-table tr:first-child td,
.data-table tr:first-child th {
  border-top: 0;
}

.glossary-table td:first-child {
  color: var(--accent-dark);
  font-weight: 800;
  width: 240px;
}

.term-table {
  min-width: 920px;
}

.term-table th:first-child,
.term-table td:first-child {
  width: 280px;
}

.term-table th:nth-child(2),
.term-table td:nth-child(2) {
  width: 34%;
}

.term-table td:first-child strong {
  color: var(--accent-dark);
}

.wide-steps {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-reset: wide-step;
}

.wide-steps li {
  border-top: 1px solid var(--line);
  counter-increment: wide-step;
  padding: 20px 24px 20px 72px;
  position: relative;
}

.wide-steps li:first-child {
  border-top: 0;
}

.wide-steps li::before {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  content: counter(wide-step);
  display: flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  left: 24px;
  position: absolute;
  top: 22px;
  width: 34px;
}

.wide-steps p {
  color: var(--muted);
  margin: 4px 0 0;
}

.email-template {
  background: #17211f;
  border-radius: var(--radius);
  color: #eef7f3;
  overflow-x: auto;
  padding: 22px;
  white-space: pre-wrap;
}

.source-stack {
  display: grid;
  gap: 14px;
}

.source-card {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px 24px;
}

.source-card h3 {
  margin: 0 0 4px;
}

.source-card span {
  flex: 0 0 auto;
  line-height: 1;
  min-width: 42px;
  padding: 6px 9px;
  text-align: center;
}

.trial-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.trial-heading {
  max-width: 980px;
}

.trial-heading p {
  color: var(--muted);
  margin: 8px 0 0;
}

.sync-meta {
  color: var(--accent-dark) !important;
  font-weight: 800;
}

.trial-inline-notice {
  background: #fff8ed;
  border: 1px solid #ead7bb;
  border-radius: 6px;
  color: #5f4930;
  font-size: 14px;
  margin: 14px 0 18px;
  padding: 10px 12px;
}

.trial-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 150px 170px 210px minmax(220px, 1fr);
  margin: 18px 0;
}

.trial-filters label,
.filter-label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 5px;
}

.trial-filters select,
.trial-filters input {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 40px;
  padding: 7px 10px;
}

.multi-filter {
  display: grid;
  gap: 5px;
  position: relative;
}

.multi-filter details {
  position: relative;
}

.multi-filter summary {
  align-items: center;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  justify-content: space-between;
  list-style: none;
  min-height: 40px;
  padding: 7px 10px;
}

.multi-filter summary::-webkit-details-marker {
  display: none;
}

.multi-filter summary::after {
  border-bottom: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  height: 8px;
  margin-left: 10px;
  transform: rotate(45deg) translateY(-2px);
  width: 8px;
}

.multi-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 260px;
  min-width: 100%;
  overflow: auto;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 30;
}

.multi-option {
  align-items: center;
  color: var(--ink) !important;
  display: flex !important;
  flex-direction: row;
  font-size: 14px !important;
  font-weight: 650 !important;
  gap: 8px !important;
  padding: 6px 7px;
  white-space: nowrap;
}

.multi-option:hover {
  background: var(--surface-alt);
  border-radius: 4px;
}

.multi-option-all {
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  padding-bottom: 9px;
}

.multi-option input {
  min-height: auto;
  width: auto;
}

.trial-list {
  display: grid;
  gap: 12px;
}

.trial-pagination {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
}

.trial-pagination label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.trial-pagination select,
.trial-page-controls button {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 36px;
  padding: 6px 10px;
}

.trial-page-controls {
  align-items: center;
  display: flex;
  gap: 10px;
}

.trial-page-controls button {
  cursor: pointer;
  font-weight: 750;
}

.trial-page-controls button:disabled {
  color: #9aa3a5;
  cursor: not-allowed;
}

.trial-page-controls span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  min-width: 160px;
  text-align: center;
}

.trial-card {
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.trial-card[hidden] {
  display: none;
}

.trial-card-top {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.trial-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trial-badges span,
.trial-source span {
  background: var(--surface-alt);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  padding: 4px 9px;
}

.trial-badges .trial-status {
  background: #e7f3ed;
}

.trial-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.trial-source span {
  color: var(--muted);
}

.trial-card h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 14px;
}

.trial-card h3 a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}

.trial-card h3 a:hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

.trial-meta {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.trial-meta div {
  min-width: 0;
}

.trial-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.trial-meta dd {
  margin: 2px 0 0;
}

.trial-empty {
  background: #fff8ed;
  border: 1px solid #ead7bb;
  border-radius: var(--radius);
  color: #5f4930;
  margin: 0;
  padding: 16px;
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.prose p + p {
  margin-top: 16px;
}

.site-footer {
  align-items: flex-start;
  background: #16211f;
  color: #f4faf7;
  display: flex;
  gap: 32px;
  justify-content: space-between;
  padding: 30px 40px;
}

.site-footer p {
  color: #cbd8d3;
  margin: 6px 0 0;
  max-width: 760px;
}

.footer-meta {
  display: grid;
  gap: 6px;
  min-width: 240px;
}

.footer-meta,
.footer-meta a {
  color: #dbe6e2;
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .hero,
  .split,
  .two-column,
  .flow-columns,
  .name-meta,
  .authority-row,
  .trial-filters,
  .trial-meta {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    align-items: stretch;
    display: grid;
    padding: 20px;
  }

  main {
    padding: 24px 18px 48px;
  }

  .hero-content,
  .page-hero {
    padding: 34px 24px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .source-card,
  .trial-pagination,
  .trial-page-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .trial-page-controls span {
    min-width: 0;
  }
}
