/* 梦回石光远古乐园首页 · 首页专属样式（2026-10-20 四屏精简改版）
   依赖全站共用的 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, .78), rgba(255, 251, 240, .68));
  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 .topbar .brand-name { font-size: 21px; white-space: nowrap; }
.home .topnav { flex-wrap: nowrap; gap: 6px; margin: 0 auto; }
.home .topnav a { padding: 8px 13px; white-space: nowrap; }
.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); }

/* ================= 第 1 屏：首屏 Hero + 一体化下载台 ================= */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: 112px;
  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: 88px;
  height: 88px;
  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);
}
.sun-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 244, 180, .4) 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 90s 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; }

.hero-stage {
  position: relative;
  z-index: 1;
  order: 2;
  width: 100%;
  min-height: 230px;
  margin-top: -5vw;
  aspect-ratio: 1920 / 560;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%);
  mask-image: linear-gradient(180deg, transparent 0, #000 26%);
}
.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%;
}
.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, 980px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  margin: 0 0 10px;
  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: 1.5px;
  animation: pop-in .6s var(--ease-jelly) .1s both;
}
.hero-badge span { padding: 5px 12px; color: #1f6a9a; background: rgba(255, 255, 255, .9); }
.hero-badge b { padding: 5px 12px; color: #fff; background: var(--orange); }

.hero-title {
  display: flex;
  justify-content: center;
  gap: .02em;
  margin: 0;
  font-family: var(--font-title);
  /* 2026-11-14 改名后标题由 6 个字变 8 个字，字号按比例收小，整行宽度与原来相当 */
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-title span {
  --i: 0;
  display: inline-block;
  color: #ffae38;
  background: 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 6px 0 #4a2610) drop-shadow(0 14px 14px rgba(40, 70, 110, .32));
  animation: letter-drop .8s var(--ease-jelly) calc(var(--i) * .08s + .15s) both;
}
.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-title span:nth-child(5) { --i: 4; }
.hero-title span:nth-child(6) { --i: 5; }
.hero-title span:nth-child(7) { --i: 6; }
.hero-title span:nth-child(8) { --i: 7; }

.hero-slogan {
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(18px, 2.3vw, 26px);
  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, .28);
  animation: pop-in .7s var(--ease-jelly) .45s both;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  padding: 4px 13px;
  color: #3d4a36;
  background: rgba(255, 255, 255, .9);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 3px 0 rgba(35, 101, 59, .15);
  font-size: 13px;
  font-weight: 700;
}
.hero-facts li b { color: var(--orange-deep); font-size: 14.5px; }

/* 首屏一体化下载与注册面板 */
.hero-dl-panel {
  margin-top: 18px;
  padding: 16px 22px 14px;
  background: rgba(255, 253, 247, .82);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: 0 8px 0 rgba(25, 85, 130, .14), 0 20px 36px -14px rgba(20, 65, 105, .38);
  backdrop-filter: blur(8px);
  animation: fade-up .7s var(--ease-out) .6s both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.hero-cta .btn-lg {
  height: 60px;
  padding: 0 24px;
  text-align: left;
}
.btn-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.btn-stack strong { font-size: 16.5px; font-weight: 800; letter-spacing: 1px; }
.btn-stack small { margin-top: 2px; font-size: 11.5px; font-weight: 700; opacity: .88; letter-spacing: .3px; }
.btn-stack b { color: var(--orange-deep); text-decoration: underline; }
.hero-dl-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  margin: 12px 0 0;
  padding-top: 10px;
  color: #2f553c;
  border-top: 1.5px dashed rgba(35, 101, 59, .22);
  font-size: 12.8px;
  font-weight: 700;
}
.hero-dl-steps span { display: inline-flex; align-items: center; gap: 5px; }
.hero-dl-steps b {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  color: #fff;
  background: var(--leaf);
  border-radius: 50%;
  font-size: 11px;
}
.hero-dl-steps i { color: var(--orange-deep); font-style: normal; font-weight: 800; }

/* ================= 首屏底部：5 格高频玩家服务吧台 ================= */
.quick { position: relative; z-index: 6; width: min(100% - 32px, 1180px); margin: -64px auto 0; }
.quick-grid {
  display: grid;
  grid-template-columns: 1.22fr repeat(4, 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: 8px;
  min-width: 0;
  padding: 16px 15px 15px;
  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 .3s var(--ease-jelly), box-shadow .25s ease;
  animation: rise-in .7s var(--ease-jelly) backwards;
}
div.quick-tile { cursor: default; }
button.quick-tile { width: 100%; }
.quick-tile::before {
  content: "";
  position: absolute;
  top: -46px;
  right: -40px;
  z-index: -1;
  width: 124px;
  height: 124px;
  background: var(--tone-soft);
  border-radius: 50%;
  transition: transform .45s 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(-5px); box-shadow: var(--shadow-hard-lg); }
.quick-tile:hover::before { transform: scale(1.28); }
.qt-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 9px;
  color: var(--tone);
  background: #fff;
  border: 1.5px solid var(--tone-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.qt-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--tone);
  border: 3px solid #fff;
  border-radius: 15px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12);
}
.qt-icon img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
.qt-copy { display: block; min-width: 0; padding-right: 14px; }
.qt-register .qt-copy { padding-right: 0; }
.qt-copy h2, .qt-title {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}
.qt-copy p { margin: 3px 0 0; color: var(--muted); font-size: 12.2px; line-height: 1.5; }
.qt-num {
  display: block;
  margin-top: 2px;
  color: var(--tone);
  font: 800 21px/1.2 Consolas, "Microsoft YaHei", monospace;
  letter-spacing: 1px;
}
.qt-go {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--tone);
  font-size: 21px;
  font-weight: 800;
  transition: transform .25s var(--ease-jelly);
}
.quick-tile:hover .qt-go { transform: translateX(4px); }
.qt-chip {
  margin-top: auto;
  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: 7px; margin-top: auto; }
