:root {
  --site-bg: #f3f5f8;
  --site-paper: #ffffff;
  --site-ink: #111827;
  --site-muted: #667085;
  --site-line: rgba(17, 24, 39, 0.1);
  --site-accent: #2f6bff;
  --site-accent-soft: rgba(47, 107, 255, 0.1);
  --site-green: #0f8f6c;
  --site-shadow: 0 18px 50px rgba(28, 52, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--font-sans, "Noto Sans SC", "Nunito", "PingFang SC", sans-serif);
  line-height: 1.7;
  font-variant-numeric: lining-nums tabular-nums;
}

.home-page a,
.site-global-nav a,
.report-pager a {
  color: inherit;
  text-decoration: none;
}

.home-shell,
.site-global-nav__inner,
.report-pager {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 72px;
  border-bottom: 1px solid var(--site-line);
}

.home-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
}

.home-brand {
  color: var(--site-accent);
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-updated {
  color: var(--site-muted);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 72px;
  color: var(--site-green);
  font-size: 13px;
  font-weight: 800;
}

.home-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--site-green);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--site-green) 18%, transparent);
}

.home-title {
  max-width: 860px;
  margin: 18px 0 20px;
  font-size: clamp(50px, 8vw, 94px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 850;
}

.home-intro {
  max-width: 760px;
  margin: 0;
  color: var(--site-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.latest-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 44px;
  align-items: end;
  margin-top: 48px;
  padding: 30px 32px;
  color: var(--feature-ink, #fffdf8);
  /* 禁止回退到 --site-ink：墨夜下 ink 是浅色，会导致白底白字 */
  background: var(--feature-bg, #111827);
  border: 1px solid color-mix(in srgb, var(--site-accent) 22%, transparent);
  box-shadow: var(--site-shadow);
  border-radius: 4px;
  overflow: hidden;
}

html[data-theme="cloud"] .latest-feature {
  background: #111827;
  color: #fffdf8;
}

html[data-theme="aurora"] .latest-feature {
  background: #123028;
  color: #f7fffb;
}

html[data-theme="midnight"] .latest-feature {
  background: #0b2f2a !important;
  color: #e8f7f2 !important;
  border-color: rgba(61, 222, 168, 0.45) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-theme="midnight"] .latest-feature h2 {
  color: #f2fffb !important;
}

html[data-theme="midnight"] .latest-feature p {
  color: rgba(214, 236, 228, 0.82) !important;
}

html[data-theme="midnight"] .latest-eyebrow {
  color: #3ddea8 !important;
}

html[data-theme="midnight"] .latest-feature::before {
  color: rgba(61, 222, 168, 0.12) !important;
}

html[data-theme="midnight"] .latest-action {
  color: #e8f7f2 !important;
  border-color: rgba(61, 222, 168, 0.55) !important;
  background: transparent !important;
}

html[data-theme="midnight"] .latest-action:hover,
html[data-theme="midnight"] .latest-action:focus-visible {
  background: #3ddea8 !important;
  color: #071018 !important;
  border-color: #3ddea8 !important;
}

.latest-feature::before {
  content: "最新";
  position: absolute;
  right: 32px;
  top: 24px;
  color: color-mix(in srgb, var(--feature-ink, #fff) 12%, transparent);
  font-size: 54px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.latest-eyebrow {
  margin: 0 0 12px;
  color: var(--feature-eyebrow, #ff9a7d);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.latest-feature h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.25;
}

.latest-feature p {
  max-width: 720px;
  margin: 0;
  color: var(--feature-muted, #bdc5d3);
  font-size: 15px;
}

.latest-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--feature-action-border, rgba(255, 255, 255, 0.35));
  color: inherit;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.18s ease;
}

.latest-action:hover,
.latest-action:focus-visible {
  color: var(--feature-action-hover-ink, var(--site-ink));
  background: var(--feature-action-hover-bg, #fffdf8);
  border-color: var(--feature-action-hover-bg, #fffdf8);
  transform: translateY(-2px);
}

.archive-main {
  padding: 68px 0 92px;
}

.archive-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--site-ink);
}

.archive-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
}

.archive-heading p {
  margin: 0;
  color: var(--site-muted);
  font-size: 13px;
}

.archive-group + .archive-group {
  margin-top: 56px;
}

.month-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.month-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--site-line);
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.issue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 270px;
  padding: 26px 28px;
  border: 1px solid var(--site-line);
  background: var(--site-paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.issue-card:hover,
.issue-card:focus-visible {
  z-index: 1;
  border-color: #c8b8aa;
  box-shadow: var(--site-shadow);
  transform: translateY(-3px);
}

.issue-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--site-muted);
  font-size: 12px;
}

.issue-number {
  color: var(--site-accent);
  font-weight: 850;
  letter-spacing: 0.08em;
}

.issue-card h3 {
  margin: 30px 0 12px;
  font-size: 25px;
  line-height: 1.34;
}

.issue-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #596478;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.issue-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 13px;
  font-weight: 800;
}

.issue-card__count {
  color: var(--site-green);
}

.issue-card__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  border: 1px solid var(--site-line);
  border-radius: 50%;
  place-items: center;
  transition: 0.18s ease;
}

.issue-card:hover .issue-card__arrow,
.issue-card:focus-visible .issue-card__arrow {
  color: white;
  background: var(--site-ink);
  border-color: var(--site-ink);
  transform: translate(2px, -2px);
}

.home-footer {
  padding: 34px 0 48px;
  border-top: 1px solid var(--site-line);
  color: var(--site-muted);
  font-size: 12px;
}

.home-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

/* Shared report navigation injected during the site build. */
.site-global-nav {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--site-line);
  color: var(--site-ink);
  background: var(--site-paper);
  font-family: var(--font-sans, "Noto Sans SC", "Nunito", "PingFang SC", sans-serif);
}

.site-global-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  gap: 18px;
}

