/* ============ 基础变量 ============ */
:root {
  --bg: #0a0c10;
  --bg-soft: #0e1218;
  --surface: #141922;
  --surface-2: #1a212c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #9aa5b8;
  --amber: #f6b13c;
  --amber-dim: #c98a1f;
  --amber-soft: rgba(246, 177, 60, 0.12);
  --mint: #3ddc97;
  --mint-soft: rgba(61, 220, 151, 0.12);
  /* 品牌 logo 着色：想还原原始蓝色改成 #6fade2 即可 */
  --logo-color: var(--amber);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --header-h: 76px;
  --pad: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============ Reset ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 菜单打开时锁定背景滚动 */
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection {
  background: var(--amber);
  color: #0a0c10;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--amber);
  color: #0a0c10;
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============ 布局 ============ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--pad), var(--safe-left));
  padding-right: max(var(--pad), var(--safe-right));
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-alt {
  background:
    radial-gradient(circle at 85% 0%, rgba(61, 220, 151, 0.07), transparent 55%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--muted);
  font-size: 16px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn-primary {
  background: var(--amber);
  color: #14100a;
  box-shadow: 0 12px 30px -14px rgba(246, 177, 60, 0.85);
}
.btn-primary:hover {
  background: #ffc25c;
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ============ 头部 ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  background: rgba(10, 12, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

/* 支持毛玻璃的浏览器才做半透明，否则保持纯色可读 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(10, 12, 16, 0.98); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  flex-shrink: 0;
}

/* 品牌 logo：用单色 SVG（云朵）做遮罩，颜色由 --logo-color 控制 */
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background-color: var(--logo-color);
  -webkit-mask-image: url("../img/logo-mark.svg");
  mask-image: url("../img/logo-mark.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brand-mark--sm {
  width: 24px;
  height: 24px;
}

/* 不支持 mask 时退回 SVG 自带的蓝色，避免出现实心色块 */
@supports not ((-webkit-mask-image: url("../img/logo-mark.svg")) or (mask-image: url("../img/logo-mark.svg"))) {
  .brand-mark {
    background-color: transparent;
    background-image: url("../img/logo-mark.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand-text small {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 168px 0 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 50% -10%, rgba(246, 177, 60, 0.16), transparent 70%),
    linear-gradient(180deg, #0a0c10 0%, #0b0e13 60%, #0a0c10 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 620px;
  height: 620px;
  right: -180px;
  top: 60px;
  background: radial-gradient(circle, rgba(61, 220, 151, 0.16), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 96px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.16); }
  50% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0.04); }
}

.hero h1 {
  font-size: clamp(34px, 6.6vw, 68px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 .hl {
  position: relative;
  color: var(--amber);
  padding: 0 2px;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  height: 10px;
  background: var(--amber-soft);
  border-radius: 4px;
  z-index: -1;
}

.hero .lede {
  max-width: 660px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17.5px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 64px auto 0;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.hero-stats li {
  padding: 22px 12px;
  background: rgba(20, 25, 34, 0.7);
  text-align: center;
}
.hero-stats b {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--text);
  letter-spacing: -0.01em;
}
.hero-stats b em {
  font-style: normal;
  font-size: 0.55em;
  color: var(--amber);
  margin-left: 2px;
}
.hero-stats span {
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* 跑马灯 */
.hero-marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  padding: 16px 0;
  width: max-content;
  animation: marquee var(--marquee-duration, 28s) linear infinite;
  will-change: transform;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(238, 242, 248, 0.55);
  white-space: nowrap;
}
/* 一份内容为一组，JS 按视口宽度克隆若干组；组内间距与尾部留白一致，接缝才均匀 */
.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}
.marquee-track i {
  color: var(--amber);
  font-size: 9px;
  font-style: normal;
}
/* 位移量由 main.js 写入（正好等于一组内容的宽度），位移一组即循环 */
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 0px))); }
}

