*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding-left: 0;
  background-color: var(--c-rock);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--c-yellow);
  color: var(--c-deep);
}

:focus-visible {
  outline: 3px solid var(--c-yellow);
  outline-offset: 2px;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

:root {
  --c-deep: #0d1f3c;
  --c-darkblue: #152c55;
  --c-yellow: #ffd21f;
  --c-red: #e6332b;
  --c-rock: #dfe0dc;
  --c-moss: #5b6e5a;
  --c-clay: #b25d3f;
  --c-cream: #f9f7f2;
  --c-ink: #1a1a1a;
  --c-slate: #8a93a6;
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --radius: 10px;
  --radius-sm: 6px;
  --header-w: 300px;
  --content-max: 1120px;
  --shadow-card: 0 1px 2px rgba(13, 31, 60, .06), 0 8px 24px rgba(13, 31, 60, .08);
  --shadow-raised: 0 2px 4px rgba(13, 31, 60, .10), 0 18px 40px rgba(13, 31, 60, .16);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: calc(var(--header-w) + 16px);
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--c-yellow);
  color: var(--c-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transform: translateY(-220%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--header-w);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px) 24px 26px;
  background: linear-gradient(165deg, var(--c-deep) 0%, var(--c-darkblue) 62%, #0a1830 100%);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 12px 0 32px rgba(13, 31, 60, .16);
}

.header-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-yellow) 0%, var(--c-red) 100%);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--c-yellow);
  color: var(--c-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.brand__text {
  display: block;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .12em;
}

.brand__meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--c-slate);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm);
  background: transparent;
}

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: var(--c-yellow);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin-top: 32px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-list__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #c5cdd9;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}

.nav-list__link::before {
  content: attr(data-nav-index);
  min-width: 26px;
  color: var(--c-slate);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
}

.nav-list__link:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  transform: translateX(4px);
}

.nav-list__link:hover::before {
  color: var(--c-yellow);
}

.nav-list__link[aria-current="page"] {
  background: rgba(255, 255, 255, .10);
  color: #fff;
}

.nav-list__link[aria-current="page"]::before {
  color: var(--c-yellow);
}

.nav-list__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--c-red);
  border-radius: 2px 0 0 2px;
  transform: skewX(-18deg);
}

.site-nav__note {
  margin-top: auto;
  padding: 18px 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: var(--c-slate);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: .08em;
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.header-status__index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  color: var(--c-yellow);
}

.header-status__divider {
  color: var(--c-slate);
  font-size: 12px;
}

.header-status__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .10em;
  color: #fff;
}

.header-status__dot {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--c-moss);
  box-shadow: 0 0 0 4px rgba(91, 110, 90, .25);
}

.header-status__message {
  flex-basis: 100%;
  margin-left: 38px;
  color: var(--c-slate);
  font-size: 11px;
  letter-spacing: .12em;
}

.site-main {
  position: relative;
  min-height: 70vh;
  padding: clamp(28px, 5vw, 72px) clamp(18px, 4vw, 56px) 64px;
  background-image: linear-gradient(90deg, rgba(13, 31, 60, .035) 1px, transparent 1px);
  background-size: 44px 44px;
}

.site-main:focus {
  outline: none;
}

.site-main a {
  color: var(--c-deep);
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(255, 210, 31, .85);
  text-underline-offset: 3px;
}

.site-main a:hover {
  color: var(--c-red);
}

.container {
  width: min(var(--content-max), 100%);
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 0;
  margin-bottom: 28px;
  color: var(--c-slate);
  font-family: var(--font-display);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--c-slate);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--c-deep);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--c-slate);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-ink);
  font-weight: 700;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--c-ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
}

h3 {
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
}

h4 {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
}

p {
  margin-bottom: 1em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.btn--primary {
  background: var(--c-yellow);
  color: var(--c-deep);
  box-shadow: 0 4px 0 rgba(13, 31, 60, .16);
}

.btn--primary:hover {
  background: #ffe066;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-deep);
  border-color: var(--c-deep);
}

.btn--ghost:hover {
  background: var(--c-deep);
  color: #fff;
}

.btn--red {
  background: var(--c-red);
  color: #fff;
}

.btn--red:hover {
  background: #c62a23;
  transform: translateY(-2px);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .grid--two,
  .grid--three {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 24px;
  background: var(--c-cream);
  border: 1px solid rgba(13, 31, 60, .10);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.card--dark {
  background: var(--c-deep);
  color: #fff;
  border: 0;
}

.card--dark h1,
.card--dark h2,
.card--dark h3,
.card--dark h4 {
  color: #fff;
}

.card--accent-top {
  border-top: 4px solid var(--c-yellow);
}

.record-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--c-cream);
  border: 1px solid rgba(13, 31, 60, .08);
  border-left: 4px solid var(--c-clay);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.record-card__index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
  color: var(--c-clay);
}

.record-card__title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--c-ink);
}

.record-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-slate);
}

.chapter {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 20px 28px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(13, 31, 60, .12);
}

.chapter__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--c-clay);
}

.chapter__content {
  min-width: 0;
}

