:root {
  --c-brand: #FF6B35;
  --c-brand-d: #E2541F;
  --c-ink: #222;
  --c-sub: #888;
  --c-line: #ececec;
  --c-bg: #f6f7f9;
  --c-card: #fff;
  --c-ok: #18a058;
  --c-no: #e0413b;
  --radius: 16px;
  --maxw: 480px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--c-bg); color: var(--c-ink);
  font-size: 16px; line-height: 1.5;
  padding-bottom: 64px;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; background: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}
.brand { font-weight: 700; font-size: 17px; color: var(--c-brand); }
.day-select {
  margin-left: auto; max-width: 200px; padding: 6px 10px;
  border: 1px solid var(--c-line); border-radius: 10px;
  font-size: 14px; background: #fff; color: var(--c-ink);
}
.view { max-width: var(--maxw); margin: 0 auto; padding: 16px; }

/* 单词卡 */
.card {
  background: var(--c-card); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: 0 2px 12px rgba(0,0,0,.05);
  text-align: center;
}
.card .pic {
  width: 100%; height: 170px; border-radius: 12px;
  background: linear-gradient(135deg,#ffe9df,#ffd9c7);
  display: flex; align-items: center; justify-content: center;
  color: #c9764f; font-size: 14px; margin-bottom: 18px;
  overflow: hidden;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .word { font-size: 38px; font-weight: 700; margin: 4px 0; letter-spacing: .5px; }
.card .pos { color: var(--c-sub); font-size: 14px; margin-bottom: 14px; }
.card .zh { font-size: 22px; color: var(--c-ink); margin-bottom: 18px; }
.audio-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; flex-wrap: wrap; }
.btn-audio {
  border: 1px solid var(--c-brand); color: var(--c-brand);
  background: #fff; border-radius: 999px; padding: 8px 16px;
  font-size: 14px; cursor: pointer;
}
.btn-audio.playing { background: var(--c-brand); color: #fff; }
.btn-speed { border: 1px solid var(--c-line); color: var(--c-sub); background:#fff; border-radius:999px; padding:8px 12px; font-size:13px; cursor:pointer;}
.btn-speed.on { border-color: var(--c-brand); color: var(--c-brand); }
.example {
  background: #fafafa; border-radius: 12px; padding: 14px;
  text-align: left; margin-top: 6px;
}
.example .vi { font-size: 16px; }
.example .zh { font-size: 14px; color: var(--c-sub); margin-top: 4px; }
.example .tts { font-size: 12px; color: var(--c-brand); cursor: pointer; margin-top: 6px; display:inline-block;}

/* 翻页 */
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 10px; }
.pager .prog { flex: 1; height: 6px; background: var(--c-line); border-radius: 4px; overflow: hidden; }
.pager .prog > i { display: block; height: 100%; background: var(--c-brand); }
.pager button {
  border: none; background: var(--c-brand); color: #fff;
  border-radius: 10px; padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.pager button:disabled { background: #ccc; }

/* tab */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
  display: flex; background: var(--c-card); border-top: 1px solid var(--c-line);
  max-width: var(--maxw); margin: 0 auto;
}
.tab {
  flex: 1; border: none; background: none; padding: 10px 0 12px;
  color: var(--c-sub); font-size: 12px; cursor: pointer; display:flex; flex-direction:column; align-items:center; gap:3px;
}
.tab.active { color: var(--c-brand); font-weight: 600; }
.tab .ico { font-size: 20px; line-height: 1; }

/* 通用区块 */
.section-title { font-size: 15px; font-weight: 600; margin: 4px 0 14px; }
.muted { color: var(--c-sub); font-size: 14px; }
.center { text-align: center; padding: 40px 0; }

/* 测试 */
.quiz-q { font-size: 30px; font-weight: 700; text-align: center; margin: 20px 0; }
.quiz-opt {
  display: block; width: 100%; text-align: left; padding: 14px 16px;
  border: 1px solid var(--c-line); border-radius: 12px; margin-bottom: 10px;
  background: #fff; font-size: 16px; cursor: pointer;
}
.quiz-opt.right { border-color: var(--c-ok); background: #eafaf0; }
.quiz-opt.wrong { border-color: var(--c-no); background: #fdecec; }
.quiz-feedback { text-align:center; margin: 12px 0; min-height: 22px; }
.btn-primary {
  border: none; background: var(--c-brand); color:#fff; border-radius: 12px;
  padding: 14px; width: 100%; font-size: 16px; cursor: pointer; margin-top: 8px;
}

/* 打卡/统计 */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 12px 0; }
.stat { background: var(--c-card); border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 1px 6px rgba(0,0,0,.04);}
.stat b { display: block; font-size: 24px; color: var(--c-brand); }
.stat span { font-size: 12px; color: var(--c-sub); }

/* 阅读列表 */
.read-item { display:flex; justify-content: space-between; align-items:center; padding: 14px; background:#fff; border:1px solid var(--c-line); border-radius:12px; margin-bottom:10px; cursor:pointer;}
.read-item .t { font-weight: 600; }
.read-item .s { font-size: 12px; color: var(--c-sub); }
.read-item .play-ic { color: var(--c-brand); font-size: 18px; }
.read-item.active { border-color: var(--c-brand); background: #fff5f0; }
.read-item.active .play-ic { color: var(--c-brand-d); }

/* 阅读页（每日英语听力风格） */
.read-controls { background: #fff; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; }
.read-text { background: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 12px; max-height: 55vh; overflow-y: auto; }
.read-text .sentence { margin-bottom: 14px; }
.read-text .vi-line { font-size: 17px; line-height: 1.85; }
.read-text .vi-line .w { cursor: pointer; padding: 0 2px; border-radius: 3px; border-bottom: 1px dashed transparent; transition: background .15s; }
.read-text .vi-line .w:hover, .read-text .vi-line .w:active { background: #fff5f0; border-bottom-color: var(--c-brand); }
.read-text .zh-line { font-size: 14px; color: var(--c-sub); margin-top: 6px; line-height: 1.7; }
.read-player { background: #fff; border-radius: var(--radius); padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.read-player .muted { font-size: 13px; }

/* 单词弹窗 */
.word-popup { position: absolute; z-index: 100; background: #fff; border: 1px solid var(--c-brand); border-radius: 10px; padding: 12px 14px; max-width: 260px; box-shadow: 0 4px 16px rgba(0,0,0,.15); font-size: 14px; line-height: 1.5; }
.word-popup .wp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; }
.word-popup .wp-head b { color: var(--c-brand); font-size: 16px; }
.word-popup .wp-close { cursor: pointer; color: var(--c-sub); font-size: 18px; padding: 0 4px; line-height: 1; }
.word-popup .wp-zh { font-size: 15px; margin-bottom: 4px; }
.word-popup .wp-ex { margin-top: 6px; font-size: 13px; border-top: 1px solid #eee; padding-top: 6px; }
.word-popup .wp-note { margin-top: 8px; font-size: 12px; line-height: 1.45; color: #8a5a2b; background: #fff6ec; border: 1px solid #ffe0c2; border-radius: 8px; padding: 7px 9px; }
.word-popup .wp-multi { color: var(--c-sub); font-size: 12px; margin-bottom: 2px; }
.word-popup .wp-list { margin: 2px 0 4px; padding-left: 18px; }
.word-popup .wp-list li { font-size: 14px; margin: 1px 0; }
.word-popup .wp-src { margin-top: 8px; font-size: 11px; color: #aaa; border-top: 1px dashed #eee; padding-top: 5px; }

/* ---------- 热点页 ---------- */
.news-date { font-size: 13px; font-weight: 700; color: var(--c-sub); margin: 14px 2px 8px; display: flex; align-items: center; gap: 8px; }
.news-today { background: var(--c-brand); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.news-card { background: var(--c-card); border: 1px solid var(--c-line); border-radius: 12px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, transform .05s; }
.news-card:active { transform: scale(.99); }
.news-card:hover { border-color: var(--c-brand); }
.news-title { font-size: 15px; font-weight: 600; line-height: 1.5; }
.news-meta { font-size: 12px; color: var(--c-sub); margin-top: 5px; }
