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

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

:root {
  --c-bg: #000000;
  --c-surface: #121212;
  --c-surface2: #1a1a1a;
  --c-border: #2a2a2a;
  --c-text: #f0f0f0;
  --c-text-muted: #888888;
  --c-accent: #e040fb;
  --c-accent2: #00e5ff;
  --c-gold: #ffd740;
  --c-glass-bg: rgba(18,18,18,0.7);
  --c-glass-border: rgba(255,255,255,0.08);
  --nav-h: 64px;
  --radius: 10px;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, sans-serif;
  --scroll-mt: 80px;
}

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

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

body.oled-dark {
  background: #000000;
}

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

a {
  color: var(--c-accent2);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--c-accent);
  opacity: 0.9;
}

ul, ol {
  list-style: none;
}

/* =============================================
   LAYOUT WRAPPER
   ============================================= */
.site-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 20px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  scroll-margin-top: var(--scroll-mt);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-cond);
  font-size: clamp(160px, 30vw, 320px);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.03);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.hero-collage {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  opacity: 0.35;
  filter: brightness(0.6) saturate(1.2);
}

.hero-img--left {
  width: 45%;
  height: 70%;
  top: 10%;
  left: -2%;
  transform: rotate(-3deg);
}

.hero-img--right {
  width: 45%;
  height: 65%;
  bottom: 8%;
  right: -2%;
  transform: rotate(2deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-shadow: 0 0 10px var(--c-accent);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-cond);
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 30px rgba(224,64,251,0.3);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--c-accent), var(--c-accent2));
  color: #000;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  padding: 0.85rem 2.4rem;
  border-radius: 50px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.hero-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 24px rgba(224,64,251,0.5), 0 0 48px rgba(0,229,255,0.2);
  color: #000;
}

/* =============================================
   CONTENT SECTION (main > div > figure/aside)
   ============================================= */
.content-section {
  display: grid;
  grid-template-columns: 1fr 260px;
  grid-template-areas:
    "deco  aside"
    "body  aside";
  gap: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.content-deco {
  grid-area: deco;
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  pointer-events: none;
}

.deco-block {
  border-radius: 6px;
  height: 4px;
}

.deco-block--1 {
  width: 60px;
  background: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
}

.deco-block--2 {
  width: 30px;
  background: var(--c-accent2);
  box-shadow: 0 0 10px var(--c-accent2);
}

.content-aside {
  grid-area: aside;
  position: sticky;
  top: 20px;
  align-self: start;
}

.aside-inner {
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.aside-title {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
}

.aside-title span {
  display: block;
}

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

.aside-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--c-text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0.3rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.aside-nav-list li a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--c-text);
}

.aside-num {
  font-family: var(--font-cond);
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--c-accent);
  min-width: 22px;
}

.content-body {
  grid-area: body;
  min-width: 0;
}

/* =============================================
   PAGE CONTENT (injected sections)
   ============================================= */
.content-body div {
  scroll-margin-top: var(--scroll-mt);
  margin-bottom: 4rem;
  padding: 2.5rem;
  background: var(--c-glass-bg);
  border: 1px solid var(--c-glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.content-body div.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-body div::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-accent2), transparent);
}

.content-body h2 {
  font-family: var(--font-cond);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.content-body h2 span {
  display: inline;
}

.content-body h3 {
  font-family: var(--font-cond);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-accent2);
  margin: 1.4rem 0 0.6rem;
  letter-spacing: 0.02em;
}

.content-body h3 span {
  display: inline;
}

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

.content-body ul,
.content-body ol {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.content-body ul li {
  list-style: disc;
  color: #bbb;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.content-body ol li {
  list-style: decimal;
  color: #bbb;
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.content-body a {
  color: var(--c-accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: var(--c-accent);
}

.content-body strong {
  color: #fff;
  font-weight: 600;
}

.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: 0.93rem;
}

.content-body th {
  background: var(--c-surface2);
  color: var(--c-accent2);
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.content-body td {
  padding: 0.65rem 1rem;
  color: #bbb;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.content-body tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* =============================================
   FOOTER NAV BAR (固定底部)
   ============================================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0,0,0,0.92);
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-nav-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.2rem;
  height: var(--nav-h);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.footer-nav-bar::-webkit-scrollbar {
  display: none;
}

.footer-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.brand-text {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.footer-nav {
  flex: 1;
  overflow: hidden;
}

.nav-dl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-dt {
  display: none;
}

.nav-dl dd {
  flex-shrink: 0;
}

.nav-dl dd a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 1rem;
  border-radius: 50px;
  font-family: var(--font-cond);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-dl dd a:hover {
  background: rgba(224,64,251,0.12);
  color: var(--c-accent);
  border-color: rgba(224,64,251,0.3);
  box-shadow: 0 0 10px rgba(224,64,251,0.2);
}

/* =============================================
   FOOTER BODY (三栏 dl)
   ============================================= */
.footer-body {
  display: none;
}

.footer-col dt {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 0.6rem;
}

.footer-col-title {
  display: block;
}

.footer-col dd {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 0.3rem;
}

.footer-col dd a {
  color: var(--c-text-muted);
  font-size: 0.88rem;
}

.footer-col dd a:hover {
  color: var(--c-accent2);
}

.footer-bottom {
  display: none;
}

.copyright {
  font-size: 0.8rem;
  color: var(--c-text-muted);
}

/* =============================================
   BRAND LOGO
   ============================================= */
.brand-logo {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

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

@media (prefers-reduced-motion: reduce) {
  .content-body div {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .hero-cta:hover {
    transform: none;
  }
}

/* =============================================
   DESKTOP BREAKPOINT
   ============================================= */
@media (min-width: 900px) {
  .site-main {
    padding-bottom: calc(var(--nav-h) + 40px);
  }

  .content-section {
    padding: 5rem 2rem 3rem;
  }

  .footer-nav-bar {
    padding: 0 2rem;
  }

  .footer-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--c-border);
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-bottom {
    display: block;
    text-align: center;
    padding: 1rem 2rem;
    border-top: 1px solid var(--c-border);
  }

  /* 桌面底部固定条高度不变，展开页脚内容 */
  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    max-height: var(--nav-h);
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-footer:hover {
    max-height: 500px;
  }

  .hero-img--left {
    width: 40%;
    height: 75%;
  }

  .hero-img--right {
    width: 40%;
    height: 68%;
  }
}

@media (max-width: 899px) {
  .content-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "deco"
      "body"
      "aside";
    padding: 2rem 1rem 1.5rem;
  }

  .content-aside {
    position: static;
    margin-top: 2rem;
  }

  .content-body div {
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .hero-img {
    display: none;
  }

  .hero-section {
    min-height: 100svh;
  }
}

@media (max-width: 480px) {
  .nav-dl dd a {
    font-size: 0.8rem;
    padding: 0 0.7rem;
  }

  .hero-h1 {
    font-size: 2.2rem;
  }
}
