:root {
  --bg-deep: #0B1D3A;
  --bg-warm: #F5F3EF;
  --bg-cream: #FDFBF7;
  --ink: #101820;
  --gold: #C9A063;
  --gold-light: #E5C17A;
  --gold-strong: #8A6A34;
  --cyan: #3FE0C5;
  --violet: #7A5CFF;
  --line: #2A3A5C;
  --font-title: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", "Courier New", monospace;
  --radius-m: 14px;
  --shadow: 0 14px 36px rgba(4, 12, 28, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  background-color: var(--bg-warm);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--gold-light);
}

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

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(201, 160, 99, 0.3);
  color: var(--bg-deep);
}

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

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.content-wrap {
  width: min(780px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--bg-deep);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  transform: translateY(-300%);
  transition: transform 0.2s ease;
}

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

.scroll-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  pointer-events: none;
  z-index: 2000;
}

.scroll-thumb {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform-origin: left center;
  transform: scaleX(0);
}

.site-header {
  position: relative;
  background-color: var(--bg-deep);
  color: var(--bg-cream);
  border-bottom: 1px solid rgba(201, 160, 99, 0.3);
}

.header-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 22px 0 18px;
}

.header-brand {
  flex: 1 1 auto;
  min-width: 0;
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--bg-cream);
}

.brand-block:hover .brand-cname {
  color: var(--gold-light);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 3px;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 160, 99, 0.65);
  border-radius: 4px;
}

.brand-star {
  align-self: flex-start;
  margin-top: 1px;
  font-size: 12px;
  color: var(--cyan);
}

.brand-dash {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.brand-cname {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-slogan {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(245, 243, 239, 0.55);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 160, 99, 0.35);
  border-radius: 8px;
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.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) {
  opacity: 0;
}

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

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1200;
  display: none;
  background: var(--bg-deep);
  border-top: 1px solid rgba(201, 160, 99, 0.2);
  border-bottom: 1px solid var(--gold);
  box-shadow: 0 24px 40px rgba(4, 12, 28, 0.35);
}

.site-nav[data-open] {
  display: block;
}

.nav-list {
  display: grid;
  gap: 2px;
  padding: 12px 20px;
  list-style: none;
}

.nav-link {
  display: block;
  position: relative;
  padding: 14px 8px;
  color: rgba(245, 243, 239, 0.86);
  font-size: 16px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.nav-item:last-child .nav-link {
  border-bottom: 0;
}

.nav-link:hover {
  background: rgba(201, 160, 99, 0.08);
  color: var(--gold-light);
}

.nav-link[aria-current="page"] {
  color: var(--gold-light);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(63, 224, 197, 0.9);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 20px;
  border-top: 1px dashed rgba(201, 160, 99, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 243, 239, 0.6);
}

.nav-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-console {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(245, 243, 239, 0.6);
}

.header-console .console-label {
  color: var(--gold);
}

.header-console .console-value {
  color: rgba(245, 243, 239, 0.8);
}

.header-console .console-sep {
  color: rgba(255, 255, 255, 0.22);
}

@media (min-width: 700px) {
  .header-console {
    display: flex;
  }
}

@media (min-width: 961px) {
  .header-main {
    flex-wrap: nowrap;
    padding: 34px 0 24px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav,
  .site-nav[data-open] {
    position: static;
    display: block;
    margin-left: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    gap: 4px;
    padding: 0;
  }

  .nav-item .nav-link {
    border-bottom: 0;
  }

  .nav-link {
    padding: 10px 16px;
  }

  .nav-link[aria-current="page"]::after {
    left: 16px;
    right: 16px;
    bottom: 2px;
  }

  .nav-meta {
    display: none;
  }
}

.site-footer {
  background-color: var(--bg-deep);
  color: rgba(245, 243, 239, 0.78);
  border-top: 2px solid var(--gold);
}

.footer-shell {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  gap: 44px;
}

.footer-brand .brand-block {
  color: var(--bg-cream);
}

.footer-quote {
  max-width: 48ch;
  margin: 20px 0;
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  color: rgba(245, 243, 239, 0.68);
  font-size: 14px;
  line-height: 1.9;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 24, 32, 0.35);
  border: 1px solid rgba(63, 224, 197, 0.3);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 243, 239, 0.75);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
}

