:root {
  --bg: #f4efe3;
  --ink: #17231d;
  --muted: #657268;
  --panel: rgba(255, 252, 244, 0.86);
  --line: rgba(23, 35, 29, 0.14);
  --accent: #c26035;
  --accent-2: #1f7660;
  --danger: #a83c32;
  --shadow: 0 24px 80px rgba(44, 38, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(194, 96, 53, 0.20), transparent 32rem),
    radial-gradient(circle at 82% 8%, rgba(31, 118, 96, 0.18), transparent 28rem),
    linear-gradient(135deg, #f7f0df, #edf3ea 58%, #f9efe7);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow,
.metric-label,
.subtle {
  color: var(--muted);
  font-size: 13px;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 680px;
  color: #405047;
  font-size: 17px;
  line-height: 1.75;
}

.panel,
.status-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.status-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.status-card strong {
  font-size: 34px;
}

.badge,
.pill,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.is-ok {
  color: var(--accent-2);
}

.is-warn {
  color: var(--accent);
}

.is-danger {
  color: var(--danger);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.metrics > div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metrics > div:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.panel {
  padding: 24px;
}

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

.section-head p {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.recommendations {
  display: grid;
  gap: 14px;
}

.rec-item {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.46);
}

.rec-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.rec-title {
  margin: 8px 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.rec-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rec-meta span,
.tag {
  color: var(--muted);
}

.rec-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 14px 0;
}

.stat-box {
  border-radius: 16px;
  padding: 13px;
  background: rgba(244, 239, 227, 0.78);
}

.stat-box strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.empty-state {
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
}

@media (max-width: 780px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .hero,
  .grid,
  .metrics,
  .rec-stats {
    grid-template-columns: 1fr;
  }

  .metrics > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-head,
  .rec-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
