/* ============================================================================
   36new · 视觉主题「白昼太空舱 / Space Capsule · Daylight」
   ----------------------------------------------------------------------------
   设计意图：
     第一版深空夜航被否——太暗、太压抑。本版把舱门拉开窗帘：
     云白做底、淡蓝星点做装饰、白色玻璃卡片做舱壁，星黄/极光绿/
     天蓝三束亮色点缀。仍是同一个太空世界观，右下角的外星人陪练
     依然是「舱内吉祥物」，但整体明亮、通透、适合白天长时间学习。
     学习交互全部保留：先猜后看、三关训练、目录抽屉、底部操作条。

   三条硬约束（照抄原主题红线，不能碰）：
     1. .word-card 的 display 由 JS 内联切换，任何 display 覆盖都不许 !important；
     2. #word-nav 的 left 由 JS 内联控制，面板开合由 transform 控制；
     3. .word-letters 内 .word-cursor 的 left 由 JS 按 rect 计算，
        不要给 .word-letters / 字母 span 加 transform。

   本文件只做视觉 + 新增学习层（.wl-*）样式，不改任何既有 DOM 结构。
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. 设计令牌（变量名与旧版保持一致，catalog 页共用）
   ------------------------------------------------------------------------ */
/* 手写体自托管：所有设备统一（学生手机上没有 Segoe Print/Comic Sans 等系统字体） */
@font-face {
    font-family: 'Patrick Hand';
    src: url('./fonts/patrick-hand-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* 云白与天蓝 */
    --nw-paper: #f3f6ff;
    --nw-paper-2: #eaf0ff;
    --nw-sheet: #ffffff;
    --nw-panel: #f5f8ff;
    --nw-ink: #1d2b53;
    --nw-ink-2: #43528a;
    --nw-ink-3: #8090c0;
    --nw-line: #c9d4f2;
    --nw-line-soft: #dde5f8;

    /* 三束光：星星黄（选中/行动）、西瓜红（错误/热烈）、薄荷绿（通过）——糖果饱和度
       2026-10-26：黄系调成芒果糖色，与果冻按钮带呼应 */
    --nw-hl: #ffd166;
    --nw-hl-deep: #ffaa2b;
    --nw-coral: #ff6b5e;
    --nw-coral-dk: #ef5646;
    --nw-mint: #22c993;
    --nw-mint-dk: #109673;
    --nw-blue: #4f8ef7;

    /* 亮色按钮上的深色文字 */
    --nw-on-hl: #4a3406;
    --nw-on-mint: #07402f;

    /* 几何：给小朋友，一切都要圆圆的 */
    --nw-r-s: 8px;
    --nw-r-m: 12px;
    --nw-r-l: 18px;
    --nw-radius: 18px;

    /* 投影：白天用柔和的蓝色影，不用死黑 */
    --nw-drop: 0 16px 34px -16px rgba(91, 110, 190, 0.35);
    --nw-drop-sm: 0 8px 18px -10px rgba(91, 110, 190, 0.3);
    --nw-glow: 0 0 16px rgba(123, 149, 255, 0.22);
    --nw-hair: 0 0 0 1.5px rgba(29, 43, 83, 0.12);

    /* 按钮的「按压沿」：浅色底上的深色硬投影 */
    --nw-press: rgba(29, 43, 83, 0.18);
    --nw-press-hl: #e8960f;

    /* 字体：英文单词手写体，中文释义楷体，界面用系统无衬线 */
    --nw-font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
        'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --nw-font-hand: 'Patrick Hand', 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', 'Chalkboard SE',
        'Yuanti SC', 'PingFang SC', 'Microsoft YaHei', cursive;
    --nw-font-cn: 'KaiTi', 'STKaiti', 'Kaiti SC', '楷体', 'Songti SC', serif;
    --nw-font-mono: 'SFMono-Regular', Consolas, 'Courier New', monospace;

    --nw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------------
   2. 页面底色：云白天空 + 淡蓝星点 + 极光晕染
   ------------------------------------------------------------------------ */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    box-sizing: border-box;
    background-color: var(--nw-paper);
    background-image:
        radial-gradient(1100px 620px at 88% -6%, rgba(155, 140, 255, 0.16), transparent 62%),
        radial-gradient(900px 540px at -12% 32%, rgba(120, 220, 190, 0.15), transparent 60%),
        radial-gradient(rgba(91, 141, 240, 0.16) 1px, transparent 1.5px),
        radial-gradient(rgba(91, 141, 240, 0.09) 1px, transparent 1.5px),
        linear-gradient(180deg, #f7f9ff 0%, #eef2fd 55%, #f3f6ff 100%);
    background-size: 100% 100%, 100% 100%, 150px 150px, 240px 240px, 100% 100%;
    background-position: 0 0, 0 0, 36px 44px, 130px 170px, 0 0;
    background-attachment: fixed;
    color: var(--nw-ink-2);
    font-family: var(--nw-font-ui);
    padding-bottom: 40px;
}

/* 关掉原主题的柔光斑与胶片颗粒 */
body::before,
body::after {
    display: none !important;
    content: none !important;
}

::selection {
    background: var(--nw-hl);
    color: var(--nw-on-hl);
}

/* ---------------------------------------------------------------------------
   3. 顶栏：一块白云玻璃
   ------------------------------------------------------------------------ */
body .topbar {
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid var(--nw-line);
    border-radius: 10px;
    box-shadow: var(--nw-drop-sm);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body .topbar .topbar-name {
    color: var(--nw-ink);
    font-weight: 800;
    letter-spacing: 0.2px;
}

body .topbar .topbar-user {
    background: var(--nw-hl);
    color: var(--nw-on-hl);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 183, 40, 0.4);
}

body .topbar .topbar-user:hover {
    background: var(--nw-hl-deep);
}

body .topbar .topbar-qr-label {
    color: var(--nw-ink-3);
}

/* ---------------------------------------------------------------------------
   4. 左侧「单词表」拉手 + 抽屉
   ------------------------------------------------------------------------ */
body #nav-trigger {
    width: 34px;
    height: 116px;
    background: var(--nw-hl);
    border: none;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 12px rgba(255, 183, 40, 0.4);
    z-index: 1100;
}

body #nav-trigger::before {
    content: '单词表';
    color: var(--nw-on-hl);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 12.5px;
}

body #nav-trigger:hover {
    background: var(--nw-hl-deep);
}

/* 抽屉 = 目录：加宽到 306px，开合改由 transform 控制。
   init.js 只认内联 left（0 / -200px），宽度一改就藏不干净 → 这里用 !important
   把 left 钉成 0，再用 translateX(-108%) 把它推出去。 */
body #word-nav {
    width: 306px;
    max-width: 306px;
    left: 0 !important;
    transform: translateY(-50%) translateX(-108%);
    display: flex;
    flex-direction: column;
    max-height: 84vh;
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid var(--nw-line);
    border-left: none;
    border-radius: 0 14px 14px 0;
    box-shadow: 10px 0 30px -14px rgba(91, 110, 190, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 14px 0 0;
    transition: transform 0.34s var(--nw-ease);
    overflow: hidden;
}

body #word-nav.wl-nav-open {
    transform: translateY(-50%) translateX(0);
}

body .nav-header {
    padding: 0 12px 10px;
    margin-bottom: 8px;
    border-bottom: 1.5px dashed var(--nw-line);
}

body .nav-header span {
    font-size: 15px;
    font-weight: 800;
    color: var(--nw-ink);
    letter-spacing: 0.3px;
}

body #word-count-badge {
    display: inline-block;
    min-width: 22px;
    padding: 1px 6px;
    margin-right: 2px;
    background: var(--nw-hl);
    border: 1px solid rgba(58, 44, 5, 0.3);
    border-radius: 5px;
    color: var(--nw-on-hl);
    text-align: center;
    font-family: var(--nw-font-mono);
    font-size: 12px;
    vertical-align: 1px;
}

body #close-nav {
    color: var(--nw-ink-3);
    font-weight: 700;
    padding: 0 4px;
}

body .nav-toggle-bar {
    border-bottom: 1.5px dashed var(--nw-line);
}

body .nav-items {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    padding: 2px 10px 6px;
}

body .nav-item {
    position: relative;
    padding: 7px 10px 7px 12px;
    margin: 2px 0;
    border-radius: 6px;
    border-left: 3px solid transparent;
    color: var(--nw-ink-2);
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

body .nav-item:hover {
    background: rgba(91, 141, 240, 0.1);
    color: var(--nw-ink);
}

/* 当前词：星芒黄横涂 + 左侧亮条（唯一"被选中"的样式） */
body .nav-item.active {
    background: var(--nw-hl) !important;
    color: var(--nw-on-hl) !important;
    border-left-color: var(--nw-press-hl);
    font-weight: 800;
}

/* ---- 目录化词条：序号 / 缩略图 / 单词 / 中文（+例句） ---- */
body .nav-item.wl-ni {
    display: grid;
    grid-template-columns: 20px 36px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    margin: 2px 0;
    border-radius: 8px;
    border-left: 3px solid transparent;
    font-size: 13px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* init.js 靠 e.target.classList 判断点击 → 子元素不吃指针事件 */
body .nav-item.wl-ni > * {
    pointer-events: none;
}

.wl-ni-no {
    font-family: var(--nw-font-mono);
    font-size: 10.5px;
    color: var(--nw-ink-3);
    text-align: right;
    line-height: 1;
}

.wl-ni-thumb {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border: 1px solid var(--nw-line);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.wl-ni-thumb--none {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--nw-font-hand);
    font-size: 16px;
    color: var(--nw-ink-3);
}

.wl-ni-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wl-ni-word {
    font-family: var(--nw-font-hand);
    font-size: 16px;
    line-height: 1.22;
    color: var(--nw-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-ni-cn {
    font-family: var(--nw-font-cn);
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--nw-ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-ni-ex {
    margin-top: 3px;
    padding-left: 6px;
    border-left: 2px solid var(--nw-blue);
    font-size: 10.5px;
    line-height: 1.5;
    color: var(--nw-ink-3);
    white-space: normal;
}

body .nav-item.active .wl-ni-cn,
body .nav-item.active .wl-ni-ex {
    color: rgba(58, 44, 5, 0.75);
}

body .nav-item.active .wl-ni-word {
    color: var(--nw-on-hl);
}

body .nav-item.active .wl-ni-thumb {
    border-color: rgba(58, 44, 5, 0.4);
}

/* 串词成句：极光绿手写条，和普通词条区分开 */
body .nav-item.wl-ni--ps {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(47, 199, 154, 0.14) 0%, rgba(47, 199, 154, 0) 100%);
    border-left: 3px solid var(--nw-mint);
}

body .nav-item.wl-ni--ps .wl-ni-word {
    font-family: var(--nw-font-ui);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--nw-mint-dk);
    letter-spacing: 0.3px;
}

/* 已过关：只在右侧点一枚勾，绝不整块变色（整块高亮会被误读成"当前选中"） */
body .nav-item.wl-done::after {
    content: '✓';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--nw-mint-dk);
    font-weight: 900;
    font-size: 13px;
    pointer-events: none;
}

body .nav-item.wl-ni.wl-done {
    padding-right: 22px;
}

/* 抽屉底部：过关进度条 */
.wl-nav-progress {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 7px;
    padding: 5px 8px;
    border: 1.5px dashed var(--nw-line);
    border-radius: 8px;
    background: var(--nw-panel);
    font-size: 11.5px;
    color: var(--nw-ink-3);
    line-height: 1.4;
}

.wl-nav-progress b {
    color: var(--nw-ink);
    font-family: var(--nw-font-mono);
    font-size: 13px;
}

.wl-nav-progress .wl-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e2e9fb;
    overflow: hidden;
}

.wl-nav-progress .wl-bar i {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--nw-mint-dk), var(--nw-mint));
    border-radius: 3px;
    transition: width 0.35s var(--nw-ease);
}

