@font-face { font-family: "Noto Serif SC"; font-weight: 600; font-display: swap; src: url(/play/fonts/noto-serif-sc-600.woff2) format("woff2"); }
@font-face { font-family: "Noto Serif SC"; font-weight: 900; font-display: swap; src: url(/play/fonts/noto-serif-sc-900.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --sky-1: #cfe8f7;
  --sky-2: #eef7fc;
  --cream: #fff8ea;
  --cream-2: #fbefd6;
  --wood: #8a5530;
  --wood-dark: #5c3518;
  --honey: #f4c35a;
  --leaf: #6db347;
  --leaf-dark: #3f7d25;
  --ink: #4a2e1a;
  --ink-soft: #7a5a40;
  --radius: 22px;
  --title: "Noto Serif SC", "Songti SC", "STSong", serif;
  --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-family: var(--title); font-weight: 900; }
.btn, .tabs button, .nav-brand, .steps b, .chips li, .age { font-family: var(--title); }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 24px;
  padding: 6px max(16px, calc((100vw - 1160px) / 2));
  background: rgba(255, 248, 234, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 85, 48, .12);
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 18px; text-decoration: none; color: var(--wood-dark); }
.nav-brand img { height: 56px; width: auto; filter: drop-shadow(0 3px 4px rgba(92, 53, 24, .2)); transition: transform .2s; }
.nav-brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 900 16px var(--title); color: var(--wood); }
.nav-links a:hover { color: var(--wood-dark); }

/* 木牌按钮：绿色主按钮，蜂蜜色次按钮 */
.btn {
  --b: var(--leaf); --bd: var(--leaf-dark); --t: #fffbea;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--b) 80%, white) 0%, var(--b) 55%);
  color: var(--t); font-weight: 900; text-decoration: none; letter-spacing: .04em;
  border: 3px solid var(--wood-dark);
  box-shadow: 0 5px 0 var(--bd), 0 8px 18px rgba(92, 53, 24, .25), inset 0 2px 0 rgba(255, 255, 255, .45);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .18);
  transition: transform .12s, box-shadow .12s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--bd), 0 4px 10px rgba(92, 53, 24, .25); }
.btn-alt { --b: var(--honey); --bd: #c48a22; --t: var(--wood-dark); text-shadow: none; }
.btn-lg { padding: 14px 30px; font-size: 20px; border-radius: 20px; }
.btn-sm { padding: 6px 16px; font-size: 15px; border-width: 2px; box-shadow: 0 3px 0 var(--leaf-dark); }
.is-soon { cursor: default; opacity: .9; }
.is-soon:hover { transform: none; }

/* 首屏 */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  min-height: calc(100vh - 56px);
  padding: 48px max(16px, calc((100vw - 1160px) / 2)) 64px;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(255, 255, 255, .9), transparent 55%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 70%, var(--cream) 100%);
}
.hero-copy { position: relative; z-index: 2; }
.logo { width: min(460px, 90%); filter: drop-shadow(0 10px 18px rgba(92, 53, 24, .2)); margin-left: -12px; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; color: var(--wood-dark); margin: 14px 0 10px; letter-spacing: .02em; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 30em; margin: 0 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hint { font-size: 14px; color: var(--ink-soft); opacity: .8; margin-top: 18px; }

.hero-art { position: relative; justify-self: center; z-index: 2; }
.phone {
  width: min(330px, 70vw); aspect-ratio: 9 / 16; border-radius: 40px; overflow: hidden;
  border: 10px solid #fff; background: #fff;
  box-shadow: 0 30px 60px rgba(62, 100, 140, .28), 0 0 0 2px rgba(92, 53, 24, .08);
  transform: rotate(3deg);
  animation: bob 6s ease-in-out infinite;
}
.phone { position: relative; }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1d0818; }
/* 手机里的“点我试玩”：桌面上直接在首屏玩，手机上跳到全屏 /play/ */
.phone-play {
  position: absolute; left: 50%; bottom: 22%; translate: -50% 0;
  display: flex; align-items: center; gap: 10px; cursor: pointer; white-space: nowrap;
  padding: 12px 26px 12px 16px; border-radius: 20px;
  font: 900 22px var(--title); color: #fffbea; text-shadow: 0 2px 0 rgba(0, 0, 0, .2);
  background: linear-gradient(180deg, #92cc6c, var(--leaf) 55%); border: 3px solid var(--wood-dark);
  box-shadow: 0 5px 0 var(--leaf-dark), 0 10px 24px rgba(0, 0, 0, .25);
  animation: pulse 1.8s ease-in-out infinite;
}
.pp-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fffbea; color: var(--leaf-dark); font-size: 16px; text-shadow: none; padding-left: 3px; }
@keyframes pulse { 50% { scale: 1.06; } }
.phone-full { display: none; margin-top: 18px; text-align: center; font: 900 15px var(--title); color: var(--wood); text-decoration: none; }
.phone-full:hover { text-decoration: underline; }
.hero.is-playing .phone { transform: none; animation: none; width: min(380px, 70vw); }
.hero.is-playing .phone-full { display: block; }
.hero.is-playing .lamb-win { display: none; }
.hero.is-playing .hero-art { z-index: 35; }   /* 玩的时候飘落的花瓣不挡游戏 */
@keyframes bob { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-14px); } }

