/* 毛哥石器首页 · 首页专属样式
   依赖全站共用的 styles.css（色板、顶栏、按钮、页脚等），此处只写首页各区块。
   CSP 限制：禁止内联 style 属性，动态效果统一由外链 index.js 通过 CSSOM 设置。 */
:root {
  --sky-1: #5bb8ef;
  --sky-2: #a6defb;
  --sky-3: #e2f6ff;
}

html { scroll-padding-top: 86px; }
body.home img { max-width: 100%; }

/* ================= 首页顶栏：固定在视口顶部，滚动后加深；窄屏收进菜单 ================= */
.home .topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 60;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 251, 240, .62));
  transform: translateX(-50%);
  transition: background .3s ease, box-shadow .3s ease, top .3s ease;
  animation: drop-in .8s var(--ease-jelly) both;
}
.home .topbar.is-scrolled {
  top: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(255, 251, 240, .95));
  box-shadow: 0 5px 0 rgba(90, 52, 23, .1), 0 16px 30px -16px rgba(90, 52, 23, .5);
}
.home .topnav { margin: 0 auto; }
.topbar-side { display: flex; flex: none; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  border: 2px solid #d7ebcf;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(35, 101, 59, .14);
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--leaf);
  border-radius: 2px;
  transition: transform .3s var(--ease-jelly), background .2s ease;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.topbar.is-open .menu-toggle span { background: transparent; }
.topbar.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.topbar.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ================= 首屏 Hero ================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 118px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 34%, var(--sky-3) 58%, #dff3d6 100%);
}
/* 底部奶油色波浪，把首屏与下方内容自然衔接 */
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 4;
  height: 64px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='64' viewBox='0 0 1200 64' preserveAspectRatio='none'%3E%3Cpath d='M0 38 C150 8 300 8 450 30 S750 58 900 30 S1100 8 1200 26 V64 H0 Z' fill='%23fff9ec'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

/* 天空层：太阳光芒旋转、云朵横穿屏幕 */
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; will-change: transform; }
.sun {
  position: absolute;
  top: 96px;
  right: 8%;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 38% 35%, #fffbe0, #ffe06b 55%, #ffc23c);
  border-radius: 50%;
  box-shadow: 0 0 0 16px rgba(255, 226, 107, .22), 0 0 0 38px rgba(255, 226, 107, .1), 0 0 90px 30px rgba(255, 220, 120, .5);
  animation: sun-glow 5s ease-in-out infinite;
}
.sun-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 440px;
  height: 440px;
  margin: -220px 0 0 -220px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 244, 180, .42) 0deg 7deg, transparent 7deg 24deg);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  mask-image: radial-gradient(circle, #000 18%, transparent 66%);
  animation: spin 70s linear infinite;
}
.cloud-1 { --x: 8vw; top: 150px; animation-duration: 95s; animation-delay: -30s; }
.cloud-2 { --x: 62vw; --s: .7; top: 78px; opacity: .8; animation-duration: 120s; animation-delay: -80s; }
.cloud-3 { --x: 34vw; --s: .5; top: 230px; opacity: .7; animation-duration: 140s; animation-delay: -20s; }
.cloud-4 { --x: 84vw; --s: .85; top: 300px; opacity: .75; animation-duration: 110s; animation-delay: -60s; }

