/* ============================================================
   每日英语精听 - 深色紫主题（参考 LingoLens 风格）
   深色背景 + 紫色品牌色 + 当前句绿色 + 双色高亮词
   ============================================================ */

:root {
  --bg: #0a0a14;               /* 页面底色：蓝黑 */
  --bg-soft: #10101f;
  --card: #16162a;            /* 卡片：参考图蓝黑 */
  --card-2: #1a1a2e;
  --border: rgba(255, 255, 255, 0.09);
  --brand: #8b5cf6;            /* 品牌紫：进度/Tab/按钮 */
  --brand-soft: rgba(139, 92, 246, 0.16);
  --brand-deep: #7c3aed;
  --cur: #4ade80;              /* 当前句英文：语义绿 */
  --hl-a: #a78bfa;             /* 高亮词色 A：亮紫 */
  --hl-b: #2dd4bf;             /* 高亮词色 B：青绿 */
  --gold: #fbbf24;
  --danger: #f87171;
  --text: #e8eaf2;             /* 主文字 */
  --text-2: #9aa3b8;           /* 次要文字：中浅灰，保证可读 */
  --text-3: #6b7280;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.app-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; background: var(--bg); display: flex; flex-direction: column; }

/* ---------- 视频区（sticky 固定不动）---------- */
.video-wrap { position: sticky; top: 0; z-index: 90; background: #000; }
.video-wrap video { display: block; width: 100%; max-height: 38vh; object-fit: contain; background: #000; }
.video-overlay {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
}
.video-overlay > * { pointer-events: auto; }
.ov-btn {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.ov-btn:hover { background: rgba(0,0,0,0.65); }
.ov-title { color: #fff; font-size: 13.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.8); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-right { display: flex; gap: 8px; }
.ov-star { position: relative; }
.ov-star-badge {
  position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px;
  background: var(--brand); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.ov-star-badge.show { display: flex; }

/* ---------- 紫色进度条 ---------- */
.progress-line { display: flex; align-items: center; gap: 10px; padding: 8px 16px 6px; background: var(--bg); }
.progress-line .time-text { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 74px; text-align: center; }
input.seek-bar { flex: 1; appearance: none; height: 4px; border-radius: 99px; background: #26263a; outline: none; }
input.seek-bar::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--brand); cursor: pointer; box-shadow: 0 0 8px rgba(139,92,246,0.6); }
.progress-fill { position: relative; }

/* ---------- 模式 Tab ---------- */
.mode-tabs {
  display: flex; padding: 4px 16px 0; gap: 4px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow-x: auto;
  position: sticky; top: 0; z-index: 80;
}
.mode-tab {
  flex: 1; min-width: 64px; padding: 11px 2px 9px; background: none; border: none;
  font-size: 14px; font-weight: 600; color: var(--text-3); cursor: pointer;
  border-bottom: 2.5px solid transparent; transition: all 0.2s; white-space: nowrap;
}
.mode-tab:hover { color: var(--text-2); }
.mode-tab.active { color: #fff; border-bottom-color: var(--brand); }
.mode-tab .tab-badge {
  display: inline-block; margin-left: 4px; font-size: 10.5px; font-weight: 700;
  background: var(--brand-soft); color: var(--hl-a);
  border-radius: 99px; padding: 0 7px; vertical-align: 1px;
}

/* ---------- 快捷栏 ---------- */
.quick-bar { display: flex; gap: 8px; padding: 10px 16px; background: var(--bg); overflow-x: auto; }
.quick-chip {
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  border-radius: 999px; padding: 5px 14px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.quick-chip:hover { color: #fff; border-color: var(--brand); }
.quick-chip.on { background: var(--brand-soft); border-color: var(--brand); color: #c4b5fd; }

/* ---------- 当前句卡片 ---------- */
.now-card {
  margin: 6px 16px 14px; background: var(--card-2); border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.10);
  padding: 16px 18px 12px;
}
.now-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.now-no {
  font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 1px 11px; border-radius: 99px;
}
.now-time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.now-en { font-size: 19px; font-weight: 650; color: var(--cur); line-height: 1.55; margin-bottom: 7px; }
.now-zh { font-size: 14.5px; color: var(--text-2); margin-bottom: 8px; }

/* 双色高亮词（参考图：objective truth 紫 / human being 青） */
.hl-word { display: inline-block; margin: 0 2px; font-weight: 750; cursor: pointer; border-bottom: 2px solid; border-radius: 2px; padding: 0 2px; transition: background 0.15s; }
.hl-word.color-a { color: var(--hl-a); border-bottom-color: rgba(167, 139, 250, 0.55); }
.hl-word.color-b { color: var(--hl-b); border-bottom-color: rgba(45, 212, 191, 0.55); }
.hl-word:hover { background: rgba(139, 92, 246, 0.12); }
.hl-word.added { background: rgba(251, 191, 36, 0.12); }

/* 逐词卡拉OK高亮：念到的词亮起，念过恢复 */
.tk { border-radius: 4px; padding: 0 1px; transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, text-shadow 0.12s ease; }
.tk.w-on {
  color: #ffffff !important;
  background: rgba(139, 92, 246, 0.38);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.45), inset 0 0 4px rgba(255, 255, 255, 0.08);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.tk.w-on.hl-word { border-bottom-color: transparent; }

/* 下划线词槽（参考视频：一个下划线对应一个单词，回车提交判定） */
.ws-wrap { position: relative; display: inline-block; }
.ws-slot {
  display: inline-block; min-width: 2.6ch;
  background: transparent; border: none;
  border-bottom: 2.5px solid rgba(255, 255, 255, 0.32);
  color: #fff; font-size: inherit; font-weight: 650; line-height: inherit;
  text-align: center; outline: none; padding: 0 4px 2px;
  margin: 0 3px; font-family: inherit; transition: border-color 0.15s, color 0.15s;
  vertical-align: baseline;
}
.ws-slot:focus { border-bottom-color: var(--gold); }          /* 当前光标槽：黄色下划线（参考App） */
.ws-slot.ok { color: var(--cur); border-bottom-color: rgba(74, 222, 128, 0.75); }  /* 答对：绿色 */
.ws-slot.err { color: var(--danger); border-bottom-color: var(--danger); animation: shakeX 0.3s; } /* 答错：红色+抖动 */
.ws-slot.ok, .ws-slot.err { pointer-events: none; }
@keyframes shakeX { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* 答对奖励：✨ 星星弹出 */
.star-pop {
  position: absolute; top: -30px; left: 50%; pointer-events: none;
  font-size: 21px; animation: starPop 1.1s forwards; z-index: 5; white-space: nowrap;
}
.star-pop.combo::after {
  content: attr(data-combo); position: absolute; left: 26px; top: 4px;
  font-size: 11px; font-weight: 800; color: var(--gold);
  background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 0 7px; border-radius: 99px; white-space: nowrap;
}
@keyframes starPop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.4); }
  30% { opacity: 1; transform: translate(-50%, -6px) scale(1.3); }
  70% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -26px) scale(1); }
}

/* 全句完成庆祝：彩带星雨 */
.burst {
  position: absolute; top: -12px; left: 50%; pointer-events: none;
  font-size: 20px; animation: burstFly 1.3s forwards; z-index: 6;
}
@keyframes burstFly {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.3); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1) rotate(var(--rot)); }
}

/* 连击徽标 */
.combo-badge {
  display: none; font-size: 11px; font-weight: 800; color: var(--gold);
  background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 1px 9px; border-radius: 99px; margin-left: 7px; vertical-align: 1px;
  animation: comboIn 0.25s;
}
.combo-badge.show { display: inline-block; }
@keyframes comboIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.dict-tip { font-size: 12px; color: var(--text-3); margin-top: 8px; }
.dict-slots { line-height: 2.3; }

.blank-slot {
  display: inline-block; min-width: 80px; text-align: center;
  background: var(--brand-soft); border: 1.5px dashed var(--brand);
  border-radius: 8px; padding: 0 10px; margin: 0 2px;
  font-weight: 700; color: var(--hl-a); cursor: pointer;
}
.blank-slot.revealed { background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.4); color: var(--hl-b); }

