@import url('https://fonts.googleapis.com/css2?family=Anton&family=Epilogue: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: 72px;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body.brutalist-body {
  font-family: 'Epilogue', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, #0000ff22 1px, transparent 1px);
  background-size: 28px 28px;
}

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

a:hover {
  color: #000;
  background: #00ff80;
  outline: 2px solid #00ff80;
}

a:focus-visible {
  outline: 3px solid #00ff80;
  outline-offset: 2px;
}

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

ul {
  list-style: none;
}

/* =============================================
   NAVIGATION (aside > nav > ul > li > a)
   ============================================= */
.site-nav-aside {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 3px solid #00ff80;
  width: 100%;
}

.site-nav-aside nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 64px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left li a,
.nav-right li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  font-family: 'Epilogue', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-right: 1px solid #222;
  min-height: 64px;
  white-space: nowrap;
}

.nav-right li:last-child a {
  border-right: none;
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: #000;
  background: #00ff80;
  outline: none;
}

.nav-brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-left: 2px solid #00ff80;
  border-right: 2px solid #00ff80;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-link:hover {
  background: transparent;
  outline: none;
}

.brand-text {
  font-family: 'Anton', system-ui, sans-serif;
  font-size: 1.4rem;
  color: #00ff80;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* =============================================
   MAIN
   ============================================= */
.site-main {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* =============================================
   HERO SECTION (main > article > figure/aside)
   ============================================= */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  border-bottom: 3px solid #00ff80;
  position: relative;
  overflow: hidden;
}

.hero-figure {
  border-right: 3px solid #00ff80;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#0000ff18 1px, transparent 1px),
    linear-gradient(90deg, #0000ff18 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      45deg,
      #0000ff08 0,
      #0000ff08 2px,
      transparent 2px,
      transparent 20px
    );
}

.hero-placeholder span {
  font-family: 'Anton', sans-serif;
  font-size: clamp(4rem, 12vw, 10rem);
  color: #00ff8020;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  user-select: none;
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 48px;
  gap: 16px;
  background: #000;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Epilogue', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0000ff;
  background: #00ff80;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid #fff;
}

.hero-h1 {
  font-family: 'Anton', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  color: #00ff80;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.hero-tagline {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  max-width: 360px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  color: #000;
  background: #00ff80;
  border: 3px solid #00ff80;
  padding: 12px 36px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-height: 48px;
  cursor: pointer;
}

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

/* =============================================
   CONTENT SECTION (main > article > aside交错)
   ============================================= */
.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  border-bottom: 3px solid #00ff80;
  min-height: 60vh;
}

.content-aside {
  border-right: 3px solid #00ff80;
  padding: 32px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #050505;
}

.aside-block {
  padding: 0 20px;
}

.aside-label {
  display: block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
  background: #00ff80;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.aside-nav-list li {
  border-bottom: 1px solid #111;
}

.aside-nav-list li a {
  display: block;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #aaa;
  min-height: 40px;
  line-height: 1.4;
}

.aside-nav-list li a:hover {
  color: #000;
  background: #00ff80;
  padding-left: 14px;
  outline: none;
}

.aside-notice {
  border: 2px solid #222;
  padding: 16px;
}

.aside-notice p {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.6;
}

.content-body {
  padding: 40px 48px;
  min-width: 0;
}

/* =============================================
   SECTION EYEBROW + H2
   ============================================= */
.section-eyebrow {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #000;
  background: #0000ff;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
  border-left: 6px solid #00ff80;
  padding-left: 16px;
}

/* =============================================
   PAGE CONTENT (page.content 插入区)
   ============================================= */
.content-body article {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 2px solid #111;
  scroll-margin-top: 80px;
}

.content-body article:last-child {
  border-bottom: none;
}

.content-body h2 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #00ff80;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  margin-top: 0;
  line-height: 1.2;
}

.content-body h3 {
  font-family: 'Epilogue', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: #ccc;
  margin-bottom: 16px;
  max-width: 72ch;
}

.content-body ul,
.content-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

.content-body ul {
  list-style: none;
  padding-left: 0;
}

.content-body ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.6;
  border-bottom: 1px solid #111;
}

.content-body ul li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: #00ff80;
  font-size: 0.65em;
  top: 10px;
}

.content-body ol {
  list-style: decimal;
}

.content-body ol li {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 8px;
}

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

.content-body a:hover {
  background: #00ff80;
  color: #000;
  border-bottom-color: transparent;
}

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

.content-body em {
  color: #00ff80;
  font-style: normal;
  font-weight: 600;
}

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

.content-body th {
  background: #00ff80;
  color: #000;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  font-family: 'Epilogue', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.content-body td {
  border: 1px solid #222;
  padding: 10px 14px;
  color: #ccc;
  vertical-align: top;
}

.content-body tr:nth-child(even) td {
  background: #080808;
}

.content-body blockquote {
  border-left: 4px solid #0000ff;
  background: #08080f;
  padding: 16px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #aaa;
}

/* =============================================
   FOOTER (footer 极简 p + small)
   ============================================= */
.site-footer {
  background: #000;
  border-top: 3px solid #00ff80;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #00ff80;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.footer-copy {
  font-size: 0.8rem;
  color: #555;
  font-family: 'Epilogue', sans-serif;
}

/* =============================================
   SCROLL REVEAL (Intersection Observer via JS)
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal.visible {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =============================================
   HOVER MICRO-INTERACTIONS
   ============================================= */
.hero-cta {
  position: relative;
  overflow: hidden;
}

.hero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0000ff;
  transform: translateX(-101%);
  z-index: 0;
}

.hero-cta:hover::after {
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.hero-cta span,
.hero-cta {
  position: relative;
  z-index: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-figure {
    border-right: none;
    border-bottom: 3px solid #00ff80;
    min-height: 200px;
  }
  .content-section {
    grid-template-columns: 1fr;
  }
  .content-aside {
    border-right: none;
    border-bottom: 3px solid #00ff80;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .site-nav-aside nav {
    flex-direction: column;
    min-height: auto;
  }
  .nav-left,
  .nav-right {
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-start;
    flex: none;
  }
  .nav-left li a,
  .nav-right li a {
    font-size: 0.72rem;
    padding: 10px 8px;
    min-height: 44px;
    border-right: 1px solid #222;
    border-bottom: 1px solid #222;
  }
  .nav-brand {
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid #00ff80;
    padding: 12px 20px;
    justify-content: flex-start;
  }
  .hero-aside {
    padding: 28px 20px;
  }
  .hero-h1 {
    font-size: clamp(1.6rem, 8vw, 3rem);
  }
  .content-body {
    padding: 28px 20px;
  }
  .site-footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }
  .hero-section {
    min-height: auto;
  }
  .hero-aside {
    padding: 24px 16px;
  }
  .content-body {
    padding: 20px 16px;
  }
  .nav-left li a,
  .nav-right li a {
    font-size: 0.7rem;
    padding: 10px 6px;
    min-height: 44px;
  }
  .section-h2 {
    font-size: 1.4rem;
  }
}

/* =============================================
   UTILITY
   ============================================= */
::selection {
  background: #00ff80;
  color: #000;
}

::-webkit-scrollbar {
  width: 6px;
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #00ff80;
}
