@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --black:#000;
  --white:#fff;
  --nav-h:60px;
  --aside-w:120px;
  --font:'Atkinson Hyperlegible',system-ui,sans-serif;
}

html{
  scroll-behavior:smooth;
  font-size:16px;
  overflow-x:hidden;
}

body{
  background:var(--black);
  color:var(--white);
  font-family:var(--font);
  font-size:1rem;
  line-height:1.6;
  min-height:100vh;
  overflow-x:hidden;
  width:100%;
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}

/* ── 全局链接 ─────────────────────── */
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}
img{display:block;max-width:100%;height:auto}

/* ── 包裹层 ───────────────────────── */
.site-wrap{
  display:flex;
  flex-direction:column;
  min-height:100vh;
  width:100%;
  overflow-x:hidden;
}

/* ══════════════════════════════════
   底部固定导航条
══════════════════════════════════ */
.bottom-nav{
  position:fixed;
  bottom:0;left:0;right:0;
  z-index:1000;
  background:var(--black);
  border-top:1px solid var(--white);
  height:var(--nav-h);
}

.bottom-nav ol{
  display:flex;
  align-items:center;
  justify-content:center;
  list-style:none;
  height:100%;
  padding:0 8px;
  gap:0;
  width:100%;
  max-width:1200px;
  margin:0 auto;
}

.bottom-nav ol li{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.bottom-nav ol li a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:var(--nav-h);
  padding:0 6px;
  font-size:0.7rem;
  font-weight:700;
  letter-spacing:0.02em;
  color:var(--white);
  white-space:nowrap;
  text-align:center;
  width:100%;
}

.bottom-nav ol li a:hover{
  text-decoration:none;
  opacity:0.7;
}

.brand-center a{
  font-size:0.75rem!important;
  font-weight:700!important;
  letter-spacing:-0.02em!important;
  color:var(--white)!important;
}

.nav-cta a{
  background:var(--white);
  color:var(--black)!important;
  border-radius:6px;
  padding:0 8px!important;
  height:36px!important;
  font-size:0.65rem!important;
  font-weight:700!important;
  width:auto!important;
}

/* ══════════════════════════════════
   主结构：main > article
══════════════════════════════════ */
main{
  flex:1;
  padding-bottom:var(--nav-h);
  width:100%;
  overflow-x:hidden;
}

article{
  position:relative;
  width:100%;
  overflow-x:hidden;
}

/* ══════════════════════════════════
   Hero Section
══════════════════════════════════ */
.hero-section{
  min-height:70vh;
  display:flex;
  align-items:center;
  padding:6rem 1.5rem 4rem;
  position:relative;
  overflow:hidden;
  scroll-margin-top:0;
}

.hero-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1100px;
  margin:0 auto;
  gap:2rem;
  position:relative;
  z-index:1;
}

.hero-text{
  flex:1;
  min-width:0;
}

.hero-eyebrow{
  display:inline-block;
  font-size:0.75rem;
  font-weight:700;
  letter-spacing:0.2em;
  text-transform:uppercase;
  border:1px solid var(--white);
  padding:0.25rem 0.75rem;
  margin-bottom:1.5rem;
  color:var(--white);
}

h1{
  font-size:clamp(2rem,8vw,7rem);
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1.05;
  margin-bottom:1.5rem;
  color:var(--white);
  word-break:break-all;
}

.hero-sub{
  font-size:clamp(0.95rem,2vw,1.15rem);
  line-height:1.7;
  margin-bottom:2.5rem;
  max-width:480px;
  opacity:0.85;
}

.hero-actions{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.btn-primary{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 2rem;
  background:var(--white);
  color:var(--black);
  font-weight:700;
  font-size:0.9rem;
  letter-spacing:0.05em;
  border-radius:4px;
  white-space:nowrap;
}
.btn-primary:hover{text-decoration:none;opacity:0.85}

.btn-ghost{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 1.5rem;
  border:1px solid var(--white);
  color:var(--white);
  font-weight:700;
  font-size:0.9rem;
  letter-spacing:0.05em;
  border-radius:4px;
  white-space:nowrap;
}
.btn-ghost:hover{text-decoration:none;background:rgba(255,255,255,0.1)}

.hero-visual{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  user-select:none;
}

.hero-bg-text{
  font-size:clamp(5rem,18vw,14rem);
  font-weight:700;
  letter-spacing:-0.05em;
  line-height:1;
  color:rgba(255,255,255,0.07);
  display:block;
}

/* ══════════════════════════════════
   侧边栏（aside 在内容左侧）
══════════════════════════════════ */
.content-with-aside{
  display:flex;
  gap:0;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 1.5rem;
  position:relative;
  overflow-x:hidden;
}

.sidebar-left{
  position:sticky;
  top:1rem;
  align-self:flex-start;
  width:var(--aside-w);
  flex-shrink:0;
  padding:2rem 1rem 2rem 0;
  border-right:1px solid rgba(255,255,255,0.15);
  margin-right:2rem;
  min-width:0;
}

.aside-label{
  font-size:0.6rem;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.4);
  margin-bottom:1rem;
}

