:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #17212b;
  background: #172433;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #172433;
  --navy-deep: #0e1721;
  --paper: #f3f0e8;
  --white: #fffefa;
  --ink: #1c242b;
  --muted: #6f7475;
  --line: rgba(28, 36, 43, 0.16);
  --line-light: rgba(255, 255, 255, 0.22);
  --lime: #d8ff31;
  --lime-strong: #c9f31e;
  --blue-soft: #e7eefc;
  --blue: #315eaa;
  --warn-bg: #fff2d2;
  --warn: #825000;
  --shadow: 0 24px 70px rgba(4, 10, 17, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

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

button,
input,
select {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 25, 36, 0.9) 0%, rgba(15, 25, 36, 0.58) 42%, rgba(15, 25, 36, 0.1) 100%),
    linear-gradient(180deg, rgba(15, 25, 36, 0.12) 36%, rgba(15, 25, 36, 0.82) 100%),
    url("./solidroad-mountain.png") center calc(50% + var(--scroll-shift, 0px)) / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.05) 52%, transparent 72%);
  transform: translateX(calc(var(--scroll-progress, 0) * 7%));
}

.nav-shell {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 48px, 1450px);
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line-light);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  line-height: 1;
}

.brand-symbol {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
}

.nav-links a,
.brand,
.nav-action {
  transition: opacity 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.brand:hover {
  opacity: 0.72;
}

.nav-action,
.hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 999px;
  color: #17211a;
  background: var(--lime);
  font-size: 14px;
  font-weight: 650;
}

.nav-action {
  justify-self: end;
  padding: 0 20px;
}

.nav-action:hover,
.hero-action:hover {
  background: var(--lime-strong);
  transform: translateY(-2px);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(560px, 1.25fr);
  align-items: center;
  gap: 64px;
  width: min(100% - 48px, 1280px);
  min-height: calc(100svh - 132px);
  margin: 0 auto;
  padding: 72px 0 112px 80px;
}

.hero-copy {
  align-self: center;
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #fffefa;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(44px, 4.4vw, 58px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 span {
  display: block;
}

.hero-summary {
  max-width: 460px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.hero-action {
  margin-top: 30px;
  padding: 0 22px;
}

.search-panel {
  align-self: center;
  width: 100%;
  max-height: min(540px, calc(100svh - 175px));
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: "Songti SC", "STSong", serif;
  font-size: 16px;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: inherit;
  font-size: 11px;
}

.live-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ca83d;
  box-shadow: 0 0 0 4px rgba(108, 168, 61, 0.12);
}

label {
  display: block;
  color: #555b5d;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.4;
}

input,
select {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid #cbc9c2;
  border-radius: 6px;
  outline: 0;
  color: var(--ink);
  background: #fffefa;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #a1a39f;
}

input:hover,
select:hover {
  border-color: #8f948f;
}

input:focus,
select:focus {
  border-color: #6f8423;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(216, 255, 49, 0.32);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 10px;
  margin-top: 15px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.search-panel > .muted {
  margin: 8px 0 0;
}

#status {
  margin: 18px 0 9px;
  color: #777b78;
  font-size: 11px;
  line-height: 1.4;
}

.disease-list {
  max-height: 205px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  scrollbar-color: #a6aaa4 transparent;
  scrollbar-width: thin;
}

.disease-list::-webkit-scrollbar {
  width: 5px;
}

.disease-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #a6aaa4;
}

.item {
  position: relative;
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 11px 38px 11px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.item::after {
  position: absolute;
  top: 50%;
  right: 12px;
  content: "→";
  color: #969995;
  transform: translateY(-50%);
  transition: transform 160ms ease, color 160ms ease;
}

.item:hover {
  padding-left: 15px;
  background: rgba(216, 255, 49, 0.22);
}

.item:hover::after {
  color: #20271c;
  transform: translate(4px, -50%);
}

.item.active {
  color: #151b15;
  background: var(--lime);
}

.item.active::after {
  color: #151b15;
}

.item.active .muted {
  color: #4c553d;
}

.item:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(216, 255, 49, 0.78);
  outline-offset: -3px;
}

.hero-index {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  text-align: center;
}

.content-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 100px max(24px, calc((100vw - 1280px) / 2)) 120px;
  background: var(--paper);
}

