:root {
  --c-primary: #0A1F3C;
  --c-primary-deep: #071830;
  --c-gold: #D4AF37;
  --c-gold-light: #E6C15C;
  --c-red: #8B0000;
  --c-red-deep: #5C0000;
  --c-paper: #F5F0E6;
  --c-paper-deep: #EAE2D2;
  --c-ink: #1A1A1A;
  --c-gray: #555555;
  --c-blue-light: #E0E8F5;
  --c-white: #FFFFFF;
  --font-title: "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --header-w: 272px;
  --radius: 6px;
  --shadow: 0 8px 24px rgba(10, 31, 60, 0.12);
  --shadow-strong: 0 14px 40px rgba(10, 31, 60, 0.22);
}

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

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

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-primary);
  margin-bottom: 0.6em;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }

p { margin-bottom: 1em; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 72px 24px;
  position: relative;
}

.section--alt {
  background: var(--c-white);
}

.section--dark {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--c-gold);
}

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

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

.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-gray);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--c-gray);
  font-size: 15px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--gold {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-primary-deep);
  box-shadow: 4px 4px 0 var(--c-red-deep);
}

.btn--gold:hover {
  background: var(--c-gold-light);
  border-color: var(--c-gold-light);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--c-red-deep);
}

.btn--outline {
  background: transparent;
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.panel {
  position: relative;
  background: var(--c-white);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.panel::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-top: 3px solid var(--c-gold);
  border-left: 3px solid var(--c-gold);
  pointer-events: none;
}

.panel--dark {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.85);
  border-color: var(--c-primary);
}

.panel--dark h2,
.panel--dark h3 {
  color: var(--c-gold);
}

.frame {
  position: relative;
  padding: 32px;
  background: var(--c-white);
  border: 3px solid var(--c-primary);
  box-shadow: 8px 8px 0 var(--c-primary);
}

.frame::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 48px;
  height: 48px;
  border-top: 3px solid var(--c-gold);
  border-left: 3px solid var(--c-gold);
  pointer-events: none;
}

.notice-card {
  background: var(--c-blue-light);
  border-left: 4px solid var(--c-gold);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--c-primary);
  border-radius: 0 4px 4px 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--c-blue-light);
  color: var(--c-primary);
  border-left: 3px solid var(--c-gold);
}

.tag--red {
  background: var(--c-red);
  color: var(--c-white);
  border-left-color: var(--c-red-deep);
}

.tag--dark {
  background: var(--c-primary);
  color: var(--c-gold);
}

.divider {
  height: 2px;
  border: none;
  background: var(--c-primary);
  position: relative;
  margin: 24px 0;
}

.divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 60px;
  height: 8px;
  background: var(--c-gold);
}

.tick {
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-primary) 0 2px,
    transparent 2px 12px
  );
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--c-primary);
  text-decoration: none;
}

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

.breadcrumbs__sep {
  color: var(--c-gray);
}

.breadcrumbs__current {
  color: var(--c-gray);
}

.page-head {
  padding: 48px 0 40px;
  border-bottom: 2px solid var(--c-primary);
  position: relative;
  margin-bottom: 48px;
}

.page-head::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 80px;
  height: 4px;
  background: var(--c-gold);
}

.page-head__title {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 8px;
}

.page-head__lead {
  font-size: 17px;
  color: var(--c-gray);
}

.img-frame {
  position: relative;
  display: block;
  background: var(--c-blue-light);
  border: 2px solid var(--c-primary);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}

.img-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, var(--c-primary) 0%, transparent 100%);
  opacity: 0.06;
  pointer-events: none;
}

.img-frame::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 48px;
  height: 48px;
  border-right: 4px solid var(--c-gold);
  border-top: 4px solid var(--c-gold);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--header-w);
  height: 100vh;
  background: var(--c-primary);
  z-index: 100;
  border-right: 3px solid var(--c-gold);
  flex-direction: column;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--c-gold);
  color: var(--c-primary-deep);
  padding: 10px 20px;
  font-weight: 700;
  border-radius: var(--radius);
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 16px;
}

