@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

/* =====================
   基础重置与全局
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
  background: #fff;
  color: #000;
}

body {
  font-family: 'EB Garamond', 'Crimson Text', Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  min-height: 100vh;
  background: #fff;
  color: #000;
  overflow-x: hidden;
}

/* scroll-margin for fixed nav */
div[id] {
  scroll-margin-top: 80px;
}

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

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

ul {
  list-style: none;
}

/* =====================
   点阵底纹背景
   ===================== */
.dot-grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #00000010 1px, transparent 1px);
  background-size: 28px 28px;
}

/* =====================
   底部固定导航条
   ===================== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  border-top: 2px solid #fff;
}

.bottom-nav {
  width: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  gap: 0.75rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}

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

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

.nav-group a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 0.85rem;
  border: 1.5px solid #ffffff55;
  border-radius: 999px;
  color: #fff;
  font-family: 'EB Garamond', serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}

.nav-group a:hover,
.nav-group a:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
  outline: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 44px;
  padding: 0 1.2rem;
  background: #fff;
  border-radius: 999px;
  transition: opacity 200ms ease;
}

.nav-brand:hover {
  opacity: 0.85;
}

.nav-brand-text {
  font-family: 'EB Garamond', serif;
  font-weight: 800;
  font-size: 1rem;
  color: #000;
  letter-spacing: 0.04em;
}

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

/* =====================
   Hero 区块
   ===================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #000000 60%, #1a1a1a 100%);
  z-index: 1;
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, #ffffff18 1.5px, transparent 1.5px);
  background-size: 32px 32px;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 5rem 2rem 8rem;
  max-width: 860px;
  width: 100%;
}

.hero-h1 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-family: 'Crimson Text', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: #ffffff99;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =====================
   胶囊按钮
   ===================== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 2rem;
  border-radius: 999px;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 230ms ease, color 230ms ease, transform 200ms ease;
}

.btn-primary {
  background: #fff;
  color: #000;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #000;
  color: #fff;
  outline: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

/* =====================
   主体 main
   ===================== */
main {
  position: relative;
  z-index: 1;
  background: #fff;
  padding-bottom: 100px; /* 给固定底部导航留空 */
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.content-section {
  width: 100%;
}

.content-article {
  width: 100%;
}

.content-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

/* =====================
   正文内容区
   ===================== */
.content-main {
  min-width: 0;
}

/* S3 content div 样式 */
.content-main div {
  padding: 3.5rem 0;
  border-bottom: 1px solid #e8e8e8;
}

.content-main div:last-child {
  border-bottom: none;
}

.content-main h2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.content-main h2 + p,
.content-main h2 + .subtitle {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.content-main h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #000;
  margin: 2rem 0 0.6rem;
}

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

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

.content-main li {
  margin-bottom: 0.45rem;
  line-height: 1.75;
  font-size: 1rem;
  color: #222;
}

.content-main a {
  color: #000;
  border-bottom: 1px solid #000;
  transition: opacity 200ms;
}

.content-main a:hover {
  opacity: 0.55;
}

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

.content-main time {
  font-size: 0.88rem;
  color: #888;
  display: block;
  margin-bottom: 0.8rem;
}

/* =====================
   侧边栏 aside
   ===================== */
.content-aside {
  position: sticky;
  top: 2rem;
}

.aside-inner {
  border: 2px solid #000;
  border-radius: 28px;
  padding: 1.8rem 1.5rem;
  background: #fff;
}

.aside-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.35rem;
}

.aside-lead {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.aside-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid #00000022;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: #000;
  transition: background 220ms ease, border-color 220ms ease;
}

.aside-link:hover,
.aside-link:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
  outline: none;
}

/* =====================
   页脚
   ===================== */
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
  color: #fff;
  padding-bottom: 80px; /* 底部导航高度补偿 */
}

.footer-cta-block {
  text-align: center;
  padding: 5rem 2rem 4rem;
  border-bottom: 1px solid #333;
}

.footer-cta-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.footer-cta-sub {
  font-size: 1.05rem;
  color: #ffffff88;
  margin-bottom: 2rem;
}

.footer-bar {
  padding: 1.5rem 2rem;
}

.footer-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo a {
  display: flex;
  align-items: center;
}

.footer-logo .nav-brand-text {
  color: #fff;
  font-size: 1rem;
}

.footer-logo .nav-logo-img {
  height: 24px;
  filter: invert(1);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-family: 'EB Garamond', serif;
  font-size: 0.85rem;
  color: #ffffffbb;
  border: 1px solid #ffffff33;
  transition: background 220ms ease, color 220ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: #fff;
  color: #000;
  outline: none;
}

.footer-copy {
  font-size: 0.82rem;
  color: #ffffff66;
  white-space: nowrap;
}

/* =====================
   动效 & 可及性
   ===================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 滚动渐入（JS配合） */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

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

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

/* =====================
   移动端响应
   ===================== */
@media (max-width: 900px) {
  .content-with-aside {
    grid-template-columns: 1fr;
  }

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

  .aside-inner {
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .nav-inner {
    padding: 0.4rem 0.75rem;
    gap: 0.4rem;
  }

  .nav-group a {
    height: 40px;
    padding: 0 0.5rem;
    font-size: 0.75rem;
    border-radius: 999px;
  }

  .nav-brand {
    height: 40px;
    padding: 0 0.8rem;
  }

  .hero-content {
    padding: 4rem 1.25rem 7rem;
  }

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

  .wrap {
    padding: 2.5rem 1.25rem;
  }

  .content-main div {
    padding: 2.5rem 0;
  }

  .footer-bar-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-nav {
    gap: 0.25rem;
  }

  .footer-nav a {
    height: 40px;
    padding: 0 0.6rem;
  }

  .btn-pill {
    height: 44px;
    padding: 0 1.5rem;
  }
}

/* =====================
   辅助工具
   ===================== */
.subtitle {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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