.content-page .brand {
  min-height: 44px;
}

.report-home {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.report-article {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.report-hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--line);
}

.report-hero h1,
.report-article > header h1,
.article-content > h1 {
  color: var(--ink);
  font-family: "DengXian", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  font-synthesis: none;
  letter-spacing: 0;
}

.report-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.2;
}

.report-hero > p:last-child,
.report-lead {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.report-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 28px 0 70px;
}

.report-card-grid .report-card {
  display: flex;
  min-width: 0;
  min-height: 230px;
  padding: 22px;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 7px 19px rgba(31, 49, 65, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.report-card-grid .report-card:hover {
  color: var(--ink);
  background: var(--paper);
  border-color: #aebfc9;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.report-card-grid .report-card .tag,
.article-meta .tag {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  align-items: center;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid #cfe3e0;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.report-card-grid .report-card h2 {
  margin: 16px 0 9px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.4;
}

.report-card-grid .report-card p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.report-card-grid .report-card a {
  display: inline-flex;
  min-height: 44px;
  margin-top: auto;
  align-items: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.report-card-grid .report-card a:hover,
.back-link:hover,
.source-box a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-links a[aria-current="page"] {
  color: var(--teal);
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  min-height: 44px;
  margin-bottom: 12px;
  align-items: center;
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
}

.report-article > header {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.report-article > header h1 {
  max-width: 820px;
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.22;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.article-section {
  margin: 0;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.article-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.45;
}

.article-section h3 {
  margin: 26px 0 9px;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.5;
}

.article-section p,
.article-section li {
  color: #445163;
  font-size: 17px;
  line-height: 1.82;
}

.article-section p {
  margin-bottom: 16px;
}

.article-section ul,
.article-section ol {
  margin: 10px 0 18px;
  padding-left: 24px;
}

.article-section li + li {
  margin-top: 6px;
}

.article-content {
  margin-top: 0;
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(31, 49, 65, 0.05);
}

.article-content > h1 {
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.25;
}

.article-content > h2 {
  margin-top: 38px;
}

.article-content > h1 + h2 {
  margin-top: 0;
}

.article-content pre {
  max-width: 100%;
  margin: 16px 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  color: #263545;
  background: #f5f7f8;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0;
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-content code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  word-break: break-word;
}

.article-table-wrap {
  max-width: 100%;
  margin: 16px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.article-table-wrap:focus-visible {
  outline: 3px solid rgba(23, 107, 104, 0.3);
  outline-offset: 3px;
}

.article-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: var(--ink);
  background: var(--blue-soft);
  font-weight: 800;
}

.article-table th:last-child,
.article-table td:last-child {
  border-right: 0;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.action-list {
  display: grid;
  gap: 10px;
  padding-left: 0 !important;
  list-style: none;
}

.action-list li {
  margin: 0;
  padding: 8px 0 8px 16px;
  border-left: 3px solid #cfe3e0;
}

.source-box {
  margin-top: 30px;
  padding: 18px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
}

.source-box a {
  display: inline-flex;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 4px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--teal-dark);
  font-weight: 800;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

@media (max-width: 820px) {
  .content-page .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
    min-height: 0;
    padding: 6px 0;
  }

  .content-page .brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .content-page .nav-action {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }

  .content-page .nav-links {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 8px;
    margin-left: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .content-page .nav-links a {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 10px;
  }
}

@media (max-width: 720px) {
  .report-home,
  .report-article {
    width: min(100% - 24px, 1080px);
  }

  .report-hero {
    padding-top: 42px;
  }

  .report-hero h1 {
    font-size: 38px;
  }

  .report-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-article {
    padding-top: 22px;
  }

  .article-content {
    padding: 22px 18px;
  }

  .article-section h2 {
    font-size: 23px;
  }

  .article-section p,
  .article-section li {
    font-size: 16px;
    line-height: 1.82;
  }
}

@media (max-width: 390px) {
  .report-card-grid .report-card {
    min-height: 0;
    padding: 18px;
  }

  .report-hero h1,
  .article-content > h1 {
    font-size: 32px;
  }

  .report-article > header h1 {
    font-size: 34px;
  }

  .article-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .article-content pre {
    padding: 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .report-card-grid .report-card:hover {
    transform: none;
  }
}
