/* 化学站 · 学霸星球家族 · 统一浅色版（v0.12.6）
   按《学霸星球学科站-统一设计规范》整体翻白：白玻璃卡 + 品牌蓝渐变 + 柔光晕；
   8 个实验室 3D 画布保留暗色舞台卡——仪器场景在暗底上才有质感，页面其余全部浅色 */
:root {
  --brand: #1f5fd6;          /* 家族品牌蓝 */
  --brand-dark: #1a4fb5;
  --brand-soft: rgba(31, 95, 214, .10);
  --cyan: #0891b2;           /* 化学站青色（浅底可读版） */
  --violet: #7c3aed;
  --grad: linear-gradient(135deg, #1f5fd6, #8b5cf6);
  --grad-btn: linear-gradient(135deg, #1f5fd6, #3b82f6);
  --bg: #eef1f5;
  --card: #ffffff;
  --card-solid: #ffffff;
  --text: #1a1d21;
  --muted: #8b9199;
  --sub: #4b5563;
  --line: #e5e7eb;
  --danger: #e11d48;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, .08), 0 1px 3px rgba(15, 23, 42, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.6 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, #f7f9fc 0%, #eef1f5 48%, #e8ecf3 100%);
  min-height: 100vh;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 360px at 12% -4%, rgba(31, 95, 214, .07), transparent 62%),
    radial-gradient(640px 420px at 96% 30%, rgba(8, 145, 178, .06), transparent 65%),
    radial-gradient(520px 380px at 50% 108%, rgba(139, 92, 246, .07), transparent 60%);
}
b { font-weight: 700; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }
a { color: var(--cyan); text-decoration: none; }

/* 质感签名 1：白玻璃卡 */
.glass {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#app { max-width: 640px; margin: 0 auto; padding: 0 12px 8px; position: relative; }

/* ============ topbar ============ */
header.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin: 8px 0 12px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.logo {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
  box-shadow: 0 2px 10px rgba(31, 95, 214, .35);
}
.topbar .tt { flex: 1; }
.topbar .tt b { font-size: 16px; }
.topbar .tt span { display: block; font-size: 11px; color: var(--muted); }
.iconbtn {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line);
  background: #f4f6fa; color: var(--sub);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.iconbtn:active { background: var(--brand-soft); }

/* ============ 顶部学科切换 sitetabs（m078 家族规矩：当前站高亮+其他站下拉跳转带 ref；浅色版） ============ */
.sitewrap { position: relative; display: inline-block; flex: none; }
.st-drop {
  padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(31, 95, 214, .30);
  background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 700;
  white-space: nowrap;
}
.st-drop:hover { background: rgba(31, 95, 214, .16); }
.stdrop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 205px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, .18); padding: 8px; z-index: 210;
}
.sitewrap.open .stdrop { display: block; }
.stdrop a { display: flex; gap: 8px; align-items: baseline; padding: 9px 12px; border-radius: 9px; color: var(--text); font-size: 13px; white-space: nowrap; cursor: pointer; }
.stdrop a:hover { background: rgba(31, 95, 214, .08); }
.stdrop a b { color: var(--brand); font-size: 13.5px; }
.stdrop a span { color: var(--muted); font-size: 11.5px; }

/* ============ HERO（浅色卡 + 暗色 3D 舞台块） ============ */
.hero2 {
  position: relative; overflow: hidden;
  border-radius: 20px; text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding-bottom: 24px;
}
.hero2b { margin-top: 12px; }
.hero2::before {
  content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
  top: -120px; left: -110px; pointer-events: none;
  background: radial-gradient(circle, rgba(8, 145, 178, .10), transparent 70%);
}
.hero2::after {
  content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  top: 8%; right: -140px; pointer-events: none;
  background: radial-gradient(circle, rgba(31, 95, 214, .10), transparent 70%);
}
/* 暗色 3D 原子剧场舞台：画布保留深底，嵌在浅色 hero 卡内 */
.hero-stage {
  position: relative; height: 300px; margin: 12px 12px 0;
  border-radius: 14px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, #10152a 0%, #0a0d1c 55%, #070810 100%);
  box-shadow: inset 0 0 40px rgba(31, 95, 214, .12);
}
#atomCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-in { position: relative; z-index: 1; padding: 20px 16px 0; }

.hbadge {
  display: inline-block; font-size: 12px; letter-spacing: .3px;
  padding: 5px 14px; border-radius: 999px;
  color: #1e50b0;
  background: rgba(31, 95, 214, .08);
  border: 1px solid rgba(31, 95, 214, .30);
}
.hero2 h2 { margin: 16px 0 8px; font-size: 26px; line-height: 1.35; letter-spacing: .5px; }
.hero2 h2 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hsub { color: var(--sub); font-size: 14px; line-height: 1.7; max-width: 480px; margin: 0 auto 14px; }

.hstat {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  max-width: 520px; margin: 0 auto 14px;
}
.hstat .st {
  padding: 10px 4px 8px; border-radius: 12px;
  background: #f4f6fb;
  border: 1px solid var(--line);
}
.hstat .st b { display: block; font-size: 17px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat .st span { font-size: 11px; color: var(--muted); }

.hloop { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0 auto 16px; max-width: 520px; }
.hloop .lp {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 145, 178, .07); border: 1px solid rgba(8, 145, 178, .30); color: #0e7490;
}
.hloop .ar { align-self: center; color: var(--muted); font-size: 11px; }

.hpts { display: grid; grid-template-columns: 1fr; gap: 8px; max-width: 520px; margin: 0 auto 16px; text-align: left; }
@media (min-width: 560px) { .hpts { grid-template-columns: repeat(3, 1fr); } }
.hpts .pt {
  padding: 12px; border-radius: 12px;
  background: #f4f6fb; border: 1px solid var(--line);
}
.hpts .hi {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 7px;
  box-shadow: 0 2px 8px rgba(31, 95, 214, .3);
}
.hpts .pt h4 { font-size: 14px; margin-bottom: 3px; }
.hpts .pt p { font-size: 12px; color: var(--muted); line-height: 1.6; }

