@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;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: #000;
  color: #fff;
}

body {
  font-family: 'Atkinson Hyperlegible', Arial, 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* =============================================
   排版基础
   ============================================= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

ul, ol {
  list-style: none;
}

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

/* =============================================
   顶部导航
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000;
  border-bottom: 2px solid #fff;
}

.main-nav {
  padding: 0 2rem;
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr);
  align-items: center;
  gap: 0;
  list-style: none;
  min-height: 64px;
}

.nav-logo-center {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  border-right: 1px solid rgba(255,255,255,0.15);
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

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

.nav-brand-item {
  display: none;
}

.nav-list > li:not(.nav-logo-center) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: none;
  white-space: nowrap;
  min-height: 44px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  text-align: center;
}

.nav-link:hover {
  color: #000;
  background: #fff;
}

.nav-cta {
  background: #fff;
  color: #000;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.8rem;
  border: 2px solid #fff;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-cta:hover {
  background: #000;
  color: #fff;
}

/* 二级粘性锚点条 */
.anchor-bar {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 0 2rem;
  background: #000;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.anchor-bar::-webkit-scrollbar {
  display: none;
}

.anchor-list {
  display: flex;
  gap: 0;
  min-height: 40px;
  align-items: center;
  list-style: none;
  white-space: nowrap;
}

.anchor-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  border-right: 1px solid rgba(255,255,255,0.1);
  min-height: 40px;
  transition: color 0.2s;
  text-decoration: none;
}

.anchor-link:hover {
  color: #fff;
}

.anchor-list li:last-child .anchor-link {
  border-right: none;
}

/* =============================================
   Hero 区域
   ============================================= */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-bottom: 2px solid #fff;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 25vw, 20rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  white-space: nowrap;
}

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

.hero-media {
  display: flex;
  align-items: stretch;
  border-right: 2px solid #fff;
  overflow: hidden;
  background: #0a0a0a;
}

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

.hero-img-placeholder {
  width: 100%;
  min-height: 250px;
  background: repeating-linear-gradient(
    45deg,
    #0d0d0d 0px,
    #0d0d0d 10px,
    #000 10px,
    #000 20px
  );
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 3rem 3rem 3rem 2rem;
  text-align: right;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 28ch;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  background: #fff;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 2px solid #fff;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

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

/* =============================================
   主体：文章 + 侧边栏
   ============================================= */
.site-main {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 2px solid #fff;
}

.main-article {
  border-right: 2px solid #fff;
}

.content-section {
  padding: 0;
}

.page-content-wrap {
  /* page.content 里已有 article 结构，保留原样 */
}

/* =============================================
   page.content 内部 article 样式
   ============================================= */
.page-content-wrap article {
  padding: 5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  scroll-margin-top: 120px;
}

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

.page-content-wrap h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-content-wrap h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.page-content-wrap p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
  max-width: 68ch;
}

.page-content-wrap ul,
.page-content-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-content-wrap ul {
  list-style: disc;
}

.page-content-wrap ol {
  list-style: decimal;
}

.page-content-wrap li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.4rem;
}

.page-content-wrap a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content-wrap a:hover {
  text-decoration: none;
  opacity: 0.75;
}

.page-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.page-content-wrap th,
.page-content-wrap td {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.75rem 1rem;
  text-align: left;
}

.page-content-wrap th {
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}

.page-content-wrap blockquote {
  border-left: 4px solid #fff;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

/* subtitle 紧跟 h2 */
.page-content-wrap .subtitle,
.page-content-wrap h2 + p.subtitle,
.page-content-wrap h2 + p.subhead,
.page-content-wrap h2 + p.desc,
.page-content-wrap h2 + p.lead {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
  margin-top: 0;
  text-transform: uppercase;
}

/* =============================================
   侧边栏
   ============================================= */
.main-aside {
  position: sticky;
  top: 112px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: 200px;
}

.aside-block {
  border: 2px solid rgba(255,255,255,0.2);
  padding: 1.5rem;
  border-radius: 4px;
}

.aside-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: #fff;
}

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

.aside-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-nav-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
  min-height: 40px;
  text-decoration: none;
}

.aside-nav-link:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.aside-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

