/* 樱花校园模拟器 · 独立视觉体系（非共用模板） */
:root {
  --ink: #1f2430;
  --ink-soft: #4a5160;
  --paper: #fff7f9;
  --blush: #ffe4ec;
  --sakura: #e85a8c;
  --sakura-deep: #c73a6e;
  --sky: #6db8e0;
  --sky-soft: #d7effa;
  --cream: #fffaf5;
  --line: rgba(31, 36, 48, 0.1);
  --shadow: 0 18px 50px rgba(199, 58, 110, 0.14);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Ma Shan Zheng", "Songti SC", serif;
  --font-ui: "Outfit", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(109, 184, 224, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 8%, rgba(232, 90, 140, 0.18), transparent 55%),
    linear-gradient(180deg, #f4fbff 0%, var(--paper) 28%, #fff 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sakura-deep);
}

.eyebrow.light {
  color: #ffd0de;
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

/* 花瓣层 */
.petal-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  overflow: hidden;
}

.petal {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 10px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, #ffb7cd, #ff7aa8);
  opacity: 0.55;
  animation: fall linear infinite;
  filter: blur(0.2px);
}

@keyframes fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(40px, 110vh, 0) rotate(360deg);
  }
}

/* 顶栏 */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 247, 249, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.topbar-inner {
  width: var(--shell);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(232, 90, 140, 0.28);
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
}

.menu a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--sakura-deep);
}

.menu-dl {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--sakura), var(--sakura-deep));
  box-shadow: 0 8px 20px rgba(232, 90, 140, 0.35);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.burger i {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger[aria-expanded="true"] i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* 首屏全幅 */
.gate {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.gate-sky {
  position: absolute;
  inset: 0;
}

.gate-sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: softZoom 18s ease-in-out infinite alternate;
}

@keyframes softZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.gate-mist {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 18, 30, 0.28) 0%, rgba(14, 18, 30, 0.38) 45%, rgba(14, 18, 30, 0.55) 100%),
    radial-gradient(ellipse 75% 60% at 50% 48%, rgba(14, 18, 30, 0.5), transparent 68%);
}

.gate-content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 5rem 0 2rem;
  max-width: 48rem;
  text-align: center;
  animation: riseIn 0.9s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gate-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-bottom: 1rem;
  text-align: left;
}

.gate-brand img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.gate-en {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 220, 232, 0.92);
}

.gate h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.2vw, 5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-shadow: 0 12px 42px rgba(0, 0, 0, 0.4);
}

.gate-line {
  margin: 0 auto 1.55rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32rem;
}

.gate-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.dl-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  background: linear-gradient(135deg, #ff7aa8, var(--sakura-deep));
  box-shadow: 0 14px 34px rgba(199, 58, 110, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(199, 58, 110, 0.5);
}

.dl-main.large {
  width: 100%;
  min-height: 58px;
  font-size: 1.05rem;
}

.dl-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-family: var(--font-ui);
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease;
}

.dl-soft:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* 介绍 */
.intro {
  padding: 5.5rem 0 4rem;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.8rem;
  align-items: center;
}

.intro-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.28;
}

.intro-copy > p {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.trust-row li {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--sakura);
  background: linear-gradient(90deg, rgba(232, 90, 140, 0.08), transparent);
  color: var(--ink-soft);
}

.trust-row strong {
  color: var(--ink);
  margin-right: 0.35rem;
}

.intro-visual {
  margin: 0;
  position: relative;
}

.intro-visual img {
  width: 100%;
  border-radius: 28px 8px 28px 8px;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.intro-visual figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-family: var(--font-ui);
}

.intro-visual::before {
  content: "";
  position: absolute;
  inset: -12px -12px auto auto;
  width: 42%;
  height: 42%;
  border: 2px solid rgba(109, 184, 224, 0.55);
  border-radius: 24px;
  z-index: -1;
}

