:root {
  color-scheme: light;
  --bg: #f6f7f5;
  --ink: #17201b;
  --muted: #5f6964;
  --line: #d9ded8;
  --panel: #ffffff;
  --panel-soft: #eef4f0;
  --red: #b3261e;
  --amber: #9a610f;
  --green: #146c43;
  --accent: #235b8a;
  --shadow: 0 18px 44px rgba(25, 36, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.masthead {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #dce6df;
}

.masthead img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masthead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 247, 245, 0.94), rgba(246, 247, 245, 0.72) 45%, rgba(246, 247, 245, 0.08));
}

.masthead-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 86px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
}

.download-strip,
.evidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-strip h2,
.evidence h2,
.section-heading h2 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: 0;
}

.download-strip p,
.evidence p,
.sample-card p {
  color: var(--muted);
}

.download-strip p,
.evidence p {
  margin-bottom: 0;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #c7d1ca;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.download-button::before {
  content: "↓";
  font-size: 18px;
  line-height: 1;
}

.download-button.primary {
  min-width: 170px;
  border-color: #174f78;
  background: var(--accent);
  color: #fff;
}

.section-heading {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.sample-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  border-top-width: 5px;
  border-radius: 8px;
  background: var(--panel);
}

.sample-card.danger {
  border-top-color: var(--red);
}

.sample-card.warning {
  border-top-color: var(--amber);
}

.sample-card.success {
  border-top-color: var(--green);
}

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

.sample-number {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.status {
  min-width: 74px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.sample-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: 0;
}

.sample-card p {
  min-height: 78px;
  margin-bottom: 18px;
}

dl {
  margin: auto 0 18px;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

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

dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

.evidence-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.evidence-actions a {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .masthead {
    min-height: 380px;
  }

  .masthead::after {
    background: linear-gradient(180deg, rgba(246, 247, 245, 0.96), rgba(246, 247, 245, 0.78), rgba(246, 247, 245, 0.28));
  }

  .masthead-copy {
    padding: 58px 0 54px;
  }

  h1 {
    font-size: 34px;
  }

  .download-strip,
  .evidence {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button.primary,
  .download-button {
    width: 100%;
  }

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

  .sample-card {
    min-height: 0;
  }

  .sample-card p {
    min-height: 0;
  }

  .evidence-actions {
    justify-content: stretch;
  }

  .evidence-actions a {
    flex: 1 1 180px;
    text-align: center;
  }
}