/* 主视觉：宣传海报场景图，顶部渐隐进天空，缓慢推镜 + 鼠标/滚动视差（index.js） */
.hero-stage {
  position: relative;
  z-index: 1;
  order: 2;
  width: 100%;
  min-height: 260px;
  margin-top: -6vw;
  aspect-ratio: 1920 / 589;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
  mask-image: linear-gradient(180deg, transparent 0, #000 24%);
}
.hero-stage-inner { position: absolute; inset: -3% -2% -6%; will-change: transform; }
.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transform-origin: 50% 65%;
  animation: ken-burns 26s ease-in-out infinite alternate;
}
.hero-fx { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.hero-copy {
  position: relative;
  z-index: 3;
  order: 1;
  width: min(100% - 32px, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  margin: 0 0 12px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(20, 90, 140, .18);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  animation: pop-in .7s var(--ease-jelly) .1s both;
}
.hero-badge span { padding: 5px 12px; color: #1f6a9a; background: rgba(255, 255, 255, .88); }
.hero-badge b { padding: 5px 12px; color: #fff; background: var(--orange); }

/* 大标题：橙金渐变字 + 深棕描边 + 立体投影，逐字弹入后轻微浮动，定时高光扫过 */
.hero-title {
  display: flex;
  justify-content: center;
  gap: .03em;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(58px, 11vw, 128px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .06em;
}
.hero-title span {
  --i: 0;
  display: inline-block;
  color: #ffae38;
  background:
    linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .95) 48%, transparent 58%) 160% 0 / 260% 100% no-repeat,
    linear-gradient(180deg, #fff09a 0%, #ffc542 42%, #ff8a1f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(2px 0 0 #6b3a14) drop-shadow(-2px 0 0 #6b3a14)
    drop-shadow(0 2px 0 #6b3a14) drop-shadow(0 -2px 0 #6b3a14)
    drop-shadow(0 7px 0 #4a2610) drop-shadow(0 16px 16px rgba(40, 70, 110, .35));
  animation:
    letter-drop .9s var(--ease-jelly) calc(var(--i) * .1s + .2s) both,
    letter-float 3.4s ease-in-out calc(var(--i) * .28s + 1.4s) infinite,
    title-glint 5.5s ease-in-out calc(var(--i) * .12s + 1.6s) infinite;
}
.hero-title span:nth-child(2) { --i: 1; }
.hero-title span:nth-child(3) { --i: 2; }
.hero-title span:nth-child(4) { --i: 3; }
.hero-slogan {
  margin: 14px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(19px, 2.5vw, 28px);
  letter-spacing: 2px;
  text-shadow:
    2px 0 0 #2a78b0, -2px 0 0 #2a78b0, 0 2px 0 #2a78b0, 0 -2px 0 #2a78b0,
    2px 2px 0 #2a78b0, -2px -2px 0 #2a78b0, 2px -2px 0 #2a78b0, -2px 2px 0 #2a78b0,
    0 5px 0 rgba(20, 70, 110, .3);
  animation: pop-in .8s var(--ease-jelly) .65s both;
}
.hero-sub {
  margin: 10px 0 0;
  color: #1d4f70;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  animation: fade-up .8s var(--ease-out) .8s both;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.hero-cta .btn { animation: pop-in .7s var(--ease-jelly) backwards; }
.hero-cta .btn:nth-child(1) { animation-delay: .9s; }
.hero-cta .btn:nth-child(2) { animation-delay: 1s; }
.hero-cta .btn:nth-child(3) { animation-delay: 1.1s; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  padding: 5px 13px;
  color: #3d4a36;
  background: rgba(255, 255, 255, .88);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(35, 101, 59, .16);
  font-size: 13px;
  font-weight: 700;
  animation: pop-in .6s var(--ease-jelly) both;
}
.hero-facts li b { color: var(--orange-deep); font-size: 15px; }
.hero-facts li:nth-child(1) { animation-delay: 1.2s; }
.hero-facts li:nth-child(2) { animation-delay: 1.27s; }
.hero-facts li:nth-child(3) { animation-delay: 1.34s; }
.hero-facts li:nth-child(4) { animation-delay: 1.41s; }
.hero-facts li:nth-child(5) { animation-delay: 1.48s; }
.hero-facts li:nth-child(6) { animation-delay: 1.55s; }

/* ================= 快捷入口：压在首屏底部的浮起面板 ================= */
.quick { position: relative; z-index: 6; width: min(100% - 32px, 1180px); margin: -70px auto 0; }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1.32fr)) repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-tile {
  --tone: #ff6fa5;
  --tone-soft: #ffe3ee;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 18px 16px 16px;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: var(--paper);
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform .35s var(--ease-jelly), box-shadow .25s ease;
  /* 入场动画只用 backwards 填充，结束后不锁定 transform，悬停上浮才能生效 */
  animation: rise-in .8s var(--ease-jelly) backwards;
}
div.quick-tile { cursor: default; }
button.quick-tile { width: 100%; }
.quick-tile:nth-child(1) { animation-delay: .5s; }
.quick-tile:nth-child(2) { animation-delay: .58s; }
.quick-tile:nth-child(3) { animation-delay: .66s; }
.quick-tile:nth-child(4) { animation-delay: .74s; }
.quick-tile:nth-child(5) { animation-delay: .82s; }
/* 卡片右上角的主题色泡泡装饰 */
.quick-tile::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -40px;
  z-index: -1;
  width: 130px;
  height: 130px;
  background: var(--tone-soft);
  border-radius: 50%;
  transition: transform .5s var(--ease-jelly);
}
.quick-tile::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: var(--tone);
}
.quick-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hard-lg); }
.quick-tile:hover::before { transform: scale(1.35); }
.quick-tile:hover .qt-icon { animation: wiggle .6s ease-in-out; }
.qt-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--tone);
  border: 3px solid #fff;
  border-radius: 17px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}