.ver {
  padding: 6px 12px;
  color: #fff;
  background: var(--tone);
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18);
  font-size: 12.8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s var(--ease-jelly), filter .2s ease;
}
.ver:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ver-alt { background: #22b8a8; }
.qt-register { --tone: #ff6fa5; --tone-soft: #ffe1ed; }
.qt-fun { --tone: #ff8a2b; --tone-soft: #ffebd4; }
.qt-guide { --tone: #239b56; --tone-soft: #dff5e8; }
.qt-cdk { --tone: #8e6bf0; --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: 66px; }
.sec-head { position: relative; max-width: 760px; margin: 0 auto 24px; text-align: center; }
.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, .16);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2px;
}
.sec-head h2 {
  margin: 8px 0 0;
  color: var(--leaf);
  font-family: var(--font-title);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: 2.5px;
  text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(35, 101, 59, .12);
}
.sec-head h2::after {
  content: "";
  display: block;
  width: 110px;
  height: 10px;
  margin: 6px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' 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: 8px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ================= 第 2 屏重点一：全新独家职业开放「精灵祭祀」专享面板 ================= */
.elf-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 24px 26px;
  color: #fff;
  background:
    radial-gradient(circle at 14% 20%, rgba(72, 228, 172, .22), transparent 46%),
    radial-gradient(circle at 88% 82%, rgba(255, 206, 84, .18), transparent 48%),
    linear-gradient(128deg, #0f3d2e 0%, #16523e 48%, #103a42 100%);
  border: 3px solid #fff;
  border-radius: 28px;
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}
.elf-main {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}
.elf-top-row {
  display: flex;
  align-items: center;
  gap: 15px;
}
.elf-badge {
  flex: none;
  width: 74px;
  height: 74px;
  padding: 6px;
  object-fit: contain;
  background: radial-gradient(circle, rgba(255, 255, 255, .28) 0%, rgba(72, 228, 172, .08) 72%);
  border: 2px solid rgba(162, 255, 214, .5);
  border-radius: 22px;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .35));
}
.elf-head-copy { min-width: 0; }
.elf-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.elf-tag-new {
  padding: 3px 11px;
  color: #3d1804;
  background: linear-gradient(180deg, #ffe680, #ff9f24);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .5px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .22);
}
.elf-tag-pill {
  padding: 3px 10px;
  color: #d7fff0;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(162, 255, 214, .35);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.elf-head-copy h3 {
  margin: 7px 0 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(23px, 2.5vw, 30px);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .4);
}
.elf-desc {
  margin: 0;
  color: rgba(240, 255, 248, .92);
  font-size: 13.5px;
  line-height: 1.68;
}
.elf-desc b { color: #ffe380; }

/* 就职赠送灵叶五件套展示栏 */
.elf-gear-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 11px 14px;
  background: rgba(8, 28, 22, .42);
  border: 1.5px solid rgba(162, 255, 214, .32);
  border-radius: 18px;
}
.elf-gear-info { flex: 1 1 240px; min-width: 0; }
.elf-gear-info strong {
  display: block;
  color: #ffe588;
  font-size: 13.5px;
}
.elf-gear-info small {
  display: block;
  margin-top: 2px;
  color: rgba(225, 250, 238, .86);
  font-size: 11.8px;
  line-height: 1.45;
}
.elf-gear-info small b { color: #8fffe0; }
.elf-gear-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.elf-gear-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 7px 4px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
}
.elf-gear-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.elf-gear-item small {
  color: #eafff5;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.1;
}

.elf-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}
.btn-leaf-ghost {
  color: #e8fff5;
  background: rgba(255, 255, 255, .13);
  border: 2px solid rgba(180, 255, 224, .45);
}
.btn-leaf-ghost:hover {
  background: rgba(255, 255, 255, .22);
}

/* 右侧 2×2 四大招牌技能体系网格 */
.elf-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.elf-sk-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1fbf6 100%);
  border: 2.5px solid #d4f2e3;
  border-radius: 20px;
  box-shadow: 0 6px 16px -8px rgba(6, 26, 18, .45);
  transition: transform .28s var(--ease-jelly), box-shadow .2s ease, border-color .2s ease;
}
.elf-sk-card:hover {
  transform: translateY(-4px);
  border-color: #ffca52;
  box-shadow: 0 12px 24px -10px rgba(6, 26, 18, .6);
}
.elf-sk-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.elf-sk-top img {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 3px;
  object-fit: contain;
  background: #e3f7ee;
  border: 1.5px solid #bce8d2;
  border-radius: 12px;
}
.elf-sk-tag {
  display: block;
  color: #147a58;
  font-size: 11px;
  font-weight: 800;
}
.elf-sk-top h4 {
  margin: 2px 0 0;
  color: #153c2d;
  font-family: var(--font-title);
  font-size: 16.5px;
  letter-spacing: .5px;
  line-height: 1.2;
}
.elf-sk-card p {
  margin: 0;
  color: #466355;
  font-size: 12.2px;
  line-height: 1.55;
}
.elf-sk-card p b { color: #c84b15; }

/* ================= 第 2 屏重点二：5转140 双副本递进挑战（先熔心 ➔ 再七曜） ================= */
.raid-linkage { margin-top: 22px; }
.rl-banner-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 12px 20px;
  color: #fff;
  background: linear-gradient(90deg, #5a1f14 0%, #3b1c4a 50%, #162454 100%);
  border: 2.5px solid #fff;
  border-radius: 999px;
  box-shadow: 0 5px 16px -6px rgba(30, 20, 60, .4);
}
.rl-pill {
  padding: 4px 12px;
  color: #3a1808;
  background: linear-gradient(180deg, #ffe484, #ffae2b);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.rl-progression {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13.5px;
  font-weight: 700;
}
.rl-prog-item { display: inline-flex; align-items: center; gap: 6px; color: #ffe8d6; }
.rl-prog-item b {
  padding: 2px 8px;
  color: #fff;
  background: #d8431b;
  border-radius: 6px;
  font-size: 11.5px;
}
.rl-prog-next { color: #d8e8ff; }
.rl-prog-next b { background: #3b6ef3; }
.rl-progression i { color: #ffd45a; font-style: normal; font-size: 16px; font-weight: 800; }
.rl-npc-note {
  padding: 3px 11px;
  color: #ffe29a;
  background: rgba(255, 255, 255, .12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rl-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.rl-card {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 22px 24px;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-hard);
}
.rl-yanyu {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 130, 40, .28), transparent 48%),
    linear-gradient(135deg, #47150d 0%, #6b2214 55%, #3d141c 100%);
}
.rl-longyuan {
  background:
    linear-gradient(110deg, rgba(12, 16, 48, .94) 0%, rgba(24, 30, 84, .85) 55%, rgba(40, 42, 122, .62) 100%),
    url("/static/longyuan-bg-sea.webp?v=20261017-1") center 40% / cover no-repeat,
    #141a3c;
}
.rl-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.rl-top-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rl-step {
  padding: 3px 11px;
  color: #fff;
  background: linear-gradient(180deg, #ff7a3d, #c93b14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.rl-step-new { background: linear-gradient(180deg, #4fb3ff, #2f5ce8); }
.rl-drop {
  padding: 3px 11px;
  color: #ffe7a6;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 224, 140, .4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.rl-body h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(22px, 2.3vw, 27px);
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}
.rl-desc { margin: 0; color: rgba(255, 245, 238, .92); font-size: 13.5px; line-height: 1.68; }
.rl-desc b { color: #ffd66b; }

/* 炎狱熔心内嵌能力宝珠条 */
.rl-sub-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .12);
  border: 1.5px solid rgba(255, 210, 150, .35);
  border-radius: 16px;
  transition: background .2s ease, transform .2s var(--ease-jelly);
}
.rl-sub-feature:hover { background: rgba(255, 255, 255, .2); transform: translateX(4px); }
.rl-sub-feature img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.rl-sub-feature strong { display: block; color: #ffe29a; font-size: 13.8px; }
.rl-sub-feature small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .85); font-size: 12px; }

/* 中间递进连接桥 */
.rl-bridge {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 10px;
  color: #4a2608;
  background: linear-gradient(180deg, #fff5cc, #ffca4b);
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 6px 16px -6px rgba(90, 52, 23, .4);
  text-align: center;
}
.rl-bridge small { font-size: 10.5px; font-weight: 800; color: #8c4308; }
.rl-bridge b { font-size: 24px; line-height: 1; color: #c8341a; }
.rl-bridge span { font-size: 11.5px; font-weight: 800; line-height: 1.25; }

.ly-dragons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
}
.ly-dragons img {
  width: 12.5%;
  max-width: 52px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(140, 180, 255, .45));
}
.rl-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ================= 第 2 屏第三层：紧凑版「石器传奇」+「75格扩容」并列特色 ================= */
.feature-pair {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  gap: 18px;
  margin-top: 18px;
}
.fp-mir {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 20px 24px;
  color: #fff;
  background: #352110;
  border: 3px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-hard);
}
.fp-mir-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.fp-mir::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 16, 6, .92) 0%, rgba(30, 16, 6, .84) 64%, rgba(30, 16, 6, .45) 100%);
  pointer-events: none;
}
.fp-mir-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.fp-mir-logo {
  flex: none;
  width: 168px;
  height: auto;
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .5));
}
.fp-mir-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fp-mir-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #ffe7a6; }
.fp-tag-hot {
  padding: 2px 9px;
  color: #fff;
  background: linear-gradient(180deg, #ff6a3d, #c8341a);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.fp-mir-copy h3 {
  margin: 0;
  color: #ffd56b;
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 0 #5a1d06;
}
.fp-mir-copy p { margin: 0; color: #fff3d6; font-size: 13px; line-height: 1.6; }
.fp-mir-copy b { color: #ffcf5a; }
.fp-mir-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.fp-bag75 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 20px 22px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #fff8eb 0%, #ffecd2 100%);
  border: 3px solid #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-hard);
  transition: transform .3s var(--ease-jelly), box-shadow .2s ease;
}
.fp-bag75:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard-lg); }
.fp-b75-top { display: flex; align-items: center; justify-content: space-between; }
.fp-b75-badge {
  padding: 3px 11px;
  color: #fff;
  background: linear-gradient(135deg, #ff6fa5, #ff8f2b);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.fp-b75-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 0 rgba(224, 106, 18, .15);
}
.fp-b75-icon img { image-rendering: pixelated; }
.fp-bag75 h3 {
  margin: 0;
  color: #b84a14;
  font-family: var(--font-title);
  font-size: 22px;
  letter-spacing: 1px;
}
.fp-bag75 p { margin: 0; color: #6b533b; font-size: 12.8px; line-height: 1.58; }
.fp-bag75 b { color: #c84312; }
.fp-b75-go { margin-top: auto; color: var(--orange-deep); font-size: 13.5px; font-weight: 800; }

/* ================= 第 3 屏：交易集市与查询 ================= */
.trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.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: 14px;
  row-gap: 3px;
  min-width: 0;
  padding: 42px 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 .35s var(--ease-jelly), box-shadow .25s ease;
}
.tc-awning {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  background: repeating-linear-gradient(90deg, var(--tone) 0 28px, #fff 28px 56px);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% 16px no-repeat,
    radial-gradient(circle 14px at 14px 16px, #000 13.5px, transparent 14px) 0 0 / 28px 30px repeat-x;
  mask:
    linear-gradient(#000, #000) top / 100% 16px no-repeat,
    radial-gradient(circle 14px at 14px 16px, #000 13.5px, transparent 14px) 0 0 / 28px 30px repeat-x;
  transform-origin: top;
  transition: transform .4s var(--ease-jelly);
}
.trade-card:hover .tc-awning { transform: scaleY(1.15); }
.tc-icon {
  display: grid;
  grid-row: 1 / span 3;
  place-items: center;
  width: 64px;
  height: 64px;
  background: var(--tone-soft);
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .07);
  transition: transform .35s var(--ease-jelly);
}
.tc-icon img { width: 44px; height: 44px; object-fit: contain; image-rendering: pixelated; }
.tc-shop .tc-icon img { image-rendering: auto; }
.trade-card:hover .tc-icon { transform: translateY(-3px) scale(1.06); }
.trade-card strong { font-family: var(--font-title); font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.trade-card small { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.tc-go { color: var(--tone); font-size: 13px; font-weight: 800; transition: transform .25s var(--ease-jelly); }
.trade-card:hover .tc-go { transform: translateX(4px); }
.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; }
.tc-petshow { --tone: #22b8a8; --tone-soft: #dcf6f1; }

.trade-subbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 18px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .78);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(90, 52, 23, .06);
}
.ts-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.trade-subbar a {
  padding: 4px 13px;
  color: var(--leaf);
  background: var(--grass);
  border: 1.5px solid #cfe5c4;
  border-radius: 999px;
  font-size: 12.8px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-jelly);
}
.trade-subbar a:hover { color: #fff; background: var(--leaf); border-color: var(--leaf); transform: translateY(-2px); }

/* ================= 第 4 屏：新手开荒路线 + 6 张规整核心玩法卡 ================= */
.section-play::before {
  content: "";
  position: absolute;
  top: 30px;
  bottom: -50px;
  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%);
}

.route-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.route-board {
  --tone: #3b9cf3;
  --tone-deep: #1e6fc0;
  --tone-soft: #e8f3ff;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 20px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-hard);
}
.route-board::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  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-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rb-tag {
  padding: 4px 12px;
  color: #fff;
  background: var(--tone);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.rb-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  color: var(--tone-deep);
  background: #fff;
  border: 2px solid var(--tone);
  border-radius: 999px;
  font-size: 12.8px;
  font-weight: 800;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease-jelly);
}
.rb-link:hover { color: #fff; background: var(--tone); transform: translateY(-2px); }
.rb-head h3 {
  margin: 8px 0 0;
  color: var(--tone-deep);
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.rb-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.rb-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.rb-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 11px;
  background: var(--tone-soft);
  border-radius: 14px;
  transition: transform .25s var(--ease-jelly), background .2s ease;
}
.rb-steps li:hover { background: #fff; transform: translateY(-2px); }
.rb-no {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: var(--tone);
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.rb-steps strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.rb-steps small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.play-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  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 .35s var(--ease-jelly), box-shadow .25s ease;
}
.play-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: -1;
  height: 68px;
  background: linear-gradient(135deg, var(--tone), var(--tone-2));
  border-radius: 0 0 50% 50% / 0 0 20px 20px;
}
.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, .45), 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(-6px);
  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, .94);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
}
.pc-icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-top: 8px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .08), 0 0 0 4px rgba(255, 255, 255, .6);
  transition: transform .35s var(--ease-jelly);
}
.pc-icon img { width: 46px; height: 46px; object-fit: contain; image-rendering: pixelated; }
.pc-icon-pet img { width: 60px; height: 60px; }
.play-card:hover .pc-icon { transform: translateY(-3px) scale(1.06); }
.play-card strong {
  margin-top: 6px;
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}
.play-card small { color: var(--muted); font-size: 12.8px; line-height: 1.6; }
.pc-go {
  display: inline-flex;
  margin-top: auto;
  padding-top: 8px;
  color: var(--tone-deep);
  font-size: 13.5px;
  font-weight: 800;
  transition: transform .25s var(--ease-jelly);
}
.play-card:hover .pc-go { transform: translateX(4px); }
.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-capture { --tone: #6cc23c; --tone-2: #b8e36a; --tone-deep: #3f8a1f; }
.pc-hub {
  --tone: #7f66f0;
  --tone-2: #ff86b4;
  --tone-deep: #6535b5;
  background: linear-gradient(160deg, #f8f5ff 0%, #fff0f6 100%);
  border-color: #fff;
}
.pc-hub .pc-go {
  padding: 5px 14px;
  color: #fff;
  background: linear-gradient(90deg, #7f66f0, #d867c4);
  border-radius: 999px;
  margin-top: 8px;
}

.hero-slogan, .sec-desc { text-wrap: balance; }
.hero-slogan, .play-card strong { word-break: keep-all; }

/* ================= 滚动入场动效 ================= */
.reveal-wait { opacity: 0; transform: translateY(30px) scale(.98); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .8s var(--ease-jelly);
  transition-delay: var(--d, 0ms);
}

/* ================= 宠物巡游 ================= */
.parade {
  position: relative;
  height: 160px;
  margin-top: 80px;
  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: 38px; left: 0; display: flex; width: max-content; animation: parade 75s 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 1s ease-in-out infinite; }
.parade-group img:nth-child(3n + 1) { animation-duration: .85s; }
.parade-group img:nth-child(3n + 2) { animation-duration: 1.05s; animation-delay: -.3s; }
.parade-group img:nth-child(3n) { animation-duration: .95s; 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: 50px;
  height: 50px;
  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: 21px;
  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 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(-90px) scale(.6) rotate(-10deg); }
  60% { opacity: 1; transform: translateY(6px) scale(1.06, .94) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@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-fun { grid-column: span 3; }
  .qt-guide, .qt-cdk, .qt-qq { grid-column: span 2; }
  .elf-showcase { grid-template-columns: 1fr; }
  .rl-grid { grid-template-columns: 1fr; }
  .rl-bridge { flex-direction: row; gap: 10px; padding: 8px 18px; }
  .rl-bridge b { transform: rotate(90deg); }
  .feature-pair { 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)); }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .home .topbar { top: 8px; }
  .server-status { display: none; }
  .topbar-side .btn-sm { padding: 0 12px; }
  .hero { padding-top: 94px; }
  .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-dl-panel { width: 100%; padding: 14px 14px 12px; border-radius: 22px; }
  .hero-cta { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
  .hero-cta .btn-lg { height: 54px; justify-content: center; text-align: center; }
  .btn-stack { align-items: center; }
  .hero-dl-steps { font-size: 12px; }
  .hero-facts { gap: 6px; }
  .hero-facts li { padding: 4px 10px; font-size: 12px; }
  .hero-stage { min-height: 240px; margin-top: -20px; }
  .quick { margin-top: -46px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .qt-register { grid-column: 1 / -1; }
  .qt-fun, .qt-guide, .qt-cdk, .qt-qq { grid-column: span 1; }
  .quick-tile { padding: 14px 12px 12px; }
  .qt-copy h2, .qt-title { font-size: 17px; }
  .section { padding-top: 52px; }
  .elf-showcase { padding: 18px 15px; }
  .elf-skill-grid { grid-template-columns: 1fr; }
  .rl-banner-bar { border-radius: 20px; padding: 12px 14px; }
  .rl-card { padding: 18px 16px; }
  .fp-mir-body { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fp-mir-logo { width: 140px; }
  .route-board { padding: 18px 15px 16px; border-radius: 22px; }
  .rb-steps { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .play-card { padding: 14px 13px 13px; }
  .pc-icon { width: 56px; height: 56px; border-radius: 18px; }
  .pc-icon img { width: 38px; height: 38px; }
  .pc-icon-pet img { width: 50px; height: 50px; }
  .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: 12px; }
  .trade-subbar { border-radius: 20px; padding: 12px; }
  .parade { height: 135px; margin-top: 60px; }
  .parade-group { gap: 46px; padding-right: 46px; }
  .footer-inner { justify-content: center; text-align: center; }
  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
}
@media (max-width: 400px) {
  .quick-grid, .play-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fx { display: none; }
}

/* ================= 消费节弹窗（北京时间 11/1～11/12 由 index.js 打开，到期自动失效） ================= */
html.sf-pop-lock { overflow: hidden; }
.sf-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);
}
.sf-pop::backdrop { background: rgba(48, 16, 58, .62); }
.sf-pop a, .sf-pop button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.sf-pop-card {
  position: relative;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 3px solid #fff0f7;
  border-radius: var(--radius-xl);
  background: #fff8fc;
  box-shadow: 0 10px 0 rgba(71, 24, 95, .22), 0 30px 80px -20px rgba(40, 8, 48, .65);
}
.sf-pop-head {
  position: relative;
  padding: 28px 28px 26px;
  color: #fff7dc;
  background:
    radial-gradient(rgba(255, 212, 92, .28) 2px, transparent 2.6px) 0 0 / 22px 22px,
    linear-gradient(115deg, #6b2d8f 0%, #9b2f8f 50%, #ff4f8b 100%);
  border-radius: calc(var(--radius-xl) - 3px) calc(var(--radius-xl) - 3px) 0 0;
}
.sf-pop-kicker { margin: 0 0 6px; color: #ffd45c; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.sf-pop-title {
  margin: 0;
  font: 46px/1.12 var(--font-title);
  letter-spacing: 5px;
  text-shadow: 0 3px 0 #47185f;
}
.sf-pop-date { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 10px 0 0; color: #ffd45c; }
.sf-pop-date b { font-size: 24px; letter-spacing: 2px; }
.sf-pop-date span { padding-left: 12px; border-left: 1px solid #e9a1d0; font-size: 12px; color: #ffe9f4; }
.sf-pop-stamp {
  position: absolute;
  right: 26px;
  bottom: -26px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  color: #fff;
  background: #c8326a;
  border: 3px dashed #ffd45c;
  border-radius: 50%;
  font: 18px/1.1 var(--font-title);
  text-align: center;
  box-shadow: 0 4px 0 rgba(71, 24, 95, .3);
  transform: rotate(9deg);
}
.sf-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;
}
.sf-pop-body { padding: 30px 24px 20px; }
.sf-pop-lead { margin: 0 0 14px; color: #6b2d8f; font: 20px/1.3 var(--font-title); letter-spacing: 1px; }
.sf-pop-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sf-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(107, 45, 143, .08), 0 10px 20px -14px rgba(107, 45, 143, .45);
}
.sf-pop-list b { display: block; font: 18px/1.25 var(--font-title); letter-spacing: 1px; }
.sf-pop-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.sf-pop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff7dc;
  background: #ff4f8b;
  border: 2px solid #ffe3ef;
  border-radius: 14px;
  font: 25px/1 var(--font-title);
  box-shadow: 0 3px 0 #c8326a;
  transform: rotate(-6deg);
}
.sf-pop-icon-stages { background: #e49a17; box-shadow: 0 3px 0 #a86a0e; }
.sf-pop-icon-recharge { background: #6b2d8f; box-shadow: 0 3px 0 #47185f; }
.sf-pop-icon-rank { background: #ff8a3d; box-shadow: 0 3px 0 #c45e17; }
.sf-pop-actions { display: grid; justify-items: center; gap: 6px; margin-top: 20px; }
.sf-pop-go { width: 100%; }
.sf-pop-later {
  padding: 6px 14px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 13.5px;
  cursor: pointer;
}
.sf-pop-fine { margin: 10px 0 0; color: var(--muted); font-size: 11.5px; text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .sf-pop-close:hover { background: rgba(255, 255, 255, .3); }
  .sf-pop-later:hover { color: var(--ink); text-decoration: underline; }
}
.motion .sf-pop[open] .sf-pop-card { animation: sf-pop-in .6s var(--ease-jelly) both; }
.motion .sf-pop[open]::backdrop { animation: sf-pop-fade .3s ease both; }
@keyframes sf-pop-in { from { opacity: 0; transform: translateY(28px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes sf-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 520px) {
  .sf-pop-head { padding: 22px 18px 24px; }
  .sf-pop-title { font-size: 38px; letter-spacing: 3px; }
  .sf-pop-date b { font-size: 20px; }
  .sf-pop-stamp { right: 18px; bottom: -22px; width: 58px; height: 58px; font-size: 15px; }
  .sf-pop-body { padding: 26px 14px 14px; }
  .sf-pop-lead { font-size: 17px; }
  .sf-pop-list { grid-template-columns: 1fr; gap: 8px; }
  .sf-pop-list li { padding: 9px 11px; }
}