/* 小羊精灵：每帧 128×144 */
.lamb { width: 128px; height: 144px; background-repeat: no-repeat; image-rendering: auto; }
.lamb-win { position: absolute; left: -96px; bottom: 20px; background-image: url(/img/lamb_win.webp); background-size: 1024px 144px; animation: cheer .45s steps(3) infinite; transform: scale(1.15); }
@keyframes cheer { from { background-position: -640px 0; } to { background-position: -1024px 0; } }
.lamb-walk { flex: none; background-image: url(/img/lamb_walk.webp); background-size: 768px 144px; animation: walk .7s steps(6) infinite; transform: scale(1.4); transform-origin: bottom center; }
@keyframes walk { from { background-position: 0 0; } to { background-position: -768px 0; } }

.cloud { position: absolute; z-index: 1; opacity: .85; pointer-events: none; }
.c1 { width: 340px; top: 8%; left: -80px; animation: drift 38s linear infinite; }
.c2 { width: 260px; bottom: 10%; right: -60px; animation: drift 46s linear infinite reverse; }
@keyframes drift { 0% { translate: 0 0; } 50% { translate: 60px -10px; } 100% { translate: 0 0; } }

/* 区块 */
.band { padding: 88px 16px; position: relative; }
.band-cream { background: var(--cream); }
.band-sky { background: linear-gradient(180deg, var(--sky-2), var(--sky-1)); }
.wrap { max-width: 1160px; margin: 0 auto; }
.sub { text-align: center; color: var(--ink-soft); margin: 10px 0 40px; }

