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

/* ===== 变量 ===== */
:root {
  --paper: #fdfbf7;
  --surface: #f5f5f5;
  --ink: #1a1a1a;
  --ink-mid: #3a3a3a;
  --ink-light: #6a6a6a;
  --rule: #d0cec9;
  --accent: #1a1a1a;
  --accent-inv: #fdfbf7;
  --radius: 4px;
  --nav-h: 64px;
  --header-h: 56px;
  --font-head: 'Space Grotesk', 'Arial Black', Impact, sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --max-w: 1100px;
  --scroll-offset: calc(var(--nav-h) + 12px);
}

/* ===== 重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  font-size: 17px;
  line-height: 1.7;
  background: var(--paper);
  color: var(--ink);
}
body { font-family: var(--font-body); background: var(--paper); }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.7; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
dl { margin: 0; }

/* ===== 纸张纹理噪点 ===== */
.paper-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: multiply;
}

/* ===== 页面包裹 ===== */
.page-wrap {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px);
}

/* ===== 顶部 header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.header-brand-name { letter-spacing: -0.03em; }
.header-tagline {
  font-size: 0.78rem;
  color: var(--ink-light);
  border-left: 1px solid var(--rule);
  padding-left: 16px;
  line-height: 1.3;
  max-width: 320px;
  display: none;
}
.brand-text-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-icon { width: 32px; height: 32px; object-fit: contain; }

/* ===== Hero ===== */
.hero-band {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  border-bottom: 2px solid var(--ink);
}
.hero-media {
  flex: 0 0 50%;
  background: var(--surface);
  border-right: 2px solid var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 40px;
  gap: 24px;
}
.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.hero-desc {
  font-size: 1rem;
  color: var(--ink-mid);
  max-width: 420px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: none;
}
.hero-cta:hover {
  background: var(--paper);
  color: var(--ink);
  opacity: 1;
}

/* ===== 内容壳：aside + main ===== */
.content-shell {
  display: flex;
  flex-direction: row;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  gap: 32px;
  align-items: flex-start;
}

/* ===== 左侧 aside ===== */
.left-aside {
  flex: 0 0 180px;
  position: sticky;
  top: calc(var(--header-h) + 12px);
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 20px 16px;
  border-radius: var(--radius);
}
.aside-heading {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.aside-list li { margin-bottom: 4px; }
.aside-list a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink-mid);
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius);
  transition: none;
}
.aside-list a:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}

/* ===== 主内容 ===== */
.main-content {
  flex: 1 1 0;
  min-width: 0;
}
.primary-article { width: 100%; }

/* ===== content-body：正文 HTML ===== */
.content-body div {
  margin-bottom: 56px;
  scroll-margin-top: var(--scroll-offset);
  border-top: 2px solid var(--ink);
  padding-top: 32px;
}
.content-body div:first-child { border-top: none; padding-top: 0; }

.content-body h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}
.content-body h2 span { display: inline; }
.content-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--ink);
}
.content-body h3 span { display: inline; }
.content-body p {
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-mid);
}
.content-body ul, .content-body ol {
  margin: 0 0 1em 1.4em;
  color: var(--ink-mid);
}
.content-body li { margin-bottom: 0.35em; line-height: 1.7; }
.content-body a { color: var(--ink); font-weight: 700; }
.content-body strong { color: var(--ink); }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.9rem;
}
.content-body th, .content-body td {
  border: 1px solid var(--rule);
  padding: 8px 12px;
  text-align: left;
}
.content-body th { background: var(--surface); font-family: var(--font-head); }
.content-body blockquote {
  border-left: 4px solid var(--ink);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: var(--surface);
  font-style: italic;
  color: var(--ink-mid);
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.site-footer div {
  padding: 36px 28px;
  border-right: 1px solid rgba(253,251,247,0.15);
}
.site-footer div:last-child { border-right: none; }

.footer-brand-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.footer-brand-wrap strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--paper);
}
.footer-brand-wrap p {
  font-size: 0.8rem;
  color: rgba(253,251,247,0.65);
  line-height: 1.5;
}
.footer-logo .brand-text-icon {
  background: var(--paper);
  color: var(--ink);
}
.footer-logo .brand-icon { filter: invert(1); }

.footer-section-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.55);
  margin-bottom: 16px;
}
.footer-section-title span { display: inline; }

