:root {
  --bg: #f6f4ef;
  --paper: #fffdf8;
  --ink: #24211c;
  --muted: #6f6a60;
  --line: #ded8cb;
  --accent: #1d6f5f;
  --accent-strong: #124d43;
  --warn: #9b5b26;
  --bad: #9a3434;
  --good: #25734d;
  --shadow: 0 18px 50px rgba(40, 34, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(222, 216, 203, 0.9);
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 14px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 58px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 720;
}

h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #4c473f;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.atlas {
  min-height: 390px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 111, 95, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(29, 111, 95, 0.08) 1px, transparent 1px),
    #fbfaf5;
  background-size: 38px 38px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.atlas::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(29, 111, 95, 0.16);
  border-radius: 48% 42% 44% 46%;
  transform: rotate(-8deg);
}

.pin {
  position: absolute;
  min-width: 112px;
  padding: 10px 12px;
  border: 1px solid rgba(36, 33, 28, 0.16);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 32px rgba(40, 34, 24, 0.12);
}

.pin strong {
  display: block;
  font-size: 15px;
}

.pin span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.pin.good {
  left: 44%;
  top: 20%;
}

.pin.watch {
  left: 20%;
  top: 52%;
}

.pin.risk {
  right: 8%;
  bottom: 18%;
}

.section {
  padding: 38px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 26px 0 10px;
  font-size: 20px;
  letter-spacing: 0;
}

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

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(40, 34, 24, 0.04);
}

.card h3,
.card h2 {
  margin-top: 0;
}

.score {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.score strong {
  font-size: 42px;
  line-height: 1;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 10px;
  color: #4f493f;
  background: #fbfaf5;
  font-size: 13px;
}

.status-good {
  color: var(--good);
}

.status-watch {
  color: var(--warn);
}

.status-risk {
  color: var(--bad);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 2px;
}

.anchorbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 0;
}

.anchorbar a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.8);
  padding: 6px 11px;
  color: #3f3931;
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #5d574e;
  font-size: 13px;
  background: #f1eee6;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  border-left: 4px solid var(--accent);
  padding: 12px 16px;
  background: rgba(29, 111, 95, 0.07);
}

.comment-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 34px;
  }

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

  .atlas {
    min-height: 330px;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }
}
