/* ============================================================
  网站的"外观"文件。换主题色改 :root 变量即可。
  ============================================================ */

:root {
  --bg: #080b14;
  --card: #10152a;
  --card-2: #131934;
  --border: #232b4d;
  --text: #eef1fb;
  --muted: #98a2c5;
  --accent-1: #6d7cff;
  --accent-2: #3fd9d0;
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.85rem 5vw;
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(35, 43, 77, 0.6);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.logo span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-block;
  padding: 0.68rem 1.5rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}
.btn-primary {
  color: #061018;
  background: var(--gradient);
  box-shadow: 0 6px 22px rgba(109, 124, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(109, 124, 255, 0.45); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: rgba(16, 21, 42, 0.5); }
.btn-ghost:hover { border-color: var(--accent-1); transform: translateY(-2px); }
.btn-sm { padding: 0.45rem 1.1rem; font-size: 0.86rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.02rem; }

/* ---------- 首屏 Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 78% 30%, rgba(109, 124, 255, 0.16), transparent 62%),
    radial-gradient(760px 460px at 12% 88%, rgba(63, 217, 208, 0.10), transparent 60%);
}

.starfield { position: absolute; inset: 0; }
.starfield span {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0.7;
  animation: twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite alternate;
}
.starfield span.star-accent { background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }

@keyframes twinkle {
  from { opacity: 0.12; transform: scale(0.8); }
  to   { opacity: 0.9;  transform: scale(1.2); }
}

/* 手机后方的光晕 */
.hero-glow {
  position: absolute;
  right: 4vw;
  top: 50%;
  width: 480px;
  height: 480px;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(109, 124, 255, 0.22), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 3vw;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 5rem 5vw;
}

.hero-kicker {
  display: inline-block;
  padding: 0.32rem 1rem;
  margin-bottom: 1.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(63, 217, 208, 0.35);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1px;
}
.hero h1 .accent {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-tagline { margin: 1.4rem 0 2.2rem; font-size: 1.08rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
/* 「试玩 demo 无需下载」的小字说明 */
.hero-demo-note { margin: 0.85rem 0 0; font-size: 0.86rem; color: var(--muted); }
/* TapTap 玩家评分（辅助信任信息，不抢主 CTA 的注意力） */
.hero-rating { margin: 0.6rem 0 0; font-size: 0.9rem; color: var(--muted); }
.hero-rating strong { color: var(--ink); }
.hero-stars { color: #f5b942; letter-spacing: 0.08em; margin-right: 0.35rem; }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.hero-chips li {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(16, 21, 42, 0.45);
  border-radius: 999px;
  padding: 0.26rem 0.8rem;
}

/* —— 手机样机 —— */

.hero-visual {
  position: relative;
  justify-self: center;
  animation: float 8s ease-in-out infinite alternate;
}
.phone {
  position: relative;
  width: 250px;
  height: 500px;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #1c2440, #0d1224);
  border: 1px solid #2c3660;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(109, 124, 255, 0.18);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  border-radius: 999px;
  background: #0d1224;
  border: 1px solid #2c3660;
}
.phone-icon {
  position: absolute;
  right: -34px;
  bottom: 56px;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
@keyframes float {
  from { transform: translateY(-10px); }
  to   { transform: translateY(10px); }
}

/* ---------- 通用小节 ---------- */

.section { padding: 5.5rem 5vw; scroll-margin-top: 70px; }
.section-alt {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(109, 124, 255, 0.07), transparent 60%),
    rgba(16, 21, 42, 0.4);
  border-top: 1px solid rgba(35, 43, 77, 0.5);
  border-bottom: 1px solid rgba(35, 43, 77, 0.5);
}
.section-title {
  font-size: 2.1rem;
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}
.section-subtitle { text-align: center; color: var(--muted); margin-bottom: 3rem; }

/* ---------- 产品卡片 ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 460px));
  justify-content: center;
  gap: 1.8rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 124, 255, 0.65);
  box-shadow: var(--shadow);
}

.product-thumb {
  height: 230px;
  position: relative;
  background-size: cover;
  background-position: center top;
}
/* 封面底部压一层暗色渐变，让小图标和标签更清楚 */
.product-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 20, 0.05) 40%, rgba(8, 11, 20, 0.75));
}
.product-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 0.24rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.thumb-icon {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  width: 66px;
  height: 66px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.product-name { font-size: 1.3rem; letter-spacing: -0.3px; margin-bottom: 0.5rem; }
.product-desc { color: var(--muted); font-size: 0.93rem; flex: 1; }
.product-meta {
  margin-top: 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--accent-2);
  opacity: 0.9;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(35, 43, 77, 0.7);
}
.price { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.5px; }