/* 标题木牌 */
.sign {
  display: table; margin: 0 auto; padding: 8px 34px 10px;
  font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: #fff8e6; letter-spacing: .08em;
  background: linear-gradient(180deg, #b0743f, var(--wood) 60%, #774523);
  border: 3px solid var(--wood-dark); border-radius: 14px;
  box-shadow: 0 6px 0 var(--wood-dark), 0 10px 20px rgba(92, 53, 24, .2), inset 0 2px 0 rgba(255, 255, 255, .3);
  text-shadow: 0 2px 0 var(--wood-dark);
  position: relative;
}
.sign::before { content: ""; position: absolute; left: 18px; right: 18px; top: -10px; height: 10px; background: linear-gradient(90deg, #7fbf4f, #5ea33a); border-radius: 8px 8px 0 0; opacity: .9; }

/* 怎么玩 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  background: #fff; border-radius: var(--radius); padding: 28px 24px 26px; text-align: center;
  box-shadow: 0 2px 0 var(--cream-2), 0 14px 30px rgba(138, 85, 48, .1);
  border: 2px solid var(--cream-2);
}
.steps li::before {
  content: counter(s); position: absolute; top: -16px; left: 50%; translate: -50% 0;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--honey); color: var(--wood-dark); font-weight: 900; border: 3px solid var(--wood-dark);
}
.steps img { height: 104px; width: auto; margin: 6px auto 10px; object-fit: contain; }
.steps b { display: block; font-size: 20px; color: var(--wood-dark); margin-bottom: 6px; }
.steps span { color: var(--ink-soft); font-size: 15px; }
.chips { list-style: none; padding: 0; margin: 40px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { padding: 6px 16px; border-radius: 999px; background: #fff; border: 2px dashed #e3c99c; color: var(--wood); font-weight: 600; font-size: 14px; }

/* 四季 */
.seasons { position: relative; padding: 88px 16px; overflow: hidden; min-height: 720px; }
.season-bg { position: absolute; inset: 0; background-size: cover; background-position: center 70%; transition: opacity .5s; }
.season-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 248, 234, .9), rgba(255, 248, 234, .35) 35%, rgba(255, 248, 234, .1)); }
.seasons[data-season="spring"] .season-bg { background-image: url(/img/bg_spring.webp); }
.seasons[data-season="summer"] .season-bg { background-image: url(/img/bg_summer.webp); }
.seasons[data-season="autumn"] .season-bg { background-image: url(/img/bg_autumn.webp); }
.seasons[data-season="winter"] .season-bg { background-image: url(/img/bg_winter.webp); }
.seasons .wrap { position: relative; }
.seasons .sub { color: var(--ink); }
.tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs button {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  font: 900 18px var(--title); color: var(--wood-dark);
  padding: 8px 20px 8px 12px; border-radius: 16px;
  background: rgba(255, 248, 234, .92); border: 3px solid var(--wood-dark);
  box-shadow: 0 4px 0 var(--wood-dark);
  transition: transform .12s, background .2s;
}
.tabs button img { width: 32px; height: 32px; }
.tabs button[aria-selected="true"] { background: var(--honey); transform: translateY(2px); box-shadow: 0 2px 0 var(--wood-dark); }
.season-card {
  display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center;
  max-width: 820px; margin: 0 auto; padding: 28px;
  background: rgba(255, 248, 234, .9); border-radius: 28px; border: 3px solid rgba(138, 85, 48, .35);
  box-shadow: 0 20px 50px rgba(62, 60, 40, .2);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.shot { width: 260px; border-radius: 26px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); }
.shot img { width: 100%; transition: opacity .25s; }
.season-text h3 { font-size: 34px; color: var(--wood-dark); margin-bottom: 12px; }
.season-text p { font-size: 18px; margin: 0 0 12px; }
.season-level { color: var(--ink-soft); font-size: 15px !important; }