/* 卡片操作行：收藏 / 笔记 / 解析 */
.now-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.act-btn {
  border: none; background: none; color: var(--text-2); font-size: 12.5px; font-weight: 600;
  padding: 7px 12px; border-radius: 9px; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; gap: 5px;
}
.act-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.act-btn.on { color: var(--gold); }
.act-btn.ai { margin-left: auto; color: var(--hl-a); }
.act-btn.ai:hover { color: #c4b5fd; }

/* 解析展开区 */
.analysis-box {
  margin-top: 10px; background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 11px; padding: 12px 15px; font-size: 13.5px; color: var(--text);
  line-height: 1.9; display: none;
}
.analysis-box.show { display: block; animation: fadeIn 0.25s; }
.analysis-box .ab-tag { font-size: 11px; font-weight: 800; color: var(--hl-a); letter-spacing: 1px; display: block; margin-bottom: 4px; }

/* 笔记展开区 */
.note-box { margin-top: 10px; display: none; }
.note-box.show { display: block; animation: fadeIn 0.25s; }
.note-box textarea {
  width: 100%; min-height: 74px; background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--border); border-radius: 11px; padding: 10px 13px;
  font-size: 13.5px; font-family: inherit; outline: none; resize: vertical;
}
.note-box textarea:focus { border-color: var(--brand); }
.note-save { margin-top: 8px; float: right; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* 听写 / 跟读区 */
.dictation-area { margin-top: 6px; }
.dictation-input {
  width: 100%; padding: 10px 14px; background: var(--bg-soft); color: #fff;
  border: 1.5px solid var(--border); border-radius: 11px; font-size: 14.5px; outline: none;
  transition: border 0.2s;
}
.dictation-input:focus { border-color: var(--brand); }
.dictation-input::placeholder { color: var(--text-3); }
.dictation-result { font-size: 15px; line-height: 2; margin-top: 8px; word-break: break-word; }
.dictation-result .w-ok { color: var(--cur); font-weight: 650; }
.dictation-result .w-err { color: var(--danger); font-weight: 650; text-decoration: line-through; }
.dictation-result .w-miss { color: var(--gold); border-bottom: 2px dotted var(--gold); font-weight: 650; }
.repeat-area { margin-top: 6px; text-align: center; font-size: 13px; color: var(--text-2); background: var(--brand-soft); border-radius: 10px; padding: 9px; }

/* ---------- 跟读录音 ---------- */
.rec-controls { display: flex; gap: 10px; margin-top: 10px; justify-content: center; flex-wrap: wrap; }
.rec-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: none;
  color: var(--text-2); border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer; transition: all .15s;
}
.rec-btn:hover { color: #fff; border-color: var(--brand); }
.rec-btn.recing { color: #f87171; border-color: rgba(248, 113, 113, .5); animation: recPulse 1.2s infinite; }
@keyframes recPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, .35); }
  50% { box-shadow: 0 0 0 7px rgba(248, 113, 113, 0); }
}
.rec-btn.play-mine { color: var(--cur); border-color: rgba(74, 222, 128, .4); }

