/* 经典游戏助手官网 — 深色科技风，与客户端视觉统一 */
:root {
  --bg: #1B2838;
  --bg2: #16222F;
  --card: #223245;
  --card2: #1E2C3D;
  --border: #2A475E;
  --text: #C7D5E0;
  --muted: #6A7A8A;
  --accent: #66C0F4;
  --accent-strong: #2E7BE8;
  --grad-a: #2E7BE8;
  --grad-b: #7A3FE8;
  --gold: #E0A83C;
  --wechat: #07C160;
  --ok: #3FBF7F;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 渐变文字（流光） ---------- */
.grad-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b), var(--accent), var(--grad-b), var(--grad-a));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27, 40, 56, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { width: 34px; height: 34px; border-radius: 8px; }
.nav-logo span { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: 20px;
  transition: opacity .2s, transform .2s;
}
.nav-cta:hover { opacity: .9; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(ellipse 900px 500px at 75% -10%, rgba(122, 63, 232, 0.18), transparent 60%),
    radial-gradient(ellipse 700px 400px at 15% 110%, rgba(46, 123, 232, 0.15), transparent 60%);
}
/* 科技网格底纹（缓慢漂移） */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(102, 192, 244, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 192, 244, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 0%, transparent 75%);
  animation: gridDrift 24s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  0% { background-position: 0 0; }
  100% { background-position: 56px 56px; }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-btns { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 34px;
  border-radius: 26px;
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.btn:hover { opacity: .9; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 123, 232, 0.35);
}
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.hero-note b { color: var(--gold); font-weight: 600; }

/* ---------- 客户端首页真实截图 ---------- */
.mock-wrap { position: relative; }
.mock-glow {
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(ellipse at center, rgba(102, 192, 244, 0.16), transparent 70%);
  filter: blur(12px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.float-wrap { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.shot-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  background: var(--card2);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.shot-frame img { width: 100%; display: block; }
/* 扫光 */
.scanline {
  position: absolute;
  left: 0; right: 0;
  top: -30%;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(102, 192, 244, 0.14), rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
  animation: scan 4.5s linear infinite;
}
@keyframes scan {
  0% { top: -30%; }
  100% { top: 130%; }
}
/* 四角科技描边 */
.shot-corner { position: absolute; width: 26px; height: 26px; z-index: 2; pointer-events: none; }
.shot-corner.c1 { top: 10px; left: 10px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); border-top-left-radius: 8px; }
.shot-corner.c2 { top: 10px; right: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-top-right-radius: 8px; }
.shot-corner.c3 { bottom: 10px; left: 10px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); border-bottom-left-radius: 8px; }
.shot-corner.c4 { bottom: 10px; right: 10px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); border-bottom-right-radius: 8px; }

/* ---------- 数据条 ---------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 36px 0;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat > span { font-size: 13px; color: var(--muted); }

/* ---------- 通用 section ---------- */
section { padding: 90px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-head .tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid rgba(102, 192, 244, 0.4);
  background: rgba(102, 192, 244, 0.08);
  padding: 4px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: 1px; margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 15px; }

/* ---------- 功能四卡 ---------- */
.features { background: var(--bg2); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--accent-strong); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(46, 123, 232, 0.25), rgba(122, 63, 232, 0.25));
  border: 1px solid rgba(102, 192, 244, 0.35);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 修复中心 ---------- */
.repair-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}
.repair-copy h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; letter-spacing: 1px; }
.repair-copy > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.repair-list { list-style: none; margin-bottom: 30px; }
.repair-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(42, 71, 94, 0.5);
}
.repair-list li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 800;
}
.repair-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.repair-panel h3 {
  font-size: 17px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.repair-panel h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.repair-panel .rp-sub { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.rp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 4px;
  font-size: 14px;
  border-bottom: 1px solid rgba(42, 71, 94, 0.45);
}
.rp-row .st { font-size: 13px; }
.rp-row .st.ok { color: var(--ok); }
.repair-panel .btn { width: 100%; justify-content: center; margin-top: 24px; }

/* ---------- 游戏库 ---------- */
.games { background: var(--bg2); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 18px;
  transition: transform .25s, border-color .25s;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent-strong); }