.section-intro {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 62px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.section-intro .eyebrow {
  margin: 8px 0 0;
  color: #737873;
}

.section-intro > p:last-child {
  max-width: 820px;
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(28px, 3.2vw, 46px);
  letter-spacing: 0;
  line-height: 1.24;
}

.compatibility-tool {
  margin-top: 90px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.compatibility-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 52px;
  align-items: end;
  margin-bottom: 28px;
}

.compatibility-head .eyebrow {
  margin: 0 0 14px;
  color: #737873;
}

.compatibility-head h2 {
  margin-bottom: 14px;
  font-size: clamp(36px, 4vw, 56px);
}

.compatibility-head > div > p:last-child {
  max-width: 720px;
  margin: 0;
  color: #5e6567;
  line-height: 1.75;
}

.compatibility-search {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.compatibility-status {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.compatibility-results {
  display: grid;
  gap: 18px;
}

.compatibility-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.compatibility-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.compatibility-card h3 {
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
  font-weight: 400;
}

.compatibility-kicker {
  margin: 0 0 6px;
  color: #798078;
  font-size: 11px;
  font-weight: 700;
}

.compatibility-formulation {
  margin: 18px 0;
  line-height: 1.7;
}

.compatibility-card h4 {
  margin: 24px 0 10px;
  color: #31393d;
  font-size: 13px;
}

.context-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.context-notes > div {
  padding: 14px 16px;
  border-top: 3px solid #7a9152;
  background: #f4f6ef;
}

.context-notes p {
  margin: 7px 0 0;
  color: #4e5758;
  line-height: 1.65;
}

.compatibility-lines {
  display: grid;
  gap: 8px;
}

.compatibility-line {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(240px, 1fr);
  gap: 6px 18px;
  padding: 14px 16px;
  border-left: 4px solid;
  background: #f7f7f3;
}

.compatibility-line.compatible {
  border-left-color: #719a34;
  background: #f1f6e8;
}

.compatibility-line.incompatible {
  border-left-color: #bd5e45;
  background: #fff1eb;
}

.compatibility-line > b {
  grid-row: 1 / 3;
  color: #283133;
  line-height: 1.5;
}

.compatibility-line > span,
.compatibility-line > small {
  line-height: 1.6;
}

.compatibility-line > small {
  color: #646b6c;
}

.compatibility-meta {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  margin-top: 8px;
}

.compatibility-meta ul {
  margin: 0;
  padding-left: 20px;
  color: #434b50;
  line-height: 1.75;
}

.compatibility-meta p {
  margin: 0;
  color: #434b50;
  line-height: 1.75;
}

.source-links {
  display: grid;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.source-links a {
  width: fit-content;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-links a:hover {
  color: #173f84;
}

#detail {
  min-width: 0;
  scroll-margin-top: 28px;
}

.detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.06;
}

h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.35;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 5px 2px 0;
  padding: 0 9px;
  border: 1px solid #c8d4ea;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.diagnosis-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.diagnosis-card section {
  min-width: 0;
}

.diagnosis-card .diagnosis-primary {
  grid-column: 1 / -1;
}

.diagnosis-card section + section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.diagnosis-card b,
.order-card b {
  color: #222b31;
}

.diagnosis-card p,
.order-card p {
  margin: 10px 0 0;
  color: #434b50;
  line-height: 1.72;
}

.diagnosis-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: #434b50;
  line-height: 1.72;
}

.warning {
  margin: 0 0 22px;
  padding: 13px 15px;
  border: 1px solid #dec27e;
  border-radius: 6px;
  color: var(--warn);
  background: var(--warn-bg);
  line-height: 1.55;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.order-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.order-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.order-card:hover {
  border-color: rgba(74, 91, 54, 0.42);
  box-shadow: 0 16px 38px rgba(28, 36, 43, 0.09);
  transform: translateY(-4px);
}

.order-card:hover::before {
  transform: scaleX(1);
}

.order-compatibility {
  margin: 18px 0;
  padding: 15px 0 15px 16px;
  border-left: 4px solid #8ba531;
  background: linear-gradient(90deg, rgba(216, 255, 49, 0.16), transparent 78%);
}

.order-compatibility + .order-compatibility {
  margin-top: -10px;
}

.order-compatibility-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.order-compatibility-title a {
  flex: none;
  color: var(--blue);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.order-compatibility p {
  margin-top: 7px;
}

.order-compatibility .context-guidance {
  color: #2c3828;
}

.detail-footer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  color: #31518d;
  background: #e8edf8;
  font-size: 0.92em;
}

.hero-copy,
.search-panel {
  opacity: 0;
  transform: translateY(24px);
}

body.is-ready .hero-copy {
  animation: rise-in 850ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

body.is-ready .search-panel {
  animation: rise-in 850ms 140ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-card.is-visible {
  animation: card-in 520ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    width: min(100% - 32px, 900px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    min-height: auto;
    padding: 70px 0 110px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .search-panel {
    max-height: none;
  }

  .disease-list {
    max-height: 300px;
  }

  .hero-index {
    display: none;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .compatibility-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 700px) {
  .nav-action {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .hero-shell {
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

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

  .filter-grid label:first-child {
    grid-column: 1 / -1;
  }

  .content-shell {
    padding: 72px 16px 86px;
  }

  .section-intro {
    margin-bottom: 40px;
  }

  .diagnosis-card,
  .orders-grid,
  .compatibility-meta {
    grid-template-columns: 1fr;
  }

  .diagnosis-card section + section {
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-head {
    align-items: flex-start;
  }

  .compatibility-tool {
    margin-bottom: 64px;
    padding-bottom: 54px;
  }

  .compatibility-card {
    padding: 20px;
  }

  .compatibility-card > header {
    display: block;
  }

  .compatibility-card > header .tag {
    margin-top: 12px;
  }

  .compatibility-line {
    grid-template-columns: 1fr;
  }

  .context-notes {
    grid-template-columns: 1fr;
  }

  .compatibility-line > b {
    grid-row: auto;
  }

  .order-compatibility-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-copy,
  .search-panel,
  .reveal-card {
    opacity: 1;
    transform: none;
  }
}
