
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --panel: #ffffff;
  --blue: #6366f1;
  --cyan: #3b82f6;
  --purple: #8b5cf6;
  --green: #16a34a;
  --red: #dc2626;
  --orange: #f97316;
  --hero-gradient: linear-gradient(120deg, #dbeafe 0%, #ede9fe 52%, #f8fafc 100%);
  --brand-gradient: linear-gradient(120deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, rgba(248, 250, 252, .85), rgba(255, 255, 255, 0) 420px), #fff;
}
a { color: inherit; text-decoration: none; }

.site-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 8px;
  border: 1px solid rgba(99, 102, 241, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 1px rgba(255, 255, 255, .7), 0 12px 40px -16px rgba(99, 102, 241, .18);
  backdrop-filter: blur(12px);
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--blue); background: rgba(99, 102, 241, .08); }
.site-nav a.active { color: #fff; background: var(--brand-gradient); box-shadow: 0 12px 30px -14px rgba(99, 102, 241, .55); }

.page {
  display: grid;
  gap: 20px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.hub-hero,
.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 24px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  background: var(--hero-gradient);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72);
}
.hub-hero aside,
.report-hero aside {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 18px 42px -28px rgba(99, 102, 241, .24);
}
.hub-hero aside.risk-critical,
.report-hero aside.risk-critical,
.hub-hero aside.risk-high,
.report-hero aside.risk-high {
  border-color: rgba(220, 38, 38, .34);
  background: linear-gradient(135deg, rgba(254, 242, 242, .92), rgba(255, 255, 255, .82));
}
.hub-hero aside.risk-medium,
.report-hero aside.risk-medium {
  border-color: rgba(249, 115, 22, .34);
  background: linear-gradient(135deg, rgba(255, 251, 235, .9), rgba(255, 255, 255, .82));
}
.eyebrow,
.section-head span {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 920px;
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.1;
  font-weight: 760;
  letter-spacing: 0;
}
.hub-hero p,
.report-hero p {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.hub-hero aside span,
.report-hero aside span,
.stat-card span,
.direction-card span,
.source-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.hub-hero aside strong,
.report-hero aside strong {
  color: var(--blue);
  font-size: 32px;
  line-height: 1.1;
}
.hub-hero aside small,
.report-hero aside small,
.stat-card small,
.direction-card small,
.source-grid small {
  color: var(--muted);
  line-height: 1.55;
}

.stat-grid,
.direction-grid,
.diagnosis-grid,
.query-grid,
.source-grid,
.two-col {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.direction-grid { grid-template-columns: repeat(3, 1fr); }
.diagnosis-grid { grid-template-columns: repeat(2, 1fr); }
.query-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.source-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.stat-card,
.direction-card,
.query-grid article,
.source-grid article,
.diagnosis-card,
.section {
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px -36px rgba(99, 102, 241, .26);
}
.stat-card { padding: 18px; }
.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
}
.stat-card.risk-critical,
.direction-card.risk-critical {
  border-color: rgba(220, 38, 38, .36);
  background: linear-gradient(145deg, rgba(254, 242, 242, .96), rgba(255, 255, 255, .94));
  box-shadow: 0 22px 50px -34px rgba(220, 38, 38, .3);
}
.stat-card.risk-high,
.direction-card.risk-high {
  border-color: rgba(249, 115, 22, .36);
  background: linear-gradient(145deg, rgba(255, 247, 237, .96), rgba(255, 255, 255, .94));
  box-shadow: 0 22px 50px -34px rgba(249, 115, 22, .28);
}
.stat-card.risk-medium,
.direction-card.risk-medium {
  border-color: rgba(249, 115, 22, .28);
  background: linear-gradient(145deg, rgba(255, 251, 235, .92), rgba(255, 255, 255, .94));
}
.stat-card.risk-critical strong,
.direction-card.risk-critical h3,
.report-hero aside.risk-critical strong,
.hub-hero aside.risk-critical strong {
  color: var(--red);
}
.stat-card.risk-high strong,
.direction-card.risk-high h3,
.report-hero aside.risk-high strong,
.hub-hero aside.risk-high strong {
  color: var(--orange);
}
.stat-card.risk-medium strong,
.direction-card.risk-medium h3,
.report-hero aside.risk-medium strong,
.hub-hero aside.risk-medium strong {
  color: #d97706;
}
.direction-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.direction-card:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, .34);
  box-shadow: 0 24px 54px -32px rgba(99, 102, 241, .34);
}
.direction-card h3 { margin: 0; font-size: 22px; }
.direction-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mini-metrics b {
  display: grid;
  gap: 4px;
  color: var(--blue);
  font-size: 19px;
}
.mini-metrics b.risk-critical { color: var(--red); }
.mini-metrics b.risk-high { color: var(--orange); }
.mini-metrics b.risk-medium { color: #d97706; }
.mini-metrics b.risk-low { color: var(--green); }

.section {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 26px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  margin: 5px 0 0;
  font-size: 25px;
  line-height: 1.25;
}
.section-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.query-grid article {
  display: grid;
  gap: 7px;
  padding: 14px;
}
.query-grid span { color: var(--blue); font-size: 12px; font-weight: 800; }
.query-grid p { margin: 0; line-height: 1.6; }
.query-grid small { color: var(--muted); }

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
}
th, td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf2f7;
  border-right: 1px solid #edf2f7;
  text-align: left;
  vertical-align: top;
  line-height: 1.58;
  overflow-wrap: anywhere;
}
th {
  color: var(--blue);
  background: #eef2ff;
  font-weight: 850;
}
td:last-child, th:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
td.target {
  color: var(--orange);
  background: rgba(99, 102, 241, .08);
  font-weight: 850;
}
td.risk-critical {
  color: var(--red);
  background: rgba(254, 242, 242, .76);
  font-weight: 900;
  box-shadow: inset 4px 0 0 rgba(220, 38, 38, .64);
}
td.risk-high {
  color: var(--orange);
  background: rgba(255, 247, 237, .72);
  font-weight: 850;
  box-shadow: inset 4px 0 0 rgba(249, 115, 22, .56);
}
td.risk-medium {
  color: #d97706;
  background: rgba(254, 243, 199, .66);
  font-weight: 820;
}
td.risk-low {
  color: #15803d;
  background: rgba(220, 252, 231, .52);
  font-weight: 760;
}
.term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}
.term {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 760;
}
.term b {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
}
.term.good { color: #128248; background: #dcfce7; }
.term.good b { background: #16a34a; }
.term.bad { color: var(--red); background: #fef2f2; }
.term.bad b { background: var(--red); }
.source-grid article { padding: 16px; }
.source-grid strong { display: block; margin: 8px 0; color: var(--blue); font-size: 28px; }
.progress { height: 7px; border-radius: 999px; background: #f1f2f4; overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }
.diagnosis-card { padding: 18px; }
.diagnosis-card b { display: block; margin-bottom: 8px; font-size: 17px; }
.diagnosis-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.diagnosis-card.defect { border-left: 4px solid var(--red); background: linear-gradient(120deg, rgba(254, 242, 242, .78), rgba(255, 255, 255, .96)); }
.diagnosis-card.strategy { border-left: 4px solid var(--blue); background: linear-gradient(120deg, rgba(239, 246, 255, .82), rgba(255, 255, 255, .96)); }
.hub-hero aside.risk-low,
.report-hero aside.risk-low {
  border-color: rgba(22, 163, 74, .34);
  background: linear-gradient(135deg, rgba(220, 252, 231, .9), rgba(255, 255, 255, .82));
}
.report-hero aside.risk-low strong,
.hub-hero aside.risk-low strong {
  color: var(--green);
}
.overview-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .overview-grid { grid-template-columns: 1fr; }
}
.risk-summary {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(249, 115, 22, .24);
  background: rgba(255, 251, 235, .82);
  color: var(--muted);
  line-height: 1.65;
}
.subheading {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 760;
  color: var(--ink);
}
.source-list {
  display: grid;
  gap: 10px;
}
.source-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}
.source-item a {
  color: var(--blue);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-all;
}
.source-item small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.source-item.domain {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.source-item.domain strong {
  color: var(--blue);
  font-size: 15px;
}
.domain-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ref-type-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.two-col h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ink);
}
.footer {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.lang-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 0 0 14px;
  padding: 0 4px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
}
.lang-switch a:hover { color: var(--blue); }
.lang-switch a.active {
  color: #fff;
  background: var(--brand-gradient);
  border-color: transparent;
}

@media (max-width: 900px) {
  .hub-hero, .report-hero { grid-template-columns: 1fr; border-radius: 24px; }
  .stat-grid, .direction-grid, .diagnosis-grid, .two-col { grid-template-columns: 1fr; }
  .section-head { display: grid; }
  .site-nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; border-radius: 18px; }
}

