@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Source+Sans+3: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: 'Source Sans 3', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #111;
  background: #fff;
  overflow-x: hidden;
}

/* ── CSS 变量 ── */
:root {
  --ink: #000;
  --paper: #fff;
  --mid: #555;
  --soft: #e8e8e8;
  --faint: #f5f5f5;
  --accent: #000;
  --rule: #000;
  --radius-card: 28px;
  --gap: clamp(1rem, 3vw, 2rem);
  --font-head: 'Lexend', 'PingFang SC', sans-serif;
  --font-body: 'Source Sans 3', 'PingFang SC', sans-serif;
  --max-prose: 72ch;
  --max-wide: 1200px;
  --header-h: 56px;
}

/* ── 公告条 ── */
.site-announce {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.4rem 1rem;
  line-height: 1.4;
}

/* ── 顶部导航 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gap);
  height: var(--header-h);
  gap: 1rem;
}

.nav-left {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.nav-right {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.6rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link--active {
  border-bottom-color: var(--ink);
}

.site-brand {
  text-decoration: none;
  text-align: center;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.75rem 0.5rem;
  min-height: 40px;
  min-width: 40px;
  align-items: center;
  justify-content: center;
}

.toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── 全屏菜单 ── */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.75rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
}

.menu-nav .nav-link {
  color: var(--paper);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 500;
  border-bottom-color: transparent;
  padding: 0.75rem 1rem;
  min-height: 52px;
  width: 100%;
  text-align: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.menu-nav .nav-link:hover {
  border-bottom-color: var(--paper);
}

/* ── 容器 ── */
.wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ── Hero（首页）── */
.hero-section {
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 45vh;
  align-items: stretch;
}

.hero-text {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 3vw, 3rem) clamp(2rem, 5vw, 4rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid var(--ink);
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
}

.hero-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 44ch;
}

.hero-media {
  position: relative;
  overflow: hidden;
  background: var(--faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.hero-media--empty {
  min-height: 200px;
}

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  min-height: 44px;
  border: 2px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ── 分节通用 ── */
.content-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: 1px solid var(--soft);
}

.faq-section,
.articles-section,
.children-section,
.related-section,
.siblings-section,
.about-nav-section,
.privacy-nav-section,
.back-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--soft);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* ── 页头（内页）── */
.page-header-section,
.about-header-section,
.privacy-header-section,
.article-header-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 2px solid var(--ink);
}

.page-header-inner,
.about-header-inner,
.privacy-header-inner,
.article-header-inner {
  max-width: 64ch;
}

.page-eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
  display: block;
}

.page-h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

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

.page-lead {
  font-size: 1.0625rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 56ch;
  margin-bottom: 1rem;
}

.page-divider {
  width: 3rem;
  height: 3px;
  background: var(--ink);
  margin: 1.25rem 0;
}

/* ── 正文容器 ── */
.content-article {
  max-width: var(--max-prose);
}

.content-article--prose {
  max-width: none;
}

.page-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1a1a1a;
}

/* ── 印刷体排版（prose）── */
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.25em;
  margin-bottom: 0.6em;
  line-height: 1.2;
}

.prose h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.prose h4 { font-size: 1.05rem; }

.prose p {
  margin-bottom: 1.2em;
}

.prose > p:first-of-type::first-letter {
  font-family: var(--font-head);
  font-size: 3.6em;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin-right: 0.08em;
  margin-top: 0.06em;
  color: var(--ink);
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover { text-decoration-thickness: 2px; }

.prose blockquote {
  border-left: 4px solid var(--ink);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--faint);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
}

.prose blockquote::before {
  content: '\201C';
  font-size: 2.5em;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 1em 0 1em 1.5em;
}

.prose li { margin-bottom: 0.4em; }

.prose figure {
  margin: 2em 0;
}

.prose figcaption {
  font-size: 0.875rem;
  color: var(--mid);
  margin-top: 0.5em;
  line-height: 1.4;
}

.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--soft);
}

.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

.prose hr {
  border: none;
  border-top: 2px solid var(--soft);
  margin: 2.5em 0;
}

