﻿@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/baloo2-800.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/baloo2-600.woff2") format("woff2");
}

:root {
  --paper: #f7f3e8;
  --paper-2: #fffdf7;
  --paper-3: #efe7d4;
  --ink: #2f2c25;
  --ink-soft: #6b6557;
  --line: rgba(70, 64, 50, 0.13);
  --accent: #3f7a4a;
  --accent-deep: #2f6339;
  --clay: #c98a3a;
  --shadow-sm: 0 2px 10px rgba(70, 60, 40, 0.06);
  --shadow: 0 18px 50px rgba(70, 60, 40, 0.12);
  --display: "Baloo 2", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "PingFang SC",
    "Hiragino Sans", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC", system-ui, sans-serif;
}

/* 语言切换 */
html[data-lang="en"] .lang-zh { display: none !important; }
html[data-lang="zh"] .lang-en { display: none !important; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 纸张颗粒 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; position: relative; }

a { color: var(--accent); }

/* ---------------- header ---------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 243, 232, 0.78);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(155deg, #4f8c5a, #2c5f36);
  color: #fff;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(44, 95, 54, 0.28);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand-txt strong { font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: 0.01em; }
.brand-txt small { color: var(--ink-soft); font-size: 11px; letter-spacing: 0.09em; }

.head-nav { display: flex; align-items: center; gap: 20px; }
.head-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 13px; letter-spacing: 0.05em;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.head-nav a:hover { color: var(--accent); }
.lang-switch {
  appearance: none; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-soft);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; font-family: inherit; letter-spacing: 0.06em;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover { color: var(--accent); border-color: rgba(63, 122, 74, 0.4); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: clamp(560px, 90vh, 920px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #fbf7ea 0%, #f7f3e8 45%, #f1ead9 100%);
}

.hero-stage { position: absolute; inset: 0; }
.hero-stage canvas { display: block; width: 100%; height: 100%; }

.hero-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg, var(--paper) 0%, rgba(247, 243, 232, 0.94) 30%, rgba(247, 243, 232, 0.55) 52%, rgba(247, 243, 232, 0) 74%),
    linear-gradient(180deg, rgba(247, 243, 232, 0.5) 0%, rgba(247, 243, 232, 0) 26%, rgba(247, 243, 232, 0) 68%, var(--paper) 100%);
}

.hero-copy { position: relative; z-index: 2; padding: clamp(72px, 12vh, 150px) 0 clamp(80px, 12vh, 140px); max-width: 720px; }

.kicker { margin: 0 0 22px; font-size: 11px; letter-spacing: 0.36em; color: var(--ink-soft); text-transform: uppercase; }

.display {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(54px, 9.6vw, 136px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.display em { font-style: normal; color: var(--accent); }

.hero .lead {
  margin: 0 0 32px;
  max-width: 33em;
  color: #4c473c;
  font-size: clamp(14.5px, 1.35vw, 17.5px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: #fffaf0; box-shadow: 0 10px 24px rgba(47, 99, 57, 0.24); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 253, 247, 0.7); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.hero-credit {
  position: absolute; right: max(24px, calc((100% - 1180px) / 2)); bottom: 22px; z-index: 2;
  margin: 0; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); opacity: 0.85;
}

/* ---------------- games ---------------- */

.games { padding: clamp(70px, 9vw, 120px) 0; }

.sec-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.4vw, 56px); letter-spacing: -0.01em; }
.sec-note { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.1em; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.game {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fffdf7 0%, #f6efdd 100%);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.game::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(180deg, var(--g1), var(--g2));
}
.game:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(63, 122, 74, 0.3); }

.game-art {
  width: 160px; aspect-ratio: 1;
  border-radius: 26px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--g1), var(--g2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 14px 30px rgba(70, 60, 40, 0.18);
  transition: transform 0.25s ease;
}
.game:hover .game-art { transform: rotate(-3deg) scale(1.03); }
.game-art img { width: 76%; height: auto; border-radius: 22px; display: block; }

