/* ========================================================================
   QSL.com — v1 styles
   风格: 黑底 + 青蓝紫渐变 + 节点涟漪动效 (仿 ys5.org 版式)
   ======================================================================== */

:root {
  --bg-0: #06080f;
  --bg-1: #0a0d1a;
  --bg-2: #0f1426;
  --line: rgba(255, 255, 255, .08);
  --text: #e6ecff;
  --text-dim: #8a93b2;
  --text-mute: #5a6486;
  --primary: #00d1ff;
  --primary-2: #7a5bff;
  --primary-soft: rgba(0, 209, 255, .12);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1280px;
  --grad: linear-gradient(120deg, #00d1ff 0%, #7a5bff 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,209,255,.18), rgba(122,91,255,.18));
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

/* ---------- 渐变文字 ---------- */
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-big {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.4em;
  font-weight: 800;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  position: relative;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(0, 209, 255, .28), inset 0 0 0 1px rgba(255,255,255,.12);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(0, 209, 255, .36); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(0,209,255,.4); color: #fff; }
.btn-outline { color: #fff; border: 1px solid var(--text); padding: 14px 36px; }
.btn-outline:hover { background: #fff; color: #000; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ---------- 加载动画 ---------- */
.loader-mask {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
.loader-mask.hide { opacity: 0; pointer-events: none; }
.loader-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
}
.loader-brand { font-size: 22px; font-weight: 700; color: #fff; }
.loader-words {
  height: 30px; overflow: hidden; position: relative; min-width: 84px;
}
.loader-words::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--bg-1) 10%, transparent 30%, transparent 70%, var(--bg-1) 90%);
  pointer-events: none;
}
.loader-words span {
  display: block; height: 30px; line-height: 30px;
  font-size: 20px; font-weight: 600;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: wordSpin 2.4s infinite;
}
.loader-words span:nth-child(2) { animation-delay: .6s; }
.loader-words span:nth-child(3) { animation-delay: 1.2s; }
.loader-words span:nth-child(4) { animation-delay: 1.8s; }
@keyframes wordSpin {
  0%, 20%   { transform: translateY(0); }
  25%, 45%  { transform: translateY(-100%); }
  50%, 70%  { transform: translateY(-200%); }
  75%, 95%  { transform: translateY(-300%); }
  100%      { transform: translateY(0); }
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background .3s ease, backdrop-filter .3s ease, padding .3s ease;
}
.nav.is-scrolled {
  background: rgba(8, 11, 22, .85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.nav-inner {
  width: min(96%, var(--maxw));
  margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, .55);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; }
.brand-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-menu {
  display: flex; gap: 6px; flex: 1; justify-content: center;
}
.nav-link {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.is-active { color: #fff; background: var(--primary-soft); }
.nav-cta { color: #fff; background: var(--grad-soft); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--text-dim); border: 1px solid var(--line);
  font-size: 13px;
}
.lang-toggle:hover { color: #fff; border-color: rgba(0,209,255,.4); }
.burger { display: none; width: 36px; height: 36px; position: relative; }
.burger span {
  position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 17px; }
.burger span:nth-child(3) { top: 22px; }
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero-bg .orb-a {
  width: 520px; height: 520px; left: -120px; top: -120px;
  background: radial-gradient(circle, #00d1ff 0%, transparent 60%);
}
.hero-bg .orb-b {
  width: 620px; height: 620px; right: -160px; top: 80px;
  background: radial-gradient(circle, #7a5bff 0%, transparent 60%);
}
.hero-inner { position: relative; z-index: 1; width: min(92%, var(--maxw)); margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 14px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--text-dim);
  background: rgba(255,255,255,.03);
}
.hero-title {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.05; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px;
}
.hero-sub { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px; margin: 64px auto 0; gap: 20px;
}
.hero-stats > div {
  text-align: center; padding: 20px 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}
.hero-stats strong {
  display: block; font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { color: var(--text-dim); font-size: 13px; }

/* ---------- 通用 section ---------- */
section { padding: 100px 0; position: relative; }
.section-title {
  text-align: center; font-size: clamp(28px, 4.4vw, 52px); font-weight: 800;
  margin: 0 0 14px; letter-spacing: -.3px;
}
.section-sub {
  text-align: center; color: var(--text-dim); margin: 0 auto 40px;
  max-width: 720px; font-size: 15px;
}

/* ---------- 地图 ---------- */
.map-section { padding-bottom: 60px; }
.map-wrap {
  width: min(94%, var(--maxw));
  margin: 30px auto 0;
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
  border: 1px solid var(--line);
  padding: 16px;
  overflow: hidden;
}
.map-svg { width: 100%; height: auto; }
.map-svg .dots circle { fill: rgba(122,184,255,.4); }
.map-svg .node { fill: var(--primary); filter: drop-shadow(0 0 4px var(--primary)); }
.map-svg .ripple { fill: none; stroke: var(--primary); stroke-width: 1.2; opacity: 0; }
.map-svg .ripple.ping { animation: ripple 3s cubic-bezier(.2,.6,.4,1) infinite; }
.map-svg .ripple.ping.d1 { animation-delay: 1s; }
.map-svg .ripple.ping.d2 { animation-delay: 2s; }
@keyframes ripple {
  0%   { r: 2; opacity: 0; }
  15%  { opacity: .7; }
  100% { r: 22; opacity: 0; }
}
.map-hint { text-align: center; color: var(--text-mute); margin: 14px 0 0; font-size: 12px; }

/* ---------- 订阅 50% ---------- */
.plan { text-align: center; padding: 60px 0 40px; }
.plan-cta { margin-top: 26px; }
.big-num {
  margin: 60px auto 0; max-width: var(--maxw);
  font-size: clamp(120px, 18vw, 220px); font-weight: 800; line-height: 1;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--primary) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .85;
}

/* ---------- 场景区 ---------- */
.scene { text-align: center; padding: 60px 0; }
.scene-cta { margin-top: 24px; }
.scene-art { margin: 40px auto 0; max-width: var(--maxw); padding: 0 5%; }

/* 游戏 */
.scene-art-game .card-stack {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.game-card {
  padding: 18px 26px; min-width: 180px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0,209,255,.08), rgba(0,209,255,.02));
  border: 1px solid rgba(0,209,255,.25);
  font-weight: 600; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  box-shadow: var(--shadow-1);
}
.game-card .ok { color: #fff; font-size: 24px; font-weight: 800; }
.game-card .ok::after {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; margin-left: 8px; vertical-align: middle;
  box-shadow: 0 0 8px #4ade80;
}

/* 电商 */
.scene-art-shop .shop-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 520px; margin: 0 auto;
}
.shop-item {
  padding: 36px 0; text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(122,91,255,.08), rgba(122,91,255,.02));
  border: 1px solid rgba(122,91,255,.3);
  font-weight: 700; color: #fff;
  font-size: 18px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.shop-item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(122,91,255,.25); }

/* AI */
.scene-art-ai .ai-chat {
  max-width: 480px; margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
}
.ai-line {
  padding: 10px 14px; border-radius: 14px; max-width: 80%;
  font-size: 14px;
}
.ai-line.user {
  background: var(--grad-soft); color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.ai-line.bot {
  background: rgba(255,255,255,.04); color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
/* ---------- 5 大特�?---------- */
.features { padding: 100px 0 80px; }
.features-grid {
  width: min(92%, var(--maxw));
  margin: 30px auto 0;
  display: grid; gap: 18px;
  grid-template-columns: repeat(5, 1fr);
}
.feature {
  padding: 30px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(0,209,255,.4); box-shadow: 0 10px 30px rgba(0,209,255,.15); }
.feature-ring {
  width: 76px; height: 76px; margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(0,209,255,.3), transparent 60%),
    rgba(0, 0, 0, .5);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  position: relative;
}
.feature-ring::before, .feature-ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from var(--angle,0deg), transparent 60%, var(--primary), transparent 80%);
  z-index: -1; opacity: .35; animation: spin 6s linear infinite;
}
.feature-ring::after { inset: -1px; opacity: .6; animation-duration: 3s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.feature h3 { font-size: 16px; margin: 0 0 6px; color: #fff; }
.feature p { color: var(--text-dim); font-size: 13px; margin: 0; line-height: 1.55; }
.features-cta { text-align: center; margin-top: 50px; }

/* ---------- 多设备方�?---------- */
.multidev { text-align: center; padding: 80px 0 100px; }
.multidev-cta { margin-top: 30px; }

/* ---------- 用户�?---------- */
.users { text-align: center; padding: 60px 0 100px; }
.users-strip { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.users-row { display: flex; gap: 40px; width: max-content; animation: marquee 24s linear infinite; }
.users-row .av {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,209,255,.3), rgba(122,91,255,.3));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff; font-size: 18px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 30px;
  background: var(--bg-1);
}
.footer-top {
  width: min(94%, var(--maxw));
  margin: 0 auto;
  display: flex; gap: 60px; align-items: flex-start;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; min-width: 220px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 40px; flex: 1; min-width: 280px; }
.footer-col h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer-col a {
  display: block; color: var(--text-dim); font-size: 13px; padding: 4px 0;
  transition: color .15s ease;
}
.footer-col a:hover { color: var(--primary); cursor: pointer; }
.footer-bottom {
  width: min(94%, var(--maxw));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-mute); font-size: 12px; gap: 16px; flex-wrap: wrap;
}
.socials { display: flex; gap: 10px; }
.soc {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.soc:hover { color: var(--primary); background: rgba(0,209,255,.08); }

/* ---------- 必应 SEO 状态条（管理用） ---------- */
.qsl-seo-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 1000;
  display: flex; gap: 8px; align-items: center;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(0, 209, 255, .1);
  border: 1px solid rgba(0, 209, 255, .3);
  backdrop-filter: blur(8px);
  font-size: 12px; color: #fff;
  box-shadow: 0 4px 20px rgba(0, 209, 255, .15);
}
.qsl-seo-bar a { color: var(--primary); text-decoration: underline; }
.qsl-seo-bar button {
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: var(--grad); color: #fff;
  transition: transform .15s ease;
}
.qsl-seo-bar button:hover { transform: scale(1.05); }
@media (max-width: 600px) { .qsl-seo-bar { font-size: 11px; padding: 6px 10px; } }
.reveal { opacity: .001; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* 兜底：5 秒后或 prefers-reduced-motion 时强制可见 */
.reveal.force-show { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应�?---------- */
@media (max-width: 900px) {
  section { padding: 70px 0; }
  .nav-menu { display: none; }
  .burger { display: block; }
  .nav-inner { padding: 8px 12px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top { gap: 30px; }
  .hero { padding: 110px 0 50px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-stats > div { padding: 14px 4px; }
  .map-wrap { padding: 10px; }
}
@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .scene-art-game .card-stack { flex-direction: column; align-items: stretch; }
  .game-card { min-width: 0; }
  .scene-art-shop .shop-grid { grid-template-columns: 1fr 1fr; }
}
