:root {
  color-scheme: light;
  --ink: #17211e;
  --muted: #5e6a66;
  --line: #d8e1dc;
  --paper: #f7fbf8;
  --panel: #ffffff;
  --mint: #d8f0e4;
  --green: #167458;
  --green-dark: #0f5947;
  --clay: #c55f45;
  --amber: #f2c96d;
  --blue: #2e647f;
  --tcm: #8f5a2a;
  --shadow: 0 18px 48px rgba(18, 44, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 29, 25, 0.86), rgba(9, 29, 25, 0.24));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 900;
}

.site-header nav {
  display: flex;
  gap: clamp(10px, 2.5vw, 28px);
  align-items: center;
  font-size: 0.95rem;
}

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

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(8, 27, 24, 0.78), rgba(8, 27, 24, 0.5) 42%, rgba(8, 27, 24, 0.08) 76%),
    linear-gradient(0deg, rgba(8, 27, 24, 0.42), rgba(8, 27, 24, 0.03) 48%);
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin-left: auto;
  margin-right: clamp(18px, 7vw, 96px);
  padding-top: 80px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 5.9rem);
  line-height: 0.98;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2.1vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--green-dark);
  background: #fff;
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
  margin: 0;
}

.hero-facts div {
  min-height: 86px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 29, 25, 0.4);
  backdrop-filter: blur(10px);
}

.hero-facts dt {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-facts dd {
  margin: 8px 0 0;
  color: #fff;
  font-weight: 750;
}

.notice {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.notice-inner {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  padding-top: 22px;
  padding-bottom: 22px;
}

.notice strong {
  color: var(--clay);
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.wide-heading {
  max-width: 940px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.visual-guide {
  background: #eef6f1;
}

.visual-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
}

.motion-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 38%, rgba(22, 116, 88, 0.18), transparent 34%),
    linear-gradient(135deg, #ffffff, #dfeee8);
  box-shadow: var(--shadow);
}

.spine-visual {
  position: absolute;
  left: 50%;
  top: 46px;
  display: grid;
  gap: 12px;
  transform: translateX(-50%);
}

.spine-visual span {
  width: 94px;
  height: 42px;
  border: 2px solid rgba(15, 89, 71, 0.5);
  border-radius: 16px 16px 22px 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 22px rgba(15, 89, 71, 0.08);
}

.spine-visual .is-active {
  position: relative;
  border-color: var(--clay);
  background: #fff7f4;
  animation: discPulse 1.8s ease-in-out infinite;
}

.spine-visual .is-active::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 50%;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: var(--clay);
  transform: translateY(-50%);
}

.pulse-line {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 118px;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 89, 71, 0.14);
}

.pulse-line::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -35%;
  width: 35%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: lineTravel 2.4s linear infinite;
}

.motion-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  padding: 18px;
  color: #fff;
  border-radius: 8px;
  background: #10231e;
}

.motion-caption small {
  color: rgba(255, 255, 255, 0.72);
}

.guide-copy h2 {
  max-width: 680px;
}

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

.guide-steps article {
  min-height: 166px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-steps span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
  font-weight: 900;
}

.guide-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@keyframes discPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(197, 95, 69, 0.22);
  }
  50% {
    box-shadow: 0 0 0 16px rgba(197, 95, 69, 0);
  }
}

@keyframes lineTravel {
  to {
    transform: translateX(390%);
  }
}

.emergency {
  background: #fff;
}

.warning-grid,
.question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.warning-grid article,
.question-grid article,
.timeline article,
.treatment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 26px rgba(22, 40, 35, 0.06);
}

.warning-grid article {
  min-height: 186px;
  padding: 22px;
  border-top: 5px solid var(--clay);
}

.warning-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--clay);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
}

.warning-icon.bladder::before {
  content: "急";
}

.warning-icon.foot::before {
  content: "力";
}

.warning-icon.fever::before {
  content: "热";
}

.warning-icon.pain::before {
  content: "痛";
}

.warning-grid p,
.question-grid p,
.timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.pathway {
  background: #edf6f1;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline article {
  min-height: 172px;
  padding: 22px;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.treatment-section {
  background: #fff;
}

.controls {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr minmax(180px, 240px);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfb;
}

.search-box,
.select-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.search-box input,
.select-box select {
  min-height: 44px;
  width: 100%;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter,
.text-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.filter {
  padding: 8px 12px;
}

.filter.is-active,
.filter:hover,
.filter:focus-visible {
  color: #fff;
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.result-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
}

.text-button {
  padding: 7px 12px;
}

.treatment-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.treatment-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  min-height: 236px;
  border-top: 5px solid var(--green);
}

.treatment-card[data-status="证据有限"] {
  border-top-color: var(--amber);
}

.treatment-card[data-status="不建议常规"] {
  border-top-color: #8e9692;
}

.treatment-card[data-status="急诊优先"] {
  border-top-color: var(--clay);
}

.treatment-card[data-status="微创/手术"] {
  border-top-color: var(--blue);
}

.treatment-card[data-status="中医辅助"] {
  border-top-color: var(--tcm);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.card-top h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.38;
}

.treatment-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: var(--green-dark);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.mark-rehab,
.mark-selfcare {
  background: var(--green);
}

.mark-medicine {
  background: #5f6f95;
}

.mark-injection {
  background: var(--blue);
}

.mark-minimally,
.mark-surgery {
  background: #31566f;
}

.mark-tcm {
  background: var(--tcm);
}

.mark-caution {
  background: #707974;
}

.card-snapshot {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  white-space: nowrap;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.status {
  color: #fff;
  background: var(--green-dark);
}

.status.limited {
  color: #503900;
  background: var(--amber);
}

.status.no-routine {
  color: #fff;
  background: #707974;
}

.status.urgent {
  color: #fff;
  background: var(--clay);
}

.status.surgery {
  color: #fff;
  background: var(--blue);
}

.status.tcm {
  color: #fff;
  background: var(--tcm);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-section {
  display: grid;
  gap: 4px;
}

.card-section strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.card-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.card-details {
  align-self: end;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.card-details summary {
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 850;
}

.detail-body {
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.decisions {
  background: #f3f7f5;
}

.question-grid article {
  min-height: 210px;
  padding: 22px;
}

.sources {
  background: #fff;
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.source-list a {
  display: block;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green-dark);
  background: #fbfdfb;
  font-weight: 750;
  text-decoration: none;
}

.source-list a:hover,
.source-list a:focus-visible {
  border-color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.site-footer {
  padding: 28px 0;
  color: rgba(255, 255, 255, 0.84);
  background: #10231e;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 132px;
  }

  .hero-facts,
  .warning-grid,
  .timeline,
  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-layout {
    grid-template-columns: 1fr;
  }

  .motion-panel {
    min-height: 360px;
  }

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

  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 88vh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 27, 24, 0.82), rgba(8, 27, 24, 0.6)),
      linear-gradient(0deg, rgba(8, 27, 24, 0.46), rgba(8, 27, 24, 0.08) 48%);
  }

  .hero-content {
    width: min(100% - 28px, 760px);
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1.05;
  }

  .lead,
  .hero-facts dd,
  .notice p {
    word-break: break-all;
  }

  .hero-facts,
  .warning-grid,
  .timeline,
  .guide-steps,
  .question-grid,
  .treatment-grid,
  .source-list {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: auto;
  }

  .notice-inner {
    grid-template-columns: 1fr;
  }

  .result-bar,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .treatment-card {
    min-height: auto;
  }

  .motion-panel {
    min-height: 330px;
  }

  .spine-visual span {
    width: 78px;
    height: 36px;
  }
}
