/* 魔法自驱舱 · 深空主题 */
:root {
  --space: #0b1026;
  --space2: #141b3d;
  --panel: rgba(20, 27, 61, .82);
  --blue: #3d5afe;
  --gold: #ffc94d;
  --green: #4caf50;
  --orange: #ff7043;
  --text: #eef2ff;
  --dim: #9aa5d1;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, #1b2660 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #2a1b60 0%, transparent 55%),
    var(--space);
  min-height: 100vh;
}
/* 星空点缀 */
.stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star { position: absolute; background: #fff; border-radius: 50%; opacity: .7; animation: twinkle 3s infinite ease-in-out; }
@keyframes twinkle { 50% { opacity: .15; } }

.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 24px 16px 80px; }
h1.logo { font-size: 30px; letter-spacing: 2px; }
h1.logo .accent { color: var(--gold); }
.tagline { color: var(--dim); margin: 6px 0 26px; font-size: 14px; }

.filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.flabel {
  color: var(--dim); font-size: 13px; min-width: 32px;
  border-left: 3px solid var(--gold); padding-left: 8px; letter-spacing: 1px;
}
/* 筛选药丸：一行横滑不折行（册次一多折三行，列表被挤到两屏外） */
.filter { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding: 2px 2px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter::-webkit-scrollbar { display: none; }
.filter .chip { flex: 0 0 auto; white-space: nowrap; }
.card.soon { opacity: .78; }
.card.soon:hover { transform: none; border-color: #2c3a7a; }
.card .meta b.vt { color: #cfd8ff; font-weight: 600; }
.chip {
  padding: 6px 14px; border-radius: 999px; border: 1px solid #2c3a7a;
  background: transparent; color: var(--dim); cursor: pointer; font-size: 14px;
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
/* 册次切换：和版本筛选挤在一行，用一条竖线隔开 */
.vsep { width: 1px; height: 18px; background: rgba(140, 170, 220, .35); margin: 0 6px; display: inline-block; }
.chip.termchip { border-style: dashed; }
.chip.termchip.on { border-style: solid; background: var(--gold, #ffc94d); border-color: var(--gold, #ffc94d); color: #221a00; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: transform .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue); }
.card .cover {
  height: 92px; border-radius: 10px; margin-bottom: 12px; position: relative;
  background: radial-gradient(60px 60px at 30% 60%, #ffb74d 0 45%, transparent 50%),
              radial-gradient(34px 34px at 68% 30%, #4dd0e1 0 45%, transparent 55%),
              radial-gradient(20px 20px at 82% 72%, #ce93d8 0 45%, transparent 55%),
              linear-gradient(135deg, #101736, #1a2452);
}
.card h3 { font-size: 17px; margin-bottom: 4px; }
.card .meta { color: var(--dim); font-size: 13px; }
.badge {
  position: absolute; top: 10px; right: 10px; font-size: 12px;
  padding: 2px 10px; border-radius: 999px;
}
.badge.live { background: var(--green); color: #fff; }
.badge.soon { background: #3a4679; color: var(--dim); }
.price { margin-top: 10px; color: var(--gold); font-weight: 700; }
.price small { color: var(--dim); font-weight: 400; }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 10px; border: none;
  background: var(--blue); color: #fff; font-size: 15px; cursor: pointer;
}
.btn.gold { background: var(--gold); color: #3a2a00; font-weight: 700; }
.btn.ghost { background: transparent; border: 1px solid #3a4679; color: var(--dim); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.modal {
  position: fixed; inset: 0; background: rgba(4, 6, 18, .72); z-index: 50;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal .box {
  background: var(--space2); border: 1px solid #2c3a7a; border-radius: var(--radius);
  max-width: 460px; width: 100%; padding: 24px;
}
.modal h2 { margin-bottom: 12px; }
.modal input {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid #3a4679;
  background: #0d1330; color: var(--text); font-size: 16px; letter-spacing: 1px;
}
.modal .err { color: var(--orange); font-size: 13px; min-height: 18px; margin: 8px 0; }
.row { display: flex; gap: 10px; margin-top: 8px; }
.note { color: var(--dim); font-size: 12px; margin-top: 10px; line-height: 1.6; }

/* ---------- 游戏页 ---------- */
.topbar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px;
  background: var(--panel); border-radius: var(--radius); margin-bottom: 14px;
  border: 1px solid #2c3a7a;
}
.topbar .back { cursor: pointer; color: var(--dim); font-size: 20px; background: none; border: none; }
/* 返回入口原来只有两个暗色小图标，贴在书名里看不出能点 —— 做成带字的按钮 */
.topbar .back.nav {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  font-size: 17px; line-height: 1; color: #cfe0ff;
  padding: 7px 11px; border-radius: 10px;
  border: 1px solid rgba(126,232,250,.40);
  background: rgba(126,232,250,.09);
  transition: background .15s, border-color .15s, color .15s;
}
.topbar .back.nav .lbl { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.topbar .back.nav:hover,
.topbar .back.nav:focus-visible {
  color: #fff; background: rgba(126,232,250,.22); border-color: rgba(126,232,250,.85);
  outline: none;
}
.topbar .back.nav:active { transform: scale(.96); }
.topbar .title { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 两个带字按钮挤进顶栏后，窄一点的窗口让资源条整行换到第二行，别把书名和返回按钮挤没 */
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar .progress { white-space: nowrap; }
  .res { width: 100%; justify-content: flex-end; }
}
@media (max-width: 680px) {
  .topbar .back.nav .lbl { display: none; }
  .topbar .back.nav { font-size: 18px; padding: 5px 9px; }
}
.res { display: flex; gap: 14px; font-size: 15px; align-items: center; }
.res b { color: var(--gold); }
.res .gem b { color: #7ee8fa; }

/* 星图 */
.galaxy { margin-bottom: 30px; }
.galaxy > h2 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.galaxy > h2 .src { color: var(--dim); font-size: 13px; font-weight: 400; }
.galaxy.locked { opacity: .45; }
.planets { display: flex; flex-wrap: wrap; gap: 14px; }
.planet {
  position: relative;
  width: 118px; padding: 12px 8px; text-align: center; cursor: pointer;
  background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius);
  transition: transform .15s;
}
.planet:hover { transform: translateY(-4px); }
.planet .orb {
  width: 62px; height: 62px; margin: 0 auto 8px; border-radius: 50%;
  position: relative;
  box-shadow: inset -8px -8px 14px rgba(0,0,0,.5);
}
.planet.lit .orb { animation: glow 2.4s infinite ease-in-out; }
@keyframes glow { 50% { box-shadow: 0 0 22px rgba(255, 201, 77, .75), inset -8px -8px 14px rgba(0,0,0,.5); } }
.planet .nm { font-size: 12px; line-height: 1.35; min-height: 32px; }
.planet .st { color: var(--gold); font-size: 14px; letter-spacing: 2px; min-height: 18px; }
.planet.locked { cursor: not-allowed; }
.planet.locked .orb { filter: grayscale(.9) brightness(.55); }
.planet.trial::after {
  content: "免费"; position: absolute; top: -8px; right: -6px;
  background: var(--green); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 999px;
}
.planet .lockmark { color: var(--dim); font-size: 14px; }

/* 答题页 */
.brief { max-width: 560px; }
.qcard {
  background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius);
  padding: 20px; max-width: 720px; margin: 0 auto;
}
.qhead { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; margin-bottom: 12px; }
.energy { width: 160px; height: 10px; background: #0d1330; border-radius: 999px; overflow: hidden; }
.energy i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #7ee8fa); width: 0; transition: width .3s; }
.energy.full i { background: linear-gradient(90deg, var(--gold), #ffe082); }
.qtext { font-size: 18px; line-height: 1.8; margin-bottom: 18px; white-space: pre-wrap; }

/* 多空题 / 长题干（2026-11-15 用户要求）：
   1) 每个空直接长在题干原句的空位上，不再在题干下面排一排「第 N 个空」让孩子自己对位；
   2) 题干过长自己滚，滚动条只在这个框里，不把选项和输入区挤到屏幕外。 */
.qtext.inline-fill { line-height: 2.2; }
.qtext.long {
  max-height: 38vh; overflow-y: auto; overscroll-behavior: contain;
  padding-right: 8px; scrollbar-width: thin;
}
.qtext.long::-webkit-scrollbar { width: 8px; }
.qtext.long::-webkit-scrollbar-thumb { background: rgba(126, 232, 250, .38); border-radius: 8px; }
.qtext .fillIn {
  display: inline-block; vertical-align: baseline;
  margin: 0 3px; padding: 3px 7px; min-width: 68px; max-width: 100%;
  font: inherit; font-size: .9em; line-height: 1.25;
  border: 1px solid rgba(120, 170, 255, .55); border-bottom: 2px solid #7ee8fa;
  border-radius: 7px; background: rgba(8, 16, 36, .92); color: #fff;
  text-shadow: none;
}
.qtext .fillIn:focus { outline: none; border-color: #ffd66b; box-shadow: 0 0 0 2px rgba(255, 214, 107, .22); }
.qtext .fillIn::placeholder { color: #5c6884; }
.filltip { color: var(--dim); font-size: 12px; align-self: center; line-height: 1.5; }

/* 阅读题的共用原文：英语一个材料常带 3~5 个问题，原文必须在题卡上给出来。
   默认展开（不展开孩子就看不到），但封顶 300px 自己滚，避免把选项挤到屏幕外。 */
.pqmat {
  margin: 0 0 14px; border: 1px solid rgba(126, 232, 250, .28); border-radius: 12px;
  background: rgba(126, 232, 250, .06);
}
.pqmat > summary {
  cursor: pointer; padding: 9px 14px; display: flex; gap: 8px; align-items: baseline;
  list-style: none; color: #9fe9f7; font-size: 13px; font-weight: 700;
}
.pqmat > summary::-webkit-details-marker { display: none; }
.pqmat > summary::before { content: "▾"; font-size: 11px; }
.pqmat:not([open]) > summary::before { content: "▸"; }
.pqmat > summary span { color: var(--dim); font-weight: 500; font-size: 11.5px; }
.pqmatbody {
  padding: 2px 16px 14px; max-height: 300px; overflow: auto;
  color: #dce9f8; font-size: 15px; line-height: 1.85; white-space: pre-wrap; word-break: break-word;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 560px) {
  .pqmatbody { font-size: 14px; max-height: 240px; padding: 2px 12px 12px; }
  .pqmat > summary span { display: none; }
}
/* 方框备选词：题库里的 passage 有时是「learn about  favourite subject  Art and Music …」
   这样的词组表，不是文章。一格一格摆出来，孩子才看得出是几个可选项。 */
.pqmatbody.mat-chips { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; white-space: normal; }
.mat-chip {
  display: inline-block; padding: 6px 11px; border-radius: 8px;
  background: rgba(126, 232, 250, .10); border: 1px solid rgba(126, 232, 250, .34);
  color: #eaf3ff; font-size: 14px; font-weight: 600; line-height: 1.5;
  white-space: normal; word-break: break-word;
}
/* 空题干的方框题：备选句子存在同一大题的兄弟题里，摊开给孩子看，别让他对着横线猜 */
.qbox, .enl-boxopts {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 10px;
  background: rgba(126, 232, 250, .07); border: 1px solid rgba(126, 232, 250, .26);
}
.qbox > b, .enl-boxopts > b {
  display: block; margin-bottom: 8px; color: #9fd8ff; font-size: 12.5px; font-weight: 700;
}
.qbox-chips {
  display: flex; flex-wrap: wrap; gap: 8px; max-height: 150px; overflow-y: auto;
}
.qbox-chips .mat-chip { font-size: 13px; padding: 5px 10px; }
/* 可点的方框句：点一下自动填进答案框，孩子不用手打一整句 */
.mat-chip.pickable { cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.mat-chip.pickable:hover { background: rgba(126,232,250,.28); border-color: rgba(126,232,250,.9); transform: translateY(-1px); }
.mat-chip.pickable:active { transform: none; }
/* 题库里原有的大题指令（section 原话），让「文」和「题」对得上 */
.qsec { margin: -6px 0 12px; color: var(--dim); font-size: 12.5px; line-height: 1.6; }
.opts { display: grid; gap: 10px; }
.opt {
  padding: 13px 16px; border-radius: 10px; border: 1px solid #3a4679;
  background: #0d1330; color: var(--text); text-align: left; font-size: 16px; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--blue); }
.opt.right { background: rgba(76, 175, 80, .22); border-color: var(--green); }
.opt.wrong { background: rgba(255, 112, 67, .16); border-color: var(--orange); }
.opt:disabled { cursor: default; }
.fillrow { display: flex; gap: 10px; }
.fillrow input {
  flex: 1; padding: 12px; border-radius: 10px; border: 1px solid #3a4679;
  background: #0d1330; color: var(--text); font-size: 18px;
}
/* 多空题：一空一框。窄屏自动换行，不挤成一条看不清的细线。
   单个框最小 92px，是因为「第 2 个空」的占位文字要能露出来，
   挤到只剩几个字时孩子分不清哪格是第几空。 */
.fillrow.multi { flex-wrap: wrap; }
.fillrow.multi input { flex: 1 1 92px; min-width: 92px; }
.fillrow.multi input:focus { border-color: #7ee8fa; box-shadow: 0 0 0 2px rgba(126, 232, 250, .22); }
.fillrow.multi .btn { flex: 0 0 auto; }
.feedback { margin-top: 14px; font-size: 15px; line-height: 1.7; min-height: 24px; }
.feedback.ok { color: var(--green); }
.feedback.no { color: var(--orange); }
.hintbox { margin-top: 10px; background: rgba(255, 201, 77, .1); border: 1px dashed var(--gold); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--gold); }
.qfoot { display: flex; gap: 10px; margin-top: 16px; justify-content: space-between; align-items: center; }

/* 结算 */
.result { text-align: center; max-width: 480px; }
.result .bigstars { font-size: 44px; letter-spacing: 8px; color: var(--gold); margin: 12px 0; }
.result .earn { color: var(--dim); margin: 8px 0 18px; line-height: 1.9; }
.fall { position: fixed; top: -40px; font-size: 26px; z-index: 60; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); opacity: .1; } }

/* 商店 */
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; max-width: 760px; }
.shopitem { background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius); padding: 16px; text-align: center; }
.ship { font-size: 42px; margin: 8px 0; }
.shopitem .cost { color: var(--gold); margin: 8px 0; }
.owned { color: var(--green); font-size: 13px; }

/* 上传题库 */
.uplcard {
  background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius);
  padding: 22px; max-width: 820px;
}
.uplcard h2 { font-size: 17px; }
.drop {
  border: 2px dashed #3a4679; border-radius: var(--radius); padding: 34px 20px;
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s; margin-top: 10px;
}
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(255, 201, 77, .06); }
.drop .pick { color: var(--gold); text-decoration: underline; }
.tablewrap { max-height: 300px; overflow: auto; border-radius: 10px; border: 1px solid #2c3a7a; margin-top: 10px; }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tablewrap th, .tablewrap td { padding: 7px 10px; border-bottom: 1px solid #222c55; text-align: left; }
.tablewrap th { background: #101736; color: var(--dim); position: sticky; top: 0; }
.errlist { margin-top: 10px; font-size: 13px; }
.errlist .err { color: var(--orange); }
.errlist .ok { color: var(--green); }
.errlist ul { margin: 6px 0 0 18px; color: var(--orange); line-height: 1.7; }

/* 低年级互动：点一点数一数 + 按顺序点 */
.countzone { text-align: center; }
.countarea {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  background: rgba(13, 19, 48, .6); border: 1px dashed #3a4679; border-radius: 12px;
  padding: 14px; min-height: 96px; margin-bottom: 10px;
}
.cnt {
  font-size: 38px; cursor: pointer; user-select: none; line-height: 1;
  transition: transform .12s, filter .12s; filter: grayscale(.55) opacity(.65);
}
.cnt:hover { transform: scale(1.1); }
.cnt.tapped { filter: none; transform: scale(1.08); text-shadow: 0 0 12px rgba(255, 201, 77, .9); }
.counttip { color: var(--dim); font-size: 13px; margin: 6px 0 12px; }
.numbtns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.numbtn {
  width: 58px; height: 58px; border-radius: 14px; border: 1px solid #3a4679;
  background: #0d1330; color: var(--text); font-size: 24px; font-weight: 700; cursor: pointer;
}
.numbtn:hover { border-color: var(--blue); }
.numbtn.right { background: rgba(76, 175, 80, .25); border-color: var(--green); }
.numbtn.wrong { background: rgba(255, 112, 67, .18); border-color: var(--orange); }
.numbtn:disabled { cursor: default; }

.orderzone { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
.ochip {
  width: 74px; height: 74px; border-radius: 16px; border: 1px solid #3a4679;
  background: #0d1330; color: var(--text); font-size: 28px; font-weight: 700; cursor: pointer;
  transition: transform .12s;
}
.ochip:hover { transform: translateY(-3px); border-color: var(--blue); }
.ochip.ok { background: rgba(61, 90, 254, .25); border-color: var(--blue); opacity: .55; }
.ochip.right { background: rgba(76, 175, 80, .25); border-color: var(--green); }
.ochip.wrong { background: rgba(255, 112, 67, .2); border-color: var(--orange); }
.orderdone { color: var(--dim); font-size: 13px; text-align: center; }

/* 低年级模式：字更大、按钮更肥，方便一年级孩子点 */
body.young .qtext { font-size: 24px; line-height: 1.9; }
body.young .opt { font-size: 20px; padding: 16px 18px; }
body.young .qcard { max-width: 760px; }
body.young .planet { width: 132px; }
body.young .planet .nm { font-size: 13px; }
body.young .fillrow input { font-size: 24px; }
body.young .qfoot { flex-wrap: wrap; }

.progress { font-size: 13px; color: var(--dim); }
.toplink { color: var(--dim); font-size: 13px; text-decoration: none; }
.toplink:hover { color: var(--text); }

/* ================= 场景层：航线舱 / 飞船 / 目标星球 ================= */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 45; }
body { overflow-x: hidden; }

.stage {
  position: relative; height: 154px; margin: 0 0 16px; border-radius: 12px;
  overflow: hidden; border: 1px solid #253062;
  background:
    radial-gradient(120% 80% at 12% 10%, #1b2554 0%, transparent 55%),
    radial-gradient(90% 120% at 92% 90%, #2a1b52 0%, transparent 60%),
    linear-gradient(160deg, #0b1128, #060a18 70%);
  box-shadow: inset 0 0 46px rgba(61, 90, 254, .22), inset 0 14px 34px rgba(0, 0, 0, .55);
}
.stage::before {               /* 舱窗反光 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(116deg, rgba(255,255,255,.12) 0 6%, rgba(255,255,255,.03) 8% 12%, transparent 22% 100%);
}
.stage::after {                /* 玻璃扫掠 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(180, 210, 255, .06) 0 1px, transparent 1px 5px);
}
.s-route {
  position: absolute; left: 9%; right: 11%; top: 70px; height: 2px; border-radius: 2px;
  background: repeating-linear-gradient(90deg, rgba(126, 232, 250, .5) 0 9px, transparent 9px 19px);
}
.s-fill {
  position: absolute; left: 0; top: -1px; height: 4px; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #7ee8fa, #ffc94d);
  box-shadow: 0 0 12px rgba(255, 201, 77, .9); transition: width .8s cubic-bezier(.2, .9, .3, 1);
}
.s-ship {
  position: absolute; top: 40px; left: 9%; width: 58px; z-index: 4;
  transform: translateX(-50%);
  transition: left .85s cubic-bezier(.18, 1.1, .3, 1);
}
.s-ship .artwrap { animation: bob 2.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.s-ship .shipart { display: block; width: 54px; height: 54px; transform: rotate(90deg);
  filter: drop-shadow(0 6px 14px rgba(61, 90, 254, .65)); }
.s-flame {
  position: absolute; left: -18px; top: 22px; width: 28px; height: 12px;
  background: radial-gradient(closest-side, #fff 0 14%, #ffd166 38%, #ff7043 62%, transparent 74%);
  filter: blur(1.4px); transform-origin: right center; animation: flame .16s infinite alternate;
}
@keyframes flame { from { transform: scaleX(.72) scaleY(.85); } to { transform: scaleX(1.18) scaleY(1.12); } }
.s-tank {
  position: absolute; left: 6px; bottom: -16px; width: 13px; height: 24px;
  border: 1px solid rgba(255, 201, 77, .55); border-radius: 4px;
  background: rgba(0, 0, 0, .45); overflow: hidden;
}
.s-tank i {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 0;
  background: linear-gradient(180deg, #fff3c4, #ffc94d 60%, #f0a020);
  box-shadow: 0 0 10px rgba(255, 201, 77, .8); transition: height .6s cubic-bezier(.2, .9, .3, 1);
}
.s-target { position: absolute; right: 7%; top: 36px; width: 74px; height: 74px; }
.s-orb {
  position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #cfefff 0 10%, #64b6ff 38%, #2f63d8 70%, #16235c 100%);
  box-shadow: 0 0 26px rgba(79, 168, 255, .5), inset -7px -9px 16px rgba(0, 0, 0, .55);
}
.s-ring {
  position: absolute; left: -8px; right: -8px; top: 26px; bottom: 26px; border-radius: 50%;
  border: 2px solid rgba(126, 232, 250, .35); transform: rotate(-16deg);
  animation: ringspin 9s linear infinite;
}
@keyframes ringspin { to { transform: rotate(344deg); } }
.s-target.hit .s-orb { animation: orbhit .7s ease-out; }
@keyframes orbhit {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.22); filter: brightness(1.9); }
  100% { transform: scale(1); filter: brightness(1); }
}
.s-info {
  position: absolute; left: 0; right: 0; bottom: 6px; text-align: center;
  font-size: 12px; color: var(--dim); letter-spacing: .5px;
}
.s-info b { color: var(--gold); }

/* 顶栏资源：金币罐 / 宝石 */
.res { gap: 10px; }
.hud {
  display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 8px;
  background: rgba(13, 19, 48, .85); border: 1px solid #33407a; border-radius: 12px;
  position: relative; transition: border-color .2s, box-shadow .2s;
}
.hud .ico { font-size: 19px; filter: drop-shadow(0 0 6px rgba(255, 201, 77, .8)); }
.hud .hudtxt { display: flex; flex-direction: column; line-height: 1.05; }
.hud .hudtxt b { font-size: 16px; color: var(--gold); font-variant-numeric: tabular-nums; }
.hud .hudtxt small { font-size: 10px; color: var(--dim); letter-spacing: 1px; }
.hud.gem .hudtxt b { color: #7ee8fa; }
.hud.bump { border-color: var(--gold); box-shadow: 0 0 18px rgba(255, 201, 77, .55); }
.hud.bump .hudtxt b { animation: numpop .5s ease-out; }
@keyframes numpop { 0% { transform: scale(1); } 40% { transform: scale(1.45); color: #fff; } 100% { transform: scale(1); } }
.hud .gain {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translateX(-50%);
  color: var(--gold); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none;
}
/* 顶栏金币：赚了弹一下、亏了抖一下（和游戏里是同一套反馈语言） */
.hud.lose { animation: hudLose .56s cubic-bezier(.36,.07,.19,.97); }
@keyframes hudLose {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-5px); border-color: rgba(255, 90, 70, .85); }
  34% { transform: translateX(5px); }
  54% { transform: translateX(-3px); }
  74% { transform: translateX(2px); }
}
.hud.lose .hudtxt b { color: #ff8f7c; animation: numdrop .55s ease-out; }
@keyframes numdrop { 0% { transform: scale(1); } 35% { transform: scale(.86); color: #ff6f5e; } 100% { transform: scale(1); } }
.hud .gain.lose { color: #ff7a6a; font-size: 14px; }
.shipwrap { font-size: 24px; transition: filter .3s; }

/* 飞入的奖励令牌 */
.fx-token {
  position: fixed; z-index: 70; pointer-events: none; font-weight: 800;
  font-size: 18px; color: var(--gold); text-shadow: 0 2px 10px rgba(0, 0, 0, .8), 0 0 14px rgba(255, 201, 77, .9);
  white-space: nowrap;
}
.fx-token.dust { color: #ffd66b; }
.fx-token.gem { color: #8ef0ff; font-size: 22px; }
.fx-token.lose { color: #ff7a6a; text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 0 16px rgba(255,70,60,.9); }
.fx-ship { position: fixed; z-index: 70; pointer-events: none; font-size: 26px; filter: drop-shadow(0 0 10px rgba(126, 232, 250, .9)); }

/* 曲速 / 连击氛围 */
body.warping .stage { box-shadow: inset 0 0 80px rgba(126, 232, 250, .55), inset 0 14px 34px rgba(0, 0, 0, .5); }
.combochip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  background: rgba(255, 201, 77, .16); color: var(--gold); font-size: 12px; font-weight: 700;
  border: 1px solid rgba(255, 201, 77, .5);
}
.combochip.hot { background: rgba(255, 112, 67, .2); border-color: var(--orange); color: #ffb59a; animation: hotpulse .8s infinite alternate; }
@keyframes hotpulse { to { box-shadow: 0 0 16px rgba(255, 112, 67, .7); } }

/* ================= 结算：星球点亮 ================= */
.result .rscene { position: relative; height: 168px; margin-bottom: 4px; }
.result .rorb {
  position: absolute; left: 50%; top: 46%; width: 92px; height: 92px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  background: radial-gradient(circle at 32% 26%, #fff6d8 0 8%, #ffd166 34%, #e8890f 68%, #6b3a00 100%);
  box-shadow: 0 0 50px rgba(255, 201, 77, .85), inset -8px -10px 20px rgba(0, 0, 0, .45);
  animation: orbin 1s cubic-bezier(.2, 1.3, .4, 1) .1s forwards;
}
@keyframes orbin { 60% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.result .rring {
  position: absolute; left: 50%; top: 46%; width: 210px; height: 70px; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-14deg); border: 2px dashed rgba(255, 201, 77, .45);
  animation: ringspin 12s linear infinite;
}
.result .rstars {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 6px;
  font-size: 40px; color: var(--gold); line-height: 1;
}
.result .rstar {
  display: inline-block; opacity: 0; transform: scale(.2) rotate(-40deg);
  text-shadow: 0 0 22px rgba(255, 201, 77, .95);
  animation: starpop .55s cubic-bezier(.2, 1.6, .4, 1) forwards;
}
@keyframes starpop { 70% { opacity: 1; transform: scale(1.35) rotate(8deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
.result h2 { font-size: 22px; }
.rrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; margin: 6px 0; border-radius: 10px;
  background: rgba(13, 19, 48, .7); border: 1px solid #2a3568; font-size: 14px;
}
.rrow .k { color: var(--dim); display: flex; align-items: center; gap: 7px; }
.rrow .v { font-weight: 800; color: var(--gold); font-size: 17px; font-variant-numeric: tabular-nums; }
.rrow .v.gem { color: #7ee8fa; }
.rrow.total { background: rgba(255, 201, 77, .1); border-color: rgba(255, 201, 77, .45); }

/* ================= 机库：金币换装备 ================= */
.garage { max-width: 900px; margin: 0 auto; }
.gcoins {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(255, 201, 77, .16), rgba(255, 201, 77, .02));
  border: 1px solid rgba(255, 201, 77, .4); border-radius: 12px;
}
.gcoins b { font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.gearcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gearbox { background: var(--panel); border: 1px solid #2c3a7a; border-radius: var(--radius); padding: 14px; }
.gearbox h3 { font-size: 15px; margin-bottom: 2px; display: flex; justify-content: space-between; }
.gearbox .gdesc { font-size: 12px; color: var(--dim); line-height: 1.6; margin-bottom: 10px; min-height: 34px; }
.gslot {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  border: 1px solid #2c3a7a; background: #0d1330; margin-bottom: 8px;
}
.gslot.on { border-color: var(--gold); background: rgba(255, 201, 77, .1); }
.gslot .gico { font-size: 22px; }
.gslot .gnm { flex: 1; font-size: 13px; }
.gslot .gnm small { display: block; color: var(--dim); font-size: 11px; }
.gslot .gbtn { padding: 5px 12px; font-size: 12px; border-radius: 8px; border: none; cursor: pointer; background: var(--gold); color: #3a2a00; font-weight: 700; }
.gslot .gbtn.no { background: #2a3568; color: var(--dim); cursor: not-allowed; }
.gslot .gbtn.max { background: transparent; border: 1px solid var(--green); color: var(--green); cursor: default; }
/* 买到手但没穿着的那几级：点一下就换上（2026-11-03 用户要"自己装戴"） */
.gslot .gbtn.use { background: transparent; border: 1px solid var(--blue, #6ea8ff); color: #cfe2ff; }
.gslot .gbtn.use:hover { background: rgba(110, 168, 255, .18); }
.gslot.owned { border-color: #3a5aa8; background: rgba(61, 90, 254, .08); }
.equipstrip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.equipstrip.flash span { animation: equipFlash .9s ease-out; }
@keyframes equipFlash {
  0%   { border-color: var(--gold); background: rgba(255, 201, 77, .38); transform: translateY(-2px); }
  60%  { border-color: var(--gold); background: rgba(255, 201, 77, .18); }
  100% { transform: none; }
}
.equipstrip span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(61, 90, 254, .18); border: 1px solid #33407a; }
.equipstrip span.swon { border-color: var(--gold); color: var(--gold); }
.equipstrip .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }

/* ---------- 精灵小队（机库） ---------- */
/* 下一个目标条：金币是抽象数字，"还要答对几题"才是孩子能理解的目标 */
.orbgoal {
  display: flex; gap: 12px; align-items: center;
  margin: 6px 0 10px; padding: 11px 14px;
  border: 1px solid rgba(255, 206, 107, .34); border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 206, 107, .10), rgba(20, 36, 74, .5));
}
.orbgoal.ready { border-color: var(--gold); box-shadow: 0 0 26px -12px var(--gold); }
.orbgoal.done { border-color: rgba(94, 234, 165, .45); background: rgba(20, 36, 74, .45); }
.ogicon { font-size: 26px; flex: 0 0 auto; filter: drop-shadow(0 0 10px var(--c, #ffd166)); }
.ogmain { flex: 1 1 auto; min-width: 0; font-size: 13.5px; line-height: 1.45; }
.ogmain b { color: var(--gold); font-size: 14px; }
.ogmain small { display: block; color: #b9c3ea; font-size: 12px; margin-top: 4px; }
/* "再答对约 5 题" 做成金色胶囊：整条提示里最该被看见的就是这几个字 */
.ogmain em {
  font-style: normal; font-weight: 800; font-size: 12.5px;
  color: #2a1c00; padding: 1px 7px; border-radius: 99px; white-space: nowrap;
  background: linear-gradient(180deg, #ffe08a, #ffb347);
  box-shadow: 0 0 12px -3px #ffd166;
}
.ogbar { height: 8px; border-radius: 99px; background: #1b2550; overflow: hidden; margin-top: 8px; }
.ogbar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #ffd166, #ffb347);
  box-shadow: 0 0 10px -2px #ffd166; transition: width .5s ease;
}

.orbcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 10px; }
.orbslot {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel); border: 1px solid #2c3a7a; border-radius: 14px; padding: 12px;
}
.orbslot.on {
  border-color: var(--gold);
  box-shadow: 0 0 20px -8px var(--c), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.orbslot .orbicon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02));
}
.orbslot.on .orbicon { box-shadow: inset 0 0 0 1px var(--c), 0 0 16px -4px var(--c); }
/* 钱不够：不压暗整张卡（压暗等于没看见），只把按钮换成差距 */
.orbslot.short { border-color: #26325f; }
/* 可招募：把价格按钮摆到卡片右边，一眼看见"这个我现在买得起" */
.orbslot.buy { border-color: rgba(255, 206, 107, .42); }
.orbslot.shake { animation: orbShake .34s ease; }
@keyframes orbShake {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-5px); }
  62% { transform: translateX(5px); }
}
.orbslot .gbtn {
  align-self: center; flex: 0 0 auto;
  padding: 6px 12px; font-size: 12px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--gold); color: #3a2a00; font-weight: 700; white-space: nowrap;
}
/* 差多少也让它可点：点一下会告诉你"再答几题"，比一个死按钮有用 */
.orbslot .gbtn.no { background: #2a3568; color: #b9c3ea; cursor: pointer; }
.orbslot .gbtn.max { background: transparent; border: 1px solid var(--green); color: var(--green); cursor: default; }
.orbslot .orbmain { flex: 1 1 auto; min-width: 0; }
.orbslot .orbnm { font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.orbslot .orbstate { font-size: 10px; font-weight: 400; color: var(--dim); }
.orbslot.on .orbstate { color: var(--green); }
.orbslot.short .orbstate { color: #ffd98a; }
.orbslot .orbdesc { font-size: 11px; color: var(--dim); margin-top: 2px; line-height: 1.55; }
.orbslot .orbbonus { font-size: 12px; margin-top: 4px; color: var(--gold); }
.orbslot .orbgauge { height: 6px; border-radius: 99px; background: #1b2550; overflow: hidden; margin-top: 8px; }
.orbslot .orbgauge i {
  display: block; height: 100%; border-radius: 99px;
  /* 0 金币时也留一个小红点，不然进度条整根消失，看不出"这里在攒" */
  width: max(5px, calc(var(--p, 0) * 100%));
  background: linear-gradient(90deg, var(--c), #ffd166);
  transition: width .5s ease;
}

/* ================= 星图：航线 + 星球徽标 ================= */
.planets { position: relative; }
.planets::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 46px; height: 1px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(126, 232, 250, .32) 0 8px, transparent 8px 18px);
}
.planet { z-index: 1; }
.planet .pring {
  position: absolute; left: 50%; top: 30px; width: 96px; height: 30px; margin-left: -48px;
  border-radius: 50%; border: 1.5px solid rgba(126, 232, 250, .22);
  transform: rotate(-14deg); pointer-events: none;
}
.planet.lit .pring { border-color: rgba(255, 201, 77, .55); box-shadow: 0 0 12px rgba(255, 201, 77, .35); }
.planet .nextmark {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #3a2a00; font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 201, 77, .7); animation: nextbob 1.4s ease-in-out infinite;
}
@keyframes nextbob { 50% { transform: translate(-50%, -4px); } }
.planet .littag {
  position: absolute; top: -9px; right: -4px; font-size: 10px;
  background: rgba(76, 175, 80, .9); color: #fff; padding: 1px 7px; border-radius: 999px;
}
.planet:hover .orb { transform: scale(1.07); }
.planet .orb { transition: transform .18s; }

/* ================= 驾驶舱：三维深空场景 ================= */
body.flight { background: #03050e; }
#space { position: fixed; inset: 0; z-index: 0; display: block; }
body.flight .wrap { position: relative; z-index: 3; max-width: 1120px; padding-bottom: 120px; }

/* 舱窗框架：暗角 + 四角支架 + 顶部弧形 */
.cockpit-frame { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.cockpit-frame::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 46%, transparent 40%, rgba(0, 0, 0, .55) 88%, rgba(0, 0, 0, .82) 100%);
}
.cf-top {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%);
  width: min(1100px, 96vw); height: 46px; border-radius: 0 0 60% 60%/0 0 100% 100%;
  border-bottom: 2px solid rgba(120, 170, 255, .22);
  background: linear-gradient(180deg, rgba(10, 16, 36, .92), transparent);
  box-shadow: 0 8px 30px rgba(60, 110, 220, .18);
}
.cockpit-frame span[class^="cf-"] {
  position: absolute; width: 46px; height: 46px; border: 2px solid rgba(126, 232, 250, .28);
}
.cf-tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.cf-tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.cf-bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.cf-br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }

/* 视野正前方的飞船 */
.shipbig {
  position: fixed; left: 50%; bottom: -36px; width: 232px; z-index: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .7));
  transition: left .22s ease-out, transform .3s ease-out;
}
.shipbig .shipart3d { display: block; width: 100%; height: auto; }
.shipbig .sb-flame {
  position: absolute; left: 50%; bottom: 4px; width: 54px; height: 76px;
  margin-left: -27px; border-radius: 50% 50% 46% 46%/40% 40% 60% 60%;
  background: radial-gradient(closest-side, #fff 0 12%, #ffe08a 30%, #ff9a3c 58%, rgba(255, 90, 40, 0) 78%);
  filter: blur(3px); opacity: .92; transform-origin: top center;
  animation: sbflame .12s infinite alternate;
}
@keyframes sbflame { from { transform: scale(.82, .88); opacity: .7; } to { transform: scale(1.06, 1.12); opacity: 1; } }
.shipbig .sb-glow {
  position: absolute; left: 50%; bottom: 30px; width: 260px; height: 260px; margin-left: -130px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(90, 170, 255, .28) 0 30%, transparent 68%);
}
body.warping .shipbig { animation: sbwarp .5s ease-in-out; }
@keyframes sbwarp {
  30% { transform: translateX(-50%) scale(1.14) translateY(10px); }
  60% { transform: translateX(-50%) scale(.96) translateY(-6px); }
  100% { transform: translateX(-50%) scale(1); }
}

/* ---------- 跟班小队：招了谁，船屁股后面就跟谁 ----------
   2026-11-03 用户定：精灵"变成原来的宇宙中的样子" —— 机库预览也改成天体本尊，
   和战场上 canvas 画的一一对应（中子星/天狼星/黑洞/彗星/星云/陨石/北极星）。 */
.sb-mates { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.mate {
  position: absolute; left: 50%; margin-left: var(--x, 0px); top: var(--y, 0px);
  width: 26px; height: 42px;
  transform: translate(-50%, 0) scale(var(--s, 1.3));
  animation: mateFloat 3.4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
@keyframes mateFloat {
  0%, 100% { transform: translate(-50%, 0) scale(var(--s, 1.3)) translate(0, 0) rotate(-3deg); }
  50% { transform: translate(-50%, 0) scale(var(--s, 1.3)) translate(3px, -7px) rotate(3deg); }
}
.mate i { position: absolute; display: block; }
/* 天体本尊：白心 + 主色壳的发光球，各家再戴各家的标志 */
.m-star {
  left: 0; top: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #ffffff 0 24%, var(--c, #7ee8fa) 58%, var(--c2, #1b6f9e) 100%);
  box-shadow: 0 0 10px 2px var(--c, #7ee8fa), inset -2px -3px 6px rgba(0, 0, 0, .28);
}
.m-deco { left: 0; top: 8px; width: 26px; height: 26px; pointer-events: none; }
/* 中子星：两极喷伽马射线锥，脉冲一亮就是要出手 */
.mate.n .m-star { animation: nPulse 1.6s ease-in-out infinite; }
@keyframes nPulse {
  0%, 100% { box-shadow: 0 0 8px 1px var(--c, #7ee8fa), inset -2px -3px 6px rgba(0,0,0,.28); }
  50% { box-shadow: 0 0 16px 5px var(--c, #7ee8fa), inset -2px -3px 6px rgba(0,0,0,.28); }
}
.mate.n .m-deco::before, .mate.n .m-deco::after {
  content: ""; left: 50%; width: 10px; height: 11px; margin-left: -5px;
  background: linear-gradient(180deg, rgba(214,250,255,.9), rgba(214,250,255,0));
  clip-path: polygon(35% 0, 65% 0, 100% 100%, 0 100%);
}
.mate.n .m-deco::before { top: -11px; transform: rotate(180deg); }
.mate.n .m-deco::after { top: 26px; }
/* 天狼星：全天最亮 —— 十字四芒 */
.mate.s .m-deco::before, .mate.s .m-deco::after {
  content: ""; left: 50%; top: 50%; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0));
}
.mate.s .m-deco::before { width: 34px; height: 2.4px; margin: -1.2px 0 0 -17px; }
.mate.s .m-deco::after { width: 2.4px; height: 34px; margin: -17px 0 0 -1.2px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff, rgba(255,255,255,0)); }
/* 黑洞：黑核 + 光子环 + 橙紫吸积盘 */
.mate.b .m-star {
  background: #05060f;
  box-shadow: 0 0 0 1.6px rgba(255, 242, 217, .9), 0 0 12px 3px rgba(180, 135, 255, .7);
}
.mate.b .m-deco::before {
  content: ""; left: -5px; top: 7px; width: 36px; height: 12px;
  border: 3px solid rgba(255, 176, 96, .85);
  border-top-color: rgba(180, 135, 255, .6); border-bottom-color: rgba(180, 135, 255, .6);
  border-radius: 50%; transform: rotate(-18deg);
}
/* 彗星：冰核 + 向左的长尾 */
.mate.c .m-deco::before {
  content: ""; right: 16px; top: 8px; width: 24px; height: 10px;
  background: linear-gradient(90deg, rgba(196,255,238,0), rgba(196,255,238,.75));
  clip-path: polygon(0 35%, 100% 0, 100% 100%, 0 65%);
}
/* 星云：一团会喘气的星尘 + 嵌着的小星 */
.mate.v .m-star {
  background:
    radial-gradient(circle at 30% 32%, rgba(255,190,226,.9) 0 22%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255,134,200,.75) 0 30%, transparent 62%),
    radial-gradient(circle at 52% 78%, rgba(255,164,214,.6) 0 24%, transparent 58%);
  box-shadow: 0 0 12px 3px rgba(255, 134, 200, .55);
  filter: blur(.4px);
}
.mate.v .m-deco::before {
  content: ""; left: 6px; top: 4px; width: 4px; height: 4px; border-radius: 50%;
  background: #fff;
  box-shadow: 11px 4px 0 0 rgba(255,255,255,.9), 4px 14px 0 0 rgba(255,255,255,.8), 14px 15px 0 -0.5px rgba(255,255,255,.7);
}
/* 陨石：磕磕巴巴的石头 + 火尾 */
.mate.m .m-star {
  background:
    radial-gradient(circle at 62% 40%, rgba(30,15,8,.55) 0 14%, transparent 34%),
    radial-gradient(circle at 40% 66%, rgba(30,15,8,.5) 0 12%, transparent 30%),
    linear-gradient(160deg, #8a5238, #4a2718);
  box-shadow: 0 0 10px 2px rgba(255, 150, 70, .55), inset -2px -3px 5px rgba(0, 0, 0, .4);
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
}
.mate.m .m-deco::before {
  content: ""; right: 17px; top: 9px; width: 18px; height: 8px;
  background: linear-gradient(90deg, rgba(255,196,120,0), rgba(255,170,80,.8));
  border-radius: 4px 0 0 4px; filter: blur(1px);
}
/* 北极星：不动的那颗 —— 正十字 + 金晕 */
.mate.p .m-star {
  background: radial-gradient(circle at 50% 50%, #fff 0 24%, #ffd166 60%, rgba(255,209,102,.25) 100%);
}
.mate.p .m-deco::before, .mate.p .m-deco::after {
  content: ""; left: 50%; top: 50%;
  background: linear-gradient(90deg, rgba(255,238,180,0), rgba(255,238,180,.95), rgba(255,238,180,0));
}
.mate.p .m-deco::before { width: 36px; height: 2px; margin: -1px 0 0 -18px; }
.mate.p .m-deco::after { width: 2px; height: 36px; margin: -18px 0 0 -1px; background: linear-gradient(180deg, rgba(255,238,180,0), rgba(255,238,180,.95), rgba(255,238,180,0)); }
@media (max-width: 640px) {
  .mate { --s: .98; }
}

/* 舰队名册：买了几只就列几只，一只都不藏（船边只站三只，多的在这儿看） */
.fleetrow {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end;
  padding: 12px 10px 8px; margin: 6px 0 14px;
  border: 1px dashed rgba(126, 232, 250, .26); border-radius: 14px;
  background: rgba(20, 36, 74, .35);
}
.fleetrow:empty { display: none; }
.fcell { flex: 1 1 38px; max-width: 70px; display: flex; flex-direction: column; align-items: center; }
.fcell .mate {
  position: relative; left: auto; top: auto; margin-left: 0;
  width: 26px; height: 42px; transform: scale(.95); animation: none;
}
.fname { font-size: 10px; color: var(--dim); margin-top: -2px; white-space: nowrap; letter-spacing: .2px; }
/* 全息题板：悬浮在座舱前的玻璃面板 */
.holo {
  position: relative; max-width: 840px; margin: 6px auto 0;
  padding: 18px 22px 16px; border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(28, 48, 96, .78), rgba(9, 15, 34, .88) 62%),
    radial-gradient(120% 100% at 8% 0%, rgba(126, 232, 250, .18), transparent 55%);
  border: 1px solid rgba(126, 232, 250, .42);
  box-shadow:
    0 0 0 1px rgba(126, 232, 250, .1) inset,
    0 -18px 60px rgba(61, 90, 254, .18) inset,
    0 26px 70px rgba(0, 0, 0, .72),
    0 0 46px rgba(61, 90, 254, .22);
  transform: perspective(1500px) rotateX(2.4deg);
  backdrop-filter: blur(7px) saturate(1.15);
  -webkit-backdrop-filter: blur(7px) saturate(1.15);
  overflow: hidden;
}
.holo::before {              /* 扫描线 */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(150, 210, 255, .05) 0 1px, transparent 1px 4px);
}
.holo::after {               /* 顶面高光 */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent);
}
.holo > * { position: relative; z-index: 1; }
.holo-top {
  display: flex; align-items: center; gap: 10px; margin: -4px 0 12px;
  font-size: 12px; letter-spacing: 1.2px; color: #8fd8ff; text-transform: uppercase;
}
.holo-top .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4fe3ff;
  box-shadow: 0 0 10px #4fe3ff; animation: dotblink 1.6s infinite;
}
@keyframes dotblink { 50% { opacity: .25; } }
.holo-top .spacer { flex: 1; }
.holo-top .qidx { color: var(--dim); letter-spacing: .5px; }
/* 书上原题号（2026-11-15 用户要求）：孩子要能拿着这个号在书上找题。
   有些题整道题就是一条划线，只写「第 3/10 题」永远对不上书。 */
.holo-top .qnochip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; margin-right: 8px; border-radius: 999px;
  background: rgba(255, 214, 107, .14); border: 1px solid rgba(255, 214, 107, .45);
  color: #ffd66b; font-size: 12px; font-weight: 700; letter-spacing: .3px; white-space: nowrap;
}
@media (max-width: 560px) { .holo-top .qnochip { font-size: 11px; padding: 2px 7px; } }
/* 图形题没有切好题图时的指路条：告诉孩子「这题要看图，图在整页原图上」 */
.qfigtip {
  margin: -4px 0 14px; padding: 9px 13px; border-radius: 10px;
  background: rgba(255, 214, 107, .10); border: 1px dashed rgba(255, 214, 107, .42);
  color: #ffe6a8; font-size: 13px; line-height: 1.6;
}
.holo .qtext { font-size: 21px; line-height: 1.75; color: #f2f7ff; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
/* 听力题：录音按钮（英语书专用，题库带 audio 字段才出现） */
.qaudio { display: flex; align-items: center; gap: 10px; margin: -6px 0 12px; }
.qaudio small { color: var(--dim); font-size: 12px; }
.holo .opt {
  background: rgba(12, 22, 48, .78); border: 1px solid rgba(120, 170, 255, .34);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .04) inset;
  transform: translateZ(0); transition: transform .12s, border-color .12s, box-shadow .12s;
}
.holo .opt:hover { transform: translateX(4px); border-color: #7ee8fa; box-shadow: 0 0 18px rgba(126, 232, 250, .3); }
.holo .opt.right { background: rgba(76, 175, 80, .28); border-color: #6dff8a; box-shadow: 0 0 22px rgba(76, 220, 120, .45); }
.holo .opt.wrong { background: rgba(255, 82, 48, .22); border-color: #ff8a5c; }
.holo .fillrow input {
  background: rgba(6, 12, 28, .85); border: 1px solid rgba(120, 170, 255, .4);
  box-shadow: 0 0 0 1px rgba(126, 232, 250, .08) inset;
}
.holo .feedback { min-height: 26px; }

/* 底部飞行状态条 */
.flightbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; padding: 8px 18px;
  background: rgba(8, 14, 32, .78); border: 1px solid rgba(120, 170, 255, .3);
  border-radius: 999px; font-size: 12px; color: #9fb6e8; z-index: 4;
  backdrop-filter: blur(6px); box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
}
.flightbar b { color: var(--gold); }
.flightbar .fbar {
  width: 160px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden;
}
.flightbar .fbar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, #7ee8fa, #ffc94d); transition: width .7s ease;
  box-shadow: 0 0 10px rgba(255, 201, 77, .8);
}
@media (max-width: 760px) {
  .shipbig { width: 150px; bottom: -26px; }
  .holo { padding: 14px 14px 12px; }
  .holo .qtext { font-size: 18px; }
  .flightbar { font-size: 11px; padding: 6px 12px; }
  .flightbar .fbar { width: 90px; }
}

/* ================= 战场：可开火的答案舱 ================= */
.battlefield { position: relative; margin: 4px 0 12px; padding-bottom: 34px; }
.bf-tip {
  font-size: 12px; color: #8fd8ff; text-align: center; margin-bottom: 12px;
  letter-spacing: .5px; opacity: .9;
}
.pods { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; perspective: 900px; }
.pod {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 78px; padding: 15px 18px 15px 14px; border-radius: 40px 14px 14px 40px;
  background: linear-gradient(155deg, rgba(46, 78, 140, .96), rgba(10, 18, 40, .98) 70%);
  border: 1px solid rgba(126, 232, 250, .4);
  color: #eef4ff; font-size: 17px; cursor: crosshair;
  box-shadow:
    0 16px 26px rgba(0, 0, 0, .6),
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 -12px 26px rgba(61, 90, 254, .22) inset;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  animation: podfloat 4.5s ease-in-out infinite;
}
.pod:nth-child(1) { animation-delay: 0s; }
.pod:nth-child(2) { animation-delay: .5s; }
.pod:nth-child(3) { animation-delay: 1s; }
.pod:nth-child(4) { animation-delay: 1.5s; }
@keyframes podfloat {
  50% { transform: translateY(-7px); }
}
.pod::before {              /* 舱体左端的光圈 */
  content: ""; position: absolute; left: -3px; top: 50%; width: 14px; height: 60%;
  margin-top: -30%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 232, 250, .85), transparent 70%);
  filter: blur(2px);
}
.pod:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: #7ee8fa;
  box-shadow: 0 22px 34px rgba(0, 0, 0, .65), 0 0 26px rgba(126, 232, 250, .45);
}
.pod .pod-key {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: radial-gradient(circle at 35% 30%, #fff3c4, #ffc94d 55%, #d99512);
  color: #3a2a00; box-shadow: 0 0 16px rgba(255, 201, 77, .55);
}
.pod .pod-txt { line-height: 1.5; }
.pod.right {
  background: linear-gradient(155deg, rgba(60, 150, 90, .9), rgba(8, 32, 20, .98));
  border-color: #6dff8a; box-shadow: 0 0 30px rgba(76, 220, 120, .55), 0 16px 26px rgba(0, 0, 0, .6);
}
.pod.wrong {
  background: linear-gradient(155deg, rgba(150, 60, 50, .9), rgba(40, 10, 10, .98));
  border-color: #ff8a5c;
  animation: podhit .34s ease-out;
}
@keyframes podhit {
  0% { transform: scale(1); } 35% { transform: scale(1.1) rotate(-2deg); } 100% { transform: scale(1); }
}
.pod.locked { opacity: .34; filter: grayscale(.85); pointer-events: none; }
.pod.fired { animation: podfire .3s ease-out; }
@keyframes podfire { 50% { transform: scale(1.06); filter: brightness(1.7); } }

/* 准星：跟着飞船左右移动 */
.reticle {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 44px; height: 22px; pointer-events: none; opacity: .9;
  transition: left .18s ease-out;
}
.reticle::before, .reticle::after {
  content: ""; position: absolute; top: 0; width: 14px; height: 14px;
  border-top: 2px solid rgba(126, 232, 250, .85);
}
.reticle::before { left: 0; border-left: 2px solid rgba(126, 232, 250, .85); border-radius: 6px 0 0 0; }
.reticle::after { right: 0; border-right: 2px solid rgba(126, 232, 250, .85); border-radius: 0 6px 0 0; }
.reticle i {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 10px; margin-left: -1px;
  background: linear-gradient(180deg, rgba(126, 232, 250, .2), rgba(126, 232, 250, .9));
}

@media (max-width: 640px) {
  .pods { grid-template-columns: 1fr; gap: 12px; }
  .pod { min-height: 66px; font-size: 16px; }
}

/* ================= 舰载精灵（领航员） ================= */
.sprite {
  position: fixed; right: 26px; top: 120px; width: 64px; height: 64px; z-index: 6;
  animation: spbob 3s ease-in-out infinite; cursor: pointer;
}
@keyframes spbob { 50% { transform: translateY(-10px) rotate(3deg); } }
.sprite.sp-talk { animation: sptalk .4s ease-in-out 3; }
@keyframes sptalk { 50% { transform: scale(1.15); } }
.sp-body {
  position: absolute; inset: 8px; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 34% 28%, #d6fbff, #56c8f5 45%, #2266c9 85%);
  box-shadow: 0 0 24px rgba(86, 200, 245, .65), inset -6px -8px 14px rgba(0, 0, 30, .4);
}
.sp-body::before {
  content: ""; position: absolute; left: 10px; top: 7px; width: 18px; height: 10px;
  border-radius: 50%; background: rgba(255, 255, 255, .8); filter: blur(1px);
}
.sp-eye {
  position: absolute; top: 20px; width: 7px; height: 11px; border-radius: 50%;
  background: #0a1c3d; animation: spblink 4s infinite;
}
.sp-eye.l { left: 17px; } .sp-eye.r { right: 17px; }
@keyframes spblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.sp-mouth {
  position: absolute; left: 50%; bottom: 12px; width: 14px; height: 7px; margin-left: -7px;
  border-radius: 0 0 12px 12px; background: #0a1c3d; opacity: .8;
}
.sp-wing {
  position: absolute; top: 16px; width: 20px; height: 30px;
  background: linear-gradient(180deg, rgba(200, 240, 255, .85), rgba(120, 190, 255, .25));
  border-radius: 60% 40% 50% 50%/60% 60% 40% 40%;
  animation: spwing .5s ease-in-out infinite alternate;
}
.sp-wing.l { left: -13px; transform-origin: right center; }
.sp-wing.r { right: -13px; transform-origin: left center; transform: scaleX(-1); }
@keyframes spwing { from { transform: rotate(-8deg) scaleX(.9); } to { transform: rotate(8deg) scaleX(1.08); } }
.sp-wing.r { animation-name: spwingr; }
@keyframes spwingr { from { transform: scaleX(-1) rotate(-8deg) scaleX(.9); } to { transform: scaleX(-1) rotate(8deg) scaleX(1.08); } }
.sp-bubble {
  position: absolute; right: 70px; top: -6px; min-width: 150px; max-width: 250px;
  background: rgba(14, 26, 56, .95); border: 1px solid rgba(126, 232, 250, .5);
  border-radius: 12px; padding: 9px 12px; font-size: 13px; color: #dff3ff; line-height: 1.55;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 20px rgba(126, 232, 250, .2);
  opacity: 0; transform: translateX(14px) scale(.9); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.sp-bubble::after {
  content: ""; position: absolute; right: -6px; top: 26px; width: 10px; height: 10px;
  background: rgba(14, 26, 56, .95); border-right: 1px solid rgba(126, 232, 250, .5);
  border-top: 1px solid rgba(126, 232, 250, .5); transform: rotate(45deg);
}
.sp-bubble.show { opacity: 1; transform: translateX(0) scale(1); }

/* 战斗力 HUD */
.hud.power .hudtxt b { color: #ffd166; }
.hud.power .ico { filter: drop-shadow(0 0 8px rgba(255, 209, 102, .9)); }
.needpow {
  font-size: 12px; color: #ffb59a; background: rgba(255, 112, 67, .12);
  border: 1px solid rgba(255, 112, 67, .45); border-radius: 999px; padding: 2px 10px; font-weight: 400;
}

/* 飞行器形态：越高级越大越有型 */
.shipbig.t1 { width: 292px; bottom: -44px; filter: hue-rotate(28deg) saturate(1.15) drop-shadow(0 26px 44px rgba(0, 0, 0, .75)); }
.shipbig.t2 { width: 344px; bottom: -54px; filter: hue-rotate(-18deg) saturate(1.3) brightness(1.06) drop-shadow(0 28px 48px rgba(0, 0, 0, .8)); }
.shipbig.t3 { width: 404px; bottom: -66px; filter: hue-rotate(48deg) saturate(1.5) brightness(1.12) drop-shadow(0 30px 56px rgba(0, 0, 0, .85)); }
/* 手机上三档飞行器都得收窄：上面那条 .shipbig{width:150px} 的特异性打不过 .shipbig.t3，
   结果手机里一直顶着 404px 的大船，跟班只能挤出屏幕外。 */
@media (max-width: 760px) {
  .shipbig.t1 { width: 172px; bottom: -30px; }
  .shipbig.t2 { width: 194px; bottom: -34px; }
  .shipbig.t3 { width: 214px; bottom: -38px; }
}
.shipcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 6px; }

/* ================= 门户：版本 → 年级 → 科目 ================= */
.dirbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.dirlabel {
  font-size: 13px; color: var(--dim); letter-spacing: 1px;
  border-left: 3px solid var(--gold); padding-left: 9px;
}
.verblock {
  margin-bottom: 26px; padding: 16px 18px 8px;
  background: linear-gradient(180deg, rgba(18, 27, 60, .72), rgba(10, 15, 34, .5));
  border: 1px solid #26305f; border-radius: 16px;
}
.verhead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.verhead h2 { font-size: 19px; letter-spacing: 1px; }
.verhead h2::before { content: "📚 "; }
.verhead .vmeta { font-size: 12px; color: var(--dim); }
.graderow {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px;
  padding: 10px 0; border-top: 1px dashed #232c56; align-items: stretch;
}
.graderow:first-of-type { border-top: none; }
.gradelabel { text-align: left; align-self: center; }
.gradelabel b { font-size: 15px; display: block; }
.gradelabel small { color: var(--dim); font-size: 11px; }
/* minmax(0,1fr)：三列严格等宽，否则内容长的数学卡会把自己那列撑开，三张卡对不齐 */
.subgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px; min-width: 0;
}
.subcard {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 11px 13px; border-radius: 12px; font: inherit; color: var(--text);
  background: rgba(13, 19, 48, .8); border: 1px solid #2b366a;
  min-width: 0; min-height: 62px;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.subcard.live { cursor: pointer; border-color: #3a4a8f; }
.subcard.live:hover {
  transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 20px rgba(255, 201, 77, .18);
}
.subcard.soon { opacity: .54; }
.subcard .sc-ico { font-size: 20px; flex: none; }
.subcard .sc-main { flex: 1; min-width: 0; }
.subcard .sc-main b { font-size: 14px; display: block; }
.subcard .sc-main small {
  display: block; color: var(--dim); font-size: 11px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.subcard .sc-price { color: var(--gold); font-weight: 800; font-size: 14px; flex: none; }
.subcard .sc-tag {
  font-size: 10px; color: var(--dim); border: 1px solid #33407a;
  border-radius: 999px; padding: 1px 7px; flex: none;
}
.uploadcta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; margin-top: 8px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(255, 201, 77, .12), rgba(255, 201, 77, .02));
  border: 1px dashed rgba(255, 201, 77, .45); border-radius: 14px;
}
.uploadcta h3 { font-size: 15px; }
@media (max-width: 720px) {
  .graderow { grid-template-columns: 1fr; }
  .subgrid { grid-template-columns: 1fr; }
  .gradelabel b { font-size: 14px; }
}

/* ================= 主页首屏（v20261028b 新增） ================= */
/* 站点顶栏：透明条 + 一条细线。前面 100 行那条是「游戏内页面板」，只给 game.html 用，
   这里用 .sitebar 显式盖掉背景/边框，免得首页顶上也扣一个大方框。 */
.topbar.sitebar {
  background: none; border: 0; border-radius: 0;
  border-bottom: 1px solid rgba(58, 70, 121, .38);
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 6px 0 18px; border-bottom: 1px solid rgba(58,70,121,.45);
}
.topbar .brand { display: flex; align-items: center; gap: 13px; }
.topbar .mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #ffe6a8 0 38%, #ffc94d 55%, #b06f08 100%);
  box-shadow: 0 0 22px rgba(255,201,77,.6), 0 0 52px rgba(255,201,77,.22);
  position: relative; flex: none;
}
.topbar .mark::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  border: 1.5px solid rgba(126,232,250,.5); transform: rotate(-22deg) scaleY(.42);
}
.topbar h1.logo {
  font-size: 30px; letter-spacing: 5px; font-weight: 800; line-height: 1;
  text-shadow: 0 0 26px rgba(255,201,77,.22);
}
.topbar h1.logo .accent { text-shadow: 0 0 24px rgba(255,201,77,.55); }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a {
  color: var(--dim); text-decoration: none; font-size: 14px;
  padding: 4px 0; position: relative; transition: .15s;
  /* 窄窗口时 flex 会把每项压瘦、中文标签被折成两行（「课文视/听」）——
     2026-11-21 修：标签永不折行、永不压缩，放不下就走 900px 的整项换行规则 */
  white-space: nowrap; flex: 0 0 auto;
}
/* 当前页 / 悬停的线：用伪元素贴住字底，别用 border-bottom ——
   border 画在盒底，行高余量会让线浮下去 10px，看着像一条悬空的短横。 */
.topnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px;
  height: 2px; border-radius: 1px; background: transparent;
  transition: background .15s, opacity .15s;
}
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { background: var(--gold); opacity: .55; }

/* 首屏 */
.hero {
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 34px; align-items: center;
  padding: 44px 0 30px;
}
.hbadge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #ffd98a; letter-spacing: .3px;
  background: rgba(255,201,77,.09); border: 1px solid rgba(255,201,77,.32);
  padding: 6px 14px; border-radius: 999px;
}
.hbadge i {
  width: 6px; height: 6px; border-radius: 50%; background: #4caf50;
  box-shadow: 0 0 10px #4caf50; animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot { 50% { opacity: .35; } }
.htitle {
  font-size: clamp(30px, 4.1vw, 44px); line-height: 1.24; letter-spacing: 1px;
  margin: 18px 0 16px; font-weight: 800;
}
.htitle em {
  font-style: normal;
  background: linear-gradient(100deg, #ffc94d, #ff9d4d 45%, #7ee8fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 广告语 */
.slogan {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(19px, 2.6vw, 27px); font-weight: 900;
  letter-spacing: 5px; margin: 2px 0 18px; line-height: 1.3;
}
.slogan > span {
  background: linear-gradient(96deg, #fff2cc 8%, #ffc94d 52%, #ffab3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255,201,77,.38));
}
.slogan::before {
  content: ""; flex: none; width: 30px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,201,77,0), #ffc94d);
  box-shadow: 0 0 12px rgba(255,201,77,.7);
}
.hdesc { color: var(--dim); font-size: 14.5px; line-height: 1.85; max-width: 470px; }
.hbtns { display: flex; gap: 12px; margin: 24px 0 26px; flex-wrap: wrap; }
.btn.big { padding: 13px 26px; font-size: 15px; border-radius: 12px; }
.btn.gold.big { box-shadow: 0 8px 26px rgba(255,201,77,.28); }
.btn.gold.big:hover { transform: translateY(-2px); }
.hstats { display: flex; gap: 30px; flex-wrap: wrap; }
.hstats > div { display: flex; flex-direction: column; gap: 3px; }
.hstats b { font-size: 21px; color: var(--gold); letter-spacing: .5px; }
.hstats span { font-size: 11.5px; color: var(--dim); }

.hero-r { display: flex; justify-content: center; }
.orb { width: 100%; max-width: 360px; height: auto; filter: drop-shadow(0 20px 50px rgba(61,90,254,.25)); }
.orb g.ship {
  transform-box: view-box; transform-origin: 0 0;
  animation: shipBob 3.6s ease-in-out infinite;
}
@keyframes shipBob {
  0%, 100% { transform: translate(302px, 126px) rotate(28deg) scale(1.35); }
  50% { transform: translate(294px, 114px) rotate(23deg) scale(1.35); }
}

/* 四步走 */
.how {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 6px 0 34px;
}
.step {
  background: rgba(20,27,61,.62); border: 1px solid #2c3a7a; border-radius: 14px;
  padding: 16px 16px 18px; position: relative; overflow: hidden;
}
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; font-size: 12px;
  background: rgba(255,201,77,.16); color: var(--gold);
  border: 1px solid rgba(255,201,77,.45); margin-bottom: 10px;
}
.step h4 { font-size: 14px; margin-bottom: 7px; letter-spacing: .3px; }
.step p { font-size: 12.2px; color: var(--dim); line-height: 1.7; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 30px; }
  .hero-r { order: -1; }
  .orb { max-width: 230px; }
  .how { grid-template-columns: repeat(2, 1fr); }
  .hstats { gap: 20px; }
  .topnav { gap: 14px; }
}

/* ================= 现在就能玩（v20261028c） ================= */
.quick { margin: 6px 0 30px; }
.qhead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 13px; flex-wrap: wrap; }
.qhead h3 { font-size: 16px; letter-spacing: 1px; display: flex; align-items: center; gap: 9px; }
.qhead h3::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4caf50;
  box-shadow: 0 0 12px #4caf50; animation: pulseDot 1.8s infinite;
}
.qhead span { font-size: 12px; color: var(--dim); }
.qgrid { display: grid; gap: 12px; }
.qitem {
  display: flex; align-items: center; gap: 16px;
  padding: 15px 20px; border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(100deg, rgba(255,201,77,.13), rgba(61,90,254,.09));
  border: 1px solid rgba(255,201,77,.36);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.qitem:hover {
  transform: translateY(-2px); border-color: var(--gold);
  box-shadow: 0 12px 34px rgba(255,201,77,.16);
}
.qico {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; font-size: 24px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.09);
}
.qmain { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.qmain b { font-size: 15px; letter-spacing: .3px; }
.qmain small { font-size: 12.5px; color: var(--dim); }
.qplay {
  flex: none; font-size: 13.5px; font-weight: 800; color: #3a2a00;
  background: linear-gradient(180deg, #ffd977, #ffc94d);
  padding: 10px 20px; border-radius: 11px; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255,201,77,.28);
}
.dirhint { font-size: 11.5px; color: #6b78ab; }
.subcard.soon { cursor: pointer; }
.subcard.soon:hover { border-color: #4a5a9e; background: rgba(30,39,79,.9); }

/* 轻提示 */
.toastbox {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px);
  width: min(440px, calc(100vw - 32px)); opacity: 0;
  background: rgba(18,25,56,.97); border: 1px solid rgba(255,201,77,.45);
  border-radius: 14px; padding: 16px 18px; z-index: 90;
  box-shadow: 0 20px 56px rgba(0,0,0,.55); transition: .22s;
  backdrop-filter: blur(8px);
}
.toastbox.on { opacity: 1; transform: translate(-50%, 0); }
.toastbox b { display: block; font-size: 14px; margin-bottom: 7px; color: #ffd98a; }
.toastbox p { font-size: 12.5px; color: var(--dim); line-height: 1.75; }
.toastbox a {
  display: inline-block; margin-top: 11px; padding: 8px 16px;
  font-size: 13px; text-decoration: none; border-radius: 9px;
}

/* 教材选择页 */
.libhead { padding: 34px 0 22px; }
.libhead h2 { font-size: clamp(24px, 3vw, 31px); letter-spacing: 1.5px; margin-bottom: 10px; }
.libhead p { font-size: 13.5px; color: var(--dim); line-height: 1.8; }
.morelib { margin: -12px 0 30px; }
.morelib a {
  font-size: 13px; color: var(--gold); text-decoration: none;
  border-bottom: 1px dashed rgba(255,201,77,.45); padding-bottom: 2px;
}
.morelib a:hover { color: #fff2cc; }
.topbar .brand { text-decoration: none; color: inherit; }

/* ================= 账号 / 会员 / 主题（v20261028c） ================= */
/* 场景配色 */
html[data-theme="nebula"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #16307a 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #2b1a7a 0%, transparent 55%),
    #070f2e;
}
html[data-theme="ember"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #5a1f10 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #3a0f1e 0%, transparent 55%),
    #190b10;
}
html[data-theme="aurora"] body {
  background:
    radial-gradient(1200px 600px at 80% -10%, #0b4a42 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 110%, #0a2d52 0%, transparent 55%),
    #04161a;
}

/* 顶栏用户区 */
.userbox { display: flex; align-items: center; gap: 8px; }
/* 「退出」拉成和头像卡片一样高：一高一矮看着像没对齐 */
.userbox .ubtn.plain { align-self: stretch; display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.ubtn {
  font: inherit; font-size: 12.5px; padding: 7px 13px; border-radius: 9px;
  border: 1px solid #3a4679; background: transparent; color: var(--text);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.ubtn.login { border-color: rgba(255,201,77,.5); background: rgba(255,201,77,.12); color: #ffd98a; font-weight: 700; }
.ubtn.vip { color: #ffd98a; border-color: rgba(255,201,77,.32); }
.ubtn.me { display: flex; align-items: center; gap: 9px; padding: 5px 13px 5px 6px; border-radius: 999px; }
.ubtn.me .ava {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #ffd977, #ff9d4d); color: #3a2a00;
  font-weight: 800; font-size: 13px; font-style: normal;
}
.umeta { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.umeta b { font-size: 12.5px; }
.umeta small { font-size: 10.5px; color: #8d99c9; }
.umeta small.on { color: #ffc94d; }
.ubtn.plain { color: #8d99c9; border-color: transparent; padding-left: 4px; padding-right: 4px; }

/* 登录弹窗 */
.authmask {
  position: fixed; inset: 0; background: rgba(4,7,20,.74); z-index: 200;
  display: grid; place-items: center; opacity: 0; transition: .18s;
  backdrop-filter: blur(6px);
}
.authmask.on { opacity: 1; }
.authcard {
  width: min(400px, calc(100vw - 32px)); background: #131a3e;
  border: 1px solid #2c3a7a; border-radius: 18px; padding: 26px 24px;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: translateY(10px); transition: .18s;
}
.authmask.on .authcard { transform: none; }
.authcard.shake { animation: shakeX .4s; }
@keyframes shakeX { 25% { transform: translateX(-7px); } 50% { transform: translateX(7px); } 75% { transform: translateX(-4px); } }
.authcard h3 { font-size: 19px; margin-bottom: 6px; }
.asub { font-size: 12.5px; color: var(--dim); margin-bottom: 18px; }
/* 登录 / 注册两个页签：同一个弹层，不另开一个窗口 */
.atabs { display: flex; gap: 8px; margin: 2px 0 18px; }
.atabs button {
  flex: 1 1 0; padding: 9px 0; border-radius: 10px; cursor: pointer;
  border: 1px solid #2c3a7a; background: #0f1533; color: #9aa6d4;
  font-size: 13px; font-family: inherit; font-weight: 700;
}
.atabs button.on { background: #1b2452; color: #ffd98a; border-color: #47579c; }
.aerr { font-size: 12px; color: #ff8b8b; min-height: 16px; margin: -2px 0 8px; line-height: 1.5; }

/* 登录弹层在浅色主题（html.paper）下仍然是深色卡片。纸质主题有一条全局
   `html.paper input{background:...}` 会把输入框刷成白底，连标题也继承成深色，
   结果就是"深底深字看不见、白框白字打不清"。这里把颜色写死，不靠变量。 */
html.paper .authcard,
html.paper .authcard h3 { color: #eef2ff; }
html.paper .authcard .asub,
html.paper .authcard label > span:first-child { color: #93a0cd; }
html.paper .authcard input {
  background: #0c1230 !important;
  color: #eef2ff !important;
  border: 1px solid #2c3a7a !important;
}
html.paper .authcard input:focus { border-color: #ffc94d !important; }
html.paper .authcard input::placeholder { color: #6f7ba3 !important; }
html.paper .authcard .anote { color: #7c88b8; }
html.paper .authcard .atabs button { color: #9aa6d4; background: #0f1533; border-color: #2c3a7a; }
html.paper .authcard .atabs button.on { background: #1b2452; color: #ffd98a; border-color: #47579c; }
.authcard label { display: block; margin-bottom: 13px; }
.authcard label > span:first-child { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.authcard input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid #2c3a7a;
  background: #0c1230; color: var(--text); font-size: 14px; font-family: inherit;
}
.authcard input:focus { outline: none; border-color: var(--blue); }
.coderow { display: flex; gap: 8px; }
.coderow input { flex: 1; min-width: 0; }
.coderow .send {
  flex: none; padding: 0 14px; border-radius: 10px; border: 1px solid #2c3a7a;
  background: #1a234c; color: #cfd8ff; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.coderow .send:disabled { opacity: .6; }
.anote { font-size: 11.5px; color: #7c88b8; line-height: 1.7; margin: 4px 0 16px; }
.anote b { color: #ffd98a; }
.abtn {
  width: 100%; padding: 13px; border-radius: 11px; border: none;
  background: linear-gradient(180deg, #ffd977, #ffc94d); color: #3a2a00;
  font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.ax {
  position: absolute; right: 12px; top: 10px; width: 30px; height: 30px;
  border-radius: 8px; border: none; background: transparent;
  color: #8d99c9; font-size: 20px; cursor: pointer; line-height: 1;
}

/* 会员套餐 */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 18px; }
.plan {
  position: relative; border-radius: 18px; padding: 22px 20px; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(28,36,78,.9), rgba(18,24,52,.9));
  border: 1px solid #2c3a7a;
}
.plan.hot { border-color: rgba(255,201,77,.55); box-shadow: 0 14px 40px rgba(255,201,77,.12); }
.ptag {
  position: absolute; top: -11px; right: 16px; background: var(--gold); color: #3a2a00;
  font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}
.plan h4 { font-size: 15px; margin-bottom: 12px; }
.pprice { display: flex; align-items: baseline; gap: 5px; margin-bottom: 4px; }
.pprice b { font-size: 34px; color: var(--gold); letter-spacing: -1px; }
.pprice small { font-size: 12px; color: var(--dim); }
.psave { font-size: 11.5px; color: #8fe3a0; margin-bottom: 4px; }
.plan ul { list-style: none; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 12.8px; color: #c3cdf5; padding-left: 19px; position: relative; line-height: 1.5; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #4caf50; font-weight: 800; }
.plan .btn { margin-top: auto; width: 100%; text-align: center; }

/* 充值 */
.sec { margin: 34px 0 6px; }
.sectitle { font-size: 17px; letter-spacing: 1px; margin-bottom: 7px; }
.secsub { font-size: 12.5px; color: var(--dim); margin-bottom: 16px; line-height: 1.7; }
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.coinbox {
  position: relative; padding: 20px; border-radius: 16px; border: 1px solid #2c3a7a;
  background: rgba(20,27,61,.8); color: var(--text); cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: .15s;
}
.coinbox:hover { border-color: var(--gold); transform: translateY(-3px); }
.coinbox b { font-size: 24px; color: var(--gold); }
.coinbox small { font-size: 11.5px; color: var(--dim); }
.coinbox em { font-style: normal; margin-top: 6px; font-size: 13px; color: #cfd8ff; }
.coinbox i {
  position: absolute; top: 10px; right: 10px; font-style: normal; font-size: 10.5px;
  background: rgba(76,175,80,.18); color: #8fe3a0; padding: 2px 7px; border-radius: 999px;
}

/* 换场景 */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.thcard {
  border: 1px solid #2c3a7a; background: rgba(20,27,61,.8); border-radius: 14px;
  padding: 10px; cursor: pointer; font-family: inherit; color: var(--dim);
  display: flex; flex-direction: column; gap: 9px; align-items: center; transition: .15s;
}
.thcard.on { border-color: var(--gold); color: #ffd98a; }
.thprev {
  width: 100%; height: 56px; border-radius: 10px;
  background:
    radial-gradient(70% 70% at 30% 30%, var(--ac) 0 12%, transparent 45%),
    linear-gradient(150deg, var(--c2), var(--c1));
  border: 1px solid rgba(255,255,255,.07);
}
.thcard b { font-size: 12.5px; }

.mystate { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.mst { font-size: 12px; padding: 6px 13px; border-radius: 999px; border: 1px solid #2c3a7a; color: var(--dim); }
.mst.on { color: #ffd98a; border-color: rgba(255,201,77,.5); background: rgba(255,201,77,.1); }
.mst.coin { color: #ffd98a; border-color: rgba(255,201,77,.28); }
.center { text-align: center; margin: 4px 0 8px; }
.topnav a.cur { color: var(--text); }
.topnav a.cur::after { background: var(--gold); opacity: 1; }

@media (max-width: 900px) {
  .plans, .coins { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .topnav { flex-wrap: wrap; gap: 12px 16px; }
  .topbar { align-items: flex-start; }
}

/* ================= 周边商店 ================= */
.shopgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard {
  background: rgba(20,27,61,.82); border: 1px solid #2c3a7a; border-radius: 16px;
  padding: 14px; display: flex; flex-direction: column; transition: .15s;
}
.pcard:hover { border-color: #4a5a9e; transform: translateY(-3px); }
.pimg {
  height: 132px; border-radius: 12px; display: grid; place-items: center;
  position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(60% 60% at 30% 25%, var(--c1), var(--c2));
}
.pimg > span { font-size: 48px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
.ptag2 {
  position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 10.5px;
  background: rgba(0,0,0,.42); color: #ffd98a; padding: 3px 8px;
  border-radius: 999px; border: 1px solid rgba(255,201,77,.35);
}
.pcard h4 { font-size: 13.5px; margin: 11px 0 5px; line-height: 1.4; }
.pdesc { font-size: 11.5px; color: var(--dim); line-height: 1.65; margin-bottom: 12px; }
.prow { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.prow b { color: var(--gold); font-size: 16px; }
.addbtn {
  border: 1px solid rgba(255,201,77,.45); background: rgba(255,201,77,.13);
  color: #ffd98a; font-size: 12.5px; padding: 7px 14px; border-radius: 9px;
  cursor: pointer; font-family: inherit; transition: .15s;
}
.addbtn:hover { background: rgba(255,201,77,.24); }

.cartbar {
  position: fixed; right: 24px; bottom: 24px; z-index: 120;
  display: flex; align-items: center; gap: 9px; padding: 13px 20px;
  border-radius: 999px; border: 1px solid rgba(255,201,77,.45);
  background: rgba(18,25,56,.95); color: #ffd98a; font-family: inherit;
  cursor: pointer; box-shadow: 0 14px 40px rgba(0,0,0,.5);
  backdrop-filter: blur(10px); transition: .18s;
}
.cartbar.has { background: linear-gradient(180deg, #ffd977, #ffc94d); color: #3a2a00; border-color: #ffc94d; }
.cartbar .cnum { font-weight: 800; }
.cartbar .ctotal { font-size: 13px; font-weight: 800; }

.cartdrawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: #101736; border-left: 1px solid #2c3a7a; z-index: 130;
  transform: translateX(102%); transition: .25s;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.cartdrawer.on { transform: none; }
.chead { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; border-bottom: 1px solid #232c5c; }
.chead h3 { font-size: 16px; }
.cclose { width: 30px; height: 30px; border-radius: 8px; border: none; background: #1a234c; color: #cfd8ff; font-size: 18px; cursor: pointer; line-height: 1; }
.cbody { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cempty { font-size: 13px; color: var(--dim); line-height: 1.9; text-align: center; margin-top: 40px; }
.crow { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #1e2650; }
.cico2 {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  font-size: 20px; flex: none; background: linear-gradient(150deg, var(--c1), var(--c2));
}
.cmeta { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmeta b { font-size: 12.8px; }
.cmeta small { font-size: 11.5px; color: var(--gold); }
.cstep { display: flex; align-items: center; gap: 6px; }
.cstep button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid #2c3a7a; background: #18204a; color: #cfd8ff; cursor: pointer; font-size: 13px; line-height: 1; }
.cstep em { font-style: normal; font-size: 12.5px; min-width: 16px; text-align: center; }
.cfoot { padding: 16px 20px 22px; border-top: 1px solid #232c5c; }
.sumrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; font-size: 13px; color: var(--dim); }
.sumrow b { font-size: 22px; color: var(--gold); }
.pay {
  width: 100%; padding: 13px; border-radius: 11px; border: none;
  background: linear-gradient(180deg, #ffd977, #ffc94d); color: #3a2a00;
  font-weight: 800; font-size: 15px; cursor: pointer; font-family: inherit;
}
.pay:disabled { opacity: .4; cursor: not-allowed; }
.cnote { text-align: center; font-size: 11px; color: #6b78ab; margin-top: 9px; }

@media (max-width: 900px) { .shopgrid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 结算页 · 学习报告 ---------- */
.qcard.result { max-width: 780px; }
.rreport {
  margin: 16px 0 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(126, 232, 250, .18);
  text-align: left;
}
.rr-head { font-size: 13px; font-weight: 800; color: #9fd6ff; letter-spacing: .04em; margin-bottom: 11px; }
.rr-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rr-dot {
  width: 27px; height: 27px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.rr-dot.good { color: #06251a; background: linear-gradient(180deg, #7cf0b8, #3fd08e); }
.rr-dot.bad { color: #2c0a06; background: linear-gradient(180deg, #ff9c86, #ff6b52); }
.rr-dot.nd { color: #7c86a8; background: rgba(255, 255, 255, .06); border: 1px dashed rgba(255, 255, 255, .2); }
.rr-stat { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12.5px; color: var(--dim); }
.rr-stat b { color: #eaf2ff; font-size: 14px; margin-left: 2px; }
.rr-stat i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; }
.rr-stat i.g { background: #3fd08e; }
.rr-stat i.y { background: #ffd166; }
.rr-stat i.r { background: #ff6b52; }
.rr-wrong { margin-top: 13px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 11px; }
.rr-wt { font-size: 12.5px; font-weight: 800; color: #ffb9a4; margin-bottom: 9px; }
.rr-item {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 120, 96, .07);
  border-left: 3px solid rgba(255, 120, 96, .5);
  margin-bottom: 8px;
}
.rr-q {
  font-size: 12.8px; line-height: 1.62; color: #dbe5f6; margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rr-q b { color: #ffc94d; margin-right: 6px; }
.rr-line { display: flex; gap: 8px; font-size: 12.4px; line-height: 1.6; align-items: baseline; }
.rr-k { color: #7d89ad; flex: none; min-width: 52px; }
.rr-ans { color: #7ef0bd; font-weight: 700; }
.rr-pick { color: #ff9c86; text-decoration: line-through; text-decoration-color: rgba(255, 120, 96, .5); }
.rr-why {
  margin-top: 7px; font-size: 12.4px; line-height: 1.7; color: #c3d0e6;
  padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .04);
}
.rr-advice { margin-top: 10px; font-size: 12.5px; color: #ffd88a; }

/* ---------- 错题集 ---------- */
.wbhead { margin: 26px 0 8px; }
.wbhead h2 {
  font-size: 34px; font-weight: 900; letter-spacing: -.01em; margin: 12px 0 10px;
  background: linear-gradient(180deg, #fff, #bcd0f0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wbsub { color: var(--dim); font-size: 13.5px; line-height: 1.75; max-width: 620px; }
.wbsub b { color: var(--gold); }
.wbstat { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.wbstat > div {
  padding: 12px 20px; border-radius: 14px; min-width: 108px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(126, 232, 250, .16);
}
.wbstat b { display: block; font-size: 26px; font-weight: 900; color: #eaf2ff; line-height: 1.2; }
.wbstat span { font-size: 12px; color: var(--dim); }
.wbstat > div:nth-child(1) b { color: #ff9c86; }
.wbstat > div:nth-child(2) b { color: #6ee7a8; }

/* 这叠错题归谁：一个账号一份，页面上要看得见 */
.wbowner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 0; font-size: 13px; color: var(--dim);
}
.wbowner b { color: var(--gold); font-weight: 800; }
.wbowner span { color: var(--dim); }
.wbowner .wbauth {
  font: inherit; font-size: 12px; cursor: pointer;
  padding: 4px 11px; border-radius: 999px;
  border: 1px solid rgba(126, 232, 250, .22);
  background: rgba(255, 255, 255, .04); color: var(--dim);
}
.wbowner .wbauth:hover { color: var(--gold); border-color: rgba(255, 201, 77, .5); }

.wbbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 26px 0 16px;
}
.wbtools { display: flex; gap: 8px; }
.wbtools .chip { cursor: pointer; font-family: inherit; }
.wbtools .chip.on { background: rgba(255, 201, 77, .16); border-color: rgba(255, 201, 77, .5); color: #ffd978; }

.wblist { display: flex; flex-direction: column; gap: 14px; }

/* 分类：维度选择条 + 分组段（段头可点着收起） */
.wbgroupbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.wbgroupbar .glabel {
  color: var(--dim); font-size: 12.5px; letter-spacing: 1px;
  border-left: 3px solid var(--gold); padding-left: 8px;
}
.wbgroupbar .chip { cursor: pointer; font-family: inherit; font-size: 13px; padding: 5px 13px; }
.wbgroupbar .chip.on { background: rgba(255, 201, 77, .16); border-color: rgba(255, 201, 77, .5); color: #ffd978; }

.wbseg { display: block; }
.wbseg + .wbseg { margin-top: 22px; }
.wbseg-h {
  width: 100%; display: flex; align-items: baseline; gap: 10px;
  padding: 9px 2px 9px; margin: 0 0 12px;
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
  cursor: pointer; font-family: inherit; text-align: left;
}
.wbseg-h:hover .wbseg-x { color: var(--gold); }
.wbseg-n { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.wbseg-c { font-size: 12px; color: var(--dim); }
.wbseg-x { margin-left: auto; font-size: 12px; color: var(--dim); white-space: nowrap; }
.wbseg-b { display: flex; flex-direction: column; gap: 14px; }

.wb-card {
  position: relative;
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .028));
  border: 1px solid rgba(255, 255, 255, .09);
  border-left: 3px solid rgba(255, 120, 96, .55);
  transition: border-color .2s, background .2s, transform .2s;
}
.wb-card.done { border-left-color: rgba(110, 231, 168, .6); opacity: .82; }
.wb-card.ok { border-color: rgba(110, 231, 168, .5); background: rgba(60, 200, 140, .07); }
.wb-card.no { border-color: rgba(255, 120, 96, .55); animation: wbShake .4s; }
@keyframes wbShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.wb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 9px; }
.wb-where { font-size: 11.5px; color: #8ea6cc; letter-spacing: .02em; }
.wb-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-tag {
  font-size: 11px; padding: 2.5px 9px; border-radius: 999px;
  color: #9db0d0; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
}
.wb-tag.no { color: #ff9c86; border-color: rgba(255, 120, 96, .4); background: rgba(255, 120, 96, .1); }
.wb-tag.ok { color: #6ee7a8; border-color: rgba(110, 231, 168, .4); background: rgba(110, 231, 168, .1); }
.wb-tag.warn { color: #ffd166; border-color: rgba(255, 209, 102, .4); background: rgba(255, 209, 102, .1); }

.wb-q { font-size: 14px; line-height: 1.72; color: #e6eefb; margin-bottom: 10px; }
.wb-q b { color: var(--gold); margin-right: 7px; font-weight: 800; }

.wb-ans { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.wb-line { display: flex; gap: 10px; font-size: 12.8px; line-height: 1.6; align-items: baseline; }
.wb-line .k { color: #7d89ad; flex: none; min-width: 74px; }
.wb-line .v.ok { color: #7ef0bd; font-weight: 700; }
.wb-line .v.bad { color: #ff9c86; text-decoration: line-through; text-decoration-color: rgba(255, 120, 96, .45); }

.wb-why {
  font-size: 12.6px; line-height: 1.72; color: #c3d0e6;
  padding: 9px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 11px;
}

.wb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.wb-opt {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #dbe6f7; font-size: 13px; text-align: left;
  font-family: inherit; transition: all .16s;
}
.wb-opt:hover:not(:disabled) { background: rgba(126, 232, 250, .12); border-color: rgba(126, 232, 250, .45); }
.wb-opt:disabled { cursor: default; }
.wb-opt i {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-weight: 800; font-size: 12px;
  background: rgba(126, 232, 250, .18); color: #9fe3f5;
}
.wb-opt.right { background: rgba(60, 200, 140, .18); border-color: rgba(110, 231, 168, .6); color: #d8ffee; }
.wb-opt.right i { background: #3fd08e; color: #06251a; }
.wb-opt.wrong { background: rgba(255, 90, 70, .16); border-color: rgba(255, 120, 96, .55); color: #ffd8d0; }
.wb-opt.wrong i { background: #ff6b52; color: #2c0a06; }

.wb-retry {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 700; font-family: inherit;
  color: #0b1026; text-decoration: none;
  background: linear-gradient(180deg, #ffe08a, #ffc94d);
  border: none;
}
.wb-retry:hover { filter: brightness(1.08); }

.wb-fb { margin-top: 9px; font-size: 13px; font-weight: 700; }
.wb-fb.ok { color: #7ef0bd; }
.wb-fb.no { color: #ff9c86; }

.wb-acts { display: flex; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .07); }
.wb-act {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-size: 11.5px; font-family: inherit;
  color: #93a4c6; background: transparent;
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all .16s;
}
.wb-act:hover { color: #dbe6f7; border-color: rgba(255, 255, 255, .3); }
.wb-act.gold { color: #ffd66b; border-color: rgba(255, 206, 107, .45); }
.wb-act.gold:hover { color: #ffe49a; border-color: rgba(255, 206, 107, .8); }

/* ---------- 题目报错（家长修复） ---------- */
.wbrep { margin-top: 30px; }
.wbrep h3 { font-size: 18px; color: #eaf2ff; margin: 0 0 4px; }
.wbrep h3 span { font-size: 12.5px; color: var(--dim); font-weight: 400; margin-left: 8px; }
.wb-card.rep { border-left-color: rgba(255, 197, 92, .75); }
.wr-q { font-size: 14px; line-height: 1.75; color: #dbe6f7; margin: 10px 0 8px; }
.wr-ans { display: flex; gap: 10px; align-items: baseline; font-size: 13px; margin-bottom: 10px; }
.wr-ans .k { color: var(--dim); font-size: 12px; }
.wr-ans b { color: #7ef0bd; }
.wrf-l { display: block; font-size: 12px; color: var(--dim); margin: 10px 0 4px; }
.wrf-q, .wrf-a, .wrf-o {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(10, 18, 40, .55); color: #eaf2ff;
  border: 1px solid rgba(255, 255, 255, .14); font: inherit; font-size: 13.5px;
}
.wrf-q { resize: vertical; min-height: 62px; line-height: 1.6; }
.wrf-q:focus, .wrf-a:focus, .wrf-o:focus { outline: none; border-color: rgba(255, 206, 107, .6); }
.wrf-opt { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.wrf-opt input[type="radio"] { accent-color: #ffce6b; }
.wrf-opt .wrf-o { margin-top: 0; flex: 1; }
.wrf-btns { display: flex; gap: 8px; margin-top: 12px; }
#wbToast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 16px);
  padding: 10px 20px; border-radius: 999px;
  background: rgba(14, 26, 54, .94); color: #ffd66b;
  border: 1px solid rgba(255, 206, 107, .5); font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 99;
}
#wbToast.on { opacity: 1; transform: translate(-50%, 0); }

.wb-empty { text-align: center; padding: 54px 20px; }
.wb-empty-ico { font-size: 46px; margin-bottom: 12px; }
.wb-empty h3 { font-size: 19px; color: #eaf2ff; margin-bottom: 8px; }
.wb-empty p { color: var(--dim); font-size: 13px; line-height: 1.8; max-width: 460px; margin: 0 auto 20px; }

@media (max-width: 720px) {
  .wbhead h2 { font-size: 26px; }
  .wbstat > div { flex: 1; min-width: 88px; padding: 10px 14px; }
  .wbstat b { font-size: 21px; }
  .wb-opts { grid-template-columns: 1fr; }
  .wb-card { padding: 14px 14px 12px; }
}

/* ---------- 顶栏错题集角标 ---------- */
.navwrong { position: relative; display: inline-flex; align-items: center; gap: 5px; }
.navbadge {
  font-style: normal; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: #ff5a46; color: #fff;
  font-size: 10.5px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px rgba(11, 16, 38, .92);
}
.rr-saved {
  margin-left: 8px; font-size: 11px; font-weight: 600;
  color: #7ef0bd; background: rgba(110, 231, 168, .12);
  border: 1px solid rgba(110, 231, 168, .3);
  padding: 1px 8px; border-radius: 999px;
}

/* 上传页顶部小导航 */
.uplnav { display: flex; gap: 10px; align-items: center; font-size: 12.5px; margin: -4px 0 18px; }
.uplnav a { color: #9fb6da; text-decoration: none; }
.uplnav a:hover { color: var(--gold); }
.uplnav span { color: rgba(255, 255, 255, .22); }

/* ---------- 结算页 · 要塞结果 ---------- */
.rr-fort {
  margin: 12px 0 4px; padding: 10px 14px; border-radius: 11px;
  font-size: 13px; line-height: 1.6; text-align: left;
}
.rr-fort.ok {
  color: #7ef0bd; background: rgba(110, 231, 168, .1);
  border-left: 3px solid rgba(110, 231, 168, .6);
}
.rr-fort.no {
  color: #ffc9a4; background: rgba(255, 150, 90, .1);
  border-left: 3px solid rgba(255, 150, 90, .6);
}
.rr-fort b { color: #ffd166; }

/* 首屏 · 操控提示 */
.hctrl {
  margin: 12px 0 0;
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 7px 14px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.6; color: #b9cbe6;
  background: rgba(126, 232, 250, .07);
  border: 1px solid rgba(126, 232, 250, .18);
}
.hctrl b { color: #7ee8fa; letter-spacing: .06em; margin-right: 2px; }
.hctrl span { color: #7f8dab; }

/* ---------- 顶栏自适应：窄屏不许撑出横向滚动 ---------- */
.btn.sm { padding: 6px 12px; }
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; row-gap: 8px; }
  .topbar .title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .res {
    width: 100%; justify-content: space-between;
    gap: 5px; flex-wrap: nowrap;
  }
  .res .hud { padding: 3px 8px 3px 6px; gap: 4px; border-radius: 10px; }
  .res .hud .ico { font-size: 15px; }
  .res .hud .hudtxt b { font-size: 13.5px; }
  .res .hud .hudtxt small { display: none; }
  .res .btn.sm { padding: 5px 9px; font-size: 12.5px; }
  .res .btn.ico-only { padding: 5px 8px; font-size: 12.5px; }
}

/* ---------- 机库顶部：明确的进出囗 ---------- */
.garage-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 12px;
}
.garage-top h2 { margin: 0; flex: 1 1 auto; min-width: 160px; }
.garage-top .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .garage-top { gap: 8px; }
  .garage-top h2 { order: -1; flex-basis: 100%; font-size: 17px; }
  .garage-top .btn { flex: 1 1 0; font-size: 13px; padding: 9px 10px; }
}

/* ---------- 付费墙 ---------- */
.modal .box.paywall { max-width: 500px; }
.pw-price {
  display: flex; align-items: baseline; gap: 10px; justify-content: center;
  margin: 16px 0 14px; padding: 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,209,102,.16), rgba(255,209,102,.05));
  border: 1px solid rgba(255,209,102,.42);
}
.pw-price b { font-size: 34px; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.pw-price small { color: var(--dim); font-size: 12px; }
.pw-list {
  list-style: none; margin: 0 0 16px; padding: 0;
  font-size: 13px; line-height: 2; color: #dfe6ff;
}
.pw-list li { padding-left: 2px; }
.pw-list li b { color: var(--gold); }
.pw-code {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .28s ease, opacity .28s ease;
}
.pw-code.open { max-height: 260px; opacity: 1; }
.pw-code input { width: 100%; }
.paywall .btn { width: 100%; margin-top: 8px; }

/* 内容维护折叠块（上传页底部） */
.howup {
  margin-top: 26px; padding: 16px 18px; border-radius: 14px;
  border: 1px dashed #303d78; background: rgba(15,21,50,.5);
  font-size: 13px; color: var(--dim); line-height: 1.9;
}
.howup summary { cursor: pointer; color: #b9c3e8; font-weight: 700; font-size: 13.5px; }
.howup summary:hover { color: var(--gold); }
.howup ol { margin: 12px 0 0 20px; }
.howup li { margin-bottom: 8px; }
.howup code { color: #9ecbff; background: rgba(61,90,254,.12); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.howup pre {
  margin-top: 8px; padding: 12px; border-radius: 8px; overflow-x: auto;
  background: #0a0f24; border: 1px solid #232c56; color: #cfd8ff; font-size: 12px; line-height: 1.6;
}

/* ---------- 难度分级标签（照教辅栏目：基础 / 拓展提优 / 压轴挑战）---------- */
.tier{display:inline-block;padding:1px 8px;border-radius:6px;font-size:11.5px;font-weight:700;
  letter-spacing:.3px;white-space:nowrap;vertical-align:1px}
.tier.t1{background:rgba(80,210,140,.15);color:#5fe39a;border:1px solid rgba(80,210,140,.38)}
.tier.t2{background:rgba(250,195,80,.15);color:#fbc350;border:1px solid rgba(250,195,80,.40)}
.tier.t3{background:rgba(250,110,130,.16);color:#ff8399;border:1px solid rgba(250,110,130,.42)}

/* 结算页的难度分账：三档各答对几道、各挣多少 */
.rrow.sub { padding: 5px 10px 5px 26px; background: rgba(255,255,255,.025); border-color: transparent; }
.rrow.sub .k { font-size: 12.5px; color: rgba(255,255,255,.62); }
.rrow.sub .v { font-size: 14px; font-weight: 700; color: rgba(255,214,120,.9); }

/* ---------- 首页三科入口 ---------- */
.subjrow{display:flex;gap:10px;margin:22px 0 18px;flex-wrap:wrap}
.subj{
  flex:1 1 0;min-width:116px;display:flex;flex-direction:column;gap:2px;
  padding:12px 14px;border-radius:12px;text-decoration:none;
  border:1px solid rgba(126,232,250,.18);background:rgba(126,232,250,.05);
  transition:.18s;position:relative;
}
.subj:hover{transform:translateY(-2px);border-color:rgba(126,232,250,.5)}
.subj i{font-style:normal;font-size:11px;font-weight:700;color:#7ee8fa;letter-spacing:1px;opacity:.8}
.subj span{font-size:15px;font-weight:700;color:#eef5ff;letter-spacing:.5px}
.subj b{font-size:11px;font-weight:500;color:#8fa4c4}
.subj.on{border-color:rgba(255,206,107,.5);background:rgba(255,206,107,.09)}
.subj.on i{color:#ffce6b}
.subj.on b{color:#e8c884}
.subj.soon{border-style:dashed;opacity:.82}
.subj.soon:hover{opacity:1}
@media(max-width:620px){
  .subjrow .subj{min-width:calc(50% - 5px)}
}

/* ---------- 题图（扫描件导进来的题）＋ 自己对答案 ---------- */
.holo .qimgwrap { margin: 2px 0 16px; }
.holo .qimg {
  display: block; width: 100%; max-width: 100%; max-height: 42vh; object-fit: contain;
  background: #fff; border-radius: 10px;
  border: 1px solid rgba(126, 232, 250, .28);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}
.feedback.self {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  color: #ffd883; margin-top: 12px;
}
.feedback.self .scbtns { display: flex; gap: 8px; }
/* 参考答案：长范文也要能读，所以单独一行、可滚动、限高 */
.feedback.self .scref {
  flex: 1 0 100%; color: #e8f4ff; background: rgba(126,232,250,.08);
  border-left: 3px solid rgba(126,232,250,.55); border-radius: 6px;
  padding: 8px 10px; font-size: 13.5px; line-height: 1.55;
  max-height: 26vh; overflow: auto; white-space: pre-wrap;
}
.btn.sm { padding: 6px 16px; font-size: 13.5px; border-radius: 9px; }
@media (max-width: 640px) {
  .holo .qimg { max-height: 34vh; }
  .feedback.self { font-size: 14px; }
}

/* 题图放大层 */
.imgzoom{
  position: fixed; inset: 0; z-index: 240; display: none;
  place-items: center; padding: 14px;
  background: rgba(3, 6, 16, .93); backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.imgzoom.on { display: grid; }
.imgzoom img {
  max-width: 100%; max-height: 88vh; background: #fff;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.imgzoom .iztip {
  position: absolute; bottom: 18px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: #9fb3d4;
}
.holo .qimg { cursor: zoom-in; }

/* ---------- 白洞精灵（机库 CSS 版）与尾翼等级预览 ----------
   2026-11-08：黑洞往里吸，白洞就得往外推 —— 白球 + 一圈圈向外扩散的斥力环。
   战场 canvas 版在 cruise.js 的 drawMate 里，两边配色一致。 */
.mate.w .m-star {
  background: radial-gradient(circle at 50% 46%, #ffffff 0 38%, #eaffff 62%, #82b9d8 100%);
  box-shadow: 0 0 14px 5px rgba(234, 255, 255, .85), inset -2px -3px 6px rgba(60, 110, 150, .2);
  animation: whPulse 1.5s ease-in-out infinite;
}
@keyframes whPulse {
  0%, 100% { box-shadow: 0 0 10px 3px rgba(234, 255, 255, .7), inset -2px -3px 6px rgba(60, 110, 150, .2); }
  50%      { box-shadow: 0 0 20px 8px rgba(234, 255, 255, .95), inset -2px -3px 6px rgba(60, 110, 150, .2); }
}
.mate.w .m-deco::before, .mate.w .m-deco::after {
  content: ""; left: -6px; top: -6px; width: 38px; height: 38px;
  border: 2px solid rgba(234, 255, 255, .75); border-radius: 50%;
  animation: whRing 1.7s ease-out infinite;
}
.mate.w .m-deco::after { animation-delay: .85s; border-color: rgba(160, 225, 255, .6); }
@keyframes whRing {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
/* 机库那只大船：尾翼买过几级，机身外就多亮一层 */
.shipbig.w1 .shipart3d { filter: drop-shadow(0 0 7px rgba(226, 244, 255, .55)); }
.shipbig.w2 .shipart3d { filter: drop-shadow(0 0 13px rgba(150, 220, 255, .7)); }
.shipbig.w3 .shipart3d { filter: drop-shadow(0 0 22px rgba(255, 220, 130, .85)); }

/* 主炮：买过「双联脉冲炮」之后，前窗大船船头立刻长出两根炮管。
   三档越买越亮：青 → 亮蓝 → 星核金，跟战场里那两束弹道对得上。 */
.shipbig .sb-guns { display: none; }
.shipbig.c1 .sb-guns,
.shipbig.c2 .sb-guns,
.shipbig.c3 .sb-guns { display: block; }
.shipbig.c1 .sb-guns { filter: drop-shadow(0 0 4px rgba(126, 232, 250, .9)); }
.shipbig.c2 .sb-guns { filter: drop-shadow(0 0 12px rgba(140, 180, 255, 1)); }
.shipbig.c2 .sb-guns rect { fill: #8fb4ff; stroke: #3354b8; }
.shipbig.c2 .sb-guns ellipse { fill: #eaf1ff; }
.shipbig.c3 .sb-guns { filter: drop-shadow(0 0 11px rgba(255, 214, 120, 1)); }
.shipbig.c3 .sb-guns rect { fill: #ffd479; stroke: #8a6a25; }
.shipbig.c3 .sb-guns ellipse { fill: #fff3c4; }

/* 机库扩到 7 类装备后，卡片铺满整页：
   .shipbig 是 fixed + z-index:1，会直接盖在装备卡上（尾翼那张最明显）。
   进机库把它压到卡片底下当背景装饰，离开自动恢复。 */
body.in-garage .garage { position: relative; z-index: 1; }
body.in-garage .shipbig { z-index: 0; opacity: .3; }

/* ---------- 机库展示台：换上装备当场看得见 ----------
   前窗那艘大船进机库被压成 .3 透明度当背景，装备变化全靠它根本看不出来。
   这里在机库首屏单独摆一艘，七类装备各有真实部件，换装时全场闪光 + 部件弹出。 */
.gshow {
  position: relative; display: flex; gap: 18px; align-items: stretch;
  margin: 0 0 16px; padding: 12px 18px;
  border: 1px solid rgba(255, 209, 102, .34); border-radius: 18px;
  background: radial-gradient(ellipse at 20% 50%, rgba(61, 90, 254, .20), transparent 62%),
              linear-gradient(120deg, rgba(12, 18, 46, .94), rgba(16, 26, 62, .88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 14px 30px -20px #000;
  overflow: hidden;
}
.gshow-stage {
  position: relative; flex: 0 0 226px; width: 226px; min-height: 240px;
  display: grid; place-items: center;
}
.gshow-halo {
  position: absolute; width: 210px; height: 210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(126, 232, 250, .22), rgba(126, 232, 250, .05) 55%, transparent 72%);
}
.gshow-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 236, 170, .34) 50%, transparent 62%);
}
.gshow.boom .gshow-scan { animation: gsScan .9s ease-out; }
@keyframes gsScan {
  0% { opacity: 0; transform: translateX(-100%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}
.gshow.boom .gshow-halo { animation: gsHalo 1.1s ease-out; }
@keyframes gsHalo {
  0% { transform: scale(.6); opacity: .2; }
  40% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.gshow-ship { position: relative; width: 206px; z-index: 1; }
.gshow.boom .gshow-ship { animation: gsShipPop 1s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes gsShipPop {
  0% { transform: scale(.9); } 35% { transform: scale(1.1); }
  70% { transform: scale(.98); } 100% { transform: scale(1); }
}
.gs-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* 新装上的那个部件从中心弹出，金色描边闪一下 */
.gs-p.gs-just {
  transform-box: fill-box; transform-origin: center;
  animation: gsPart .9s cubic-bezier(.2, 1.5, .4, 1);
}
@keyframes gsPart {
  0%   { transform: scale(.25); opacity: 0; filter: drop-shadow(0 0 14px #ffd166); }
  45%  { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 16px #ffd166); }
  100% { transform: scale(1); opacity: 1; filter: none; }
}
.gs-wave { transform-box: fill-box; transform-origin: center; animation: gsWave 1.8s ease-out infinite; }
.gs-wave.d2 { animation-delay: .9s; }
@keyframes gsWave {
  0% { transform: scale(.5); opacity: .85; }
  100% { transform: scale(2.2); opacity: 0; }
}
.gs-orbit {
  transform-box: fill-box; transform-origin: center;
  animation: gsOrbit 2.6s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes gsOrbit {
  0%, 100% { opacity: .65; } 50% { opacity: 1; transform: scale(1.18); }
}

.gshow-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.gshow-t { font-size: 15px; font-weight: 800; color: #eaf0ff; }
.gshow-t small { display: block; font-size: 12px; font-weight: 400; color: var(--dim); margin-top: 3px; }
.gshow-pow { display: flex; align-items: baseline; gap: 10px; }
.gshow-pow span { font-size: 12.5px; color: var(--dim); }
.gshow-pow b {
  font-size: 38px; line-height: 1; color: var(--gold);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 209, 102, .42);
}
.gshow-pow em { font-size: 15px; font-weight: 800; font-style: normal; opacity: 0; }
.gshow-pow em.up { color: #5fe39a; }
.gshow-pow em.down { color: #ff9a8a; }
.gshow-pow em.show { animation: gsDelta 1.6s ease-out forwards; }
@keyframes gsDelta {
  0%   { opacity: 0; transform: translateY(8px) scale(.7); }
  22%  { opacity: 1; transform: translateY(-4px) scale(1.15); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-16px); }
}
.gshow-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; color: #8e9bc9; background: rgba(20, 28, 62, .8); border: 1px solid #2c3a7a;
}
.gs-badge b { font-weight: 600; }
.gs-badge i { font-style: normal; font-size: 10.5px; opacity: .8; }
.gs-badge.has { color: #ffe6a8; border-color: rgba(255, 209, 102, .5); background: rgba(255, 209, 102, .1); }
.gs-badge.just { animation: gsBadgePop 1s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes gsBadgePop {
  0%   { transform: scale(.6); background: rgba(255, 209, 102, .8); color: #2a1c00; }
  55%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}
.gshow-foot { font-size: 11.5px; color: var(--dim); }
.gshow-boom {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%); z-index: 3;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap; pointer-events: none; opacity: 0;
  font-size: 13px; font-weight: 800; color: #2a1c00;
  background: linear-gradient(180deg, #ffe08a, #ffb347); box-shadow: 0 0 20px -4px #ffd166;
}
.gshow-boom.show { animation: gsBoom 1.5s ease-out; }
@keyframes gsBoom {
  0%   { opacity: 0; transform: translate(-50%, 12px) scale(.6); }
  22%  { opacity: 1; transform: translate(-50%, 0) scale(1.12); }
  72%  { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -12px) scale(1); }
}

/* 换装那一刻的全屏浮层：不管滚到页面哪一格都看得见。
   pointer-events:none —— 不打断连着买下一件装备。 */
.gsplash {
  position: fixed; inset: 0; z-index: 70; box-sizing: border-box;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 6vh;
  pointer-events: none;
}
.gsplash.out { opacity: 0; transition: opacity .38s ease; }
.gsplash-in {
  position: relative; display: flex; align-items: center; gap: 18px;
  padding: 18px 30px 18px 18px; border-radius: 24px; border: 1px solid rgba(255, 209, 102, .65);
  background: radial-gradient(ellipse at 22% 50%, rgba(61, 90, 254, .45), transparent 60%), rgba(9, 14, 36, .95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 0 70px -10px rgba(255, 209, 102, .55), 0 30px 60px -20px #000;
  animation: gsIn .32s cubic-bezier(.2, 1.3, .4, 1);
}
@keyframes gsIn {
  0% { transform: scale(.72) translateY(24px); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.gsplash-ring {
  position: absolute; left: 8%; top: 50%; width: 180px; height: 180px; margin-top: -90px;
  border: 2px solid rgba(255, 209, 102, .75); border-radius: 50%; pointer-events: none;
  animation: gsRing 1.2s ease-out;
}
@keyframes gsRing {
  0% { transform: scale(.35); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; }
}
.gsplash-ship {
  position: relative; flex: 0 0 150px; width: 150px; z-index: 1;
  filter: drop-shadow(0 0 18px rgba(255, 209, 102, .5));
}
.gsplash-txt { position: relative; z-index: 1; min-width: 0; }
.gsplash-kicker { font-size: 11.5px; letter-spacing: 2px; color: #ffd166; font-weight: 800; }
.gsplash-name { font-size: 21px; font-weight: 900; color: #fff; margin: 4px 0 10px; white-space: nowrap; }
.gsplash-pow { font-size: 13px; color: #c9d4f5; }
.gsplash-pow b { font-size: 19px; color: #ffd166; }
.gsplash-pow em { font-style: normal; font-weight: 800; margin-left: 6px; }
.gsplash-pow em.up { color: #5fe39a; }
.gsplash-pow em.down { color: #ff9a8a; }
.gsplash-pow .same { color: #7ee8fa; margin-left: 4px; }
.gsplash-hint { margin-top: 10px; font-size: 11.5px; color: var(--dim); }

@media (max-width: 640px) {
  .gshow { gap: 8px; padding: 10px 12px; }
  .gshow-stage { flex: 0 0 138px; width: 138px; min-height: 168px; }
  .gshow-ship { width: 132px; }
  .gshow-halo { width: 138px; height: 138px; }
  .gshow-t { font-size: 13.5px; }
  .gshow-t small { font-size: 11px; }
  .gshow-pow b { font-size: 30px; }
  .gshow-info { gap: 7px; }
  .gs-badge { font-size: 10.5px; padding: 3px 7px; }
  .gs-badge i { display: none; }
  .gshow-foot { font-size: 10.5px; }
  /* 手机上展示台窄，胶囊会压住船头；浮层已经有「装配完成」，这里不再重复 */
  .gshow-boom { display: none; }
  /* 浮层改成贴底的紧凑横条，绝不压住首屏展示台 */
  .gsplash { align-items: flex-end; padding-bottom: 14px; }
  .gsplash-in {
    width: calc(100vw - 28px); max-width: none; gap: 8px;
    padding: 9px 14px 9px 8px; border-radius: 16px;
  }
  .gsplash-ring { width: 110px; height: 110px; margin-top: -55px; left: 4%; }
  .gsplash-ship { flex-basis: 76px; width: 76px; }
  .gsplash-name { font-size: 15px; white-space: normal; margin: 3px 0 6px; }
  .gsplash-kicker { font-size: 10px; letter-spacing: 1px; }
  .gsplash-pow { font-size: 11px; }
  .gsplash-pow b { font-size: 14px; }
  .gsplash-hint { font-size: 10px; margin-top: 5px; }
}

/* ---------- 扫描件：废题图提示 + 「看原页」整页浮层 ----------
   2026-11-08：题图不再靠估框裁，文字题干是主体；只有真需要回书上看时才开整页。
   金框按百分比定位，图片怎么缩放都跟着走，只指位置、不裁也不遮内容。 */
.qbadimg {
  margin: 2px 0 12px; padding: 9px 12px; border-radius: 10px;
  font-size: 12.5px; color: #ffd883; line-height: 1.6;
  background: rgba(255, 190, 90, .09);
  border: 1px dashed rgba(255, 200, 110, .42);
}
.qpagebtn { margin: 0 0 14px; }
.holo .qpagebtn { color: #cfeaff; border-color: rgba(126, 232, 250, .38); }

.pagezoom {
  position: fixed; inset: 0; z-index: 245; display: none;
  flex-direction: column; padding: 12px 14px 14px; box-sizing: border-box;
  /* 不用 backdrop-filter：巡航画面一直在重绘，整屏模糊会让低配机整页卡住
     （用户报「关掉原页以后就死机」）。纯色遮罩一样看不清背后，但没有模糊开销。 */
  background: rgba(3, 6, 16, .985);
}
.pagezoom.on { display: flex; }
/* 原页浮层打开时，把底下那一层整块藏起来并停掉动画。
   浮层是不透明的，藏起来不损失可见内容；但它把「巨幅画布 + 各种滤镜/动画面板
   还在 60fps 重绘」这件开销整块砍掉 —— 低配机上「一点看原页就卡死」就是这个。
   藏起来而不是移除：关掉浮层后画面原样回来，不用重建星球/贴图。 */
html.pz-open #cruise,
html.pz-open #cruiseCv,
html.pz-open #space,
html.pz-open #fx { visibility: hidden !important; }
/* 停动画要停到所有后代，不能只停 body 的直接子元素。
   2026-11-10 实测（手机视口 + CPU 6 倍降速，开原页浮层时采样）：
     · 只藏 #cruise/#space          → 主线程 86.6% 在 program（光栅/合成），几乎不空闲
     · 再把所有 CSS 动画 paused     → 空闲 99.7%
   题卡在 #view 里面，`body > *` 只匹配到 #view 本身，.qcard 的扫光/流光/呼吸全在跑，
   浮层明明不透光，底下照样每帧重绘 —— 手机就是这么被拖死的。
   浮层自己的动效要放行，所以补一条更高特异性的 running。 */
html.pz-open body * { animation-play-state: paused !important; }
html.pz-open #pageZoom,
html.pz-open #pageZoom * { animation-play-state: running !important; }
.pzbar {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding: 2px 2px 10px; color: #eaf4ff; font-size: 14px;
}
.pzt small { color: #9fb3d4; font-size: 11.5px; margin-left: 6px; font-weight: 400; }
/* 浮层顶部把「这一题的题干」贴出来：家长照着这行字在原页上找，不用猜框该盖哪儿 */
.pzq {
  flex: 0 0 auto; display: flex; gap: 8px; align-items: baseline;
  margin: 0 2px 10px; padding: 8px 12px; border-radius: 8px;
  background: rgba(255, 207, 90, .10); border: 1px solid rgba(255, 207, 90, .34);
  max-height: 4.8em; overflow: auto;
}
.pzq b { flex: 0 0 auto; color: #ffcf5a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pzq span { color: #eef2ff; font-size: 13px; line-height: 1.55; }
.pzsp { flex: 1; }
.pzload { display: none; color: #ffd883; font-size: 12px; }
.pagezoom.loading .pzload { display: inline; }
.pzscroll {
  flex: 1 1 auto; min-height: 0; overflow: auto;
  display: flex; justify-content: center; align-items: flex-start;
}
.pzscroll.big { justify-content: flex-start; }
.pzpaper { position: relative; width: 100%; max-width: 860px; flex: 0 0 auto; }
.pzpaper.big { width: 180%; max-width: none; }
.pzpaper img {
  display: block; width: 100%; height: auto; background: #fff;
  border-radius: 8px;
  /* 阴影从 50px 收到 18px：整页图很高，大范围模糊在滚动时每帧都要重算一遍，
     低配机上光这一条就能拖慢一半。看着照样是「一张纸浮在上面」。 */
  box-shadow: 0 10px 18px rgba(0, 0, 0, .5);
}
.pzbox {
  position: absolute; display: none; pointer-events: none;
  border: 2px solid #ffcf5a; border-radius: 8px;
  background: rgba(255, 207, 90, .10);
  box-shadow: 0 0 0 3px rgba(255, 207, 90, .18), 0 0 22px rgba(255, 207, 90, .55);
}
.pzbox b {
  position: absolute; left: -2px; top: -22px; white-space: nowrap;
  background: #ffcf5a; color: #3a2600; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 6px 6px 6px 0;
}
.pztip b { color: #ffd883; font-weight: 600; }
.pztip {
  flex: 0 0 auto; text-align: center; color: #9fb3d4;
  font-size: 11.5px; padding-top: 8px;
}
@media (max-width: 640px) {
  .pzt small { display: none; }
  .pzbar { font-size: 12.5px; gap: 6px; }
  .pzbar .btn { padding: 5px 9px; font-size: 12px; }
  .pagezoom { padding: 10px 8px 6px; }
}
