:root {
  --base-bg: #F5F1E8;
  --deep-bg: #0D0D0D;
  --ink: #1D1D1D;
  --red: #E63946;
  --red-soft: #FF6B6B;
  --silver: #C0C0C0;
  --green: #39FF14;
  --dark-surface: #2A2A2A;
  --text-primary: #1D1D1D;
  --text-on-dark: #F5F1E8;
  --border: #3A3A3A;
  --paper-highlight: #FFF9ED;
  --font-headline: "Noto Sans SC Black", "DIN Condensed", "Arial Narrow", sans-serif;
  --font-body: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-data: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", monospace;
  --font-editorial: "Noto Serif SC", "Source Han Serif SC", serif;
  --header-width: 280px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--base-bg);
}

main {
  display: block;
  margin-left: 0;
  min-height: 60vh;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 900;
  line-height: 0.95;
  transform: skewX(-3deg);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--ink);
}

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

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

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  z-index: 3000;
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(192,192,192,0.06) 0, rgba(192,192,192,0.06) 1px, transparent 1px, transparent 10px),
    linear-gradient(135deg, #0D0D0D 0%, #1D1D1D 100%);
  color: var(--text-on-dark);
  z-index: 1000;
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--red);
  color: #fff;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 1.25rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.5rem), calc(100% - 0.5rem) 100%, 0 100%);
  transform: skewX(-5deg);
}

.brand-name {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid var(--silver);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  cursor: pointer;
  line-height: 1;
}

.nav-toggle:hover {
  border-color: var(--red);
  color: var(--red);
}

.nav-toggle-icon {
  position: relative;
  display: inline-block;
  width: 1.25rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-toggle-icon::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-label {
  font-size: 0.875rem;
}

.site-nav {
  display: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-on-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-list li a:hover {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(230,57,70,0.08);
}

.nav-list li a[aria-current="page"] {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(230,57,70,0.12);
  font-weight: 700;
}

.nav-cta {
  display: block;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transform: skewX(-4deg);
  text-align: center;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--red-soft);
}

.scroll-progress {
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: var(--red);
  z-index: 20;
  transition: height 0.1s linear;
}

.site-footer {
  background:
    repeating-linear-gradient(-45deg, rgba(192,192,192,0.04) 0, rgba(192,192,192,0.04) 1px, transparent 1px, transparent 12px),
    var(--deep-bg);
  color: var(--text-on-dark);
  padding: 3rem 1.5rem 2rem;
  border-top: 4px solid var(--red);
  margin-left: 0;
}

@media (min-width: 1024px) {
  .site-footer {
    margin-left: var(--header-width);
  }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-brand {
  margin-bottom: 0.5rem;
}

.footer-brand .brand {
  color: var(--text-on-dark);
}

.footer-about {
  color: var(--silver);
  font-size: 0.9rem;
  max-width: 36ch;
  margin-top: 0.5rem;
}

.footer-nav {
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-contact p {
  margin: 0;
  color: var(--silver);
  font-size: 0.875rem;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
  grid-column: 1 / -1;
  color: var(--silver);
  font-size: 0.8rem;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transform: skewX(-4deg);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--red-soft);
  border-color: var(--red-soft);
}

.btn-ghost {
  border-color: var(--red);
  color: var(--red);
}

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

.breadcrumb {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--silver);
}

.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.breadcrumb a[aria-current="page"] {
  color: var(--red);
  font-weight: 700;
}

.media {
  position: relative;
  overflow: hidden;
  background: var(--dark-surface);
  border: 1px solid var(--border);
}

.media::before {
  content: "9U";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 3rem;
  font-weight: 900;
  color: var(--silver);
  opacity: 0.3;
}

.media img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.data-value {
  font-family: var(--font-data);
  font-size: 0.9rem;
  color: var(--ink);
}

.data-highlight {
  color: var(--green);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2,
.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--header-width);
    height: 100vh;
    border-bottom: none;
    border-right: 3px solid var(--red);
  }
  .header-inner {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: 100%;
    padding: 2rem 1.5rem;
  }
  .brand {
    margin-bottom: 1rem;
  }
  .nav-toggle {
    display: none;
  }
  .site-nav {
    display: block;
    width: 100%;
    margin-top: 2rem;
  }
  .nav-list {
    flex-direction: column;
  }
  .nav-cta {
    margin-top: auto;
  }
}

@media (max-width: 1023px) {
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(80vw, 320px);
    background: var(--deep-bg);
    padding: 5rem 1.5rem 1.5rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    display: block;
  }
  .site-nav[data-open] {
    transform: translateX(0);
  }
  .nav-list {
    display: flex;
    flex-direction: column;
  }
  .nav-cta {
    display: block;
    margin-top: 2rem;
  }
}

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