:root {
  --ink: #17212b;
  --muted: #5c6975;
  --paper: #f5f3ed;
  --card: #fffefa;
  --line: #d9d7cf;
  --navy: #173b57;
  --teal: #167c73;
  --amber: #c47a14;
  --red: #b64a3b;
  --green: #2d7a50;
  --shadow: 0 12px 35px rgba(23, 59, 87, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.72;
}
a { color: #0d6e75; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #074a50; }
button, input, select { font: inherit; }
.page { max-width: 1180px; margin: 0 auto; padding: 32px 28px 80px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 54px 46px;
  color: white;
  background: linear-gradient(125deg, #14344e, #176d72 68%, #2c8569);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255,255,255,.05), 0 0 0 110px rgba(255,255,255,.035);
}
.hero h1 { position: relative; margin: 10px 0 8px; max-width: 840px; font-size: clamp(32px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; }
.hero p { position: relative; margin: 10px 0; max-width: 850px; color: rgba(255,255,255,.88); font-size: 17px; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; opacity: .82; }
.meta-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); font-size: 13px; }
.topnav { position: sticky; top: 0; z-index: 10; display: flex; gap: 8px; overflow-x: auto; margin: 18px 0 28px; padding: 10px; background: rgba(245,243,237,.92); backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 14px; }
.topnav a { white-space: nowrap; padding: 7px 11px; border-radius: 9px; color: var(--navy); text-decoration: none; font-size: 14px; }
.topnav a:hover { background: white; }
main section { scroll-margin-top: 88px; margin: 42px 0; }
h2 { margin: 0 0 16px; color: var(--navy); font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
h3 { margin: 22px 0 9px; color: #21435c; font-size: 20px; }
p { margin: 9px 0; }
.lead { color: #31424f; font-size: 18px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 4px 18px rgba(29,46,61,.045); }
.card h3 { margin-top: 0; }
.card .big { display: block; margin: 2px 0 8px; color: var(--teal); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.callout { padding: 20px 22px; border-left: 5px solid var(--teal); background: #eaf6f3; border-radius: 10px; }
.callout.warn { border-color: var(--amber); background: #fff5e5; }
.callout.risk { border-color: var(--red); background: #fff0ed; }
.verdict { display: grid; grid-template-columns: 108px 1fr; gap: 18px; align-items: start; padding: 24px; background: #edf8f5; border: 1px solid #b9dcd3; border-radius: 17px; }
.verdict .stamp { display: grid; place-items: center; min-height: 92px; color: white; background: var(--teal); border-radius: 50%; font-weight: 800; }
.small, .note { color: var(--muted); font-size: 13px; }
.badge { display: inline-block; min-width: 27px; padding: 2px 8px; border-radius: 999px; text-align: center; font-size: 12px; font-weight: 700; }
.badge.a { color: #145a3a; background: #dff3e8; }
.badge.b { color: #194e74; background: #dfedf7; }
.badge.c { color: #84530c; background: #fff0cf; }
.badge.d { color: #8e392d; background: #fde4df; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.controls button, .controls select, .controls input { min-height: 40px; padding: 8px 12px; color: var(--navy); background: white; border: 1px solid #bdc8ce; border-radius: 9px; }
.controls button { cursor: pointer; }
.controls button.active { color: white; background: var(--navy); border-color: var(--navy); }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 13px; border-bottom: 1px solid #e4e2dc; text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 1; color: white; background: var(--navy); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f1f8f6; }
.timeline { position: relative; margin-left: 10px; padding-left: 28px; border-left: 2px solid #b9cbc8; }
.timeline article { position: relative; margin: 0 0 22px; padding: 15px 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.timeline article::before { content: ""; position: absolute; left: -35px; top: 21px; width: 12px; height: 12px; background: var(--teal); border: 3px solid var(--paper); border-radius: 50%; }
.timeline time { color: var(--teal); font-weight: 800; }
.bar-chart { display: grid; gap: 12px; min-height: 260px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 260px) 1fr 66px; gap: 12px; align-items: center; }
.bar-track { height: 23px; overflow: hidden; background: #e8eceb; border-radius: 6px; }
.bar-fill { position: relative; width: 0; height: 100%; background: linear-gradient(90deg, var(--teal), #53aa8d); border-radius: 6px; transition: width .55s ease; cursor: help; }
.bar-fill:hover { filter: brightness(.9); }
.chart-note { padding-top: 8px; border-top: 1px dashed var(--line); }
.matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quadrant { min-height: 190px; padding: 18px; text-align: left; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.quadrant:hover, .quadrant.active { transform: translateY(-2px); box-shadow: var(--shadow); }
.quadrant.good { background: #e4f5ec; }
.quadrant.risk { background: #fff0e4; }
.quadrant.bad { background: #fde9e5; }
.quadrant.loose { background: #edf2f5; }
.meter { height: 8px; overflow: hidden; background: #dde3e4; border-radius: 99px; }
.meter > span { display: block; height: 100%; background: var(--teal); }
.checklist { padding-left: 0; list-style: none; }
.checklist li { position: relative; margin: 9px 0; padding-left: 27px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.redflags li::before { content: "!"; color: var(--red); }
details { margin: 10px 0; padding: 12px 15px; background: white; border: 1px solid var(--line); border-radius: 10px; }
summary { cursor: pointer; color: var(--navy); font-weight: 700; }
.source-list li { margin-bottom: 9px; }
footer { margin-top: 55px; padding-top: 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.no-results { display: none; padding: 20px; color: var(--muted); text-align: center; }

@media (max-width: 820px) {
  .page { padding: 16px 14px 60px; }
  .hero { padding: 36px 25px 32px; border-radius: 18px; }
  .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .verdict .stamp { min-height: 54px; border-radius: 12px; }
  .bar-row { grid-template-columns: 125px 1fr 55px; font-size: 12px; }
  .matrix { grid-template-columns: 1fr; }
}

@media print {
  body { background: white; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  .hero { color: black; background: white; border: 2px solid #333; box-shadow: none; }
  .hero p { color: #333; }
  .topnav, .controls, .print-hide { display: none !important; }
  .card, .table-wrap, .bar-chart, details { box-shadow: none; break-inside: avoid; }
  main section { margin: 28px 0; }
  a { color: inherit; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}