/* ---------------------------------------------------------------------------
   5. 卡片：一张白云玻璃舱壁
   ------------------------------------------------------------------------ */
body .word-card {
    position: relative;
    box-sizing: border-box;
    width: 92%;
    max-width: 860px;
    margin: 26px auto 34px;
    padding: 30px 28px 26px;
    background: var(--nw-sheet);
    background-image: none;
    border: 1.5px solid var(--nw-line);
    border-radius: var(--nw-r-l);
    box-shadow: var(--nw-drop);
}

/* 卡片顶部不再放任何贴纸/彩条装饰；
   ::before 复用为编号行正中央的品牌水印（2026-10-25：
   全站平铺水印下线，改为一卡一枚、跟着编号走） */
body .word-card::before {
    content: '词老大英语';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;   /* 用户口径：贴着卡片底边一点，别悬在半空 */
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(125, 110, 85, 0.28);
    pointer-events: none;
    z-index: 0;
}

/* 右下角的页码/序号角标，由学习层写入 */
body .word-card.wl-has-index::after {
    content: attr(data-wl-index);
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-family: var(--nw-font-mono);
    font-size: 11px;
    color: var(--nw-ink-3);
    opacity: 0.7;
    letter-spacing: 1px;
}

/* ---------------------------------------------------------------------------
   6. 配图：贴进舱窗的一张方图
   ------------------------------------------------------------------------ */
body .word-media1 {
    width: 196px;
    height: 196px;
    padding: 0;
    margin: 0 auto 10px;
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: var(--nw-drop-sm);
}

body .word-image {
    width: auto !important;
    max-width: 100%;
    max-height: 184px;
    border-radius: 12px;
    filter: none;
}

/* 平板/手机（≤1024）：图片大幅收窄 + 去掉投影——
   图源自带大片留白，投影会把整块画布衬成一张大白卡，占掉三分之一屏幕 */
@media (max-width: 1024px) {
    body .word-media1 {
        width: 168px;
        height: 168px;
        /* words.css 写死 min-height:120px，会把小尺寸顶高，这里对打 */
        min-height: 0;
        margin: 0 auto 4px;
        box-shadow: none;
    }

    body .word-image {
        max-height: 158px;
        border-radius: 8px;
    }
}

body .word-media {
    max-width: 640px;
    margin: 10px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    box-shadow: var(--nw-drop-sm);
}

body .word-video {
    border-radius: 3px;
    /* preload=none 时浏览器只画底色；用淡蓝而不是纯黑，避免一块死黑 */
    background: #e8eefc;
    border: 1px dashed var(--nw-line);
    box-shadow: none;
}

body .word-video:hover {
    box-shadow: none;
}

/* ---------------------------------------------------------------------------
   7. 单词与释义：手写大词 + 星黄荧光笔划重点
   ------------------------------------------------------------------------ */
body .word-header {
    border-bottom: none;
    margin-bottom: 10px;
    padding-bottom: 0;
}

body .word-header::after {
    display: none !important;
}

