:root {
  --primary: #FF4D00;
  --primary-dark: #CC3B00;
  --deep-blue: #0B1B3F;
  --gold: #F5C518;
  --wine: #8B1E3F;
  --indigo: #3E2A8C;
  --teal: #1F6F5C;
  --light-text: #F2F4F8;
  --light-bg: #E8ECF1;
  --warning: #FF8C00;
  --body-font: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --heading-font: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --mono-font: 'Roboto Mono', monospace;
  --space-1: 0.5rem;
  --space-2: 0.875rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3.5rem;
  --space-6: 5rem;
  --content-max: 1360px;
  --radius-btn: 6px;
  --radius-card: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  background: var(--deep-blue);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(62, 42, 140, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 90% 30%, rgba(255, 77, 0, 0.08) 0%, transparent 35%),
    linear-gradient(180deg, #08132e 0%, var(--deep-blue) 40%, #0b1639 100%);
  color: var(--light-text);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.8;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  line-height: 1.2;
  color: var(--light-text);
  margin: 0 0 var(--space-3);
}

p {
  margin: 0 0 var(--space-3);
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-3);
  z-index: 2000;
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

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

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--space-4);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
}

.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 77, 0, 0.3));
}

.brand-mark__core {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(255, 77, 0, 0.18), 0 0 20px rgba(255, 77, 0, 0.4);
  z-index: 2;
}

.brand-mark__cloud {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 77, 0, 0.55);
  z-index: 1;
}

.brand-mark__cloud--one {
  width: 38px;
  height: 16px;
  left: 4px;
  top: 10px;
  transform: rotate(-12deg);
  border-radius: 30px;
  background: rgba(255, 77, 0, 0.08);
}

.brand-mark__cloud--two {
  width: 16px;
  height: 38px;
  left: 14px;
  top: -2px;
  transform: rotate(35deg);
  border-radius: 30px;
  background: rgba(255, 196, 0, 0.05);
}

.brand-mark__label {
  font-family: var(--heading-font);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.side-track {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  z-index: 200;
  background: rgba(10, 22, 52, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 6rem var(--space-4) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.35s var(--ease);
}

.side-track__head {
  margin-bottom: var(--space-5);
}

.brand-mini {
  font-family: var(--heading-font);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  display: block;
  transform: rotate(-4deg);
  background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-mini__accent {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  font-style: italic;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(242, 244, 248, 0.75);
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border-left: 4px solid transparent;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: var(--light-text);
  background: rgba(255, 77, 0, 0.08);
  border-left-color: var(--primary);
  transform: translateX(6px);
}

.nav-link.active,
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 77, 0, 0.13);
  border-left-color: var(--primary);
  box-shadow: inset 0 0 30px rgba(255, 77, 0, 0.05);
}

.side-track__status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 30px;
  margin-top: var(--space-4);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.55);
  animation: pulse-dot 2.6s infinite;
  display: inline-block;
}

.live-text {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(242, 244, 248, 0.85);
  font-family: var(--mono-font);
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 77, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 0, 0);
  }
}

.nav-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 400;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: rgba(255, 77, 0, 0.92);
  border: none;
  border-radius: 12px;
  padding: 0.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle:hover {
  transform: scale(1.06);
  background: var(--primary-dark);
}

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

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 12, 30, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.side-track[data-open="true"] {
  transform: translateX(0);
}

.side-track[data-open="true"] + .nav-overlay,
.nav-overlay[data-visible="true"] {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  position: relative;
  margin-top: var(--space-6);
  background:
    linear-gradient(180deg, rgba(9, 20, 48, 0) 0%, rgba(9, 20, 48, 0.9) 30%),
    #091430;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: var(--space-5);
  overflow: hidden;
}

.footer-glass {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(255, 77, 0, 0.07) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-4);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1.2fr;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
}

.footer-brand__mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-3);
}

.footer-slogan {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2);
  background: linear-gradient(135deg, #fff 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-trust {
  font-size: 0.9rem;
  color: rgba(242, 244, 248, 0.66);
  line-height: 1.8;
  border-left: 3px solid rgba(255, 77, 0, 0.6);
  padding-left: 1rem;
  max-width: 42ch;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 244, 248, 0.85);
  margin-bottom: var(--space-3);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 77, 0, 0.55);
  display: inline-block;
}

.footer-links__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(242, 244, 248, 0.78);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-contact__item {
  font-size: 0.95rem;
  color: rgba(242, 244, 248, 0.78);
  margin-bottom: 0.65rem;
}

.footer-bottom {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.copyright {
  color: rgba(242, 244, 248, 0.55);
  font-size: 0.85rem;
  font-family: var(--mono-font);
  letter-spacing: 0.02em;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 77, 0, 0.14);
  border: 1px solid rgba(255, 77, 0, 0.35);
  padding: 0.3rem 0.9rem;
  border-radius: 30px;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  color: var(--light-text);
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 500;
  background: transparent;
  pointer-events: none;
}

.reading-progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--gold) 100%);
  box-shadow: 0 0 12px rgba(255, 77, 0, 0.4);
  transition: width 0.08s linear;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

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

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 77, 0, 0.28);
}

.btn--primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 30px rgba(255, 77, 0, 0.38);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(242, 244, 248, 0.35);
  color: var(--light-text);
}

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

.btn--gold {
  background: var(--gold);
  color: #1A1400;
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.25);
}

.btn--gold:hover {
  background: #ffdd3c;
  color: #1A1400;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.content-area {
  padding: var(--space-5) var(--space-4);
  margin-left: 260px;
}

.section {
  padding: var(--space-5) 0;
}

.section-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.section-title--italic {
  font-style: italic;
  color: var(--primary);
  display: inline-block;
  transform: rotate(-2deg);
}

.section-subtitle {
  font-size: 1.2rem;
  color: rgba(242, 244, 248, 0.7);
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: rgba(242, 244, 248, 0.6);
  margin-bottom: var(--space-4);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumb__link {
  color: inherit;
  transition: color 0.2s;
}

.breadcrumb__link:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 77, 0, 0.18) 0%, transparent 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.media-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 15%, rgba(245, 197, 24, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 25% 80%, rgba(255, 77, 0, 0.18) 0%, transparent 45%),
    linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05) 45%, transparent 65%);
  pointer-events: none;
}

.grid {
  display: grid;
  gap: var(--space-4);
}

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

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

.grid--hero {
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 1024px) {
  .brand-anchor {
    padding: var(--space-3);
  }

  .brand-mark__label {
    font-size: 1.1rem;
  }

  .side-track {
    width: 220px;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }

  .content-area {
    margin-left: 220px;
  }

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

@media (max-width: 768px) {
  .brand-anchor {
    top: auto;
    bottom: auto;
    padding: 1rem var(--space-4);
    left: 0;
    right: auto;
    background: rgba(9, 19, 45, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    width: 100%;
    z-index: 300;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .side-track {
    transform: translateX(-105%);
    width: min(300px, 84vw);
    padding-top: 5rem;
    background: rgba(8, 18, 42, 0.97);
  }

  .side-track[data-open="true"] {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .content-area {
    margin-left: 0;
    padding: var(--space-5) var(--space-3) var(--space-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .grid--hero {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark__cloud--one {
    width: 30px;
    height: 12px;
    left: 4px;
    top: 9px;
  }

  .brand-mark__cloud--two {
    width: 13px;
    height: 30px;
    left: 13px;
    top: 2px;
  }

  .brand-mark__core {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2.4rem;
  }

  .container,
  .content-area {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

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

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

  html {
    scroll-behavior: auto;
  }
}
