@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&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;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Archivo', 'Space Grotesk', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul, ol {
  list-style: none;
}

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

/* ===== 滚动边距（底部固定条高度）===== */
section[id] {
  scroll-margin-top: 70px;
}

/* ===== 站点容器 ===== */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 64px;
}

/* ===== Hero ===== */
.site-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.hero-media--placeholder {
  background: linear-gradient(135deg, #111 0%, #222 50%, #0a0a0a 100%);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom left,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  text-align: right;
  max-width: 640px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 0.3em 0.85em;
  margin-bottom: 1.2rem;
  color: rgba(255,255,255,0.85);
}

.hero-title {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  max-width: 420px;
  margin-left: auto;
  line-height: 1.6;
}

/* ===== 主内容 ===== */
.site-main {
  flex: 1;
  background: #fff;
  color: #000;
}

/* ===== editorial section ===== */
.editorial-section {
  display: grid;
  grid-template-areas:
    "fig  content"
    "asid content";
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.editorial-figure {
  grid-area: fig;
  padding-right: 2.5rem;
  padding-bottom: 2rem;
}

.pull-quote {
  border-left: 3px solid #000;
  padding: 1rem 0 1rem 1.25rem;
  font-family: 'Archivo', serif;
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.55;
  color: #111;
  margin: 0;
}

.pull-quote p {
  margin: 0;
}

.content-aside {
  grid-area: asid;
  padding-right: 2.5rem;
  border-top: 1px solid #ddd;
  padding-top: 1.5rem;
  align-self: start;
  position: sticky;
  top: 80px;
}

.aside-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.75rem;
  font-size: 0.82rem;
}

.aside-meta dt {
  font-weight: 600;
  color: #555;
  white-space: nowrap;
}

.aside-meta dd {
  color: #222;
}

.page-content {
  grid-area: content;
  border-left: 1px solid #e0e0e0;
  padding-left: 3rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #111;
}

/* Drop Cap */
.drop-cap-first > *:first-child::first-letter,
.page-content > section:first-child > p:first-child::first-letter {
  font-family: 'Archivo', sans-serif;
  font-size: 4.2em;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  margin-right: 0.1em;
  margin-top: 0.08em;
  color: #000;
}

/* 正文内容样式 */
.page-content h2 {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 0.4rem;
  color: #000;
  line-height: 1.2;
}

.page-content h2 + hr,
.page-content h3 + hr {
  border: none;
  border-top: 2px solid #000;
  margin-bottom: 1.5rem;
}

.page-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.35rem;
  color: #111;
}

.page-content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

.page-content p {
  margin-bottom: 1.3rem;
}

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

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

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

.page-content a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  opacity: 0.65;
}

.page-content blockquote {
  border-left: 3px solid #000;
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  font-style: italic;
  color: #333;
  background: #f7f7f7;
}

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

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

/* section 内部 figure/aside 直接子结构契约 */
.page-content section > figure {
  margin: 2rem 0;
  border: 1px solid #e0e0e0;
  padding: 1rem;
}

.page-content section > figure figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  font-style: italic;
}

.page-content section > aside {
  background: #f5f5f5;
  border-left: 3px solid #000;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 4rem 2rem 0;
}

.footer-top {
  border-bottom: 1px solid #333;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-block {
  max-width: 480px;
}

.footer-logo {
  margin-bottom: 1rem;
  opacity: 0.9;
}

.footer-brand-text {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #222;
}

.footer-dl dt {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1rem;
}

.footer-dl dd {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}

.footer-dl dd a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}

.footer-dl dd a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-tip {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  margin-left: 1rem;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

/* ===== 底部固定导航条 ===== */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #000;
  border-top: 1px solid #222;
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
}

.bottom-nav {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.25rem;
  overflow: hidden;
  min-width: 0;
}

.bottom-nav-left,
.bottom-nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

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

.bottom-nav-left li,
.bottom-nav-right li {
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
}

/* tap 目标：高度 ≥44px，padding 保证可点击区域 */
.bottom-nav-left li a,
.bottom-nav-right li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  transition: color 0.2s;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottom-nav-left li a:hover,
.bottom-nav-right li a:hover {
  color: #fff;
  text-decoration: none;
}

.bottom-brand {
  flex-shrink: 0;
  text-align: center;
  padding: 0 0.5rem;
}

.bottom-brand-link {
  font-family: 'Archivo', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.625rem 0.25rem;
}

.bottom-brand-link:hover {
  text-decoration: none;
  opacity: 0.8;
}

.hamburger-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid #333;
  cursor: pointer;
  padding: 8px;
  margin-left: 0.5rem;
}

.ham-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== 全屏遮罩菜单 ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid #333;
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.overlay-close:hover {
  border-color: #fff;
}

.overlay-nav-aside {
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
}

.overlay-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.overlay-nav ul li {
  border-top: 1px solid #1a1a1a;
}

.overlay-nav ul li:last-child {
  border-bottom: 1px solid #1a1a1a;
}

.overlay-link {
  display: flex;
  align-items: center;
  min-height: 64px;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.2s;
  padding: 0.75rem 0.5rem;
}

.overlay-link:hover {
  color: #fff;
  padding-left: 1rem;
  text-decoration: none;
}

.overlay-brand {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ===== 卡片（玻璃拟态，18px圆角）===== */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 1.5rem;
}

/* ===== 断点：平板 ===== */
@media (max-width: 900px) {
  .editorial-section {
    grid-template-areas:
      "fig"
      "asid"
      "content";
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem 3rem;
  }

  .editorial-figure {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ddd;
  }

  .content-aside {
    padding-right: 0;
    border-top: 1px solid #ddd;
    padding-top: 1.25rem;
    position: static;
    margin-bottom: 2rem;
  }

  .page-content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #e0e0e0;
    padding-top: 2rem;
  }

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

  .bottom-nav-left li a,
  .bottom-nav-right li a {
    font-size: 0.65rem;
    padding: 0.625rem 0.35rem;
  }
}

/* ===== 断点：手机 ===== */
@media (max-width: 600px) {
  .hero-content {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

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

  .hero-sub {
    font-size: 0.9rem;
  }

  .editorial-section {
    padding: 2rem 1.25rem 2.5rem;
  }

  .page-content {
    font-size: 1rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
  }

  .footer-links a {
    margin-left: 0;
  }

  /* 手机端隐藏两侧导航文字，只保留品牌+汉堡 */
  .bottom-nav-left,
  .bottom-nav-right {
    display: none;
  }

  .bottom-brand-link {
    font-size: 1rem;
  }

  .bottom-bar {
    justify-content: space-between;
  }

  .overlay-link {
    min-height: 56px;
    font-size: 1rem;
  }

  .site-wrapper {
    padding-bottom: 64px;
  }
}

/* ===== 工具类 ===== */
.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}