@media (max-width: 640px) {
  .chapter {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }

  .chapter__num {
    font-size: 32px;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(13, 31, 60, .14);
  border: 1px solid rgba(13, 31, 60, .14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat-cell {
  padding: 18px;
  background: var(--c-cream);
}

.stat-cell__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.1;
  color: var(--c-deep);
}

.stat-cell__label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--c-slate);
}

@media (max-width: 880px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(13, 31, 60, .10);
  text-align: left;
}

.data-table th {
  background: var(--c-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

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

.data-table tr:hover td {
  background: rgba(255, 210, 31, .08);
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
}

.tag--yellow {
  background: var(--c-yellow);
  color: var(--c-deep);
}

.tag--red {
  background: var(--c-red);
  color: #fff;
}

.tag--moss {
  background: var(--c-moss);
  color: #fff;
}

.tag--clay {
  background: var(--c-clay);
  color: #fff;
}

.chip {
  border-color: var(--c-deep);
  background: transparent;
  color: var(--c-deep);
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.chip:hover {
  background: rgba(13, 31, 60, .06);
}

.chip[aria-pressed="true"] {
  background: var(--c-deep);
  color: #fff;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .28em;
  color: var(--c-clay);
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  display: block;
  width: 32px;
  height: 4px;
  background: var(--c-red);
  transform: skewX(-24deg);
}

.section-title {
  margin-bottom: 16px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
}

.section-title--light {
  color: #fff;
}

.lede {
  font-size: 18px;
  line-height: 1.8;
  color: var(--c-slate);
}

.cut-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .24em;
  color: var(--c-slate);
  text-transform: uppercase;
}

.cut-line::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--c-red);
  transform: rotate(45deg);
}

.cut-line::after {
  content: "";
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--c-yellow), var(--c-red));
  transform: skewX(-24deg);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #dfe0dc 0%, #c9cec7 100%);
  border: 1px solid rgba(13, 31, 60, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.media-frame::before {
  content: "IMAGE / ARCHIVE";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--c-slate);
}

.media-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

.media-frame--wide {
  aspect-ratio: 16 / 6;
}

.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 48px 24px 0;
  background: linear-gradient(135deg, var(--c-deep), var(--c-darkblue));
  color: #c5cdd9;
}

.site-footer::after {
  content: "LIVE / ARCHIVE / CN";
  position: absolute;
  top: 34px;
  right: 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .30em;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.site-footer__inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 36px;
}

.footer-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #fff;
  text-decoration: none;
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--c-yellow);
  color: var(--c-deep);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.footer-brand__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .12em;
}

.footer-brand__meta {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .30em;
  color: var(--c-slate);
}

.footer-brand__note {
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: #c5cdd9;
}

.footer-nav__title,
.footer-contact__title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .16em;
  color: var(--c-yellow);
}

.footer-nav__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.footer-nav__link {
  display: inline-block;
  padding: 2px 0;
  color: #c5cdd9;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.footer-nav__link:hover {
  color: #fff;
  border-bottom-color: var(--c-yellow);
}

.footer-contact__line {
  margin-bottom: 6px;
  color: #c5cdd9;
  font-size: 14px;
}

.footer-contact__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: var(--c-slate);
  font-size: 13px;
  line-height: 1.7;
}

.footer-legal {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  border-top: 1px solid rgba(255, 255, 255, .10);
  color: var(--c-slate);
  font-size: 13px;
}

.footer-legal a {
  color: var(--c-slate);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--c-yellow);
}

.footer-legal__copy,
.footer-legal__links,
.footer-legal__icp {
  margin: 0;
}

.footer-legal__links {
  display: flex;
  gap: 8px;
}

.footer-legal__icp {
  margin-left: auto;
}

@media (min-width: 881px) {
  body {
    padding-left: var(--header-w);
  }
}

@media (max-width: 880px) {
  body {
    padding-left: 0;
  }

  .skip-link {
    left: 16px;
    top: 8px;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 12px 16px;
    border-right: 0;
    box-shadow: 0 8px 24px rgba(13, 31, 60, .18);
  }

  .header-progress {
    height: 3px;
  }

  .header-top {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 1060;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80vw, 320px);
    z-index: 1040;
    margin: 0;
    padding: 72px 20px 24px;
    background: linear-gradient(160deg, var(--c-deep), var(--c-darkblue));
    border-right: 1px solid rgba(255, 255, 255, .10);
    transform: translateX(-100%);
    transition: transform .25s ease;
  }

  .site-nav[data-open] {
    transform: translateX(0);
  }

  .site-nav__note {
    margin-top: auto;
  }

  .header-status {
    flex: 1 0 100%;
    margin: 2px 0 0;
    padding: 0;
    border-top: 0;
  }

  .header-status__index {
    font-size: 16px;
  }

  .header-status__divider,
  .header-status__name {
    font-size: 12px;
  }

  .header-status__dot {
    margin-left: 6px;
  }

  .header-status__message {
    flex-basis: auto;
    margin-left: 4px;
    font-size: 10px;
  }

  .site-footer {
    padding: 40px 18px 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer::after {
    display: none;
  }

  .footer-legal {
    align-items: flex-start;
  }

  .footer-legal__icp {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .data-table th,
  .data-table td {
    padding: 10px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