.game-body { display: flex; flex-direction: column; }

.game-tag {
  align-self: flex-start; margin-bottom: 10px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(63, 122, 74, 0.1); color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

.game-title { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.005em; margin-bottom: 8px; }
.game-desc { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.game-cta { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.03em; }

.game--feature { grid-column: 1 / -1; grid-template-columns: 240px minmax(0, 1fr); padding: 32px; gap: 34px; }
.game--feature .game-art { width: 240px; border-radius: 34px; }
.game--feature .game-art img { width: 78%; border-radius: 28px; }
.game--feature .game-title { font-size: clamp(30px, 3.4vw, 44px); }
.game--feature .game-desc { font-size: 15.5px; max-width: 34em; }

/* ---------------- studio ---------------- */

.studio {
  padding: clamp(70px, 9vw, 120px) 0 clamp(80px, 10vw, 130px);
  background: linear-gradient(180deg, rgba(239, 231, 212, 0) 0%, rgba(239, 231, 212, 0.7) 55%, #efe7d4 100%);
}

.studio-row { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }

.display-sm {
  margin: 0 0 24px;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.08; letter-spacing: -0.01em;
}

.studio-copy p { margin: 0 0 16px; color: #4c473c; max-width: 36em; }

.studio-notes { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.studio-notes li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; letter-spacing: 0.02em; }
.studio-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0.65; }

.contact-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: 24px; }
.contact-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 13.5px; }
.contact-card .mail { font-family: var(--display); font-size: clamp(18px, 2vw, 23px); color: var(--accent); text-decoration: none; border-bottom: 2px solid rgba(63, 122, 74, 0.25); }
.contact-card .mail:hover { border-bottom-color: var(--accent); }
.contact-card .muted { margin-top: 16px; opacity: 0.8; font-size: 12.5px; }

/* ---------------- footer ---------------- */

.site-foot {
  padding: 30px 0 calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.05em;
  background: #efe7d4;
}
.foot-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.foot-row a { color: var(--ink-soft); text-decoration: none; }
.foot-row a:hover { color: var(--accent); }
.dots { opacity: 0.45; }

/* ---------------- 文档页（privacy / terms） ---------------- */

.doc-wrap { width: min(800px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 90px; position: relative; z-index: 1; }

.back-link { display: inline-block; margin-bottom: 30px; font-size: 12.5px; color: var(--ink-soft); text-decoration: none; letter-spacing: 0.04em; }
.back-link:hover { color: var(--accent); }

.doc h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.1; }
.updated { margin: 0 0 30px; color: var(--ink-soft); font-size: 12.5px; letter-spacing: 0.08em; }
.doc h2 { margin: 36px 0 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.doc h3 { margin: 22px 0 6px; font-size: 14.5px; font-weight: 700; color: #423e34; }
.doc p { margin: 0 0 12px; color: #4a463c; font-size: 14.5px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; }
.doc li { margin: 0 0 6px; color: #4a463c; font-size: 14.5px; }
.doc a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(63, 122, 74, 0.3); }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .wrap { width: calc(100% - 36px); }
  .game-grid { grid-template-columns: 1fr; }
  .game--feature { grid-template-columns: 180px minmax(0, 1fr); }
  .game--feature .game-art { width: 180px; }
  .studio-row { grid-template-columns: 1fr; }
  .hero-credit { display: none; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .head-row { height: 64px; }
  .brand-txt small { display: none; }
  .head-nav { gap: 12px; }
  .head-nav a { font-size: 12px; }

  .hero { min-height: 84vh; align-items: flex-start; }
  .hero-wash {
    background:
      linear-gradient(180deg, rgba(247, 243, 232, 0.96) 0%, rgba(247, 243, 232, 0.82) 46%, rgba(247, 243, 232, 0.18) 72%, var(--paper) 100%);
  }
  .hero-copy { padding: 46px 0 120px; }
  .display { font-size: clamp(48px, 15vw, 84px); }
  .hero .lead { font-size: 14.5px; }
  .btn { padding: 12px 20px; font-size: 13px; }

  .game { grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px; border-radius: 22px; }
  .game-art { width: 104px; border-radius: 18px; }
  .game-art img { border-radius: 15px; }
  .game--feature { grid-template-columns: 104px minmax(0, 1fr); padding: 18px; }
  .game--feature .game-art { width: 104px; border-radius: 18px; }
  .game--feature .game-art img { border-radius: 15px; }
  .game-title, .game--feature .game-title { font-size: 19px; }
  .game-desc, .game--feature .game-desc { font-size: 13px; }
  .studio-notes { grid-template-columns: 1fr; }
  .doc-wrap { width: calc(100% - 32px); padding: 30px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .game, .game-art { transition: none; }
  .game:hover, .btn:hover { transform: none; }
  .game:hover .game-art { transform: none; }
}

/* 减少动态效果时的手动播放按钮 */
.motion-toggle {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 52px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.9);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.motion-toggle:hover { color: var(--accent); border-color: rgba(63, 122, 74, 0.4); }
.motion-toggle[hidden] { display: none; }
@media (max-width: 640px) {
  .motion-toggle { right: 16px; bottom: 16px; padding: 9px 14px; font-size: 12px; }
}
/* ============ v4: 首屏收矮 + 游戏卡片换成手机截图 ============ */

.hero { min-height: clamp(430px, 68vh, 700px); }
.hero-copy { padding: clamp(40px, 6.5vh, 88px) 0 clamp(52px, 7.5vh, 100px); max-width: 680px; }
.display { font-size: clamp(46px, 7.4vw, 104px); margin-bottom: 20px; }
.hero .lead { margin-bottom: 24px; font-size: clamp(14px, 1.25vw, 16.5px); }
.hero-credit { bottom: 16px; }
.motion-toggle { bottom: 46px; }

.game { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 24px; }
.game-art { position: relative; display: block; width: 150px; aspect-ratio: auto; background: none; box-shadow: none; border-radius: 0; }
.game:hover .game-art { transform: none; }
.phone {
  display: block;
  width: 150px;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  overflow: hidden;
  border: 4px solid var(--paper-2);
  box-shadow: 0 16px 34px rgba(70, 60, 40, 0.2);
  background: #14120f;
  transition: transform 0.25s ease;
}
.phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute;
  left: -12px;
  bottom: -10px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 3px solid var(--paper-2);
  background: #fff;
  box-shadow: 0 8px 18px rgba(70, 60, 40, 0.22);
}
.game:hover .phone { transform: rotate(-2deg) translateY(-3px); }

.game--feature { grid-template-columns: 190px minmax(0, 1fr); padding: 30px; gap: 30px; }
.game--feature .game-art { width: 152px; }
.game--feature .phone { width: 152px; border-radius: 26px; }
.game--feature .badge { width: 62px; height: 62px; border-radius: 17px; }
.game--feature .game-title { font-size: clamp(28px, 3.2vw, 42px); }

@media (max-width: 900px) {
  .game--feature { grid-template-columns: 140px minmax(0, 1fr); }
  .game--feature .game-art, .game--feature .phone { width: 140px; }
}

@media (max-width: 640px) {
  .hero { min-height: 76vh; }
  .hero-copy { padding: 36px 0 96px; }
  .display { font-size: clamp(44px, 13.5vw, 74px); }
  .game, .game--feature { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .game-art, .phone, .game--feature .game-art, .game--feature .phone { width: 88px; border-radius: 16px; }
  .badge, .game--feature .badge { width: 38px; height: 38px; border-radius: 11px; left: -8px; bottom: -6px; border-width: 2px; }
  .game-title, .game--feature .game-title { font-size: 18px; }
  .game-desc, .game--feature .game-desc { font-size: 12.5px; }
  .motion-toggle { bottom: 14px; right: 14px; }
}
/* ============ v5: 修正手机截图填充 + 首屏底部柔化 ============ */

.hero-stage {
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 62%, rgba(0, 0, 0, 0.55) 82%, transparent 100%);
}

.game-art .phone img,
.game--feature .game-art .phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.game--feature { grid-template-columns: 190px minmax(0, 1fr); }
.game--feature .game-art,
.game--feature .phone { width: 190px; }
.game--feature .phone { border-radius: 28px; }
.game--feature .badge { width: 58px; height: 58px; border-radius: 16px; left: -14px; bottom: -12px; }

@media (max-width: 900px) {
  .game--feature .game-art, .game--feature .phone { width: 160px; }
}
@media (max-width: 640px) {
  .game--feature .game-art, .game--feature .phone { width: 96px; }
  .game--feature .badge { width: 38px; height: 38px; }
}
/* ============ v6: 首屏再压矮 + 卡片图标/标题一行 ============ */

.hero { min-height: clamp(340px, 54vh, 500px); }
.hero-copy { padding: clamp(22px, 3.2vh, 44px) 0 clamp(26px, 4vh, 56px); max-width: 660px; }
.kicker { margin-bottom: 14px; }
.display { font-size: clamp(38px, min(6.2vw, 8.6vh), 82px); margin-bottom: 14px; }
.hero .lead { margin-bottom: 18px; font-size: clamp(13.5px, 1.1vw, 15.8px); }
.hero-credit { display: none; }
.games { padding-top: clamp(30px, 4vh, 52px); }
.sec-head { margin-bottom: 24px; }

.game { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; padding: 20px 22px; }
.game-art, .phone { width: 140px; }
.phone { border-radius: 20px; border-width: 3px; }

.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.game-ico {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(70, 60, 40, 0.16);
}
.game-title { display: block; margin-bottom: 0; }
.game-desc { margin-top: 6px; }

.game--feature { grid-template-columns: 180px minmax(0, 1fr); padding: 24px 26px; gap: 26px; }
.game--feature .game-art, .game--feature .phone { width: 180px; }
.game--feature .game-head { gap: 16px; margin-bottom: 10px; }
.game--feature .game-ico { width: 56px; height: 56px; border-radius: 16px; }

@media (max-width: 900px) {
  .game--feature { grid-template-columns: 150px minmax(0, 1fr); }
  .game--feature .game-art, .game--feature .phone { width: 150px; }
}

@media (max-width: 640px) {
  .hero { min-height: 62vh; }
  .hero-copy { padding: 22px 0 72px; }
  .display { font-size: clamp(38px, 12.5vw, 64px); }
  .game, .game--feature { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .game-art, .phone, .game--feature .game-art, .game--feature .phone { width: 84px; border-radius: 15px; }
  .game-ico, .game--feature .game-ico { width: 30px; height: 30px; border-radius: 9px; }
  .game-head { gap: 9px; margin-bottom: 6px; }
  .game-title, .game--feature .game-title { font-size: 16.5px; }
  .game-desc, .game--feature .game-desc { font-size: 12px; }
}

@media (max-height: 620px) {
  .hero { min-height: 300px; }
  .display { font-size: clamp(34px, 7vh, 56px); }
  .hero .lead { display: none; }
}
/* ============ v7: 短屏适配 + 分区标题收小 ============ */

.sec-head h2 { font-size: clamp(26px, 3.4vw, 42px); }
.sec-note { font-size: 11.5px; }

@media (max-height: 700px) {
  .hero { min-height: 320px; }
  .hero-copy { padding: 18px 0 40px; }
  .kicker { display: none; }
  .hero .lead { display: block; font-size: 13px; line-height: 1.6; margin-bottom: 14px; max-width: 30em; }
  .display { font-size: clamp(34px, 8vh, 62px); margin-bottom: 12px; }
  .btn { padding: 11px 20px; font-size: 13px; }
  .games { padding-top: 26px; }
  .sec-head { margin-bottom: 18px; }
}