.header__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 20px 0;
}

.header__top {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand__emblem {
  position: relative;
  width: 42px;
  height: 42px;
  border: 3px solid var(--c-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.brand__emblem::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  background: var(--c-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.brand__emblem::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 3px;
  background: var(--c-gold);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: var(--c-white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin-top: 4px;
}

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

.lang-indicator {
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-title);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
}

.lang-indicator__divider {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 2px;
}

.lang-indicator__disabled {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--c-gold);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-gold);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav {
  flex: 1;
}

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

.nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  border-left: 3px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 15px;
}

.nav__link:hover {
  color: var(--c-white);
  background: rgba(212, 175, 55, 0.08);
  border-left-color: var(--c-gold);
}

.nav__link[aria-current="page"] {
  color: var(--c-white);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.18), transparent 70%);
  border-left-color: var(--c-gold);
}

.nav__index {
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-gold);
  letter-spacing: 0.1em;
  min-width: 22px;
}

.nav__label {
  line-height: 1.2;
}

.nav__arrow {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.nav__link:hover .nav__arrow,
.nav__link[aria-current="page"] .nav__arrow {
  opacity: 0.7;
  transform: rotate(45deg) translate(-2px, 2px);
}

.nav-close {
  display: none;
  width: 36px;
  height: 36px;
  border: 2px solid var(--c-gold);
  border-radius: 4px;
  position: relative;
}

.nav-close__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--c-gold);
}

.nav-close__bar:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close__bar:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.header__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 4px 24px;
  text-align: left;
}

.header__foot-line {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.header__foot-phone {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  color: var(--c-gold);
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.scroll-progress__bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-gold), var(--c-gold-light));
  transition: width 0.1s linear;
}

.site-footer {
  background: var(--c-primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  border-top: 4px solid var(--c-gold);
  position: relative;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}

.brand--footer .brand__name {
  font-size: 18px;
}

.brand--footer .brand__emblem {
  width: 36px;
  height: 36px;
}

.footer__slogan {
  margin-top: 16px;
  font-size: 15px;
  color: var(--c-gold);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer__trust {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  border-left: 3px solid var(--c-gold);
  padding-left: 14px;
}

.footer__trust-mark {
  display: inline-block;
  background: var(--c-red);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  margin-right: 4px;
  border-radius: 3px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.footer__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.footer__list a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer__meta-label {
  display: inline-block;
  min-width: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.footer__divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--c-gold), rgba(212, 175, 55, 0.2) 30%, transparent 80%);
  margin: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__copy,
.footer__icp,
.footer__status {
  margin: 0;
}

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

.footer__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ECC71;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

@media (min-width: 1025px) {
  #main-content,
  .site-footer {
    margin-left: var(--header-w);
  }
}

@media (max-width: 1024px) {
  #main-content,
  .site-footer {
    margin-left: 0;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 2px solid var(--c-gold);
  }

  .header__inner {
    padding: 0;
  }

  .header__top {
    margin-bottom: 0;
    padding: 12px 20px;
    min-height: 56px;
  }

  .header__actions {
    flex-direction: row-reverse;
    gap: 10px;
  }

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

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100vh;
    background: var(--c-primary);
    padding: 80px 24px 32px;
    z-index: 120;
    transform: translateX(-110%);
    transition: transform 0.35s ease, visibility 0.35s ease;
    visibility: hidden;
    overflow-y: auto;
  }

  .site-nav::before {
    content: 'MENU';
    position: absolute;
    top: 26px;
    left: 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--c-gold);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
  }

  .header__foot {
    display: none;
  }

  .scroll-progress {
    position: relative;
    width: 100%;
  }

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

@media (max-width: 640px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  h3 { font-size: 20px; }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 48px 18px;
  }

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

  .panel,
  .frame {
    padding: 24px;
  }

  .page-head__title {
    font-size: 2rem;
  }

  .footer__inner {
    padding: 40px 18px 20px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 32px;
  }

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

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