:root {
  --ink: #101820;
  --paper: #F5EFE0;
  --gold: #D4A845;
  --crimson: #C0392B;
  --teal: #1A3A4A;
  --pearl: #E8E3D8;
  --white: #FFFFFF;
  --amber: #E67E22;
  --rail-width: 280px;
  --header-h-mobile: 64px;
  --content-max: 1200px;
  --font-head: "Oswald", "Bebas Neue", "Arial Narrow", "Roboto Condensed", "DIN Condensed", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;
}

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

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-mobile) + 12px);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

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

h1, h2, h3, h4, h5, p, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

ul, ol {
  margin: 0;
  padding-left: 1.2em;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

#main-content {
  scroll-margin-top: calc(var(--header-h-mobile) + 12px);
}

#main-content:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

@media (min-width: 1024px) {
  .skip-link {
    left: calc(var(--rail-width) + 16px);
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1500;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .scroll-progress {
    left: var(--rail-width);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--header-h-mobile);
  padding: 0 16px;
  border-bottom: 1px solid rgba(212, 168, 69, 0.28);
  position: relative;
  z-index: 2;
}

.site-drawer {
  position: fixed;
  top: var(--header-h-mobile);
  left: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(86vw, 360px);
  padding: 28px 20px 36px;
  background: var(--ink);
  border-right: 2px solid var(--gold);
  box-sizing: border-box;
  overflow-y: auto;
  transform: translateX(-105%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s;
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(245, 239, 224, 0.3);
  cursor: pointer;
  color: var(--paper);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.site-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.site-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.site-brand__site {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.site-brand__name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.site-brand__en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(245, 239, 224, 0.6);
  text-transform: uppercase;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-nav__item {
  margin: 0;
}

.site-nav__item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--pearl);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  border-left: 3px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, padding-left 0.2s;
}

.site-nav__item a::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--teal);
  flex: none;
  transition: background 0.2s, width 0.2s;
}

.site-nav__item a:hover {
  color: var(--gold);
  background: rgba(212, 168, 69, 0.08);
  padding-left: 18px;
}

.site-nav__item a:hover::before {
  background: var(--gold);
  width: 22px;
}

.site-nav__item a[aria-current="page"] {
  color: var(--gold);
  border-left-color: var(--crimson);
  background: linear-gradient(90deg, rgba(192, 57, 43, 0.16), transparent 70%);
}

.site-nav__item a[aria-current="page"]::before {
  background: var(--crimson);
  width: 22px;
}

.site-header__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(212, 168, 69, 0.24);
  padding-top: 18px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--pearl);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid rgba(212, 168, 69, 0.3);
  background: rgba(212, 168, 69, 0.05);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.header-search:hover {
  background: rgba(212, 168, 69, 0.14);
  color: var(--gold);
  border-color: var(--gold);
}

.header-search__icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  flex: none;
}

.header-search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: var(--gold);
  transform: rotate(45deg);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}

.header-cta:hover {
  background: var(--amber);
  transform: translateY(-2px);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(245, 239, 224, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.45);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 126, 34, 0);
  }
}

@media (min-width: 1024px) {
  body {
    margin-left: var(--rail-width);
  }

  .site-header {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--rail-width);
    height: 100vh;
    padding: 28px 20px 22px;
    box-sizing: border-box;
    border-right: 1px solid rgba(212, 168, 69, 0.28);
    overflow-y: auto;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(212, 168, 69, 0.5) 0 6px, transparent 6px 12px);
    opacity: 0.55;
    pointer-events: none;
  }

  .site-header__bar {
    display: block;
    height: auto;
    padding: 0;
    margin-bottom: 32px;
    border-bottom: 0;
    flex: none;
  }

  .nav-toggle {
    display: none;
  }

  .site-drawer {
    position: static;
    top: auto;
    left: auto;
    bottom: auto;
    z-index: auto;
    width: auto;
    padding: 0;
    background: transparent;
    border-right: 0;
    overflow: visible;
    transform: none;
    visibility: visible;
    flex: 1;
    min-height: 0;
    gap: 18px;
  }

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

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -20px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 168, 69, 0.16), transparent 65%);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 80px;
  width: 140px;
  height: 8px;
  background: var(--crimson);
  transform: skewX(-24deg);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 48px) 28px;
}

.footer-lead {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) 1fr;
  gap: 32px;
  align-items: end;
  border-bottom: 1px solid rgba(245, 239, 224, 0.15);
  padding-bottom: 32px;
}

.footer-lead__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-lead__statement {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-brand {
  grid-column: span 4;
}

.footer-links {
  grid-column: span 2;
}

.footer-legal {
  grid-column: span 3;
}

.footer-contact {
  grid-column: span 3;
}

.footer-heading {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--crimson);
  margin-top: 8px;
}

.footer-links ul,
.footer-legal ul,
.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  color: rgba(245, 239, 224, 0.82);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--gold);
}

.footer-contact {
  font-style: normal;
}

.footer-contact li {
  color: rgba(245, 239, 224, 0.82);
  font-size: 14px;
  line-height: 1.7;
}

.footer-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(245, 239, 224, 0.6);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(245, 239, 224, 0.12);
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 239, 224, 0.6);
}

.site-brand--footer .site-brand__mark {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.site-brand--footer .site-brand__name {
  font-size: 24px;
}

@media (max-width: 960px) {
  .footer-lead {
    grid-template-columns: 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }

  .footer-brand {
    grid-column: span 6;
  }

  .footer-links,
  .footer-legal,
  .footer-contact {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-legal,
  .footer-contact {
    grid-column: span 1;
  }
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

.page-section {
  padding-block: clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
}

.section-title {
  margin: 0.25em 0 0.5em;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}

.section-subtitle {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(16, 24, 32, 0.72);
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  background: var(--gold);
  color: var(--ink);
  border: 2px solid var(--gold);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-2px);
}

.btn:active {
  transform: none;
}

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

.btn--ghost:hover {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

.btn--on-dark {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.cut-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--ink);
  color: var(--paper);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.cut-panel--gold {
  background: var(--gold);
  color: var(--ink);
}

.cut-panel--paper {
  background: var(--pearl);
  color: var(--ink);
  border: 1px solid var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}

.grid__item {
  grid-column: span 4;
  min-width: 0;
}

.grid__item--span-6 {
  grid-column: span 6;
}

.grid__item--span-8 {
  grid-column: span 8;
}

@media (max-width: 900px) {
  .grid__item,
  .grid__item--span-8 {
    grid-column: span 6;
  }
}

@media (max-width: 620px) {
  .grid__item,
  .grid__item--span-6,
  .grid__item--span-8 {
    grid-column: span 12;
  }
}

.stat {
  padding: 20px;
  background: var(--pearl);
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

.stat__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(16, 24, 32, 0.68);
}

.console-panel {
  position: relative;
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
  border-left: 6px solid var(--gold);
}

.console-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.console-panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 239, 224, 0.7);
  font-weight: 400;
}

.breadcrumbs {
  margin: 24px 0;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  margin-right: 8px;
  color: var(--crimson);
  font-weight: 700;
}

.breadcrumbs__link {
  color: var(--teal);
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--crimson);
}

.breadcrumbs__link[aria-current="page"] {
  color: var(--amber);
  pointer-events: none;
  text-decoration: none;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--teal);
  aspect-ratio: 16 / 10;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 69, 0.22), transparent 45%);
  pointer-events: none;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