/* ============ 卡片 ============ */
.grid {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 177, 60, 0.42);
  background: linear-gradient(180deg, rgba(246, 177, 60, 0.08), rgba(255, 255, 255, 0.01));
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--amber-soft);
  color: var(--amber);
}
.card-icon svg,
.game-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* 流程 */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  counter-reset: none;
}
.flow li {
  position: relative;
  padding: 22px 20px 20px;
  border-top: 2px solid var(--line-strong);
  transition: border-color .22s ease;
}
.flow li:hover { border-top-color: var(--amber); }
.flow-no {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}
.flow h4 {
  margin: 8px 0 6px;
  font-size: 16px;
}
.flow p {
  font-size: 14px;
  color: var(--muted);
}

/* ============ 游戏矩阵 ============ */
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 44px 0 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.group-title:first-of-type { margin-top: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.badge-live {
  background: var(--mint-soft);
  color: var(--mint);
  border: 1px solid rgba(61, 220, 151, 0.3);
}
.badge-dev {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(246, 177, 60, 0.3);
}

.game {
  display: flex;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.game:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 177, 60, 0.4);
  box-shadow: var(--shadow);
}

.game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--amber);
}
.game-body h4 {
  font-size: 17px;
  margin-bottom: 8px;
}
.game-body p {
  font-size: 14.5px;
  color: var(--muted);
}

.game-sm { flex-direction: column; gap: 14px; }
.game-sm .game-body h4 { font-size: 16px; margin-bottom: 6px; }
.game-sm .game-body p { font-size: 14px; }

/* 已上线：卡片 + 小程序码 */
.game-live {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.game-head {
  display: flex;
  gap: 16px;
  min-width: 0;
}

.game-qr {
  flex-shrink: 0;
  margin: 0;
  text-align: center;
}
.game-qr img {
  width: 116px;
  height: 116px;
  padding: 5px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.9);
}
.game-qr figcaption {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tags li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--muted);
}

/* ============ 双人专区 ============ */
.duo-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.duo-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.3;
  margin-bottom: 16px;
}

.check-list {
  margin: 26px 0 32px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--muted);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint-soft);
  border: 1px solid rgba(61, 220, 151, 0.45);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 5px;
  height: 8px;
  border-right: 1.6px solid var(--mint);
  border-bottom: 1.6px solid var(--mint);
  transform: rotate(38deg);
}

.duo-cards {
  display: grid;
  gap: 18px;
}

.duo-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.duo-card:hover { transform: translateX(4px); border-color: rgba(246, 177, 60, 0.4); }

.duo-card-accent {
  margin-left: 32px;
  background: linear-gradient(150deg, rgba(246, 177, 60, 0.12), rgba(255, 255, 255, 0.01));
  border-color: rgba(246, 177, 60, 0.28);
}

.duo-label {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--amber);
  text-transform: uppercase;
}
.duo-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
}
.duo-card p {
  font-size: 14.5px;
  color: var(--muted);
}

.status {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status-dev {
  background: var(--amber-soft);
  color: var(--amber);
}

/* ============ 常见问题 ============ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] {
  border-color: rgba(246, 177, 60, 0.36);
  background: rgba(246, 177, 60, 0.05);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}
/* 去掉浏览器默认的三角标记，改用右侧「+」 */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

/* 折叠时是「+」，展开后转 45° 变「×」 */
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--amber);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--muted);
}
.faq-body a {
  color: var(--amber);
  border-bottom: 1px solid rgba(246, 177, 60, 0.45);
}

/* ============ 联系 ============ */
.contact-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(246, 177, 60, 0.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(246, 177, 60, 0.16), transparent 55%),
    linear-gradient(180deg, #161b25, #10141b);
  box-shadow: var(--shadow);
}
.contact-main h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