body .word-text {
    display: inline-block;
    padding: 0 4px 4px;
    /* words.css 对 .word-text 写死 ShuyaoItalic !important（带四线格线的字体），必须同权重对打 */
    font-family: var(--nw-font-hand) !important;
    font-size: clamp(2.3rem, 5.4vw, 3.35rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0.6px;
    color: var(--nw-ink);
    text-shadow: none;
    background-image: none;
}

body .word-letters .vowel {
    color: var(--nw-coral-dk);
    font-weight: 800;
}

body .word-cursor {
    width: 3px;
    border-radius: 2px;
    background: var(--nw-coral-dk);
    box-shadow: none;
}

body .word-syllable {
    margin-top: -2px;
    color: var(--nw-ink-3);
    font-family: var(--nw-font-mono);
    font-size: 0.92rem;
    letter-spacing: 2px;
}

body .translation {
    padding: 5px 16px;
    background: var(--nw-panel);
    border: 1.5px dashed var(--nw-line);
    border-radius: 999px;
    color: var(--nw-ink);
    font-family: var(--nw-font-cn);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: none;
}

body .phonetic-pills-container {
    gap: 10px;
}

body .phonetic-pill {
    gap: 8px;
    padding: 5px 10px 5px 8px;
    background: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: var(--nw-drop-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body .phonetic-pill:hover {
    transform: translate(-1px, -1px);
    box-shadow: 0 10px 20px -10px rgba(91, 110, 190, 0.45);
}

/* 英/美角标：统一成同一个颜色，不再一绿一红 */
body .pill-label {
    width: auto;
    min-width: 22px;
    padding: 0 4px;
    height: 22px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--nw-ink);
    box-shadow: none;
}

body .uk-label {
    background: var(--nw-ink);
}

body .us-label {
    background: var(--nw-ink);
}

body .pill-phonetic {
    color: var(--nw-ink);
    font-family: var(--nw-font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    text-shadow: none;
}

body .pill-phonetic .vowel-phoneme {
    color: var(--nw-coral-dk);
}

body .pill-audio-wrapper {
    width: 30px;
    height: 30px;
    background: #eef3ff;
    border: none;
    box-shadow: none;
}

body .pill-audio-icon {
    width: 17px;
    height: 17px;
}

body .pill-audio-wrapper::before,
body .pill-audio-wrapper::after {
    border-color: rgba(29, 43, 83, 0.5);
}

/* 例句 / 短文 */
body .sentence-item,
body .mnemonic {
    background: var(--nw-panel);
    border: 1.5px dashed var(--nw-line);
    border-radius: 8px;
    box-shadow: none;
}

/* ---------------------------------------------------------------------------
   8. 拼读区：字母卡与按钮
   ------------------------------------------------------------------------ */
body .control-bar {
    gap: 10px;
    padding: 0;
}

body .control-btn {
    min-height: 44px;
    padding: 10px 20px;
    background: var(--nw-hl);
    border: none;
    border-radius: 999px;
    color: var(--nw-on-hl) !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow: 0 3px 0 var(--nw-press-hl);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body .control-btn:hover {
    background: var(--nw-hl-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--nw-press-hl);
}

body .control-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--nw-press-hl);
}

body .control-btn.crazy-btn {
    background: var(--nw-coral);
    color: #fff !important;
    box-shadow: 0 3px 0 var(--nw-coral-dk);
}

body .control-btn.crazy-btn:hover {
    background: #ff8f82;
    box-shadow: 0 4px 0 var(--nw-coral-dk);
}

body .control-btn.crazy-btn:active {
    box-shadow: 0 1px 0 var(--nw-coral-dk);
}

body .control-btn.train-btn,
body .control-btn.suite-btn,
body .control-btn.test-btn {
    background: #eef3ff;
    border: none;
    color: var(--nw-ink) !important;
    box-shadow: 0 3px 0 rgba(29, 43, 83, 0.14);
    border-radius: 999px;
    padding: 10px 20px;
}

body .control-btn.train-btn:hover,
body .control-btn.suite-btn:hover,
body .control-btn.test-btn:hover {
    background: #e2ebff;
    transform: translateY(-1px);
    box-shadow: 0 4px 0 rgba(29, 43, 83, 0.14);
}

body .control-btn.train-btn.active,
body .control-btn.test-btn.active {
    background: var(--nw-hl);
    color: var(--nw-on-hl) !important;
    box-shadow: 0 2px 0 var(--nw-press-hl);
}

body .pairs-container {
    gap: 8px;
    padding: 10px 0 22px;
}

body .mapping-pair {
    min-width: 58px;
    padding: 10px 13px;
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: var(--nw-drop-sm);
    transition: transform 0.15s var(--nw-ease), box-shadow 0.15s var(--nw-ease);
}

body .mapping-pair:hover {
    background: #f0f5ff;
    transform: translate(-1px, -2px);
    box-shadow: 0 10px 20px -10px rgba(91, 110, 190, 0.45);
}

body .mapping-pair.active {
    background: var(--nw-hl);
    transform: rotate(-1.4deg) translateY(-2px);
    box-shadow: 0 3px 0 var(--nw-press-hl);
}

body .grapheme {
    font-family: var(--nw-font-hand);
    font-size: 1.42rem;
    font-weight: 700;
    color: var(--nw-ink);
    text-shadow: none;
}

body .phoneme {
    color: var(--nw-blue);
    font-family: var(--nw-font-mono);
    font-size: 0.86rem;
    font-weight: 700;
}

body .video-icon {
    color: var(--nw-ink-3);
}

/* ---------------------------------------------------------------------------
   9. PK / 收藏角标
   ------------------------------------------------------------------------ */
body .pk-btn {
    background: var(--nw-ink) !important;
    border: 1.5px solid var(--nw-ink);
    border-radius: 8px !important;
    color: #fffdf3 !important;
    box-shadow: var(--nw-drop-sm);
    padding: 4px 10px;
    font-size: 12px;
    letter-spacing: 0.3px;
}

body .word-fav-btn {
    border-radius: 8px !important;
}

/* ---------------------------------------------------------------------------
   9.5 页面常驻部件：侧边栏 / 子菜单 / 关闭钮（舱壁白玻璃）
   ------------------------------------------------------------------------ */
body .sidebar {
    background: rgba(255, 255, 255, 0.94);
    border: 1.5px solid var(--nw-line);
    box-shadow: var(--nw-drop-sm);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body .side-item .icon {
    color: var(--nw-ink-3);
}

body .side-item .text {
    color: var(--nw-ink-2);
}

body .side-item:hover .icon,
body .side-item.active .icon {
    color: var(--nw-blue);
}

body .side-item:hover .text,
body .side-item.active .text {
    color: var(--nw-ink);
}

body .sub-menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid var(--nw-line);
    box-shadow: var(--nw-drop);
}

body .sub-menu .side-item1,
body .sub-menu .side-item2,
body .sub-menu .side-item3,
body .sub-menu .side-item4 {
    color: var(--nw-ink-2);
}

body .sub-menu .side-item1 i,
body .sub-menu .side-item2 i,
body .sub-menu .side-item3 i,
body .sub-menu .side-item4 i {
    color: var(--nw-blue);
}

body .sub-menu .side-item1:hover,
body .sub-menu .side-item2:hover,
body .sub-menu .side-item3:hover,
body .sub-menu .side-item4:hover {
    background: rgba(91, 141, 240, 0.1);
    color: var(--nw-ink);
}

body .close-btn {
    background: var(--nw-panel);
    color: var(--nw-ink-2);
}

body .close-btn:hover {
    background: #ffe9e5;
    color: var(--nw-coral-dk);
}

/* ---------------------------------------------------------------------------
   10. 加载页：白昼点火
   ------------------------------------------------------------------------ */
body .loader-container {
    background: var(--nw-paper) !important;
    background-image:
        radial-gradient(1100px 620px at 88% -6%, rgba(155, 140, 255, 0.16), transparent 62%),
        radial-gradient(rgba(91, 141, 240, 0.16) 1px, transparent 1.5px) !important;
    background-size: 100% 100%, 150px 150px !important;
}

body .loader-container .loading-text {
    color: var(--nw-ink) !important;
    font-family: var(--nw-font-hand) !important;
    font-size: 30px !important;
    letter-spacing: 2px;
    text-shadow: none !important;
}

body .loader-container .progress-container {
    height: 12px !important;
    padding: 2px;
    background: #fff !important;
    border: 1.5px solid var(--nw-ink) !important;
    border-radius: 999px !important;
    box-shadow: var(--nw-drop-sm) !important;
}

body .loader-container .progress-bar {
    background: linear-gradient(90deg, var(--nw-hl-deep), var(--nw-hl)) !important;
    border-radius: 999px !important;
}

body .loader-container .progress-percentage {
    color: var(--nw-ink-2) !important;
    font-family: var(--nw-font-mono) !important;
}

body .loader-container .spark {
    background: var(--nw-blue) !important;
}

/* ---------------------------------------------------------------------------
   11. 学习层：封面 / 关卡 / 底部操作条
   ------------------------------------------------------------------------ */
.wl-stage {
    position: absolute;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 46px 18px 30px;
    background-color: #fff; /* 必须全不透明：留透光会把底下的单词/音标渗出来 */
    /* 童趣波点：淡蓝圆点 + 顶部一道彩虹条，不再用冷冰冰的仪表格线 */
    background-image:
        linear-gradient(90deg, #ff9d9d 0%, #ffc86b 20%, #ffe97a 40%, #9fe6b8 60%, #8ec9ff 80%, #c3a8ff 100%),
        radial-gradient(rgba(79, 142, 247, 0.16) 3px, transparent 3.6px),
        repeating-linear-gradient(180deg, transparent 0 87px, rgba(79, 142, 247, 0.05) 87px 88px);
    background-size: 100% 6px, 46px 46px, 100% 88px;
    background-repeat: no-repeat, repeat, repeat;
    border-radius: 12px;
    animation: wl-stage-in 0.32s var(--nw-ease) both;
}

@keyframes wl-stage-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wl-stage.wl-out {
    animation: wl-stage-out 0.26s ease-in forwards;
    pointer-events: none;
}

@keyframes wl-stage-out {
    to { opacity: 0; transform: translateY(-6px); }
}

.wl-sheet {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

/* 顶部条：第几个词 + 当前档位 */
.wl-top {
    position: absolute;
    top: 16px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11.5px;
    color: var(--nw-ink-3);
    letter-spacing: 0.4px;
}

.wl-index {
    font-family: var(--nw-font-mono);
    font-weight: 700;
    color: var(--nw-ink-2);
}

.wl-index b {
    font-size: 15px;
    color: var(--nw-ink);
}

.wl-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    background: var(--nw-hl);
    border: none;
    border-radius: 999px;
    color: var(--nw-on-hl);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.wl-chip.is-ghost {
    background: #eef3ff;
    border: none;
    color: var(--nw-ink-3);
    font-weight: 700;
}

/* 封面主提示 */
.wl-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--nw-blue);
}

.wl-ask {
    margin: 0;
    font-size: clamp(1.35rem, 3.4vw, 1.7rem);
    font-weight: 800;
    color: var(--nw-ink);
    line-height: 1.5;
}

.wl-ask em {
    font-style: normal;
    color: var(--nw-blue);
    padding: 0 2px;
}

/* 猜测区：图 / 喇叭 / 中文 */
.wl-clue {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 2px 0 4px;
}

.wl-clue-img {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    border: 1.5px solid var(--nw-ink);
    border-radius: 8px;
    box-shadow: var(--nw-drop-sm);
}

.wl-clue-img img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 3px;
    object-fit: contain;
}

.wl-clue-cn {
    font-family: var(--nw-font-cn);
    font-size: clamp(2.4rem, 7vw, 3.2rem);
    font-weight: 700;
    color: var(--nw-ink);
    letter-spacing: 6px;
    padding: 10px 26px;
    border-bottom: 4px solid var(--nw-hl);
}

/* 新词先学：露出原学习卡片，顶部预留带里放「新词先学 + 开始过关」条 */
.wl-stage--learn {
    background-color: transparent;
    background-image: none;
    pointer-events: none;
}

/* 过关/结算期间收起底层卡片内容：覆盖层不再被隐藏的视频/例句撑高，
   页面紧凑不空滚。覆盖层转正流式布局，高度=内容高度。 */
.word-card.wl-testing > *:not(.wl-stage) { display: none !important; }
.word-card.wl-testing { padding: 0 !important; }
.word-card.wl-testing .wl-stage {
    position: static;
    border-radius: inherit;
}

/* 先学期间给卡片顶部垫出空白带：给固定横条让位，内容不被盖住 */
.word-card.wl-learning {
    padding-top: 64px !important;
}

/* 先学横条：挂 body 层（卡内 fixed 会因 .word-card 的 transform 失效），
   像页头 banner 一样固定在页头正下方，滚动不消失，随时可进测试 */
.wl-learn-topbar {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    z-index: 920;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    background: #fff;
    border-bottom: 1.5px solid var(--nw-line);
    box-shadow: 0 2px 6px rgba(29, 43, 83, 0.06);
    white-space: nowrap;
}

/* 无页头环境（如小程序 webview）横条直接顶格 */
body:not(.has-topbar) .wl-learn-topbar { top: 0; }

.wl-learn-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--nw-ink-3);
    letter-spacing: 0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-learn-meta b { color: var(--nw-ink); }

.wl-learn-topbar .wl-btn {
    flex: none;
    padding: 6px 12px;
    font-size: 12.5px;
    white-space: nowrap;
}

/* 平板/电脑端：按钮居中放大 + 呼吸脉冲，一眼可见（手机端保持紧凑） */
@media (min-width: 768px) {
    .wl-learn-topbar {
        justify-content: center;
        gap: 16px;
        height: 58px;
        padding: 0 24px;
        background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    }

    .wl-learn-meta { font-size: 13px; }

    .wl-learn-topbar .wl-btn {
        padding: 9px 32px;
        font-size: 15px;
        font-weight: 700;
        border-width: 2px;
        animation: wl-cta-pulse 1.6s ease-in-out infinite;
    }
}

@keyframes wl-cta-pulse {
    0%, 100% { transform: scale(1); box-shadow: var(--nw-drop-sm); }
    50%      { transform: scale(1.05); box-shadow: 0 0 0 7px rgba(255, 200, 87, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
    .wl-learn-topbar .wl-btn { animation: none; }
}

/* 音素拆分行：窄屏自适应收缩（占位说明，实际规则见文件末尾「音素收缩终版」） */

/* 洗脑模式按钮下线（2026-10-25 口径）：五关流程每关自动播发音，
   磨耳朵价值已被覆盖，按钮撤掉给卡片减负。crazy_words.js 代码保留，随时可恢复。 */
.control-btn.crazy-btn { display: none !important; }

/* 视频弹层打开时，把学习层浮条整体藏起，别压住视频控制条（learn-36new.js 打标） */
body.wl-video-open .wl-stage--learn,
body.wl-video-open #wlDock,
body.wl-video-open #wlLearnBar {
    display: none !important;
}

/* 单词学习页：页面底色去掉 pixar 渐变底端的米黄（#fdf5ea），
   整页保持清透蓝绿到底，紧凑的过关卡片下面不再露黄 */
html {
    background:
        radial-gradient(120% 90% at 50% -10%, #ffffff 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(168deg, #eaf8f4 0%, #eef6fb 55%, #e9f3fb 100%) !important;
    background-attachment: fixed !important;
}

/* 单词学习页：页头贴顶铺满（覆盖 pixar.css 的悬浮胶囊） */
.topbar {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    height: 50px;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: 0 1px 6px rgba(16, 74, 63, 0.12) !important;
}

body.has-topbar { padding-top: 50px !important; }

/* 页头智能显隐：下滑收起、上滑出现（learn-36new.js 打 wl-head-hide 标） */
.topbar {
    transition: transform 0.25s ease;
    will-change: transform;
}

body.wl-head-hide .topbar { transform: translateY(-110%); }

/* 页头收起时，先学横条顺势顶格，内容空间最大化 */
body.wl-head-hide .wl-learn-topbar { top: 0; }
.wl-learn-topbar { transition: top 0.25s ease; }

.wl-speaker {
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 32% 28%, #ffffff, #eef3ff 75%);
    border: 2px solid var(--nw-ink);
    border-radius: 50%;
    box-shadow: 4px 4px 0 rgba(29, 43, 83, 0.16);
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.wl-speaker:hover { transform: translate(-1px, -2px); box-shadow: 6px 6px 0 rgba(29, 43, 83, 0.18); }
.wl-speaker:active { transform: translate(2px, 3px); box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.16); }

.wl-speaker svg { width: 46px; height: 46px; color: var(--nw-ink); }

.wl-speaker.is-playing { animation: wl-pulse 0.9s ease-in-out infinite; }

@keyframes wl-pulse {
    0%, 100% { box-shadow: 4px 4px 0 rgba(29, 43, 83, 0.16); }
    50% { box-shadow: 0 0 0 12px rgba(255, 200, 61, 0.35); }
}

/* 遮罩式提示：把字母数画成格子 */
.wl-slots {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.wl-slot {
    width: 30px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed #a9b8e4;
    border-radius: 5px;
    background: #fff;
    font-family: var(--nw-font-hand);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--nw-ink);
}

.wl-slot.is-given {
    background: rgba(255, 200, 61, 0.35);
    border-style: solid;
    border-color: var(--nw-ink);
}

.wl-slot.is-gap {
    border: none;
    background: transparent;
}

.wl-hint {
    font-size: 12.5px;
    color: var(--nw-ink-3);
    letter-spacing: 0.2px;
    line-height: 1.7;
}

.wl-wm {
    position: absolute;
    right: 18px;
    top: 52%;
    font-family: var(--nw-font-cn);
    font-size: 190px;
    line-height: 1;
    color: rgba(29, 43, 83, 0.06);
    transform: translateY(-50%) rotate(-8deg);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 767px) {
    .wl-wm { font-size: 110px; right: 4px; top: 60%; }
}

.wl-foot {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1.5px dashed var(--nw-line);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--nw-ink-3);
    opacity: 0.75;
}

/* 按钮 */
.wl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

.wl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid var(--nw-ink);
    border-radius: 999px;
    background: #fff;
    color: var(--nw-ink);
    font-family: var(--nw-font-ui);
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--nw-ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.wl-btn:hover { background: #f0f5ff; transform: translateY(-1px); box-shadow: 0 4px 0 var(--nw-ink); }
.wl-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--nw-ink); }

