/* ===== Custom Fonts ===== */
@font-face {
  font-family: 'CustomTitle';
  src: url('../字体/字体11.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'CustomTagline';
  src: url('../字体/字体4.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'CustomCenter';
  src: url('../字体/字体5.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'CustomMapText';
  src: url('../字体/字体7.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'CustomStory';
  src: url('../字体/字体8.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
@font-face {  font-family: 'CustomLoading';  src: url('../字体/字体10.otf') format('opentype');  font-weight: normal;  font-style: normal;}
  font-family: 'CustomButton';
  src: url('../字体/字体9.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2540;
  --accent: #4ea8de;
  --accent-light: #74c0fc;
  --text-dark: #1e293b;
  --text-mid: #475569;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  --nav-height: 100px;
  --transition: 0.3s ease;
}

/* ===== Scroll Trigger Animation ===== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
}

/* 逐字显示动画 */
.animate-on-scroll .char {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-on-scroll.visible .char {
  opacity: 1;
  transform: translateY(0);
}

/* 从左边切入 */
.animate-on-scroll.from-left {
  transform: translateX(-100vw);
}

.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}

/* 从右边切入 */
.animate-on-scroll.from-right {
  transform: translateX(100vw);
}

.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}

/* 从下往上切入 */
.animate-on-scroll.from-bottom {
  transform: translateY(100px);
}

.animate-on-scroll.from-bottom.visible {
  transform: translateY(0);
}

/* 从上往下切入 */
.animate-on-scroll.from-top {
  transform: translateY(-100px);
}

.animate-on-scroll.from-top.visible {
  transform: translateY(0);
}

/* 缩放动画 */
.animate-on-scroll.scale {
  transform: scale(0.9);
}

.animate-on-scroll.scale.visible {
  transform: scale(1);
}

/* 四宫格卡片从右边旋转滚入 */
.flip-cards-container .flip-card {
  opacity: 0;
  transform: translateX(500px) rotate(720deg);
  transition: all 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.flip-cards-container.visible .flip-card {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.flip-cards-container.visible .flip-card:nth-child(1) { transition-delay: 0s; }
.flip-cards-container.visible .flip-card:nth-child(2) { transition-delay: 0.5s; }
.flip-cards-container.visible .flip-card:nth-child(3) { transition-delay: 1s; }
.flip-cards-container.visible .flip-card:nth-child(4) { transition-delay: 1.5s; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'CustomStory', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: #f7efe4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

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

/* ===== Top Banner ===== */
.top-banner {
  background: var(--primary-dark);
  color: #fff;
  text-align: center;
  padding: 6px 0;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.top-banner span {
  color: var(--accent-light);
  font-weight: 600;
}

/* ===== Navbar ===== */
/* 加载状态下隐藏主页内容 */
body.loading .navbar,
body.loading .snap-scroll-container,
body.loading .section-blank,
body.loading .main-content,
body.loading .footer,
body.loading .progress-bar,
body.loading .page-1 {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 主页内容过渡效果 */
.navbar,
.snap-scroll-container,
.section-blank,
.main-content,
.footer,
.progress-bar {
  transition: opacity 0.6s ease-out;
}

/* 跳过按钮 */
.skip-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 24px;
  font-family: 'CustomButton', sans-serif;
  font-size: 1rem;
  color: #932233;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #932233;
  border-radius: 6px;
  cursor: pointer;
  z-index: 10003;
  opacity: 1;
  transition: all 0.3s ease;
}

.skip-btn:hover {
  background: #932233;
  color: #fff;
}

body:not(.loading) .skip-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

.nav-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #932233;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.nav-logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-logo .team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #932233;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2px;
  height: var(--nav-height);
}

.nav-links > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 20px;
  margin: 0 5px;
  height: auto;
  color: #932233;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 8px;
  border: none;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow:
    0 4px 0 #d0d0d0,
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.15s ease;
  transform: translateY(0);
}

.nav-links > li > a:hover {
  background: linear-gradient(145deg, #fff5f5, #ffe8e8);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 #d0d0d0,
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-links > li > a:active {
  transform: translateY(4px);
  box-shadow:
    0 0 0 #d0d0d0,
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
}

.nav-links > li.active > a {
  background: linear-gradient(145deg, #fff5f5, #ffe8e8);
  color: #932233;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #932233;
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Progress Bar ===== */
.progress-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 1001;
  height: auto;
  display: block;
  padding: 0;
}

.progress-track {
  position: relative;
  width: 100%;
  height: 10px;
  background: rgba(0,0,0,0.1);
  overflow: visible;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #932233;
  transition: width 0.1s ease-out;
}

.progress-indicator {
  position: absolute;
  top: 5px;
  left: 0;
  transform: translate(-50%, -50%);
  z-index: 1002;
  pointer-events: none;
  transition: left 0.15s ease-out;
}

.progress-indicator img {
  height: 45px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* ===== Hero Section ===== */
.hero {
  --bg-gradient: linear-gradient(180deg, #f7efe4 0%, #f7efe4 100%);
  background: var(--bg-gradient);
  color: #333;
  text-align: center;
  position: relative;
  overflow: visible;
  transition: background-color 0.3s ease-out;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  flex-direction: column;
}

/* ===== Snap Scroll Container (全屏分页滚动容器) ===== */
.snap-scroll-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.snap-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}

/* 页面状态 - 当前显示 */
.snap-page.active {
  transform: translateY(0);
}

/* 页面状态 - 在上方（已滑过） */
.snap-page.above {
  transform: translateY(-100%);
}

/* 页面状态 - 在下方（未到达） */
.snap-page.below {
  transform: translateY(100%);
}

/* Page 1 - Hero */
.page-1 {
  background: #ffc3cc;
  z-index: 2;
  transform: translateY(0);
}

/* 页面一过渡状态 - 完全固定，不移动 */
.page-1.transitioning {
  transform: translateY(0) !important;
  z-index: 1;
  transition: none !important;
}

/* 页面一保持active状态 - 确保不移动 */
.page-1.active {
  transform: translateY(0) !important;
}

.page-1.transitioning .hero-content {
  position: relative !important;
  transform: none !important;
}

.page-1.transitioning .split-title,
.page-1.transitioning .tagline {
  transform: none !important;
  opacity: 1 !important;
}

.page-1 .hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-top: 50px;
  box-sizing: border-box;
}

/* ===== Section Blank (空白页面) ===== */
.section-blank {
  min-height: 100vh;
  background: #d0eaa8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.blank-content {
  max-width: 1200px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ===== Section Newspaper (报纸页面) ===== */
.section-newspaper {
  height: 100%;
  background: #f5f0e6;
  position: relative;
  overflow: hidden;
}

/* 确保放大镜不受overflow限制 */
.section-newspaper .magnifier {
  position: fixed;
}

.newspaper-content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
}

/* 页面二 - 初始在屏幕下方 */
.newspaper-page-2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateY(100vh);
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 100;
  overflow: hidden;
}

/* 页面二激活时上滑覆盖页面一 */
.newspaper-page-2.active {
  transform: translateY(0);
  z-index: 100 !important;
}

/* 报纸下延伸2 - 作为页面二的背景，固定不动画 */
.newspaper-extension {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  /* 移除所有动画和过渡 */
}

/* 报纸堆叠容器 */
.newspaper-stack {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  max-width: 750px;
  aspect-ratio: 3 / 4;
  z-index: 10;
}

/* 单张报纸 */
.newspaper-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* 报纸图片 */
.newspaper-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
}

/* 堆叠顺序 */
.newspaper-item[data-index="1"] { z-index: 3; }
.newspaper-item[data-index="2"] { z-index: 2; }
.newspaper-item[data-index="3"] { z-index: 1; }

/* 滑出去的报纸 */
.newspaper-item.slid-out {
  transform: translateX(200%);
}

/* 放大镜 */
.magnifier {
  position: fixed;
  width: 280px;
  height: 210px;
  border-radius: 10px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3),
              inset 0 0 30px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  opacity: 0;
  z-index: 1000;
  overflow: hidden;
  transition: opacity 0.2s ease;
  cursor: none;
  display: block;
}

.magnifier.active {
  opacity: 1;
}

.magnifier img {
  position: absolute;
  max-width: none;
  transform-origin: top left;
}

/* 报纸区域光标 */
.newspaper-stack {
  cursor: zoom-in;
}


/* ===== 全屏分页滚动 ===== */
.fullpage-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.fullpage-section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 第一页：标题区域 */
.section-hero {
  background: #f7efe4;
  padding-top: var(--nav-height);
}

.section-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1400px;
  width: 100%;
  padding: 0 2rem;
}

/* 第二页：地图内容 */
.section-map {
  background: #f7efe4;
  padding-top: var(--nav-height);
}

.map-page-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 2rem;
}

.section-map .map-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding-top: 60px;
}

.section-map .title-center-map {
  width: clamp(200px, 25vw, 350px);
  height: auto;
  margin-bottom: 30px;
}

.section-map .map-side-text {
  position: absolute;
  left: calc(50% + 200px);
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-map .map-below-text {
  display: flex;
  justify-content: center;
  gap: 200px;
  margin-top: 20px;
}

.section-map .map-conclusion-text {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: #2d2d2d;
  font-family: 'CustomCenter', sans-serif;
  letter-spacing: 0.05em;
  margin-top: 30px;
}

.section-map .flip-cards-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* 地图页面文字样式 */
.section-map .map-side-text p {
  margin: 0;
  white-space: nowrap;
  font-family: 'CustomCenter', sans-serif;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: #2d2d2d;
  line-height: 1.6;
}

.section-map .map-side-text .highlight-text {
  color: #932233;
  font-weight: 700;
  font-size: 1.2em;
}

.section-map .region-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-map .region-title {
  font-family: 'CustomCenter', sans-serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: 0.05em;
}

.section-map .region-north .region-title {
  color: #932233;
}

.section-map .region-south .region-title {
  color: #41653b;
}

.section-map .region-column p {
  font-family: 'CustomCenter', sans-serif;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: #2d2d2d;
  line-height: 1.8;
  margin: 0;
  white-space: nowrap;
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.9rem;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint i {
  font-size: 1.2rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Section Climate (地图页) ===== */
.section-climate {
  min-height: 100vh;
  background: linear-gradient(135deg, #2d3142 0%, #434770 50%, #2d3142 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 4rem 80px;
  position: relative;
  overflow: hidden;
}

.climate-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1400px;
  width: 100%;
}

.climate-map {
  flex: 0 0 auto;
}

.climate-map-img {
  width: clamp(500px, 48vw, 750px);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.4));
}

.climate-text {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.climate-text p {
  font-family: 'CustomCenter', sans-serif;
  font-size: 2.6rem;
  color: #fff;
  margin: 0;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

  justify-content: center;
  gap: 20px;
  margin-top: 150px;
  margin-bottom: 60px;
  padding: 0 5%;
  width: 100%;
  box-sizing: border-box;
}

/* 翻转卡片容器 */
.flip-card {
  flex: 1;
  max-width: 420px;
  height: 180px;
  perspective: 1500px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.5s ease;
  transform-style: preserve-3d;
}

/* 悬停时：翻转并拉长 */
.flip-card:hover .flip-card-inner {
  transform: rotateX(180deg);
  height: 320px;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  box-sizing: border-box;
}

.flip-card-front {
  z-index: 2;
}

.flip-card-front h3 {
  font-size: 2.8rem;
  color: #2d3142;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.flip-card-back {
  transform: rotateX(180deg);
  height: 320px;
}

.flip-card-back p {
  font-size: 1.8rem;
  color: #2d3142;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .problem-grid {
    padding: 0 3%;
    gap: 15px;
  }

  .flip-card {
    max-width: 380px;
    height: 160px;
  }

  .flip-card:hover .flip-card-inner {
    height: 290px;
  }

  .flip-card-back {
    height: 290px;
  }
}

@media (max-width: 900px) {
  .problem-grid {
    flex-wrap: wrap;
    padding: 0 5%;
  }

  .flip-card {
    flex: 1 1 45%;
    max-width: none;
    height: 160px;
  }
}

@media (max-width: 600px) {
  .problem-grid {
    flex-direction: column;
    padding: 0 10%;
  }

  .flip-card {
    flex: none;
    width: 100%;
    height: 140px;
  }

  .flip-card:hover .flip-card-inner {
    height: 240px;
  }

  .flip-card-back {
    height: 240px;
  }
}

.problem-cta {
  margin-top: 40px;
}

.problem-cta .btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(106, 144, 100, 0.4);
  transition: all 0.3s ease;
}

.problem-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(106, 144, 100, 0.5);
}

/* ===== Section 4: Solution ===== */
/* ===== Rain Effect ===== */
.rain-container {
  position: fixed;
  top: var(--nav-height, 100px);
  left: 0;
  width: 100%;
  height: calc(100% - var(--nav-height, 100px));
  pointer-events: none;
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease-in;
}

.rain-container.active {
  opacity: 1;
}

.rain-drop {
  position: absolute;
  top: -50px;
  width: 3px;
  height: 25px;
  background: linear-gradient(to bottom, transparent, rgba(100, 149, 237, 0.9));
  animation: rain-fall linear forwards;
  opacity: 0;
  border-radius: 0 0 5px 5px;
}

@keyframes rain-fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(calc(100vh - 50px));
    opacity: 0;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(176,79,79,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(65,101,59,0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Eyes ===== */
.eyes-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 80px;
  margin-top: 180px;
}

.eye {
  width: 80px;
  height: 80px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15),
              inset 0 -5px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.pupil {
  width: 30px;
  height: 30px;
  background: radial-gradient(circle at 30% 30%, #4a4a4a, #1a1a1a);
  border-radius: 50%;
  position: absolute;
  transition: transform 0.1s ease-out;
}

.pupil::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 5px;
  left: 5px;
}

/* ===== Hero Split Animation ===== */
.split-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 1;
  font-family: 'CustomTitle', 'Georgia', 'Times New Roman', serif;
  letter-spacing: 0.05em;
  filter: url(#water-filter);
  margin-top: 0;
  position: relative;
  z-index: 20;
  transform: translateY(-20px);
  /* 初始隐藏状态 */
  opacity: 0;
  visibility: hidden;
}

.split-title .title-left,
.split-title .title-right {
  display: inline-flex;
  opacity: 1;
  transform: translateX(0);
}

.split-title .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  background-image: url('../images/樱花图2.jpg') !important;
  background-size: 200% 200% !important;
  background-position: 0% 50% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: waterWave 8s ease-in-out infinite;
}

/* 水波动态效果 */
@keyframes waterWave {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

.split-title .letter:hover {
  transform: translateY(-15px) scale(1.3);
}

/* Individual letter colors for SynMold - 使用图片背景，不需要单独颜色 */
/*
.page-1 .letter-1 { color: #a5495d; }
.page-1 .letter-2 { color: #ed828f; }
.page-1 .letter-3 { color: #e49996; }
.page-1 .letter-4 { color: #b7647e; }
.page-1 .letter-5 { color: #b96678; }
.page-1 .letter-6 { color: #e8a0b4; }
.page-1 .letter-7 { color: #f2c4cd; }
*/

/* Tagline */
.tagline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #2d2d2d;
  font-family: 'CustomTagline', 'Brush Script MT', 'Comic Sans MS', cursive;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 0;
  position: relative;
  z-index: 20;
  transform: translateY(-40px);
  /* 初始隐藏状态 */
  opacity: 0;
  visibility: hidden;
}

/* 单个翻牌卡片 */
.flip-card {
  width: 140px;
  height: 140px;
  perspective: 1000px;
  cursor: pointer;
}

/* 入场动画完成后才开始悬浮动画 */
.flip-card.anim-visible {
  animation: cardFloat 3s ease-in-out infinite;
}

/* 卡片悬浮动画 */
@keyframes cardFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 每张卡片动画延迟不同 */
.flip-card:nth-child(1) { animation-delay: 0s; }
.flip-card:nth-child(2) { animation-delay: 0.5s; }
.flip-card:nth-child(3) { animation-delay: 1s; }
.flip-card:nth-child(4) { animation-delay: 1.5s; }

/* 悬停时暂停浮动动画 */
.flip-card:hover {
  animation-play-state: paused;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* 卡片正面 - 默认圆形 */
.flip-card-front {
  background-color: var(--card-color);
  font-family: 'CustomCenter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-front {
  border-radius: 12px;
}

.flip-card-front span {
  letter-spacing: 0.15em;
}

/* 悬停时翻转显示背面 */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-back {
  background: linear-gradient(145deg, #ffffff, #f8f8f8);
  transform: rotateY(180deg);
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  align-items: flex-start;
  justify-content: flex-start;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-back {
  border-radius: 12px;
}

.flip-card-back p {
  margin: 0;
  font-family: 'CustomStory', sans-serif;
  font-size: 1.8rem;
  line-height: 1.5;
  color: #333;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.hero h1 .letter {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.hero h1 .letter:hover {
  transform: translateY(-15px) scale(1.3);
}

/* Individual letter colors for SynMold */
.hero h1 .letter-1 { color: #B04F4F; }
.hero h1 .letter-2 { color: #e79999; }
.hero h1 .letter-3 { color: #dfb59c; }
.hero h1 .letter-4 { color: #41653b; }
.hero h1 .letter-5 { color: #6a9064; }
.hero h1 .letter-6 { color: #94aaa0; }
.hero h1 .letter-7 { color: #dadaa0; }

/* Tagline split animation */
.split-tagline {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.split-tagline .tagline-left,
.split-tagline .tagline-right {
  opacity: 1;
  transform: none;
}

.hero .tagline {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #2d2d2d;
  font-family: 'CustomTagline', 'Brush Script MT', 'Comic Sans MS', cursive;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.4;
}

/* ===== Page Content ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 60px 2rem 50px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

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

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  padding: 80px 2rem;
  background: #f7efe4;
}

/* Placeholder sections */
.section-placeholder {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 100px 40px;
  text-align: center;
  margin-bottom: 60px;
  color: #666;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.section-placeholder i {
  font-size: 3rem;
  color: #6a9064;
  margin-bottom: 20px;
  display: block;
}

.section-placeholder h2 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 12px;
}

.section-placeholder p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.stat-card {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.stat-card .stat-num {
  font-size: 3rem;
  font-weight: 800;
  color: #41653b;
  display: block;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 2rem 24px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }

.footer-col ul li a {
  font-size: 0.875rem;
  display: block;
  padding: 4px 0;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1280px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a { color: var(--accent-light); }

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered text reveal */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-text.delay-1 { transition-delay: 0.1s; }
.reveal-text.delay-2 { transition-delay: 0.2s; }
.reveal-text.delay-3 { transition-delay: 0.3s; }
.reveal-text.delay-4 { transition-delay: 0.4s; }
.reveal-text.delay-5 { transition-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    gap: 0;
  }

  .nav-links.open {
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .nav-links > li {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links > li > a {
    padding: 14px 24px;
    margin: 5px 10px;
    border-radius: 8px;
    border-left: none;
  }

  .nav-links > li.active > a {
    border-left: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #ffc3cc, #d0eaa8, #9dc390);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  /* 移除自动淡出， 保持显示直到用户点击按钮 */
}

/* Loading页面向上滑出动画 */
.preloader.slide-up {
  transform: translateY(-100%);
}

/* 跳过按钮向上滑出动画 */
.skip-btn {
  transition: all 0.3s ease, transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.skip-btn.slide-up {
  transform: translateY(-100vh);
  opacity: 0;
}

@keyframes preloader-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Loading文字 - 波浪跳动效果 */
.loading-text {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'CustomLoading', sans-serif;
  font-size: 3rem;
  color: #c47b91;
  letter-spacing: 0.1em;
  z-index: 10001;
  display: flex;
  gap: 0.05em;
  opacity: 0;
  animation: loadingFadeIn 0.5s ease-out 6.3s forwards;
}

@keyframes loadingFadeIn {
  to {
    opacity: 1;
  }
}

.loading-text span {
  display: inline-block;
  animation: waveJump 1.2s ease-in-out infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }
.loading-text span:nth-child(8) { animation-delay: 0.7s; }
.loading-text span:nth-child(9) { animation-delay: 0.8s; }
.loading-text span:nth-child(10) { animation-delay: 0.9s; }

@keyframes waveJump {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* Gene X按钮向上滑出 */
.gene-x-btn {
  transition: all 0.3s ease, transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.gene-x-btn.slide-up {
  transform: translateY(-100vh);
  opacity: 0;
}

/* 樱花雨向上滑出 */
.sakura-rain {
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.sakura-rain.slide-up {
  transform: translateY(-100vh);
}

/* 树容器 - 包含所有部分 */
.tree-container {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 2763.58 / 2000;
  overflow: visible;
}

/* 树各部分基础样式 */
.tree-part {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: contain;
}

/* 树干 - 从下往上生长 */
.tree-trunk {
  animation: trunk-grow 2.5s ease-out forwards;
  transform-origin: bottom center;
}

@keyframes trunk-grow {
  0% {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* 中枝 - 最先开始 */
.tree-branch-center {
  animation: branch-grow 3s ease-out 1.5s forwards;
}

/* 左枝 - 比中枝稍晚 */
.tree-branch-left {
  animation: branch-grow 3s ease-out 1.8s forwards;
}

/* 右枝 - 最后开始 */
.tree-branch-right {
  animation: branch-grow 3s ease-out 2.1s forwards;
}

@keyframes branch-grow {
  0% {
    opacity: 1;
    clip-path: inset(100% 0 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

/* 樱花基础样式 */
.sakura {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  object-fit: contain;
  animation:
    sakura-bloom 0.8s ease-out forwards,
    sakura-sway 3s ease-in-out 7s infinite;
}

/* 樱花绽放动画 */
@keyframes sakura-bloom {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 樱花摇动效果 */
@keyframes sakura-sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(1.5deg);
  }
  75% {
    transform: rotate(-1.5deg);
  }
}

/* 樱花延迟时间 - 树枝完成后依次绽放 */
.sakura-1 { animation-delay: 5.1s; }
.sakura-2 { animation-delay: 5.2s; }
.sakura-3 { animation-delay: 5.3s; }
.sakura-4 { animation-delay: 5.4s; }
.sakura-5 { animation-delay: 5.5s; }
.sakura-6 { animation-delay: 5.6s; }
.sakura-7 { animation-delay: 5.7s; }
.sakura-8 { animation-delay: 5.8s; }
.sakura-9 { animation-delay: 5.9s; }
.sakura-10 { animation-delay: 6s; }
.sakura-11 { animation-delay: 6.1s; }
.sakura-12 { animation-delay: 6.2s; }
.sakura-13 { animation-delay: 6.3s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== 樱花雨效果 ===== */
.sakura-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  animation:
    sakura-rain-appear 1s ease-out 6.5s forwards,
    sakura-rain-fade-out 0.8s ease-out 26s forwards;
}

@keyframes sakura-rain-appear {
  to { opacity: 1; }
}

@keyframes sakura-rain-fade-out {
  to { opacity: 0; }
}

.falling-petal {
  position: absolute;
  top: -100px;
  height: auto;
  opacity: 0;
  animation: sakura-fall linear infinite;
  will-change: transform;
}

/* 樱花飘落动画 - 往右下角飘 */
@keyframes sakura-fall {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotate(0deg) translateX(0);
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(calc(100vh + 100px)) rotate(720deg) translateX(var(--sway, 300px));
  }
}

/* 为每个花瓣设置不同的位置、大小、速度和延迟 - 统一向右飘 */
.falling-petal:nth-child(1) { left: 5%; width: 360px; animation-delay: 0s; animation-duration: 8s; --sway: 350px; }
.falling-petal:nth-child(2) { left: 12%; width: 300px; animation-delay: 0.5s; animation-duration: 10s; --sway: 280px; }
.falling-petal:nth-child(3) { left: 20%; width: 400px; animation-delay: 1s; animation-duration: 7s; --sway: 400px; }
.falling-petal:nth-child(4) { left: 28%; width: 320px; animation-delay: 1.5s; animation-duration: 9s; --sway: 320px; }
.falling-petal:nth-child(5) { left: 35%; width: 380px; animation-delay: 0.3s; animation-duration: 11s; --sway: 250px; }
.falling-petal:nth-child(6) { left: 42%; width: 280px; animation-delay: 2s; animation-duration: 8s; --sway: 380px; }
.falling-petal:nth-child(7) { left: 50%; width: 350px; animation-delay: 0.8s; animation-duration: 10s; --sway: 300px; }
.falling-petal:nth-child(8) { left: 58%; width: 330px; animation-delay: 1.2s; animation-duration: 9s; --sway: 260px; }
.falling-petal:nth-child(9) { left: 65%; width: 420px; animation-delay: 0.6s; animation-duration: 7s; --sway: 350px; }
.falling-petal:nth-child(10) { left: 72%; width: 290px; animation-delay: 1.8s; animation-duration: 11s; --sway: 220px; }
.falling-petal:nth-child(11) { left: 8%; width: 340px; animation-delay: 2.5s; animation-duration: 8s; --sway: 400px; }
.falling-petal:nth-child(12) { left: 15%; width: 310px; animation-delay: 3s; animation-duration: 10s; --sway: 340px; }
.falling-petal:nth-child(13) { left: 25%; width: 370px; animation-delay: 2.2s; animation-duration: 9s; --sway: 290px; }
.falling-petal:nth-child(14) { left: 32%; width: 260px; animation-delay: 3.5s; animation-duration: 12s; --sway: 380px; }
.falling-petal:nth-child(15) { left: 40%; width: 390px; animation-delay: 2.8s; animation-duration: 8s; --sway: 270px; }



/* Gene X 按钮 - 和导���栏按钮样式一致 */
.gene-x-btn {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 50px;
  font-family: 'CustomButton', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #932233;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 10002;
  box-shadow:
    0 4px 0 #d0d0d0,
    0 6px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.gene-x-btn:hover {
  background: linear-gradient(145deg, #fff5f5, #ffe8e8);
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow:
    0 6px 0 #d0d0d0,
    0 8px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.gene-x-btn:active {
  transform: translate(-50%, -50%) translateY(4px);
  box-shadow:
    0 0 0 #d0d0d0,
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: linear-gradient(145deg, #f0f0f0, #e8e8e8);
}

.gene-x-text {
  letter-spacing: 4px;
}

/* ===== 页面一蒙版���画 ===== */
/* 蒙版动画容器 - 相对于页面一定位 */
.mask-animation-container {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

.mask-animation-container img {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* 报纸上 - 从上方切入，上边缘贴合页面顶部 */
.mask-newspaper-top img {
  top: 35px;
}

.mask-newspaper-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
}

.mask-newspaper-top.animate {
  animation: maskRevealFromTop 1.2s ease-out forwards;
}

@keyframes maskRevealFromTop {
  0% {
    clip-path: inset(0 0 100% 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* 报纸下 - 从下方切入，上边缘贴合页面顶部 */
.mask-newspaper-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
  opacity: 0;
  z-index: 40;
  transition: transform 1.4s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.5s ease;
}

.mask-newspaper-bottom.animate {
  animation: maskRevealFromBottom 1.2s ease-out forwards;
}

/* 报纸下上滑覆盖动画 */
.mask-newspaper-bottom.slide-up {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: translateY(-100vh);
}

@keyframes maskRevealFromBottom {
  0% {
    clip-path: inset(100% 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* 树枝上 - 从右边页面外延伸进来 */
.mask-branch-top {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 0 0 100%);
  opacity: 0;
}

.mask-branch-top.animate {
  animation: branchGrowFromRight 2.5s ease-out forwards;
}

@keyframes branchGrowFromRight {
  0% {
    clip-path: inset(0 0 0 100%);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* 树枝下 - 从左边页面外延伸进来 */
.mask-branch-bottom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
}

.mask-branch-bottom.animate {
  animation: branchGrowFromLeft 2.5s ease-out forwards;
}

@keyframes branchGrowFromLeft {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

/* 报纸樱花 - 淡入 */
/* 樱花容器 - 透明渐变 - 最高层级 */
.mask-sakura-newspaper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 60;
}

.mask-sakura-newspaper.animate {
  opacity: 1;
}

/* 樱花图片通用样式 */
.sakura-flower {
  opacity: 0;
  transform-origin: center center;
  will-change: transform;
}

/* 花朵淡入 */
.mask-sakura-newspaper.animate .sakura-flower {
  animation: sakuraFadeIn 1s ease-out forwards;
}

/* 每朵花独立的动画 - 非常轻微的呼吸感 */
.mask-sakura-newspaper.animate .flower-1 {
  animation: sakuraFadeIn 0.9s ease-out forwards, sakuraBreathe1 7s ease-in-out 0.8s infinite;
}
.mask-sakura-newspaper.animate .flower-2 {
  animation: sakuraFadeIn 0.9s ease-out 0.1s forwards, sakuraBreathe2 6.5s ease-in-out 1.1s infinite;
}
.mask-sakura-newspaper.animate .flower-3 {
  animation: sakuraFadeIn 0.9s ease-out 0.2s forwards, sakuraBreathe1 7.5s ease-in-out 0.9s infinite;
}
.mask-sakura-newspaper.animate .flower-4 {
  animation: sakuraFadeIn 0.9s ease-out 0.15s forwards, sakuraBreathe2 6.8s ease-in-out 1.2s infinite;
}
.mask-sakura-newspaper.animate .flower-5 {
  animation: sakuraFadeIn 0.9s ease-out 0.25s forwards, sakuraBreathe1 7.2s ease-in-out 1s infinite;
}
.mask-sakura-newspaper.animate .flower-6 {
  animation: sakuraFadeIn 0.9s ease-out 0.3s forwards, sakuraBreathe2 6.3s ease-in-out 0.85s infinite;
}
.mask-sakura-newspaper.animate .flower-7 {
  animation: sakuraFadeIn 0.9s ease-out 0.35s forwards, sakuraBreathe1 7.8s ease-in-out 1.15s infinite;
}

@keyframes sakuraFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 呼吸动画1 - 极轻微的漂浮感 */
@keyframes sakuraBreathe1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(0.5px, -0.8px) rotate(0.3deg);
  }
  50% {
    transform: translate(-0.3px, 0.5px) rotate(-0.2deg);
  }
  75% {
    transform: translate(0.4px, -0.3px) rotate(0.2deg);
  }
}

/* 页面一特殊元素跟随页面二上滑的动画 */
.slide-out-with-page2 {
  /* 使用transition替代animation，避免与原有动画冲突 */
  transition: transform 2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;
  transform: translateY(-100vh) !important;
  z-index: 50 !important;
  /* 确保元素可见 */
  clip-path: inset(0 0 0 0) !important;
  opacity: 1 !important;
}

/* 临时重置类 - 用于从页面二返回页面一时重置元素位置 */
.mask-newspaper-top.reset-position,
.mask-newspaper-bottom.reset-position,
.mask-branch-top.reset-position,
.mask-branch-bottom.reset-position,
.mask-sakura-newspaper.reset-position {
  transform: translateY(0) !important;
  transition: none !important;
  /* 恢复到 animate 类的最终状态 */
  clip-path: inset(0 0 0 0) !important;
  opacity: 1 !important;
}

@keyframes slideOutWithPage2 {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100vh);
  }
}

/* 呼吸动画2 - 极轻微的漂浮感（不同节奏） */
@keyframes sakuraBreathe2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(-0.6px, 0.4px) rotate(-0.25deg);
  }
  66% {
    transform: translate(0.3px, -0.6px) rotate(0.35deg);
  }
}

/* 花瓣飘落效果 */
.sakura-petals {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 19;
  overflow: hidden;
}

.sakura-petal {
  position: absolute;
  width: 15px;
  height: 15px;
  background: radial-gradient(ellipse at center, #ffb7c5 0%, #ffc0cb 50%, #ffd1dc 100%);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  animation: petalFall 6s ease-in-out infinite;
}

@keyframes petalFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg) translateX(0);
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg) translateX(100px);
  }
}

/* 页面一标题和副标题 - 初始隐藏 */
.page-1.hide-content .split-title,
.page-1.hide-content .tagline {
  opacity: 0;
  visibility: hidden;
}

/* 页面一标题显示动画 */
.page-1.show-content .split-title {
  opacity: 1;
  visibility: visible;
  animation: fadeInUpTitle 0.8s ease-out 0.2s both;
}

.page-1.show-content .tagline {
  opacity: 1;
  visibility: visible;
  animation: fadeInUpTagline 0.8s ease-out 0.4s both;
}

@keyframes fadeInUpTitle {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(-20px);
  }
}

@keyframes fadeInUpTagline {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(-40px);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 装饰元素z-index层级调整 ===== */
/* 层级从高到低：报纸樱花 > 树枝下 > 报纸下 > 主标题 > 报纸上和树枝上 */

/* 标题和副标题 - 最上层 */
.split-title {
  z-index: 50 !important;
}

.tagline {
  z-index: 50 !important;
}

/* 报纸樱花 - 最高层级 */
.mask-sakura-newspaper {
  z-index: 40 !important;
}

/* 树枝下 - 第二高 */
.mask-branch-bottom {
  z-index: 35 !important;
}

/* 报纸下 - 第三 */
.mask-newspaper-bottom {
  z-index: 20 !important;
}

/* 报纸上和树枝上 - 最底层 */
.mask-newspaper-top,
.mask-branch-top {
  z-index: 10 !important;
}
