﻿/* =============================================
   AniMeido 官网 — 固定装饰 + 自适应内容
   ============================================= */

:root {
  --bg: #07101f;
  --bg-deep: #04070d;
  --panel: rgba(13, 22, 38, 0.72);
  --line: rgba(150, 190, 255, 0.15);
  --text: #eaf2ff;
  --muted: rgba(234, 242, 255, 0.66);
  --muted-2: rgba(234, 242, 255, 0.42);
  --blue: #2f7dff;
  --blue-2: #66a7ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius-xl: 24px;
  --ease: cubic-bezier(.2, .9, .2, 1);
  --max-w: 1120px;
}

* { box-sizing: border-box; }

html, body {
  width: 100%; height: 100%; margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; user-select: none; -webkit-user-drag: none; }

.snap-container {
  width: 100%; height: 100vh;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: var(--bg-deep);
  -ms-overflow-style: none; scrollbar-width: none;
}
.snap-container::-webkit-scrollbar { display: none; }

.page {
  position: relative; width: 100%;
  height: 100vh; min-height: 700px;
  overflow: hidden;
  scroll-snap-align: start;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 125, 255, 0.14), transparent 34%),
    linear-gradient(120deg, #06101f 0%, #081426 48%, #050811 100%);
}

.page::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0, 0, 0, 0.32) 100%);
}

/* ======== Page 1 ======== */
.hero-inner {
  position: relative; z-index: 4;
  max-width: var(--max-w); margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 4fr 1fr;
  align-items: center;
  padding: 0 24px;
}

.app-shot {
  justify-self: start;
  width: 100%;
  max-width: none;
  margin: 0 0 0 -20vw;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.app-shot img { width: 100%; height: auto; opacity: 0.94; }

.hero-copy { justify-self: start; min-width: 280px; margin-left: -16vw; }

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 5vw, 88px);
  line-height: 0.92; letter-spacing: -0.06em;
  color: #eaf3ff;
  text-shadow: 0 12px 40px rgba(47, 125, 255, 0.18);
}

.hero-desc {
  margin: 0; color: var(--muted);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.9;
}

.hero-note {
  margin: 12px 0 0;
  color: var(--muted-2);
  font-size: clamp(12px, 0.9vw, 14px);
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 14px;
  font-size: 16px; font-weight: 650;
  transition: transform .2s ease;
}

.btn-icon-img { width: 20px; height: 20px; }
.btn-secondary .btn-icon-img { filter: brightness(0) invert(1); opacity: 0.88; }

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #377fff 0%, #1f65f2 100%);
  color: white;
  box-shadow: 0 16px 40px rgba(47, 125, 255, 0.24);
}

.btn-secondary {
  border: 1px solid rgba(210, 225, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(234, 242, 255, 0.88);
}
.btn-secondary:hover { border-color: rgba(102, 167, 255, 0.5); }

.btn-icon { font-size: 20px; line-height: 1; }

/* 看板娘 — 固定在各自页面内 */
.hero-mascot {
  position: absolute;
  right: clamp(2vw, -1vw, 40px);
  bottom: 0;
  height: 94vh;
  z-index: 3;
  pointer-events: none;
}

/* ======== Page 2 ======== */
.page-features {
  background:
    radial-gradient(circle at 12% 80%, rgba(47, 125, 255, 0.16), transparent 32%),
    linear-gradient(115deg, #07101f 0%, #0a1321 46%, #050811 100%);
}

.feature-content {
  position: relative; z-index: 4;
  max-width: var(--max-w); margin: 0 auto;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 0 0 0 min(42%, 800px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 13px; font-weight: 800;
  letter-spacing: 0.42em; text-transform: uppercase;
}

.feature-content h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1; letter-spacing: -0.05em;
  color: var(--text);
}

.feature-list { display: grid; gap: 14px; margin-top: 28px; white-space: nowrap; }

.feature-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center; gap: 18px;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px solid rgba(160, 195, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.035));
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}

.feature-icon {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(47, 125, 255, 0.14);
  color: var(--blue-2); font-weight: 800;
  border: 1px solid rgba(102, 167, 255, 0.2);
}

.feature-card h3 { margin: 0 0 4px; font-size: 17px; color: var(--text); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

/* ======== Page 3 ======== */
.page-log { background: #020407; }

.log-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 1;
}

.page-log::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(2,4,7,0.18) 0%, rgba(2,4,7,0.02) 52%, rgba(2,4,7,0.14) 100%),
    radial-gradient(circle at 18% 8%, rgba(47,125,255,0.12), transparent 26%);
}

.log-layout {
  position: relative; z-index: 4;
  max-width: var(--max-w); margin: 0 auto;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 8vh 0 0 0;
}

.log-layout .log-heading,
.log-layout .log-scroll {
  width: 70%;
  margin-left: -6vw;
}

