:root {
  --paper: #e2dfd2;
  --mist: #d4cbe5;
  --ink: #202328;
  --charcoal: #3c4043;
  --steel: #7d84b2;
  --orange: #ff9900;
  --purple: #8338ec;
  --line: #555a5f;
  --card: rgba(250, 248, 240, 0.9);
  --shadow: 5px 5px 0 var(--charcoal);
  --pixel: "Courier New", Consolas, monospace;
  --body: "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --terminal-glow: rgba(125, 132, 178, 0.38);
  --hazard-glow: rgba(255, 153, 0, 0.48);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(
      circle at 82% 9%,
      rgba(131, 56, 236, 0.16),
      transparent 24rem
    ),
    radial-gradient(
      circle at 15% 78%,
      rgba(125, 132, 178, 0.23),
      transparent 32rem
    ),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.75;
  overflow-x: hidden;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.18;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(60, 64, 67, 0.22) 4px
  );
  mix-blend-mode: multiply;
}
.site-shell {
  position: relative;
}
.site-shell:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 19;
  opacity: 0.18;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0 48%,
    rgba(60, 64, 67, 0.11) 100%
  );
}
.site-shell {
  overflow: hidden;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}
.skip-link {
  position: absolute;
  left: -999px;
  z-index: 99;
  background: var(--orange);
  color: #111;
  padding: 0.6rem 1rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(226, 223, 210, 0.94);
  border-bottom: 3px solid var(--charcoal);
  box-shadow:
    0 4px 0 var(--orange),
    0 8px 0 rgba(60, 64, 67, 0.26);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
}
.brand-mark {
  color: var(--purple);
}
.menu-toggle {
  display: none;
  background: var(--charcoal);
  color: #fff;
  border: 0;
  padding: 0.65rem 0.9rem;
  font: 700 0.9rem var(--pixel);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.site-nav a {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a:focus {
  border-color: var(--orange);
}
.section {
  padding: 88px 0;
  position: relative;
}
.section:before {
  content: "";
  position: absolute;
  inset: 12px max(12px, calc((100% - 1180px) / 2));
  border-inline: 1px solid rgba(60, 64, 67, 0.23);
  pointer-events: none;
}
.section-tint {
  background: linear-gradient(135deg, var(--mist), #c5bdd7);
  border-block: 3px solid var(--charcoal);
}
.section-tint:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: linear-gradient(90deg, var(--steel) 1px, transparent 1px),
    linear-gradient(0deg, var(--steel) 1px, transparent 1px);
  background-size: 22px 22px;
}
.section-tint > .container {
  position: relative;
  z-index: 1;
}
.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--purple);
  font: 800 0.82rem var(--pixel);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-head {
  max-width: 750px;
  margin-bottom: 2rem;
}
.section-head h2,
.article h2 {
  font-family: var(--pixel);
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.35;
  margin: 0.1rem 0 0.7rem;
}
.section-head p {
  margin: 0;
}
.hero {
  min-height: 670px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(27, 25, 37, 0.93) 0%,
      rgba(27, 25, 37, 0.76) 44%,
      rgba(27, 25, 37, 0.2) 100%
    ),
    url("../img/mwQ6-4eozZgT3cSxc-ir.webp") center/cover no-repeat;
  color: #fff;
  border-bottom: 4px solid var(--orange);
  position: relative;
  box-shadow: inset 0 -12px 0 rgba(131, 56, 236, 0.35);
}
.hero:before {
  content: "CMD // FRONTLINE BASE\A STATUS: DESCENT READY\A SIGNAL: STABLE";
  white-space: pre;
  position: absolute;
  top: 110px;
  right: max(30px, calc((100% - 1160px) / 2));
  z-index: 1;
  padding: 12px 15px;
  border: 2px solid var(--orange);
  color: var(--orange);
  background: rgba(32, 35, 40, 0.72);
  font: 800 0.72rem/1.7 var(--pixel);
  box-shadow: 4px 4px 0 var(--purple);
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 105px;
  background: linear-gradient(transparent, var(--paper));
}
.hero-grid {
  position: relative;
  z-index: 1;
  padding: 84px 0 150px;
}
.terminal-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  max-width: 600px;
  margin: 1.2rem 0;
  padding: 0.55rem 0.7rem;
  border-left: 4px solid var(--orange);
  background: rgba(60, 64, 67, 0.74);
  color: #f7f4e9;
  font: 700 0.78rem var(--pixel);
}
.terminal-status b {
  color: var(--orange);
  letter-spacing: 0.08em;
}
.signal {
  display: inline-block;
  color: var(--orange);
  font: 700 0.82rem var(--pixel);
  letter-spacing: 0.1em;
}
.hero h1 {
  max-width: 780px;
  margin: 0.45rem 0;
  font: 900 clamp(2.35rem, 7vw, 5.7rem) / 1 var(--pixel);
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0 var(--purple);
}
.hero h1 span {
  display: block;
  font-size: 0.36em;
  letter-spacing: 0.12em;
  margin-top: 0.6rem;
}
.hero-lead {
  max-width: 610px;
  font-size: 1.08rem;
  margin: 1.3rem 0 1.6rem;
}
.hero-actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.download-btn,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 3px solid var(--charcoal);
  box-shadow: 4px 4px 0 var(--charcoal);
  font: 900 1rem var(--pixel);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  text-decoration: none;
}
.download-btn {
  background: var(--orange);
  color: #1a1a1a;
}
.button-link {
  background: #fff;
  color: var(--ink);
}
.download-btn:hover,
.button-link:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--charcoal);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
}
.hero-meta span,
.chip {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
}
.snapshot {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.8rem;
  align-items: start;
}
.summary-card,
.info-card,
.guide-card,
.faq-item,
.timeline-item {
  background: var(--card);
  border: 2px solid var(--charcoal);
  box-shadow:
    var(--shadow),
    inset 0 0 0 5px rgba(125, 132, 178, 0.1);
}
.summary-card {
  padding: 1.5rem;
}
.summary-card h2 {
  font: 900 1.55rem var(--pixel);
  margin: 0 0 0.8rem;
}
.summary-card p {
  margin: 0;
}
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 2px solid var(--charcoal);
  background: #f7f5ed;
}
.fact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #9b9d98;
  font-size: 0.92rem;
}
.fact-list li:last-child {
  border: 0;
}
.fact-list strong {
  font-family: var(--pixel);
  color: var(--purple);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.info-card {
  padding: 1.25rem;
  position: relative;
}
.info-card:before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(60, 64, 67, 0.4);
  pointer-events: none;
}
.info-card h3,
.guide-card h3 {
  position: relative;
  font: 900 1.05rem var(--pixel);
  margin: 0.1rem 0 0.7rem;
}
.info-card p,
.guide-card p {
  position: relative;
  margin: 0;
  font-size: 0.94rem;
}
.feature-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2.2rem;
  align-items: center;
}
.media-frame {
  margin: 0;
  position: relative;
  border: 3px solid var(--charcoal);
  box-shadow:
    8px 8px 0 var(--purple),
    0 0 0 5px rgba(255, 153, 0, 0.18);
  background: var(--charcoal);
}
.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.media-frame figcaption {
  padding: 0.45rem 0.65rem;
  color: #fff;
  font-size: 0.8rem;
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 2px dotted var(--line);
}
.feature-list strong {
  font-family: var(--pixel);
  color: var(--purple);
}
.guide-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  min-height: 185px;
  padding: 1rem;
  background: #f9f7ef;
  color: var(--ink);
  text-decoration: none;
}
.guide-card span {
  margin-top: auto;
  color: var(--purple);
  font: 800 0.78rem var(--pixel);
}
.guide-card:hover {
  background: #fff3d8;
  transform: translateY(-3px);
}
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.timeline-item {
  padding: 1rem;
}
.timeline-item time {
  display: block;
  color: var(--purple);
  font: 800 0.85rem var(--pixel);
}
.timeline-item p {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.faq-item {
  padding: 1rem;
}
.faq-item h3 {
  font: 900 1rem var(--pixel);
  margin: 0 0 0.5rem;
}
.faq-item p {
  margin: 0;
  font-size: 0.92rem;
}
.site-footer {
  background: var(--charcoal);
  color: #f8f5ea;
  border-top: 4px solid var(--orange);
  padding: 3rem 0 1.3rem;
  position: relative;
  overflow: hidden;
}
.site-footer:before {
  content: "SIGNAL LOST // SIGNAL LOST // SIGNAL LOST // SIGNAL LOST // SIGNAL LOST";
  position: absolute;
  inset: auto -10% 0;
  color: rgba(255, 255, 255, 0.08);
  font: 900 2.4rem var(--pixel);
  white-space: nowrap;
  transform: translateY(22%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}
.site-footer h2 {
  font: 900 1.15rem var(--pixel);
  margin: 0 0 0.7rem;
}
.site-footer p {
  font-size: 0.88rem;
  margin: 0.25rem 0;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
}
.friend-links a {
  color: #fff;
  text-decoration-color: var(--orange);
  font-size: 0.83rem;
}
.footer-bottom {
  border-top: 1px solid #81858b;
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  font: 0.76rem var(--pixel);
  color: #d8d5ca;
}
.page-hero {
  padding: 76px 0 54px;
  background: linear-gradient(
    135deg,
    var(--charcoal),
    #252234 58%,
    var(--purple)
  );
  color: #fff;
  border-bottom: 4px solid var(--orange);
}
.crumbs {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.crumbs a {
  color: #fff;
}
.page-hero h1 {
  font: 900 clamp(2rem, 5vw, 3.8rem) / 1.15 var(--pixel);
  margin: 0.3rem 0 0.8rem;
}
.page-hero p {
  max-width: 710px;
  margin: 0;
}
.article {
  max-width: 900px;
  margin: auto;
}
.article h2 {
  margin-top: 2.5rem;
  border-left: 7px solid var(--orange);
  padding-left: 0.7rem;
}
.article h3 {
  font: 900 1.12rem var(--pixel);
  margin: 1.55rem 0 0.4rem;
  color: var(--purple);
}
.article p,
.article li {
  font-size: 1rem;
}
.article ul,
.article ol {
  padding-left: 1.35rem;
}
.article table {
  border-collapse: collapse;
  width: 100%;
  background: #f8f5ed;
  font-size: 0.92rem;
}
.article th,
.article td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
}
.article th {
  background: var(--charcoal);
  color: #fff;
  font-family: var(--pixel);
}
.article figure {
  margin: 2rem 0;
}
.article figure img {
  width: 100%;
  display: block;
  border: 3px solid var(--charcoal);
}
.article figcaption {
  font-size: 0.82rem;
  color: #555;
  margin-top: 0.4rem;
}
.article .faq-item {
  margin: 1rem 0;
}
.article details {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  background: #f8f5ed;
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 var(--steel);
}
.article summary {
  cursor: pointer;
  font: 900 0.95rem var(--pixel);
  color: var(--purple);
}
.article details p {
  margin: 0.7rem 0 0;
}
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 2rem;
}
.quick-nav a {
  padding: 0.42rem 0.7rem;
  border: 2px solid var(--charcoal);
  background: #fff;
  color: var(--ink);
  font: 800 0.78rem var(--pixel);
  text-decoration: none;
}
.quick-nav a:hover {
  background: var(--orange);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  background: #f8f5ed;
  border: 2px solid var(--charcoal);
}
.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.gallery-grid figcaption {
  padding: 0.65rem;
  font-size: 0.84rem;
}
.back-home {
  display: inline-block;
  margin-top: 2.4rem;
  color: var(--purple);
  font-weight: 800;
}
.view-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 25;
  border: 3px solid var(--charcoal);
  background: var(--purple);
  color: #fff;
  padding: 0.65rem 0.8rem;
  box-shadow: 3px 3px 0 var(--charcoal);
  font: 800 0.75rem var(--pixel);
  cursor: pointer;
}
.pixel-mode {
  filter: saturate(1.13) contrast(1.08);
}
.pixel-mode .hero,
.pixel-mode .page-hero {
  image-rendering: pixelated;
}
.pixel-mode .hero {
  background-image: linear-gradient(
      90deg,
      rgba(27, 25, 37, 0.94) 0%,
      rgba(27, 25, 37, 0.78) 48%,
      rgba(27, 25, 37, 0.22) 100%
    ),
    url("../img/1143421.webp");
  background-size: cover;
  background-position: center;
}
.pixel-mode .hero:before {
  content: "PIXEL LINK // ACTIVE\A VISUAL MODE: TACTICAL MAP\A SIGNAL: DECODED";
  color: #fff;
  border-color: var(--purple);
  box-shadow: 4px 4px 0 var(--orange);
}
.pixel-mode .media-frame img {
  image-rendering: pixelated;
}
@media (max-width: 850px) {
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 3px solid var(--charcoal);
    padding: 0.5rem 20px 1rem;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 0.6rem 0;
  }
  .snapshot,
  .feature-layout {
    grid-template-columns: 1fr;
  }
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-index {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: 610px;
    background-position: 62% center;
  }
  .hero:before {
    top: 92px;
    right: 20px;
    font-size: 0.64rem;
  }
  .hero-grid {
    padding-top: 64px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1160px);
  }
  .section {
    padding: 58px 0;
  }
  .header-inner {
    min-height: 64px;
  }
  .site-nav {
    top: 64px;
    padding-inline: 14px;
  }
  .brand {
    font-size: 0.84rem;
  }
  .hero {
    min-height: 625px;
    background-position: 64% center;
  }
  .hero:before {
    display: none;
  }
  .hero-grid {
    padding: 55px 0 110px;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .hero-lead {
    font-size: 0.97rem;
  }
  .content-grid,
  .timeline,
  .faq-list {
    grid-template-columns: 1fr;
  }
  .guide-index {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .fact-list li {
    grid-template-columns: 72px 1fr;
    gap: 0.5rem;
  }
  .page-hero {
    padding: 58px 0 42px;
  }
  .article h2 {
    font-size: 1.35rem;
  }
  .download-btn,
  .button-link {
    width: 100%;
  }
  .hero-actions {
    align-items: stretch;
  }
}
