/* 万兽山海 · 官网样式 */
/* 深墨绿底 + 暗金/玉青点缀 · 东方山海经氛围 */

:root {
  --ink: #0F1F18;
  --ink-2: #142A20;
  --ink-3: #1B3529;
  --gold: #C9A24B;
  --gold-soft: #E2C888;
  --jade: #7FA98C;
  --jade-dim: #5C8268;
  --rice: #EAE3D0;
  --muted: #9AA99B;
  --line: rgba(201, 162, 75, 0.22);
  --serif: "Songti SC", "STSong", "STKaiti", "Kaiti SC", "KaiTi", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; height: auto; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: rgba(201, 162, 75, 0.35); }

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 31, 24, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--rice); }
.brand-mark { border-radius: 6px; }
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.25em;
  color: var(--gold-soft);
}
.header-badge {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--jade);
  border: 1px solid rgba(127, 169, 140, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 72px;
  overflow: hidden;
}
.hero-mist {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 46% at 50% 38%, rgba(201, 162, 75, 0.10), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(20, 42, 32, 0.9), transparent 70%);
}
.hero-visual { position: relative; width: min(62vw, 340px); }
.hero-visual img {
  width: 100%;
  filter: drop-shadow(0 18px 60px rgba(201, 162, 75, 0.18));
}
.hero-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(44px, 11vw, 84px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em; /* 视觉居中补偿 */
  color: var(--rice);
  text-shadow: 0 0 34px rgba(201, 162, 75, 0.28);
}
.hero-tagline {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: clamp(16px, 4vw, 22px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--gold-soft);
}
.hero-slogan {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--muted);
}
.hero-cta { margin-top: 34px; }
.taptap-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 53, 41, 0.55);
  color: var(--jade);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.taptap-btn b { color: var(--gold-soft); font-weight: 600; }
.taptap-btn svg { color: var(--gold); }

.scroll-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 34px;
  border: 1px solid rgba(234, 227, 208, 0.28);
  border-radius: 12px;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(9px); opacity: 0.15; }
}

/* ---------- 通用章节 ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 84px 20px 24px;
  text-align: center;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(26px, 6vw, 38px);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-soft);
}
.section-title::after {
  content: "";
  display: block;
  width: 46px;
  height: 1px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.section-sub {
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--muted);
}

/* ---------- 玩法 ---------- */
.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}
.feature {
  position: relative;
  padding: 26px 24px 24px 68px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink) 80%);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 75, 0.5);
}
.feature-num {
  position: absolute;
  left: 22px;
  top: 24px;
  font-family: var(--serif);
  font-size: 26px;
  color: var(--jade);
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border: 1px solid rgba(127, 169, 140, 0.45);
  border-radius: 8px;
}
.feature h3 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--rice);
  margin-bottom: 8px;
}
.feature p { font-size: 14.5px; color: var(--muted); }

/* ---------- 卡牌展示 ---------- */
.card-gallery {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 16px;
  perspective: 1100px;
}
.game-card {
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1.2);
  transform-style: preserve-3d;
}
.game-card:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); }
.game-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 162, 75, 0.28);
}
/* 镭射流光 */
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(226, 200, 136, 0.20) 44%,
    rgba(127, 169, 140, 0.16) 52%,
    transparent 66%
  );
  background-size: 260% 260%;
  background-position: 120% 120%;
  mix-blend-mode: screen;
  animation: holo 7s ease-in-out infinite;
}
.game-card:nth-child(2n)::after { animation-delay: -2.4s; }
.game-card:nth-child(3n)::after { animation-delay: -4.8s; }
@keyframes holo {
  0%, 100% { background-position: 120% 120%; }
  50% { background-position: -20% -20%; }
}
.game-card figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--gold-soft);
  text-align: center;
}

/* ---------- 工作室 ---------- */
.section-studio { padding-bottom: 96px; }
.studio-mark { width: 120px; margin: 0 auto 22px; }
.studio-mark img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 10px 34px rgba(0, 0, 0, 0.5);
}
.studio-en {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--jade);
}
.studio-line {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  max-width: 30em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-links { display: flex; gap: 22px; font-size: 13px; flex-wrap: wrap; justify-content: center; }

/* ---------- 滚动渐入（仅 JS 可用时生效） ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
/* 卡牌自带倾斜，in-view 后回到各自角度 */
.js .game-card.reveal { transform: translateY(26px) rotate(var(--tilt, 0deg)); }
.js .game-card.reveal.is-in { transform: rotate(var(--tilt, 0deg)); }
.js .game-card.reveal.is-in:hover { transform: rotate(0deg) translateY(-8px) scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .game-card::after, .scroll-hint span { animation: none; }
  .game-card, .feature { transition: none; }
}

/* ---------- 桌面端 ---------- */
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .card-gallery { grid-template-columns: repeat(3, 1fr); gap: 30px 24px; }
  .hero-visual { width: 380px; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .card-gallery { grid-template-columns: repeat(6, 1fr); gap: 18px; }
  .card-gallery .game-card figcaption { font-size: 13px; }
}