.wl-btn--primary {
    background: var(--nw-hl);
}

.wl-btn--primary:hover {
    background: var(--nw-hl-deep);
}

.wl-btn--ghost {
    border-style: dashed;
    border-color: var(--nw-line);
    color: var(--nw-ink-3);
    box-shadow: none;
    font-weight: 700;
    padding: 9px 14px;
    min-height: 38px;
    font-size: 13.5px;
    background: transparent;
}

.wl-btn--ghost:hover {
    background: #fff;
    border-color: var(--nw-ink-3);
    color: var(--nw-ink-2);
    box-shadow: none;
    transform: none;
}

.wl-btn--wide { min-width: 150px; }

.wl-kbd {
    font-family: var(--nw-font-mono);
    font-size: 10px;
    padding: 1px 5px;
    border: 1px solid rgba(29, 43, 83, 0.35);
    border-radius: 4px;
    opacity: 0.6;
}

/* 三关进度：三个有名字的步骤 */
.wl-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 10.5px;
    letter-spacing: 0.2px;
    flex-wrap: nowrap;
    max-width: 100%;
}

.wl-steps span {
    padding: 3px 8px;
    border: 1.2px dashed var(--nw-line);
    border-radius: 999px;
    color: var(--nw-ink-3);
    background: #fff;
    font-weight: 700;
    white-space: nowrap;
    flex: none;
}

.wl-steps span.is-done {
    border-style: solid;
    border-color: var(--nw-mint);
    color: var(--nw-mint-dk);
    background: #e9f9f3;
}

.wl-steps span.is-now {
    border-style: solid;
    border-color: var(--nw-ink);
    color: var(--nw-on-hl);
    background: var(--nw-hl);
    box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.14);
}

/* 关卡题干 */
.wl-q {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 800;
    color: var(--nw-ink);
    line-height: 1.5;
    margin: 0;
}

.wl-q-word {
    font-family: var(--nw-font-hand);
    font-size: clamp(2rem, 5.4vw, 2.6rem);
    color: var(--nw-ink);
    padding: 0 6px 4px;
    border-bottom: 7px solid rgba(255, 200, 61, 0.8);
}

.wl-q-sub {
    font-size: 12.5px;
    color: var(--nw-ink-3);
}

/* 子标题里嵌的中文意思（临摹关等）：比说明文字更醒目 */
.wl-q-sub b {
    color: var(--nw-ink);
    font-weight: 600;
}

/* 选项：两列卡片 */
.wl-opts {
    width: 100%;
    max-width: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.wl-opt {
    position: relative;
    min-height: 56px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border: 1.5px solid var(--nw-ink);
    border-radius: 8px;
    box-shadow: var(--nw-drop-sm);
    color: var(--nw-ink);
    font-family: var(--nw-font-ui);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.wl-opt:hover { background: #f0f5ff; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 rgba(29, 43, 83, 0.14); }
.wl-opt:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(29, 43, 83, 0.14); }
.wl-opt .wl-key {
    position: absolute;
    left: 8px;
    top: 6px;
    font-family: var(--nw-font-mono);
    font-size: 9.5px;
    color: var(--nw-ink-3);
    opacity: 0.7;
}

.wl-opt.is-right {
    background: #d9f6ec;
    border-color: var(--nw-mint-dk);
    box-shadow: 3px 3px 0 var(--nw-mint-dk);
    animation: wl-pop 0.28s var(--nw-ease);
}

.wl-opt.is-wrong {
    background: #ffe7e2;
    border-color: var(--nw-coral-dk);
    box-shadow: 3px 3px 0 var(--nw-coral-dk);
    animation: wl-shake 0.34s ease;
}

.wl-opt.is-dim { opacity: 0.45; }

@keyframes wl-pop {
    0% { transform: scale(1); }
    55% { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes wl-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    55% { transform: translateX(4px); }
    80% { transform: translateX(-2px); }
}

/* 拼写关：逐格输入 */
.wl-spell {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wl-cells {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;      /* 长单词也永远一行，靠格子收缩适配 */
    max-width: 100%;
    padding: 6px 0;
}

.wl-cell {
    flex: 0 1 40px;         /* 可收缩：窄屏长词整行按比例压缩，不再折行 */
    min-width: 22px;
    width: 40px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid var(--nw-ink);
    border-radius: 6px;
    box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.12);
    font-family: var(--nw-font-hand);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nw-ink);
    text-transform: lowercase;
}

.wl-cell.is-given {
    background: rgba(255, 200, 61, 0.4);
    border-style: dashed;
}

.wl-cell.is-typing {
    border-bottom: 3px solid var(--nw-coral-dk);
    animation: wl-caret 1s steps(2) infinite;
}

.wl-cell.is-right { border-color: var(--nw-mint-dk); background: #e4f7ef; }
.wl-cell.is-wrong { border-color: var(--nw-coral-dk); background: #ffe9e2; }

/* 空格格子（tai chi 类词的词中空格）：无方框，画一个淡色「␣」空格符示意 */
.wl-cell.is-gap {
    flex: 0 1 24px;
    min-width: 10px;
    width: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #a9b8cf;
    font-size: 1.05rem;
}

/* 临摹/拼写经过空格后，␣ 同步点亮成绿 */
.wl-cell.is-gap.is-right { color: var(--nw-mint-dk); font-weight: 700; }

/* 临摹关隐形输入框：不占版面，仍可聚焦（点格子/关卡区域唤起键盘） */
.wl-ghost-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: none;
    opacity: 0;
    pointer-events: none;
}

/* 临摹关：待描字母淡显、当前格闪烁描线、描错抖动 */
.wl-cell.is-pending {
    color: #b9c5e8;
    border-style: dashed;
    border-color: #c7d3f2;
    background: #fbfcff;
}

.wl-cell.is-cur {
    color: var(--nw-ink);
    border-style: solid;
    border-color: var(--nw-ink);
    animation: wl-cur-blink 1s ease-in-out infinite;
}

@keyframes wl-cur-blink {
    0%, 100% { box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.12); }
    50% { box-shadow: 0 0 0 5px rgba(255, 200, 61, 0.4); }
}

.wl-cell.is-shake { animation: wl-shake 0.32s ease; }

@keyframes wl-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@keyframes wl-caret {
    0%, 100% { box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.12), inset 0 -3px 0 rgba(239, 86, 70, 0.9); }
    50% { box-shadow: 2px 2px 0 rgba(29, 43, 83, 0.12), inset 0 -3px 0 rgba(239, 86, 70, 0.2); }
}

.wl-input {
    width: min(100%, 360px);
    padding: 10px 14px;
    border: 1.5px solid var(--nw-ink);
    border-radius: 8px;
    background: #fff;
    color: var(--nw-ink);
    font-family: var(--nw-font-mono);
    font-size: 17px;
    letter-spacing: 2px;
    text-align: center;
    outline: none;
    box-shadow: inset 0 2px 0 rgba(29, 43, 83, 0.06);
}

.wl-input:focus {
    border-color: var(--nw-blue);
    box-shadow: var(--nw-drop-sm);
}

.wl-input.is-wrong { border-color: var(--nw-coral-dk); background: #fff4f0; }

/* 占位提示文字：固定小字号（不用 clamp），移动端窄框也显示得完整 */
.wl-input::placeholder {
    font-size: 12px;
    letter-spacing: 0;
    color: var(--nw-ink-3);
}

/* 语境关：句子里挖空 */
.wl-sentence {
    max-width: 560px;
    font-size: clamp(1.05rem, 2.6vw, 1.25rem);
    line-height: 1.85;
    color: var(--nw-ink);
    font-weight: 600;
}

.wl-gap {
    display: inline-block;
    min-width: 92px;
    padding: 0 6px;
    margin: 0 2px;
    border-bottom: 2.5px solid var(--nw-ink);
    background: rgba(255, 200, 61, 0.3);
    border-radius: 4px 4px 0 0;
    font-family: var(--nw-font-hand);
    font-weight: 700;
    color: var(--nw-ink);
}

.wl-sentence-cn {
    margin-top: 8px;
    font-family: var(--nw-font-cn);
    font-size: 13.5px;
    color: var(--nw-ink-3);
}

/* 语境关中文翻译默认隐藏，点「显示中文」才出现（练听力不练阅读） */
.wl-sentence-cn.is-hidden { display: none; }

/* 语境关「显示/隐藏中文」小按钮：紧贴句子下方、左对齐 */
.wl-sheet .wl-btn--sm { margin-top: 2px; }

/* 反馈条 */
.wl-feedback {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--nw-ink-3);
    letter-spacing: 0.2px;
}

.wl-feedback.is-ok { color: var(--nw-mint-dk); }
.wl-feedback.is-no { color: var(--nw-coral-dk); }

.wl-feedback .wl-ans {
    font-family: var(--nw-font-hand);
    font-size: 1.15rem;
    padding: 0 6px;
    background: rgba(255, 200, 61, 0.5);
    border-radius: 4px;
    color: var(--nw-ink);
}

/* 通关结算 */
.wl-done-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 26px;
    background: #fff;
    border: 2px solid var(--nw-ink);
    border-radius: 12px;
    box-shadow: var(--nw-drop);
    max-width: 420px;
}

