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

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

:root {
  --green: #87ff71;
  --blue: #01cdfe;
  --bg: #192617;
  --bg2: #0f1a0d;
  --bg3: #1e2f1b;
  --pink: #FF71CE;
  --purple: #B967FF;
  --text: #d4f5cc;
  --text-dim: #7aad6e;
  --nav-h: 60px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 4px;
  --glass-bg: rgba(1, 205, 254, 0.07);
  --glass-border: rgba(135, 255, 113, 0.18);
  --glow-green: 0 0 8px #87ff71, 0 0 20px rgba(135,255,113,0.4);
  --glow-blue: 0 0 8px #01cdfe, 0 0 20px rgba(1,205,254,0.4);
  --glow-pink: 0 0 8px #FF71CE, 0 0 20px rgba(255,113,206,0.4);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  scroll-padding-bottom: calc(var(--nav-h) + 8px);
}

body.vaporwave-body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: var(--nav-h);
  position: relative;
}

/* ============================================================
   SCANLINES
   ============================================================ */
.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ============================================================
   RETRO GRID
   ============================================================ */
.retro-grid {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45vh;
  background-image:
    linear-gradient(rgba(1,205,254,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1,205,254,0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(400px) rotateX(55deg);
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ============================================================
   SITE HEADER & BRAND
   ============================================================ */
.site-header {
  position: relative;
  z-index: 10;
  padding: 1.2rem 1.5rem 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 0.8rem;
}

.brand-icon {
  height: 36px;
  width: auto;
}

.brand-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius);
  letter-spacing: -0.02em;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-height: 45vh;
  align-items: center;
  padding: 1rem 0 2rem;
}

.hero-media {
  position: relative;
}

.hero-collage {
  position: relative;
  height: 240px;
}

.hero-img {
  position: absolute;
  border-radius: var(--radius);
  object-fit: cover;
}

.hero-img-1 {
  width: 62%;
  height: 200px;
  top: 0;
  left: 0;
  z-index: 2;
  box-shadow: -4px 4px 0 var(--green), var(--glow-green);
}

.hero-img-2 {
  width: 58%;
  height: 180px;
  bottom: 0;
  right: 0;
  z-index: 3;
  box-shadow: 4px -4px 0 var(--blue), var(--glow-blue);
}

.hero-badge {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  z-index: 4;
  white-space: nowrap;
}

.badge-neon {
  background: var(--green);
  color: var(--bg);
  top: 10px;
  right: 10px;
  box-shadow: var(--glow-green);
  animation: badge-pulse 3s ease-in-out infinite;
}

.badge-glow {
  background: rgba(1,205,254,0.15);
  color: var(--blue);
  border: 1px solid var(--blue);
  bottom: 18px;
  left: 8px;
  box-shadow: var(--glow-blue);
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.hero-copy {
  text-align: right;
  padding-right: 0.5rem;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-shadow: var(--glow-blue);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-copy h1 {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  text-shadow: var(--glow-green);
  margin-bottom: 0.75rem;
  animation: glitch-text 8s infinite;
}

@keyframes glitch-text {
  0%, 92%, 100% { text-shadow: var(--glow-green); transform: none; }
  93% { text-shadow: 2px 0 var(--pink), -2px 0 var(--blue); transform: translateX(1px); }
  94% { text-shadow: -2px 0 var(--pink), 2px 0 var(--blue); transform: translateX(-1px); }
  95% { text-shadow: var(--glow-green); transform: none; }
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ============================================================
   PAGE BODY (aside + main)
   ============================================================ */
.page-body {
  position: relative;
  z-index: 5;
  display: flex;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ============================================================
   ASIDE (left sidebar)
   ============================================================ */
.sidebar-left {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: 1rem;
  height: fit-content;
  margin-right: 2rem;
}

.sidebar-inner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  backdrop-filter: blur(8px);
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  text-shadow: var(--glow-green);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  margin-bottom: 0.1rem;
}

.sidebar-nav a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  line-height: 1.4;
}

.sidebar-nav a:hover {
  color: var(--green);
  background: rgba(135,255,113,0.08);
  text-shadow: var(--glow-green);
}

.sidebar-deco {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 1.2rem;
}

.deco-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
}

.deco-bar:nth-child(1) { background: var(--green); width: 100%; opacity: 0.8; }
.deco-bar:nth-child(2) { background: var(--blue); width: 70%; opacity: 0.6; }
.deco-bar:nth-child(3) { background: var(--pink); width: 45%; opacity: 0.4; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  flex: 1;
  min-width: 0;
}

.content-article {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-section {
  position: relative;
}

/* ============================================================
   PAGE.CONTENT INNER SECTIONS
   ============================================================ */
.content-section > div,
.content-section div {
  scroll-margin-top: calc(var(--nav-h) + 16px);
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(135,255,113,0.1);
}

.content-section > div:last-child,
.content-section div:last-child {
  border-bottom: none;
}

/* ============================================================
   TYPOGRAPHY WITHIN CONTENT
   ============================================================ */
.content-section h2,
.content-section h3 {
  color: var(--green);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  text-shadow: 0 0 6px rgba(135,255,113,0.3);
}

.content-section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

.content-section h3 {
  font-size: 1.05rem;
  color: var(--blue);
  text-shadow: 0 0 6px rgba(1,205,254,0.3);
}

.content-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 0.8rem;
}

.content-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.content-section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s, text-shadow 0.2s;
}

.content-section a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}