.log-heading { margin-bottom: 24px; }
.log-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 1; letter-spacing: -0.05em;
  color: var(--text);
}

.log-scroll {
  max-height: 55vh;
  overflow-y: auto; overscroll-behavior: contain;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(102,167,255,0.72) rgba(255,255,255,0.06);
}

.log-scroll::-webkit-scrollbar { width: 8px; }
.log-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 99px; }
.log-scroll::-webkit-scrollbar-thumb { background: rgba(102,167,255,0.66); border-radius: 99px; }

.release-card {
  padding: 20px 24px;
  margin-bottom: 14px;
  border: 1px solid rgba(160,195,255,0.12);
  border-radius: 16px;
  background: rgba(9,15,25,0.78);
  backdrop-filter: blur(8px);
}

.release-head {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 12px;
}

.release-head h3 { margin: 0; color: var(--blue-2); font-size: clamp(17px, 1.4vw, 21px); }
.release-head time { color: var(--muted-2); font-size: clamp(13px, 1vw, 15px); }

.release-card ul {
  margin: 0; padding-left: 20px;
  color: rgba(234,242,255,0.78);
  line-height: 1.85;
  font-size: clamp(13px, 1vw, 15px);
}
.release-card li::marker { color: var(--blue); }

/* ======== Page Dots ======== */
.page-dots {
  position: fixed; right: 18px; top: 50%;
  z-index: 20; display: grid; gap: 12px;
  transform: translateY(-50%);
}

.dot {
  width: 9px; height: 9px; padding: 0; border: 0;
  border-radius: 99px;
  background: rgba(234,242,255,0.25);
  cursor: pointer;
  transition: height .22s ease, background .22s ease;
}
.dot.is-active { height: 28px; background: var(--blue); }

/* ======== Footer ======== */
.site-footer { display: none; }

/* ======== Animations ======== */
.reveal-left, .reveal-right, .reveal-fade { opacity: 0; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.app-shot.reveal-left { transform: translate(-64px, 0); }
.hero-mascot.reveal-right { transform: translateX(72px); }
.hero-copy.reveal-fade { transform: translateY(calc(-50% + 18px)); }
.log-layout.reveal-fade { transform: translateY(24px); }
.feature-content.reveal-fade { transform: translateY(24px); }

/* 第二页看板娘容器 */
.feature-character-wrap {
  position: absolute;
  left: -120px;
  bottom: -15vh;
  height: 100vh;
  width: 60vw;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  transform: translateX(-120px);
  transition: transform 1.2s var(--ease);
}

.feature-character-bg {
  display: none;
}

.feature-character {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

.page-features.is-active .feature-character-wrap {
  transform: translateX(0);
}

.page.is-active .reveal-left,
.page.is-active .reveal-right,
.page.is-active .reveal-fade { opacity: 1; }

.page-hero.is-active .app-shot.reveal-left { transform: translate(0, 0); }
.page-hero.is-active .hero-mascot.reveal-right { transform: translateX(0); }
.page-hero.is-active .hero-copy.reveal-fade { transform: translateY(-50%); }
.page-features.is-active .feature-content.reveal-fade { transform: translateY(0); }
.page-log.is-active .log-layout.reveal-fade { transform: translateY(0); }
.log-bg.reveal-fade { transition: opacity 2s var(--ease); }
.page-log.is-active .log-bg.reveal-fade { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .snap-container { scroll-behavior: auto; }
  .reveal-left, .reveal-right, .reveal-fade { opacity: 1; transition: none; transform: none !important; }
}

/* ======== 窄屏隐藏装饰 ======== */
@media (max-width: 1024px) {
  .hero-mascot { display: none; }
  .feature-character-wrap { display: none; }
  .hero-inner { flex-direction: column; justify-content: center; text-align: center; gap: 24px; margin-top: 40px; }
  .app-shot { flex: 0 0 auto; width: min(70vw, 460px); }
  .hero-actions { justify-content: center; }
}

@media (max-width: 640px) {
  body { overflow: auto; }
  .snap-container { scroll-snap-type: y proximity; }
  .page { min-height: auto; height: auto; padding: 80px 0 40px; scroll-snap-align: none; }

  .hero-inner { margin-top: 60px; padding: 0 20px; }
  .app-shot { width: 100%; }
  .hero-copy h1 { font-size: 36px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }

  .feature-content { padding: 0 20px; }
  .feature-list { gap: 10px; }
  .feature-card { min-height: 72px; padding: 14px 16px; grid-template-columns: 44px 1fr; gap: 14px; }
  .feature-icon { width: 40px; height: 40px; }

  .log-layout { padding: 0 20px; }
  .log-scroll { max-height: 50vh; }
  .page-dots { right: 10px; }
}


