/* =========================================================
   领跑 LeadKids（小学科创启蒙）lead.css v1.1.1
   视觉：活泼橙黄低龄化 · 游戏化卡通化 · 徽章闯关
   与信奥领航（暖橙竞赛风）同源不同调：领跑更明亮跳跃
   ========================================================= */

:root {
  --ld-bg: #fffaf2;
  --ld-card: #ffffff;
  --ld-ink: #3a3226;
  --ld-sub: #9a8f7a;
  --ld-line: #f3e9d7;
  --ld-orange: #ff7a1f;
  --ld-orange2: #ffa02e;
  --ld-yellow: #ffd21e;
  --ld-green: #34c77b;
  --ld-blue: #3d9bff;
  --ld-purple: #9d6bfa;
  --ld-pink: #ff6d9d;
  --ld-shadow: 0 12px 32px -14px rgba(255, 122, 31, .3);
}

/* 深色模式（body.ld-dark） */
body.ld-dark {
  --ld-bg: #241f2e; --ld-card: #2c2638; --ld-ink: #f0e8dc;
  --ld-sub: #9a92ad; --ld-line: #3d3650;
  --ld-shadow: 0 12px 32px -14px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
body.ld-body {
  margin: 0; background: var(--ld-bg); color: var(--ld-ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}
body.ld-body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 8% 6%, rgba(255, 210, 30, .22), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(255, 122, 31, .18), transparent 34%),
    radial-gradient(circle at 50% 96%, rgba(52, 199, 123, .13), transparent 32%);
}
/* 卡通波点糖纸底纹 */
body.ld-body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(rgba(255, 138, 60, .055) 2.2px, transparent 2.8px),
    radial-gradient(rgba(255, 217, 61, .08) 2.2px, transparent 2.8px),
    radial-gradient(rgba(90, 167, 255, .05) 2px, transparent 2.6px);
  background-size: 64px 64px, 96px 96px, 80px 80px;
  background-position: 0 0, 32px 48px, 60px 20px;
}
.ld-wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 14px 20px 40px; }