.sidebar-left ol{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:0.5rem;
}

.sidebar-left ol li a{
  font-size:0.72rem;
  line-height:1.4;
  color:rgba(255,255,255,0.55);
  display:block;
  padding:0.3rem 0;
  transition:color 0.2s;
}
.sidebar-left ol li a:hover{
  color:var(--white);
  text-decoration:none;
}

/* ══════════════════════════════════
   正文内容区
══════════════════════════════════ */
.content-body{
  flex:1;
  min-width:0;
  padding:3rem 0;
  overflow-x:hidden;
}

/* page.content 内的 section 样式 */
.content-body section{
  padding:4rem 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
  scroll-margin-top:calc(var(--nav-h) + 1rem);
  overflow-x:hidden;
}

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

.content-body h2{
  font-size:clamp(1.6rem,5vw,4rem);
  font-weight:700;
  letter-spacing:-0.03em;
  line-height:1.1;
  margin-bottom:1.5rem;
  color:var(--white);
}

.content-body h3{
  font-size:clamp(1.1rem,3vw,2rem);
  font-weight:700;
  letter-spacing:-0.02em;
  margin-bottom:1rem;
  margin-top:2rem;
}

.content-body p{
  font-size:1rem;
  line-height:1.75;
  margin-bottom:1.2rem;
  max-width:680px;
  opacity:0.9;
}

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

.content-body li{
  font-size:1rem;
  line-height:1.7;
  margin-bottom:0.4rem;
}

.content-body a{
  color:var(--white);
  border-bottom:1px solid rgba(255,255,255,0.4);
}
.content-body a:hover{
  border-bottom-color:var(--white);
  text-decoration:none;
}

.content-body small{
  display:block;
  font-size:0.65rem;
  font-weight:700;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:rgba(255,255,255,0.35);
  margin-bottom:0.5rem;
}

/* ══════════════════════════════════
   页脚
══════════════════════════════════ */
.site-footer{
  border-top:1px solid rgba(255,255,255,0.15);
  padding:4rem 1.5rem 2rem;
  text-align:center;
  overflow-x:hidden;
}

.footer-brand{
  font-size:clamp(2rem,8vw,6rem);
  font-weight:700;
  letter-spacing:-0.04em;
  line-height:1;
  margin-bottom:1rem;
  color:var(--white);
  word-break:break-all;
}

.footer-tagline{
  font-size:0.9rem;
  line-height:1.6;
  opacity:0.5;
  max-width:480px;
  margin:0 auto 2rem;
}

.footer-copy{
  display:block;
  font-size:0.75rem;
  line-height:1.6;
  opacity:0.3;
  letter-spacing:0.05em;
}

/* ══════════════════════════════════
   Scroll Reveal 动效
══════════════════════════════════ */
@media(prefers-reduced-motion:no-preference){
  .reveal{
    opacity:0;
    transform:translateY(24px);
    transition:opacity 0.6s ease,transform 0.6s ease;
  }
  .reveal.visible{
    opacity:1;
    transform:none;
  }
}

/* ══════════════════════════════════
   桌面断点
══════════════════════════════════ */
@media(min-width:768px){
  .bottom-nav ol li a{
    font-size:0.8rem;
    padding:0 10px;
  }
  .brand-center a{font-size:0.85rem!important}
  .nav-cta a{font-size:0.78rem!important;padding:0 14px!important}

  h1{font-size:clamp(3rem,8vw,7rem)}
}

@media(min-width:1024px){
  .hero-section{padding:8rem 3rem 6rem}
  .site-footer{padding:6rem 3rem 3rem}
  article{
    display:flex;
    gap:0;
  }
}

/* ══════════════════════════════════
   移动端：≤767px
══════════════════════════════════ */
@media(max-width:767px){
  :root{--aside-w:0px}

  .bottom-nav ol{
    gap:0;
    padding:0 2px;
  }
  .bottom-nav ol li a{
    font-size:0.55rem;
    padding:0 3px;
  }
  .brand-center a{font-size:0.6rem!important}
  .nav-cta a{
    font-size:0.55rem!important;
    padding:0 5px!important;
    height:32px!important;
  }

  .hero-section{
    min-height:70vh;
    padding:5rem 1.25rem 3rem;
  }
  .hero-inner{
    flex-direction:column;
    gap:1.5rem;
  }
  .hero-visual{
    display:none;
  }
  .hero-sub{max-width:100%}

  .sidebar-left{
    display:none;
  }

  .content-with-aside{
    padding:0 1.25rem;
  }
  .content-body{
    padding:2rem 0;
  }
  .content-body section{
    padding:2.5rem 0;
  }
  .content-body p{max-width:100%}

  .btn-primary,.btn-ghost{
    font-size:0.85rem;
    min-height:44px;
  }
}