.status-dot--live {
  background-color: var(--cyan);
  animation: pulse 2.4s infinite;
}

.footer-overline {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.footer-scan {
  text-align: center;
}

.scan-panel {
  max-width: 220px;
  margin-inline: auto;
}

.scan-frame {
  position: relative;
  width: 128px;
  height: 128px;
  margin-inline: auto;
  background-color: var(--bg-cream);
  border: 1px solid var(--gold-light);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(4, 12, 28, 0.35);
}

.scan-grid {
  position: absolute;
  inset: 8px;
  display: block;
}

.scan-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 3px 3px, rgba(11, 29, 58, 0.45) 2px, transparent 2.5px);
  background-size: 12px 12px;
}

.scan-grid::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.85;
  animation: scanLine 3.2s ease-in-out infinite;
}

.scan-hint {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 14px;
  border: 1px dashed rgba(201, 160, 99, 0.55);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-light);
}

.scan-desc {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(245, 243, 239, 0.58);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-nav {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.footer-link {
  width: fit-content;
  padding: 6px 0;
  color: rgba(245, 243, 239, 0.82);
  font-size: 15px;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
}

.footer-contact {
  display: grid;
  gap: 6px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(245, 243, 239, 0.6);
}

.contact-item {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.footer-console {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245, 243, 239, 0.55);
}

.footer-console .console-item {
  color: rgba(245, 243, 239, 0.72);
}

.footer-console .console-sep {
  color: rgba(201, 160, 99, 0.45);
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }

  .footer-links {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.9fr 1.1fr;
  }

  .footer-links {
    grid-column: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-deep);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-deep);
  box-shadow: 0 8px 20px rgba(201, 160, 99, 0.35);
}

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

.btn-ghost:hover {
  background: rgba(201, 160, 99, 0.12);
  color: var(--gold-light);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(16, 24, 32, 0.5);
}

.breadcrumb {
  color: var(--gold-strong);
}

.breadcrumb-current {
  color: rgba(16, 24, 32, 0.85);
  font-weight: 600;
}

.section-head {
  margin-bottom: 40px;
}

.section-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-strong);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--bg-deep);
}

.section-desc {
  max-width: 62ch;
  margin-top: 12px;
  color: rgba(16, 24, 32, 0.72);
}

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-cream);
  border: 1px solid rgba(42, 58, 92, 0.12);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 28px;
}

.accordion {
  border-top: 1px solid rgba(42, 58, 92, 0.16);
}

.accordion-item {
  border-bottom: 1px solid rgba(42, 58, 92, 0.16);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: transparent;
  border: 0;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.accordion-trigger::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold-strong);
  transition: transform 0.25s ease;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "–";
  transform: rotate(180deg);
}

.accordion-panel {
  max-width: 70ch;
  padding: 0 0 24px;
  color: rgba(16, 24, 32, 0.75);
}

.split-layout {
  display: grid;
  gap: 40px;
}

.split-aside {
  align-self: start;
}

.split-content {
  min-width: 0;
}

@media (min-width: 961px) {
  .split-layout {
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 56px;
  }

  .split-aside {
    position: sticky;
    top: 28px;
  }
}

.media-frame {
  position: relative;
  overflow: hidden;
  background-color: rgba(11, 29, 58, 0.06);
  border: 1px solid rgba(42, 58, 92, 0.14);
  border-radius: var(--radius-m);
}

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

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

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

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-cream);
  border: 1px solid rgba(42, 58, 92, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.tag--cyan {
  background: rgba(63, 224, 197, 0.1);
  border-color: var(--cyan);
  color: #0d7a68;
}

.tag--violet {
  background: rgba(122, 92, 255, 0.08);
  border-color: var(--violet);
  color: #5a3fc8;
}

@keyframes scanLine {
  0% {
    top: 12%;
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  48% {
    top: 86%;
    opacity: 0.9;
  }
  82% {
    top: 12%;
    opacity: 0.7;
  }
  100% {
    top: 12%;
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 224, 197, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(63, 224, 197, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 224, 197, 0);
  }
}
