:root {
  --color-bg: #0A1A2F;
  --color-bg-deep: #0B0F19;
  --color-gold: #D4AF37;
  --color-orange: #FF6B35;
  --color-light: #F5F7FA;
  --color-muted: #B0B8C8;
  --color-green: #00E5A0;
  --color-purple: #A855F7;
  --color-red: #FF3D3D;
  --color-border: rgba(212, 175, 55, 0.22);
  --font-head: "Archivo Black", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --header-width: 280px;
  --header-height: 68px;
  --content-max: 1280px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.38);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-light);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

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

#main-content {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

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

  #main-content {
    scroll-margin-top: 0;
  }
}

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--header-width) + 12px);
  z-index: 400;
  background: var(--color-gold);
  color: var(--color-bg);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-250%);
  transition: transform 0.25s var(--ease-out);
}

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

@media (max-width: 1023.98px) {
  .skip-link {
    left: 12px;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange), var(--color-green));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 300;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .scroll-progress {
    left: var(--header-width);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(10, 26, 47, 0.96) 100%);
  border-bottom: 1px solid var(--color-border);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-orange) 45%, var(--color-purple) 100%);
  clip-path: polygon(0 0, 72% 0, 100% 100%, 18% 100%);
  opacity: 0.8;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0 16px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--color-gold), #f5d872);
  color: var(--color-bg);
  font-weight: 900;
  font-size: 18px;
  clip-path: polygon(22% 0, 100% 0, 78% 100%, 0 100%);
}

.brand-text {
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--color-gold);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  z-index: 90;
  width: min(86vw, 340px);
  background: var(--color-bg-deep);
  border-right: 1px solid var(--color-border);
  padding: 32px 24px;
  transform: translateX(-100%);
  transition: transform 0.35s var(--ease-out);
  overflow-y: auto;
}

.site-nav[data-open] {
  transform: translateX(0);
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-link {
  display: block;
  position: relative;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transform: translateY(-50%);
  transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover::before {
  width: 22px;
}

.nav-link[aria-current="page"] {
  color: var(--color-gold);
  font-weight: 700;
  border-left-color: var(--color-orange);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent);
}

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

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.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);
}

@media (max-width: 420px) {
  .brand-text {
    font-size: 15px;
  }

  .btn-small {
    padding: 6px 8px;
    font-size: 13px;
  }

  .header-inner {
    gap: 8px;
    padding: 0 12px;
  }
}

@media (min-width: 1024px) {
  .site-header {
    width: var(--header-width);
    height: 100vh;
    border-bottom: 0;
    border-right: 1px solid var(--color-border);
    background: linear-gradient(180deg, var(--color-bg-deep) 0%, var(--color-bg) 100%);
  }

  .site-header::after {
    height: 5px;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 32px 20px;
  }

  .site-nav {
    position: static;
    transform: none;
    width: auto;
    background: transparent;
    border: 0;
    padding: 0;
    margin-top: 48px;
    box-shadow: none;
    overflow: visible;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    margin: auto 0 0;
  }

  .header-actions .btn {
    width: 100%;
  }

  .nav-toggle {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--color-light);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s, color 0.25s, border-color 0.25s;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-bg);
  border-color: var(--color-orange);
}

.btn-primary:hover {
  background: #ff824e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 107, 53, 0.32);
}

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

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.08);
  transform: translateY(-2px);
}

.btn-small {
  padding: 7px 12px;
  font-size: 14px;
}

.site-footer {
  position: relative;
  background: var(--color-bg-deep);
  border-top: 1px solid rgba(168, 85, 247, 0.35);
  padding: 56px clamp(20px, 4vw, 48px) 22px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  width: 38%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-purple), var(--color-gold));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 32% 100%);
}

.footer-cols {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-brand .brand-link {
  margin-bottom: 16px;
}

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

.footer-trust {
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 32ch;
  margin-top: 14px;
}

.footer-title {
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.footer-links ul,
.footer-contact ul,
.footer-legal ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a,
.footer-legal a {
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.25s, padding-left 0.25s;
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact li {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.8;
}

.footer-bottom {
  max-width: var(--content-max);
  margin: 40px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(176, 184, 200, 0.15);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

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

.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 150;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  color: var(--color-gold);
  background: var(--color-bg-deep);
  border: 1px solid var(--color-gold);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

@media (max-width: 767.98px) {
  .to-top {
    bottom: 18px;
    right: 18px;
  }
}

.container {
  width: min(100% - clamp(24px, 6vw, 72px), var(--content-max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(56px, 9vw, 110px);
}

.page-header {
  padding: 48px 0 28px;
}

.page-header .page-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  color: var(--color-light);
  margin: 10px 0 0;
}

.page-header .page-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: rgba(176, 184, 200, 0.5);
}

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

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

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

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: linear-gradient(135deg, rgba(10, 26, 47, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-left: 2px solid var(--color-gold);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
  border-left-color: var(--color-orange);
  box-shadow: var(--shadow-card);
}

.card-title {
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--color-light);
}

.card-text {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-orange);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.45);
  border-radius: 2px;
}

.data-highlight {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-green);
  font-variant-numeric: tabular-nums;
}

.image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--color-bg-deep), var(--color-bg));
  border: 1px solid rgba(212, 175, 55, 0.14);
  clip-path: polygon(0 5%, 100% 0, 96% 100%, 4% 95%);
}

.image-frame-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), filter 0.6s;
  filter: saturate(0.8) contrast(1.05);
}

.image-frame:hover .image-frame-media {
  transform: scale(1.03);
  filter: saturate(1);
}

.image-frame-caption {
  padding: 12px 4px 0;
  font-size: 13px;
  color: var(--color-muted);
}

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

  .site-nav,
  .to-top,
  .scroll-progress {
    transition: none;
  }
}
