:root {
  color-scheme: light;
  --ink: #142c46;
  --muted: #455f77;
  --accent: #234f79;
  --rule: #d6e1ec;
  --paper: #f5f8fb;
  font-family: system-ui, -apple-system, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.22em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(calc(100% - 64px), 1140px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--rule);
  background: #fff;
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.logo img { display: block; max-width: 100%; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.site-header nav a { padding-block: 10px; font-size: 0.9rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.hero {
  margin-block-start: 24px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #08152314 10%, #07152455 42%, #071524eb 66%, #071524 100%),
    #071524 url("/assets/auth/innovative-drug-research-hero.png") center 49% / cover no-repeat;
  color: #f8fbff;
}
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  min-height: clamp(328px, 42svh, 384px);
  padding-inline: clamp(24px, 4vw, 52px);
}
.hero-copy {
  grid-column: 2;
  padding-block: 34px;
  animation: arrive 420ms ease-out both;
}
.hero h1 { font-size: clamp(2.15rem, 4.2vw, 3.6rem); line-height: 1.13; letter-spacing: -0.035em; }
.hero p { max-width: 36ch; margin-block: 14px 20px; color: #dce8f5; font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.65; }
.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 140ms ease;
}
.button-light { background-color: #eef5fc; color: var(--ink); }
.button-light:hover { background-color: #d8e7f6; }
.hero a:focus-visible { outline-color: #eef5fc; }
.button-primary { background-color: var(--accent); color: #fff; }
.button-primary:hover { background-color: #153958; }
.button-primary:focus-visible { outline-color: var(--accent); }

.overview {
  display: grid;
  grid-template-columns: minmax(0, 235px) minmax(0, 1fr);
  gap: clamp(38px, 6vw, 86px);
  padding-block: clamp(40px, 5vw, 64px);
}
.overview, .database, .assistant { scroll-margin-top: 88px; }
.overview-index { position: sticky; top: 96px; align-self: start; }
.overview-index h2, .assistant h2, .start h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); line-height: 1.22; letter-spacing: -0.025em; }
.overview-index p { margin-block: 12px 20px; color: var(--muted); line-height: 1.65; }
.overview-index nav { display: grid; }
.overview-index nav a {
  padding: 9px 12px;
  border-left: 2px solid var(--rule);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.overview-index nav a:hover { border-color: var(--accent); background-color: #e7eff7; }
.assistant-jump {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}
.assistant-jump span { margin-inline-start: 0.35em; }
.database-list { border-top: 1px solid var(--rule); }
.database { padding: 24px 0 25px; border-bottom: 1px solid var(--rule); }
.database h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.35; }
.database h3 a { color: var(--ink); text-decoration: none; }
.database h3 a:hover { text-decoration: underline; }
.database h3 span { display: inline-block; margin-left: 0.28em; color: var(--accent); font-size: 0.72em; transition: transform 140ms ease; }
.database h3 a:hover span { transform: translate(2px, -2px); }
.database p { max-width: 68ch; margin-top: 8px; color: var(--muted); line-height: 1.7; }
.database .example { margin-top: 9px; color: var(--accent); font-size: 0.9rem; }
.database:target h3 a { color: var(--accent); text-decoration: underline; }

.assistant {
  margin-block-end: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 4vw, 42px);
  border-block-start: 2px solid #8ca9c5;
  background: #e9f1f8;
}
.assistant-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-block: 20px 24px;
}
.assistant-tools dt { font-weight: 700; }
.assistant-tools dd { margin: 6px 0 0; color: var(--muted); line-height: 1.65; }

.start { border-top: 1px solid var(--rule); background: #e9f1f8; }
.start-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 44px; }
.start p { margin-top: 8px; color: var(--muted); line-height: 1.65; }
.start-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.start-actions > a:not(.button) { padding-block: 10px; font-weight: 650; }

@keyframes arrive {
  from { transform: translateY(8px); }
  to { transform: translateY(0); }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero {
    margin-block-start: 14px;
    background:
      linear-gradient(180deg, #07152422, #071524d9 38%, #071524 72%),
      #071524 url("/assets/auth/innovative-drug-research-hero.png") 30% center / cover no-repeat;
  }
  .hero-content { display: block; min-height: auto; }
  .hero-copy { padding-block: 72px 27px; }
  .hero p { margin-block: 12px 18px; }
  .overview { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .overview-index { position: static; }
  .overview-index nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-index nav a { min-height: 42px; }
  .assistant-tools { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .start-content { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .button, .overview-index nav a, .database h3 span { transition: none; }
}