.qt-icon img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.qt-copy { display: block; min-width: 0; }
/* 右下角有箭头的卡片给文字留出位置 */
.qt-download .qt-copy, .qt-cdk .qt-copy { padding-right: 18px; }
.qt-copy h2, .qt-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.qt-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.qt-num {
  display: block;
  margin-top: 2px;
  color: var(--tone);
  font: 800 22px/1.2 Consolas, "Microsoft YaHei", monospace;
  letter-spacing: 1px;
}
.qt-go {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--tone);
  font-size: 22px;
  font-weight: 800;
  transition: transform .3s var(--ease-jelly);
}
.quick-tile:hover .qt-go { transform: translateX(4px); }
.qt-download:hover .qt-go { transform: translateY(4px); }
.qt-chip {
  padding: 3px 11px;
  color: #fff;
  background: var(--tone);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.ver-pair { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ver {
  padding: 7px 14px;
  color: #fff;
  background: var(--tone);
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 3px 8px -3px rgba(0, 0, 0, .25);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .5px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease-jelly), filter .2s ease;
}
.ver:hover { transform: translateY(-3px) scale(1.05); filter: brightness(1.08); }
.ver-alt { background: #a86a38; }
.qt-register { --tone: #ff6fa5; --tone-soft: #ffe1ed; }
.qt-password { --tone: #22b8a8; --tone-soft: #dcf6f1; }
.qt-download { --tone: #ff9b2f; --tone-soft: #ffeccf; }
.qt-cdk { --tone: #9b7af2; --tone-soft: #ece5ff; }
.qt-qq { --tone: #3b9cf3; --tone-soft: #e1f0ff; }

/* ================= 通用区块 ================= */
.section { position: relative; isolation: isolate; width: min(100% - 32px, 1180px); margin: 0 auto; padding-top: 92px; }
.sec-head { position: relative; max-width: 760px; margin: 0 auto 34px; text-align: center; }
.sec-mascot {
  display: block;
  width: auto;
  height: 64px;
  margin: 0 auto 6px;
  image-rendering: pixelated;
  animation: hop 2.2s ease-in-out infinite;
}
.sec-kicker {
  display: inline-block;
  margin: 0;
  padding: 4px 14px;
  color: var(--orange-deep);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(224, 106, 18, .18);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.5px;
}
.sec-head h2 {
  margin: 10px 0 0;
  color: var(--leaf);
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(35, 101, 59, .12);
}
/* 标题下方的波浪下划线 */
.sec-head h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 12px;
  margin: 8px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M2 6 Q12 0 22 6 T42 6 T62 6 T82 6 T102 6 T118 6' fill='none' stroke='%23ffb13b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sec-desc { margin: 10px auto 0; color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ================= 冒险路线：两块任务石板 ================= */
.route-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.route-board {
  --tone: #3b9cf3;
  --tone-deep: #1e6fc0;
  --tone-soft: #e8f3ff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hard);
}
.route-board::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -60px;
  z-index: -1;
  width: 220px;
  height: 220px;
  background: var(--tone-soft);
  border-radius: 50%;
}
.route-board::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--tone), var(--tone-2, var(--tone)));
}
.rb-newbie { --tone: #3b9cf3; --tone-2: #22c3a3; --tone-deep: #1b6bb8; --tone-soft: #e6f3ff; }
.rb-grow { --tone: #ff7a55; --tone-2: #ffb13b; --tone-deep: #c24a24; --tone-soft: #fff0e6; }
.rb-tag {
  align-self: flex-start;
  padding: 4px 12px;
  color: #fff;
  background: var(--tone);
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}
.rb-head h3 {
  margin: 10px 0 0;
  color: var(--tone-deep);
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 2px;
}
.rb-head p { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.75; }
.rb-steps { position: relative; display: grid; gap: 10px; margin: 18px 0 18px; padding: 0; list-style: none; }
/* 步骤之间的虚线连接，进入视口时由上往下画出 */
.rb-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 27px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--tone) 0 8px, transparent 8px 14px);
  border-radius: 2px;
  transform-origin: top;
}
.rb-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  background: var(--tone-soft);
  border-radius: 16px;
  transition: transform .3s var(--ease-jelly), background .2s ease, box-shadow .2s ease;
}
.rb-steps li:hover { background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .25); transform: translateX(6px); }
.rb-no {
  position: relative;
  z-index: 1;
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--tone);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
  font-size: 13px;
  font-weight: 800;
}
.rb-steps strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.35; }
.rb-steps small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.rb-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 20px;
  color: var(--tone-deep);
  background: #fff;
  border: 2px solid var(--tone);
  border-radius: 999px;
  box-shadow: 0 4px 0 var(--tone-soft);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .3s var(--ease-jelly);
}
.rb-link span { transition: transform .3s var(--ease-jelly); }
.rb-link:hover { color: #fff; background: var(--tone); transform: translateY(-2px); }
.rb-link:hover span { transform: translateX(5px); }

/* ================= 客户端下载 ================= */
.dl-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 30px 36px 30px 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff6d6 0%, #ffe6c6 48%, #ffdbe8 100%);
  border: 3px solid #fff;
  border-radius: 36px;
  box-shadow: var(--shadow-hard);
}
.dl-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .7) 2.5px, transparent 3px);
  background-size: 26px 26px;
  animation: dots-drift 30s linear infinite;
}
.dl-art { position: relative; display: grid; place-items: center; height: 260px; }
.dl-halo {
  position: absolute;
  width: 230px;
  height: 230px;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: halo 3s ease-in-out infinite;
}
.dl-orbit {
  position: absolute;
  width: 236px;
  height: 236px;
  border: 2px dashed rgba(224, 106, 18, .35);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.dl-orbit i {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #ffc53a;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.dl-orbit i:nth-child(1) { top: -10px; left: calc(50% - 10px); }
.dl-orbit i:nth-child(2) { bottom: 22px; left: 8px; width: 16px; height: 16px; background: #ff6fa5; }
.dl-orbit i:nth-child(3) { right: 6px; bottom: 34px; width: 14px; height: 14px; background: #3b9cf3; }
.dl-pet {
  position: relative;
  z-index: 1;
  width: 192px;
  height: auto;
  image-rendering: pixelated;
  animation: hop 1.8s ease-in-out infinite;
}
.dl-rock {
  position: absolute;
  bottom: 44px;
  width: 170px;
  height: 30px;
  background: radial-gradient(ellipse, rgba(90, 52, 23, .3), transparent 70%);
  border-radius: 50%;
  animation: shadow-pulse 1.8s ease-in-out infinite;
}
.dl-body { min-width: 0; }
.dl-body h2 {
  margin: 10px 0 0;
  color: var(--leaf);
  font-family: var(--font-title);
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 3px;
  text-shadow: 0 3px 0 #fff;
}
.dl-lead { margin: 6px 0 0; color: #7a5a3a; font-size: 14px; }
.dl-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.dl-btn {
  --tone: #24a86b;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 13px 14px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(90, 52, 23, .12), 0 12px 22px -12px rgba(90, 52, 23, .5);
  transition: transform .3s var(--ease-jelly), box-shadow .2s ease;
}
.dl-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  bottom: -30%;
  left: -70%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 170, .75), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.dl-btn:hover { transform: translateY(-5px); box-shadow: 0 9px 0 rgba(90, 52, 23, .12), 0 18px 28px -12px rgba(90, 52, 23, .5); }
.dl-btn:hover::after { left: 130%; }
.dl-btn:active { transform: translateY(2px); }
.dl-quark { --tone: #24a86b; }
.dl-baidu { --tone: #3185e8; }
.dl-direct { --tone: #e8862c; }
.dl-ico {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--tone);
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15);
}
.dl-ico img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.dl-copy { display: grid; gap: 3px; min-width: 0; }
.dl-copy strong { color: var(--ink); font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.dl-copy small { color: var(--muted); font-size: 12px; }
.dl-copy b { color: var(--tone); letter-spacing: .5px; }
.dl-go { margin-left: auto; color: var(--tone); font-size: 21px; font-weight: 800; }
.dl-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tip;
}
.dl-tips li { display: flex; align-items: center; gap: 7px; color: #6a4c2e; font-size: 13px; font-weight: 700; counter-increment: tip; }
.dl-tips li::before {
  content: counter(tip);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 2px 0 var(--orange-deep);
  font-size: 12px;
}
.dl-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  color: #7a5a3a;
  border-top: 2px dashed rgba(224, 106, 18, .25);
  font-size: 13.5px;
}
.dl-contact strong { color: var(--leaf); font-size: 16px; letter-spacing: 1px; }
.copy-btn {
  padding: 5px 14px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 3px 0 #2170c0;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--ease-jelly);
}
.copy-btn:hover { transform: translateY(-2px) scale(1.05); }
.copy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #2170c0; }

/* ================= 玩法活动：便当格 ================= */
/* 通栏背景：薄荷到奶黄的柔和色带 */
.section-play::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: -60px;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='50' viewBox='0 0 1200 50' preserveAspectRatio='none'%3E%3Cpath d='M0 26 C200 0 400 0 600 22 S1000 50 1200 20 V0 H0 Z' fill='%23fff9ec'/%3E%3C/svg%3E") top / 100% 50px no-repeat,
    linear-gradient(180deg, #e3f7ea 0%, #e9f5ff 55%, #fff9ec 100%);
  transform: translateX(-50%);
}
.play-grid {
  display: grid;
  /* dense：整行宽的休闲乐园横幅排在主卡后面时，小卡自动补齐主卡旁的空位 */
  grid-auto-flow: row dense;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 18px;
}
.play-card {
  --tone: #ff7a55;
  --tone-2: #ffb199;
  --tone-deep: #c24a24;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding: 18px 18px 16px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  transition: transform .4s var(--ease-jelly), box-shadow .25s ease;
}
/* 卡片顶部的主题色弧形头 */
.play-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 74px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2));
  border-radius: 0 0 50% 50% / 0 0 22px 22px;
}
/* 跟随指针的高光（位置由 index.js 写入 --gx/--gy） */
.play-card::after, .trade-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .5), transparent 46%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.play-card:hover::after, .trade-card:hover::after { opacity: 1; }
.tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-7px);
  box-shadow: var(--shadow-hard-lg);
}
.tilt.is-tilting { transition: transform .12s ease-out, box-shadow .25s ease; }
.pc-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  color: var(--tone-deep);
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
}
.pc-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-top: 12px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08), 0 0 0 4px rgba(255, 255, 255, .6);
  transition: transform .4s var(--ease-jelly);
}
/* 网格项的百分比高度不可靠，图标尺寸用定值，object-fit 才能等比收进框内 */
.pc-icon img { width: 50px; height: 50px; object-fit: contain; image-rendering: pixelated; }
/* 宠物动图自带阴影，按比例完整收进图标框 */
.pc-icon-pet img { width: 66px; height: 66px; }
.play-card:hover .pc-icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }
.play-card strong {
  margin-top: 8px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.3;
}
.play-card small { color: var(--muted); font-size: 12.8px; line-height: 1.65; }
.pc-go {
  display: inline-flex;
  margin-top: auto;
  padding-top: 8px;
  color: var(--tone-deep);
  font-size: 13.5px;
  font-weight: 800;
  transition: transform .3s var(--ease-jelly);
}
.play-card:hover .pc-go { transform: translateX(5px); }
.pc-guides { --tone: #6cc23c; --tone-2: #b8e36a; --tone-deep: #3f8a1f; }
.pc-signin { --tone: #2fb3e6; --tone-2: #8fdcf7; --tone-deep: #1680b0; }
.pc-arena { --tone: #ff6b5a; --tone-2: #ffb08a; --tone-deep: #cc3f2d; }
.pc-rogue { --tone: #9b7af2; --tone-2: #cbb6ff; --tone-deep: #6a48c9; }
.pc-expedition { --tone: #22c3a3; --tone-2: #8fe8cf; --tone-deep: #0f8f76; }
.pc-lucky { --tone: #ffbe2e; --tone-2: #ffe07a; --tone-deep: #a86e00; }
.pc-petshow { --tone: #ff6fa5; --tone-2: #ffb3cf; --tone-deep: #cc3b73; }
.pc-changelog { --tone: #5b8def; --tone-2: #a9c4ff; --tone-deep: #3160c9; }

/* 主卡：活动指引，紫粉渐变 + 星点背景 + 大号宠物 */
.pc-feature {
  --tone-deep: #7c43d0;
  grid-row: span 2;
  grid-column: span 2;
  justify-content: flex-end;
  gap: 10px;
  min-height: 438px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(150deg, #7f66f0 0%, #b877ee 46%, #ff86b4 100%);
}
.pc-feature::before {
  height: auto;
  inset: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .8) 1.5px, transparent 2px) 0 0 / 38px 38px,
    radial-gradient(circle, rgba(255, 240, 160, .7) 1px, transparent 1.5px) 19px 19px / 38px 38px;
  border-radius: 0;
  opacity: .6;
  animation: dots-drift 24s linear infinite;
}
.pc-feature .pc-tag { top: 20px; right: 20px; left: auto; }
.pc-art {
  position: absolute;
  top: 8%;
  right: 6%;
  display: grid;
  place-items: center;
  width: 58%;
  height: 58%;
}
.pc-art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 68%);
  border-radius: 50%;
  animation: halo 3s ease-in-out infinite;
}
.pc-art img {
  position: relative;
  width: auto;
  height: 82%;
  image-rendering: pixelated;
  animation: hop 2s ease-in-out infinite;
}
.pc-feature strong { font-size: clamp(26px, 3vw, 34px); text-shadow: 0 3px 0 rgba(80, 30, 120, .35); }
.pc-feature small { max-width: 30em; color: rgba(255, 255, 255, .94); font-size: 14.5px; }
.pc-feature .pc-go {
  margin-top: 8px;
  padding: 11px 22px;
  color: #7c43d0;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(80, 30, 120, .3);
  font-size: 15px;
}

/* 休闲乐园横幅：整行宽，糖果渐变 + 一排跳动的宠物 */
.pc-fun {
  --tone-deep: #d1541f;
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 200px;
  padding: 26px 30px;
  color: #fff;
  background: linear-gradient(120deg, #ffb13d 0%, #ff7a8a 52%, #8f7bff 100%);
}
.pc-fun::before {
  inset: 0;
  height: auto;
  background: radial-gradient(circle, rgba(255, 255, 255, .75) 1.5px, transparent 2px) 0 0 / 34px 34px;
  border-radius: 0;
  opacity: .5;
  animation: dots-drift 24s linear infinite;
}
.pc-fun strong { max-width: 50%; font-size: clamp(22px, 2.6vw, 30px); text-shadow: 0 3px 0 rgba(150, 40, 60, .35); }
.pc-fun small { max-width: 50%; color: rgba(255, 255, 255, .95); font-size: 14px; }
.pc-fun .pc-go {
  margin-top: 10px;
  padding: 10px 22px;
  color: #d1541f;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(150, 40, 60, .3);
  font-size: 15px;
}
.pc-fun-pets {
  position: absolute;
  top: 50%;
  right: 3%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  width: 46%;
  height: 72%;
  transform: translateY(-50%);
}
.pc-fun-pets img {
  width: auto;
  height: 62%;
  max-height: 100px;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 0 rgba(90, 30, 60, .2));
  animation: hop 2s ease-in-out infinite;
}
.pc-fun-pets img:nth-child(2) { animation-delay: .25s; }
.pc-fun-pets img:nth-child(3) { animation-delay: .5s; }
.pc-fun-pets img:nth-child(4) { animation-delay: .75s; }
.pc-fun-pets img:nth-child(5) { animation-delay: 1s; }
.pc-fun-pets img:nth-child(6) { animation-delay: 1.25s; }
.play-card:hover .pc-fun-pets img { animation-duration: 1s; }

/* ================= 交易服务：集市摊位 ================= */
.trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.trade-card {
  --tone: #e85d75;
  --tone-soft: #ffe4ea;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: 16px;
  row-gap: 4px;
  min-width: 0;
  padding: 46px 20px 18px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border: 3px solid #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  transition: transform .4s var(--ease-jelly), box-shadow .25s ease;
}
/* 条纹遮阳棚 + 波浪花边 */
.tc-awning {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 32px;
  background: repeating-linear-gradient(90deg, var(--tone) 0 28px, #fff 28px 56px);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% 18px no-repeat,
    radial-gradient(circle 14px at 14px 18px, #000 13.5px, transparent 14px) 0 0 / 28px 32px repeat-x;
  mask:
    linear-gradient(#000, #000) top / 100% 18px no-repeat,
    radial-gradient(circle 14px at 14px 18px, #000 13.5px, transparent 14px) 0 0 / 28px 32px repeat-x;
  transform-origin: top;
  transition: transform .5s var(--ease-jelly);
}
.trade-card:hover .tc-awning { transform: scaleY(1.18); }
.tc-icon {
  display: grid;
  grid-row: 1 / span 3;
  place-items: center;
  width: 70px;
  height: 70px;
  background: var(--tone-soft);
  border: 3px solid #fff;
  border-radius: 22px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .07);
  transition: transform .4s var(--ease-jelly);
}
.tc-icon img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
/* 周边商城用的是高清站标，缩小时保持平滑 */
.tc-shop .tc-icon img { image-rendering: auto; }
.trade-card:hover .tc-icon { transform: translateY(-4px) rotate(6deg) scale(1.08); }
.trade-card strong { font-family: var(--font-title); font-size: 21px; font-weight: 700; letter-spacing: 1.5px; }
.trade-card small { color: var(--muted); font-size: 12.8px; line-height: 1.6; }
.tc-go { color: var(--tone); font-size: 13.5px; font-weight: 800; transition: transform .3s var(--ease-jelly); }
.trade-card:hover .tc-go { transform: translateX(5px); }
.tc-mall { --tone: #e85d75; --tone-soft: #ffe3ea; }
.tc-pay { --tone: #f0a92a; --tone-soft: #fff1d3; }
.tc-shop { --tone: #2fb3e6; --tone-soft: #dff4fd; }
.tc-auction { --tone: #3b9cf3; --tone-soft: #e1efff; }
.tc-cbg { --tone: #ff8a3d; --tone-soft: #ffeadb; }
.tc-fusion { --tone: #9b7af2; --tone-soft: #ede6ff; }

/* 口号与区块说明换行时尽量均分，避免末尾单字成行；口号与卡片标题只在标点、空格处断行 */
.hero-slogan, .hero-sub, .sec-desc { text-wrap: balance; }
.hero-slogan, .hero-sub, .play-card strong { word-break: keep-all; }

/* ================= 滚动入场动效（index.js 控制类名） ================= */
.reveal-wait { opacity: 0; transform: translateY(36px) scale(.97); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .9s var(--ease-jelly);
  transition-delay: var(--d, 0ms);
}
.motion .rb-steps::before { transform: scaleY(0); }
.motion .is-seen .rb-steps::before { transform: scaleY(1); transition: transform 1.2s var(--ease-out) .3s; }
.motion .route-board:not(.is-seen) .rb-steps li { opacity: 0; }
.motion .route-board.is-seen .rb-steps li { animation: step-in .7s var(--ease-jelly) backwards; }
.motion .route-board.is-seen .rb-steps li:nth-child(1) { animation-delay: .25s; }
.motion .route-board.is-seen .rb-steps li:nth-child(2) { animation-delay: .4s; }
.motion .route-board.is-seen .rb-steps li:nth-child(3) { animation-delay: .55s; }
.motion .route-board.is-seen .rb-steps li:nth-child(4) { animation-delay: .7s; }

/* ================= 宠物巡游 ================= */
.parade {
  position: relative;
  height: 170px;
  margin-top: 100px;
  overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='90' viewBox='0 0 480 90'%3E%3Cpath d='M0 40 Q60 18 120 38 T240 38 T360 38 T480 38 V90 H0 Z' fill='%239edb74'/%3E%3Cpath d='M0 60 Q80 42 160 58 T320 58 T480 58 V90 H0 Z' fill='%235fae3f'/%3E%3Cg fill='%237fcf55'%3E%3Cpath d='M30 42 l4 -14 l4 14z'/%3E%3Cpath d='M150 40 l3 -12 l3 12z'/%3E%3Cpath d='M290 41 l4 -15 l4 15z'/%3E%3Cpath d='M410 39 l3 -11 l3 11z'/%3E%3C/g%3E%3C/svg%3E") left bottom / 480px 90px repeat-x;
}
.parade-track { position: absolute; bottom: 40px; left: 0; display: flex; width: max-content; animation: parade 70s linear infinite; }
.parade:hover .parade-track { animation-play-state: paused; }
.parade-group { display: flex; align-items: flex-end; gap: 74px; padding-right: 74px; }
.parade-group img { display: block; height: auto; image-rendering: pixelated; animation: hop .9s ease-in-out infinite; }
.parade-group img:nth-child(3n + 1) { animation-duration: .8s; }
.parade-group img:nth-child(3n + 2) { animation-duration: 1s; animation-delay: -.3s; }
.parade-group img:nth-child(3n) { animation-duration: .9s; animation-delay: -.6s; }

/* ================= 页脚 ================= */
.footer { padding: 22px 16px 30px; font: 400 14px/1.5 var(--font-body); letter-spacing: 0; text-align: left; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  width: min(100%, 1180px);
  margin: 0 auto;
}
.brand-foot .brand-mark { width: 40px; height: 40px; }
.brand-foot .brand-name { font-size: 21px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: #f3fbe9; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: #fff3b0; text-decoration: underline; }
.footer-qq { margin: 0; font-size: 13.5px; }
.footer-qq strong { color: #fff3b0; letter-spacing: 1px; }
.footer-copy { flex-basis: 100%; margin: 4px 0 0; color: rgba(243, 251, 233, .75); font: 11px Georgia, serif; letter-spacing: 2px; text-align: center; }

/* ================= 回到顶部与提示气泡 ================= */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #5a2c05;
  background: linear-gradient(180deg, #ffd65e, #ff9f2e);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 5px 0 #d8701b, 0 12px 22px -8px rgba(224, 106, 18, .7);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(.6);
  transition: opacity .3s ease, transform .4s var(--ease-jelly);
}
.to-top.is-show { opacity: 1; pointer-events: auto; transform: none; }
.to-top.is-show:hover { transform: translateY(-4px) scale(1.06); }
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 70;
  max-width: calc(100% - 32px);
  padding: 11px 22px;
  color: #fff;
  background: var(--leaf);
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 24px) scale(.9);
  transition: opacity .25s ease, transform .4s var(--ease-jelly);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.copy-helper { position: fixed; top: -1000px; left: -1000px; opacity: 0; }

/* ================= 关键帧 ================= */
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -30px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes sun-glow {
  0%, 100% { box-shadow: 0 0 0 16px rgba(255, 226, 107, .22), 0 0 0 38px rgba(255, 226, 107, .1), 0 0 90px 30px rgba(255, 220, 120, .5); }
  50% { box-shadow: 0 0 0 22px rgba(255, 226, 107, .26), 0 0 0 48px rgba(255, 226, 107, .12), 0 0 110px 40px rgba(255, 220, 120, .6); }
}
@keyframes ken-burns { from { transform: scale(1.02); } to { transform: scale(1.09) translateY(-1.5%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes letter-drop {
  0% { opacity: 0; transform: translateY(-120px) scale(.6) rotate(-12deg); }
  60% { opacity: 1; transform: translateY(8px) scale(1.08, .92) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes letter-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes title-glint { 0%, 60% { background-position: 160% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) scale(1.1); } 50% { transform: rotate(8deg) scale(1.1); } 75% { transform: rotate(-4deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes halo { 0%, 100% { opacity: .75; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes shadow-pulse { 0%, 100% { opacity: 1; transform: scaleX(1); } 50% { opacity: .6; transform: scaleX(.82); } }
@keyframes dots-drift { from { background-position: 0 0, 19px 19px; } to { background-position: 260px 130px, 279px 149px; } }
@keyframes step-in { from { opacity: 0; transform: translateX(-18px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes parade { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ================= 响应式 ================= */
@media (max-width: 1080px) {
  .quick-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .qt-register, .qt-password { grid-column: span 3; }
  .qt-download, .qt-cdk, .qt-qq { grid-column: span 2; }
  .play-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-feature { grid-column: span 3; grid-row: span 1; min-height: 300px; }
  .pc-art { top: 50%; right: 5%; width: 40%; height: 86%; transform: translateY(-50%); }
  .pc-feature strong, .pc-feature small { max-width: 56%; }
  .dl-card { grid-template-columns: 220px minmax(0, 1fr); padding: 26px 26px 26px 16px; }
  .dl-actions { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  /* 首页导航收进下拉菜单，点右上角按钮展开 */
  .menu-toggle { display: grid; }
  .home .topnav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: auto;
    margin: 0;
    padding: 12px;
    overflow: visible;
    background: #fffdf7;
    border: 3px solid #fff;
    border-radius: 22px;
    box-shadow: var(--shadow-hard-lg);
  }
  .home .topbar.is-open .topnav { display: flex; animation: pop-in .35s var(--ease-jelly) both; }
  .home .topnav a { justify-content: flex-start; padding: 11px 16px; font-size: 15px; }
}
@media (max-width: 920px) {
  .route-boards { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pc-fun { padding: 20px; }
  .pc-fun strong, .pc-fun small { max-width: none; }
  .pc-fun-pets { position: static; order: -1; width: 100%; height: 72px; transform: none; }
  .pc-fun-pets img { height: 64px; }
  html { scroll-padding-top: 76px; }
  .home .topbar { top: 8px; }
  .server-status { display: none; }
  .topbar-side .btn-sm { padding: 0 12px; }
  .hero { padding-top: 96px; }
  .sun { top: 74px; right: 4%; width: 58px; height: 58px; }
  .sun-rays { width: 280px; height: 280px; margin: -140px 0 0 -140px; }
  .cloud-3, .cloud-4 { display: none; }
  .hero-badge { font-size: 11px; letter-spacing: 1px; }
  .hero-slogan { letter-spacing: 1px; }
  .hero-sub { font-size: 13.5px; }
  .hero-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .hero-cta .btn { height: 50px; padding: 0 12px; font-size: 15px; }
  .hero-cta .btn-sun { grid-column: 1 / -1; }
  .hero-facts { gap: 6px; }
  .hero-facts li { padding: 4px 10px; font-size: 12px; }
  .hero-stage { min-height: 280px; margin-top: -24px; }
  .quick { margin-top: -50px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qt-register, .qt-password, .qt-qq { grid-column: 1 / -1; }
  .qt-download, .qt-cdk { grid-column: span 1; }
  .quick-tile { padding: 15px 13px 13px; }
  .qt-copy h2, .qt-title { font-size: 18px; }
  .section { padding-top: 68px; }
  .sec-mascot { height: 52px; }
  .route-board { padding: 22px 16px 18px; border-radius: 24px; }
  .rb-head h3 { font-size: 24px; }
  .dl-card { grid-template-columns: 1fr; gap: 6px; padding: 18px 16px 22px; border-radius: 28px; }
  .dl-art { height: 180px; }
  .dl-halo, .dl-orbit { width: 170px; height: 170px; }
  .dl-pet { width: 144px; }
  .dl-rock { bottom: 26px; width: 130px; }
  .dl-body { text-align: center; }
  .dl-actions { text-align: left; }
  .dl-tips, .dl-contact { justify-content: center; }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .pc-feature { grid-column: 1 / -1; min-height: 260px; padding: 20px; }
  .pc-art { width: 44%; }
  .play-card { padding: 14px 13px 13px; }
  .pc-icon { width: 60px; height: 60px; border-radius: 20px; }
  .pc-icon img { width: 40px; height: 40px; }
  .pc-icon-pet img { width: 54px; height: 54px; }
  .play-card strong { font-size: 16.5px; letter-spacing: .5px; }
  .play-card small { font-size: 12px; }
  .pc-tag { top: 8px; right: 8px; padding: 2px 8px; font-size: 10.5px; }
  .trade-grid { grid-template-columns: 1fr; gap: 14px; }
  .parade { height: 140px; margin-top: 70px; }
  .parade-group { gap: 46px; padding-right: 46px; }
  .parade-group img { transform-origin: bottom; }
  .footer-inner { justify-content: center; text-align: center; }
  .to-top { right: 14px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 380px) {
  .play-grid { grid-template-columns: 1fr; }
}

/* ================= 国庆七日庆典弹窗（北京时间 10/1～10/7 由 index.js 打开） ================= */
html.nd-pop-lock { overflow: hidden; }
.nd-pop {
  width: min(560px, calc(100vw - 28px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.nd-pop::backdrop { background: rgba(46, 24, 18, .62); }
.nd-pop a, .nd-pop button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.nd-pop-card {
  position: relative;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 3px solid #fff4db;
  border-radius: var(--radius-xl);
  background: var(--cream);
  box-shadow: 0 10px 0 rgba(110, 30, 20, .22), 0 30px 80px -20px rgba(40, 10, 5, .65);
}
.nd-pop-head {
  position: relative;
  padding: 28px 28px 26px;
  color: #fff5d5;
  background:
    radial-gradient(rgba(255, 226, 162, .22) 2px, transparent 2.6px) 0 0 / 22px 22px,
    linear-gradient(90deg, #b93431 42%, rgba(185, 52, 49, .55)),
    url("/static/home-hero-1080.jpg?v=20260927-1") center 58% / cover,
    #b93431;
  border-radius: calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px) 0 0;
}
.nd-pop-kicker { margin: 0 0 6px; color: #ffe2a2; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.nd-pop-title {
  margin: 0;
  font: 42px/1.15 var(--font-title);
  letter-spacing: 3px;
  text-shadow: 0 3px 0 #84261f;
}
.nd-pop-date { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 0; color: #ffe7af; }
.nd-pop-date b { font-size: 24px; letter-spacing: 2px; }
.nd-pop-date span { padding-left: 12px; border-left: 1px solid #db8971; font-size: 12px; }
.nd-pop-stamp {
  position: absolute;
  right: 26px;
  bottom: -22px;
  z-index: 1;
  padding: 9px 10px;
  color: #a52b27;
  background: #ffedb8;
  border: 3px double #d88830;
  border-radius: 13px;
  font: 20px/1.1 var(--font-title);
  box-shadow: 0 4px 0 rgba(141, 48, 36, .25);
  transform: rotate(8deg);
}
.nd-pop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.nd-pop-body { padding: 28px 24px 20px; }
.nd-pop-lead { margin: 0 0 14px; color: #852623; font: 20px/1.3 var(--font-title); letter-spacing: 1px; }
.nd-pop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nd-pop-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  background: var(--paper);
  border: 2px solid #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 0 rgba(90, 52, 23, .08), 0 10px 20px -14px rgba(90, 52, 23, .45);
}
.nd-pop-list b { display: block; font: 18px/1.25 var(--font-title); letter-spacing: 1px; }
.nd-pop-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.nd-pop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff0c9;
  background: #b93431;
  border: 2px solid #ffe0ae;
  border-radius: 14px;
  font: 25px/1 var(--font-title);
  box-shadow: 0 3px 0 #93322b;
  transform: rotate(-6deg);
}
.nd-pop-icon-stages { background: #d38b1a; box-shadow: 0 3px 0 #a76616; }
.nd-pop-icon-shop { background: #38865c; box-shadow: 0 3px 0 #276444; }
.nd-pop-icon-recharge { background: #d74f67; box-shadow: 0 3px 0 #a33c50; }
.nd-pop-actions { display: grid; justify-items: center; gap: 6px; margin-top: 20px; }
.nd-pop-go { width: 100%; }
.nd-pop-later {
  padding: 6px 14px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13.5px;
  cursor: pointer;
}
.nd-pop-fine { margin: 10px 0 0; color: var(--muted); font-size: 11.5px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .nd-pop-close:hover { background: rgba(255, 255, 255, .3); }
  .nd-pop-later:hover { color: var(--ink); text-decoration: underline; }
}
.motion .nd-pop[open] .nd-pop-card { animation: nd-pop-in .6s var(--ease-jelly) both; }
.motion .nd-pop[open]::backdrop { animation: nd-pop-fade .3s ease both; }
@keyframes nd-pop-in { from { opacity: 0; transform: translateY(28px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes nd-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 520px) {
  .nd-pop-head { padding: 22px 18px 24px; }
  .nd-pop-title { font-size: 34px; letter-spacing: 2px; }
  .nd-pop-date b { font-size: 20px; }
  .nd-pop-stamp { right: 18px; bottom: -18px; padding: 7px 8px; font-size: 16px; }
  .nd-pop-body { padding: 24px 14px 14px; }
  .nd-pop-lead { font-size: 17px; }
  .nd-pop-list { grid-template-columns: 1fr; gap: 8px; }
  .nd-pop-list li { padding: 9px 11px; }
}

/* ================= 减少动态偏好：关闭全部动画 ================= */
@media (prefers-reduced-motion: reduce) {
  .hero-fx { display: none; }
}
