:root {
  --deep-sea-blue: #002845;
  --vibrant-orange: #FF5722;
  --gold-highlight: #D4AF37;
  --dark-bg: #0D1117;
  --light-bg: #F5F5F5;
  --glass-white: rgba(255, 255, 255, 0.15);
  --text-primary: #EAEAEA;
  --text-secondary: #B0B0B0;
  --text-dark: #1A1A1A;
  --font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-caption: monospace;
  --header-height: 120px;
  --nav-height: 44px;
  --container-max: 1200px;
  --border-radius: 6px;
  --transition: 0.25s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: normal;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--dark-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--vibrant-orange);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

ul, ol {
  list-style: none;
}

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

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

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  background: var(--vibrant-orange);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-weight: bold;
  font-size: 0.9rem;
  transition: top 0.3s ease;
}

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

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--vibrant-orange);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .progress-bar {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9000;
  background: rgba(0, 40, 69, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-white);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.brand {
  margin-bottom: 0.3rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-note {
  font-family: var(--font-caption);
  font-size: 0.7rem;
  font-weight: normal;
  color: var(--gold-highlight);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.1em;
  opacity: 0.85;
  line-height: 1.2;
  translate: 0 -2px;
}

.main-nav {
  width: 100%;
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 1.8rem;
}

.nav-list a {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.3rem 0 0.25rem 0;
  letter-spacing: 0.04em;
  position: relative;
  transition: color var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  color: var(--text-primary);
}

.nav-list a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--gold-highlight);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  background: var(--glass-white);
  border-radius: var(--border-radius);
  transition: background var(--transition);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

.site-footer {
  background: var(--deep-sea-blue);
  border-top: 1px solid var(--glass-white);
  padding: 2.5rem 1.5rem 1.8rem;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.3rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold-highlight);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-icp {
  color: var(--text-secondary);
}

.footer-copyright {
  color: var(--text-secondary);
}

.footer-contact {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.footer-trust {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--glass-white);
  line-height: 1.5;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--border-radius);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.btn:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--vibrant-orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
  background: #e64a1a;
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.4);
}

.card {
  background: var(--deep-sea-blue);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-glass {
  background: var(--glass-white);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

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

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

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

.gold-line {
  height: 1px;
  background: var(--gold-highlight);
  width: 100%;
  opacity: 0.4;
  margin: 1.5rem 0;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: step-counter;
}

.step-list-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  counter-increment: step-counter;
}

.step-marker {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--vibrant-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.step-marker::before {
  content: counter(step-counter);
}

.step-content {
  flex: 1;
  padding-top: 0.2rem;
}

@media (max-width: 1023px) {
  :root {
    --header-height: 100px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .nav-list {
    gap: 0.2rem 1.2rem;
  }

  .nav-list a {
    font-size: 0.88rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .footer-trust {
    grid-column: 1 / -1;
  }

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

  .grid-asymmetric {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.6rem 1rem;
    align-items: center;
  }

  .brand {
    margin-bottom: 0;
    margin-right: auto;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-note {
    font-size: 0.6rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
    opacity: 0;
    padding: 0;
  }

  .main-nav[data-open] {
    max-height: 400px;
    opacity: 1;
    padding: 0.8rem 0 0.4rem 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .nav-list a {
    font-size: 0.95rem;
    padding: 0.5rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--glass-white);
  }

  .nav-list a[aria-current="page"] {
    border-bottom-color: var(--gold-highlight);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

  .nav-toggle[aria-expanded="true"] .toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .site-footer {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }

  .footer-info {
    align-items: center;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

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

  .step-list {
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .card:hover {
    transform: none;
  }

  .main-nav {
    transition: none;
  }
}

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