/* ============================================================
   硬核玩家官网 · 设计系统 v2
   参考 WeGame / TapTap / GOG：满版游戏美术 + 单一暖金品牌色
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-2: #0f0f14;
  --panel: #14141b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #9b9fab;
  --accent: #ffb454;
  --accent-deep: #f08c2e;
  --accent-soft: rgba(255, 180, 84, 0.14);
  --good: #7dd97b;
  --radius: 14px;
  --nav-h: 68px;
  --container: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #2b2b36 #0b0b0e;
  scrollbar-width: thin;
}
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: #0b0b0e; }
html::-webkit-scrollbar-thumb {
  background: #2b2b36;
  border-radius: 99px;
  border: 2px solid #0b0b0e;
}
html::-webkit-scrollbar-thumb:hover { background: #3c3c4c; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.28; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

::selection { background: rgba(255, 180, 84, 0.35); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 品牌与按钮 ---------- */

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-mark-char {
  fill: #fff;
  font-size: 17px;
  font-weight: 900;
  font-family: var(--font);
}
.brand-name {
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-name small {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
  width: fit-content;
  max-width: 100%;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn-primary {
  color: #1d1204;
  background: linear-gradient(135deg, #ffcd82, var(--accent) 40%, var(--accent-deep));
  box-shadow: 0 8px 28px rgba(240, 140, 46, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(240, 140, 46, 0.5);
}

.btn-glass {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.16);
}

.btn-lg { padding: 15px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; border-radius: 10px; }

.btn-ver {
  font-weight: 800;
  padding: 1px 8px;
  margin-left: 2px;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* ---------- 导航（浮于首屏大图，滚动后实底） ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 14, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- 首屏：满版游戏美术 ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  background: #101018;
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 14, 0.62) 0%, rgba(11, 11, 14, 0.08) 30%, rgba(11, 11, 14, 0.55) 62%, rgba(11, 11, 14, 0.96) 88%, var(--bg) 100%),
    linear-gradient(100deg, rgba(11, 11, 14, 0.72) 0%, rgba(11, 11, 14, 0.28) 42%, rgba(11, 11, 14, 0) 68%);
}

.hero-content { padding-top: calc(var(--nav-h) + 8vh); padding-bottom: 44px; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}
.hero-kicker span {
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  font-weight: 800;
  padding: 3px 12px;
  border: 1px solid rgba(255, 180, 84, 0.45);
  border-radius: 4px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  margin-top: 20px;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* 首屏底部数据条 */
.hero-strip {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.strip-item { display: flex; align-items: baseline; gap: 12px; }
.strip-item strong {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 900;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.strip-item > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  white-space: nowrap;
}
.hero-strip i {
  flex: none;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- 封面跑马灯 ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding: 26px 0 34px;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 72s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}
.marquee-list {
  display: flex;
  gap: 16px;
  list-style: none;
}
.marquee-list li {
  width: 132px;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  flex: none;
  background: linear-gradient(160deg, #1c1c26, #121218);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.marquee-list li:hover { transform: translateY(-6px) scale(1.03); }
.marquee-list img { width: 100%; height: 100%; object-fit: cover; }

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  pointer-events: none;
  z-index: 2;
}
.marquee-fade.left {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee-fade.right {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

/* ---------- 分节通用 ---------- */

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-tag {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 900;
}
.section-sub { margin-top: 12px; color: var(--muted); }

/* ---------- 特性（无框化 + 序号） ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.feature {
  position: relative;
  padding: 30px 28px 28px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}
.feature:hover {
  background: var(--panel);
  border-color: var(--line);
  transform: translateY(-3px);
}
.feature-no {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease;
}
.feature:hover .feature-no { color: var(--accent-soft); }
.feature-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.08rem; font-weight: 800; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }

/* ---------- 游戏库（竖版胶囊） ---------- */

.game-grid {
  display: grid;
  /* 宽屏固定 5 列：10 款正好两行排满 */
  grid-template-columns: repeat(5, 1fr);
  gap: 22px 18px;
}
.game-card { transition: transform 0.2s ease; }
.game-card:hover { transform: translateY(-6px); }

.game-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #1c1c26, #121218);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.2s ease;
}
.game-card:hover .game-cover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 180, 84, 0.35);
}
.game-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.game-card:hover .game-cover img { transform: scale(1.06); }
.game-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 10px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #cdd3e6;
}
.rate {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 6px;
  color: #fff;
  background: rgba(12, 12, 16, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.rate.r98 { color: var(--good); border-color: rgba(125, 217, 123, 0.35); }

.game-info { padding: 11px 2px 0; }
.game-info h3 {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-info p { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }

.library-note {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}
.library-note strong { color: var(--accent); }

/* ---------- 下载 ---------- */

.download-card {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 36px 44px;
  border-radius: 20px;
  background:
    radial-gradient(420px 200px at 50% -60px, var(--accent-soft), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
}
.os-icon { width: 58px; height: 58px; color: var(--accent); margin: 0 auto 18px; }
.download-card h2 { font-size: 1.9rem; font-weight: 900; }
.download-meta { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.download-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
.btn-download { margin: 26px auto 0; }
.download-checks {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.84rem;
}
.download-checks li { display: flex; align-items: center; gap: 7px; }
.download-checks li::before {
  content: "✓";
  color: var(--good);
  font-weight: 800;
}
.release-notes-wrap {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  text-align: left;
}
.release-notes-wrap span { color: var(--text); }

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

.faq-list { max-width: 780px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 8px;
  font-size: 1.02rem;
  font-weight: 700;
  transition: color 0.15s ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary i {
  flex: none;
  position: relative;
  width: 16px;
  height: 16px;
}
.faq-list summary i::before,
.faq-list summary i::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list summary i::before { inset: 7px 0; }
.faq-list summary i::after { inset: 0 7px; }
details[open] summary i::after { transform: rotate(90deg) scaleY(0); }
.faq-list details p {
  padding: 0 8px 20px;
  color: var(--muted);
  max-width: 46em;
}

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

.footer { border-top: 1px solid var(--line); background: #08080b; }
.footer-inner {
  padding: 46px 24px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 0.86rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { padding: 0 24px 26px; color: #63636f; font-size: 0.76rem; }

/* ---------- 进场动效 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }
.feature-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-grid .reveal:nth-child(4) { transition-delay: 0.06s; }
.feature-grid .reveal:nth-child(5) { transition-delay: 0.12s; }
.feature-grid .reveal:nth-child(6) { transition-delay: 0.18s; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

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

@media (max-width: 980px) {
  .hero { min-height: 88vh; }
  .hero-content { padding-top: calc(var(--nav-h) + 6vh); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .hero-strip { flex-wrap: wrap; gap: 14px 20px; }
  .hero-strip i { display: none; }
  .strip-item { flex: 1 1 40%; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { gap: 14px; justify-content: space-between; }
  .feature-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
  .game-info h3 { font-size: 0.86rem; }
  .game-info p { font-size: 0.72rem; }
  .marquee-list li { width: 104px; }
  .download-card { padding: 42px 22px 34px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-strip { padding-bottom: 22px; }
  .strip-item { flex: 1 1 100%; }
  .strip-item > span { font-size: 0.8rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 动效弱化 ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art img { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .btn:hover, .game-card:hover, .feature:hover, .marquee-list li:hover { transform: none; }
}