.prose--about,
.prose--legal {
  column-count: 1;
}

/* ── 日期 ── */
.article-dates {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft);
  font-size: 0.875rem;
  color: var(--mid);
}

.article-byline {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 0.75rem;
  font-family: var(--font-head);
}

.article-lead {
  font-size: 1.0625rem;
  color: var(--mid);
  line-height: 1.65;
  max-width: 60ch;
  margin-bottom: 0.5rem;
}

/* ── 面包屑 ── */
.breadcrumb {
  font-family: var(--font-head);
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.breadcrumb a {
  color: var(--mid);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* ── 文章 Hero 图 ── */
.article-hero-section {
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.article-hero-figure {
  margin: 0;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--ink);
}

.article-hero-caption {
  font-size: 0.82rem;
  color: var(--mid);
  padding: 0.4rem 0;
  font-style: italic;
}

/* ── 卡片表格 ── */
.cards-table {
  width: 100%;
  border-collapse: collapse;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

.cards-table tbody {
  display: contents;
}

.card-row {
  display: contents;
}

.card-cell {
  display: block;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--paper);
  border: 1.5px solid var(--soft);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  height: 100%;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  border-color: var(--ink);
}

.card-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  display: block;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.5;
  display: block;
}

.card-meta {
  font-size: 0.78rem;
  color: var(--mid);
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-head);
}

.card-date {
  font-size: 0.78rem;
  color: var(--mid);
  font-family: var(--font-head);
  margin-top: auto;
  padding-top: 0.5rem;
  display: block;
}

.cards-table--articles {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

/* ── 子页表格 ── */
.children-table {
  width: 100%;
  border-collapse: collapse;
}

.children-table tbody {
  display: block;
}

.child-row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--soft);
}

.child-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--soft);
  line-height: 1;
  padding-top: 0.2rem;
}

.child-cell {
  display: block;
}

.child-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
}

.child-link strong {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  display: block;
  transition: text-decoration 0.15s;
}

.child-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.child-desc {
  font-size: 0.88rem;
  color: var(--mid);
  display: block;
  line-height: 1.5;
}

.child-date {
  font-size: 0.8rem;
  color: var(--mid);
  white-space: nowrap;
  font-family: var(--font-head);
  padding-top: 0.25rem;
}

/* ── FAQ 정页 특별 구역 ── */
.content-article--faq .page-content {
  max-width: var(--max-prose);
}

/* ── 文章页标题装饰（h2 前 small 眉题）── */
.content-section--article .prose h2 {
  position: relative;
}

/* ── 首页各节 ── */
.page-header-section,
.hero-section { }

/* ── About 特别样式 ── */
.content-section--about .prose {
  column-count: 2;
  column-gap: 3rem;
  column-rule: 1px solid var(--soft);
}

/* ── 页脚 ── */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  margin-top: 3rem;
}

.footer-brand-block {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 2rem var(--gap) 1.5rem;
  overflow: hidden;
}

.footer-mega-brand {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--paper);
  opacity: 0.08;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--max-wide);
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-dl {
  padding: 2rem var(--gap);
  border-right: 1px solid rgba(255,255,255,0.12);
}

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

.footer-dl dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

.footer-dl dd {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.4rem;
}

.footer-dl dd a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
  transition: color 0.2s;
}

.footer-dl dd a:hover {
  color: var(--paper);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 1rem var(--gap);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--paper);
}

/* ── 滚动揭示动画 ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* ── 移动端 ── */
@media (max-width: 900px) {
  .content-section--about .prose {
    column-count: 1;
  }

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

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

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

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-text {
    border-right: none;
    border-bottom: 2px solid var(--ink);
    padding: 2rem 0 2rem 0;
  }

  .hero-media {
    min-height: 180px;
  }

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

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

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

  .child-row {
    grid-template-columns: 2.5rem 1fr;
  }

  .child-date {
    display: none;
  }

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

@media (max-width: 480px) {
  .cards-table {
    grid-template-columns: 1fr;
  }

  .page-h1 {
    font-size: 1.6rem;
  }

  .hero-h1 {
    font-size: 1.5rem;
  }
}
