:root {
  color-scheme: light;
  --ink: #17324d;
  --muted: #5b6d7e;
  --line: #dbe7ef;
  --blue: #0867c7;
  --blue-dark: #064c91;
  --blue-soft: #eef7ff;
  --green-soft: #effaf4;
  --paper: #ffffff;
  --canvas: #f5f9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

.site-header {
  min-height: 68px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-dark);
  font-size: 1.12rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 42px;
  max-width: 160px;
  object-fit: contain;
}

.product-id {
  color: var(--muted);
  font-size: .88rem;
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto 64px;
}

article {
  padding: clamp(24px, 5vw, 64px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(28, 70, 102, .08);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
}

.hero { padding: 44px 0 18px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .08em;
}

h1, h2, h3 { line-height: 1.25; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.035em; }
h2 { margin-top: 48px; font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { margin-top: 0; }

.answer {
  max-width: 720px;
  margin: 24px 0;
  color: #314d66;
  font-size: 1.08rem;
}

.result-card {
  display: grid;
  gap: 4px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 16px;
}

.result-card strong { font-size: clamp(1.65rem, 5vw, 2.7rem); line-height: 1.3; }
.result-card small { color: #d9ecff; }

.boundary {
  margin: 28px 0 0;
  padding: 20px 22px;
  background: #fff8e8;
  border-left: 4px solid #e49b18;
  border-radius: 8px;
}

.boundary p { margin: 5px 0 0; }

.labeling-note {
  margin-top: 28px;
  padding: 22px;
  background: var(--blue-soft);
  border: 1px solid #c9e2f7;
  border-radius: 12px;
}

.labeling-note h2 { margin: 0 0 12px; font-size: 1.25rem; }
.labeling-note p { margin: 8px 0 0; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.facts div {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt { color: var(--muted); font-size: .82rem; }
.facts dd { margin: 4px 0 0; font-weight: 650; }
.entity-note { color: var(--muted); font-size: .92rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .86rem; }
.average { color: var(--blue-dark); background: var(--blue-soft); font-weight: 750; }

.two-column > div {
  margin-top: 14px;
  padding: 22px;
  background: var(--green-soft);
  border-radius: 12px;
}

.two-column > div:last-child { background: #f8f3f3; }
.two-column ul { padding-left: 20px; }

.report-source {
  margin-top: 48px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--blue-soft);
  border-radius: 16px;
}

.report-source h2 { margin: 0; }
.report-source p:last-child { margin-bottom: 0; }

.button {
  flex: 0 0 auto;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.report-preview {
  grid-column: 1 / -1;
  margin: 0;
}

.report-preview a {
  display: block;
  max-height: 520px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.report-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.report-preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .82rem;
}

details { padding: 15px 0; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { color: #405970; }

.article-footer {
  margin-top: 48px;
  padding-top: 20px;
  color: var(--muted);
  font-size: .86rem;
  border-top: 1px solid var(--line);
}

.article-footer p { margin: 4px 0; }

@media (max-width: 680px) {
  .site-header { padding: 10px 16px; }
  .brand span { display: none; }
  main { width: min(100% - 20px, 920px); margin-top: 10px; }
  article { padding: 22px; border-radius: 14px; }
  .hero { padding-top: 32px; }
  .facts { grid-template-columns: 1fr; }
  .report-source { align-items: stretch; grid-template-columns: 1fr; }
  .button { text-align: center; }
}