.content-section strong {
  color: var(--green);
  font-weight: 600;
}

/* Glass card for sections */
.content-section div {
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(135,255,113,0.08);
  transition: border-color 0.3s;
}

.content-section div:hover {
  border-color: rgba(135,255,113,0.2);
}

/* h2 + subtitle pattern */
h2 + .subtitle,
h2 + p {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FOOTER — 极简：仅 p + small
   ============================================================ */
.site-footer {
  position: relative;
  z-index: 5;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  border-top: 1px solid rgba(135,255,113,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  text-shadow: var(--glow-green);
  letter-spacing: 0.05em;
}

.footer-copy {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.7;
  text-align: center;
}

/* ============================================================
   BOTTOM FIXED NAV BAR（含 footer 外的导航 dl）
   ============================================================ */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(15, 26, 13, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(135,255,113,0.2);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  z-index: 1000;
  gap: 0.5rem;
  box-shadow: 0 -4px 20px rgba(135,255,113,0.08);
}

.bottom-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0.25rem;
  text-decoration: none;
  min-height: 44px;
  padding: 0 0.25rem;
}

.bottom-brand .brand-text-icon {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.bottom-brand .brand-icon {
  height: 28px;
}

.bottom-nav {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.bottom-dl {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
}

.bottom-dl::-webkit-scrollbar {
  display: none;
}

.bottom-dl dt,
.bottom-dl dd {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bottom-dl dt a,
.bottom-dl dd a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0 0.6rem;
  min-height: 44px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.bottom-dl dt a:hover,
.bottom-dl dt a:focus,
.bottom-dl dd a:hover,
.bottom-dl dd a:focus {
  color: var(--green);
  background: rgba(135,255,113,0.08);
  text-shadow: var(--glow-green);
  outline: none;
}

/* ============================================================
   STAGGER ANIMATION
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .content-section div {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .content-section div.is-visible {
    opacity: 1;
    transform: none;
  }

  .sidebar-inner {
    animation: fade-in-left 0.6s ease both;
  }

  @keyframes fade-in-left {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
  }

  .retro-grid {
    animation: grid-drift 20s linear infinite;
  }

  @keyframes grid-drift {
    from { background-position: 0 0; }
    to { background-position: 0 40px; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .content-section div {
    opacity: 1;
    transform: none;
  }
  .scanlines { display: none; }
  .retro-grid { display: none; }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 768px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding-bottom: 1.5rem;
  }

  .hero-copy {
    text-align: left;
    padding-right: 0;
    order: -1;
  }

  .hero-collage {
    height: 180px;
  }

  .hero-img-1 { width: 55%; height: 160px; }
  .hero-img-2 { width: 52%; height: 148px; }

  .sidebar-left {
    display: none;
  }

  .page-body {
    padding: 0 0.75rem 3rem;
  }

  .content-section div {
    padding: 1.5rem 1rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 480px) {
  .site-header {
    padding: 1rem 0.75rem 0;
  }

  .hero-copy h1 {
    font-size: 1.4rem;
  }

  .hero-collage {
    height: 160px;
  }

  .bottom-dl dt a,
  .bottom-dl dd a {
    font-size: 0.7rem;
    padding: 0 0.45rem;
  }
}

/* ============================================================
   IMAGES
   ============================================================ */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
