/* ========================================
   Page 1 - 首页/开篇页 专属样式
   水墨风开场，双主题展示
   ======================================== */

/* === 页面主体 === */
.index-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

/* === 水墨背景动画 === */
.index-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(44,44,44,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(44,44,44,0.04) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(212,160,23,0.03) 0%, transparent 60%);
  animation: inkBreath 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* === 主标题 === */
.index-title {
  font-family: var(--font-title);
  font-size: 56px;
  color: var(--ink-black);
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
  letter-spacing: 12px;
  font-weight: 700;
}

.index-title .title-char {
  display: inline-block;
  opacity: 0;
  animation: titleZoom 0.8s ease-out forwards;
}

.index-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  position: relative;
  z-index: 1;
  letter-spacing: 6px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

/* === 双门展示区 === */
.dual-doors {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xxl);
  flex-wrap: wrap;
}

.door {
  width: 280px;
  height: 380px;
  border-radius: var(--radius-md);
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.door-left {
  background: linear-gradient(135deg, var(--nation-deep) 0%, var(--nation-red) 50%, var(--nation-bright) 100%);
  animation-delay: 1.2s;
  box-shadow: 0 8px 32px rgba(139,0,0,0.3);
}

.door-right {
  background: linear-gradient(135deg, var(--birth-soft) 0%, var(--birth-pink) 50%, var(--birth-warm) 100%);
  animation-delay: 1.5s;
  box-shadow: 0 8px 32px rgba(232,180,184,0.3);
}

.door:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 16px 48px rgba(44,44,44,0.3);
}

.door-title {
  font-family: var(--font-title);
  font-size: 36px;
  color: var(--white);
  letter-spacing: 8px;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.door-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 4px;
}

.door-decoration {
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  margin: var(--spacing-md) 0;
}

/* === 装饰图片 === */
.index-decoration {
  position: absolute;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.index-decoration-top {
  top: 80px;
  right: 60px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.index-decoration-bottom {
  bottom: 100px;
  left: 60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
}

/* === 引言文字 === */
.index-quote {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--ink-deep);
  text-align: center;
  max-width: 600px;
  line-height: 2;
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.8s forwards;
  letter-spacing: 2px;
}

.index-quote .quote-highlight {
  color: var(--nation-red);
  font-weight: bold;
}

.index-quote .quote-birth {
  color: var(--birth-pink);
  font-weight: bold;
}

/* === 进入按钮 === */
.index-enter-btn {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 2.2s forwards;
  padding: 14px 48px;
  font-family: var(--font-title);
  font-size: 20px;
  letter-spacing: 6px;
  background: var(--ink-black);
  color: var(--paper);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(44,44,44,0.2);
}

.index-enter-btn:hover {
  background: var(--nation-deep);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(139,0,0,0.4);
  letter-spacing: 8px;
}

/* === 响应式 === */
@media (max-width: 768px) {
  .index-title {
    font-size: 36px;
    letter-spacing: 8px;
  }

  .index-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
  }

  .dual-doors {
    gap: var(--spacing-md);
  }

  .door {
    width: 220px;
    height: 300px;
  }

  .door-title {
    font-size: 28px;
    letter-spacing: 6px;
  }

  .index-quote {
    font-size: 16px;
  }

  /* 移动端保持显示装饰图（顶部适当缩小、底部保持放大后的 150px），位置收紧防止溢出 */
  .index-decoration-top {
    width: 96px;
    height: 96px;
    top: 24px;
    right: 16px;
  }

  .index-decoration-bottom {
    width: 150px;
    height: 150px;
    bottom: 24px;
    left: 16px;
  }
}

@media (max-width: 480px) {
  .index-title {
    font-size: 26px;
    letter-spacing: 3px;
  }

  .index-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  /* 双门展示区：窄屏改竖排（320px 下双门并排 160px*2+gap 会溢出） */
  .dual-doors {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
    max-width: 300px;
  }

  .door {
    width: 100%;
    height: 240px;
  }

  .door-title {
    font-size: 26px;
    letter-spacing: 5px;
  }

  .door-subtitle {
    font-size: 14px;
    letter-spacing: 2px;
  }

  .index-quote {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .index-enter-btn {
    padding: 12px 36px;
    font-size: 18px;
    letter-spacing: 4px;
  }

  /* 装饰图保持放大显示，位置进一步收紧防溢出 */
  .index-decoration-top {
    width: 80px;
    height: 80px;
    top: 12px;
    right: 8px;
  }

  .index-decoration-bottom {
    width: 150px;
    height: 150px;
    left: 8px;
    bottom: 12px;
  }
}