.cred {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  max-width: 520px; margin: 0 auto 16px; font-size: 11.5px;
}
.cred .cr { padding: 9px 6px; border-radius: 11px; background: #f7f9fc; border: 1px dashed var(--line); color: var(--sub); }
.cred .cr b { display: block; font-size: 12.5px; color: var(--text); }

/* hbig 扎心大字（红/警示底 · 浅色适配） */
.hbig {
  max-width: 520px; margin: 0 auto 16px; padding: 16px 14px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(225, 29, 72, .08), rgba(225, 29, 72, .04));
  border: 1px solid rgba(225, 29, 72, .35);
  font-size: 17px; line-height: 1.75; font-weight: 700;
  color: #9f1239;
}
.hbig b {
  color: #b45309; padding: 0 3px; border-radius: 4px;
  background: rgba(217, 119, 6, .14);
  animation: pulseY 1.6s ease-in-out infinite;
}
.hbig em {
  font-style: normal; font-size: 19px;
  background: linear-gradient(90deg, #e11d48, #d97706, #0891b2, #e11d48);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: flow 3.2s linear infinite;
}
@keyframes pulseY { 0%, 100% { background-color: rgba(217, 119, 6, .14); } 50% { background-color: rgba(217, 119, 6, .34); } }
@keyframes flow { to { background-position: 300% 0; } }

/* 价格卡 */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 520px; margin: 0 auto 14px; }
.price .pc {
  position: relative; padding: 14px 12px; border-radius: 14px; text-align: center;
  background: #f7f9fc; border: 1px solid var(--line);
  transition: transform .15s ease;
}
.price .pc:active { transform: translateY(1px); }
.price .pc.cyan { border-color: rgba(8, 145, 178, .45); box-shadow: 0 3px 16px rgba(8, 145, 178, .10); }
.price .pc.vio { border-color: rgba(124, 58, 237, .45); box-shadow: 0 3px 16px rgba(124, 58, 237, .12); }
.price .pc h4 { font-size: 13px; color: var(--sub); margin-bottom: 6px; }
.price .pc .pv { font-size: 26px; font-weight: 800; }
.price .pc.cyan .pv { color: var(--cyan); }
.price .pc.vio .pv { color: var(--violet); }
.price .pc .pv small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price .pc .tag {
  position: absolute; top: -9px; right: 10px; font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--grad-btn); color: #fff;
}
.price .pc ul { list-style: none; font-size: 11.5px; color: var(--muted); text-align: left; margin-top: 8px; }
.price .pc ul li { padding-left: 14px; position: relative; line-height: 1.7; }
.price .pc ul li::before { content: '◆'; position: absolute; left: 0; font-size: 8px; top: 5px; color: var(--cyan); }

/* 购买黄条（id=hbuyRow 白标整行替换） */
.hbuy {
  max-width: 520px; margin: 0 auto 10px; padding: 11px 12px; border-radius: 12px;
  background: rgba(217, 119, 6, .08); border: 1px solid rgba(217, 119, 6, .35);
  font-size: 13px; color: #92400e; text-align: left;
}
/* 免费试用条 */
.hcta {
  max-width: 520px; margin: 0 auto 4px; padding: 11px 12px; border-radius: 12px;
  background: rgba(8, 145, 178, .07); border: 1px solid rgba(8, 145, 178, .30);
  font-size: 13px; color: #0e7490;
}
/* v0.12.13 hero 首屏转化条下的客服/渠道入口（转化件回归首屏，老板令） */
.hero-links {
  display: flex; gap: 10px; justify-content: center; margin: 8px auto 0;
}
.hero-links a {
  font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; color: var(--brand);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(31, 95, 214, .28);
  transition: background .15s, transform .12s;
}
.hero-links a:hover { background: rgba(31, 95, 214, .10); }
.hero-links a:active { transform: scale(.97); }

/* 声音开关（贴在暗色舞台块上，保持深色小胶囊） */
.sndbtn {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px;
  background: rgba(16, 20, 32, .78); color: #c3cdeb; border: 1px solid rgba(255, 255, 255, .14);
}
.sndbtn.on { color: #7dd3fc; border-color: rgba(125, 211, 252, .45); box-shadow: 0 0 14px rgba(125, 211, 252, .18); }

/* ============ 功能入口：单元网格 ============ */
.sec { margin: 18px 0; }
.sec > h3 {
  display: flex; align-items: center; gap: 7px;
  font-size: 16px; margin-bottom: 10px;
}
.sec > h3::before { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); }
.unit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (min-width: 560px) { .unit-grid { grid-template-columns: repeat(3, 1fr); } }
.ucard {
  position: relative; padding: 12px; border-radius: 13px;
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: transform .15s ease, box-shadow .15s ease;
  overflow: hidden;
}
.ucard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3.5px; background: var(--grad); }
.ucard:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, .12); }
.ucard h4 { font-size: 14px; margin: 4px 0 3px; }
.ucard p { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.ucard .uicon {
  width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); font-size: 16px;
}
.ucard.lock { opacity: .55; }
.ucard.lock::before { background: #cbd5e1; }
.ucard.lock .uicon { background: rgba(15, 23, 42, .06); filter: grayscale(1); }
.ucard .ltag {
  position: absolute; top: 10px; right: 10px; font-size: 10px;
  padding: 2px 7px; border-radius: 999px;
  background: rgba(15, 23, 42, .05); color: var(--muted); border: 1px solid var(--line);
}

/* ============ 单元内容页 ============ */
.uvback {
  display: inline-block; margin: 0 0 12px; padding: 7px 14px;
  border-radius: 10px; font-size: 13px; color: var(--sub);
  background: rgba(15, 23, 42, .04); border: 1px solid var(--line);
}
.uvhead { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 14px; }
.uvhead .uicon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); font-size: 22px;
  box-shadow: 0 2px 10px rgba(31, 95, 214, .18);
}
.uvhead h3 { font-size: 16px; }
.uvhead p { font-size: 12px; color: var(--muted); }
.uvhead > div:nth-child(2) { flex: 1; }
.uvprog { font-size: 11.5px; color: var(--cyan); text-align: right; white-space: nowrap; }
.uvprog b { color: var(--cyan); }

.know { display: flex; flex-direction: column; gap: 8px; }
.kcard {
  display: flex; align-items: baseline; gap: 10px;
  padding: 11px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.6;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
}
.kcard .kn {
  flex: none; width: 20px; height: 20px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--grad-btn);
}