/* ---------- 句内工具行（播放控制）---------- */
.now-tools { display: flex; justify-content: center; gap: 26px; margin: 2px 16px 14px; }
.nt-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.nt-btn:hover { border-color: var(--brand); transform: translateY(-2px); }
.nt-btn.main { background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 18px rgba(139,92,246,0.35); }
.nt-btn.main:hover { background: var(--brand-deep); }
.nt-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.nt-btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--hl-a); }

/* ---------- 字幕时间轴列表（参考图样式）---------- */
.sublist { margin: 4px 16px 18px; }
.sublist-head { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 0 2px 8px; display: flex; justify-content: space-between; }
.sublist-head .hint { font-weight: 400; font-size: 11.5px; color: var(--text-3); }
.sub-item { padding: 10px 13px; margin-bottom: 6px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; transition: all 0.15s; }
.sub-item:hover { background: var(--card); }
.sub-item.current { background: var(--card-2); border-color: rgba(139, 92, 246, 0.4); box-shadow: 0 2px 16px rgba(139, 92, 246, 0.12); }
.sub-item.current .si-en { color: var(--cur); }
.sub-item .si-time { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.sub-item .si-en { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sub-item .si-zh { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sub-item .si-star { color: var(--gold); font-size: 11px; }

/* ---------- 词卡模式 ---------- */
.wordcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 6px 16px 18px; }
.wcard { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 14px 15px; transition: all 0.2s; }
.wcard:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); }
.wcard .wc-word { font-size: 16.5px; font-weight: 750; color: #fff; }
.wcard .wc-word .wc-sent { font-size: 10px; color: var(--text-3); font-weight: 600; margin-left: 6px; }
.wcard .wc-phon { font-size: 12px; color: var(--hl-a); font-family: Georgia, serif; margin: 2px 0 4px; }
.ph-line { display: flex; align-items: center; gap: 5px; line-height: 1.7; border-radius: 5px; padding: 0 3px; margin: 0 -3px; transition: background .3s; }
.ph-tag { font-family: -apple-system, sans-serif; font-size: 10px; color: var(--text-3); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; flex: none; }
.ph-line.ph-flash { animation: phFlash 1.1s ease-out; }
@keyframes phFlash {
  0% { background: rgba(139, 92, 246, .35); color: #fff; }
  100% { background: transparent; }
}
.wcard .wc-zh { font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.wcard .wc-actions { display: flex; gap: 8px; }
.wc-btn {
  flex: 1; border: 1px solid var(--border); background: none; border-radius: 8px;
  padding: 5px 0; font-size: 12px; cursor: pointer; color: var(--text-2); transition: all 0.15s;
}
.wc-btn:hover { color: #fff; border-color: var(--brand); }
.wc-btn.added { color: var(--gold); border-color: rgba(251,191,36,0.4); }

/* 提示按钮点出：词槽内浅灰答案 */
.ws-slot::placeholder { color: rgba(255, 255, 255, .26); letter-spacing: .5px; }

/* ---------- 难度徽标 & 类别标签（词卡/弹窗/生词本共用） ---------- */
.lv-tag { display: inline-flex; align-items: center; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: 1px; white-space: nowrap; }
.lv-gk    { background: rgba(74, 222, 128, .14);  color: #4ade80; }
.lv-cet4  { background: rgba(96, 165, 250, .14);  color: #60a5fa; }
.lv-cet6  { background: rgba(167, 139, 250, .16);  color: #a78bfa; }
.lv-tem8  { background: rgba(244, 114, 182, .16);  color: #f472b6; }
.lv-ielts { background: rgba(251, 146, 60, .16);   color: #fb923c; }
.lv-toefl { background: rgba(251, 191, 36, .16);   color: #fbbf24; }
.cat-tag { display: inline-flex; align-items: center; font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--text-3); border: 1px solid var(--border); white-space: nowrap; }
.wc-head { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.ext-mark { font-size: 10px; font-weight: 700; color: var(--gold); border: 1px dashed rgba(251, 191, 36, .5); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
.filter-chips { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; }
.m-tags { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 5px 0 3px; }
.di-word { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- 抽屉（收藏夹 / 生词本）---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 200; display: none; backdrop-filter: blur(2px); }
.drawer-mask.show { display: block; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: min(370px, 92vw);
  background: var(--bg-soft); z-index: 201; transform: translateX(100%);
  transition: transform 0.28s; display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}
.drawer.show { transform: translateX(0); box-shadow: -16px 0 50px rgba(0,0,0,0.5); }
.drawer-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-head h3 { font-size: 16px; color: #fff; }
.drawer-close { border: none; background: var(--card); color: var(--text-2); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.drawer-close:hover { color: #fff; }
.drawer-tabs { display: flex; gap: 8px; padding: 12px 18px 0; }
.drawer-tab {
  flex: 1; padding: 8px 0; border-radius: 999px; border: 1px solid var(--border);
  background: none; color: var(--text-2); font-size: 13px; font-weight: 700; cursor: pointer;
}
.drawer-tab.active { background: var(--brand-soft); border-color: var(--brand); color: #c4b5fd; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 18px 20px; }
.d-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 15px; margin-bottom: 10px; }
.d-item .di-en { font-size: 14.5px; font-weight: 650; color: #fff; line-height: 1.5; }
.d-item .di-zh { font-size: 12.5px; color: var(--text-2); margin-top: 3px; }
.d-item .di-word { font-size: 16px; font-weight: 750; color: #fff; }
.d-item .di-phon { font-size: 12px; color: var(--hl-a); font-family: Georgia, serif; }
.d-item .di-mean { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.d-item .di-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.d-item .di-note { font-size: 12px; color: var(--gold); background: rgba(251,191,36,0.08); border-radius: 8px; padding: 6px 10px; margin-top: 6px; line-height: 1.6; }
.d-item .di-ops { display: flex; gap: 6px; }
.di-op { border: none; background: none; cursor: pointer; font-size: 13px; padding: 4px 8px; border-radius: 7px; color: var(--text-3); }
.di-op:hover { background: rgba(255,255,255,0.07); color: #fff; }
.di-op.go { color: var(--hl-b); font-size: 12px; font-weight: 700; }
.d-empty { text-align: center; padding: 70px 20px; color: var(--text-3); font-size: 13.5px; }
.d-empty .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal-mask.show { display: flex; }
.modal { background: var(--card-2); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; max-width: 380px; width: 100%; text-align: center; }
.modal .m-word { font-size: 26px; font-weight: 800; color: #fff; }
.modal .m-phon { font-size: 14.5px; color: var(--hl-a); font-family: Georgia, serif; margin: 4px 0 8px; }
.modal .m-zh { font-size: 14px; color: var(--text-2); margin-bottom: 20px; line-height: 1.8; }
.modal .m-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 10px 22px; border-radius: 11px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; transition: all 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-outline { background: none; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { color: #fff; border-color: var(--brand); }

/* ---------- 商品导流卡（参考图电商卡）---------- */
.goods-card {
  margin: 6px 16px 16px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 15px 16px; display: flex; align-items: center; gap: 13px;
  cursor: pointer; transition: all 0.2s;
}
.goods-card:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-2px); }
.goods-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #6d28d9);
  display: flex; align-items: center; justify-content: center; font-size: 25px;
}
.goods-info { flex: 1; min-width: 0; }
.goods-title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.4; }
.goods-sub { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
.goods-price { text-align: right; }
.goods-price .p { font-size: 17px; font-weight: 800; color: var(--gold); }
.goods-price .p small { font-size: 11px; }
.goods-price .sold { font-size: 10.5px; color: var(--text-3); }
.goods-arrow { color: var(--text-3); font-size: 18px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 36px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: #26263a; color: #fff; border: 1px solid var(--border);
  padding: 10px 22px; border-radius: 999px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: all 0.3s; z-index: 400; max-width: 86vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页（深色主题）---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 15%, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, #131327 0%, #0a0a14 70%);
  padding: 48px 22px 40px; text-align: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero .site-name { font-size: 28px; font-weight: 800; letter-spacing: 1px; color: #fff; }
.hero .site-name .dot { color: var(--brand); }
.hero .site-en { font-size: 12px; color: var(--text-3); margin-top: 4px; font-family: Georgia, serif; letter-spacing: 3px; }
.hero .hero-slogan { font-size: 14.5px; margin: 16px auto 0; max-width: 330px; color: var(--text-2); }
.hero .hero-badge {
  display: inline-block; margin-top: 16px; background: var(--brand-soft);
  border: 1px solid rgba(139, 92, 246, 0.4); border-radius: 999px; padding: 5px 15px;
  font-size: 12px; color: #c4b5fd;
}
.home-section { padding: 24px 16px 4px; }
.home-section-title { font-size: 16.5px; font-weight: 700; color: #fff; margin: 0 4px 12px; display: flex; justify-content: space-between; align-items: center; }
.home-section-title .more { font-size: 12px; font-weight: 400; color: var(--text-3); }

.ep-card {
  display: flex; gap: 13px; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px; margin-bottom: 11px;
  align-items: center; cursor: pointer; transition: all 0.2s;
}
.ep-card:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(139, 92, 246, 0.12); }
.ep-cover {
  width: 104px; height: 66px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), #4c1d95);
  display: flex; align-items: center; justify-content: center;
  color: #c4b5fd; font-size: 12px; font-weight: 700; position: relative; overflow: hidden;
}
.ep-cover .cover-tag { position: absolute; top: 0; left: 0; background: var(--cur); color: #052e12; font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 0 0 8px 0; }
.ep-cover.dim { background: linear-gradient(135deg, #23233a, #33334d); color: var(--text-3); }
.ep-cover.dim .cover-tag { background: var(--text-3); color: #fff; }
.ep-info { flex: 1; min-width: 0; }
.ep-num { font-size: 11px; color: var(--hl-a); font-weight: 700; letter-spacing: 0.5px; }
.ep-title { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.4; }
.ep-meta { font-size: 11.5px; color: var(--text-3); margin-top: 5px; display: flex; gap: 9px; flex-wrap: wrap; }
.ep-meta .free-tag { color: var(--cur); font-weight: 700; }
.ep-play-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft);
  color: var(--hl-a); border: none; font-size: 14px; flex-shrink: 0; cursor: pointer;
}

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 22px 16px 4px; }
.feature-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 4px; text-align: center; }
.feature-item .fi-icon { font-size: 23px; margin-bottom: 5px; }
.feature-item .fi-name { font-size: 11.5px; font-weight: 700; color: var(--text-2); }

.home-footer { text-align: center; padding: 24px 16px 34px; font-size: 11.5px; color: var(--text-3); }
.home-footer a { color: var(--hl-a); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (min-width: 900px) {
  .app-shell { box-shadow: 0 0 80px rgba(139, 92, 246, 0.06); }
}
@media (max-width: 420px) {
  .now-en { font-size: 17.5px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .wordcard-grid { grid-template-columns: 1fr; }
}
