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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0000ff;
  color: #000000;
}

body.brutalist-body {
  font-family: 'Nunito Sans', 'Rubik', system-ui, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
  background: #0000ff;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover, a:focus {
  color: #ffffff;
  background: #000000;
  outline: 3px solid #00ff80;
  outline-offset: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', 'Nunito Sans', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

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

/* ============================================================
   SCROLL MARGIN FOR SECTIONS
   ============================================================ */
article[id] {
  scroll-margin-top: 72px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  border-bottom: 4px solid #00ff80;
  width: 100%;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  gap: 0.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-left {
  justify-content: flex-start;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  border: 2px solid transparent;
  min-height: 44px;
  white-space: nowrap;
  transition: none;
}

.nav-link:hover,
.nav-link:focus {
  color: #000000;
  background: #00ff80;
  border-color: #00ff80;
  outline: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  color: #00ff80;
  font-size: 1.25rem;
  font-weight: 700;
  border: 3px solid #00ff80;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  min-height: 44px;
}

.nav-brand a:hover,
.nav-brand a:focus {
  background: #00ff80;
  color: #000000;
  outline: none;
}

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

.nav-brand-text {
  font-family: 'Rubik', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 100vh;
  background: #000000;
  border-bottom: 4px solid #00ff80;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.hero-media {
  position: relative;
  background: #0000ff;
  border-right: 4px solid #00ff80;
  overflow: hidden;
  min-height: 400px;
}

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

.hero-slash {
  position: absolute;
  top: 0;
  right: -60px;
  width: 120px;
  height: 100%;
  background: #000000;
  transform: skewX(-8deg);
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 4rem 3rem 4rem 5rem;
  background: #000000;
  position: relative;
}

.hero-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: #00ff80;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00ff80;
  border: 2px solid #00ff80;
  padding: 0.25rem 0.75rem;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  max-width: 420px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #00ff80;
  color: #000000;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0 2.5rem;
  border: 3px solid #00ff80;
  border-radius: 0;
  min-height: 52px;
  letter-spacing: 0.05em;
  transition: none;
}

.hero-cta:hover,
.hero-cta:focus {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  outline: none;
}

/* ============================================================
   CONTENT BODY
   ============================================================ */
.content-body {
  background: #ffffff;
  color: #000000;
  padding: 4rem 1rem;
}

.content-layout {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.content-main {
  min-width: 0;
}

/* ── page.content 内的样式 ── */
.content-main h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  color: #000000;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  border-left: 6px solid #0000ff;
  padding-left: 1rem;
}

.content-main h2 + hr {
  border: none;
  border-top: 3px solid #00ff80;
  margin-bottom: 1.5rem;
}

.content-main h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0000ff;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-main h3 + hr {
  border: none;
  border-top: 2px solid #0000ff;
  margin-bottom: 1rem;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.8;
  color: #111111;
  margin-bottom: 1.25rem;
}

.content-main ul,
.content-main ol {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.8;
  color: #111111;
  margin-bottom: 0.5rem;
}

.content-main a {
  color: #0000ff;
  text-decoration: underline;
  font-weight: 600;
}

.content-main a:hover {
  color: #000000;
  background: #00ff80;
  outline: none;
}

.content-main article {
  margin-bottom: 4rem;
  padding-top: 1rem;
}

.content-main strong {
  font-weight: 700;
  color: #000000;
}

.content-main blockquote {
  border-left: 6px solid #0000ff;
  background: #f0f0f0;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: normal;
  font-weight: 600;
}

/* ============================================================
   ASIDE
   ============================================================ */
.content-aside {
  position: sticky;
  top: 80px;
}

.aside-inner {
  background: #000000;
  border: 3px solid #00ff80;
  padding: 1.5rem;
  color: #ffffff;
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: #00ff80;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.aside-inner hr {
  border: none;
  border-top: 3px solid #00ff80;
  margin-bottom: 1rem;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.aside-link {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0 0.75rem;
  border-left: 3px solid transparent;
  min-height: 44px;
  line-height: 1.4;
  transition: none;
}

.aside-link:hover,
.aside-link:focus {
  color: #000000;
  background: #00ff80;
  border-left-color: #00ff80;
  outline: none;
}

.aside-badge {
  border: 2px solid #00ff80;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.badge-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
}

.badge-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00ff80;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #000000;
  border-top: 4px solid #00ff80;
  color: #ffffff;
}

.footer-cta-block {
  background: #00ff80;
  border-bottom: 4px solid #000000;
}

.footer-cta-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta-title {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  color: #00ff80;
  font-weight: 700;
  font-size: 1rem;
  padding: 0 2rem;
  border: 3px solid #000000;
  min-height: 52px;
  white-space: nowrap;
  transition: none;
}

.footer-cta-btn:hover,
.footer-cta-btn:focus {
  background: #0000ff;
  color: #ffffff;
  border-color: #0000ff;
  outline: none;
}

.footer-body {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.footer-dl {
  display: block;
}

.footer-dl-title {
  font-size: 1rem;
  font-weight: 700;
  color: #00ff80;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #00ff80;
  display: block;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-top: 0.5rem;
}

.footer-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-nav-inner dd {
  display: block;
}

.footer-nav-inner dd a {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0 0.5rem;
  border-left: 3px solid transparent;
  min-height: 44px;
  line-height: 1.4;
  transition: none;
}

.footer-nav-inner dd a:hover,
.footer-nav-inner dd a:focus {
  color: #000000;
  background: #00ff80;
  border-left-color: #00ff80;
  outline: none;
}

.footer-keyword {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  display: block;
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.footer-slogan {
  font-size: 0.8rem;
  color: #00ff80;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ============================================================
   FOOTER NAV (dl 导航结构契约)
   ============================================================ */
footer nav > dl {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ============================================================
   HR
   ============================================================ */
hr {
  border: none;
  border-top: 3px solid #00ff80;
  margin: 1rem 0;
}

/* ============================================================
   ANIMATIONS / PARALLAX
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: fadeSlideRight 0.5s ease both;
  }

  .hero-media {
    animation: fadeSlideLeft 0.5s ease both;
  }

  @keyframes fadeSlideRight {
    from {
      opacity: 0;
      transform: translateX(30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  @keyframes fadeSlideLeft {
    from {
      opacity: 0;
      transform: translateX(-30px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .content-main article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .content-main article.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .content-layout {
    grid-template-columns: 1fr 260px;
    gap: 2rem;
  }

  .footer-body {
    grid-template-columns: 1fr 1fr;
  }

  .footer-info-dl {
    grid-column: span 2;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  html {
    scroll-behavior: smooth;
  }

  .main-nav {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 0.75rem 0;
    gap: 0.5rem;
  }

  .nav-brand {
    order: -1;
  }

  .nav-left,
  .nav-right {
    justify-content: center;
    gap: 0.25rem;
    padding: 0 0.5rem;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0 0.6rem;
    min-height: 44px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .hero-media {
    min-height: 40vh;
    border-right: none;
    border-bottom: 4px solid #00ff80;
  }

  .hero-slash {
    display: none;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 2.5rem 1.5rem;
  }

  .hero-h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-sub {
    max-width: 100%;
  }

  .content-body {
    padding: 2rem 1rem;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .content-aside {
    position: static;
    order: -1;
  }

  .footer-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.25rem;
  }

  .footer-body {
    grid-template-columns: 1fr;
    padding: 2rem 1.25rem;
  }

  .footer-info-dl {
    grid-column: span 1;
  }

  .footer-bottom {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 100svh;
  }

  article[id] {
    scroll-margin-top: 120px;
  }
}
