/* =====================================================================
   AI电子礼簿 — 纯粹极简中国水墨画官网（墨分五色 · 计白当黑 · 零卡片）
   色板严格收敛为 3 色：宣纸 #F7F5F0 / 浓淡墨 #121212 / 一点朱砂 #B5221B
   ===================================================================== */
:root {
  --paper: #f7f5f0;
  --paper-alt: #f1eee7;
  --ink: #121212;
  --ink-mid: #4a4a48;
  --ink-light: #82807a;
  --ink-faint: rgba(18, 18, 18, 0.1);
  --seal: #b5221b;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --brush: "Ma Shan Zheng", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: min(1160px, calc(100% - 72px));
  margin: 0 auto;
}

/* ==================== 极简一字墨线导航 ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink-faint);
}

.nav-inner {
  width: min(1160px, calc(100% - 72px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  background: var(--seal);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.brand-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-mid);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--seal);
  border-bottom: 1.5px solid var(--seal);
  padding-bottom: 2px;
  font-weight: 500;
}

/* ==================== 序幕：纯黑白水墨留白全屏首屏 ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-ink-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

/* 转为纯粹黑白水墨山水画 */
.hero-ink-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  filter: grayscale(100%) contrast(1.16) brightness(1.03);
  opacity: 0.88;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.92) 0%, rgba(247, 245, 240, 0.55) 45%, rgba(247, 245, 240, 0.08) 100%),
    linear-gradient(180deg, rgba(247, 245, 240, 0.35) 0%, transparent 25%, rgba(247, 245, 240, 0.72) 84%, var(--paper) 100%);
}

.hero-canvas {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 72px));
  margin: 0 auto;
  padding-top: 60px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 64px;
  min-height: 68vh;
}

.hero-left {
  max-width: 460px;
  padding-bottom: 32px;
}

.hero-epigraph {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 6px;
  color: var(--ink-light);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-mid);
  line-height: 2.1;
  margin-bottom: 44px;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.link-seal {
  padding: 13px 32px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 4px;
  transition: background 0.25s ease;
}

.link-seal:hover {
  background: var(--seal);
}

.link-ink {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-mid);
  border-bottom: 1px solid var(--ink-mid);
  padding-bottom: 4px;
}

.hero-right {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 48px;
}

.vertical-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.vertical-title {
  writing-mode: vertical-rl;
  font-family: var(--brush);
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 400;
  letter-spacing: 16px;
  line-height: 1;
  color: var(--ink);
}

.vertical-seal {
  width: 38px;
  height: 38px;
  background: var(--seal);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.vertical-seal.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
  margin-bottom: 20px;
}

.vertical-poem {
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 8px;
  color: var(--ink-light);
  padding-top: 12px;
}

/* ==================== 美术馆式功能展陈（零卡片、大留白） ==================== */
.exhibit {
  padding: 128px 0;
  border-top: 1px solid var(--ink-faint);
}

.exhibit.alt {
  background: var(--paper-alt);
}

.exhibit-inner {
  width: min(1160px, calc(100% - 72px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.exhibit-inner.reverse .exhibit-text {
  order: 2;
}

.exhibit-inner.reverse .exhibit-screens {
  order: 1;
}

.chapter-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chapter-num {
  font-family: var(--brush);
  font-size: 40px;
  line-height: 1;
  color: var(--seal);
}

.chapter-tag {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--ink-light);
  border-left: 1px solid var(--ink-faint);
  padding-left: 14px;
}

.exhibit-text h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 2px;
  margin-bottom: 24px;
  color: var(--ink);
}

.exhibit-text p {
  font-size: 15px;
  color: var(--ink-mid);
  margin-bottom: 32px;
  line-height: 2;
}

.ink-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--ink-faint);
  padding-top: 22px;
}

.ink-list span {
  font-size: 14px;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.ink-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--seal);
}