.aside-notice {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: #000;
  border-top: 2px solid #fff;
  padding: 0;
}

.footer-brand-block {
  padding: 4rem 3rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}

.footer-brand-display {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: rgba(255,255,255,0.08);
  user-select: none;
  white-space: nowrap;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-dl {
  padding: 2.5rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.footer-dl:last-child {
  border-right: none;
}

.footer-dl--center {
  text-align: center;
}

.footer-dl dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-dl dd {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.footer-link {
  display: inline-block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 40px;
  line-height: 40px;
  transition: color 0.2s;
  padding: 0;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  padding: 1.5rem 2.5rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* =============================================
   Scroll Reveal 动效
   ============================================= */
.sr {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}

.sr.visible {
  opacity: 1;
  transform: none;
}

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

/* Hover 微交互 */
.aside-block {
  transition: border-color 0.25s;
}

.aside-block:hover {
  border-color: rgba(255,255,255,0.5);
}

@media (prefers-reduced-motion: reduce) {
  .aside-block {
    transition: none;
  }
}

/* =============================================
   响应式：平板 768~1024px
   ============================================= */
@media (max-width: 1100px) {
  .site-main {
    grid-template-columns: 1fr 250px;
  }

  .nav-list {
    grid-template-columns: repeat(3, 1fr) auto repeat(3, 1fr);
    font-size: 0.8rem;
  }

  .hero-copy {
    padding: 2rem 2rem 2rem 1.5rem;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-list {
    grid-template-columns: 1fr auto 1fr;
  }

  /* 在小屏隐藏部分导航项，用锚点条代替 */
  .nav-list > li:not(.nav-logo-center):not(:nth-child(2)):not(:nth-last-child(1)) {
    display: none;
  }

  .site-main {
    grid-template-columns: 1fr;
  }

  .main-article {
    border-right: none;
  }

  .main-aside {
    position: static;
    border-top: 2px solid rgba(255,255,255,0.15);
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
  }

  .aside-block {
    flex: 1 1 260px;
  }

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

  .footer-dl:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.1);
    grid-column: span 2;
    border-right: none;
  }
}

/* =============================================
   响应式：手机 <768px（≤375px 重点）
   ============================================= */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 100px;
  }

  /* 导航折叠为品牌 + CTA */
  .nav-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
    padding: 0;
  }

  .nav-list > li {
    display: none !important;
  }

  .nav-list > .nav-logo-center {
    display: flex !important;
    border: none;
    margin: 0 auto;
  }

  .nav-list > li:last-child {
    display: flex !important;
    margin-left: auto;
  }

  .nav-list > li:first-child {
    display: flex !important;
    margin-right: auto;
  }

  .main-nav {
    padding: 0 1rem;
  }

  .anchor-bar {
    padding: 0 0.5rem;
  }

  .anchor-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  /* Hero 垂直堆叠 */
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    border-right: none;
    border-bottom: 2px solid #fff;
    min-height: 180px;
    max-height: 220px;
  }

  .hero-img-placeholder {
    min-height: 180px;
  }

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

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

  .hero-bg-text {
    font-size: clamp(5rem, 30vw, 10rem);
  }

  /* 正文 article 内边距 */
  .page-content-wrap article {
    padding: 3rem 1.5rem;
    scroll-margin-top: 100px;
  }

  .page-content-wrap h2 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  /* 侧边栏垂直排列 */
  .main-aside {
    flex-direction: column;
    padding: 1.5rem;
  }

  .aside-block {
    flex: none;
    width: 100%;
  }

  /* 页脚单列 */
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-dl {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
  }

  .footer-dl:last-child {
    border-bottom: none;
  }

  .footer-dl:nth-child(3) {
    grid-column: span 1;
  }

  .footer-brand-block {
    padding: 2rem 1.5rem 1rem;
  }

  .footer-bottom {
    padding: 1rem 1.5rem;
  }
}

/* =============================================
   字体回退（Atkinson Hyperlegible 未加载时）
   ============================================= */
@supports not (font-family: 'Atkinson Hyperlegible') {
  body {
    font-family: Arial, 'Helvetica Neue', sans-serif;
  }
}
