:root {
  --midnight: #0a0a0f;
  --gold: #c9a961;
  --crimson: #7a1f2b;
  --purple: #9b4dca;
  --cloud: #d0d0d8;
  --ash: #6f6f7a;
  --panel: #1a1a22;
  --line-gold: #8a6d3b;
  --green: #2ecc71;
  --fog: #f5f5f5;
  --font-display: "Orbitron", "Bahnschrift", "Arial Narrow", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;
  --container-w: 1280px;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--cloud);
  background-color: var(--midnight);
  background-image:
    linear-gradient(rgba(138, 109, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138, 109, 59, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  padding: 0;
}

li {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

input, select, textarea {
  font: inherit;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #e3c57e;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--fog);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: rgba(201, 169, 97, 0.28);
  color: var(--fog);
}

:focus {
  outline: none;
}

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

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--gold);
  color: var(--midnight);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: top 0.3s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
  color: var(--midnight);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.86) 0%, rgba(10, 10, 15, 0.42) 100%);
  border-bottom: 1px solid rgba(138, 109, 59, 0.22);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header[data-scrolled] {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: var(--line-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--container-w);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 300;
  background: linear-gradient(90deg, var(--gold) 0%, var(--purple) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1c1c26 0%, #0a0a0f 100%);
  border: 1px solid var(--gold);
  box-shadow: 0 0 14px rgba(201, 169, 97, 0.22), inset 0 0 10px rgba(201, 169, 97, 0.08);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--gold);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.brand:hover .brand-mark {
  box-shadow: 0 0 22px rgba(201, 169, 97, 0.5);
  border-color: #e3c57e;
}

.brand:hover .brand-text {
  color: var(--gold);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cloud);
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--fog);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

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

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  flex-shrink: 0;
  font-size: 13px;
  padding: 10px 20px;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--line-gold);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 97, 0.08);
}

.nav-toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(135deg, #d9b96f 0%, var(--gold) 45%, #a8873d 100%);
  color: #0a0a0f;
  border-color: rgba(201, 169, 97, 0.6);
  box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #e8cd8a 0%, var(--gold) 60%, #c9a961 100%);
  box-shadow: 0 6px 24px rgba(201, 169, 97, 0.4);
  color: #0a0a0f;
}

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

.btn-ghost:hover {
  background: rgba(201, 169, 97, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.breadcrumbs {
  padding: calc(var(--header-h) + 24px) 24px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ash);
}

.breadcrumbs .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding-left: 0;
  padding-right: 0;
}

.breadcrumbs a {
  color: var(--gold);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.crumb-sep {
  color: var(--line-gold);
  margin: 0 2px;
}

.breadcrumbs [aria-current="page"] {
  color: var(--cloud);
}

.section {
  padding: 64px 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--purple);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog);
}

.section-title .accent {
  color: var(--gold);
}

.section-lead {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  color: var(--ash);
  line-height: 1.8;
}

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

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

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

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

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(138, 109, 59, 0.22);
  padding: 28px;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 169, 97, 0));
  opacity: 0.7;
}

.card-cut {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid;
}

.tag-gold {
  background: rgba(201, 169, 97, 0.1);
  border-color: rgba(201, 169, 97, 0.4);
  color: var(--gold);
}

.tag-purple {
  background: rgba(155, 77, 202, 0.1);
  border-color: rgba(155, 77, 202, 0.4);
  color: var(--purple);
}

.tag-crimson {
  background: rgba(122, 31, 43, 0.18);
  border-color: rgba(122, 31, 43, 0.6);
  color: #e08a96;
}

.media-ratio {
  position: relative;
  overflow: hidden;
  background: #12121a;
}

.media-ratio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 10, 15, 0.15) 0%, transparent 50%, rgba(122, 31, 43, 0.12) 100%);
  pointer-events: none;
}

.media-ratio::after {
  content: "";
  display: block;
}

.media-ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-ratio-16x9::after {
  padding-top: 56.25%;
}

.media-ratio-4x3::after {
  padding-top: 75%;
}

.media-ratio-1x1::after {
  padding-top: 100%;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal][data-revealed] {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  margin-top: 80px;
  background:
    linear-gradient(180deg, rgba(122, 31, 43, 0.08) 0%, transparent 140px),
    #0d0d14;
  border-top: 2px solid var(--line-gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--purple) 70%, transparent 100%);
  opacity: 0.6;
}

.footer-top {
  padding: 64px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 48px;
}

.footer-col,
.footer-brand-col,
.footer-nav-col,
.footer-contact-col {
  min-width: 0;
}

.footer-brand-col {
  max-width: 440px;
}

.brand-footer .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 18px;
}

.brand-footer .brand-text {
  font-size: 20px;
}

.footer-desc {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ash);
  line-height: 1.8;
}

.footer-trust {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 169, 97, 0.06);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cloud);
}

.footer-trust-badge {
  margin-right: 4px;
  font-family: var(--font-mono);
  color: var(--green);
}

.footer-title {
  position: relative;
  margin-bottom: 20px;
  padding-left: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--purple));
}

.footer-links,
.footer-contact {
  margin: 0;
  padding: 0;
}

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

.footer-links a {
  display: inline-block;
  font-size: 14px;
  color: var(--cloud);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.footer-contact-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--cloud);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(138, 109, 59, 0.28);
  background: rgba(0, 0, 0, 0.3);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ash);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ash);
  transition: color 0.2s ease;
}

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

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--gold);
  background: var(--panel);
  border: 1px solid var(--line-gold);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.back-top[data-visible] {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  background: var(--gold);
  color: var(--midnight);
}

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 920px) {
  .header-inner {
    gap: 12px;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    margin-left: 0;
    width: min(320px, 86vw);
    padding: calc(var(--header-h) + 18px) 22px 30px;
    background: rgba(12, 12, 18, 0.97);
    border-left: 1px solid var(--line-gold);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), visibility 0.4s;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid rgba(138, 109, 59, 0.16);
  }

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

  .nav-link::after {
    content: none;
  }

  .nav-link[aria-current="page"] {
    background: rgba(201, 169, 97, 0.08);
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 14px;
  }

  .brand-text {
    font-size: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-top {
    padding: 48px 0 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

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

  .card {
    padding: 22px;
  }

  .section {
    padding: 48px 0;
  }
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--midnight);
}

::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border: 2px solid var(--midnight);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--line-gold);
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
