/* ============================================================
   lvy 的工作室 · Lvy Studio
   Palette: 深海军蓝夜色 × 暖橙火焰 × 青色星光
   ============================================================ */

:root {
  --bg-0: #070d1a;
  --bg-1: #0a1322;
  --bg-2: #0f1a2e;
  --bg-card: rgba(18, 30, 52, 0.72);
  --line: rgba(122, 168, 224, 0.16);
  --line-strong: rgba(122, 168, 224, 0.32);
  --text-1: #eef4ff;
  --text-2: #a8b8d0;
  --text-3: #6e7f9b;
  --accent: #ffb03a;
  --accent-2: #4cc9f0;
  --accent-grad: linear-gradient(120deg, #ffd88a 0%, #ffb03a 45%, #ff8a3c 100%);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC",
    "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

::selection { background: rgba(255, 176, 58, 0.35); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: 0.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; }
.brand-mark svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(255, 160, 60, 0.5)); }
.brand-name em { font-style: normal; font-weight: 500; color: var(--text-2); }

.site-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--text-2); }
.site-nav > a:not(.btn):hover { color: var(--text-1); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-1); margin: 5px 0; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 8px 18px; font-size: 13.5px; }
.btn-primary {
  background: var(--accent-grad);
  color: #20150a;
  box-shadow: 0 10px 30px -10px rgba(255, 160, 60, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(255, 160, 60, 0.65); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  background: rgba(122, 168, 224, 0.06);
}
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-2px); }
.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--text-2);
  background: transparent;
}
.btn-outline:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 90px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/assets/img/hero.webp") center 38% / cover no-repeat #0a1322;
  will-change: transform;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 13, 26, 0.92) 0%, rgba(7, 13, 26, 0.55) 46%, rgba(7, 13, 26, 0.15) 78%),
    linear-gradient(0deg, var(--bg-0) 0%, rgba(7, 13, 26, 0) 34%),
    linear-gradient(180deg, rgba(7, 13, 26, 0.6) 0%, rgba(7, 13, 26, 0) 26%);
}
.hero-inner { max-width: 780px; }
.hero-kicker {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 17px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 52px; }
.hero-facts {
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  list-style: none;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.hero-facts strong {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.3;
}
.hero-facts span { font-size: 13px; color: var(--text-3); letter-spacing: 0.04em; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt {
  background:
    radial-gradient(1000px 500px at 85% 0%, rgba(76, 201, 240, 0.07), transparent 60%),
    radial-gradient(800px 420px at 8% 100%, rgba(255, 160, 60, 0.06), transparent 60%),
    var(--bg-1);
}
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--text-2); font-size: 16.5px; }

/* ---------- Game blocks ---------- */
.game {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: 58px 0;
}
.game + .game { border-top: 1px solid var(--line); }
.game-flip .game-art { order: 2; }
.game-flip .game-info { order: 1; }

.game-art img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.game-art > img:hover { transform: translateY(-6px) scale(1.012); }
.game-shots {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  justify-content: center;
}
.game-shots img {
  width: min(46%, 240px);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease;
}
.game-shots img:hover { transform: translateY(-6px); }
.game-shots-single img { width: min(88%, 560px); }

.game-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.badge {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.badge-live { color: #7ce7b0; border-color: rgba(124, 231, 176, 0.35); background: rgba(124, 231, 176, 0.08); }
.badge-beta { color: var(--accent-2); border-color: rgba(76, 201, 240, 0.35); background: rgba(76, 201, 240, 0.08); }
.badge-score { color: var(--accent); border-color: rgba(255, 176, 58, 0.4); background: rgba(255, 176, 58, 0.08); }
.badge-soon { color: var(--text-3); }

.game h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 6px; }
.game-en { font-size: 0.55em; font-weight: 700; letter-spacing: 0.18em; color: var(--text-3); margin-left: 10px; vertical-align: 2px; }
.game-tags { color: var(--accent-2); font-size: 14px; letter-spacing: 0.08em; margin-bottom: 18px; }
.game-quote {
  font-size: 16.5px;
  color: var(--text-1);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 16px;
  margin-bottom: 16px;
  opacity: 0.92;
}
.game-desc { color: var(--text-2); font-size: 15.5px; margin-bottom: 20px; }
.game-points { list-style: none; margin-bottom: 28px; }
.game-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 8px;
}
.game-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent-grad);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255, 176, 58, 0.4);
}
.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.about-story p { color: var(--text-2); margin-bottom: 18px; font-size: 16px; }
.about-story strong { color: var(--text-1); }
.about-story em { color: var(--accent); font-style: normal; font-weight: 700; }

.about-values { display: grid; gap: 16px; }
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.value-icon { font-size: 24px; display: block; margin-bottom: 8px; }
.value-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.value-card p { font-size: 14px; color: var(--text-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.contact-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.contact-card h3 { font-size: 20px; margin-bottom: 10px; }
.contact-card p { color: var(--text-2); font-size: 15px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding: 56px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 8px; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.footer-nav h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-nav a { color: var(--text-2); font-size: 14.5px; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 26px;
  color: var(--text-3);
  font-size: 13px;
}

/* ---------- Reveal animation ----------
   仅在 JS 可用（html.js）时才初始隐藏，保证无 JS / 爬虫 / 截图环境内容可见 */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .game, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .game { padding: 44px 0; }
  .game-flip .game-art { order: 0; }
  .game-flip .game-info { order: 1; }
  .about-grid { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 24px 22px;
    background: rgba(7, 13, 26, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav > a { padding: 10px 0; font-size: 17px; }
  .nav-toggle { display: block; }
  .hero { padding-top: 100px; }
  .hero-facts { gap: 24px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .game-shots img { width: 44%; }
  .contact-card { padding: 26px 22px; }
}
