/* 未登录首页：介绍页 */
.ld { padding-bottom: 56px; }
/* 头图和跑马灯铺满整个屏幕（外层 hg-main 最宽 1680，大屏两边会露白）；全站隐藏了滚动条，100vw 不会多出横向滚动 */
.ld-hero, .ld-marquee { margin-inline: calc(50% - 50vw); }
.ld-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.ld-num { display: inline-block; min-width: 2ch; }
.ld-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px; color: #7c93bd; }

/* 通用按钮 */
.ld-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 28px; border-radius: 16px; overflow: hidden; font-size: 16px; font-weight: 800; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s; }
.ld-btn:hover { transform: translateY(-2px); }
.ld-btn:active { transform: translateY(1px); }
.ld-btn i { transition: transform .2s; }
.ld-btn:hover i { transform: translateX(3px); }
/* 金色主按钮：呼吸光晕 + 悬停时一道光扫过 */
.ld-btn--gold { color: #6b3a00; background: linear-gradient(135deg, #ffe066, #ffb83d 55%, #ff9a3d); box-shadow: 0 6px 0 #e58a1f, 0 14px 30px rgba(255, 154, 61, .45); animation: ld-glow 2.6s ease-in-out infinite; }
.ld-btn--gold::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent); transform: skewX(-20deg); animation: ld-sweep 3.2s ease-in-out infinite; }
.ld-btn--gold:hover { color: #6b3a00; }
.ld-btn--glass { color: #fff; background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ld-btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .28); }
.ld-btn--white { color: var(--g-primary); background: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .12), 0 16px 34px rgba(30, 40, 120, .25); }
.ld-btn--white:hover { color: var(--g-primary-dark); }
.ld-btn--line { height: 46px; color: var(--g-primary); background: #fff; border: 1.5px solid #cfdcf3; font-size: 14px; }
.ld-btn--line:hover { border-color: var(--g-primary); color: var(--g-primary); }
@keyframes ld-glow { 50% { box-shadow: 0 6px 0 #e58a1f, 0 14px 44px rgba(255, 184, 61, .75); } }
@keyframes ld-sweep { 0%, 55% { left: -60%; } 100% { left: 130%; } }

/* ===== 1. 头图 ===== */
.ld-hero { --mx: 0; --my: 0; position: relative; isolation: isolate; min-height: min(720px, calc(100vh - 64px)); display: flex; align-items: center; overflow: hidden; background: #4f97f0; }
.ld-hero-bg { position: absolute; inset: -30px; z-index: -3; transform: translate3d(calc(var(--mx) * -26px), calc(var(--my) * -18px), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ld-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; animation: ld-kenburns 22s ease-in-out infinite alternate; }
.ld-hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(28, 74, 168, .72) 0%, rgba(40, 104, 214, .45) 34%, rgba(60, 130, 230, 0) 58%), linear-gradient(0deg, rgba(20, 60, 140, .25), transparent 40%); }
.ld-sparkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translate3d(calc(var(--mx) * 22px), calc(var(--my) * 16px), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ld-sparkles i { position: absolute; width: var(--s); height: var(--s); background: #fffbe0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 6px #fff6b0); animation: ld-twinkle 3s ease-in-out infinite; }
@keyframes ld-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes ld-twinkle { 0%, 100% { opacity: .15; transform: scale(.5) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

.ld-hero-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 60px 32px 130px; }
.ld-hero-copy { max-width: 600px; color: #fff; }
.ld-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ld-pill i { color: #ffe27a; }
.ld-hero h1 { margin: 22px 0 18px; font-size: 62px; font-weight: 900; line-height: 1.18; letter-spacing: -1.5px; text-shadow: 0 4px 24px rgba(10, 40, 110, .35); }
.ld-hero h1 > span { display: block; }
/* 「奇妙冒险」：流动的金色光泽 */
.ld-shine { font-style: normal; background: linear-gradient(100deg, #ffd84d 0%, #fff3b0 25%, #ffb347 50%, #fff3b0 75%, #ffd84d 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 14px rgba(255, 170, 40, .45)); animation: ld-shine 4s linear infinite; }
@keyframes ld-shine { to { background-position: -200% center; } }
.ld-hero p { max-width: 520px; font-size: 18px; line-height: 1.85; color: rgba(255, 255, 255, .94); text-shadow: 0 2px 12px rgba(10, 40, 110, .35); }
.ld-hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ld-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; padding: 0; list-style: none; }
.ld-stats li { display: flex; align-items: baseline; gap: 8px; padding: 10px 18px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ld-stats b { font-size: 26px; font-weight: 900; line-height: 1; color: #fff; text-align: center; }
.ld-stats b i { font-size: 20px; color: #ffe27a; }
.ld-stats span { font-size: 13px; color: rgba(255, 255, 255, .9); }
/* 进场：逐行浮现 */
.ld-rise { opacity: 0; animation: ld-rise .9s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) forwards; }
@keyframes ld-rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.ld-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 0; }
.ld-wave path { fill: var(--g-bg, #f2f6fd); }

/* 跑马灯 */
.ld-marquee { position: relative; z-index: 2; margin-top: -58px; padding: 6px 0 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ld-marquee-track { display: flex; gap: 14px; width: max-content; animation: ld-marquee 80s linear infinite; }
.ld-marquee:hover .ld-marquee-track { animation-play-state: paused; }
@keyframes ld-marquee { to { transform: translateX(calc(-50% - 7px)); } }
.ld-chip { display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(40, 70, 140, .14); white-space: nowrap; transition: transform .2s; }
.ld-chip:hover { transform: translateY(-4px) rotate(-1.5deg); }
.ld-chip img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.ld-chip span { font-size: 14px; font-weight: 800; color: #34445f; }

/* ===== 首屏以下：跟资料站同一套样式（白卡片、细边框、蓝色主色 #3b7ef6） ===== */
.ld-section { margin-top: 64px; }
.ld-head { margin-bottom: 28px; text-align: center; }
.ld-head h2 { margin-top: 8px; font-size: 32px; font-weight: 800; color: #1a1f2e; letter-spacing: -.5px; }
.ld-head h2 em, .ld-steps-title h2 em { font-style: normal; color: #3b7ef6; }
.ld-head p { margin-top: 8px; font-size: 15px; color: #8a94a8; }
.ld-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
.ld-reveal.is-in { opacity: 1; transform: none; }

/* ===== 2. 功能：横向卡片，图标在左 ===== */
.ld-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ld-feature {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: #fff; border: 1px solid #eaedf5; border-radius: 16px; box-shadow: 0 2px 12px rgba(45, 80, 155, .06);
}
.ld-feature.is-in { transition: opacity .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), transform .2s, box-shadow .2s, border-color .2s; }
.ld-feature:hover { transform: translateY(-3px); border-color: #cfe0fd; box-shadow: 0 12px 32px rgba(45, 80, 155, .14); }
.ld-feature-pic { flex-shrink: 0; width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: color-mix(in srgb, var(--c) 12%, #fff); }
.ld-feature-pic img { width: 100%; height: 100%; object-fit: cover; }
.ld-feature-txt { min-width: 0; }
.ld-feature h3 { font-size: 16px; font-weight: 700; color: #1a1f2e; }
.ld-feature p { margin-top: 4px; font-size: 13px; line-height: 1.7; color: #8a94a8; }

/* ===== 3. 游戏：目录标签 + 方形卡片（和首页「班级游戏」板块一致） ===== */
.ld-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.ld-tabs button {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 6px;
  border: 1px solid #eaedf5; border-radius: 21px; background: #fff; color: #3d4557; font: inherit; font-size: 14px; font-weight: 600;
  transition: color .18s, border-color .18s, background .18s;
}
.ld-tabs button img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.ld-tabs button em { min-width: 2.4em; padding: 0 6px; border-radius: 10px; background: #f1f4f9; color: #8a94a8; font-size: 12px; font-style: normal; text-align: center; }
.ld-tabs button:hover { color: #3b7ef6; border-color: #b9d1fb; }
.ld-tabs button.active { color: #fff; background: #3b7ef6; border-color: #3b7ef6; }
.ld-tabs button.active em { background: rgba(255, 255, 255, .22); color: #fff; }
.ld-games { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ld-game {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: #fff; border: 1px solid #eaedf5; border-radius: 14px; box-shadow: 0 2px 12px rgba(45, 80, 155, .06);
  transition: transform .2s, box-shadow .2s;
}
.ld-game:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(45, 80, 155, .14); }
.ld-game-pic { position: relative; aspect-ratio: 1; overflow: hidden; background: #f4f7fc; }
.ld-game-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ld-game:hover .ld-game-pic img { transform: scale(1.05); }
.ld-game-pic span { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(255, 255, 255, .92); color: #3d4557; font-size: 11px; font-weight: 600; }
.ld-game-pic em {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-style: normal; font-size: 12px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(30, 70, 160, .75)); transform: translateY(100%); transition: transform .25s;
}
.ld-game:hover .ld-game-pic em { transform: none; }
.ld-game b { padding: 10px 12px 0; font-size: 14px; color: #1a1f2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-game small { padding: 2px 12px 12px; font-size: 12px; color: #8a94a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-more-games { margin-top: 20px; text-align: center; }

/* ===== 4. 三步：一条步骤条 ===== */
.ld-steps-panel {
  display: flex; align-items: center; gap: 40px; padding: 26px 32px;
  background: #fff; border: 1px solid #eaedf5; border-radius: 16px; box-shadow: 0 2px 12px rgba(45, 80, 155, .06);
}
.ld-steps-title { flex-shrink: 0; }
.ld-steps-title h2 { margin-top: 6px; font-size: 24px; font-weight: 800; color: #1a1f2e; }
.ld-steps { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none; }
.ld-steps li { position: relative; display: flex; align-items: center; gap: 12px; }
.ld-steps li + li::before {   /* 步骤之间的小箭头 */
  content: ''; position: absolute; left: -16px; top: 50%; width: 8px; height: 8px;
  border-top: 2px solid #b9d1fb; border-right: 2px solid #b9d1fb; transform: translate(-50%, -50%) rotate(45deg);
}
.ld-step-ico { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eef4ff; color: #3b7ef6; font-size: 18px; }
.ld-steps b { display: block; font-size: 15px; color: #1a1f2e; }
.ld-steps small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.6; color: #8a94a8; }

/* ===== 5. 收尾：左边注册引导（游戏插画），右边资料商城入口 ===== */
.ld-end { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.ld-cta {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 220px; padding: 36px 40px;
  border-radius: 16px; color: #fff; background: linear-gradient(125deg, #4d8ef9 0%, #3274f0 55%, #2a5fd8 100%); box-shadow: 0 10px 30px rgba(36, 72, 140, .12);
}
.ld-cta-art {
  position: absolute; inset: 0 0 0 auto; z-index: -1; width: 62%; height: 100%; object-fit: cover; object-position: 70% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.ld-cta-copy { max-width: 420px; }
.ld-cta h2 { font-size: 26px; font-weight: 800; line-height: 1.35; text-shadow: 0 2px 12px rgba(10, 40, 110, .25); }
.ld-cta p { margin: 8px 0 20px; font-size: 14px; color: rgba(255, 255, 255, .88); }
.ld-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-cta .ld-btn { height: 44px; padding: 0 20px; font-size: 15px; }
.ld-cta .ld-btn--white { box-shadow: 0 6px 16px rgba(10, 40, 110, .18); }
.ld-more {
  display: flex; flex-direction: column; justify-content: center; padding: 28px;
  background: #fff; border: 1px solid #eaedf5; border-radius: 16px; box-shadow: 0 2px 12px rgba(45, 80, 155, .06);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ld-more:hover { transform: translateY(-3px); border-color: #cfe0fd; box-shadow: 0 12px 32px rgba(45, 80, 155, .14); }
.ld-more-art { width: 64px; height: 64px; margin-bottom: 14px; border-radius: 16px; object-fit: cover; }
.ld-more b { font-size: 18px; font-weight: 800; color: #1a1f2e; }
.ld-more span { margin-top: 6px; font-size: 13px; line-height: 1.7; color: #8a94a8; }
.ld-more em { margin-top: 16px; font-style: normal; font-size: 14px; font-weight: 700; color: #3b7ef6; }

@media (max-width: 1100px) {
  .ld-hero h1 { font-size: 50px; }
  .ld-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ld-steps-panel { flex-direction: column; align-items: flex-start; gap: 18px; }
  .ld-steps { width: 100%; }
}
@media (max-width: 768px) {
  .ld-wrap { padding: 0 16px; }
  /* 手机：文字在上、角色在下，遮罩改成从上往下 */
  /* 手机竖屏：文字放在上面的天空色里，角色图只占下半部分，上沿渐隐融进天空 */
  .ld-hero { min-height: 700px; align-items: flex-start; background: linear-gradient(180deg, #2f6fdc 0%, #4f97f0 50%, #6aaaf5 100%); }
  .ld-hero-bg { inset: auto -10px -10px; top: 50%; -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%); mask-image: linear-gradient(180deg, transparent, #000 28%); }
  .ld-hero-bg img { object-position: 60% 100%; }
  .ld-hero-shade { display: none; }
  .ld-hero-inner { padding: 32px 20px 120px; }
  .ld-pill { font-size: 12px; padding: 6px 12px; }
  .ld-hero h1 { margin: 16px 0 12px; font-size: 36px; letter-spacing: -.8px; }
  .ld-hero p { font-size: 14px; line-height: 1.75; }
  .ld-hero-btns { gap: 10px; margin-top: 22px; }
  .ld-hero-btns .ld-btn { flex: 1; height: 48px; padding: 0 12px; font-size: 15px; }
  .ld-stats { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .ld-stats li { flex: 1; min-width: 0; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; }
  .ld-stats b { font-size: 22px; }
  .ld-stats span { font-size: 11px; white-space: nowrap; }
  .ld-wave { height: 56px; }
  .ld-marquee { margin-top: -44px; }
  .ld-chip { padding: 5px 14px 5px 5px; border-radius: 14px; }
  .ld-chip img { width: 40px; height: 40px; border-radius: 10px; }
  .ld-chip span { font-size: 13px; }

  .ld-section { margin-top: 44px; }
  .ld-head { margin-bottom: 18px; }
  .ld-head h2 { font-size: 24px; }
  .ld-head p { font-size: 13px; }
  .ld-features { grid-template-columns: 1fr; gap: 10px; }
  .ld-feature { padding: 14px; }
  .ld-feature-pic { width: 52px; height: 52px; border-radius: 14px; }
  /* 目录标签一行横滑，不折成好几行 */
  .ld-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; }
  .ld-tabs button { flex-shrink: 0; height: 40px; font-size: 13px; }
  .ld-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .ld-game b { padding: 8px 8px 10px; font-size: 13px; }
  .ld-game small, .ld-game-pic em { display: none; }
  .ld-steps-panel { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
  .ld-steps { grid-template-columns: 1fr; gap: 14px; }
  .ld-steps li + li::before { display: none; }
  .ld-end { grid-template-columns: 1fr; }
  .ld-cta { min-height: 0; padding: 28px 20px; }
  .ld-cta-art { width: 100%; opacity: .3; -webkit-mask-image: none; mask-image: none; }
  .ld-cta h2 { font-size: 22px; }
  .ld-cta-btns .ld-btn { flex: 1; }
  .ld-more { padding: 22px 20px; }
}