/* 玩法长廊 */
.freedom {
  padding: 1rem 0 4.5rem;
}

.lane {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lane-item {
  padding: 1.6rem 1.25rem 1.8rem;
  border-right: 1px solid var(--line);
  transition: background 0.25s ease;
}

.lane-item:last-child {
  border-right: 0;
}

.lane-item:hover {
  background: rgba(255, 228, 236, 0.45);
}

.lane-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sky);
}

.lane-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.lane-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* 横滑蒙太奇 */
.montage {
  padding: 0 0 2rem;
}

.montage-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 34vw);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem max(1.25rem, calc((100% - 1120px) / 2 + 1.25rem));
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.montage-track figure {
  margin: 0;
  scroll-snap-align: start;
}

.montage-track img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(31, 36, 48, 0.1);
}

.montage-track figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* 截图墙 */
.shots {
  padding: 3.5rem 0 4.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.gallery-item {
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  outline: 2px solid transparent;
  transition: outline-color 0.2s ease, transform 0.2s ease;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-item:hover,
.gallery-item.is-active {
  outline-color: var(--sakura);
  transform: translateY(-2px);
}

/* 下载区 */
.download-band {
  padding: 2rem 0 4rem;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 2rem;
  padding: 2.4rem;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(109, 184, 224, 0.35), transparent 55%),
    linear-gradient(145deg, #2a3348 0%, #3d1f33 55%, #5a2340 100%);
  box-shadow: var(--shadow);
}

.download-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

.download-copy > p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.82);
}

.spec {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.spec div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.92rem;
}

.spec dt {
  color: rgba(255, 208, 222, 0.85);
}

.spec dd {
  margin: 0;
  color: #fff;
}

.download-action {
  align-self: center;
  text-align: center;
  padding: 1.6rem 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.download-icon {
  margin: 0 auto 1rem;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.dl-tip {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

/* 安装步骤 */
.guide {
  padding: 1rem 0 4rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 1.5rem 1.25rem 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sakura);
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* FAQ */
.faq {
  padding: 1rem 0 5rem;
}

.faq-layout .section-head {
  margin-bottom: 1.4rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.2rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--sakura);
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

/* 页脚 */
.foot {
  padding: 2.5rem 0 3rem;
  background: #1a1f2b;
  color: rgba(255, 255, 255, 0.72);
}

.foot-inner {
  display: grid;
  gap: 1rem;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.foot-brand img {
  border-radius: 10px;
}

.foot-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
}

.foot-brand span {
  font-size: 0.85rem;
}

.foot-note,
.foot-copy {
  margin: 0;
  font-size: 0.86rem;
}

.foot-copy {
  opacity: 0.7;
}

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(12, 16, 24, 0.86);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

/* 浮动下载 */
.float-dl {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, #ff7aa8, var(--sakura-deep));
  box-shadow: 0 12px 28px rgba(199, 58, 110, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-dl.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* 入场 */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .intro-layout,
  .download-panel,
  .lane,
  .steps,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .lane {
    border: 0;
    gap: 0.85rem;
  }

  .lane-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.65);
  }

  .lane-item:last-child {
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .burger {
    display: grid;
  }

  .menu {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(255, 247, 249, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    padding: 0.85rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .menu-dl {
    margin-top: 0.6rem;
    text-align: center;
    border-bottom: 0 !important;
  }

  .gate {
    min-height: 100svh;
  }

  .gate-content {
    padding: 4.8rem 0 1.5rem;
  }

  .gate-brand {
    gap: 0.85rem;
  }

  .gate-brand img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .gate h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .intro-layout,
  .download-panel,
  .steps,
  .gallery {
    grid-template-columns: 1fr;
  }

  .lane {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 3.5rem;
  }

  .download-panel {
    padding: 1.5rem;
  }

  .spec div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .montage-track {
    grid-auto-columns: minmax(240px, 78vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gate-sky img,
  .petal,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
