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

:root {
  --green-deep: #0B3D2E;
  --gold: #C9A227;
  --gold-bright: #E0B83C;
  --dark: #0A0F0D;
  --wine: #6E1423;
  --indigo: #2D1B4E;
  --light: #F0EFE9;
  --red: #E84A3A;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --border-gold: rgba(201, 162, 39, 0.45);
  --border-light: rgba(240, 239, 233, 0.14);
  --font-headline: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
  --container-max: 1280px;
  --radius: 10px;
  --transition: all 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  background-image:
    radial-gradient(ellipse at 18% 0%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
    linear-gradient(rgba(201, 162, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.02) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headline);
  font-weight: 800;
  line-height: 1.3;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 0;
}

.container,
.footer-bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.skip-link {
  position: absolute;
  top: -52px;
  left: 24px;
  background: var(--gold);
  color: var(--dark);
  padding: 10px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 8px 8px;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 61, 46, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 32px;
}

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

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--dark);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: skewX(-8deg);
  border-radius: 4px 10px 4px 10px;
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.35);
}

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

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--light);
}

.brand-tagline {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

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

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(240, 239, 233, 0.85);
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px 9px;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  margin-left: auto;
  line-height: 0;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: all 0.25s ease;
}

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

.header-progress {
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to right, var(--gold), var(--gold-bright));
  z-index: 5;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.site-footer {
  position: relative;
  background: var(--green-deep);
  margin-top: 80px;
  border-top: 1px solid var(--border-gold);
}

.footer-ribbon {
  height: 8px;
  width: 110%;
  margin-left: -5%;
  background: linear-gradient(105deg, var(--wine) 0%, var(--indigo) 40%, var(--gold) 100%);
  transform: skewX(-8deg);
  transform-origin: left top;
}

.footer-main {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding: 60px 24px 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand-footer .brand-badge {
  width: 44px;
  height: 44px;
  font-size: 26px;
}

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

.footer-trust {
  font-size: 14px;
  color: rgba(240, 239, 233, 0.65);
  line-height: 1.7;
  max-width: 320px;
}

.footer-column {
  min-width: 0;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 0.06em;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--gold);
  transform: skewX(-20deg);
}

.footer-links li + li,
.footer-contact li + li {
  margin-top: 10px;
}

.footer-links a {
  color: rgba(240, 239, 233, 0.75);
  font-size: 14px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

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

.footer-contact {
  font-size: 14px;
  color: rgba(240, 239, 233, 0.75);
  line-height: 1.7;
  word-break: break-all;
}

.footer-bottom {
  border-top: 1px solid var(--border-gold);
  padding: 16px 0;
  background: rgba(10, 15, 13, 0.5);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: rgba(240, 239, 233, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 0 10px 0 10px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  line-height: 1;
}

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.3);
}

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

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: var(--gold);
}

.card {
  background: var(--glass);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  border-color: var(--border-gold);
}

.section {
  padding: 80px 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.75;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--light);
}

.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 56px;
  position: relative;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--light);
}

.page-intro {
  font-size: 1.05rem;
  color: rgba(240, 239, 233, 0.72);
  max-width: 680px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: rgba(240, 239, 233, 0.65);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--gold);
  transition: color 0.2s ease;
}

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

.breadcrumb-separator {
  color: rgba(240, 239, 233, 0.35);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 992px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(11, 61, 46, 0.98), rgba(10, 15, 13, 0.98));
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 24px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
    margin-left: 0;
  }

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

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

  .nav-link {
    padding: 16px 12px;
    border-bottom: 1px solid rgba(240, 239, 233, 0.08);
    font-size: 16px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .header-inner {
    gap: 16px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 24px 32px;
  }

  .section {
    padding: 56px 0;
  }

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

  .page-header {
    padding: 48px 0 32px;
    margin-bottom: 40px;
  }

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

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 20px 28px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .skip-link {
    left: 12px;
  }

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

  .brand-tagline {
    font-size: 10px;
  }

  .section-number {
    font-size: 2rem;
  }

  .section-heading {
    font-size: 1.4rem;
  }
}

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

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

  .header-progress {
    transition: none;
  }

  .nav-toggle-line {
    transition: none;
  }
}
