@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans: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;
}

body {
  font-family: 'IBM Plex Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0f1923;
  color: #e8eaf0;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

ol, ul {
  list-style: none;
}

/* ── Layout Shell ── */
.site-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ── Side Nav ── */
.sidenav {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  background: #1A2B4A;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  z-index: 200;
  border-right: 2px solid #C0392B;
  overflow-y: auto;
}

.sidenav-brand {
  margin-bottom: 2.5rem;
  text-align: center;
}

.brand-link {
  display: block;
}

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

.brand-text {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.3;
  padding: 0.5rem 0;
}

.sidenav-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sidenav-menu li {
  width: 100%;
}

.nav-pill {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #c8d4e8;
  background: transparent;
  border: 1.5px solid #2a3f64;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  min-height: 40px;
  line-height: 1.4;
  cursor: pointer;
}

.nav-pill:hover,
.nav-pill:focus-visible {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
  outline: none;
}

/* ── Main Content Offset ── */
.main-content {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  scroll-margin-top: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #1A2B4A 0%, rgba(26,43,74,0.55) 50%, rgba(45,45,45,0.3) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 3rem 4rem 3rem 2rem;
}

.hero-inner {
  max-width: 520px;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #C0392B;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: #b0bdd0;
  margin-bottom: 2rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Hero Clip (斜切底边) ── */
.hero-clip {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: #0f1923;
  clip-path: polygon(0 100%, 100% 40%, 100% 100%);
  z-index: 3;
}

/* ── Buttons ── */
.btn-pill {
  display: inline-block;
  padding: 0.7rem 2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
  border: none;
  min-height: 44px;
  line-height: 1.4;
}

.btn-accent {
  background: #C0392B;
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: #e04030;
  outline: none;
}

/* ── Page Main ── */
.page-main {
  flex: 1;
  padding: 4rem 0 2rem;
}

/* ── Content Section ── */
.content-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  grid-template-rows: auto auto;
  gap: 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}

.content-figure {
  grid-column: 1 / -1;
  margin: 0;
}

.content-figure--lead {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.figure-geo {
  height: 4px;
  border-radius: 2px;
}

.figure-geo--1 {
  width: 60px;
  background: #C0392B;
}

.content-body {
  grid-column: 1 / 2;
  min-width: 0;
}

/* ── Content Body (page.content 内的元素) ── */
.content-body section {
  scroll-margin-top: 80px;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #1e3050;
}

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

.content-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  position: relative;
  padding-left: 1rem;
}

.content-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1em;
  background: #C0392B;
  border-radius: 2px;
}

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #c8d4e8;
  margin: 1.5rem 0 0.8rem;
}

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

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

.content-body ul {
  list-style: disc;
}

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

.content-body li {
  font-size: 1rem;
  line-height: 1.75;
  color: #b8c4d8;
  margin-bottom: 0.4rem;
}

.content-body a {
  color: #C0392B;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
}

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

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

/* ── Aside ── */
.content-aside {
  grid-column: 2 / 3;
  grid-row: 2 / 4;
  position: sticky;
  top: 2rem;
  background: #1A2B4A;
  border-radius: 4px;
  padding: 1.5rem;
  border-left: 3px solid #C0392B;
}

.aside-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.aside-heading span,
.aside-sub-heading span {
  display: inline;
}

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

.aside-nav-list li {
  counter-increment: none;
}

.aside-link {
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #c8d4e8;
  background: transparent;
  border: 1px solid #2a3f64;
  transition: background 150ms ease, color 150ms ease;
  min-height: 40px;
  line-height: 1.4;
  display: flex;
  align-items: center;
}

.aside-link:hover {
  background: #C0392B;
  color: #fff;
  border-color: #C0392B;
}

.aside-block {
  border-top: 1px solid #2a3f64;
  padding-top: 1.2rem;
}

.aside-sub-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #c8d4e8;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.aside-desc {
  font-size: 0.82rem;
  color: #7a90b0;
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  background: #1A2B4A;
  border-top: 2px solid #C0392B;
  text-align: center;
  padding: 1.8rem 2rem;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
}

.footer-copy {
  font-size: 0.78rem;
  color: #6a7e9a;
  display: block;
  line-height: 1.5;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 400ms ease 200ms, transform 400ms ease 200ms;
}

.reveal-stagger.is-visible {
  opacity: 1;
  transform: none;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ── Scroll Margin for Sections ── */
section[id] {
  scroll-margin-top: 80px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .sidenav {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    border-right: none;
    border-bottom: 2px solid #C0392B;
    overflow-x: auto;
    overflow-y: visible;
  }

  .sidenav-brand {
    margin-bottom: 0;
    margin-right: 1rem;
    flex-shrink: 0;
  }

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

  .sidenav-menu {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .sidenav-menu li {
    width: auto;
    flex-shrink: 0;
  }

  .nav-pill {
    white-space: nowrap;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .main-content {
    margin-left: 0;
    margin-top: 80px;
  }

  .hero {
    height: 100vh;
    align-items: flex-end;
  }

  .hero-body {
    padding: 2rem 1.5rem 4rem;
    justify-content: flex-start;
  }

  .hero-inner {
    text-align: left;
    max-width: 100%;
  }

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

  .content-section {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .content-body {
    grid-column: 1 / -1;
  }

  .content-aside {
    grid-column: 1 / -1;
    grid-row: auto;
    position: static;
  }

  .content-figure {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .hero-body {
    padding: 1.5rem 1rem 3.5rem;
  }

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

  .page-main {
    padding: 2rem 0 1rem;
  }

  .content-body h2 {
    font-size: 1.2rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
