@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@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: 80px;
  color-scheme: dark;
  font-size: 16px;
}

body.oled-dark {
  background: #000000;
  color: #e0e0e0;
  font-family: 'Space Grotesk', 'DM Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

/* ============================================================
   LAYOUT ROOT
   ============================================================ */
.layout-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================================================
   HEADER — 左侧固定竖排
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #0a0a0a;
  border-right: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  z-index: 100;
  padding-bottom: 24px;
  overflow-y: auto;
}

.header-announce {
  background: #121212;
  border-bottom: 1px solid #1e1e1e;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7df9e0;
  text-shadow: 0 0 10px #7df9e055;
  padding: 10px 16px;
  letter-spacing: 0.03em;
  line-height: 1.4;
  text-align: left;
}

.header-brand {
  padding: 24px 16px 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 40px;
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 0 10px #7df9e044;
}

/* NAV: header > nav > p > a */
.site-nav {
  flex: 1;
  padding: 8px 0;
}

.site-nav p {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-nav p a {
  display: block;
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #b0b0b0;
  letter-spacing: 0.01em;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  min-height: 44px;
  line-height: 1.3;
  display: flex;
  align-items: center;
}

.site-nav p a:hover,
.site-nav p a:focus-visible {
  color: #ffffff;
  border-left-color: #7df9e0;
  background: #141414;
  text-shadow: 0 0 8px #7df9e055;
  outline: none;
}

/* ============================================================
   MAIN — offset for fixed sidebar
   ============================================================ */
.site-main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 56px 60px;
  gap: 48px;
  position: relative;
  overflow: hidden;
  background: #000000;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 520px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1rem;
  color: #909090;
  line-height: 1.7;
  max-width: 420px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #000000;
  background: #7df9e0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  align-self: flex-start;
  min-height: 48px;
  text-shadow: none;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  background: #ffffff;
  box-shadow: 0 0 24px #7df9e066;
  transform: translateY(-2px);
  outline: none;
}

/* Hero collage — 双图错位 */
.hero-collage {
  position: relative;
  z-index: 2;
  height: 60vh;
  min-height: 320px;
}

.hero-collage-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border: 1px solid #222;
  border-radius: 6px;
}

.hero-img-a {
  width: 72%;
  height: 68%;
  top: 0;
  left: 0;
  z-index: 2;
}

.hero-img-b {
  width: 60%;
  height: 55%;
  bottom: 0;
  right: 0;
  z-index: 3;
  border-color: #7df9e044;
  box-shadow: 0 0 20px #7df9e022;
}

.hero-deco-line {
  position: absolute;
  top: 50%;
  left: -20px;
  width: 2px;
  height: 180px;
  background: linear-gradient(to bottom, transparent, #7df9e0, transparent);
  transform: translateY(-50%);
  opacity: 0.5;
}

/* ============================================================
   CONTENT SECTION — main > div > figure/aside 交错
   ============================================================ */
.content-section {
  display: grid;
  grid-template-columns: 200px 80px 1fr;
  gap: 0;
  padding: 0;
  background: #000000;
  min-height: 60vh;
  position: relative;
}

/* ASIDE — 内容左侧 */
.content-aside {
  border-right: 1px solid #1a1a1a;
  padding: 56px 20px 56px 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background: #050505;
}

.aside-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-inner h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7df9e0;
  text-transform: uppercase;
  text-shadow: 0 0 8px #7df9e055;
}

.aside-inner .subtitle {
  font-size: 0.72rem;
  color: #555;
  line-height: 1.4;
}

.aside-link {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #666;
  padding: 7px 0;
  border-bottom: 1px solid #111;
  transition: color 0.2s;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-link:hover,
.aside-link:focus-visible {
  color: #7df9e0;
  outline: none;
}

/* FIGURE — decorative accent column */
.content-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 56px 0;
  gap: 40px;
  border-right: 1px solid #111;
}

.neon-badge {
  writing-mode: vertical-rl;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #7df9e0;
  text-shadow: 0 0 8px #7df9e066;
  padding: 16px 8px;
  border: 1px solid #7df9e033;
  border-radius: 2px;
}

.neon-badge-alt {
  color: #b07dff;
  text-shadow: 0 0 8px #b07dff55;
  border-color: #b07dff33;
}

/* CONTENT BODY */
.content-body {
  padding: 56px 48px 80px;
  max-width: 860px;
}

/* ============================================================
   CONTENT / SECTION STYLES (injected from page.content)
   ============================================================ */
.content-body div {
  margin-bottom: 72px;
  scroll-margin-top: 100px;
}

.content-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.25;
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e0e0e0;
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}

.content-body p {
  font-size: 1rem;
  color: #c0c0c0;
  line-height: 1.75;
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
  color: #c0c0c0;
  line-height: 1.75;
}

.content-body li {
  margin-bottom: 6px;
}

.content-body strong {
  color: #ffffff;
  font-weight: 700;
}

.content-body a {
  color: #7df9e0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.content-body a:hover {
  color: #ffffff;
}

