:root {
  --bg: #eef0e2;
  --ink: #17231c;
  --muted: #677269;
  --card: rgba(255, 253, 241, .9);
  --line: rgba(23, 35, 28, .13);
  --green: #174f3a;
  --lime: #b9cc60;
  --gold: #d89a2b;
  --red: #a84832;
  --blue: #2e5f73;
  --shadow: 0 22px 70px rgba(27, 35, 24, .15);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Noto Serif SC", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 5% 4%, rgba(216, 154, 43, .35), transparent 28rem),
    radial-gradient(circle at 84% 0%, rgba(23, 79, 58, .25), transparent 32rem),
    linear-gradient(135deg, #efe9d5, #f8f7ed 48%, #dfe8d4);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .22;
}
.shell { width: min(1500px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0; position: relative; }
.hero, .panel, .module-card, .metric {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.hero {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 22px;
  align-items: stretch;
  border-radius: 34px;
  padding: 34px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; font-size: clamp(38px, 6vw, 82px); line-height: .94; letter-spacing: -.07em; }
h2 { margin-bottom: 0; font-size: 27px; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 18px; }
.lede { max-width: 800px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-card {
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(145deg, var(--green), #102c23);
}
.hero-card b { font-size: 56px; line-height: 1; }
.hero-card span { color: rgba(255,255,255,.72); font-weight: 800; }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 18px 0 24px; }
.metric { border-radius: 24px; padding: 18px; }
.metric b { display: block; font-size: 30px; }
.metric span { color: var(--muted); font-size: 13px; font-weight: 800; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 12px 0 16px; }
.compact { align-items: center; margin-top: 0; }
.filters { display: grid; grid-template-columns: 260px 190px 170px 110px; gap: 10px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 13px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  outline: none;
}
button {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}
.sync-status { margin: -8px 0 16px; color: var(--muted); font-size: 13px; font-weight: 800; }
.framework { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module-card { border-radius: 28px; padding: 20px; min-height: 430px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.module-card.good { border-color: rgba(23, 79, 58, .32); }
.module-card.ok { border-color: rgba(216, 154, 43, .38); }
.module-card.weak { border-color: rgba(168, 72, 50, .42); }
.module-top { display: flex; justify-content: space-between; gap: 12px; }
.module-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: var(--green); font-size: 23px; }
.module-count { text-align: right; color: var(--muted); font-weight: 900; }
.module-count b { display: block; color: var(--ink); font-size: 28px; line-height: 1; }
.module-card p { color: var(--muted); line-height: 1.55; }
.status-ribbon { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; border-radius: 18px; padding: 10px; background: rgba(255,255,255,.6); }
.status-ribbon strong { display: grid; place-items: center; min-height: 42px; border-radius: 14px; color: #fff; background: var(--green); }
.status-ribbon.ok strong { background: var(--gold); }
.status-ribbon.weak strong { background: var(--red); }
.status-ribbon span { color: var(--muted); font-size: 12px; font-weight: 800; line-height: 1.45; }
.bar { height: 10px; border-radius: 99px; overflow: hidden; background: rgba(23,79,58,.12); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pill { padding: 7px 10px; border-radius: 999px; background: rgba(216,154,43,.14); color: #7b4c09; font-size: 12px; font-weight: 900; }
.module-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.module-list a { color: var(--green); text-decoration: none; font-weight: 800; font-size: 13px; }
.shape-box { border-radius: 18px; padding: 12px; background: rgba(23,79,58,.07); border: 1px solid rgba(23,79,58,.11); }
.shape-box b, .evidence b { display: block; margin-bottom: 6px; font-size: 13px; }
.shape-box span, .shape-box li { color: var(--muted); font-size: 13px; line-height: 1.55; }
.shape-box ul { margin: 0; padding-left: 18px; }
.shape-box.todo { background: rgba(216,154,43,.10); border-color: rgba(216,154,43,.18); }
.evidence { margin-top: auto; }
.grid-two { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.panel { border-radius: 28px; padding: 22px; }
.calibration { display: grid; gap: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cal-card { position: relative; min-height: 112px; border-radius: 20px; padding: 14px; background: rgba(255,255,255,.58); border: 1px solid var(--line); overflow: hidden; }
.cal-card span { color: var(--muted); font-size: 13px; font-weight: 900; }
.cal-card b { display: block; margin-top: 8px; font-size: 34px; }
.cal-card i { position: absolute; left: 0; bottom: 0; height: 7px; background: linear-gradient(90deg, var(--green), var(--lime)); }
.cal-card em { position: absolute; right: 14px; bottom: 14px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 800; }
.guardrails { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.guardrail { border-left: 5px solid var(--red); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.56); }
.guardrail strong { display: block; margin-bottom: 5px; }
.guardrail span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.roadmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stage {
  min-height: 210px;
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.38));
  border: 1px solid var(--line);
}
.stage b { display: block; font-size: 24px; color: var(--green); }
.stage span { color: var(--muted); font-size: 12px; font-weight: 900; }
.stage ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.rec { border-left: 5px solid var(--gold); padding: 12px 13px; border-radius: 14px; background: rgba(255,255,255,.55); margin-bottom: 10px; }
.rec.weak { border-left-color: var(--red); }
.rec.good { border-left-color: var(--green); }
.rec strong { display: block; margin-bottom: 4px; }
.rec span { color: var(--muted); font-size: 13px; }
.table-wrap { max-height: 620px; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 12px; }
td a { color: var(--green); font-weight: 900; text-decoration: none; }
.stage-label { color: var(--blue); font-weight: 900; }

@media (max-width: 1180px) {
  .framework { grid-template-columns: repeat(2, 1fr); }
  .grid-two, .hero { grid-template-columns: 1fr; }
  .roadmap, .cal-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1500px); padding-top: 16px; }
  .framework, .metrics, .filters, .roadmap, .cal-grid, .guardrails { grid-template-columns: 1fr; }
  .hero, .panel, .module-card { border-radius: 22px; padding: 18px; }
}