.game-cover {
  width: 64px; height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card2);
}
.game-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.game-card:hover .game-cover img { transform: scale(1.1); }
.game-card h4 { font-size: 17px; margin-bottom: 4px; }
.game-card p { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.game-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(102, 192, 244, 0.4);
  border-radius: 10px;
  padding: 1px 10px;
}

/* ---------- 三步 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  box-shadow: 0 10px 26px rgba(46, 123, 232, 0.35);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); max-width: 300px; margin: 0 auto; }
.step::after {
  content: "";
  position: absolute;
  top: 32px; left: calc(50% + 60px);
  width: calc(100% - 120px);
  border-top: 1px dashed var(--border);
}
.step:last-child::after { display: none; }

/* ---------- 评价 ---------- */
.reviews { background: var(--bg2); }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review-card blockquote { font-size: 14px; color: var(--text); font-style: normal; flex: 1; }
.review-user { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
.review-user b { font-size: 14px; display: block; }
.review-user span { font-size: 12px; color: var(--muted); }

/* ---------- 客服 ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 28px; height: 28px; }
.si-blue { background: var(--card2); border: 1px solid var(--border); }
.si-wechat { background: var(--wechat); }
.si-mp { background: #fff; }
.service-card h3 { font-size: 17px; margin-bottom: 6px; }
.service-card .s-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.service-qr {
  width: 150px; height: 150px;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 12px;
}
.service-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.service-qr-label { font-size: 12px; color: var(--muted); }
.service-card .btn { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg2); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 400; }
.faq-item details[open] summary::after { content: "−"; }
.faq-item details p { padding: 0 24px 20px; font-size: 14px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--bg2); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 30px; height: 30px; border-radius: 7px; }
.footer-logo b { font-size: 15px; }
.footer p { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(42, 71, 94, 0.5);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 动效 ---------- */
/* 滚动渐显 */
.reveal,
.sec-head, .feature-card, .game-card, .step, .review-card, .service-card, .faq-item, .repair-inner > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in,
.sec-head.in, .feature-card.in, .game-card.in, .step.in, .review-card.in, .service-card.in, .faq-item.in, .repair-inner > *.in {
  opacity: 1;
  transform: translateY(0);
}
/* 卡片错峰入场 */
.feature-grid .feature-card:nth-child(2), .game-grid .game-card:nth-child(2), .review-grid .review-card:nth-child(2), .service-grid .service-card:nth-child(2) { transition-delay: 0.08s; }
.feature-grid .feature-card:nth-child(3), .game-grid .game-card:nth-child(3), .review-grid .review-card:nth-child(3), .service-grid .service-card:nth-child(3) { transition-delay: 0.16s; }
.feature-grid .feature-card:nth-child(4), .game-grid .game-card:nth-child(4) { transition-delay: 0.24s; }
.game-grid .game-card:nth-child(5) { transition-delay: 0.32s; }
.game-grid .game-card:nth-child(6) { transition-delay: 0.4s; }
.game-grid .game-card:nth-child(7) { transition-delay: 0.48s; }
.game-grid .game-card:nth-child(8) { transition-delay: 0.56s; }
.game-grid .game-card:nth-child(9) { transition-delay: 0.64s; }
/* 图标悬浮 */
.feature-icon { transition: transform 0.3s ease; }
.feature-card:hover .feature-icon { transform: scale(1.12) rotate(-4deg); }
/* 导航滚动态 */
.nav.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.nav-links a { position: relative; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
/* 主按钮呼吸光 */
.btn-primary { position: relative; animation: btnBreathe 3.2s ease-in-out infinite; }
@keyframes btnBreathe {
  0%, 100% { box-shadow: 0 8px 24px rgba(46, 123, 232, 0.35); }
  50% { box-shadow: 0 8px 36px rgba(102, 192, 244, 0.55); }
}
/* 减弱动态偏好 */
@media (prefers-reduced-motion: reduce) {
  .grad-text, .float-wrap, .mock-glow, .scanline, .btn-primary, .hero::before { animation: none; }
  .reveal,
  .sec-head, .feature-card, .game-card, .step, .review-card, .service-card, .faq-item, .repair-inner > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mock-wrap { max-width: 560px; margin: 0 auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .repair-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .feature-grid, .game-grid, .review-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .step::after { display: none; }
  section { padding: 60px 0; }
}