/* 题卡 */
.qc { padding: 14px; margin-bottom: 12px; }
.qmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.qtag {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px;
  background: rgba(8, 145, 178, .10); color: var(--cyan); border: 1px solid rgba(8, 145, 178, .28);
}
.qno { font-size: 11px; color: var(--muted); margin-left: auto; }
.qtext { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.qtext img { max-width: 100%; border-radius: 8px; margin: 6px 0; background: #fff; }
.qopts { display: flex; flex-direction: column; gap: 7px; }
.qopt {
  text-align: left; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.55;
  color: var(--sub); background: #f7f9fc; border: 1px solid var(--line);
  transition: background .15s, border-color .15s;
}
.qopt b { color: var(--violet); margin-right: 4px; }
.qopt:active { background: var(--brand-soft); }
.qopt.ok { background: rgba(22, 163, 74, .10); border-color: rgba(22, 163, 74, .5); color: #166534; }
.qopt.ok b { color: #16a34a; }
.qopt.no { background: rgba(225, 29, 72, .07); border-color: rgba(225, 29, 72, .45); color: #9f1239; }
.qopt.sel { background: rgba(100, 116, 139, .12); border-color: rgba(100, 116, 139, .5); color: #334155; }
.qopt:disabled { cursor: default; opacity: .95; }
.qexp { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.7; background: #f7f9fc; border: 1px dashed var(--line); }
.qexp .expok { color: #16a34a; }
.qexp .expno { color: #e11d48; }
.qexp .expna { color: #64748b; }
.qexp p { color: var(--muted); margin-top: 6px; white-space: pre-wrap; }

/* v0.12 真题解析结构化：考点 badge + 可折叠解析 + 易错点 */
.qkp {
  font-size: 10.5px; padding: 2px 8px; border-radius: 999px; max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(124, 58, 237, .09); color: var(--violet); border: 1px solid rgba(124, 58, 237, .28);
}
.qex-tg {
  font-size: 11px; margin-left: 10px; padding: 3px 10px; border-radius: 999px;
  background: #f4f6fa; border: 1px solid var(--line); color: var(--sub);
}
.qex-tg:active { background: var(--brand-soft); }
.qex-bd.fold { display: none; }
.qexp p.qpit { color: var(--warn); }

/* v0.12 单元页动手实验室 chips */
.labchips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 14px; margin: 12px 0; }
.lc-t { font-size: 12px; color: var(--cyan); margin-right: 2px; }
.lchip {
  font-size: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(8, 145, 178, .07); border: 1px solid rgba(8, 145, 178, .28); color: var(--sub);
  transition: background .15s, border-color .15s;
}
.lchip:active { background: rgba(8, 145, 178, .18); }

.pv-cta { margin: 18px 0 8px; padding: 16px; text-align: center; border: 1px solid rgba(124, 58, 237, .35); }
.pv-cta b { color: var(--violet); font-size: 14px; }
.pv-cta p { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.pv-note {
  margin: 14px 0 4px; padding: 11px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(217, 119, 6, .08); border: 1px solid rgba(217, 119, 6, .3); color: #92400e;
  text-align: center;
}

/* 锁定弹盒 */
.lock-box {
  max-width: 520px; margin: 20px auto; padding: 24px 18px; text-align: center;
}
.lock-box .biglock { font-size: 40px; margin-bottom: 8px; }
.lock-box p { color: var(--sub); font-size: 13.5px; margin: 8px 0 16px; }
.btnrow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 按钮 */
.gbtn {
  padding: 10px 18px; border-radius: 11px; border: none; font-weight: 600; font-size: 14px; color: #fff;
  background: var(--grad-btn); box-shadow: 0 3px 10px rgba(31, 95, 214, .30);
}
.ghost {
  padding: 10px 18px; border-radius: 11px; font-weight: 600; font-size: 14px;
  background: transparent; color: var(--sub); border: 1px solid var(--line);
}
.mini {
  padding: 4px 10px; border-radius: 8px; font-size: 12px;
  background: rgba(31, 95, 214, .10); color: #1d4ed8; border: none;
}
.chip.on { background: var(--grad-btn); color: #fff; }

/* ============ footer ============ */
footer.foot {
  margin: 20px 0 90px; padding: 14px; text-align: center;
  background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 11.5px; color: var(--muted);
  backdrop-filter: blur(8px);
}
footer.foot a { color: var(--muted); text-decoration: underline; }

/* v0.12.16 右下角双浮窗已取消（家族四站统一老板令）：客服/渠道入口收进左栏底部 sn-foot */
/* v0.12.17 窄屏客服浮钮（家族四站统一）：≤1100px 显示（bottom 抬高避开 bottomnav），≥1101px 隐藏（入口在左栏 sn-foot） */
.m-fab {
  display: flex; align-items: center; justify-content: center;
  position: fixed; right: 14px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--grad-btn); color: #fff; font-size: 19px;
  box-shadow: 0 6px 20px rgba(31, 95, 214, .35);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.m-fab:active { transform: scale(.94); }
@media (min-width: 1101px) { .m-fab { display: none; } }

/* ============ 弹层 ============ */
.ov {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px); z-index: 200; display: none;
}
.ov.on { display: flex; }
.ovbox {
  background: var(--card-solid); color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px; max-width: 420px; width: 100%; padding: 20px 18px; margin: auto;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .28);
  max-height: 86vh; overflow-y: auto;
}
.ovbox h3 { font-size: 17px; margin-bottom: 4px; }
.ovbox .desc { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.ovbox .row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-radius: 11px; margin-bottom: 10px;
  background: #f6f8fb; border: 1px solid var(--line);
  font-size: 14px;
}
.ovbox label { display: block; font-size: 12.5px; color: var(--sub); margin: 10px 0 5px; }
.ovbox input[type=text], .ovbox input[type=tel], .ovbox textarea, .ovbox select {
  width: 100%; padding: 9px 11px; border-radius: 10px;
  background: #f6f8fb; border: 1px solid var(--line);
  color: var(--text); outline: none;
}
.ovbox input:focus, .ovbox textarea:focus { border-color: var(--brand); }
.ovbox .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--sub); margin: 12px 0; }
.ovbox .agree input { margin-top: 3px; }
.ovbox .wide { width: 100%; padding: 11px; border-radius: 11px; }

/* v0.12.14 客服二维码占位（照题霸 cs-qr：未放二维码图时虚框占位，经销商传图后整块换成 img） */
.cs-qr {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 150px; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  border: 1.5px dashed rgba(31, 95, 214, .35); background: #f7f9fc;
}
.cs-qr span { font-size: 13px; color: var(--sub); font-weight: 600; }
.cs-qr small { font-size: 11px; color: var(--muted); }
.cs-qr img { width: 100%; height: 100%; object-fit: contain; }
/* 购买弹层说明小字（照题霸 buytip） */
.buytip {
  font-size: 12px; color: var(--muted); line-height: 1.7; margin: 8px 0 0;
  padding: 8px 10px; border-radius: 10px;
  background: #f7f9fc; border: 1px dashed var(--line);
}

/* v0.12.14 渠道弹层深色签发台风（照搬题霸 ag-card） */
.ag-card {
  background: #11161d; color: #e8ecf3;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px; max-width: 420px; width: 100%; margin: auto; padding: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
  max-height: 86vh; overflow-y: auto;
}
.ag-head {
  padding: 18px 20px 14px; border-radius: 18px 18px 0 0;
  background: linear-gradient(135deg, #1f5fd6, #7c3aed);
}
.ag-head h3 { font-size: 18px; color: #fff; }
.ag-head p { font-size: 12px; color: rgba(255, 255, 255, .78); margin-top: 3px; }
.ag-body { padding: 16px 18px 18px; }
.ag-steps {
  font-size: 12.5px; line-height: 1.8; color: #b9c2cf;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px; padding: 10px 12px;
}
.ag-note { font-size: 11.5px; color: #8b9199; margin: 8px 0 4px; }
.ag-body label { display: block; font-size: 12.5px; color: #b9c2cf; margin: 10px 0 5px; }
.ag-body input[type=text], .ag-body input[type=tel], .ag-body textarea {
  width: 100%; padding: 9px 11px; border-radius: 10px; outline: none;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font-family: inherit; font-size: 14px;
}
.ag-body input:focus, .ag-body textarea:focus { border-color: #5b8cf0; }
.ag-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: #8b9199; line-height: 1.7; margin: 12px 0; }
.ag-agree input { margin-top: 3px; flex: none; }
.ag-agree a { color: #8fb3ff; }
.ag-tip { font-size: 11.5px; color: #8b9199; text-align: center; margin: 10px 0 0; }
.ag-close {
  display: block; margin: 0 18px 16px; width: calc(100% - 36px); padding: 10px;
  border-radius: 11px; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); color: #b9c2cf; font-size: 13px;
}
.ag-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* toast（家族规范：保持深色胶囊） */
#toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%);
  background: rgba(15, 20, 28, .94); color: #fff; font-size: 13px;
  padding: 9px 16px; border-radius: 999px; z-index: 300;
  border: 1px solid rgba(255, 255, 255, .12);
  opacity: 0; pointer-events: none; transition: opacity .25s;
  max-width: 86vw;
}
#toast.on { opacity: 1; }

/* 3D 反应剧场（单元页，atomlab.js） */
.u3d {
  margin: 14px 0; padding: 0; overflow: hidden;
  border: 1px solid var(--line);
}
.u3d-hd {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 95, 214, .05);
}
.u3d-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(135deg, #6d28d9, #0891b2);
  color: #fff; font-weight: 700; white-space: nowrap;
}
.u3d-hd b { font-size: 13px; color: var(--cyan); letter-spacing: .5px; }
.u3d-stage { position: relative; }
#u3dCanvas {
  display: block; width: 100%; height: 250px;
  background: radial-gradient(ellipse at 50% 40%, #0b0e1a 0%, #05060a 75%);
  cursor: crosshair;
}
.u3d-eq {
  position: absolute; top: 10px; left: 0; right: 0; text-align: center;
  font-weight: 800; font-size: 16px; color: #eaf6ff; letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(31, 95, 214, .95), 0 2px 8px rgba(0, 0, 0, .85);
  pointer-events: none;
}
.u3d-cond {
  position: absolute; right: 12px; top: 34px;
  padding: 4px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: #ffd7a8;
  background: rgba(255, 157, 92, .16); border: 1px solid rgba(255, 157, 92, .6);
  text-shadow: 0 0 10px rgba(255, 157, 92, .85);
  box-shadow: 0 0 18px rgba(255, 157, 92, .35);
  opacity: 0; transform: scale(.5) rotate(-4deg);
  transition: all .35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.u3d-cond.show { opacity: 1; transform: scale(1) rotate(0deg); }
.u3d-cap {
  padding: 9px 14px; font-size: 12.5px; color: #0e7490;
  border-top: 1px solid var(--line);
  background: rgba(8, 145, 178, .05);
  min-height: 34px; line-height: 1.5;
}
.u3d-voice {
  margin-left: auto; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(31, 95, 214, .08);
  color: #1e40af; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.u3d-voice.on { background: linear-gradient(135deg, rgba(109, 40, 217, .8), rgba(8, 145, 178, .75)); color: #fff; border-color: transparent; }
.u3d-ctl {
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(8, 145, 178, .07);
  color: #0e7490; font-size: 11px; cursor: pointer; white-space: nowrap;
}
.u3d-ctl.on { background: linear-gradient(135deg, rgba(194, 65, 12, .85), rgba(180, 83, 9, .8)); color: #fff; border-color: transparent; }
.u3d-hd-tag {
  font-size: 11px; color: var(--sub); white-space: nowrap;
  background: rgba(15, 23, 42, .04); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px;
}
.u3d-hd-tag b { color: #b45309; font-size: 11px; letter-spacing: .5px; }
.u3d-eb {
  height: 4px; background: rgba(15, 23, 42, .07);
  position: relative; overflow: hidden;
}
.u3d-eb-bar {
  height: 100%; width: 8%;
  background: linear-gradient(90deg, #0891b2 0%, #eab308 45%, #e11d48 100%);
  transition: width .7s ease;
}

/* ================= 元素周期表实验室 ================= */
.ptab { padding: 14px; }
/* v0.12.12 ptable.com 范式重构：周期表网格独占全宽（minmax(0,1fr) 强制 18 列均分，
   横向滚动条根除），点元素详情区下沉到表格下方全宽横排——不再挤在右侧 240px 竖条 */
.pt-grid-wrap { padding-bottom: 0; }
.pt-grid {
  display: grid; grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 3px;
}
.pt-cell {
  position: relative; aspect-ratio: 1; border-radius: 6px;
  background: color-mix(in srgb, var(--cc) 14%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--cc) 50%, transparent);
  color: #1f2937; cursor: pointer; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.pt-cell i {
  position: absolute; top: 1px; left: 3px; font-style: normal;
  font-size: 8px; color: color-mix(in srgb, var(--cc) 55%, #334155); opacity: .9;
}
.pt-cell b { font-size: 13px; font-weight: 800; line-height: 1.1; }
.pt-cell span { font-size: 8.5px; color: #64748b; line-height: 1.2; }
.pt-cell:hover { transform: translateY(-2px) scale(1.06); z-index: 2;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--cc) 45%, transparent); background: color-mix(in srgb, var(--cc) 26%, #ffffff); }
.pt-cell.sel {
  background: color-mix(in srgb, var(--cc) 34%, #ffffff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cc) 70%, transparent);
  border-color: var(--cc);
}
.pt-ph {
  aspect-ratio: 1; border-radius: 6px; cursor: pointer;
  background: color-mix(in srgb, var(--cc) 8%, #ffffff);
  border: 1px dashed color-mix(in srgb, var(--cc) 45%, transparent);
  color: color-mix(in srgb, var(--cc) 55%, #334155);
  font-size: 8px; line-height: 1.25; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.pt-ph:hover { background: color-mix(in srgb, var(--cc) 18%, #ffffff); }
.pt-detail { display: flex; gap: 14px; align-items: stretch; margin-top: 12px; }
.pt-stage { flex: 0 0 300px; display: flex; flex-direction: column; gap: 8px; }
#ptCanvas {
  width: 100%; height: 210px; display: block; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 40%, #0b0e1a 0%, #05060a 75%);
}
.pt-info {
  flex: 1; background: #f6f8fb; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; font-size: 12px; overflow-y: auto;
}
.pt-wait { color: var(--sub); font-size: 12px; }

/* 温度滑块（WeduLab 参数滑块范式） */
.pt-temp {
  background: #f6f8fb; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px 7px;
}
.pt-temp label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: #475569; margin-bottom: 5px;
}
.pt-temp label b { color: #b45309; font-variant-numeric: tabular-nums; }
.pt-temp input[type="range"] {
  width: 100%; height: 18px; -webkit-appearance: none; appearance: none;
  background: transparent; cursor: pointer;
}
.pt-temp input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee 35%, #facc15 70%, #ff4d5e);
}
.pt-temp input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 15px; height: 15px; border-radius: 50%; margin-top: -5px;
  background: #fff; border: 2px solid #ea580c;
  box-shadow: 0 1px 6px rgba(234, 88, 12, .5);
}
.pt-temp input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee 35%, #facc15 70%, #ff4d5e);
}
.pt-temp input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; border: 2px solid #ea580c;
  box-shadow: 0 1px 6px rgba(234, 88, 12, .5);
}
.pt-temp p { font-size: 11px; color: var(--sub); margin-top: 4px; line-height: 1.5; }
.pt-info-hd {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  border-left: 3px solid var(--cyan); padding-left: 8px; margin-bottom: 8px;
}
.pt-info-num { font-size: 12px; color: var(--sub); }
.pt-info-sym { font-size: 26px; font-weight: 900; line-height: 1; }
.pt-info-zh { font-size: 15px; font-weight: 700; color: #0f172a; }
.pt-info-cat { font-size: 10px; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.pt-info-rows div {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 3px 0; border-bottom: 1px dashed rgba(15, 23, 42, .10);
}
.pt-info-rows span { color: var(--sub); font-size: 11px; white-space: nowrap; }
.pt-info-rows b { color: #334155; font-size: 11.5px; text-align: right; }
.pt-note {
  margin-top: 8px; font-size: 11.5px; color: #9a3412;
  background: rgba(234, 88, 12, .08); border: 1px solid rgba(234, 88, 12, .35);
  border-radius: 8px; padding: 6px 8px; line-height: 1.5;
}
.pt-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.pt-lg { font-size: 11px; color: #475569; display: inline-flex; align-items: center; gap: 5px; }
.pt-lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
@media (max-width: 760px) {
  .pt-detail { flex-direction: column; }
  .pt-stage { flex: 1 1 auto; }
  #ptCanvas { height: 170px; }
  .pt-cell b { font-size: 10px; }
  .pt-cell span { display: none; }
  .pt-cell i { font-size: 7px; }
}

/* ================= 分子构型实验室 ================= */
.mol-wrap { padding: 14px; }
.mol-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mol-chip {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 7px 14px; border-radius: 10px; cursor: pointer;
  background: #f6f8fb; border: 1px solid var(--line);
  color: #1f2937; transition: all .12s ease;
}
.mol-chip b { font-size: 15px; font-weight: 800; }
.mol-chip span { font-size: 10px; color: var(--sub); }
.mol-chip:hover { background: rgba(31, 95, 214, .08); border-color: rgba(31, 95, 214, .5); }
.mol-chip.sel {
  background: linear-gradient(135deg, rgba(31, 95, 214, .16), rgba(139, 92, 246, .14));
  border-color: #1f5fd6; box-shadow: 0 2px 10px rgba(31, 95, 214, .22);
}
.mol-top { display: flex; gap: 14px; align-items: stretch; }
.mol-stage { flex: 1 1 auto; }
/* v0.12.12 画布兜底：abCanvas 原先没有任何 CSS 高度（HTML 默认 150px），拉宽版面后布局崩坏 */
.mol-stage canvas {
  width: 100%; height: 340px; display: block; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 42%, #0b0e1a 0%, #05060a 78%);
  cursor: grab; touch-action: none;
}
#molCanvas {
  width: 100%; height: 340px; display: block; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 42%, #0b0e1a 0%, #05060a 78%);
  cursor: grab; touch-action: none;
}
#molCanvas:active { cursor: grabbing; }
.mol-side { flex: 0 0 250px; display: flex; flex-direction: column; }
.mol-info { flex: 1; }
.mol-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.mol-mode { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-right: 8px; }
.mol-mode .mol-tg { border-radius: 0; border: none; }
.mol-tg {
  padding: 5px 12px; border-radius: 999px; font-size: 11.5px; cursor: pointer;
  border: 1px solid var(--line); background: #f6f8fb; color: #475569;
  transition: all .12s ease; white-space: nowrap;
}
.mol-tg:hover { background: rgba(8, 145, 178, .10); color: #0e7490; }
.mol-tg.on {
  background: linear-gradient(135deg, rgba(31, 95, 214, .22), rgba(139, 92, 246, .18));
  color: #1e3a8a; border-color: rgba(31, 95, 214, .55);
}
@media (max-width: 760px) {
  .mol-top { flex-direction: column; }
  .mol-side { flex: 1 1 auto; }
  #molCanvas { height: 260px; }
}

/* ================= 气体制备实验台 ================= */
.gas-wrap { padding: 14px; }
.gas-top { display: flex; gap: 14px; align-items: stretch; }
.gas-stage { flex: 1 1 auto; position: relative; }
#gasCanvas {
  width: 100%; height: 400px; display: block; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 45%, #0b0e1a 0%, #05060a 78%);
}
.gas-eq {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 700; color: #ffd7a8;
  background: rgba(10, 8, 20, .75); border: 1px solid rgba(255, 157, 92, .55);
  text-shadow: 0 0 10px rgba(255, 157, 92, .7);
}
.gas-eq i { font-style: normal; color: #ff8c42; font-size: 11px; }
.gas-side { flex: 0 0 280px; display: flex; flex-direction: column; gap: 10px; }
.gas-panel {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
.gas-dat { display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.gas-dat span { font-size: 10.5px; color: var(--sub); white-space: nowrap; }
.gas-dat b { font-size: 14px; color: #0f172a; font-variant-numeric: tabular-nums; }
.gas-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.gas-step {
  flex: 1 0 auto; min-width: 64px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 6px 8px; border-radius: 9px; cursor: pointer;
  background: #f6f8fb; border: 1px solid var(--line);
  color: #1f2937; transition: all .12s ease;
}
.gas-step b { font-size: 14px; font-weight: 800; color: #475569; }
.gas-step span { font-size: 9px; color: var(--sub); text-align: center; }
.gas-step:hover { background: rgba(8, 145, 178, .08); border-color: rgba(8, 145, 178, .45); }
.gas-step.done b { color: #16a34a; }
.gas-step.done { border-color: rgba(22, 163, 74, .45); background: rgba(22, 163, 74, .07); }
.gas-step.cur {
  background: linear-gradient(135deg, rgba(194, 65, 12, .14), rgba(202, 138, 4, .10));
  border-color: #ea580c; box-shadow: 0 0 10px rgba(234, 88, 12, .25);
}
.gas-step.cur b { color: #9a3412; }
.gas-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-btn {
  padding: 6px 14px; border-radius: 999px; font-size: 12px; cursor: pointer;
  background: linear-gradient(135deg, rgba(31, 95, 214, .14), rgba(139, 92, 246, .12));
  border: 1px solid rgba(31, 95, 214, .5); color: #1e3a8a;
  transition: all .12s ease;
}
.mini-btn:hover { box-shadow: 0 2px 10px rgba(31, 95, 214, .28); }
.mini-btn.on { background: linear-gradient(135deg, rgba(194, 65, 12, .16), rgba(202, 138, 4, .14)); border-color: rgba(194, 65, 12, .55); color: #9a3412; }
.gas-cap {
  font-size: 12.5px; line-height: 1.65; color: #334155;
  background: rgba(8, 145, 178, .05); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; min-height: 64px; flex: 1;
}
.gas-cap b { color: #b45309; }
@media (max-width: 760px) {
  .gas-top { flex-direction: column; }
  .gas-side { flex: 1 1 auto; }
  #gasCanvas { height: 300px; }
}

/* ================= v0.8 六步学习链 · 版面主轴 ================= */
section[id] { scroll-margin-top: 74px; }

/* 步骤徽章（section 标题左侧） */
.step-badge {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #0891b2, #7c3aed);
  color: #fff; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(8, 145, 178, .3);
}

/* hero 六步链条 stepper */
.chain {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center;
  max-width: 520px; margin: 0 auto 16px;
}
.chain a {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  background: rgba(8, 145, 178, .07); border: 1px solid rgba(8, 145, 178, .30);
  color: #0e7490; transition: background .12s ease;
}
.chain a i { font-style: normal; color: var(--cyan); font-weight: 800; }
.chain a:active { background: rgba(8, 145, 178, .18); }
.chain .ar { color: var(--muted); font-size: 11px; }
.hero-cta {
  display: inline-block; padding: 12px 36px; border-radius: 999px;
  background: var(--grad-btn); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(31, 95, 214, .35);
}
.hero-cta:active { transform: scale(.97); }

/* 六步进度看板 */
.dash { padding: 14px; }
.dash-sum {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.dash-sum .ds {
  text-align: center; padding: 10px 4px 8px; border-radius: 12px;
  background: #f4f6fb; border: 1px solid var(--line);
}
.dash-sum .ds b {
  display: block; font-size: 18px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dash-sum .ds span { font-size: 11px; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 560px) { .dash-grid { grid-template-columns: repeat(3, 1fr); } }
.dash-u {
  padding: 10px; border-radius: 12px;
  background: #f4f6fb; border: 1px solid var(--line);
}
.dash-u.done { border-color: rgba(8, 145, 178, .4); }
.dash-u .du-t {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.dash-u .du-t em {
  font-style: normal; margin-left: auto; padding-left: 4px;
  font-size: 10.5px; color: var(--muted); font-weight: 400; white-space: nowrap;
}
.dash-u.done .du-t em { color: var(--cyan); }
.dash-u .du-bar {
  height: 5px; border-radius: 3px; margin-top: 8px;
  background: rgba(15, 23, 42, .08); overflow: hidden;
}
.dash-u .du-bar i {
  display: block; height: 100%; border-radius: 3px;
  background: var(--grad); transition: width .4s ease;
}
.dash-note {
  font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; line-height: 1.6;
}

/* 底部快捷锚点导航条（家族底部 Tab 范式） */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 640px; z-index: 140;
  display: flex;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, .10);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 10.5px; color: var(--muted); padding: 4px 0; border-radius: 10px;
}
.bottomnav a i { font-style: normal; font-size: 17px; line-height: 1.2; }
.bottomnav a:active { color: var(--cyan); background: rgba(8, 145, 178, .08); }
.bottomnav a.on { color: var(--brand); }
body.in-unit .bottomnav { display: none; }
/* v0.12.9 桌面端有左栏六步导航，底部 tab 只给移动端 */
@media (min-width: 1101px) { .bottomnav { display: none; } }

/* ================= v0.12.12 左栏六步导航 · 质感升级版（老板令：别白板一块，跟全站渐变玻璃一家） ================= */
.sidenav {
  position: fixed; top: 16px; bottom: 16px; width: 216px;
  left: max(10px, calc(50% - 320px - 246px));
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 11px 11px; border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(31, 95, 214, .12) 0%, rgba(139, 92, 246, .05) 26%, rgba(255, 255, 255, .82) 60%),
    rgba(255, 255, 255, .78);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 14px 40px rgba(31, 95, 214, .16), 0 2px 8px rgba(15, 23, 42, .05);
  z-index: 90; overflow-y: auto;
}
.sn-brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 12px; border-bottom: 1px solid rgba(31, 95, 214, .14); margin-bottom: 9px; }
.sn-brand .logo {
  width: 38px; height: 38px; font-size: 19px; border-radius: 12px; flex: none;
  box-shadow: 0 4px 14px rgba(31, 95, 214, .40);
}
.sn-brand .tt b { font-size: 15px; display: block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sn-brand .tt span { font-size: 10.5px; color: var(--muted); }
.sn-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px;
  border-radius: 13px; cursor: pointer; color: var(--text); text-decoration: none;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.sn-item i {
  font-style: normal; font-size: 11.5px; font-weight: 800; width: 24px; height: 24px; flex: none;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: rgba(31, 95, 214, .10); color: #3b62b8;
  border: 1px solid rgba(31, 95, 214, .18);
  transition: background .15s, color .15s;
}
.sn-item b { font-size: 14px; display: block; line-height: 1.25; }
.sn-item span { font-size: 10.5px; color: var(--muted); display: block; }
.sn-item:hover { background: rgba(255, 255, 255, .9); transform: translateX(2px); box-shadow: 0 2px 10px rgba(31, 95, 214, .10); }
/* 当前项：全站 CTA 同款品牌渐变底白字——一眼锁定 */
.sn-item.on {
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(31, 95, 214, .38);
}
.sn-item.on i { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .35); }
.sn-item.on b { color: #fff; }
.sn-item.on span { color: rgba(255, 255, 255, .78); }
.sn-foot { margin-top: auto; padding-top: 9px; border-top: 1px solid rgba(31, 95, 214, .14); display: flex; flex-direction: column; gap: 3px; }
.sn-foot a {
  font-size: 12px; color: var(--sub); text-decoration: none; padding: 7px 11px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(31, 95, 214, .10);
  transition: background .15s, color .15s;
}
.sn-foot a:hover { background: rgba(31, 95, 214, .10); color: var(--brand); }
/* v0.12.14 授权卡（照搬题霸左栏 lic 版面：授权状态 + 解锁完整版 CTA + 客服 + 版卡） */
.lic {
  margin: 0 0 9px; padding: 11px 10px 10px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(31, 95, 214, .13), rgba(139, 92, 246, .06));
  border: 1px solid rgba(31, 95, 214, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.lic-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 9px; }
.lic-h b { font-size: 12.5px; color: var(--text); }
.lic-h i {
  font-style: normal; font-size: 10px; color: #b45309; white-space: nowrap;
  background: rgba(217, 119, 6, .12); border: 1px solid rgba(217, 119, 6, .32);
  padding: 2px 7px; border-radius: 999px;
}
/* v0.12.15 激活框（照题霸/语文家族版面：HX1 授权码粘贴即激活） */
.lic-row { display: flex; gap: 6px; margin-bottom: 9px; }
.lic-row input {
  flex: 1; min-width: 0; font-family: inherit; font-size: 11.5px; padding: 8px 10px;
  border-radius: 9px; border: 1px solid rgba(31, 95, 214, .25);
  background: rgba(255, 255, 255, .85); color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lic-row input:focus { border-color: #1f5fd6; box-shadow: 0 0 0 3px rgba(31, 95, 214, .15); }
.lic-row input::placeholder { color: #98a0ac; }
.lp-btn {
  flex: none; font-family: inherit; font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--grad-btn, linear-gradient(135deg, #1f5fd6, #8b5cf6));
  border: none; border-radius: 9px; padding: 8px 14px; cursor: pointer;
}
.lp-btn:active { transform: translateY(1px); }
.lic-cta { display: flex; flex-direction: column; gap: 7px; margin-bottom: 9px; }
.cta-primary {
  width: 100%; padding: 10px 8px; border: none; border-radius: 11px;
  background: var(--grad-btn); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(31, 95, 214, .35);
  transition: transform .15s, box-shadow .15s;
}
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 95, 214, .45); }
.cta-kf {
  width: 100%; padding: 9px 8px; border-radius: 11px;
  background: rgba(7, 193, 96, .10); border: 1px solid rgba(7, 193, 96, .35);
  color: #0a8f4d; font-size: 12px; font-weight: 600;
  transition: background .15s;
}
.cta-kf:hover { background: rgba(7, 193, 96, .18); }
.licchips { display: flex; flex-direction: column; gap: 6px; }
/* v0.12.18 两行布局：b+状态灯一行、描述整行第二行——216px 窄栏下描述不再被挤成竖排细条 */
.licchip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; padding: 8px 9px;
  border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(31, 95, 214, .16);
  transition: background .15s, transform .15s;
}
.licchip:hover { background: #fff; transform: translateX(2px); }
.licchip b { font-size: 12px; color: var(--text); flex: 1; }
.licchip span { flex: 1 1 100%; font-size: 10px; color: var(--muted); line-height: 1.4; }
.licchip i {
  font-style: normal; font-size: 10px; color: #9f1239; white-space: nowrap;
  background: rgba(225, 29, 72, .08); border: 1px solid rgba(225, 29, 72, .28);
  padding: 1px 6px; border-radius: 999px;
}
@media (max-width: 1100px) { .sidenav { display: none; } }

/* ================= v0.12.9 真题板块：单元开刷入口（醒目大按钮） ================= */
/* v0.12.10 桌面端 elem 板块三大实验室铺满右侧（老板令：周期表别缩窄列，拉满）：
   从内容左缘向右铺到视口右缘约 -28px——1440 视口周期表区从 ~350px 拓到 ~1000px，
   18 列格子放大、横向滚动条消失；左栏(212px)在更左侧互不干扰 */
@media (min-width:1101px){
  /* v0.12.14 老板令「元素周期表上面那两块要拉齐版面」：hero 与三大实验室同一宽度，上下一齐铺满 */
  #hero, #ptab, #atombld, #isolab { width: calc(50vw + 280px); }
  /* v0.12.13 锕系列号修复后 18 列真正铺满 ~1000px 宽（格子 ~54px），字号同步放大到相称尺寸 */
  #ptab .pt-grid { gap: 4px; }
  #ptab .pt-cell b { font-size: 17px; }
  #ptab .pt-cell span { font-size: 11px; }
  #ptab .pt-cell i { font-size: 9px; }
  #ptab .pt-ph { font-size: 10px; }
}

.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.exam-card {
  display: flex; align-items: center; gap: 10px; padding: 13px 12px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  cursor: pointer; text-align: left; font-family: inherit;
  box-shadow: 0 1px 4px rgba(17, 24, 39, .05);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.exam-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31, 95, 214, .13); border-color: rgba(31, 95, 214, .35); }
.exam-card .eicon { font-size: 22px; flex: none; }
.exam-card .etxt { flex: 1; min-width: 0; }
.exam-card .etxt b { font-size: 13px; display: block; line-height: 1.3; }
.exam-card .etxt i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.exam-card .earrow { font-size: 11px; color: var(--brand); font-weight: 700; flex: none; }
@media (max-width: 480px) { .exam-grid { grid-template-columns: 1fr; } }

/* ================= v0.10.0 PhET 动手交互四件套 ================= */
/* 拼分子工坊 */
.mb-stage { display: flex; flex-direction: column; gap: 8px; }
.mb-stage canvas { height: 190px; }
.mb-zone {
  min-height: 108px; border: 1.5px dashed rgba(8, 145, 178, .35); border-radius: 14px;
  background: rgba(8, 145, 178, .05); display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: center; padding: 10px;
}
.mb-atom {
  --ec: #9aa7c9;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ec);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), transparent 55%), var(--ec);
  color: #0b0e17; font-weight: 800; font-size: 15px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .18); transition: transform .15s;
}
.mb-atom i { font-style: normal; font-size: 9.5px; font-weight: 600; opacity: .75; }
.mb-atom:active { transform: scale(.92); }
.mb-atom-sm { width: 46px; height: 46px; font-size: 13.5px; }
.mb-tray { margin-bottom: 10px; }
.mb-tray-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-col {
  --ec: #67e8f9;
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px;
  border: 1px solid rgba(8, 145, 178, .35); border-radius: 999px;
  font-weight: 700; color: var(--cyan); background: rgba(8, 145, 178, .06); font-size: 13px;
}
.mb-col i { font-style: normal; color: var(--sub); font-weight: 500; font-size: 11.5px; }

/* pH 试纸台 */
.ph-paper-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ph-paper {
  width: 96px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background: #f3f4ef; color: #333; font-size: 11.5px; font-weight: 700;
  border: 1px solid rgba(0, 0, 0, .15); box-shadow: 0 2px 8px rgba(15, 23, 42, .18);
  transition: background .8s ease;
}
.ph-paper.wet { box-shadow: 0 2px 12px rgba(8, 145, 178, .35); }
.ph-scale {
  position: relative; height: 14px; border-radius: 999px; margin: 4px 0 10px;
  background: linear-gradient(to right, #c81d25, #f07030, #f59e0b, #eab308, #a3b318, #5cb338, #22a884, #1f7fc4, #3b5bdb, #8b5cf6, #86198f);
}
.ph-marker {
  position: absolute; top: -15px; left: -9px; font-size: 12px; color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6); transition: left .6s ease; opacity: 0;
}

/* 配平对账台 */
.bl-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 4px; }
.bl-spec {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  background: #f7f9fc;
}
.bl-spec.ok { border-color: rgba(22, 163, 74, .55); background: rgba(22, 163, 74, .08); }
.bl-stp {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--cyan); font-weight: 800; cursor: pointer; line-height: 1;
}
.bl-stp:active { background: rgba(8, 145, 178, .15); }
.bl-coef { min-width: 18px; text-align: center; font-size: 15px; color: var(--cyan); }
.bl-f { font-weight: 700; font-size: 14.5px; }
.bl-plus { color: var(--sub); font-size: 13px; }
.bl-arrow { color: #b45309; font-weight: 800; font-size: 17px; margin: 0 6px; }
.bl-status {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--sub); font-weight: 700; font-size: 13px;
}
.bl-status.ok { border-color: rgba(22, 163, 74, .6); color: #16a34a; background: rgba(22, 163, 74, .1); }
.bl-bars { display: flex; flex-direction: column; gap: 7px; padding: 10px 0 2px; }
.bl-row { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 8px; }
.bl-row.ok .bl-bar { box-shadow: 0 0 8px rgba(22, 163, 74, .4); }
.bl-row.ok .bl-el { color: #16a34a; }
.bl-el { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; color: var(--sub); font-weight: 600; }
.bl-el i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(15, 23, 42, .25); }
.bl-side { display: flex; align-items: center; gap: 6px; }
.bl-side.r { flex-direction: row-reverse; justify-content: flex-start; }
.bl-side span { font-size: 12px; color: var(--sub); min-width: 22px; font-weight: 700; }
.bl-bar {
  height: 13px; border-radius: 999px; min-width: 4px;
  background: var(--ec, #9aa7c9); box-shadow: 0 2px 6px rgba(15, 23, 42, .15);
  transition: width .35s ease;
}
.bl-bar.r { background: var(--ec, #9aa7c9); }
.bl-row.ok .bl-side span { color: #16a34a; }

/* ================= v0.11.0 PhET 动手交互三件套 ================= */
/* 同位素丰度台 */
.it-tray { margin-top: 4px; }
.it-sample {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px;
  min-height: 44px; border: 1.5px dashed rgba(8, 145, 178, .3); border-radius: 12px;
  background: rgba(8, 145, 178, .04); padding: 8px 10px;
}
.it-dot {
  --ec: #7ce7ff;
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ec);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.28), transparent 55%), var(--ec);
  color: #0b0e17; font-weight: 800; font-size: 11.5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: transform .12s;
}
.it-dot:active { transform: scale(.9); }
.it-avg { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0 2px; }
.it-avg span { color: var(--sub); font-size: 13px; }
.it-avg b { font-size: 30px; font-weight: 900; letter-spacing: .5px; }

/* 三态粒子台 */
.sl-lab { display: flex; justify-content: space-between; color: var(--sub); font-size: 13px; font-weight: 600; margin: 6px 0 2px; }
.sl-lab b { color: var(--cyan); }
.sl-range { width: 100%; margin: 0 0 4px; accent-color: #0891b2; }

/* 浓度-颜色联动台 */
.cc-stage { display: flex; align-items: center; justify-content: center; }
.cc-glass {
  position: relative; width: 150px; height: 220px; border: 2.5px solid rgba(15, 23, 42, .22);
  border-top: none; border-radius: 10px 10px 26px 26px; overflow: hidden;
  background: rgba(15, 23, 42, .035); box-shadow: inset 0 0 24px rgba(8, 145, 178, .10);
}
.cc-liquid { position: absolute; left: 0; right: 0; bottom: 0; transition: height .5s, opacity .5s, background .5s; }
.cc-spoon { position: absolute; top: 8px; right: 8px; font-size: 14px; opacity: .9; }
.cc-scale {
  position: absolute; top: 0; bottom: 0; right: 6px; display: flex; flex-direction: column;
  justify-content: space-between; font-size: 10px; color: rgba(15, 23, 42, .4);
}
.cc-precip { margin-top: 8px; font-size: 13px; color: #b45309; font-weight: 700; text-align: center; }
