:root {
  --ink: #17211c;
  --muted: #64726b;
  --paper: #f6f4ee;
  --panel: #ffffff;
  --line: #d7d8cf;
  --green: #1f7a5c;
  --teal: #0e5d6a;
  --amber: #b96e22;
  --red: #b13a2f;
  --blue: #315f9f;
  --shadow: 0 18px 45px rgba(24, 38, 31, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: var(--teal);
}

code {
  background: #eef1ec;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08rem 0.28rem;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.topbar {
  min-height: 92px;
  padding: 24px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0 0 6px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(2.1rem, 6vw, 5.4rem);
}

h3 {
  font-size: 1.12rem;
}

h4 {
  font-size: 1.05rem;
  line-height: 1.35;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  min-height: 420px;
  padding: clamp(24px, 5vw, 54px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.16), transparent 45%),
    linear-gradient(315deg, rgba(185, 110, 34, 0.18), transparent 55%),
    #fffdf7;
  box-shadow: var(--shadow);
}

.hero-copy p:last-child {
  max-width: 760px;
  color: #39463f;
  font-size: 1.05rem;
  line-height: 1.7;
}

.signal-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.82);
}

.signal-panel > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.signal-panel > div:last-child {
  border-bottom: 0;
}

.metric {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--teal);
  font-weight: 700;
}

.label {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.88rem;
}

.alert {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--green);
  background: #f4fbf7;
  line-height: 1.55;
}

.grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}

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

.panel {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 28px rgba(24, 38, 31, 0.05);
}

.panel p {
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.92rem;
}

.facts {
  margin: 12px 0 0;
}

.facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.facts div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
}

.status-list,
.decision-list,
.sources {
  display: grid;
  gap: 12px;
}

.status-item,
.decision-item,
.source-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fdfdf9;
}

.status-head,
.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: white;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.badge.已起草,
.badge.已建立种子文献,
.badge.已确认 {
  background: var(--green);
}

.badge.待用户决策,
.badge.decision-needed {
  background: var(--amber);
}

.decision-item ul,
.panel ol,
.panel ul {
  margin: 12px 0 0;
  padding-left: 22px;
  line-height: 1.65;
}

.clean-list {
  margin-bottom: 18px;
}

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

.chip {
  padding: 8px 11px;
  border: 1px solid #bad2c6;
  border-radius: 999px;
  background: #f2faf6;
  color: #214d3e;
  font-size: 0.94rem;
}

.source-item {
  display: block;
}

.source-item strong {
  display: block;
  margin-bottom: 6px;
}

.source-item p {
  margin: 0;
  color: var(--muted);
}

.screening-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.screening-controls select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
}

.screening-list {
  display: grid;
  gap: 14px;
}

.screening-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fdfdf9;
}

.screening-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rank,
.decision,
.score,
.mini-chip {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.74rem;
}

.rank {
  background: #eef1ec;
  color: var(--muted);
}

.decision {
  background: #e9f7ef;
  color: var(--green);
}

.decision.排除 {
  background: #fff2ed;
  color: var(--red);
}

.decision.可能纳入 {
  background: #fff7e8;
  color: var(--amber);
}

.score {
  background: #edf4fb;
  color: var(--blue);
}

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.mini-chip {
  background: #f2faf6;
  color: #214d3e;
}

details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  color: var(--teal);
}

footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .topbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