/* 无粗黑壳：纯净悬浮实拍 */
.exhibit-screens {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.screen-shot {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-shot.offset {
  margin-top: 44px;
}

.screen-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(18, 18, 18, 0.1);
  border: 1px solid rgba(18, 18, 18, 0.08);
}

.screen-shot figcaption {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-light);
  text-align: center;
}

/* ==================== 卷伍：全场景画廊与红底 PDF 特展 ==================== */
.gallery-section {
  padding: 128px 0;
  border-top: 1px solid var(--ink-faint);
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.section-sub {
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: 1px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 96px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(18, 18, 18, 0.09);
  border: 1px solid rgba(18, 18, 18, 0.08);
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: translateY(-6px);
}

.gallery-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-item strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
}

.gallery-item span {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.6;
}

/* 横屏特展：传统电子礼簿（自然原图比例，零白边填充） */
.ebook-spread {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding-top: 72px;
  border-top: 1px solid var(--ink-faint);
}

.ebook-info h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 14px 0 18px;
}

.ebook-info p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 2;
  margin-bottom: 28px;
}

.pdf-samples {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pdf-sample-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--ink-faint);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.pdf-sample-link:hover {
  border-color: var(--ink);
  background: #ffffff;
  transform: translateX(4px);
}

.pdf-sample-link.wedding:hover {
  border-color: var(--seal);
}

.sample-seal {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: var(--paper);
}

.sample-seal.red {
  background: var(--seal);
}

.sample-seal.ink {
  background: var(--ink);
}

.sample-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sample-text strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}

.sample-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-light);
  letter-spacing: 1px;
}

.ebook-image-wrap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(18, 18, 18, 0.1);
  box-shadow: 0 24px 56px rgba(18, 18, 18, 0.12);
}

/* ==================== 卷陆：三栏水墨清册（隐私） ==================== */
.privacy-section {
  padding: 120px 0;
  background: var(--paper-alt);
  border-top: 1px solid var(--ink-faint);
}

.ink-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink-faint);
}

.ink-col {
  padding: 40px 36px 40px 0;
  margin-right: 36px;
  border-right: 1px solid var(--ink-faint);
}

.ink-col:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.col-index {
  display: block;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--seal);
  margin-bottom: 18px;
}

.ink-col h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.ink-col p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.9;
}

/* ==================== 尾跋：水墨远山与扫码启卷 ==================== */
.epilogue {
  position: relative;
  padding: 130px 0 64px;
  overflow: hidden;
  border-top: 1px solid var(--ink-faint);
}

.epilogue-ink {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.epilogue-ink-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  opacity: 0.22;
}

.epilogue-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(247, 245, 240, 0.5) 50%, rgba(247, 245, 240, 0.92) 100%);
}

.epilogue-body {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}

.epilogue-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.epilogue-body p {
  font-size: 14px;
  color: var(--ink-light);
  letter-spacing: 2px;
  margin-bottom: 36px;
}

.qr-box {
  width: 210px;
  height: 210px;
  margin: 0 auto 72px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(18, 18, 18, 0.14);
}

.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--ink-faint);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-light);
}

/* 柔和显影 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== 响应式 ==================== */
@media (max-width: 960px) {
  .hero-canvas {
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 36px;
  }

  .hero-right {
    padding-bottom: 0;
  }

  .exhibit-inner,
  .ebook-spread {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .exhibit-inner.reverse .exhibit-text,
  .exhibit-inner.reverse .exhibit-screens {
    order: initial;
  }

  .gallery-row {
    grid-template-columns: 1fr 1fr;
  }

  .ink-columns {
    grid-template-columns: 1fr;
  }

  .ink-col {
    border-right: none;
    border-bottom: 1px solid var(--ink-faint);
    margin-right: 0;
    padding: 28px 0;
  }

  .ink-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .wrap, .nav-inner, .hero-canvas, .exhibit-inner {
    width: calc(100% - 40px);
  }

  .nav-links {
    display: none;
  }

  .exhibit {
    padding: 80px 0;
  }

  .screen-shot.offset {
    margin-top: 0;
  }

  .gallery-row {
    grid-template-columns: 1fr;
  }
}
