:root {
  color-scheme: light;
  --ink: #151527;
  --muted: #6f7084;
  --line: #e5e5ef;
  --soft: #f7f7fb;
  --brand: #5b4bdb;
  --brand-soft: #efedff;
  --p0: #d92d20;
  --p1: #d97706;
  --p2: #2563eb;
  --topbar: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 20px); }
body {
  margin: 0;
  background: #f3f3f8;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  padding: .13em .35em;
  border-radius: 6px;
  background: #eeeef4;
  font: .91em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar);
  border-bottom: 1px solid rgba(229, 229, 239, .92);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  width: min(1500px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.topbar nav { display: flex; gap: 18px; font-size: 14px; font-weight: 650; }

main { width: min(1500px, calc(100% - 40px)); margin: 28px auto 80px; }
.summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(360px, .8fr);
  gap: 46px;
  padding: 46px 50px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(125deg, #1a1736 0%, #352c82 58%, #6958e8 100%);
  box-shadow: 0 24px 70px rgba(41, 31, 118, .2);
  color: #fff;
}
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; opacity: .74; }
.summary-card h1 { margin: 13px 0 15px; font-size: clamp(34px, 4vw, 58px); line-height: 1.08; letter-spacing: -.04em; }
.summary-card p { max-width: 700px; margin: 0; color: rgba(255,255,255,.77); font-size: 17px; line-height: 1.7; }
.summary-card dl { align-self: center; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.summary-card dl div { padding: 20px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; background: rgba(255,255,255,.08); }
.summary-card dt { font-size: 30px; font-weight: 800; }
.summary-card dd { margin: 4px 0 0; color: rgba(255,255,255,.72); font-size: 13px; }

.table-tools {
  position: sticky;
  top: var(--topbar);
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}
.filters button:hover, .filters button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.search { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.search input { width: 250px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; outline: none; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
#filterResult { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }

.report-body {
  padding: 32px 36px 60px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(25,25,52,.06);
}
.report-body > h1:first-child, .report-body > blockquote:first-of-type, .report-body > h1:first-child + blockquote { display: none; }
.report-body h1 { margin: 0 0 20px; font-size: 34px; }
.report-body h2 { margin: 42px 0 18px; padding-top: 4px; font-size: 26px; letter-spacing: -.02em; }
.report-body h3 { margin: 32px 0 14px; font-size: 19px; }
.heading-link { margin-left: 8px; opacity: 0; font-size: .75em; }
.report-body h1:hover .heading-link, .report-body h2:hover .heading-link, .report-body h3:hover .heading-link { opacity: .5; }
.report-body p, .report-body li { line-height: 1.75; }
.report-body blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--brand-soft); color: #4d4967; }
.report-body blockquote p { margin: 0; }

.table-scroll {
  max-height: min(74vh, 860px);
  overflow: auto;
  margin: 0 -10px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table { width: 100%; min-width: 1320px; border-collapse: separate; border-spacing: 0; font-size: 13px; line-height: 1.58; }
th, td { padding: 13px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th:last-child, td:last-child { border-right: 0; }
tr:last-child td { border-bottom: 0; }
thead th { position: sticky; top: 0; z-index: 4; background: #f0f0f6; color: #343548; font-size: 12px; letter-spacing: .02em; }
tbody tr:hover td { background: #fafaff; }
tbody td:first-child { width: 58px; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
tbody td:nth-child(2) { width: 118px; font-weight: 750; white-space: nowrap; }
tbody td:nth-child(3) { width: 170px; font-weight: 680; }
tbody td:nth-child(4) { width: 270px; font-weight: 700; }
tbody td:nth-child(5) { min-width: 450px; }
tbody td:nth-child(6) { min-width: 390px; }
tr.row-p0 td:nth-child(2) { color: var(--p0); }
tr.row-p1 td:nth-child(2) { color: var(--p1); }
tr.row-p2 td:nth-child(2) { color: var(--p2); }
tr[hidden] { display: none; }

.report-body img {
  width: 220px !important;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22,22,40,.1);
  cursor: zoom-in;
}
.report-body h3 + p { margin-top: 8px; }

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0,0,0,.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.lightbox { width: min(92vw, 1000px); padding: 18px; border: 0; border-radius: 18px; box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.lightbox::backdrop { background: rgba(10,10,20,.74); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: 12px; }
.lightbox button { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox p { margin: 12px 0 0; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  :root { --topbar: 56px; }
  .topbar-inner, main { width: min(100% - 24px, 1500px); }
  .brand strong { display: none; }
  .topbar nav { gap: 12px; font-size: 12px; }
  main { margin-top: 12px; }
  .summary-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; border-radius: 18px; }
  .summary-card h1 { font-size: 36px; }
  .table-tools { position: static; grid-template-columns: 1fr; gap: 12px; border-radius: 14px 14px 0 0; }
  .search { width: 100%; }
  .search input { width: 100%; }
  .report-body { padding: 22px 16px 50px; }
  .table-scroll { max-height: 72vh; margin-inline: -4px; }
}

@media print {
  .topbar, .table-tools, .back-top { display: none !important; }
  body { background: #fff; }
  main { width: 100%; margin: 0; }
  .summary-card { box-shadow: none; print-color-adjust: exact; }
  .report-body { border: 0; box-shadow: none; }
  .table-scroll { max-height: none; overflow: visible; border: 0; }
  table { min-width: 0; font-size: 9px; }
}