.site-nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.site-home-link,
.site-period-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 13px;
  font-weight: 800;
}

.site-period-links {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

.site-period-link[aria-disabled="true"] {
  color: #a9afb8;
  cursor: default;
}

.issue-picker {
  position: relative;
}

.issue-picker summary {
  min-width: 164px;
  padding: 8px 12px;
  border: 1px solid var(--site-line);
  list-style: none;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.issue-picker summary::-webkit-details-marker {
  display: none;
}

.issue-picker summary::after {
  content: "  ▾";
  color: var(--site-accent);
}

.issue-picker[open] summary::after {
  content: "  ▴";
}

.issue-picker__menu {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  width: 238px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--site-line);
  background: var(--site-paper);
  box-shadow: var(--site-shadow);
  transform: translateX(-50%);
}

.issue-picker__menu a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  font-size: 13px;
}

.issue-picker__menu a:hover,
.issue-picker__menu a:focus-visible,
.issue-picker__menu a[aria-current="page"] {
  color: var(--site-accent);
  background: var(--site-accent-soft);
}

.report-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 68px;
  font-family: var(--font-sans, "Noto Sans SC", "Nunito", "PingFang SC", sans-serif);
}

.report-pager__link,
.report-pager__disabled,
.report-pager__home {
  min-height: 92px;
  padding: 17px 20px;
  border: 1px solid var(--site-line);
  background: var(--site-paper);
}

.report-pager__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: 0.18s ease;
}

.report-pager__link:last-child {
  align-items: flex-end;
  text-align: right;
}

.report-pager__link:hover,
.report-pager__link:focus-visible {
  border-color: var(--site-ink);
  box-shadow: var(--site-shadow);
  transform: translateY(-2px);
}

.report-pager__label {
  color: var(--site-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.report-pager__date {
  margin-top: 6px;
  color: var(--site-ink);
  font-size: 16px;
  font-weight: 850;
}

.report-pager__home {
  display: grid;
  min-width: 142px;
  place-items: center;
  color: var(--site-ink);
  font-size: 13px;
  font-weight: 850;
}

.report-pager__disabled {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #a2a8b1;
  background: transparent;
}

.report-pager__disabled:last-child {
  align-items: flex-end;
  text-align: right;
}

@media (max-width: 760px) {
  .home-shell,
  .site-global-nav__inner,
  .report-pager {
    width: min(100% - 24px, 1120px);
  }

  .home-hero {
    padding-top: 26px;
  }

  .home-kicker {
    margin-top: 54px;
  }

  .home-title {
    font-size: clamp(48px, 16vw, 72px);
  }

  .latest-feature {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 26px 24px;
  }

  .latest-feature::before {
    right: 22px;
    font-size: 45px;
  }

  .latest-action {
    width: fit-content;
  }

  .archive-main {
    padding-top: 52px;
  }

  .archive-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .issue-grid {
    grid-template-columns: 1fr;
  }

  .issue-card {
    min-height: 250px;
    padding: 23px 22px;
  }

  .home-footer__inner {
    flex-direction: column;
    gap: 6px;
  }

  .site-global-nav__inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .site-home-link {
    font-size: 0;
  }

  .site-home-link::after {
    content: "首页";
    font-size: 13px;
  }

  .site-period-links {
    gap: 10px;
  }

  .site-period-link {
    font-size: 0;
  }

  .site-period-link:first-child::after {
    content: "← 上期";
    font-size: 12px;
  }

  .site-period-link:last-child::after {
    content: "下期 →";
    font-size: 12px;
  }

  .issue-picker summary {
    min-width: 0;
    padding-inline: 8px;
  }

  .report-pager {
    grid-template-columns: 1fr 1fr;
  }

  .report-pager__home {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 52px;
  }

  .report-pager__link,
  .report-pager__disabled {
    min-height: 84px;
  }
}

@media (max-width: 430px) {
  .home-brand-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .site-global-nav__inner {
    min-height: 50px;
  }

  .issue-picker summary {
    font-size: 12px;
  }
}

