/* ===== Home Page V2 — 沉浸式体验 ===== */

/* 首页容器覆盖：Hero区需要全屏宽度 */
.home-page {
  max-width: 100%;
  padding-bottom: 0;
  overflow-x: hidden;
}

/* 非Hero区内容限宽 */
.video-section,
.featured-section,
.entries-section,
.hot-section {
  max-width: 480px;
  margin: 0 auto;
}

/* ===== 音乐开关 ===== */
.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 300;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(91,123,138,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}
.music-toggle:active {
  transform: scale(0.9);
}
.music-toggle.playing {
  background: rgba(123,160,152,0.7);
}
.music-toggle.scrolled {
  background: rgba(91,123,138,0.85);
  border-color: rgba(255,255,255,0.1);
}

/* ===== 第一屏：Hero区 ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #2C3E50 0%, #3D5A6E 30%, #4A6A78 60%, #3D4F5F 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

/* 水波纹动画 */
.wave-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
}
.wave {
  position: absolute;
  bottom: 0;
  left: -5%;
  width: 110%;
  height: 100%;
}
.wave-1 { animation: waveFloat 8s ease-in-out infinite; }
.wave-2 { animation: waveFloat 10s ease-in-out infinite reverse; }
.wave-3 { animation: waveFloat 12s ease-in-out infinite; }

@keyframes waveFloat {
  0%, 100% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(2%) translateY(-5px); }
  50% { transform: translateX(-1%) translateY(3px); }
  75% { transform: translateX(1.5%) translateY(-3px); }
}

/* 水指器物剪影 */
.hero-vessel {
  position: absolute;
  right: -20px;
  bottom: 15%;
  opacity: 0.6;
  animation: vesselFloat 6s ease-in-out infinite;
}

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

/* 水波纹扩散 */
.ripple {
  animation: rippleExpand 4s ease-out infinite;
}
.r1 { animation-delay: 0s; }
.r2 { animation-delay: 1.3s; }
.r3 { animation-delay: 2.6s; }

@keyframes rippleExpand {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.5); }
}

/* Hero内容 */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 400px;
  color: #fff;
}

.hero-logo {
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.hero-subtitle-en {
  font-size: 14px;
  letter-spacing: 3px;
  opacity: 0.7;
  margin-bottom: 20px;
  font-weight: 300;
}

.hero-tagline {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-desc {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 1px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #7BA098, #5B7B8A);
  color: #fff;
  box-shadow: 0 4px 16px rgba(91,123,138,0.4);
  animation: breathBtn 3s ease-in-out infinite;
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-hero:active {
  transform: scale(0.96);
}

@keyframes breathBtn {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(91,123,138,0.4); }
  50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(91,123,138,0.5); }
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ===== 动效类 ===== */
.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.anim-slide-up {
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.8s ease forwards;
}

.anim-fade-in:nth-child(1) { animation-delay: 0.2s; }
.anim-slide-up:nth-child(3) { animation-delay: 0.4s; }
.anim-slide-up:nth-child(4) { animation-delay: 0.6s; }
.anim-slide-up:nth-child(5) { animation-delay: 0.8s; }
.anim-slide-up:nth-child(6) { animation-delay: 1.0s; }

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

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

/* 滚动触发动画 */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== 第二屏：视频介绍模块 ===== */
.video-section {
  padding: 40px 20px;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-header .section-title {
  text-align: center;
  padding: 0;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 8px;
  padding: 0 4px;
}

.video-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(91,123,138,0.12);
  background: #3D4F5F;
}

.video-cover {
  position: relative;
  aspect-ratio: 16/9;
  cursor: pointer;
  overflow: hidden;
}

.video-cover-art {
  width: 100%;
  height: 100%;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.video-cover:active .video-play-btn {
  transform: translate(-50%, -50%) scale(0.9);
}

.video-duration {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
}

/* 视频播放器（图文动效） */
.video-player {
  position: relative;
  aspect-ratio: 16/9;
  background: #2C3E50;
}

.video-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.slide-active {
  opacity: 1;
}

.slide-visual {
  width: 100%;
  height: 100%;
}

.slide-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.2);
}

.video-progress .progress-bar {
  height: 100%;
  background: #7BA098;
  width: 0%;
  transition: width 0.3s linear;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.video-close:active {
  background: rgba(0,0,0,0.7);
}

/* ===== 第三屏：今日推荐 ===== */
.featured-section {
  padding: 32px 20px;
  background: var(--bg);
}

.featured-section .section-title {
  margin-bottom: 16px;
  padding: 0;
}

.featured-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.featured-card {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(91,123,138,0.08);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.featured-card:active {
  transform: scale(0.97);
}

.featured-card .featured-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}

.featured-card .featured-info {
  flex: 1;
  min-width: 0;
}

.featured-card .featured-info h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.featured-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.featured-brief {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* ===== 第四屏：功能入口 ===== */
.entries-section {
  padding: 32px 20px;
  background: var(--bg);
}

.entries-section .section-title {
  margin-bottom: 16px;
  padding: 0;
}

.entries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 14px 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(91,123,138,0.08);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  position: relative;
  overflow: hidden;
}

.entry-card:active {
  transform: scale(0.97);
}

.entry-icon-wrap {
  margin-bottom: 12px;
  animation: iconFloat 2.5s ease-in-out infinite;
}

.entry-card:nth-child(1) .entry-icon-wrap { animation-delay: 0s; }
.entry-card:nth-child(2) .entry-icon-wrap { animation-delay: 0.3s; }
.entry-card:nth-child(3) .entry-icon-wrap { animation-delay: 0.6s; }
.entry-card:nth-child(4) .entry-icon-wrap { animation-delay: 0.9s; }

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

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.entry-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 第五屏：热门展品 ===== */
.hot-section {
  padding: 32px 20px 100px;
  background: var(--bg);
}

.hot-section .section-title {
  margin-bottom: 16px;
  padding: 0;
}

.hot-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.hot-scroll::-webkit-scrollbar {
  display: none;
}

.hot-card {
  flex-shrink: 0;
  width: 160px;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 14px;
  box-shadow: 0 2px 12px rgba(91,123,138,0.08);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.hot-card:active {
  transform: scale(0.97);
}

.hot-img {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.hot-info h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.hot-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== 水波纹点击效果 ===== */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(91,123,138,0.2);
  transform: scale(0);
  animation: rippleClick 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleClick {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== 空状态 ===== */
.home-page .empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.home-page .empty-state p {
  margin-bottom: 16px;
}