/* 模式 */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.mode {
  background: linear-gradient(180deg, #fffdf6, var(--cream)); border-radius: var(--radius); padding: 30px 26px;
  border: 3px solid #e7cfa3; box-shadow: 0 6px 0 #e2c48f, 0 18px 30px rgba(62, 100, 140, .12);
}
.mode img { width: 56px; height: 56px; margin-bottom: 12px; }
.mode h3 { font-size: 22px; color: var(--wood-dark); margin-bottom: 8px; }
.mode p { margin: 0; color: var(--ink-soft); }

/* 截图轮播：当前一张放大居中，两侧缩小变淡；自动播放，可滑动/箭头/圆点切换 */
.carousel { position: relative; }
.gallery {
  display: flex; align-items: center; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px calc(50vw - 130px) 30px; scrollbar-width: none; scroll-behavior: smooth;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img {
  flex: none; width: 260px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; scroll-snap-align: center;
  border-radius: 26px; border: 6px solid #fff; box-shadow: 0 12px 28px rgba(138, 85, 48, .18);
  transform: scale(.82); opacity: .55; transition: transform .45s, opacity .45s, box-shadow .45s;
}
.gallery img.is-active { transform: scale(1); opacity: 1; box-shadow: 0 22px 44px rgba(138, 85, 48, .28); }
.car-ctrl { display: flex; align-items: center; justify-content: center; gap: 20px; }
.car-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%; cursor: pointer;
  font: 900 34px/1 var(--title); color: var(--wood-dark); padding-bottom: 4px;
  background: var(--honey); border: 3px solid var(--wood-dark); box-shadow: 0 4px 0 var(--wood-dark);
}
.car-btn:active { translate: 0 3px; box-shadow: 0 1px 0 var(--wood-dark); }
.dots { display: flex; justify-content: center; gap: 10px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 999px; border: 2px solid var(--wood); background: transparent; cursor: pointer; transition: width .3s, background .3s; }
.dots button[aria-selected="true"] { width: 30px; background: var(--wood); }

/* 背景音乐开关（右下角木牌圆钮） */
.music {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font: 900 24px/1 var(--title); color: var(--wood-dark);
  background: var(--cream); border: 3px solid var(--wood-dark); box-shadow: 0 4px 0 var(--wood-dark), 0 8px 16px rgba(92, 53, 24, .25);
}
.music::after { content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 3px; background: var(--wood-dark); border-radius: 2px; rotate: -45deg; translate: -50% -50%; }
.music[aria-pressed="true"] { background: var(--honey); }
.music[aria-pressed="true"]::after { display: none; }
.music[aria-pressed="true"] .music-ic { display: inline-block; animation: note 1.2s ease-in-out infinite; }
@keyframes note { 50% { transform: translateY(-3px) rotate(-8deg); } }

/* 角色 */
.meet-inner { display: flex; align-items: center; gap: 56px; max-width: 760px; }
.meet-inner .sign { margin: 0 0 16px; }
.meet p { font-size: 17px; margin: 0; }

/* 结尾 */
.final {
  text-align: center; padding: 90px 16px 100px;
  background: linear-gradient(180deg, var(--sky-1), #bfe0f3);
}
.final-logo { width: min(360px, 80%); margin: 0 auto 8px; }
.cta-center { justify-content: center; }
.final .hint { font-size: 14px; font-weight: 400; color: var(--ink-soft); margin: 18px 0 0; }
.final p { font-size: 20px; font-weight: 700; color: var(--wood-dark); margin: 0 0 22px; }

.foot { text-align: center; padding: 26px 16px 36px; background: #3f2a1a; color: #e9d8bd; font-size: 14px; }
.foot p { margin: 4px 0; }
.age { display: inline-block; margin-right: 8px; padding: 0 8px; border: 2px solid #f4c35a; border-radius: 6px; color: #f4c35a; font-weight: 900; }

/* 手机 */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-brand img { height: 48px; }
  .nav .btn-sm { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 28px; min-height: 0; gap: 28px; }
  .logo { margin: 0 auto; width: min(300px, 80%); }
  .tabs { gap: 8px; flex-wrap: nowrap; }
  .tabs button { font-size: 16px; padding: 6px 12px 6px 8px; }
  .tabs button img { width: 24px; height: 24px; }
  .steps li { padding: 24px 20px 20px; }
  .steps img { height: 80px; }
  .lead { margin-left: auto; margin-right: auto; font-size: 16px; }
  .cta { justify-content: center; }
  .lamb-win { left: -44px; bottom: -10px; transform: scale(.9); }
  .phone { width: min(260px, 66vw); }
  .steps, .modes { grid-template-columns: 1fr; gap: 28px; }
  .band, .seasons { padding: 64px 16px; }
  .season-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 20px; gap: 20px; }
  .shot { width: min(210px, 60vw); }
  .gallery { padding-left: calc(50vw - 105px); padding-right: calc(50vw - 105px); gap: 12px; }
  .gallery img { width: 210px; }
  .car-ctrl { gap: 12px; }
  .car-btn { width: 40px; height: 40px; font-size: 28px; }
  .meet-inner { flex-direction: column; text-align: center; gap: 24px; }
  .meet-inner .sign { margin: 0 auto 16px; }
  .btn-lg { font-size: 18px; padding: 12px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #fx { display: none; }
}