/* ---------- 品牌头（领跑专属，不用 kn-header） ---------- */
.ld-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 0; position: relative; z-index: 2;
}
.ld-logo {
  width: 46px; height: 46px; border-radius: 16px; flex: none;
  background: linear-gradient(135deg, var(--ld-orange), var(--ld-yellow));
  color: #fff; font-weight: 900; font-size: 21px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 5px 0 #e2751b, 0 12px 20px -8px rgba(255, 138, 60, .8);
  transition: transform .2s;
}
.ld-logo:hover { transform: rotate(-8deg) scale(1.06); }
.ld-brand { display: flex; flex-direction: column; min-width: 0; }
.ld-brand b { font-size: 18px; letter-spacing: 1px; }
.ld-brand b em { font-style: normal; color: var(--ld-orange); }
.ld-brand small { color: var(--ld-sub); font-size: 11px; letter-spacing: 2px; }
.ld-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: 8px; }
.ld-nav a {
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
  color: var(--ld-sub); font-size: 13.5px; font-weight: 700; transition: .15s;
}
.ld-nav a:hover { color: var(--ld-ink); background: rgba(255, 217, 61, .22); transform: translateY(-1px); }
.ld-nav a.on { color: #fff; background: linear-gradient(135deg, var(--ld-orange), var(--ld-orange2)); box-shadow: 0 3px 0 #e2751b, 0 8px 14px -6px rgba(255, 138, 60, .8); }
.ld-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ld-hello { color: var(--ld-sub); font-size: 13px; }

/* 糖果按钮：3D 按压手感 */
.ld-btn {
  border: 0; cursor: pointer; font-family: inherit; font-weight: 800;
  border-radius: 999px; padding: 9px 20px; font-size: 13.5px; color: #fff;
  background: linear-gradient(135deg, var(--ld-orange), var(--ld-orange2));
  box-shadow: 0 4px 0 #e2751b, 0 10px 18px -8px rgba(255, 138, 60, .75);
  transition: transform .12s, box-shadow .12s, filter .15s;
  text-shadow: 0 1px 0 rgba(0,0,0,.08);
  text-decoration: none;
}
.ld-btn:hover { transform: translateY(-2px) rotate(-1deg); filter: brightness(1.05); box-shadow: 0 6px 0 #e2751b, 0 14px 22px -8px rgba(255, 138, 60, .8); }
.ld-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #e2751b; }
.ld-btn.ghost { background: var(--ld-card); color: var(--ld-ink); border: 2px solid var(--ld-line); box-shadow: none; }
.ld-btn.ghost:hover { transform: none; background: #fff8ea; box-shadow: none; }
.ld-btn.ghost:active { transform: translateY(1px); box-shadow: none; }
.ld-btn.big { font-size: 15px; padding: 12px 28px; }
.ld-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* 「开始闯关」每隔几秒轻轻摇一摇，吸引点击 */
.ld-btn.ld-go { animation: ldWiggle 2.6s ease-in-out infinite; }
@keyframes ldWiggle {
  0%, 88%, 100% { transform: rotate(0); }
  91% { transform: rotate(-3.5deg) scale(1.05); }
  94% { transform: rotate(3.5deg); }
  97% { transform: rotate(-2deg) scale(1.03); }
}

/* ---------- Hero / 横幅（v1.2 鲜艳大气：鲜橙→玫红渐变 + 白字 + 光斑装饰） ---------- */
.ld-hero {
  margin-top: 8px; padding: 34px 30px; border-radius: 26px; color: #fff;
  background: linear-gradient(135deg, #ff9f1c, #ff6b35 52%, #ff4d6d);
  border: 2.5px dashed rgba(255, 255, 255, .55); position: relative; overflow: hidden;
  box-shadow: 0 22px 48px -20px rgba(255, 107, 53, .55);
}
.ld-dark .ld-hero { background: linear-gradient(135deg, #5a2d0c, #7a2334 60%, #4a1535); border-color: rgba(255, 255, 255, .22); }
.ld-hero h1 { margin: 0 0 10px; font-size: 31px; font-weight: 900; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 10px rgba(180, 40, 0, .25); }
.ld-hero h1 em { font-style: normal; color: #ffe66d; }
.ld-hero p { margin: 0; color: rgba(255, 255, 255, .93); font-size: 14px; line-height: 1.8; max-width: 640px; }
.ld-hero .ld-emoji { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 84px; opacity: .95; animation: ldFloat 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(120, 20, 0, .3)); }
@keyframes ldFloat { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(-58%) rotate(4deg); } }
.ld-hero-dot { position: absolute; border-radius: 50%; pointer-events: none; }
.ld-hero-dot.d1 { width: 130px; height: 130px; right: 130px; top: -50px; background: rgba(255, 255, 255, .14); }
.ld-hero-dot.d2 { width: 54px; height: 54px; right: 260px; bottom: -16px; background: rgba(255, 230, 109, .35); }
.ld-hero-dot.d3 { width: 26px; height: 26px; left: 42%; bottom: 14px; background: rgba(255, 255, 255, .25); }
.ld-freechip {
  display: inline-block; margin-top: 14px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: #0d9668; font-weight: 800; font-size: 12.5px;
  box-shadow: 0 6px 16px rgba(150, 30, 0, .28);
}
.ld-dark .ld-freechip { background: rgba(255, 255, 255, .12); color: #7fe0ae; }

/* ---------- v1.2 学习总览条（连续天数 / 通关 / 星星 / 徽章 / 总进度环 / 今日推荐） ---------- */
.ld-stats { margin-top: 16px; }
.ld-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 12px; align-items: stretch;
  background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 22px;
  padding: 16px 18px; box-shadow: var(--ld-shadow);
}
.ld-stat { text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.ld-stat em { font-style: normal; font-size: 22px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(255, 122, 31, .35)); }
.ld-stat b { font-size: 23px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(100deg, var(--ld-orange), #ff4d6d);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ld-stat span { font-size: 11.5px; font-weight: 700; color: var(--ld-sub); }
.ld-ring {
  position: relative; width: 92px; height: 92px; border-radius: 50%; align-self: center;
  background: conic-gradient(var(--ld-orange) 0 calc(var(--p, 0%)), var(--ld-line) calc(var(--p, 0%)) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ld-ring::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--ld-card); }
.ld-ring b { position: relative; font-size: 17px; font-weight: 900; color: var(--ld-orange); }
.ld-ring small { position: relative; font-size: 9.5px; color: var(--ld-sub); font-weight: 700; }
.ld-suggest {
  margin-top: 12px; display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: linear-gradient(120deg, #fff4e0, #ffe9f0); border: 2px solid #ffd9b0;
  border-radius: 18px; padding: 13px 18px; box-shadow: var(--ld-shadow);
  transition: transform .16s, box-shadow .16s;
}
.ld-suggest:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(255, 122, 31, .55); }
.ld-suggest .ico { font-size: 26px; flex: none; }
.ld-suggest .txt { min-width: 0; flex: 1; }
.ld-suggest .txt b { display: block; font-size: 14px; color: var(--ld-ink); }
.ld-suggest .txt small { display: block; margin-top: 2px; font-size: 12px; color: var(--ld-sub); }
.ld-suggest .go { flex: none; font-weight: 900; font-size: 13.5px; color: #fff;
  background: linear-gradient(135deg, var(--ld-orange), #ff4d6d); border-radius: 999px; padding: 8px 16px;
  box-shadow: 0 3px 0 #e05a17; }
.ld-dark .ld-suggest { background: linear-gradient(120deg, #3a2c22, #3a2432); border-color: #5a4a30; }
.ld-dark .ld-suggest .txt b { color: var(--ld-ink); }

/* ---------- v1.2 全站通用升级：主题切换 / 回到顶部 / 区块浮现 / 点赞飞心 ---------- */
.ld-theme-btn { padding: 8px 13px !important; font-size: 15px; line-height: 1; }
.ld-backtop {
  position: fixed; right: 20px; bottom: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; font-size: 19px;
  background: linear-gradient(135deg, var(--ld-orange), #ff4d6d); color: #fff;
  box-shadow: 0 12px 26px -8px rgba(255, 77, 109, .65);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.ld-backtop.show { opacity: 1; transform: none; pointer-events: auto; }
.ld-backtop:hover { transform: scale(1.08); }
.ld-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.ld-reveal.ld-in { opacity: 1; transform: none; }
.ld-flyheart {
  position: fixed; z-index: 99; font-size: 20px; pointer-events: none;
  animation: ldFly .85s ease-out forwards;
}
@keyframes ldFly {
  0% { opacity: 1; transform: translateY(0) scale(.7); }
  100% { opacity: 0; transform: translateY(-72px) scale(1.6) rotate(18deg); }
}
/* 作品广场 Tab 手机横滑 */
@media (max-width: 640px) {
  .ld-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ld-tabs::-webkit-scrollbar { display: none; }
  .ld-tabs .ld-tab { flex: none; }
  .ld-stat em { font-size: 19px; }
  .ld-stat b { font-size: 20px; }
  .ld-backtop { right: 14px; bottom: 20px; width: 42px; height: 42px; }
}

/* ---------- 通用卡片 ---------- */
.ld-card {
  background: var(--ld-card); border-radius: 22px; border: 2px solid var(--ld-line);
  padding: 18px 20px; box-shadow: var(--ld-shadow);
}
.ld-sec-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 14px; flex-wrap: wrap; }
.ld-sec-title h2 {
  margin: 0; font-size: 20px; font-weight: 900; display: inline-block;
  background: linear-gradient(transparent 62%, rgba(255, 217, 61, .5) 62%);
  border-radius: 4px; padding: 0 4px;
}
.ld-dark .ld-sec-title h2 { background: linear-gradient(transparent 62%, rgba(255, 179, 71, .32) 62%); }
.ld-sec-title .tip { color: var(--ld-sub); font-size: 12px; margin-left: auto; }

/* ---------- 五赛道（德式糖果条：每赛道一个专属色） ---------- */
.ld-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ld-track {
  border-radius: 20px; padding: 18px; cursor: pointer; text-decoration: none; color: var(--ld-ink);
  background: var(--ld-card); border: 2px solid var(--ld-line); position: relative; overflow: hidden;
  transition: transform .18s, box-shadow .18s, border-color .18s; display: block;
}
.ld-track .ico {
  font-size: 32px; width: 56px; height: 56px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: #fff7e8; box-shadow: inset 0 0 0 2px rgba(255, 217, 61, .4);
}
.ld-dark .ld-track .ico { background: #3a3222; }
.ld-track b { display: block; margin-top: 10px; font-size: 16px; font-weight: 900; }
.ld-track small { display: block; margin-top: 4px; color: var(--ld-sub); font-size: 12px; line-height: 1.6; }
.ld-track .bar { margin-top: 10px; height: 9px; border-radius: 99px; background: var(--ld-line); overflow: hidden; }
.ld-track .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--tc, var(--ld-orange)), var(--ld-yellow)); transition: width .4s; }
.ld-track .cnt { margin-top: 6px; font-size: 11.5px; color: var(--ld-sub); font-weight: 700; }
/* v1.2 赛道卡品牌色增强：顶部彩条 + 图标染色 + hover 赛道色光晕 */
.ld-track::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--tc, var(--ld-orange)), var(--ld-yellow)); }
.ld-track .ico { box-shadow: inset 0 0 0 2.5px var(--tc, var(--ld-yellow)); background: #fff; }
.ld-track:hover { transform: translateY(-6px) scale(1.02);
  border-color: var(--tc, var(--ld-orange));
  box-shadow: 0 18px 36px -14px var(--tc, rgba(255, 122, 31, .55)); }

/* ---------- 闯关地图（游戏关卡风） ---------- */
.ld-map { display: flex; flex-direction: column; gap: 12px; }
.ld-node {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px;
  background: var(--ld-card); border-radius: 20px; border: 2px solid var(--ld-line);
  position: relative; transition: .15s; animation: ldPop .3s ease both;
}
.ld-node:nth-child(1) { animation-delay: .02s; }
.ld-node:nth-child(2) { animation-delay: .06s; }
.ld-node:nth-child(3) { animation-delay: .1s; }
.ld-node:nth-child(4) { animation-delay: .14s; }
.ld-node:nth-child(5) { animation-delay: .18s; }
.ld-node:nth-child(n+6) { animation-delay: .22s; }
@keyframes ldPop { from { transform: scale(.94) translateY(6px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.ld-node:not(.locked):hover { border-color: #ffd98f; transform: translateY(-3px); box-shadow: 0 14px 28px -12px rgba(255, 138, 60, .4); }
.ld-node.locked { opacity: .6; border-style: dashed; background: repeating-linear-gradient(-45deg, var(--ld-card), var(--ld-card) 12px, rgba(243, 233, 215, .6) 12px, rgba(243, 233, 215, .6) 24px); }
.ld-dark .ld-node.locked { background: repeating-linear-gradient(-45deg, var(--ld-card), var(--ld-card) 12px, rgba(61, 54, 80, .6) 12px, rgba(61, 54, 80, .6) 24px); }
.ld-node.done { border-color: #a9e3c4; background: linear-gradient(135deg, #f2fdf7, var(--ld-card) 60%); }
.ld-dark .ld-node.done { border-color: #2f5a44; background: linear-gradient(135deg, #243b2e, var(--ld-card) 60%); }
.ld-node .dot {
  flex: none; width: 48px; height: 48px; border-radius: 50%; font-weight: 900; font-size: 17px;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--ld-orange), var(--ld-orange2));
  box-shadow: 0 3px 0 #e2751b, 0 0 0 5px rgba(255, 217, 61, .28);
}
.ld-node.done .dot { background: linear-gradient(135deg, #58c98b, #8fe3b4); box-shadow: 0 3px 0 #3fa36c, 0 0 0 5px rgba(88, 201, 139, .25); }
.ld-node.locked .dot { background: #cfc6b4; box-shadow: 0 3px 0 #b3a88f, 0 0 0 5px rgba(207, 198, 180, .2); }
.ld-node .bd { flex: 1; min-width: 0; }
.ld-node .bd b { font-size: 15.5px; }
.ld-node .bd .tag { margin-left: 8px; font-size: 11px; padding: 2px 10px; border-radius: 99px; background: #fff1de; color: #c96a10; font-weight: 800; }
.ld-dark .ld-node .bd .tag { background: #4a3a20; color: #ffcf8f; }
.ld-node .bd p { margin: 5px 0 0; color: var(--ld-sub); font-size: 12.5px; line-height: 1.7; }
.ld-node .star { color: #f5b301; font-size: 15px; letter-spacing: 2px; margin-top: 4px; text-shadow: 0 2px 0 rgba(245, 179, 1, .25); }
.ld-node .act { flex: none; align-self: center; }

/* ---------- 徽章墙 ---------- */
.ld-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ld-badge {
  width: 86px; text-align: center; padding: 12px 6px; border-radius: 16px;
  background: var(--ld-card); border: 2px solid var(--ld-line);
  transition: transform .18s;
}
.ld-badge:hover { transform: scale(1.08) rotate(-3deg); }
.ld-badge .i { font-size: 27px; display: inline-block; animation: ldFloat2 2.8s ease-in-out infinite; }
@keyframes ldFloat2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ld-badge b { display: block; font-size: 11px; margin-top: 4px; line-height: 1.4; color: var(--ld-ink); }
.ld-badge.off { filter: grayscale(1); opacity: .35; }
.ld-badge.off .i { animation: none; }

/* ---------- 测评 ---------- */
.ld-q { margin-bottom: 16px; }
.ld-q b { display: block; font-size: 14.5px; margin-bottom: 8px; }
.ld-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ld-opt {
  padding: 10px 14px; border-radius: 14px; border: 2px solid var(--ld-line);
  background: var(--ld-card); cursor: pointer; font-size: 13.5px; transition: .12s; text-align: left; font-family: inherit; color: var(--ld-ink);
}
.ld-opt:hover { border-color: var(--ld-orange); transform: translateY(-1px); }
.ld-opt.on { border-color: var(--ld-orange); background: #fff3e2; font-weight: 800; box-shadow: 0 3px 0 rgba(255, 138, 60, .3); }
.ld-dark .ld-opt.on { background: #4a3520; }

/* ---------- 进阶推荐（软导流卡：温和，不弹窗） ---------- */
.ld-rec {
  margin-top: 16px; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff, #f3eeff); border: 1.5px solid #dbe6ff;
}
.ld-dark .ld-rec { background: linear-gradient(135deg, #26304a, #2d2645); border-color: #3d4a72; }
.ld-rec b { font-size: 14.5px; }
.ld-rec p { margin: 6px 0 12px; color: var(--ld-sub); font-size: 12.5px; line-height: 1.7; }
.ld-rec .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ld-rec .skip { color: var(--ld-sub); font-size: 12px; background: none; border: 0; cursor: pointer; font-family: inherit; }

/* ---------- 作品广场 ---------- */
.ld-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.ld-tab {
  padding: 8px 18px; border-radius: 999px; border: 2px solid var(--ld-line);
  background: var(--ld-card); color: var(--ld-sub); font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit;
  transition: .15s;
}
.ld-tab:hover { color: var(--ld-ink); transform: translateY(-1px); }
.ld-tab.on { color: #fff; background: linear-gradient(135deg, var(--ld-orange), var(--ld-orange2)); border-color: transparent; box-shadow: 0 3px 0 #e2751b; }
.ld-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ld-work { background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 20px; padding: 16px; transition: .18s; }
.ld-work:hover { transform: translateY(-4px) rotate(-.4deg); border-color: #ffd98f; box-shadow: 0 14px 28px -12px rgba(120, 80, 20, .32); }
.ld-work .cover { height: 84px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 38px; background: linear-gradient(135deg, #fff3d6, #ffe3c2); margin-bottom: 10px; }
.ld-dark .ld-work .cover { background: linear-gradient(135deg, #3a3222, #3d2f24); }
.ld-work b { font-size: 14.5px; }
.ld-work p { margin: 5px 0 8px; color: var(--ld-sub); font-size: 12px; line-height: 1.65; height: 38px; overflow: hidden; }
.ld-work .meta { display: flex; align-items: center; gap: 10px; color: var(--ld-sub); font-size: 11.5px; }
.ld-audit { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 99px; }
.ld-audit.w0 { background: #fff3d6; color: #b8860b; }
.ld-audit.w1 { background: #e2f7ea; color: #0d9668; }
.ld-audit.w2 { background: #ffe4de; color: #d05340; }

/* ---------- 教具仿真 ---------- */
.ld-sim-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; }
.ld-canvas-box { background: var(--ld-card); border-radius: 18px; border: 2px solid var(--ld-line); padding: 12px; text-align: center; }
.ld-canvas-box canvas { max-width: 100%; border-radius: 12px; background: #fff; touch-action: none; }
.ld-dark .ld-canvas-box canvas { background: #f4efe4; }
.ld-sim-side .cmd { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ld-cmdbtn {
  border: 2px dashed var(--ld-orange); background: #fff7ea; color: #c96a10;
  border-radius: 12px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit;
  transition: .12s;
}
.ld-dark .ld-cmdbtn { background: #3d2f1c; color: #ffcf8f; }
.ld-cmdbtn:hover { background: #ffedd6; transform: translateY(-1px); }
.ld-queue { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 8px; border-radius: 12px; background: rgba(255, 217, 61, .12); border: 1.5px dashed var(--ld-line); }
.ld-queue .step { background: var(--ld-yellow); color: #6b5200; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 800; cursor: pointer; }
.ld-sim-msg { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--ld-green); min-height: 20px; }
.ld-code-area {
  width: 100%; min-height: 150px; border-radius: 12px; border: 2px solid var(--ld-line);
  background: #fffdf7; color: var(--ld-ink); padding: 12px; font-family: Consolas, monospace;
  font-size: 13px; line-height: 1.7; resize: vertical;
}
.ld-scratch-frame { width: 100%; height: 620px; border: 2px solid var(--ld-line); border-radius: 18px; background: #fff; }
.ld-sim-note { margin-top: 10px; color: var(--ld-sub); font-size: 12px; line-height: 1.7; }

/* ---------- 任务 / 表格（教师/校管） ---------- */
.ld-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-tablewrap { overflow-x: auto; }
.ld-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.ld-table th, .ld-table td { padding: 9px 10px; border-bottom: 1px solid var(--ld-line); text-align: left; line-height: 1.6; }
.ld-table th { color: var(--ld-sub); font-size: 11.5px; white-space: nowrap; }
.ld-table td:first-child { font-weight: 700; }
.ld-star { color: #f5b301; font-weight: 900; }
.ld-input, .ld-select, .ld-textarea {
  width: 100%; border: 2px solid var(--ld-line); border-radius: 12px; background: var(--ld-card);
  color: var(--ld-ink); padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none;
}
.ld-input:focus, .ld-select:focus, .ld-textarea:focus { border-color: var(--ld-orange); }
.ld-textarea { min-height: 120px; line-height: 1.7; resize: vertical; }
.ld-formrow { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ld-formrow > * { flex: 1; min-width: 120px; }
.ld-msg { padding: 10px 14px; border-radius: 12px; font-size: 13px; margin: 10px 0; font-weight: 700; }
.ld-msg.ok { background: #e2f7ea; color: #0d9668; }
.ld-msg.err { background: #ffe4de; color: #d05340; }
.ld-dark .ld-msg.ok { background: #24402f; }
.ld-dark .ld-msg.err { background: #46281f; }

/* ---------- KPI 看板 ---------- */
.ld-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.ld-kpi { background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 18px; padding: 14px 16px; transition: .15s; }
.ld-kpi:hover { transform: translateY(-2px); border-color: #ffd98f; }
.ld-kpi b { display: block; font-size: 24px; font-weight: 900; }
.ld-kpi span { color: var(--ld-sub); font-size: 12px; }

/* ---------- 家长报告 ---------- */
.ld-report-path { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.ld-path { border-radius: 18px; padding: 18px; border: 2px solid var(--ld-line); background: var(--ld-card); }
.ld-path b { font-size: 15.5px; }
.ld-path p { margin: 8px 0 12px; color: var(--ld-sub); font-size: 12.5px; line-height: 1.75; }
.ld-path.reco { border-color: #ffd9a0; background: linear-gradient(135deg, #fffaf0, #fff); }
.ld-dark .ld-path.reco { background: linear-gradient(135deg, #33281a, #2c2638); }

/* ---------- 品牌页脚（领跑专属：不引全站 footer，规避领航营销区，守软导流规则） ---------- */
.ld-foot {
  position: relative; z-index: 1; text-align: center; padding: 26px 16px 30px;
  color: var(--ld-sub); font-size: 12px; line-height: 2;
}
.ld-foot .split { display: inline-block; margin: 0 10px; opacity: .5; }
.ld-foot a { color: var(--ld-orange); text-decoration: none; font-weight: 700; }

/* ---------- 拦截页 ---------- */
.ld-deny { text-align: center; padding: 90px 20px; }
.ld-deny .i { font-size: 64px; }
.ld-deny h2 { margin: 16px 0 8px; }
.ld-deny p { color: var(--ld-sub); }

/* ---------- 可选模块：放映厅 / 游戏乐园 ---------- */
.ld-usage { display: block; }
.ld-subnav { font-size: 12px !important; padding: 6px 11px !important; opacity: .85; border: 1.5px dashed var(--ld-line); }
.ld-subnav:hover { border-color: var(--ld-orange); }
.ld-player-mask {
  position: fixed; inset: 0; background: rgba(58, 50, 38, .55); z-index: 99;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ld-player {
  background: var(--ld-card); border-radius: 22px; border: 2px solid var(--ld-line);
  max-width: 760px; width: 100%; max-height: 92vh; overflow: auto; padding: 16px 18px;
  animation: ldPop .25s ease both;
}
.ld-player-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ld-player-head b { font-size: 16px; flex: 1; }
.ld-player-stage { min-height: 200px; text-align: center; }
.ld-player-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.ld-player-speed button {
  border: 1.5px solid var(--ld-line); background: var(--ld-card); color: var(--ld-sub);
  border-radius: 99px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.ld-player-speed button.on { background: var(--ld-yellow); color: #6b5200; border-color: var(--ld-yellow); }
/* 轻量庆祝弹层（机房友好：无重粒子动画） */
.ld-party-mask {
  position: fixed; inset: 0; background: rgba(58, 50, 38, .45); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ld-party {
  background: var(--ld-card); border-radius: 26px; border: 2.5px solid #ffd98f;
  box-shadow: 0 20px 50px -18px rgba(120, 80, 20, .5);
  padding: 30px 34px; text-align: center; max-width: 380px; width: 100%;
  animation: ldPop .3s ease both;
}
.ld-party .i { font-size: 46px; animation: ldFloat2 1.6s ease-in-out infinite; }
.ld-party b { display: block; margin: 8px 0 4px; font-size: 17px; }

/* 放映厅 / 游戏卡：专属渐变封面 + 阶梯弹入 + 锁卡摇一摇 */
.ld-vcard, .ld-gcard { animation: ldPop .35s ease both; }
.ld-vcard:nth-child(2), .ld-gcard:nth-child(2) { animation-delay: .05s; }
.ld-vcard:nth-child(3), .ld-gcard:nth-child(3) { animation-delay: .1s; }
.ld-vcard:nth-child(4), .ld-gcard:nth-child(4) { animation-delay: .15s; }
.ld-vcard:nth-child(5), .ld-gcard:nth-child(5) { animation-delay: .2s; }
.ld-vcard:nth-child(n+6), .ld-gcard:nth-child(n+6) { animation-delay: .25s; }
.ld-vcard .cover, .ld-gcard .cover { font-size: 42px; line-height: 1.25; }
.cov-anim  { background: linear-gradient(135deg, #fff4dc, #ffe0b0); }
.cov-short { background: linear-gradient(135deg, #ffe9ec, #ffd3dd); }
.cov-robot { background: linear-gradient(135deg, #e2f6ea, #c2ead3); }
.cov-story { background: linear-gradient(135deg, #eef0ff, #dce2ff); }
.cov-olymp { background: linear-gradient(135deg, #fff3d6, #ffdf9e); }
.cov-game-maze   { background: linear-gradient(135deg, #e2f6ea, #c2ead3); }
.cov-game-sort   { background: linear-gradient(135deg, #e4f0ff, #cbe2ff); }
.cov-game-greedy { background: linear-gradient(135deg, #f0e8ff, #dccfff); }
.cov-game-hanoi  { background: linear-gradient(135deg, #fff4dc, #ffe0b0); }
.is-locked .cover {
  background: repeating-linear-gradient(45deg, #f5eddc, #f5eddc 10px, #ece1c9 10px, #ece1c9 20px) !important;
  filter: grayscale(.35);
}
.is-locked:hover .cover { animation: ldShake .45s ease; }
@keyframes ldShake {
  20% { transform: translateX(-5px) rotate(-5deg); }
  50% { transform: translateX(5px) rotate(5deg); }
  80% { transform: translateX(-3px) rotate(-2deg); }
}

/* ---------- 响应式（PC 机房 / 平板 / 手机） ---------- */
@media (max-width: 960px) {
  .ld-sim-wrap { grid-template-columns: 1fr; }
  .ld-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .ld-stats-grid { grid-template-columns: repeat(4, 1fr); }
  .ld-ring { grid-column: 1 / -1; justify-self: center; width: 108px; height: 108px; }
}
@media (max-width: 640px) {
  .ld-wrap { padding: 10px 12px 30px; }
  .ld-hero { padding: 22px 18px; }
  .ld-hero h1 { font-size: 23px; }
  .ld-hero .ld-emoji { display: none; }
  .ld-opts { grid-template-columns: 1fr; }
  .ld-nav { width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; scrollbar-width: none; }
  .ld-nav::-webkit-scrollbar { display: none; }
  .ld-nav a { flex: none; }
  .ld-head-right { margin-left: 0; width: 100%; justify-content: flex-end; }
  .ld-report-path { grid-template-columns: 1fr; }
  .ld-btn { padding: 11px 22px; font-size: 14px; } /* 手机端按钮放大 */
  /* v1.2 手机端增强：总览 2 列、赛道卡横向滑动浏览 */
  .ld-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 12px; }
  .ld-stat b { font-size: 22px; }
  .ld-ring { width: 96px; height: 96px; }
  .ld-tracks {
    display: flex; gap: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none;
  }
  .ld-tracks::-webkit-scrollbar { display: none; }
  .ld-tracks .ld-track { flex: 0 0 200px; scroll-snap-align: start; }
  .ld-suggest { padding: 12px 14px; gap: 10px; }
  .ld-suggest .go { padding: 7px 12px; font-size: 12.5px; }
  /* 低端机房机/手机关掉摇摆动画省电 */
  .ld-btn.ld-go { animation: none; }
  .ld-hero-dot { display: none; }
}

/* =========================================================
   v1.3 首页功能增强：Hero CTA / 快捷入口 / 平台数字 /
   为什么爱领跑 / 三步开玩 / 底部 CTA
   ========================================================= */
.ld-hero-chip {
  display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: #B45309; font-weight: 900; font-size: 12.5px;
  box-shadow: 0 6px 16px -8px rgba(150, 30, 0, .5);
}
.ld-dark .ld-hero-chip { background: rgba(255, 255, 255, .14); color: #FFD98A; }
.ld-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; position: relative; z-index: 2; }
.ld-hero-actions .ld-btn.ghost { background: rgba(255, 255, 255, .94); border-color: rgba(255, 255, 255, .9); color: #C2410C; }
.ld-hero-actions .ld-btn.ghost:hover { background: #fff; }

/* 快捷入口：5 卡 */
.ld-entry { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 16px; }
.ld-entry a {
  background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 20px; padding: 16px 14px;
  text-decoration: none; color: var(--ld-ink); box-shadow: var(--ld-shadow);
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.ld-entry a:hover { transform: translateY(-4px) rotate(-.6deg); border-color: #FFD98F; box-shadow: 0 18px 32px -16px rgba(255, 122, 31, .45); }
.ld-entry i { font-style: normal; font-size: 26px; display: block; margin-bottom: 8px; }
.ld-entry b { display: block; font-size: 14.5px; font-weight: 900; }
.ld-entry small { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.6; color: var(--ld-sub); }

/* 平台数字条 */
.ld-nums {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px;
  background: linear-gradient(120deg, #FFF6E4, #FFEDF2); border: 2px dashed #FFD9A8;
  border-radius: 22px; padding: 20px 18px;
}
.ld-dark .ld-nums { background: linear-gradient(120deg, #382B20, #38242F); border-color: #5A4A30; }
.ld-nums div { text-align: center; }
.ld-nums b {
  display: block; font-size: 28px; font-weight: 900; line-height: 1.1;
  background: linear-gradient(100deg, var(--ld-orange), #FF4D6D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ld-nums span { display: block; margin-top: 5px; font-size: 12px; font-weight: 800; color: var(--ld-sub); }

/* 为什么喜欢：四卡 */
.ld-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ld-why > div {
  background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 20px; padding: 18px 16px;
  box-shadow: var(--ld-shadow); transition: transform .18s;
}
.ld-why > div:hover { transform: translateY(-4px); }
.ld-why i { font-style: normal; font-size: 26px; display: block; margin-bottom: 8px; }
.ld-why b { display: block; font-size: 14.5px; font-weight: 900; }
.ld-why small { display: block; margin-top: 5px; font-size: 12px; line-height: 1.75; color: var(--ld-sub); }

/* 三步开玩 */
.ld-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ld-steps > div {
  position: relative; background: var(--ld-card); border: 2px solid var(--ld-line); border-radius: 20px;
  padding: 18px 18px 18px 62px; box-shadow: var(--ld-shadow);
}
.ld-steps em {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; font-style: normal; font-size: 15px; font-weight: 900;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--ld-orange), var(--ld-yellow)); box-shadow: 0 3px 0 #E2751B;
}
.ld-steps b { display: block; font-size: 15px; font-weight: 900; }
.ld-steps small { display: block; margin-top: 4px; font-size: 12px; color: var(--ld-sub); line-height: 1.65; }

/* 底部 CTA */
.ld-final {
  margin-top: 28px; border-radius: 26px; padding: 34px 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #FF9F1C, #FF6B35 55%, #FF4D6D);
  border: 2.5px dashed rgba(255, 255, 255, .55);
  box-shadow: 0 24px 48px -22px rgba(255, 107, 53, .6);
}
.ld-final b { display: block; font-size: 24px; font-weight: 900; margin-bottom: 8px; text-shadow: 0 2px 10px rgba(160, 40, 0, .3); }
.ld-final small { display: block; font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, .93); margin-bottom: 18px; }
.ld-final .ld-btn { background: #fff; color: #C2410C; box-shadow: 0 10px 22px -8px rgba(120, 20, 0, .5); text-shadow: none; }

@media (max-width: 900px) {
  .ld-entry { grid-template-columns: repeat(2, 1fr); }
  .ld-why { grid-template-columns: 1fr 1fr; }
  .ld-steps { grid-template-columns: 1fr; }
  .ld-nums { grid-template-columns: repeat(2, 1fr); }
  .ld-final b { font-size: 20px; }
}
