@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
  font-size: 16px;
  background: #000;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: 'Lexend', 'Source Sans 3', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  color: #00ff80;
  text-decoration: none;
}

a:hover, a:focus {
  color: #fff;
  outline: 2px solid #00ff80;
  outline-offset: 2px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Lexend', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: #00ff80;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper {
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   BOTTOM BAR (fixed nav)
   ============================================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: #000;
  border-top: 3px solid #00ff80;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  gap: 12px;
}

.bottom-bar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #00ff80;
  flex-shrink: 0;
  outline: none;
}

.bottom-bar-logo:hover,
.bottom-bar-logo:focus {
  background: #00ff80;
  outline: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.brand-text-icon {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #00ff80;
  line-height: 1;
}

.bottom-bar-logo:hover .brand-text-icon,
.bottom-bar-logo:focus .brand-text-icon {
  color: #000;
}

.bottom-bar-brand {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: #00ff80;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 1;
}

.hamburger-btn {
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid #00ff80;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #00ff80;
}

.hamburger-btn:hover,
.hamburger-btn:focus {
  background: #00ff80;
  outline: none;
}

.hamburger-btn:hover span,
.hamburger-btn:focus span {
  background: #000;
}

/* ============================================================
   OVERLAY MENU
   ============================================================ */
.overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 32px;
  border-left: 6px solid #00ff80;
  transform: translateX(-100%);
  transition: transform 0s;
  pointer-events: none;
}

.overlay-menu.is-open {
  transform: translateX(0);
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 48px;
  height: 48px;
  background: #00ff80;
  border: none;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lexend', sans-serif;
}

.overlay-close:hover,
.overlay-close:focus {
  background: #fff;
  outline: none;
}

.overlay-aside {
  width: 100%;
}

.overlay-aside nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.overlay-aside nav ul li {
  border-bottom: 1px solid #222;
}

.overlay-aside nav ul li:first-child {
  border-top: 1px solid #222;
}

.nav-link {
  display: block;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: #fff;
  padding: 18px 0;
  letter-spacing: 0.03em;
  min-height: 56px;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus {
  color: #00ff80;
  outline: none;
  padding-left: 12px;
  border-left: 4px solid #00ff80;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 60%,
    rgba(0,255,128,0.12) 100%
  );
}

.hero-bg-text {
  position: absolute;
  top: 0;
  right: -0.05em;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 20vw, 18rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,255,128,0.18);
  line-height: 0.85;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.03em;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 24px;
  text-align: left;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  background: #00ff80;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero-h1 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  background: #00ff80;
  border: 2px solid #00ff80;
  padding: 14px 32px;
  min-height: 48px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover,
.hero-cta:focus {
  background: #000;
  color: #00ff80;
  outline: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 70px;
  right: 32px;
  z-index: 2;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(0,255,128,0.6);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ============================================================
   MAIN / ARTICLE / SECTION (structural contract)
   ============================================================ */
.main-content {
  position: relative;
  z-index: 10;
  background: #000;
  padding-bottom: 64px;
}

.content-article {
  width: 100%;
}

.content-sections {
  width: 100%;
}

/* ============================================================
   page.content 内的 article 样式
   ============================================================ */
.content-sections article {
  scroll-margin-top: 0;
  padding: 64px 24px;
  border-bottom: 2px solid #111;
  max-width: 900px;
  margin: 0 auto;
}

.content-sections article:nth-child(even) {
  background: #050505;
}

.content-sections h2 {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #00ff80;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.content-sections h2 + hr {
  border: none;
  border-top: 3px solid #00ff80;
  margin-bottom: 28px;
  width: 60px;
}

.content-sections h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #fff;
  margin: 24px 0 10px;
  font-weight: 700;
}

.content-sections h3 + hr {
  border: none;
  border-top: 2px solid #0000ff;
  margin-bottom: 16px;
  width: 40px;
}

.content-sections p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1rem;
}

.content-sections ul,
.content-sections ol {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1rem;
}

.content-sections li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.content-sections strong {
  color: #00ff80;
  font-weight: 700;
}

.content-sections em {
  color: #aaa;
  font-style: italic;
}

.content-sections a {
  color: #00ff80;
  border-bottom: 1px solid #00ff80;
}

.content-sections a:hover,
.content-sections a:focus {
  color: #fff;
  border-bottom-color: #fff;
}

/* 用 hr 做区块分隔 */
.content-sections hr {
  border: none;
  border-top: 2px solid #1a1a1a;
  margin: 32px 0;
}

/* 卡片式子区块 */
.content-sections .card,
.content-sections figure {
  border: 2px solid #222;
  padding: 20px;
  margin-bottom: 20px;
  background: #080808;
}

/* ============================================================
   ASIDE (nav structure contract: aside > nav > ul > li > a)
   ============================================================ */
/* The aside lives inside .overlay-menu */
.overlay-aside {
  width: 100%;
}

/* ============================================================
   FOOTER (contract: footer only p + small)
   ============================================================ */
.site-footer {
  background: #000;
  border-top: 3px solid #00ff80;
  padding: 32px 24px 80px;
  text-align: center;
}

.footer-brand {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #00ff80;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.footer-copy {
  display: block;
  font-size: 0.8rem;
  color: #555;
  letter-spacing: 0.04em;
}

/* ============================================================
   PARALLAX (JS-driven, class toggled)
   ============================================================ */
.parallax-active .hero-bg-img {
  transform: translateY(var(--parallax-offset, 0px));
  will-change: transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 768px) {
  .hero-content {
    padding: 0 48px;
  }

  .content-sections article {
    padding: 80px 48px;
  }

  .site-footer {
    padding: 40px 48px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .footer-brand {
    margin-bottom: 0;
  }

  .overlay-menu {
    padding: 64px 80px;
  }

  .nav-link {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }
}

@media (min-width: 1024px) {
  .bottom-bar {
    padding: 0 48px;
  }

  .hero-section {
    align-items: center;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero-content {
    padding: 0 80px;
  }

  .hero-scroll-hint {
    right: 48px;
  }

  .content-sections article {
    padding: 96px 0;
  }
}

@media (max-width: 374px) {
  .hero-h1 {
    font-size: 1.7rem;
  }

  .hero-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ============================================================
   SECTION SCROLL MARGIN (single-page anchors)
   ============================================================ */
article[id] {
  scroll-margin-top: 0;
}

button[aria-expanded]{min-width:44px;min-height:44px}