.content-body blockquote {
  border-left: 3px solid #7df9e0;
  margin: 24px 0;
  padding: 12px 24px;
  background: #0c0c0c;
  border-radius: 0 4px 4px 0;
  color: #a0a0a0;
  font-style: italic;
}

.content-body hr {
  border: none;
  border-top: 1px solid #1a1a1a;
  margin: 40px 0;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 0.92rem;
}

.content-body th {
  background: #121212;
  color: #7df9e0;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #1e1e1e;
}

.content-body td {
  padding: 10px 14px;
  border: 1px solid #1a1a1a;
  color: #c0c0c0;
}

.content-body tr:hover td {
  background: #080808;
}

/* ============================================================
   SUBTITLE PATTERN (h2 + p.subtitle)
   ============================================================ */
.subtitle {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ============================================================
   FOOTER — footer > div×n
   ============================================================ */
.site-footer {
  margin-left: 220px;
  border-top: 1px solid #1a1a1a;
  background: #050505;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.footer-contact {
  flex: 1;
  padding: 40px 48px;
  border-right: 1px solid #111;
}

.footer-contact h2 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #7df9e0;
  text-shadow: 0 0 8px #7df9e044;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.footer-contact .subtitle {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 16px;
}

.footer-contact-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: #7df9e0;
  border: 1px solid #7df9e033;
  padding: 8px 16px;
  border-radius: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 40px;
}

.footer-contact-link:hover {
  border-color: #7df9e0;
  box-shadow: 0 0 12px #7df9e033;
}

.footer-copy {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 320px;
}

.copyright {
  font-size: 0.8rem;
  color: #444;
  text-align: center;
}

.footer-note {
  font-size: 0.72rem;
  color: #333;
  text-align: center;
  line-height: 1.5;
}

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

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

  .site-nav p a {
    transition: color 0.2s, border-color 0.2s, background 0.2s, text-shadow 0.2s;
  }

  .cta-btn {
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  }

  .aside-link {
    transition: color 0.2s;
  }
}

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

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .site-header {
    width: 180px;
  }

  .site-main,
  .site-footer {
    margin-left: 180px;
  }

  .content-section {
    grid-template-columns: 160px 60px 1fr;
  }

  .hero-section {
    padding: 80px 36px 60px;
    gap: 32px;
  }

  .content-body {
    padding: 40px 32px 64px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 64px;
  }

  /* Header becomes top bar */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    border-right: none;
    border-bottom: 1px solid #1e1e1e;
    z-index: 200;
    overflow-y: visible;
    padding-bottom: 0;
  }

  .header-announce {
    font-size: 0.65rem;
    padding: 7px 16px;
    text-align: center;
  }

  .header-brand {
    padding: 12px 16px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand-text {
    font-size: 0.9rem;
  }

  .site-nav {
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav p {
    flex-direction: row;
    gap: 0;
    white-space: nowrap;
    padding: 0 8px 8px;
  }

  .site-nav p a {
    border-left: none;
    border-bottom: 2px solid transparent;
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .site-nav p a:hover,
  .site-nav p a:focus-visible {
    border-bottom-color: #7df9e0;
    border-left-color: transparent;
    background: transparent;
  }

  /* Main offset for top bar */
  .site-main {
    margin-left: 0;
    margin-top: 120px;
  }

  /* Hero: single column */
  .hero-section {
    grid-template-columns: 1fr;
    min-height: 100vh;
    padding: 40px 24px 60px;
    gap: 32px;
    align-content: center;
  }

  .hero-collage {
    height: 280px;
    min-height: auto;
    order: -1;
  }

  .hero-copy h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  /* Content div: single column, no figure column */
  .content-section {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .content-aside {
    position: static;
    height: auto;
    overflow-y: visible;
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
    background: #060606;
  }

  .aside-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .aside-inner h2,
  .aside-inner .subtitle {
    width: 100%;
  }

  .aside-link {
    border-bottom: none;
    border: 1px solid #1e1e1e;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.75rem;
    min-height: 40px;
    display: inline-flex;
  }

  .content-figure {
    display: none;
  }

  .content-body {
    padding: 32px 24px 56px;
    max-width: 100%;
  }

  /* Footer: single column */
  .site-footer {
    margin-left: 0;
    flex-direction: column;
  }

  .footer-contact {
    border-right: none;
    border-bottom: 1px solid #111;
    padding: 32px 24px;
  }

  .footer-copy {
    padding: 24px;
    min-width: auto;
  }
}

/* ============================================================
   MOBILE XS (≤375px)
   ============================================================ */
@media (max-width: 375px) {
  .hero-copy h1 {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 32px 16px 48px;
  }

  .content-body {
    padding: 24px 16px 48px;
  }

  .footer-contact,
  .footer-copy {
    padding: 24px 16px;
  }
}

/* ============================================================
   FOCUS VISIBLE — accessibility
   ============================================================ */
:focus-visible {
  outline: 2px solid #7df9e0;
  outline-offset: 3px;
}

/* ============================================================
   SCROLLBAR STYLING (webkit)
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #333;
}