.wl-stamp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 2.5px solid var(--nw-mint-dk);
    border-radius: 8px;
    color: var(--nw-mint-dk);
    font-weight: 900;
    letter-spacing: 3px;
    transform: rotate(-4deg);
    font-size: 1.05rem;
}

.wl-done-word {
    font-family: var(--nw-font-hand);
    font-size: 2rem;
    font-weight: 700;
    color: var(--nw-ink);
}

/* 揭示后的底部操作条（fixed，不参与卡片布局） */
.wl-dock {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(12px);
    z-index: 900;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 8px 12px;
    max-width: calc(100vw - 24px);
    background: rgba(255, 255, 255, 0.97);
    border: 1.5px solid var(--nw-ink);
    border-radius: 22px;
    box-shadow: 0 12px 26px -12px rgba(91, 110, 190, 0.45), var(--nw-drop-sm);
    font-size: 12.5px;
    color: var(--nw-ink-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s var(--nw-ease);
}

/* 底部条出现时给页面留出滚动余量，卡片最后几行（拼读/视频）才不会被盖住 */
body.wl-dock-on {
    padding-bottom: 128px;
}

.wl-dock.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.wl-dock-text {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.wl-dock-text b {
    font-family: var(--nw-font-mono);
    font-size: 14px;
    color: var(--nw-ink);
}

.wl-dock .wl-btn {
    min-height: 38px;
    padding: 7px 16px;
    font-size: 13.5px;
    box-shadow: 0 2px 0 var(--nw-ink);
}

.wl-dock .wl-btn:active { box-shadow: 0 0 0 var(--nw-ink); transform: translateY(2px); }

/* 揭示动画：卡片正文轻微上浮 */
body .word-card.wl-revealing > *:not(.wl-stage) {
    animation: wl-content-in 0.4s var(--nw-ease) both;
}

@keyframes wl-content-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 已过关：卡片左上角一枚小标签 */
body .word-card.wl-passed::marker { content: none; }

.wl-passed-tag {
    position: absolute;
    top: -11px;
    left: 16px;
    z-index: 3;
    padding: 2px 10px;
    background: var(--nw-mint);
    border: 1.5px solid var(--nw-ink);
    border-radius: 999px;
    color: var(--nw-on-mint);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1px;
    transform: rotate(-2deg);
    box-shadow: var(--nw-drop-sm);
}

/* 陪练外星人：白边贴纸 + 软蓝投影，和白天舱窗一致 */
body .buddy__stage {
    filter:
        drop-shadow(0 0 1.5px #ffffff)
        drop-shadow(0 0 1.5px #ffffff)
        drop-shadow(0 0 1.5px #ffffff)
        drop-shadow(3px 4px 0 rgba(29, 43, 83, 0.14));
    /* 缩放必须保留 --bscale（天线 +/− 的变大变小），rotate 只是姿态 */
    transform: scale(var(--bscale, 1)) rotate(-3deg);
    transition: transform 0.2s var(--nw-ease);
}

body .buddy:hover .buddy__stage {
    transform: scale(var(--bscale, 1)) rotate(0deg) translateY(-2px);
}

/* ---------------------------------------------------------------------------
   12. 响应式
   ------------------------------------------------------------------------ */
@media (max-width: 767px) {
    body .word-card {
        width: 94%;
        margin: 20px auto 28px;
        padding: 24px 16px 22px;
        border-radius: 10px;
        box-shadow: 4px 4px 0 rgba(29, 43, 83, 0.1);
    }

    /* 旧「顶部胶带」的 ::before 定位残留已删：
       ::before 现在是编号行中央的品牌水印（第 4 节），手机端沿用即可 */

    body .word-media1 {
        width: 136px;
        height: 136px;
        min-height: 0;
        margin: 0 auto 4px;
        box-shadow: none;
    }

    body .word-image {
        max-height: 126px;
        border-radius: 8px;
    }

    body .word-header {
        margin-bottom: 6px;
    }

    body .word-text {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    body #word-nav {
        width: 172px;
        max-width: 172px;
    }

    .wl-stage {
        padding: 46px 12px 18px;
    }

    .wl-clue-img {
        width: 172px;
        height: 172px;
    }

    .wl-speaker {
        width: 96px;
        height: 96px;
    }

    .wl-speaker svg { width: 38px; height: 38px; }

    .wl-opts {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wl-cell {
        width: 32px;
        height: 44px;
        font-size: 1.3rem;
    }

    .wl-dock {
        bottom: 10px;
        gap: 6px 8px;
        padding: 8px 10px;
        font-size: 11.5px;
        max-width: calc(100vw - 16px);
    }

    .wl-dock .wl-verdict {
        /* 块级流式排版：inline-flex 会把 verdict 拆成一列竖条 */
        display: block;
        flex: 1 1 100%;
        text-align: center;
        white-space: normal;
        line-height: 1.5;
    }

    .wl-dock .wl-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .wl-top {
        top: 12px;
        left: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wl-stage,
    body .word-card.wl-revealing > *:not(.wl-stage) {
        animation: none !important;
    }
    .wl-speaker.is-playing { animation: none; }
}

/* ===========================================================================
   14. 封面改成"可输入"之后的补充（输入框、格子反馈、结果条）
   ======================================================================== */
.wl-input--cover {
    margin-top: 14px;
    letter-spacing: 3px;
}

.wl-input.is-right {
    border-color: var(--nw-mint-dk);
    background: #eefaf4;
    color: var(--nw-mint-dk);
}

.wl-slot.is-typing {
    border-color: var(--nw-coral-dk);
    border-style: solid;
    background: #fff8ef;
}

.wl-slot.is-right {
    border-color: var(--nw-mint-dk);
    border-style: solid;
    background: #e9f9f1;
    color: var(--nw-mint-dk);
}

.wl-slot.is-wrong {
    border-color: var(--nw-coral-dk);
    border-style: solid;
    background: #fff1ec;
    color: var(--nw-coral-dk);
}

/* 底部操作条里的"写对 / 写错"对比 */
.wl-verdict {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wl-verdict.is-ok {
    background: #e9f9f1;
    color: var(--nw-mint-dk);
    border: 1.2px solid var(--nw-mint);
}

.wl-verdict.is-no {
    background: #fff1ec;
    color: var(--nw-coral-dk);
    border: 1.2px solid var(--nw-coral);
}

.wl-verdict.is-no s {
    opacity: 0.75;
    margin: 0 3px;
}

.wl-verdict.is-skip {
    background: #f4f7ff;
    color: var(--nw-ink-2);
    border: 1.2px dashed var(--nw-line);
}

.wl-btn--sm {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 13px;
    box-shadow: 0 2px 0 var(--nw-ink);
    margin-left: 10px;
    vertical-align: middle;
}

/* ===========================================================================
   15. 抽屉里的目录（合并版）：两枚开关 + 进度 + 继续学 + 总目录
   ----------------------------------------------------------------------------
   独立目录浮层已删：词条列表、缩略图、过关勾、进度、继续学都在 #word-nav 里。
   ======================================================================== */
body .nav-toggle-bar.wl-native-hide { display: none !important; }

/* 抽屉滚动条给一点点露头，不然看不出还能往下翻 */
body .nav-items::-webkit-scrollbar {
    display: block;
    width: 6px;
}

body .nav-items::-webkit-scrollbar-thumb {
    background: #d4ddf5;
    border-radius: 3px;
}

/* ---- 两枚开关 ---- */
.wl-sw {
    flex: 0 0 auto;
    margin: 0 10px 8px;
    padding: 6px 10px;
    border: 1.5px dashed var(--nw-line);
    border-radius: 10px;
    background: var(--nw-panel);
}

.wl-sw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
}

.wl-sw-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--nw-ink-2);
    letter-spacing: 0.2px;
}

.wl-sw-btn {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 23px;
    padding: 0;
    border: 1.5px solid var(--nw-ink);
    border-radius: 999px;
    background: #e2e9fb;
    cursor: pointer;
    transition: background 0.18s ease;
}

.wl-sw-btn > i {
    position: absolute;
    top: 1.5px;
    left: 2px;
    width: 15px;
    height: 15px;
    border: 1.5px solid var(--nw-ink);
    border-radius: 50%;
    background: #fff;
    transition: left 0.18s var(--nw-ease);
}

.wl-sw-btn[aria-pressed='true'] {
    background: var(--nw-mint);
}

.wl-sw-btn[aria-pressed='true'] > i {
    left: 21px;
}

/* ---- 抽屉底部：进度 / 继续学 / 总目录 ---- */
.wl-nav-foot {
    flex: 0 0 auto;
    margin-top: 4px;
    padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    border-top: 1.5px dashed var(--nw-line);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.wl-nav-foot-act {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wl-nav-foot-act .wl-btn {
    flex: 1 1 auto;
    margin: 0;
    min-height: 36px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wl-nav-foot-link {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1.5px solid var(--nw-ink);
    border-radius: 8px;
    background: var(--nw-sheet);
    box-shadow: 0 2px 0 var(--nw-ink);
    color: var(--nw-ink);
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.wl-nav-foot-link:active {
    transform: translateY(2px);
    box-shadow: none;
}

/* ===========================================================================
   16. 窄屏
   ======================================================================== */
@media (max-width: 767px) {
    body #word-nav {
        width: 86vw;
        max-width: 320px;
        max-height: 88vh;
    }

    .wl-ni-thumb {
        width: 32px;
        height: 32px;
    }

    .wl-ni-word { font-size: 15px; }

    .wl-verdict { font-size: 12px; padding: 3px 9px; }
    .wl-btn--sm { display: block; margin: 8px auto 0; }
}

/* ===========================================================================
   17. 手机窄屏兜底（2026-10-24）
   ----------------------------------------------------------------------------
   现象：turn into 这类长短语在手机上把整张卡撑出屏幕。
   根因：原版 words.css 在 ≤768px 给 .phoneme-mapping 定了 nowrap，
        .mapping-pair 有 min-width + flex-shrink:0，9 个字母对能撑到 470px+；
        音标行容器跟着被撑宽，两张音标 pill 也就不再换行。
   修法：放开换行、收紧对子，全部走这里，不动原文件。
   ========================================================================= */
@media (max-width: 600px) {
    /* 主题前文用 body 前缀写过 min-width:58px，这里必须同级前缀才压得住 */
    body .phoneme-mapping {
        flex-wrap: wrap;
        row-gap: 6px;
    }

    body .mapping-pair {
        min-width: 0;
        padding: 6px 5px;
    }

    body .mapping-pair .grapheme {
        font-size: 14px;
    }

    body .mapping-pair .phoneme {
        font-size: 11.5px;
    }

    /* 音标行：容器不限宽的话两张 pill 挤一行直接顶出屏幕 */
    body .phonetic-translation-container,
    body .phonetic-pills-container {
        max-width: 100%;
    }

    body .phonetic-pills-container {
        justify-content: center;
        /* pixar 主题把音标行定成“恒一行”，长短语直接顶出屏幕 → 手机上放开换行 */
        flex-wrap: wrap;
    }

    /* 视频容器别超过卡片 */
    body .word-card > .word-media,
    body .word-media video,
    body .video-wrapper {
        max-width: 100%;
    }
}

/* ===========================================================================
   18. 全尺寸自适应缩放（2026-10-24）
   ----------------------------------------------------------------------------
   要求：任何屏宽都不变形 / 不挤压 / 不错位，屏幕越小元素跟着变小。
   分四档：≤1024 平板竖屏 → ≤600 手机 → ≤420 小手机 → ≤360 极窄。
   ========================================================================= */

/* ---- ≤1024：平板竖屏，卡片内边距与按钮先收一档 ---- */
@media (max-width: 1024px) {
    body .wl-btn {
        min-height: 40px;
        padding: 9px 16px;
        font-size: 13.5px;
    }

    body .wl-dock .wl-btn {
        min-height: 36px;
        padding: 7px 13px;
        font-size: 12.5px;
    }

    .wl-cell {
        width: 36px;
        height: 46px;
        font-size: 1.35rem;
    }

    .wl-verdict {
        font-size: 12px;
        padding: 3px 10px;
    }
}

/* ---- ≤600：手机 ---- */
@media (max-width: 600px) {
    body .wl-btn {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .wl-cells {
        gap: 4px;
    }

    .wl-cell {
        width: 32px;
        height: 42px;
        font-size: 1.2rem;
        border-radius: 5px;
        box-shadow: 1.5px 1.5px 0 rgba(29, 43, 83, 0.12);
    }

    .wl-verdict {
        font-size: 11.5px;
        padding: 3px 9px;
    }

    body .wl-dock {
        bottom: 8px;
        max-width: calc(100vw - 12px);
        border-radius: 16px;
        box-shadow: 0 8px 20px -10px rgba(91, 110, 190, 0.4);
    }

    /* 视频在手机上别占太高，给文字和拼读行让位 */
    body .word-media video {
        max-height: 200px;
        object-fit: contain;
    }
}

/* ---- ≤420：小手机，格子/输入框/操作条再收一档 ---- */
@media (max-width: 420px) {
    .wl-cell {
        width: 27px;
        height: 38px;
        font-size: 1.05rem;
    }

    .wl-cells {
        gap: 3px;
    }

    body .wl-btn {
        min-height: 35px;
        padding: 7px 11px;
        font-size: 12px;
        border-width: 1.5px;
    }

    body .wl-dock .wl-btn {
        min-height: 33px;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .wl-verdict {
        font-size: 11px;
        padding: 2px 8px;
    }

    body .wl-dock {
        padding: 7px 8px;
        font-size: 11px;
        gap: 5px 7px;
    }

    body .wl-dock .wl-verdict {
        font-size: 11px;
    }

    .wl-input {
        font-size: 1.1rem !important;
    }
}

/* ---- ≤360：极窄（iPhone SE / 双开分屏） ---- */
@media (max-width: 360px) {
    .wl-cell {
        flex-basis: 24px;
        min-width: 18px;
        height: 34px;
        font-size: 0.95rem;
        border-radius: 4px;
    }

    body .wl-dock .wl-btn {
        font-size: 11px;
        padding: 5px 8px;
    }

    body .wl-dock .wl-verdict {
        font-size: 10.5px;
    }
}

/* ---- 横屏矮窗口（笔记本半屏 / 手机横过来）：操作条贴边不居中遮内容 ---- */
@media (max-height: 520px) {
    body .wl-dock {
        bottom: 6px;
        padding: 5px 10px;
    }

    body .wl-dock .wl-btn {
        min-height: 30px;
        padding: 5px 10px;
        font-size: 11.5px;
    }

    body.wl-dock-on {
        padding-bottom: 84px;
    }
}

/* ===========================================================================
   19. 全局去边框 · 漫画平面风 + 单词信息区收紧（2026-10-24 晚）
   ----------------------------------------------------------------------------
   用户反馈：边框太多太乱（视频框、音标圆环、释义虚线框、音标 pill 描边），
   移动端单词信息（大词 / 英美音标 / 释义）排得散。
   方案：底层文件的装饰性边框全部压平 —— 一律无描边，用色块 + 软投影说话；
   移动端两张音标 pill 收紧后并排一行，垂直间距减半。
   全部用 body 前缀压过 pixar.css / words.css 的同名气。
   ========================================================================= */

/* ---- 音标 pill：无描边、白底、单色英美角标 ---- */
body .phonetic-pill {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
    background: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px -6px rgba(91, 110, 190, 0.4);
}

body .phonetic-pill:hover {
    box-shadow: 0 8px 18px -8px rgba(91, 110, 190, 0.5);
    transform: translateY(-1px);
}

/* 英/美角标统一深藏青，不再一绿一红 */
body .pill-label,
body .uk-label,
body .us-label {
    width: 22px;
    height: 22px;
    background: var(--nw-ink);
    box-shadow: none;
}

/* 播放按钮：去掉圆底、圆环、波纹描边，只留图标本身 */
body .pill-audio-wrapper {
    background: transparent;
    box-shadow: none;
}

body .pill-audio-wrapper::before,
body .pill-audio-wrapper::after {
    display: none;
    content: none;
}

body .pill-audio-wrapper.playing .pill-audio-icon {
    animation: pillIconBounce 0.5s ease-in-out infinite;
}

/* ---- 释义 / 助记：虚线框 → 平面色块 ---- */
body .translation {
    border: none;
    box-shadow: none;
    background: #eef3ff;
    color: var(--nw-ink);
}

body .mnemonic {
    border: none;
    box-shadow: var(--nw-drop-sm);
}

/* ---- 例句卡：去掉描边环 ---- */
body .sentence-item {
    border: none;
    box-shadow: var(--nw-drop-sm);
}

/* ---- 视频：边框 / 悬停描边 / 投影全去掉，干干净净一块画面 ---- */
body .word-video {
    border: none;
    box-shadow: none;
    filter: none;
    background: transparent;
}

body .word-video:hover {
    border: none;
    box-shadow: none;
}

body .word-video:focus {
    outline: none;
}

body .video-wrapper {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

/* ---- 单词信息区：垂直节奏收紧（全端） ---- */
body .meta-info {
    gap: 6px;
}

body .phonetic-translation-container {
    gap: 7px;
}

/* ---- 移动端：两张音标 pill 并排一行，固定小字号不再溢出（不用 clamp） ---- */
@media (max-width: 600px) {
    body .phonetic-pills-container {
        flex-wrap: nowrap;
        gap: 5px;
    }

    body .phonetic-pill {
        padding: 3px 6px 3px 4px;
        gap: 4px;
        border-radius: 999px;
    }

    body .pill-label,
    body .uk-label,
    body .us-label {
        width: 17px;
        height: 17px;
        font-size: 9.5px;
        border-radius: 5px;
    }

    body .pill-phonetic {
        font-size: 12.5px;   /* 固定值：375px 屏两张 pill 恰好收进内容区 */
    }

    body .pill-audio-wrapper {
        width: 20px;
        height: 20px;
    }

    body .pill-audio-icon {
        width: 13px;
        height: 13px;
    }

    body .translation {
        padding: 4px 14px;
        font-size: 0.95rem;
    }

    /* 极窄屏（≤360）兜底：实在放不下才允许换行 */
    @media (max-width: 360px) {
        body .phonetic-pills-container {
            flex-wrap: wrap;
        }
    }
}

/* ---------------------------------------------------------------------------
   20. 移动端：控制按钮紧凑化（2026-10-24 晚）
   ---------------------------------------------------------------------------- 
   用户反馈：连拼 / 洗脑模式等按钮在手机上"不该大的大了"——
   桌面端的 44px 触摸高度 + 10/20px 内边距原样落到了小屏。
   ≤600px 收紧为紧凑胶囊，≤380px 再收一档；桌面端不动。
   ------------------------------------------------------------------------ */
@media (max-width: 600px) {
    body .control-bar,
    body .control-center {
        gap: 6px;
    }

    body .control-btn,
    body .control-btn.train-btn,
    body .control-btn.suite-btn,
    body .control-btn.test-btn {
        min-height: 32px;
        padding: 5px 12px;
        font-size: 12.5px;
        gap: 4px;
        border-radius: 999px;
        box-shadow: 0 2px 0 var(--nw-press-hl);
    }

    body .control-btn.crazy-btn {
        box-shadow: 0 2px 0 var(--nw-coral-dk);
    }

    body .control-btn.train-btn,
    body .control-btn.suite-btn,
    body .control-btn.test-btn {
        box-shadow: 0 2px 0 rgba(29, 43, 83, 0.14);
    }

    /* 按钮里的图标同步缩小 */
    body .control-btn .fa,
    body .control-btn .fas,
    body .control-btn .train-btn-icon {
        font-size: 11.5px;
    }
}

@media (max-width: 380px) {
    body .control-btn,
    body .control-btn.train-btn,
    body .control-btn.suite-btn,
    body .control-btn.test-btn {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* ---------------------------------------------------------------------------
   21. 细节修整（2026-10-24 深夜）
   ----------------------------------------------------------------------------
   用户反馈：①「单词表」拉手太大；② PK 按钮黑底+红沿双色丑；
   ③ 音块卡片挤（播放角标压住音素）；④ 封面「听发音/对答案」等按钮
   白底黑描边黑影 = 双色难看。统一收敛为：单色填充 + 同色按压沿。
   ------------------------------------------------------------------------ */

/* ---- ① 单词表拉手：小一号，别抢戏 ---- */
body #nav-trigger {
    width: 30px;
    height: 92px;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 3px 10px rgba(255, 183, 40, 0.35);
}

body #nav-trigger::before {
    font-size: 11.5px;
    letter-spacing: 2px;
}

@media (max-width: 600px) {
    body #nav-trigger {
        width: 26px;
        height: 78px;
    }

    body #nav-trigger::before {
        font-size: 10.5px;
        letter-spacing: 1.5px;
    }
}

/* ---- ② PK 按钮：一颗干净的西瓜红胶囊，去掉黑底红沿和扫光 ---- */
body .pk-btn {
    background: var(--nw-coral) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 6px 14px;
    font-size: 12.5px;
    box-shadow: 0 3px 0 var(--nw-coral-dk) !important;
}

body .pk-btn::before {
    content: none;
    display: none;
}

body .pk-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--nw-coral-dk) !important;
}

body .pk-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--nw-coral-dk) !important;
}

body .pk-btn.pulse {
    animation: none;
}

/* ---- ③ 音块卡片：留出呼吸感，播放角标不再压字 ---- */
body .pairs-container {
    gap: 10px;
    padding-bottom: 36px;
}

body .mapping-pair {
    padding: 12px 14px 20px;
    gap: 3px;
}

body .grapheme {
    border-bottom: none;
    text-shadow: none;
}

body .phoneme {
    margin-top: 0;
}

body .video-icon {
    bottom: -26px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 15px;
    color: var(--nw-blue);
}

/* ---- ④ wl-btn 一族：去双色（描边+黑影），纯色填充 + 同色按压沿 ---- */
.wl-btn {
    border: none;
    background: #e8efff;
    box-shadow: 0 3px 0 rgba(29, 43, 83, 0.15);
}

.wl-btn:hover {
    background: #dbe7ff;
    box-shadow: 0 4px 0 rgba(29, 43, 83, 0.15);
}

.wl-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 rgba(29, 43, 83, 0.15);
}

.wl-btn--primary {
    background: var(--nw-hl);
    box-shadow: 0 3px 0 var(--nw-press-hl);
}

.wl-btn--primary:hover {
    background: var(--nw-hl-deep);
    box-shadow: 0 4px 0 var(--nw-press-hl);
}

.wl-btn--primary:active {
    box-shadow: 0 1px 0 var(--nw-press-hl);
}

.wl-btn--ghost {
    background: transparent;
    border: none;
    box-shadow: none;
}

.wl-btn--ghost:hover {
    background: rgba(232, 239, 255, 0.8);
    box-shadow: none;
}

.wl-dock .wl-btn {
    box-shadow: 0 2px 0 rgba(29, 43, 83, 0.15);
}

.wl-dock .wl-btn:active {
    box-shadow: 0 0 0 rgba(29, 43, 83, 0.15);
}

/* ---------------------------------------------------------------------------
   22. 音块卡片：加回柔和描边 + 虚线分隔（2026-10-24 深夜 二次校准）
   ----------------------------------------------------------------------------
   用户反馈：边框不能一刀切全去掉——音块这种小积木需要描边「收住」，
   否则散。方案：白卡 + 1.5px 淡蓝描边 + 软投影；字母与音标之间
   一道浅色虚线分隔；选中态星星黄同款描边。整体像一排小积木。
   ------------------------------------------------------------------------ */
body .mapping-pair {
    padding: 11px 14px 18px;
    background: #fff;
    border: 1.5px solid var(--nw-line);
    border-radius: 12px;
    box-shadow: 0 6px 14px -8px rgba(91, 110, 190, 0.35);
}

body .mapping-pair:hover {
    border-color: var(--nw-ink-3);
}

body .mapping-pair.active {
    background: var(--nw-hl);
    border-color: var(--nw-hl-deep);
    box-shadow: 0 3px 0 var(--nw-press-hl);
}

/* 字母与音标之间：一道浅虚线，像作业本上的分隔线 */
body .mapping-pair .grapheme {
    padding-bottom: 5px;
    margin-bottom: 4px;
    border-bottom: 1.5px dashed rgba(29, 43, 83, 0.22);
}

/* ---------------------------------------------------------------------------
   23. 拼写关「中文提示」胶囊（2026-10-24 深夜）
   ------------------------------------------------------------------------ */
.wl-hintcn {
    display: inline-block;
    margin: 2px 0 8px;
    padding: 5px 14px;
    background: #fff6d8;
    border-radius: 999px;
    color: #6b5200;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

/* ---- 复习档小喇叭：图片在上方时，播放按钮缩小成一枚小圆钮 ---- */
.wl-speaker--sm {
    width: 46px;
    height: 46px;
    margin-top: 6px;
}
.wl-speaker--sm svg { width: 26px; height: 26px; }
.wl-speaker--sm img { width: 26px; height: 26px; }

/* ---- 线索图 / 喇叭圆钮：去描边，软投影 ---- */
.wl-clue-img {
    border: none;
    box-shadow: 0 10px 24px -12px rgba(91, 110, 190, 0.4);
}

.wl-speaker {
    border: none;
    box-shadow: 0 10px 24px -12px rgba(91, 110, 190, 0.45);
}


/* ---------------------------------------------------------------------------
   24. 全站平铺水印「词老大英语」——已下线（2026-10-25 用户要求去掉）
   改为只在每张卡片编号行正中央放一枚淡色品牌字（见第 4.1 节 ::before）。
   ------------------------------------------------------------------------ */

/* ---------------------------------------------------------------------------
   25. 收藏按钮双态美化（2026-10-24 晚）
   ----------------------------------------------------------------------------
   旧版黑底金星发光，与白昼漫画风割裂。改为：
   未收藏 = 白色小胶囊 + 淡蓝细描边 + 深藏青空心星（音块同语言）；
   已收藏 = 星星黄填充 + 同色按压沿 + 深金实心星 + 收藏瞬间小弹跳。
   functions.js 已改为 is-fav 类驱动，不再写内联黑底。
   ------------------------------------------------------------------------ */
body .word-fav-btn {
    /* words.css 写死 #1a1a1a !important，这里全部 !important 对打 */
    background: #fff !important;
    border: 1.5px solid var(--nw-line);
    border-radius: 999px !important;
    color: var(--nw-ink-2) !important;
    box-shadow: 0 2px 0 rgba(29, 43, 83, 0.1);
    transition: transform 0.15s var(--nw-ease), box-shadow 0.15s var(--nw-ease), background 0.15s ease;
}

body .word-fav-btn:hover {
    background: #f2f6ff !important;
    border-color: var(--nw-ink-3);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px -4px rgba(91, 110, 190, 0.4);
}

body .word-fav-btn:active {
    transform: translateY(1px);
    box-shadow: 0 0 0 rgba(29, 43, 83, 0.1);
}

body .word-fav-btn .fav-icon {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s var(--nw-ease);
}

/* ---- 已收藏：星星黄胶囊 + 深金实心星 ---- */
body .word-fav-btn.is-fav {
    background: var(--nw-hl) !important;
    border-color: var(--nw-hl-deep);
    color: #6b5200 !important;
    box-shadow: 0 2px 0 var(--nw-press-hl);
}

body .word-fav-btn.is-fav .fav-icon {
    text-shadow: none;
}

/* 收藏瞬间的弹跳：靠重放动画实现（类切换时触发） */
@keyframes favPop {
    0% { transform: scale(0.5) rotate(-12deg); }
    60% { transform: scale(1.25) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

body .word-fav-btn.is-fav .fav-icon {
    animation: favPop 0.35s var(--nw-ease) both;
}

/* ---------------------------------------------------------------------------
   25. 音素拆分行收缩终版（2026-10-25 · 第三版：一行到底，按内容宽度收紧）
   ----------------------------------------------------------------------------
   现象：living room 这类长词在窄屏上掐头截尾（首尾音素对被裁掉）。
   根因：① 前文 body .mapping-pair 有 min-width:58px + 宽内距，9 对撑到 500px+；
        ② 容器 overflow:hidden + 居中 → 放不下的部分两端直接裁切。
   第三版：用户拍板「窄就窄点」→ 一行到底。min-width 回到 auto（= 文字实际宽度，
        不多占）、文字禁换行、内距收紧 → 每个对子缩到刚好包住内容，整行排开。
   ------------------------------------------------------------------------ */
body .pairs-container {
    flex-wrap: nowrap;
    max-width: 100%;
    gap: 4px;
    overflow: visible;
}

body .mapping-pair {
    flex: 0 1 auto;
    min-width: 0;
    padding: 8px 6px 14px;
}

body .mapping-pair .grapheme,
body .mapping-pair .phoneme {
    white-space: nowrap;   /* 文字不折行，对子宽度=内容宽度，不会被压成竖叠 */
}

/* 注意顺序：max-width 区间是叠加命中的（325px 屏同时命中 480 和 360），
   同优先级下写在后面的赢 → 必须宽屏档在前、极窄档在后 */
@media (max-width: 480px) {
    body .mapping-pair {
        border-radius: 9px;
    }

    body .mapping-pair .grapheme { font-size: 0.9em; }
    body .mapping-pair .phoneme { font-size: 0.78em; }
}

/* 极窄屏（≤360）不另设压缩档：沿用上面 480 档的宽松参数，
   即用户在 DevTools 里对比后选中的「取消勾选后变宽」的效果。 */

/* ---------------------------------------------------------------------------
   26. 拼读区按钮带重排 · 第三版：扁平化（2026-10-25 晚）
   ----------------------------------------------------------------------------
   用户口径：① 不要图标只留文字（PK 去麦克风）；② 顺序固定为
   收藏 → 连拼 → 评测 → PK；③ 四钮统一大小；④ 全部去立体（无按压沿投影）。
   实现：统一基座 34px / min-width 72 / 胶囊 / 12.5px；box-shadow 全部归零；
   顺序用 flex order 硬排（不依赖 DOM 顺序）。
   ------------------------------------------------------------------------ */
body .control-btn.train-btn { display: none !important; }

/* 同排布局：控制条整体居中 */
body .control-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 2px;
    padding: 0;
}

/* control-center 是嵌套弹性层，会把 flex order 隔断——打散它，
   让收藏/连拼/评测/PK 成为同一层的 flex 项，order 才能全局生效 */
body .control-bar .control-center {
    display: contents;
}

/* ---- 顺序硬排：收藏 → 连拼 → 评测 → PK ---- */
body .control-bar .word-fav-btn { order: 1; }
body .control-bar .control-btn:not(.word-fav-btn):not(.test-btn) { order: 2; }
body .control-bar .control-btn.test-btn { order: 3; }
body .control-bar .pk-btn,
body .control-bar .pk { order: 4; }

/* ---- 统一基座：四颗钮同尺寸同形状，果冻糖质感（糖果拟物） ---- */
body .control-bar .control-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 34px;
    min-width: 72px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    /* 连拼 = 蓝莓果冻（默认底色） */
    background: linear-gradient(180deg, #7fd4ff, #3fa9f5) !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65),
        inset 0 -4px 6px rgba(0, 0, 0, 0.14),
        0 4px 10px rgba(0, 0, 0, 0.14);
    transition: filter 0.15s ease, transform 0.12s ease;
}

body .control-bar .control-btn:hover {
    filter: brightness(1.08);
}

body .control-bar .control-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.5),
        inset 0 -2px 4px rgba(0, 0, 0, 0.12),
        0 1px 4px rgba(0, 0, 0, 0.14);
}

/* ---- 收藏 = 蜜桃果冻；收藏态点亮成芒果果冻 ---- */
body .control-bar .word-fav-btn {
    background: linear-gradient(180deg, #ff9fc4, #ff6ba3) !important;
    border: none;
    color: #fff !important;
}

body .control-bar .word-fav-btn:hover {
    filter: brightness(1.08);
}

body .control-bar .word-fav-btn.is-fav {
    background: linear-gradient(180deg, #ffd166, #ffaa2b) !important;
    color: #7a4b00 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 收藏也只留文字：星星藏掉，伪元素出字；收藏态自动变「已收藏」 */
body .control-bar .word-fav-btn .fav-icon {
    display: none;
}

body .control-bar .word-fav-btn::after {
    content: "收藏";
}

body .control-bar .word-fav-btn.is-fav::after {
    content: "已收藏";
}

/* ---- 评测 = 葡萄果冻 ---- */
body .control-bar .control-btn.test-btn {
    background: linear-gradient(180deg, #c9a6ff, #9d6bf0) !important;
    color: #fff !important;
}

/* ---- PK：芒果果冻底 + 琥珀字，只留文字不留图标 ---- */
body .control-bar .pk-btn,
body .control-bar .pk {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: static !important;
    min-height: 34px;
    min-width: 72px;
    padding: 0 16px;
    background: linear-gradient(180deg, #ffd166, #ffaa2b) !important;
    color: #7a4b00 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    border-radius: 999px !important;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.65),
        inset 0 -4px 6px rgba(0, 0, 0, 0.14),
        0 4px 10px rgba(0, 0, 0, 0.14) !important;
}

/* 麦克风图标藏掉，只留「PK」两个字 */
body .control-bar .pk-btn .fa,
body .control-bar .pk-btn .fas,
body .control-bar .pk-btn i {
    display: none !important;
}

body .control-bar .pk-btn:hover,
body .control-bar .pk:hover {
    filter: brightness(1.08);
}

body .control-bar .pk-btn:active,
body .control-bar .pk:active {
    transform: translateY(1px);
}

/* ---- 小屏保一排：禁止换行 + 按钮可收缩变小（2026-10-26） ---- */
@media (max-width: 600px) {
    body .control-bar,
    body .control-bar .control-center {
        gap: 6px;
    }

    /* 关键：不许换行，按钮允许被压缩，四颗永远一排 */
    body .control-bar {
        flex-wrap: nowrap;
    }

    body .control-bar .control-btn,
    body .control-bar .pk-btn,
    body .control-bar .pk {
        min-height: 32px;
        min-width: 0;
        flex: 0 1 auto;
        padding: 0 12px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    body .control-bar .control-btn,
    body .control-bar .pk-btn,
    body .control-bar .pk {
        padding: 0 9px;
        font-size: 11.5px;
        letter-spacing: 0;
    }
}

/* ---------------------------------------------------------------------------
   27. 贴纸剪贴本皮肤（2026-10-26）
   ----------------------------------------------------------------------------
   方向：按钮带保持第三版（果冻糖）不动，只翻新卡片层——
   奶油纸波点底 + 柔和悬浮卡片 + 配图白粗边「贴纸」框 + 顶部胶带。
   ------------------------------------------------------------------------ */

/* 页面底：奶油纸 + 淡淡波点（贴纸本的桌布） */
body {
    background: #fdf3e3;
    background-image: radial-gradient(rgba(150, 110, 60, 0.07) 1.2px, transparent 1.3px);
    background-size: 16px 16px;
}

/* 卡片：白纸贴片，软悬浮影，别再用几何硬影 */
body .word-card {
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(120, 80, 40, 0.16);
    /* 声明「横向手势归页面」：华为等浏览器的滑屏前进/后退手势
       不再把卡片上的横滑抢去翻页，左右滑动切单词才稳定 */
    touch-action: pan-y;
}

/* 配图：白粗边贴纸框 + 微微歪斜（像手贴上去的） */
body .word-media1 {
    overflow: visible;
    box-shadow: none;
}

body .word-image {
    border: 5px solid #fff;
    border-radius: 16px;
  /*  box-shadow: 0 6px 16px rgba(120, 80, 40, 0.22);
    transform: rotate(-1.2deg);*/
}

/* 贴纸顶上那条半透明胶带 */
body .word-media1::after {
    content: "";
    position: absolute;
    top: -11px;
    left: 50%;
    width: 74px;
    height: 22px;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(255, 214, 90, 0.8);
    border-left: 2px dashed rgba(0, 0, 0, 0.1);
    border-right: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    pointer-events: none;
}

/* 手机/平板：贴纸框缩小一号但保留白边和胶带 */
@media (max-width: 1024px) {
    body .word-image {
        border-width: 4px;
        border-radius: 12px;
    }
}

/* ---------------------------------------------------------------------------
   28. 音素拆分行重新设计（2026-10-25 晚 · 贴纸蜡笔风）
   ----------------------------------------------------------------------------
   用户反馈旧样子「不顺眼」：白卡+蓝 IPA + 黄色激活块撞色、l_1/r1 文件名漏印、
   圆角投影各自为政。本节统一成一套语言：
     · 每个音块 = 淡蓝蜡笔纸片 + 虚线描边（贴纸本手账感），上面字母下面音标；
     · 激活态 = 芒果黄纸片（呼应全站主色），不再突兀；
     · 音标用统一的小号蓝灰字，不再抢戏；
     · 词间圆点 · 缩小居中，不当主角。
   注意：第 25 节的一行到底/nowrap 收缩规则仍然有效，本节只换皮不动布局参数
   （padding 沿用第 25 节的紧凑值，底部仍给 video-icon 留空间）。
   ------------------------------------------------------------------------ */

/* 旧高光层（words.css 的 ::before 渐变）关掉，避免盖在粉笔框上发灰 */
body .mapping-pair::before {
    display: none;
}

/* 整条音素行 = 一块迷你小黑板：柔和墨绿板面嵌在白卡里，
   圆角 + 细木框描边，黑板感但不沉重。
   宽度收缩到正好包住音块（fit-content + 居中），
   桌面端不再被卡片拉成通栏长板 */
body .pairs-container {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: #3a5a45;
    border: 2px solid #8a6b4a;
    border-radius: 14px;
    padding: 7px 10px 22px;  /* 底部 22px：video-icon 下探 14px，留 8px 呼吸，不压木框 */
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.06), 0 4px 10px -6px rgba(40, 70, 50, 0.5);
}

body .mapping-pair {
    background: transparent;
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    box-shadow: none;
    padding: 5px 7px 9px;   /* 收紧：盖掉第 25 节的 8/6/14，底部不再空一大截 */
    transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

body .mapping-pair:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: none;
}

/* 激活（播放中/点击）：荧光黄粉笔圈出来的那块 */
body .mapping-pair.active {
    background: rgba(255, 209, 102, 0.18);
    border: 1.5px solid #ffd166;
    border-radius: 10px;
    transform: rotate(-1.5deg) translateY(-2px);
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.35);
    animation: none;
}

/* 字母：粉笔白 */
body .mapping-pair .grapheme {
    font-size: 1.18rem;
    color: #fdf6e3;
    text-shadow: none;
    border-bottom: none;
}

/* 字母和音标之间的小分隔：粉笔短虚线 */
body .mapping-pair .grapheme::after {
    content: '';
    display: block;
    width: 14px;
    height: 0;
    margin: 3px auto 2px;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.35);
}

/* 音标：粉笔黄，像老师用彩粉笔标的读音 */
body .mapping-pair .phoneme {
    margin-top: 1px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffd98e;
    letter-spacing: 0.5px;
}

/* 词与词之间的圆点：粉笔灰点 */
body .phrase-space {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    align-self: center;
}

/* 发音小视频角标：缩小一号、少往下探，别在板底拖出空带 */
body .mapping-pair .video-icon {
    color: #ffd166;
    bottom: -14px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 13px;
}

/* ---------------------------------------------------------------------------
   英/美真人发音视频（vocabulary.com 抓取，已转存 OSS）
   两格并排：US 在左、UK 在右；点击海报上播放键或视频本身播放/暂停。
   ------------------------------------------------------------------------ */
body .pron-video-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin: 14px auto 10px;
}

body .pron-video-card {
    min-width: 0;
    text-align: center;
}

body .pron-video-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--nw-ink-2);
}

body .pv-flag {
    display: inline-block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(29, 43, 83, 0.18);
    flex: none;
}

body .pv-flag svg {
    display: block;
    width: 100%;
    height: 100%;
}

body .pron-video-frame {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;   /* 16:9，兼容老内核，不用 aspect-ratio */
    border-radius: 10px;
    overflow: hidden;
    background: #eef3ff;
    border: 1.5px solid var(--nw-line);
    box-shadow: var(--nw-drop-sm);
    /* 部分内核在视频进入合成层后会丢失父级圆角裁剪，用 mask 强制裁一次 */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: -webkit-radial-gradient(white, black);
    /* 横向手势交还页面：这里的触摸不再被浏览器当成视频拖拽/悬浮助手手势，
       左右滑动切单词才能穿过视频区 */
    touch-action: pan-y;
}

body .pron-video-el {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #eef3ff;
    /* 视频本体也带圆角：播放时视频会独立成层，父级 overflow 可能裁不住，
       直角黑边就是这么露出来的 */
    border-radius: 9px;
    /* 视频本体不接收任何触控：长按/横滑都落不到它身上，
       点播放靠 playBtn、点暂停靠画框，交互不受影响 */
    pointer-events: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body .pron-video-play {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 8px;
    margin: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

body .pron-video-play::before {
    content: none;
}

body .pv-play-ico {
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    padding: 5px 5px 5px 6px;
    border-radius: 50%;
    background: rgba(52, 120, 220, 0.72);
    box-shadow: 0 1px 4px rgba(20, 60, 140, 0.28);
    fill: #fff;
}

body .pron-video-card.playing .pron-video-play {
    opacity: 0;
    pointer-events: none;
}

/* 开声兜底：预取没赶上的那一次会静音起播，用这个按钮让用户点一下（手势内开声） */
body .pv-sound-btn {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 9px;
    margin: 0;
    border: none;
    border-radius: 999px;
    background: rgba(14, 26, 49, 0.84);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(8, 20, 45, 0.32);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: pv-sound-in 0.2s ease;
}

body .pv-sound-btn svg {
    width: 14px;
    height: 14px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes pv-sound-in {
    from { opacity: 0; transform: translate(-50%, 5px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 360px) {
    body .pron-video-row { gap: 8px; }
}