.contact-side {
  padding-left: 36px;
  border-left: 1px solid var(--line);
}
.contact-label {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-phone {
  display: block;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--amber);
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .18s ease;
}
.contact-phone:hover { color: #ffc25c; }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ============ 页脚 ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 calc(40px + var(--safe-bottom));
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber);
  font-size: 14px;
}
.footer-brand span:last-child { color: var(--muted); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-links a:hover { color: var(--amber); }
/* 版权 + 备案/许可信息 */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.9;
  color: rgba(154, 165, 184, 0.7);
}

.footer-records {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.footer-records a {
  color: rgba(154, 165, 184, 0.82);
  transition: color .18s ease;
}
.footer-records a:hover { color: var(--amber); }

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.license-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.footer-records .sep {
  color: rgba(255, 255, 255, 0.16);
}

.record-text { color: rgba(154, 165, 184, 0.82); }

/* ============ 入场动画 ============ */
.reveal {
  opacity: 1;
  transform: none;
}

/* 只有识别到 JS 时才隐藏待入场元素，脚本失效也不会白屏 */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .eyebrow .dot { animation: none; }
}

/* ============ 响应式 ============ */

/* 笔记本 / 平板横屏 */
@media (max-width: 1024px) {
  :root { --pad: 22px; }

  .section { padding: 88px 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duo-inner { grid-template-columns: 1fr; gap: 40px; }
  .duo-card-accent { margin-left: 0; }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 36px;
  }
  .contact-side {
    padding-left: 0;
    padding-top: 28px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  /* 两列卡片时右侧文字区变窄，小程序码改为竖排 */
  .game-live {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .game-qr {
    align-self: center;
  }
  .game-qr img { width: 128px; height: 128px; }
}

/* 平板竖屏 / 手机：折叠导航 */
@media (max-width: 820px) {
  :root {
    --header-h: 64px;
    --pad: 18px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding: 12px max(var(--pad), var(--safe-right)) 20px max(var(--pad), var(--safe-left));
    background: rgba(10, 12, 16, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .nav-toggle { display: block; }
  .header-actions { margin-left: auto; }

  .section { padding: 72px 0; }
  .hero { padding-top: 112px; }
  .hero-inner { padding-bottom: 64px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .game { flex-direction: row; }
  .section-head { margin-bottom: 36px; }
}

/* 手机竖屏 */
@media (max-width: 560px) {
  :root { --pad: 16px; }

  .grid-4 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .game { flex-direction: column; }
  .game-live { flex-direction: column; align-items: stretch; }
  .game-qr { align-self: center; }
  .section-head { margin-bottom: 30px; }
  .section-desc { font-size: 15px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { margin-top: 44px; }
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-body { padding: 0 18px 18px; font-size: 14px; }
  .contact-card { padding: 26px 22px; border-radius: 20px; }
  .contact-actions .btn { flex: 1 1 auto; }
  .duo-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 14px 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* 手机端换行后分隔符会落在行尾，直接隐去 */
  .footer-records { gap: 4px 14px; }
  .footer-records .sep { display: none; }
}

/* 小屏手机（iPhone SE 等） */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 14.5px; }
  .brand-text small { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 13px; }
  .game { padding: 20px 16px; }
  .card { padding: 22px 18px; }
  .contact-phone { font-size: 24px; }
}

/* 横屏手机：压缩纵向留白 */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding-top: 96px; }
  .hero-inner { padding-bottom: 48px; }
  .section { padding: 56px 0; }
}

/* PC 端大屏：放大留白与栅格间距 */
@media (min-width: 1440px) {
  :root { --maxw: 1200px; }
  .section { padding: 120px 0; }
  .grid { gap: 22px; }
}

/* 触屏设备：去掉悬停位移，避免点击后状态卡住 */
@media (hover: none), (pointer: coarse) {
  .btn-primary:hover,
  .btn-ghost:hover,
  .card:hover,
  .game:hover,
  .duo-card:hover {
    transform: none;
  }
}