/* 页脚导航 dl */
.footer-dl, .bottom-dl {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-dl dt, .footer-dl dd { display: block; }
.footer-dl a {
  font-size: 0.88rem;
  color: rgba(253,251,247,0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  min-height: 40px;
}
.footer-dl a:hover { color: var(--paper); opacity: 1; text-decoration: underline; }
.footer-dl .nav-icon { font-size: 1rem; flex-shrink: 0; }
.footer-dl .nav-label { font-size: 0.88rem; }

.footer-contact-item {
  font-size: 0.88rem;
  color: rgba(253,251,247,0.8);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer-contact-item a { color: var(--paper); }

.footer-legal-text {
  font-size: 0.78rem;
  color: rgba(253,251,247,0.5);
  line-height: 1.6;
  margin-bottom: 12px;
}
.footer-copy {
  font-size: 0.78rem;
  color: rgba(253,251,247,0.45);
}

/* ===== 底部固定导航条 ===== */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--paper);
  border-top: 2px solid var(--ink);
  display: flex;
  align-items: center;
  z-index: 300;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.bottom-nav-bar::-webkit-scrollbar { display: none; }
.bottom-nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 56px;
  height: var(--nav-h);
  border-right: 2px solid var(--ink);
  text-decoration: none;
}
.bottom-nav-inner { display: flex; align-items: center; flex: 1; overflow-x: auto; }
.bottom-nav-inner::-webkit-scrollbar { display: none; }
.bottom-dl {
  flex-direction: row;
  gap: 0;
  white-space: nowrap;
}
.bottom-dl dt, .bottom-dl dd { display: inline-block; }
.bottom-dl a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 14px;
  min-height: 44px;
  min-width: 56px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.62rem;
  font-family: var(--font-head);
  letter-spacing: 0.02em;
  border-right: 1px solid var(--rule);
  transition: none;
}
.bottom-dl a:hover {
  background: var(--ink);
  color: var(--paper);
  opacity: 1;
}
.bottom-dl .nav-icon { font-size: 1.1rem; line-height: 1; }
.bottom-dl .nav-label { font-size: 0.62rem; line-height: 1.2; }

/* ===== 动效：Stagger List ===== */
@media (prefers-reduced-motion: no-preference) {
  .aside-list li {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.3s forwards;
  }
  .aside-list li:nth-child(1) { animation-delay: 0.05s; }
  .aside-list li:nth-child(2) { animation-delay: 0.10s; }
  .aside-list li:nth-child(3) { animation-delay: 0.15s; }
  .aside-list li:nth-child(4) { animation-delay: 0.20s; }
  .aside-list li:nth-child(5) { animation-delay: 0.25s; }
  .aside-list li:nth-child(6) { animation-delay: 0.30s; }
  .aside-list li:nth-child(7) { animation-delay: 0.35s; }

  .content-body div {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.45s forwards;
    animation-timeline: unset;
  }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 桌面断点 ===== */
@media (min-width: 900px) {
  .header-tagline { display: block; }
  .site-footer { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 平板 ===== */
@media (max-width: 899px) {
  .hero-band {
    flex-direction: column;
    min-height: auto;
  }
  .hero-media {
    flex: none;
    height: 240px;
    border-right: none;
    border-bottom: 2px solid var(--ink);
  }
  .hero-copy {
    flex: none;
    padding: 32px 24px;
  }
  .content-shell { flex-direction: column; padding: 24px 16px; }
  .left-aside {
    position: static;
    flex: none;
    width: 100%;
  }
  .site-footer {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-footer div {
    border-bottom: 1px solid rgba(253,251,247,0.15);
  }
  .site-footer div:nth-child(2n) { border-right: none; }
}

/* ===== 手机 ===== */
@media (max-width: 599px) {
  html { font-size: 16px; }
  .site-header { padding: 0 16px; }
  .hero-copy { padding: 24px 16px; gap: 16px; }
  .hero-h1 { font-size: 1.8rem; }
  .content-shell { padding: 16px 12px; gap: 20px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer div { border-right: none; padding: 28px 20px; }
  .bottom-dl a { padding: 4px 10px; min-width: 48px; }
}

/* ===== 可访问性 ===== */
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .aside-list li { opacity: 1; transform: none; }
  .content-body div { opacity: 1; transform: none; }
}
