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

/* ── 重置 ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body, .dark-body {
  background: #000;
  color: #fff;
  font-family: 'Space Grotesk', 'Archivo', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

/* ── 可访问性 ─────────────────────────────────────── */
.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;
}

/* ── 滚动补偿（底部导航） ─────────────────────────── */
section[id] { scroll-margin-top: 5.5rem; }

/* ── 全局包裹 ─────────────────────────────────────── */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 5rem; /* 为底部导航留空 */
}

/* ── 顶部品牌条 ───────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 4vw;
  border-bottom: 1px solid #1a1a1a;
}

.top-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo { height: 2.5rem; width: auto; }

.brand-wordmark {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  color: #fff;
  text-transform: uppercase;
}

.top-tagline {
  font-size: 0.85rem;
  color: #888;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  max-width: 40ch;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 6rem 4vw;
  border-bottom: 1px solid #1a1a1a;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.hero-h1 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
  text-transform: uppercase;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #aaa;
  max-width: 44ch;
  line-height: 1.7;
}

.hero-cta, .pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 2.4rem;
  border-radius: 9999px;
  background: #fff;
  color: #000;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 2px solid #fff;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, transform 0.18s;
  min-height: 48px;
}

.hero-cta:hover, .pill-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #1f1f1f;
  min-height: 360px;
  background: #0a0a0a;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.hero-media--empty {
  background: #0a0a0a;
}

.hero-deco {
  font-size: clamp(4rem, 10vw, 8rem);
  color: #222;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  user-select: none;
}

/* ── 主内容区 ─────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 6rem 4vw;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-article {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── 侧边栏（内容左侧） ───────────────────────────── */
.content-aside {
  position: sticky;
  top: 6rem;
}

.aside-inner {
  border: 1px solid #1f1f1f;
  border-radius: 18px;
  padding: 1.6rem;
}

.aside-label {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1rem;
}

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

.aside-link {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: #888;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 400;
  transition: background 0.18s, color 0.18s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

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

/* ── 正文区 ───────────────────────────────────────── */
.content-body { min-width: 0; }

.section-intro-h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 0.75rem;
}

.subtitle {
  font-size: 1.05rem;
  color: #777;
  margin-bottom: 3rem;
  max-width: 60ch;
  line-height: 1.7;
}

.page-content {
  color: #ccc;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── page.content 内部样式 ────────────────────────── */
.page-content h1,
.page-content h2 {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.1;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.page-content h1 { font-size: clamp(2rem, 4vw, 3.5rem); }

.page-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid #1f1f1f;
  padding-top: 3rem;
}

.page-content h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.page-content p { margin-bottom: 1.3rem; max-width: 72ch; }

.page-content ul,
.page-content ol {
  margin-bottom: 1.3rem;
  padding-left: 1.5rem;
  list-style: disc;
  color: #ccc;
}

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

.page-content li { margin-bottom: 0.4rem; }

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

.page-content a:hover { color: #aaa; }

.page-content blockquote {
  border-left: 3px solid #fff;
  padding-left: 1.4rem;
  margin: 2rem 0;
  color: #888;
  font-style: italic;
}

.page-content code {
  font-family: 'Courier New', monospace;
  background: #111;
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.9em;
  color: #eee;
}

.page-content pre {
  background: #0d0d0d;
  border: 1px solid #1f1f1f;
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.page-content pre code { background: none; padding: 0; }

.page-content strong { color: #fff; font-weight: 700; }

.page-content section {
  margin-bottom: 1rem;
}

/* ── 页脚 ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #1a1a1a;
  padding: 6rem 4vw 3rem;
  margin-top: 6rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto 4rem;
  align-items: start;
}

.footer-brand-word {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  text-transform: uppercase;
}

.footer-col-title {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.2rem;
}

.footer-nav-list,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list li a,
.footer-contact-list li a,
.footer-contact-list li span {
  font-size: 0.9rem;
  color: #777;
  transition: color 0.18s;
  display: block;
  padding: 0.25rem 0;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.footer-nav-list li a:hover,
.footer-contact-list li a:hover { color: #fff; }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid #111;
  padding-top: 2rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #444;
}

.footer-icp {
  font-size: 0.75rem;
  color: #333;
  margin-top: 0.5rem;
}

/* ── 底部固定导航条 ───────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #1f1f1f;
  padding: 0.6rem 3vw;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bottom-nav-inner::-webkit-scrollbar { display: none; }

.bottom-nav-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid #2a2a2a;
  transition: border-color 0.18s;
}

.bottom-nav-brand:hover { border-color: #fff; }

.nav-icon { width: 24px; height: 24px; border-radius: 6px; }

.nav-icon-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.05em;
}

.bottom-nav-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-nav-list::-webkit-scrollbar { display: none; }

.nav-pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid #2a2a2a;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: #aaa;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  min-height: 40px;
  cursor: pointer;
}

.nav-pill:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  transform: translateY(-1px);
}

/* ── 搜索框 ───────────────────────────────────────── */
.bottom-nav-search { flex-shrink: 0; }

.search-input {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  padding: 0.5rem 1.1rem;
  min-height: 40px;
  width: 140px;
  outline: none;
  transition: border-color 0.2s, width 0.3s;
  -webkit-appearance: none;
}

.search-input::placeholder { color: #555; }

.search-input:focus {
  border-color: #fff;
  width: 200px;
}

/* ── Scroll Reveal 动效 ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .hero-cta:hover, .pill-btn:hover { transform: none; }
  .nav-pill:hover { transform: none; }
}

/* ── 响应式：平板 ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 1rem;
  }

  .hero-media { min-height: 240px; order: -1; }

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

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

  .content-aside {
    position: static;
  }

  .aside-inner {
    padding: 1rem 1.2rem;
  }

  .aside-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* ── 响应式：手机 ─────────────────────────────────── */
@media (max-width: 600px) {
  .top-bar { padding: 1.2rem 4vw; gap: 1rem; }
  .top-tagline { display: none; }

  .hero { padding: 3.5rem 4vw; min-height: 70vh; }
  .hero-h1 { font-size: clamp(2.2rem, 12vw, 4rem); }
  .hero-desc { font-size: 0.95rem; }
  .hero-media { min-height: 200px; }

  .main-content { padding: 3rem 4vw; }

  .content-article { grid-template-columns: 1fr; gap: 1.5rem; }

  .aside-list { flex-direction: row; flex-wrap: wrap; gap: 0.3rem; }
  .aside-link { padding: 0.35rem 0.7rem; font-size: 0.78rem; min-height: 36px; }

  .section-intro-h2 { font-size: clamp(1.6rem, 8vw, 2.5rem); }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand-word { font-size: clamp(2.5rem, 12vw, 5rem); }
  .site-footer { padding: 3rem 4vw 2rem; margin-top: 3rem; }

  .bottom-nav { padding: 0.5rem 2vw; }
  .nav-pill { font-size: 0.72rem; padding: 0.4rem 0.8rem; }
  .search-input { width: 100px; }
  .search-input:focus { width: 130px; }
}

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