:root {
  --color-bg: #F5F7FA;
  --color-night: #0B1B3A;
  --color-navy: #0F2A5F;
  --color-engine: #144B8F;
  --color-gold: #F2B705;
  --color-orange: #FF7A00;
  --color-cyan: #00E5FF;
  --color-violet: #7C5CBF;
  --color-ink: #12213B;
  --color-slate: #3E506E;
  --color-line: rgba(15, 42, 95, .14);
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 24px 60px rgba(11, 27, 58, .12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.75;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(15, 42, 95, .10) 1px, transparent 1.5px),
    linear-gradient(rgba(15, 42, 95, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 95, .045) 1px, transparent 1px);
  background-size: 28px 28px, 96px 96px, 96px 96px;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--color-night);
  font-family: var(--font-sans);
  line-height: 1.2;
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--color-engine);
}

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

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

::selection {
  background: var(--color-gold);
  color: var(--color-night);
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 8px rgba(242, 183, 5, .18);
}

#main-content {
  position: relative;
  z-index: 1;
  scroll-margin-top: 140px;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 48px);
}

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

.section-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

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

.section-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.02em;
}

.section-desc {
  max-width: 66ch;
  margin-top: 14px;
  color: var(--color-slate);
  font-size: 17px;
}

.page-head {
  max-width: 840px;
  padding-block: clamp(40px, 7vw, 72px) 8px;
}

.page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.page-intro {
  margin-top: 16px;
  color: var(--color-slate);
  font-size: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  color: var(--color-engine);
  font-family: var(--font-mono);
  font-size: 13px;
}

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

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(15, 42, 95, .28);
}

.breadcrumbs [aria-current="page"] {
  color: var(--color-orange);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  box-shadow: 0 10px 28px rgba(255, 122, 0, .28);
}

.btn--primary:hover {
  background: #E86F00;
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(15, 42, 95, .28);
  color: var(--color-navy);
}

.btn--ghost:hover {
  background: rgba(20, 75, 143, .06);
  border-color: var(--color-engine);
  color: var(--color-navy);
}

.btn--header {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
}

.grid {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.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 {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(11, 27, 58, .16);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(15, 42, 95, .08), rgba(20, 75, 143, .02));
}

.media-frame::before {
  content: "";
  display: block;
  padding-top: 62.5%;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 2200;
  padding: 12px 20px;
  border-radius: 0 0 10px 10px;
  background: var(--color-night);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 0;
  color: #fff;
  outline: 3px solid var(--color-gold);
  outline-offset: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-line);
  background: rgba(245, 247, 250, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.site-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange), var(--color-cyan));
  box-shadow: 0 0 12px rgba(255, 122, 0, .5);
}

.header-inner {
  position: relative;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-navy);
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, .65), 0 8px 20px rgba(11, 27, 58, .22);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(0, 229, 255, .55);
  border-radius: 50%;
}

.brand-mark span {
  position: relative;
  z-index: 1;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  color: var(--color-night);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-tagline {
  color: var(--color-engine);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.header-coord {
  justify-self: center;
  color: var(--color-engine);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.header-coord::before {
  content: "◎ ";
  color: var(--color-gold);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  justify-self: end;
}

.main-nav-wrap {
  border-top: 1px solid var(--color-line);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  display: block;
  padding: 14px 20px 16px;
  color: var(--color-navy);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: color .2s ease, background-color .2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-orange));
  opacity: 0;
  transition: left .25s ease, right .25s ease, opacity .25s ease;
}

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

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  left: 18%;
  right: 18%;
  opacity: 1;
}

.nav-link[aria-current="page"] {
  background: linear-gradient(180deg, transparent 60%, rgba(242, 183, 5, .18) 60%);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  background: var(--color-night);
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 14px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 28px;
}

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

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

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

.site-footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--color-night);
  color: rgba(245, 247, 250, .8);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-cyan) 18%, var(--color-gold) 60%, var(--color-orange) 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    radial-gradient(circle, rgba(242, 183, 5, .14) 1px, transparent 1.4px),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 28px 28px, 96px 96px, 96px 96px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 80px) clamp(16px, 4vw, 48px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.footer-brand:hover {
  color: #fff;
}

.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  box-shadow: inset 0 0 0 1px rgba(242, 183, 5, .7);
}

.footer-brand-name {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .04em;
}

.footer-desc {
  max-width: 42ch;
  margin-top: 16px;
  color: #B8C3D6;
  font-size: 15px;
}

.footer-trust {
  max-width: 46ch;
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--color-gold);
  background: rgba(255, 255, 255, .04);
  color: #9FB0C7;
  font-size: 13px;
  line-height: 1.65;
}

.footer-nav-title {
  margin-bottom: 16px;
  color: var(--color-cyan);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-nav-title::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 8px;
  background: var(--color-gold);
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: #C7D1E2;
  font-size: 14px;
  transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
  content: "→";
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: transform .2s ease;
}

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

.footer-contact {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-contact p {
  color: #C7D1E2;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact p strong {
  margin-right: 6px;
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #91A2BB;
  font-size: 13px;
}

.footer-icp {
  color: #71839E;
}

.back-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(242, 183, 5, .5);
  border-radius: 50%;
  background: rgba(242, 183, 5, .08);
  color: var(--color-gold);
  font-family: var(--font-mono);
  font-size: 16px;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.back-top:hover {
  background: var(--color-gold);
  color: var(--color-night);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(242, 183, 5, .3);
}

@media (max-width: 1080px) {
  .header-top {
    grid-template-columns: 1fr auto;
  }

  .header-coord {
    display: none;
  }

  .btn--header {
    display: none;
  }

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

@media (max-width: 899px) {
  .header-top {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 8px clamp(16px, 4vw, 48px) 24px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
    background: rgba(245, 247, 250, .98);
    box-shadow: 0 24px 50px rgba(11, 27, 58, .15);
  }

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

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

  .nav-link {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(15, 42, 95, .08);
  }

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

  .nav-link[aria-current="page"] {
    background: linear-gradient(90deg, rgba(242, 183, 5, .20), transparent 80%);
  }

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

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

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

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    display: none;
  }

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

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

  .back-top {
    margin-left: 0;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .site-header,
  .main-nav-wrap,
  .card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .btn:hover,
  .card:hover,
  .back-top:hover {
    transform: none;
  }
}
