/* =============================================================
   恋恋终序 · Last Serenade — stylesheet
   Layout: Hero (fullscreen bg) + Showcase (carousel + copy) + Footer
   Palette:
     --ink:      #1d1b24   主文字（深色）
     --ink-2:    #5a5966   次文字
     --ink-3:    #8d8c98   弱化文字 / 页脚
     --cream:    #f6f3ee   展示区 / 页脚 背景
     --accent:   #d9a1b0   粉主色（App Store 按钮、dot 激活）
     --accent-2: #a99fd6   紫副色（箭头）
     --hero-ink: #ffffff   hero 文字
   ============================================================ */

:root {
  --ink: #1d1b24;
  --ink-2: #5a5966;
  --ink-3: #8d8c98;
  --cream: #f6f3ee;
  --cream-2: #ece7de;
  --accent: #d9a1b0;
  --accent-2: #a99fd6;
  --hero-ink: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; }

/* ================= HERO ================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: var(--hero-ink);
  isolation: isolate;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.hero::before {
  /* 细微暗角，让中央 Logo 更突出 */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  z-index: -1;
  pointer-events: none;
}

/* 音乐按钮 · 右上 */
.music-toggle {
  position: absolute;
  top: 25px; right: 25px;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), background 0.2s;
  transform-origin: center center;
  z-index: 5;
}
.music-toggle:hover { transform: scale(1.1); background: rgba(255, 255, 255, 0.12); }
.music-toggle img { width: 50px; height: 50px; transform-origin: center center; }
.music-toggle .music-ico-stop { display: none; }
.music-toggle[aria-pressed="true"] .music-ico-play { display: none; }
.music-toggle[aria-pressed="true"] .music-ico-stop { display: block; }
.music-toggle[aria-pressed="true"] .music-ico-stop { animation: musicSpin 6s linear infinite; }
@keyframes musicSpin {
  to { transform: rotate(360deg); }
}

/* Hero 中部：Logo + 标语 + CTA */
.hero-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: min(92%, 720px);
  animation: heroFadeUp 1.2s var(--ease) 0.2s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to   { opacity: 1; transform: translate(-50%, -55%); }
}

.hero-logo {
  width: min(92%, 560px);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.35));
}
.hero-tag {
  margin: 22px 0 36px;
  font-size: clamp(13px, 1.3vw, 16px);
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.appstore-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
  text-decoration: none;
}
.appstore-btn:hover { transform: translateY(-3px); }

.appstore-bg {
  display: block;
  width: clamp(200px, 20vw, 252px);
  height: auto;
}

/* Apple 图标 + 文字叠在胶囊中央 */
.appstore-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* 向上微调 4px，补偿 SVG 底部发光阴影占据的视觉空间 */
  padding-bottom: 4px;
  pointer-events: none;
}

.appstore-apple {
  width: 18px;
  height: auto;
  flex-shrink: 0;
  /* 图标本身是深蓝 #0C273D，与文字颜色保持一致 */
}

.appstore-label {
  font-family: -apple-system, "SF Pro Text", "Noto Sans SC", sans-serif;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
  color: #0c273d;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1;
}

/* Hero 底部一行：logo · 滚动提示 · 小红书 */
.hero-bottom {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 36px 26px;
  z-index: 3;
  pointer-events: none;
}
.hero-bottom > * { pointer-events: auto; }

.brand-lumi {
  width: 120px; height: auto;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.brand-lumi:hover { opacity: 1; }

.brand-rednote {
  width: 72px; height: auto;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  display: flex; align-items: center;
}
.brand-rednote:hover { opacity: 1; transform: translateY(-2px); }
.brand-rednote img { width: 100%; height: auto; }

/* 滚动提示 */
.scroll-hint {
  display: flex; flex-direction: row; align-items: center;
  gap: 6px;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: rgba(60, 57, 70, 0.75);
  pointer-events: none;
}
.scroll-arrow {
  font-size: 16px;
  letter-spacing: 0;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(0);   opacity: 0.5; }
  50%      { transform: translateX(5px); opacity: 1;   }
}

/* 背景图自带渐变，不需要额外叠加 */
.hero::after { display: none; }

/* ================= ENTRY OVERLAY ================= */
#entryOverlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 72px;
  background: rgba(0, 0, 0, 0.08);
  transition: opacity 0.8s var(--ease);
}
#entryOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.entry-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 0.3em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: entryPulse 2s ease-in-out infinite;
}
.entry-arrow {
  font-size: 12px;
  letter-spacing: 0;
}
@keyframes entryPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1;   }
}

/* ================= SHOWCASE ================= */
.showcase {
  background: var(--cream);
  padding: 120px 36px 100px;
  position: relative;
  margin-top: -1px;
}

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex; align-items: center;
  gap: 20px;
}

.car-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(45, 40, 60, 0.25);
  background: #d9d9d9;
}
.car-track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.car-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.car-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
}

.car-btn {
  flex: 0 0 auto;
  width: 40px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s var(--ease), opacity 0.25s;
  opacity: 0.75;
}
.car-btn:hover { opacity: 1; transform: scale(1.15); }
.car-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.car-btn img { width: 100%; height: auto; }

/* dots */
.car-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.25s var(--ease);
}
.dot:hover { background: #ddd7cb; }
.dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.15);
}

/* copy */
.showcase-copy {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 4px;
}
.showcase-title {
  font-family: "Noto Serif SC", "Noto Sans SC", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}
.showcase-desc {
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink-2);
  max-width: 620px;
  margin: 0;
}

/* ================= FOOTER ================= */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 36px 36px 40px;
  color: var(--ink-3);
  font-size: 13px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-left { align-items: flex-start; }
.footer-center { align-items: center; text-align: center; }
.footer-right { align-items: flex-end; text-align: right; }

.footer-links { display: flex; gap: 28px; }
.footer-links a {
  color: var(--ink-2);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

.footer-icp {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px;
}
.footer-icp img { width: 16px; height: 16px; object-fit: contain; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .hero-center { width: min(92%, 560px); }
  .hero-bottom { padding: 0 20px 20px; }
  .brand-lumi { width: 92px; }
  .brand-rednote { width: 56px; }
  .music-toggle { top: 18px; right: 20px; }

  .showcase { padding: 90px 24px 80px; }
  .carousel { gap: 10px; }
  .car-btn { width: 28px; height: 44px; }
  .showcase-copy { margin-top: 56px; }
}

@media (max-width: 640px) {
  .hero-tag { letter-spacing: 0.15em; margin: 16px 0 28px; }
  .appstore-bg { width: 170px; }
  .scroll-hint { font-size: 12px; }
  .scroll-hint span:first-child { display: none; } /* 移动端只留箭头 */

  .showcase { padding: 70px 18px 60px; }
  .showcase-copy { margin-top: 40px; }
  .showcase-desc { line-height: 1.9; }

  .site-footer { padding: 28px 20px 32px; font-size: 12px; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .footer-left, .footer-center, .footer-right {
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