/* ---------- 宣传画展示区 ---------- */

/* ---------- 实机视频 ---------- */
.video-wrap { max-width: 340px; margin: 0 auto 2.6rem; }
.gameplay-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0e1424;
}

/* ---------- 实机视频 ---------- */
.video-wrap { max-width: 340px; margin: 0 auto 2.4rem; }
.gameplay-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: #0e1424;
}

/* ---------- 截图轮播 ----------
   手机上用原生 overscroll + scroll-snap 滑动（比 JS 拖动跟手），
   桌面端由 main.js 驱动箭头与圆点。 */
.carousel { position: relative; max-width: 880px; margin: 0 auto 1.2rem; }
.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0 0.6rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 auto;
  margin: 0;
  width: min(70%, 250px);
  scroll-snap-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: #0e1424;
}
.carousel-slide img { display: block; width: 100%; height: auto; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  padding: 0 0 3px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(16, 21, 34, 0.88);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.carousel-arrow:hover { background: rgba(30, 39, 60, 0.95); }
.carousel-arrow.prev { left: -6px; }
.carousel-arrow.next { right: -6px; }
.carousel-arrow[disabled] { opacity: 0.28; cursor: default; }

/* 17 张截图 → 圆点会比较多，允许换行、间距收窄，窄屏也不会挤爆 */
.carousel-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.42rem; margin: 0 0 3rem; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 999px;
  background: rgba(152, 162, 197, 0.35);
  cursor: pointer;
  transition: width 0.22s, background 0.22s;
}
.carousel-dots button.active { width: 22px; background: var(--accent); }

/* 触屏设备：箭头藏起来，直接滑 */
@media (hover: none) {
  .carousel-arrow { display: none; }
}

/* ---------- 特色卡片 ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  padding: 1.9rem 1.6rem;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(63, 217, 208, 0.45); }
.feature-icon { font-size: 1.9rem; margin-bottom: 0.8rem; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.feature-card p { color: var(--muted); font-size: 0.89rem; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; margin: 0 auto; }
.faq-list details {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.5rem;
  margin-bottom: 0.9rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before { content: "+ "; color: var(--accent-2); font-weight: 700; }
.faq-list details[open] summary::before { content: "− "; }
.faq-list details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.93rem; }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid rgba(35, 43, 77, 0.6);
  padding: 3rem 5vw;
  background: rgba(16, 21, 42, 0.35);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}
.footer-emblem { width: 42px; height: 42px; border-radius: 10px; }
.footer-brand { font-weight: 800; font-size: 1.1rem; letter-spacing: 2px; }
.footer-brand span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}
.footer-mail { color: var(--accent-2); text-decoration: none; }
.footer-links { margin-left: auto; display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; color: var(--muted); font-size: 0.8rem; opacity: 0.65; }

/* ---------- 条款/隐私子页 ---------- */

.page { max-width: 760px; margin: 0 auto; padding: 4rem 5vw; }
.page h1 { font-size: 1.9rem; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.page p, .page li { color: var(--muted); font-size: 0.95rem; }
.page ul { padding-left: 1.3rem; }
.back-link { display: inline-block; margin-top: 2.5rem; color: var(--accent-2); text-decoration: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 4rem; padding-bottom: 4rem; }
  .hero-visual { display: none; }
  .hero-glow { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 3.5rem 6vw; }
  .hero { min-height: 74vh; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3rem); }
}

/* 键盘导航时的焦点样式（无障碍） */
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}
