/* 跟着方块学英语 H5 —— ShadoLab 影读风格（桌面分栏 / 手机自适应） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* logo 禁止文字选中（连点打开白名单管理） */
.logo { user-select: none; -webkit-user-select: none; }
:root {
  --blue: #2f6fed;
  --blue-soft: #e8f0fe;
  --green: #22b35a;
  --green-soft: #e6f7ec;
  --red: #f53f3f;
  --orange: #f5912b;
  --amber: #f6b800;
  --ink: #1f2329;
  --ink2: #444b54;
  --sub: #8a919e;
  --line: #e8eaed;
  --bg: #f4f5f7;
  --card: #ffffff;
  --pink: #fde9ed;
}
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px; line-height: 1.55;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ============ 顶部导航 ============ */
.topnav {
  height: 50px; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 26px;
  position: sticky; top: 0; z-index: 40;
}
.logo { font-size: 18px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; text-decoration: none; color: inherit; }
.logo .accent { color: var(--green); }
.logo .bar { color: #cdd2d8; font-weight: 400; margin: 0 6px; }
.logo .cn { color: var(--ink2); font-size: 15px; font-weight: 600; }
.navLinks { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.navLinks a, .navLinks .nl {
  font-size: 14px; color: #555d68; cursor: pointer; white-space: nowrap;
}
.navLinks a:hover, .navLinks .nl:hover { color: var(--blue); }
.navIcon {
  width: 32px; height: 32px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 15px; cursor: pointer;
}

/* ============ 首页布局 ============ */
.homeWrap { display: flex; align-items: flex-start; gap: 18px; padding: 18px 26px 40px; max-width: 1680px; margin: 0 auto; }
.sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 66px; }

.statPanel { background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.statRow {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
  border-bottom: 1px solid #f2f3f5;
}
.statRow:last-child { border-bottom: none; }
.statRow:hover { background: #fafbfc; }
.statIco {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.ico-blue { background: var(--blue-soft); }
.ico-orange { background: #fff2e3; }
.ico-green { background: var(--green-soft); }
.ico-red { background: #ffecec; }
.statName { flex: 1; min-width: 0; }
.statName b { display: block; font-size: 14px; color: var(--ink); }
.statName span { font-size: 12px; color: var(--sub); }
.statNum { font-size: 17px; font-weight: 800; }
.statNum.c-blue { color: var(--blue); }
.statNum.c-orange { color: var(--orange); }
.statNum.c-green { color: var(--green); }
.statNum.c-red { color: var(--red); }

.filterPanel {
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  margin-top: 14px; padding: 16px;
}
.filterHead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.filterHead b { font-size: 15px; }
.filterClear { font-size: 12px; color: var(--sub); cursor: pointer; }
.fGroup { margin-bottom: 12px; }
.fLabel { font-size: 13px; color: var(--ink2); margin-bottom: 7px; font-weight: 600; }
.fRow { display: flex; align-items: center; gap: 10px; }
.fSelect {
  flex: 1; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; font-size: 13px; color: var(--ink2); background: #fff;
}
.starPick { color: #cfd4db; font-size: 17px; letter-spacing: 2px; cursor: pointer; user-select: none; }
.starPick .on { color: var(--amber); }
.chipBox { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 4px 12px; border-radius: 20px;
  border: 1px solid var(--line); color: #555d68; background: #fff; cursor: pointer;
}
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.filterBtn {
  width: 100%; height: 40px; margin-top: 6px; border: none; border-radius: 9px;
  background: #2b3542; color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* 主内容 */
.content { flex: 1; min-width: 0; }
.tabRow { display: flex; gap: 10px; margin-bottom: 16px; }
.tabPill {
  padding: 7px 20px; border-radius: 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: #555d68;
}
.tabPill.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.seasonPill { padding: 5px 15px; font-size: 13px; }
.videoGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.vCard { background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.vCard:hover { box-shadow: 0 6px 20px rgba(31,35,41,.09); }
.thumb { position: relative; aspect-ratio: 16/9; background: #dfe4e0; display: block; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 锁定遮罩：未登录时非第1期显示 */
.lockOverlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.lockBox { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; }
.lockIco { font-size: 30px; }
.lockTxt { font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.badgeTL {
  position: absolute; left: 9px; top: 9px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 6px; color: #fff;
}
.badge-free { background: rgba(34,179,90,.92); }
.badge-resume { background: rgba(47,111,237,.92); }
.badge-done { background: rgba(34,179,90,.92); }
.badgeTR {
  position: absolute; right: 9px; top: 9px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.thumbDur {
  position: absolute; left: 9px; bottom: 9px; font-size: 11px; color: #fff;
  background: rgba(0,0,0,.62); border-radius: 5px; padding: 1px 7px;
}
.thumbSrc {
  position: absolute; right: 9px; bottom: 9px; font-size: 11px; color: #fff;
  background: rgba(0,0,0,.5); border-radius: 5px; padding: 1px 7px;
}
.vInfo { padding: 11px 13px 13px; }
.vTitleRow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.vEp { font-size: 16px; font-weight: 800; }
.stars { color: var(--amber); font-size: 12px; letter-spacing: 1px; }
.stars .off { color: #d8dce2; }
.vMeta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.vTag { color: var(--blue); background: var(--blue-soft); border-radius: 5px; padding: 1px 7px; }
.vName { font-size: 14px; font-weight: 700; line-height: 1.45; margin-bottom: 4px; }
.vDesc { font-size: 12px; color: var(--sub); line-height: 1.5; height: 36px; overflow: hidden; }
.vFoot { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: 12px; color: var(--sub); }
.checkDot { color: var(--blue); font-weight: 600; }
.emptyTip { grid-column: 1/-1; text-align: center; color: var(--sub); padding: 60px 0; }

/* 课程分组（主播 · 季） */
.grp { margin-bottom: 30px; }
.grpTitle {
  font-size: 17px; font-weight: 800; margin: 2px 0 14px;
  display: flex; align-items: baseline; gap: 9px;
}
.grpTitle span { font-size: 12px; color: var(--sub); font-weight: 400; }

/* ============ 学习页布局 ============ */
.learnWrap { max-width: 1680px; margin: 0 auto; padding: 16px 26px 40px; }
.learnGrid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 22px; align-items: start; }
.lTitleRow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.lTitle { font-size: 22px; font-weight: 800; }
.lCheck {
  width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.lGear {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--card);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--sub); cursor: pointer;
}
.videoCard { background: var(--card); border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.videoCard video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }

.ctrlPanel {
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  margin-top: 14px; padding: 14px 10px;
  display: flex; justify-content: center; gap: 4px; flex-wrap: wrap;
}
.ctrl { text-align: center; width: 64px; cursor: pointer; user-select: none; }
.ctrl .b {
  width: 44px; height: 44px; margin: 0 auto 5px; border-radius: 50%;
  border: 1.5px solid #d9dde3; background: #fff; color: #444b54;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
}
.ctrl .t { font-size: 11px; color: var(--sub); }
.ctrl.play .b { width: 52px; height: 52px; background: var(--blue); border-color: var(--blue); color: #fff; }
.ctrl.on .b { background: var(--blue); border-color: var(--blue); color: #fff; }

.curCard {
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  margin-top: 14px; padding: 18px 20px; text-align: center;
}
.curEn { font-size: 21px; font-weight: 700; line-height: 1.75; }
.curZh { margin-top: 9px; font-size: 14px; color: #5b6470; }
.curPlaceholder { color: var(--sub); font-weight: 400; font-size: 15px; }

/* 字幕面板 */
.subPanel {
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  display: flex; flex-direction: column; max-height: calc(100vh - 100px);
  position: sticky; top: 74px;
}
.subHead {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid #f2f3f5; flex-wrap: wrap;
}
.subHead b { font-size: 18px; margin-right: 6px; }
.headBtn {
  min-width: 34px; height: 32px; padding: 0 10px; border-radius: 8px;
  border: 1.5px solid #d9dde3; background: #fff; color: #444b54; font-size: 13px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.headBtn.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.headSave {
  margin-left: auto; width: 34px; height: 32px; border-radius: 8px; border: none;
  background: var(--blue); color: #fff; font-size: 15px; cursor: pointer;
}
/* 训练模式胶囊组（精听/盲听/跟读） */
.modeCaps {
  display: none;
}

/* 盲听模式：文字用色块遮住 */
.blindHide .tok, .blindHide {
  color: transparent !important; text-shadow: none !important;
  background: #e8eaed !important; border-radius: 4px;
}
.blindHide { cursor: pointer; }
.blindHide .tok { cursor: pointer; }

.subScroll { flex: 1; overflow-y: auto; padding: 6px 12px 20px; background: #f5f6f8; }
.subLine {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-top: 8px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.03);
}
.subLine.active { border-top: 3px solid var(--amber); background: #fffdf4; }
.subLine.past { border-color: #e0e2e6; }
.subLineTop { display: flex; gap: 12px; align-items: flex-start; }
.subIdx {
  color: #c0c7d0; font-size: 13px; font-weight: 500;
  width: 22px; padding-top: 2px; flex-shrink: 0;
}
.subBody { flex: 1; min-width: 0; }
.subEn {
  font-size: 18px; line-height: 1.8; font-weight: 500;
  letter-spacing: 0.1px; color: #1f2329;
}
.subZh { font-size: 14px; color: #8a919e; margin-top: 4px; line-height: 1.6; }

.subIcons {
  display: flex; gap: 16px; margin-top: 10px; padding-top: 6px;
  border-top: 1px solid #f2f3f5;
}
.subIcon {
  font-size: 15px; color: #b8bfc8; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.subIcon:hover { color: var(--ink2); }
.subIcon.favOn { color: var(--red); }
.actBtn {
  width: 40px; height: 40px; border-radius: 50%; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: all .15s;
  border: none; flex-shrink: 0;
}
.actBtn:hover { transform: scale(1.06); }
.act-ai { background: #7c5cff; }
.act-rec { background: #f53f3f; }
.act-play { background: var(--blue); }
.act-my { background: #9aa5b1; }
.act-my.off { opacity: .42; }
.act-score { background: #ff7d00; font-size: 13px; }
.act-rec.recording { animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { box-shadow: 0 0 0 8px rgba(245,63,63,.25); } }
.actFav { margin-left: auto; font-size: 20px; color: #c4ccd5; cursor: pointer; }
.actFav.favOn { color: var(--red); }

/* 分析 / 评测弹层 */
.anaSentence {
  font-size: 15px; font-weight: 600; line-height: 1.65; margin-top: 10px;
  padding: 11px 13px; background: #f7f8fa; border-radius: 10px;
}
.anaZh { font-size: 13px; color: var(--sub); margin: 7px 2px 0; }
.anaGroup { margin-top: 13px; }
.anaLabel { font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.anaChips { display: flex; flex-wrap: wrap; gap: 8px; }
.anaChip {
  font-size: 13px; font-weight: 600; border-radius: 8px; padding: 6px 11px;
  cursor: pointer; border: 1px solid transparent;
}
.anaChip i { font-style: normal; font-weight: 400; color: #8a919e; margin-left: 6px; font-size: 12px; }
.anaEmpty { margin-top: 14px; font-size: 13px; color: var(--sub); line-height: 1.6; }
.anaTip { margin-top: 15px; font-size: 12px; color: #aeb5bf; border-top: 1px solid var(--line); padding-top: 11px; }
.demoTag {
  font-size: 10px; background: linear-gradient(90deg, #7c5cff, #b366ff); color: #fff;
  border-radius: 4px; padding: 1px 5px; vertical-align: 3px; margin-left: 3px;
}
.scAudios { display: flex; gap: 10px; margin-top: 11px; }
.scAudioBtn {
  font-size: 12px; color: var(--ink2); background: #f2f3f5; border-radius: 16px;
  padding: 6px 14px; cursor: pointer;
}
.scAudioBtn.off { opacity: .45; }
.scTop { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.scRing {
  width: 84px; height: 84px; border-radius: 50%; border: 7px solid #e8eaed;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.scRing b { font-size: 23px; color: var(--ink); }
.scRing span, .scMini span { font-size: 11px; color: var(--sub); }
.scMini {
  flex: 1; background: #f7f8fa; border-radius: 12px; padding: 13px 0;
  text-align: center; display: flex; flex-direction: column; gap: 2px;
}
.scMini b { font-size: 17px; }
.scWordsTitle { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.scWords { display: flex; flex-direction: column; gap: 7px; max-height: 30vh; overflow-y: auto; }
.scWord {
  display: flex; justify-content: space-between; align-items: center;
  background: #f7f8fa; border-radius: 10px; padding: 10px 13px;
}
.scWord b { font-size: 15px; }
.scPending { font-size: 12px; color: #aeb5bf; }
/* 色块（影读风：高亮底） */
.tok { cursor: pointer; transition: background .12s; }
.tok:hover { background: #eef2f7; border-radius: 4px; }
.c-tense { background: #fdf0b8; color: #1f2329; border-radius: 6px; padding: 2px 6px; margin: 0 1px; }
.c-phrase { background: #d5f4e0; color: #1a7f4a; border-radius: 6px; padding: 2px 6px; margin: 0 1px; font-weight: 600; }
.c-coll { background: #dbe9ff; color: #1f5fd6; border-radius: 6px; padding: 2px 6px; margin: 0 1px; font-weight: 600; }
.c-key { background: #ffe8d1; color: #e06d00; border-radius: 6px; padding: 2px 6px; margin: 0 1px; font-weight: 700; }
.c-gram { background: #ede9fe; color: #5c3dcb; border-radius: 6px; padding: 2px 6px; margin: 0 1px; font-weight: 600; }

/* 连续色块组：词间只留字距不留缝，让连续词的色块连成一片 */
.tokgrp { display: inline-flex; gap: 0.28em; border-radius: 6px; }
.tokgrp .tok { margin: 0; padding: 0; background: none !important; border-radius: 0; }

/* 卡拉OK：当前读到的词用浅绿色色块跳动指示 */
.tok.karaoke {
  background: #aed468 !important;
  color: #2a4d0f !important;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 3px;
}

/* ============ 词条卡 ============ */
.mask {
  position: fixed; inset: 0; background: rgba(20,26,35,.45); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wordCard {
  width: 100%; max-width: 480px; background: #fff; border-radius: 18px;
  padding: 22px; max-height: 84vh; overflow-y: auto; animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.95); opacity .3; } }
.wcHead { display: flex; align-items: center; gap: 12px; }
.wcStar { font-size: 22px; color: #c4ccd5; cursor: pointer; }
.starOn { color: var(--amber); }
.wcWord { flex: 1; font-size: 25px; font-weight: 800; }
.wcSpeak, .wcClose {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px;
}
.wcPhon { display: flex; gap: 10px; margin: 13px 0 5px; }
.phItem {
  font-size: 13px; color: var(--blue); background: var(--blue-soft);
  border-radius: 8px; padding: 6px 13px; cursor: pointer;
}
.wcTags { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0; }
.wcTag { font-size: 11px; background: var(--green-soft); color: var(--green); border-radius: 6px; padding: 2px 9px; }
.wcZh { font-size: 17px; font-weight: 700; margin: 6px 0; }
.wcEn { font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.wcExamples { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.wcEx { margin-bottom: 10px; }
.exEn { font-size: 14px; }
.exZh { font-size: 13px; color: var(--sub); }
.wcFoot { display: flex; gap: 10px; margin-top: 13px; }
.wcBtnPlain, .wcBtnAdd {
  flex: 1; text-align: center; border-radius: 10px; padding: 11px 0;
  font-size: 14px; cursor: pointer; border: 1px solid var(--line);
}
.wcBtnAdd { background: var(--blue); color: #fff; border-color: var(--blue); }
.wcAdded { background: #fff; color: var(--sub); }

.toast {
  position: fixed; left: 50%; bottom: 16%; transform: translateX(-50%);
  background: rgba(26,32,41,.9); color: #fff; font-size: 13px;
  padding: 9px 18px; border-radius: 20px; z-index: 99; pointer-events: none;
}

/* ============ 响应式 ============ */
@media (max-width: 1180px) {
  .videoGrid { grid-template-columns: repeat(2, 1fr); }
  html:not(.tablet) .learnGrid { grid-template-columns: 1fr; }
  html:not(.tablet) .subPanel { position: static; max-height: none; }
  html:not(.tablet) .subScroll { max-height: 60vh; }
}
@media (max-width: 820px) {
  .topnav { padding: 0 14px; height: 44px; }
  .logo { font-size: 16px; }
  .logo .cn { font-size: 14px; }
  .navLinks { gap: 16px; }
  .navLinks .nl.hide-m { display: none; }
  /* 手机端只显示 首页/收藏/联系/登录 四项，隐藏右侧搜索圆钮 */
  html:not(.tablet) .navIcon { display: none; }
  /* 手机端收起 logo 后缀“| 影读”，收紧间距，保证四项不溢出 */
  html:not(.tablet) .logo .bar,
  html:not(.tablet) .logo .cn { display: none; }
  html:not(.tablet) .navLinks { gap: 12px; }
  html:not(.tablet) .navLinks a,
  html:not(.tablet) .navLinks .nl { font-size: 13px; }
  .homeWrap { padding: 12px 12px 30px; display: block; }
  .sidebar { width: 100%; position: static; }
  .statPanel { display: flex; overflow-x: auto; }
  .statRow { flex-direction: column; gap: 4px; text-align: center; min-width: 96px; border-bottom: none; border-right: 1px solid #f2f3f5; }
  .filterPanel { display: none; }
  .videoGrid { grid-template-columns: 1fr; gap: 14px; }
  .learnWrap { padding: 10px 12px 30px; }
  .lTitle { font-size: 19px; }
  .curEn { font-size: 18px; }
  /* 手机端不显示"当前句"大卡片，字幕直接在下方列表随播放轮播 */
  html:not(.tablet) .curCard { display: none; }
  .ctrl { width: 52px; }
  .ctrl .b { width: 40px; height: 40px; font-size: 15px; }
  .ctrl.play .b { width: 46px; height: 46px; }
  html:not(.tablet) .subPanel { max-height: none; }
  .mask { padding: 16px; align-items: center; }
  .wordCard { border-radius: 18px; max-width: 340px; max-height: 78vh; }

  /* --- 仅手机端：整屏布局，压低标题/视频/控制条/字幕头，字幕列表吃满剩余高度（可同时看到两排字幕） --- */
  html:not(.tablet) .learnWrap {
    height: calc(100vh - 44px);
    height: calc(100dvh - 44px);
    padding: 8px 12px 0;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  html:not(.tablet) .learnGrid {
    flex: 1; min-height: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  /* 标题行手机端不显示 */
  html:not(.tablet) .lTitleRow { display: none; }
  /* 视频保持原始16:9比例完整显示，圆角卡片，左右留一点点边距 */
  html:not(.tablet) .videoCard { margin: 0 8px; border-radius: 14px; }
  html:not(.tablet) .videoCard video { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
  /* 控制条压低：只留圆形按钮，不要文字标签 */
  html:not(.tablet) .ctrlPanel { margin-top: 0; padding: 6px 4px 2px; }
  html:not(.tablet) .ctrl { width: 48px; }
  html:not(.tablet) .ctrl .b { width: 36px; height: 36px; font-size: 14px; }
  html:not(.tablet) .ctrl.play .b { width: 42px; height: 42px; }
  html:not(.tablet) .ctrl .t { display: none; }
  /* 字幕面板：吃满剩余高度，内部滚动，保证同时露出两排字幕 */
  html:not(.tablet) .subPanel { flex: 1 1 auto; min-height: 0; max-height: none; margin-bottom: 8px; }
  html:not(.tablet) .subScroll { flex: 1; min-height: 0; max-height: none; }
  /* 字幕头部压低 */
  html:not(.tablet) .subHead { flex-shrink: 0; gap: 6px; padding: 8px 10px; }
  html:not(.tablet) .subHead b { font-size: 16px; }
  html:not(.tablet) .headBtn { height: 28px; min-width: 30px; padding: 0 8px; font-size: 12px; }
  /* 字幕卡片略收紧 */
  html:not(.tablet) .subLine { padding: 12px 14px; }
  html:not(.tablet) .subEn { line-height: 1.65; }
  html:not(.tablet) .subIcons { margin-top: 6px; padding-top: 4px; }
}

/* ===== 联系弹层 ===== */
.ctMask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 24, 30, .45);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  -webkit-animation: ctFade .18s ease; animation: ctFade .18s ease;
}
@keyframes ctFade { from { opacity: 0 } to { opacity: 1 } }
.ctBox {
  position: relative; background: #fff; border-radius: 20px;
  width: 100%; max-width: 340px; padding: 30px 26px 26px;
  text-align: center; box-shadow: 0 20px 60px rgba(20, 24, 30, .22);
}
.ctClose {
  position: absolute; top: 10px; right: 16px; font-size: 24px; line-height: 1;
  color: #b4bac3; cursor: pointer;
}
.ctClose:hover { color: #6b7280; }
.ctIcon { font-size: 44px; line-height: 1; margin-bottom: 12px; }
.ctTitle { font-size: 19px; font-weight: 800; color: #1f2329; margin-bottom: 10px; }
.ctDesc { font-size: 13px; color: #8a919e; line-height: 1.8; margin-bottom: 18px; }
.ctWxRow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #f2f7f3; border: 1px dashed #3f9d5b; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px;
}
.ctWx {
  font-size: 20px; font-weight: 800; letter-spacing: 1px; color: #1a7f4a;
  font-family: Consolas, "Courier New", monospace; user-select: all; -webkit-user-select: all;
}
.ctCopy {
  flex-shrink: 0; border: none; cursor: pointer;
  background: #2f9e44; color: #fff; font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px;
}
.ctCopy:active { background: #268237; }
.ctHint { font-size: 12px; color: #a2a8b1; line-height: 1.7; }
