:root {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-tertiary: #1A202C;
  --accent-gold: #D4AF37;
  --accent-cyan: #00E5FF;
  --text-primary: #F9FAFB;
  --text-secondary: #9CA3AF;
  --border: #2D3748;
  --success: #34D399;
  --warning: #F59E0B;
  --font-heading: "Archivo Black", "Noto Sans CJK SC Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  --container: 1300px;
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

body {
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-wrap: balance;
}

a {
  color: var(--accent-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

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

::selection {
  background: rgba(212, 175, 55, 0.35);
  color: var(--text-primary);
}

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

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

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

#main-content {
  display: block;
  min-height: 70vh;
  outline: none;
}

.skip-link {
  position: fixed;
  top: -64px;
  left: 16px;
  z-index: 400;
  padding: 12px 20px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  box-shadow: var(--shadow-md);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 0;
  color: var(--bg-primary);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
  z-index: 5;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.88) 0%, rgba(11, 15, 25, 0) 100%);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header[data-scrolled="true"] {
  background: var(--bg-primary);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-cyan));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--accent-gold) 0%, #fff 45%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  color: var(--text-secondary);
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  position: static;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

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

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

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

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-cta {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(120deg, var(--accent-gold), #E8C766);
  color: var(--bg-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 0 rgba(212, 175, 55, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
  filter: brightness(1.06);
  color: var(--bg-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 24, 39, 0.6);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

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

.nav-toggle[aria-expanded="true"] {
  background: rgba(212, 175, 55, 0.12);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.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-footer {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 120% at 85% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
    linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-wordmark {
  position: absolute;
  top: 12px;
  right: -6px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(140px, 22vw, 300px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.08);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  background: linear-gradient(90deg, var(--accent-gold), #fff 55%, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-desc {
  margin: 16px 0 12px;
  color: var(--text-secondary);
  max-width: 40ch;
  font-size: 0.95rem;
}

.trust-statement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--success);
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.08), transparent 80%);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.trust-statement::before {
  content: "▲";
  color: var(--success);
  font-size: 0.7rem;
  margin-top: 2px;
}

.footer-heading {
  margin: 0 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--accent-gold);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
}

.footer-links ul {
  display: grid;
  gap: 2px;
}

.footer-links a {
  display: inline-block;
  padding: 6px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  transform: translateX(4px);
}

.footer-contact p {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  word-break: break-all;
}

.footer-contact p::before {
  content: "◆";
  color: var(--accent-cyan);
  font-size: 0.55rem;
  flex: 0 0 auto;
}

.footer-contact p.contact-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  margin-top: 56px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 229, 255, 0.1)), var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.back-top:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-gold), #E8C766);
  color: var(--bg-primary);
  box-shadow: 0 2px 0 rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.3);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.08);
  transform: translateY(-2px);
  color: var(--accent-cyan);
}

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

.btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--accent-gold);
  font-weight: 700;
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

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

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-cyan));
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
}

.section-subtitle {
  margin: 14px 0 0;
  color: var(--text-secondary);
  max-width: 60ch;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.media-frame::before {
  content: "";
  display: block;
}

.media-frame-aspect-21x9::before {
  padding-top: 42.86%;
}

.media-frame-aspect-16x9::before {
  padding-top: 56.25%;
}

.media-frame-aspect-4x3::before {
  padding-top: 75%;
}

.media-frame-aspect-1x1::before {
  padding-top: 100%;
}

.media-frame > img,
.media-frame > svg,
.media-frame > .media-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-frame > img {
  object-fit: cover;
}

.media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.06) 0 14px, transparent 14px 28px),
    linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

.media-coordinate {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 10px;
  background: rgba(11, 15, 25, 0.72);
  border-left: 2px solid var(--accent-cyan);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  background: rgba(17, 24, 39, 0.6);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 56px 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

@media (max-width: 1023px) {
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 15, 25, 0.98));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    padding: 12px 24px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }

  .site-nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

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

  .nav-link {
    display: block;
    padding: 15px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(45, 55, 72, 0.55);
  }

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

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

@media (max-width: 899px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 479px) {
  .brand-tagline {
    display: none;
  }
}

@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;
    scroll-behavior: auto !important;
  }

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