
:root {
  --bg: #07140E;
  --bg2: #0D1F16;
  --surface: #12281C;
  --primary: #00A860;
  --primary-dark: #007A46;
  --accent: #F2C94C;
  --accent-text: #1A1400;
  --text: #F2F7F4;
  --muted: #9BB5A6;
  --line: #1E3A2A;
  --hero-overlay: rgba(4,18,10,0.55);
  --radius-card: 10px;
  --radius-btn: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(0,168,96,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg) 40%, #050d09);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 88px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, #0b1c13f8, rgba(7,20,14,0.92));
  border-bottom: 3px solid var(--primary);
  backdrop-filter: blur(8px);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; }
.brand-name {
  font-weight: 800; letter-spacing: 0.04em; font-size: 1.25rem;
  color: var(--primary); text-transform: uppercase;
}
.top-cta { display: flex; gap: 8px; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border-radius: var(--radius-btn);
  font-weight: 800; border: 0; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #04140c; }
.btn-primary:hover { background: #12c873; }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--primary); }
.btn-accent { background: var(--accent); color: var(--accent-text); }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 1.05rem; }
.cat-rail {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px;
  scrollbar-width: thin;
}
.cat-pill {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 0.92rem;
}
.cat-pill.is-active, .cat-pill:hover {
  color: #04140c; background: var(--primary); border-color: var(--primary);
}
.s2-carousel {
  position: relative;
  max-width: 1180px;
  margin: 14px auto 0;
  padding: 0 16px;
}
.s2-carousel-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  /* 首屏要露出第一排卡片：390≤260px、1280≤440px */
  height: 220px;
  max-height: 260px;
  background: #000;
  border: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 0 0 1px var(--line);
}
@media (min-width: 900px) {
  .s2-carousel-frame {
    height: 400px;
    max-height: 440px;
  }
}
.s2-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .45s ease;
}
.s2-slide.is-active {
  opacity: 1; pointer-events: auto; z-index: 1;
}
.s2-slide-bg {
  position: absolute; inset: 0;
  width: 100% !important; height: 100% !important;
  max-width: none !important; max-height: none !important;
  object-fit: cover; object-position: center;
  display: block;
}
.s2-slide-shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(4,18,10,0.78) 0%, rgba(4,18,10,0.35) 48%, rgba(4,18,10,0.55) 100%),
    linear-gradient(0deg, rgba(4,18,10,0.72), transparent 42%);
}
.s2-slide-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  gap: 10px;
  /* ≥56px 左右；底部留指示点空间 */
  padding: 16px 56px 44px;
  pointer-events: none;
}
.s2-slide-content .btn { pointer-events: auto; }
.s2-slide-logo {
  /* 裁边派生图：390 可见字标 ≥90px 宽或 ≥28px 高 */
  height: 48px; width: auto; max-width: min(72vw, 220px);
  object-fit: contain; object-position: left center;
  box-sizing: content-box;
  background: rgba(0,0,0,0.55);
  border-radius: 8px; padding: 6px 10px;
}
.s2-slide-title {
  margin: 0; font-size: clamp(1.05rem, 2.6vw, 1.55rem); font-weight: 800;
  line-height: 1.2; max-width: 18ch;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
}
/* 390：隐藏左右箭头，仅指示点+触屏滑动，避免压住 Logo/标题/CTA */
.s2-nav { display: none; }
.s2-dots {
  position: absolute; z-index: 4;
  left: 50%; transform: translateX(-50%);
  bottom: 12px; top: auto; right: auto;
  display: flex; gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
}
.s2-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.4); cursor: pointer;
}
.s2-dots button.is-active { background: var(--accent); }
@media (min-width: 900px) {
  /* 1280：可见字标 ≥140px 宽或 ≥40px 高 */
  .s2-slide-logo { height: 64px; max-width: 280px; }
  .s2-slide-content { padding: 28px 64px 36px; gap: 14px; }
  .s2-nav {
    display: block;
    position: absolute; z-index: 4;
    top: 50%; bottom: auto; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%;
    border: 0; cursor: pointer; font-size: 1.4rem; font-weight: 700;
    background: rgba(0,168,96,0.92); color: #04140c;
  }
  .s2-nav[data-prev] { left: 16px; }
  .s2-nav[data-next] { right: 16px; }
  .s2-dots {
    top: 14px; bottom: auto; right: 20px; left: auto; transform: none;
    background: transparent; padding: 0;
  }
}
.section { max-width: 1180px; margin: 22px auto; padding: 0 16px; }
.section h2 { margin: 0 0 12px; font-size: 1.25rem; }
.section .lead { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 100%;
  transition: transform .15s ease, border-color .15s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 0 0 10px; }
.cover-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: #08140f; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.card-title {
  margin: 10px 10px 2px; font-size: 0.95rem; line-height: 1.25;
  min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.card-provider { margin: 0 10px; color: var(--muted); font-size: 0.8rem; line-height: 1.2; }
.s2-faq { max-width: 1180px; margin: 22px auto; padding: 0 16px 8px; }
.s2-faq h2 { margin: 0 0 12px; font-size: 1.25rem; }
.s2-faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 10px;
}
.s2-faq summary { font-weight: 700; cursor: pointer; }
.s2-faq p { margin: 8px 0 0; color: var(--muted); }
.site-footer {
  max-width: 1180px; margin: 28px auto 0; padding: 18px 16px 12px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
}
.mob-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,13,9,0.94); border-top: 1px solid var(--line);
}
.mob-cta .btn { flex: 1; min-height: 48px; }
@media (min-width: 900px) {
  .mob-cta { display: none; }
  body { padding-bottom: 24px; }
}
.game-hero {
  max-width: 960px; margin: 18px auto; padding: 0 16px;
  display: grid; gap: 18px;
}
@media (min-width: 800px) {
  .game-hero { grid-template-columns: 320px 1fr; align-items: start; }
}
.game-cover {
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 1/1; background: #000;
}
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-body h1 { margin: 0 0 6px; font-size: 1.6rem; }
.game-body .prov { color: var(--muted); margin: 0 0 14px; }
.game-body .intro { color: #d7e6dc; line-height: 1.55; margin: 0 0 18px; }
.crumb { max-width: 1180px; margin: 12px auto 0; padding: 0 16px; color: var(--muted); font-size: 0.85rem; }
.crumb a { color: var(--primary); }
.page-title { margin: 8px 0 14px; }
