:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #5f6f7d;
  --line: #d7dee6;
  --panel: #ffffff;
  --page: #f3f6f8;
  --navy: #123044;
  --teal: #12756c;
  --amber: #946200;
  --red: #a43a32;
  --shadow: 0 10px 30px rgba(19, 35, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body.portal-page {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.report-watermarked::before {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  content: "";
  opacity: 0.13;
  background-image:
    repeating-linear-gradient(
      -28deg,
      transparent 0 90px,
      rgba(18, 48, 68, 0.04) 90px 92px,
      transparent 92px 190px
    );
}

.report-watermarked::after {
  position: fixed;
  inset: -20vh -20vw;
  z-index: 999998;
  pointer-events: none;
  content: "Internal Only / 公司内部资料 / Do Not Share";
  display: grid;
  place-items: center;
  color: rgba(18, 48, 68, 0.12);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.8;
  text-align: center;
  transform: rotate(-24deg);
  white-space: pre-wrap;
}

.portal-hero {
  min-height: 220px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 32px 28px;
  color: #ffffff;
  background:
    linear-gradient(110deg, rgba(18, 48, 68, 0.96), rgba(18, 117, 108, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400' viewBox='0 0 1200 400'%3E%3Cg fill='none' stroke='rgba(255,255,255,.22)' stroke-width='1'%3E%3Cpath d='M0 310c120-60 240-60 360 0s240 60 360 0 240-60 480 18'/%3E%3Cpath d='M0 210c160-55 300-42 420 40s260 78 420-4 260-82 360-30'/%3E%3Cpath d='M0 112c190 42 360 38 510-12s300-55 450 12 230 70 240 72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.portal-summary {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.6;
}

.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: 240px;
}

.portal-meta span,
.report-card__group,
.report-card__hash {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 52px;
}

.report-group {
  margin: 0 0 34px;
}

.report-group h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 22px;
  letter-spacing: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.report-card {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.report-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.report-card__group {
  border-color: rgba(18, 117, 108, 0.2);
  color: var(--teal);
  background: rgba(18, 117, 108, 0.08);
}

.report-card__hash {
  border-color: rgba(148, 98, 0, 0.22);
  color: var(--amber);
  background: rgba(148, 98, 0, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.report-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: 0;
}

.report-card a {
  color: var(--navy);
  text-decoration-color: rgba(18, 48, 68, 0.28);
  text-underline-offset: 4px;
}

.report-card p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.report-card dl {
  display: grid;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.report-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
}

.report-card dt {
  color: var(--muted);
  font-size: 12px;
}

.report-card dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

footer {
  max-width: 1180px;
  margin: -32px auto 0;
  padding: 0 20px 32px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .portal-hero {
    min-height: 260px;
    align-items: start;
    flex-direction: column;
    padding: 30px 20px 24px;
  }

  .portal-meta {
    justify-content: flex-start;
    min-width: 0;
  }

  .report-watermarked::after {
    font-size: 20px;
  }
}
