/* ===========================================================
   单词蛇 · 真人录音平台
   手机优先，配色对齐客户端大厅（品牌蓝 #2f6fe0）
   =========================================================== */

:root {
    --paper: #eef4ff;
    --paper-2: #e3ecfe;
    --card: #ffffff;
    --ink: #12203a;
    --ink-2: #35476d;
    --muted: #5a6d92;
    --muted-2: #7d8ead;
    --line: #dde8fb;
    --line-2: #c9d9f5;

    --brand: #2f6fe0;
    --brand-dark: #1d54bc;
    --brand-50: #e9f2ff;
    --brand-100: #d5e6ff;

    --ok: #0a8055;
    --ok-50: #e8f7f0;
    --warn: #a86a00;
    --warn-50: #fff6e2;
    --red: #d33b2b;
    --red-50: #fdeceb;
    --rec: #e0342c;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(18, 40, 90, .06);
    --shadow: 0 2px 6px rgba(18, 40, 90, .05), 0 18px 34px -28px rgba(18, 40, 90, .45);
    --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
    --tap: 48px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--brand); text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- 布局 ---------------- */
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 1280px; }
main { padding-bottom: 96px; }

.appbar {
    position: sticky; top: 0; z-index: 30;
    background: rgba(238, 244, 255, .92);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.appbar-inner {
    display: flex; align-items: center; gap: 10px;
    height: 56px; max-width: 760px; margin: 0 auto; padding: 0 16px;
}
.wrap-wide.appbar-inner { max-width: 1280px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: .3px; }
.brand-mark {
    width: 28px; height: 28px; border-radius: 9px; flex: none;
    background: linear-gradient(150deg, #4b8bf7, #1d54bc);
    color: #fff; font-size: 15px; display: grid; place-items: center; font-weight: 800;
}
.brand small { font-weight: 500; color: var(--muted); font-size: 12px; }
.appbar .spacer { flex: 1; }

/* ---------------- 卡片 / 区块 ---------------- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.card-head > div { flex: 1; min-width: 0; }
.card h2 { font-size: 17px; }
.card-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.eyebrow { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.section-title { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted-2); }
.mono { font-family: var(--mono); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: var(--tap); padding: 0 18px;
    border-radius: 999px; border: 1px solid var(--line-2);
    background: #fff; color: var(--ink-2);
    font-weight: 600; font-size: 15px;
    transition: transform .08s ease, background .15s ease, box-shadow .15s;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(47, 111, 224, .8); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 999px; }
.btn-danger { color: var(--red); border-color: #f3c9c4; background: #fff; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%; min-height: var(--tap);
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-2);
    background: #fbfdff;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(47, 111, 224, .14);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; font-size: 14px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.form-error {
    background: var(--red-50); color: #9c2b1e; border: 1px solid #f4cdc8;
    padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 12px;
}

/* ---------------- 状态 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; line-height: 20px;
    background: var(--brand-50); color: var(--brand-dark); white-space: nowrap;
}
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-red { background: var(--red-50); color: #a33224; }
.badge-gray { background: #eef1f7; color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: var(--brand-50); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #57a0ff, var(--brand)); border-radius: 999px; transition: width .3s ease; }

/* ---------------- 首页 ---------------- */
.hero {
    margin: 18px 0 14px; padding: 26px 20px;
    border-radius: 24px; color: #fff;
    background: radial-gradient(120% 120% at 8% 0%, #4b8bf7 0%, #2f6fe0 45%, #1b4aa8 100%);
    box-shadow: 0 24px 40px -28px rgba(29, 84, 188, .9);
}
.hero h1 { font-size: 26px; line-height: 1.28; letter-spacing: .3px; }
.hero p { margin-top: 10px; color: rgba(255, 255, 255, .88); font-size: 14px; }
.hero-stats { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero-stats div {
    flex: 1 1 90px; background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 12px;
}
.hero-stats b { display: block; font-size: 20px; }
.hero-stats span { font-size: 12px; color: rgba(255, 255, 255, .8); }

.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    background: var(--brand-50); color: var(--brand-dark);
    font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.step b { display: block; font-size: 14px; }
.step span { font-size: 13px; color: var(--muted); }

.tabs { display: flex; gap: 6px; background: var(--brand-50); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.tabs button {
    flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent;
    color: var(--muted); font-weight: 600; font-size: 14px;
}
.tabs button.on { background: #fff; color: var(--brand-dark); box-shadow: var(--shadow-sm); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px;
    border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
    font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- 试音工作台 ---------------- */
.batch-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.batch-tab {
    flex: 1; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-2); background: #fff;
}
.batch-tab.on { border-color: var(--brand); background: var(--brand-50); }
.batch-tab b { display: block; font-size: 14px; }
.batch-tab span { font-size: 12px; color: var(--muted); }
.batch-tab[data-locked="1"] { opacity: .58; }

.word-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.word-pill {
    position: relative; min-width: 64px; min-height: 44px; padding: 0 12px;
    border-radius: 12px; border: 1px solid var(--line-2); background: #fff;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.word-pill small { font-size: 10px; color: var(--muted-2); font-weight: 500; }
.word-pill.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.word-pill.on small { color: rgba(255, 255, 255, .8); }
.word-pill[data-st="approved"] { border-color: #b7e4cf; background: var(--ok-50); }
.word-pill[data-st="rejected"] { border-color: #f2c4bd; background: var(--red-50); }
.word-pill[data-st="submitted"] { border-color: #ffd9a8; background: var(--warn-50); }
.word-pill[data-st="draft"] { border-color: #bcd6ff; background: var(--brand-50); }
.word-pill.on[data-st] { background: var(--brand); border-color: var(--brand); color: #fff; }
.word-pill i { position: absolute; top: 3px; right: 5px; font-size: 10px; font-style: normal; opacity: .8; }

.word-hero { text-align: center; padding: 22px 0 6px; }
.word-hero .idx { font-size: 12px; color: var(--muted-2); letter-spacing: 1px; }
.word-hero .word { font-size: 46px; font-weight: 800; letter-spacing: .5px; line-height: 1.15; word-break: break-word; }
.word-hero .ipa { color: var(--brand-dark); font-size: 17px; margin-top: 4px; }
.word-hero .hint { color: var(--muted); font-size: 14px; margin-top: 2px; }

.howto { display: grid; gap: 8px; margin: 16px 0; }
.howto li {
    display: flex; gap: 10px; align-items: flex-start;
    background: #f7faff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
    font-size: 13px; color: var(--ink-2);
}
.howto li b { flex: none; color: var(--brand-dark); }
.howto li em { font-style: normal; font-weight: 700; color: var(--brand-dark); letter-spacing: .2px; }
.requirement-text { white-space: pre-wrap; font-size: 13px; color: var(--ink-2); }
details.req summary { cursor: pointer; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ---------------- 自然拼读拆读 ---------------- */
.phonics { margin-top: 14px; }
.phonics:empty { display: none; }
.phonics-title {
    font-size: 12px; font-weight: 700; color: var(--brand-dark);
    letter-spacing: 1px; margin-bottom: 8px;
}
.phonics-row { display: flex; flex-wrap: wrap; gap: 8px; }
.phonics-block {
    min-width: 56px; padding: 8px 10px 6px;
    background: #fff; border: 1.5px solid var(--brand-100); border-radius: 12px;
    display: grid; gap: 4px; justify-items: center;
    box-shadow: 0 6px 14px -12px rgba(47, 111, 224, .8);
}
.phonics-block b {
    font-family: var(--mono); font-size: 20px; line-height: 1.1;
    color: var(--ink); letter-spacing: .5px;
}
.phonics-block i {
    font-style: normal; font-family: var(--mono); font-size: 12px;
    color: var(--brand); white-space: nowrap;
}
.phonics-tip { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* 后台：拼读拆分预览（管理端核对自己配的拆法） */
.pv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.pv-stat { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.pv-stat.bad { color: #a33224; }
.pv-stat.ok { color: var(--ok); }
.pv-list { display: grid; gap: 6px; }
.pv-row {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff;
}
.pv-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pv-word { flex: none; font-family: var(--mono); font-weight: 700; font-size: 14px; }
.pv-blocks { display: flex; flex-wrap: wrap; gap: 5px; }
@media (min-width: 720px) {
    .pv-row { flex-direction: row; align-items: center; gap: 12px; }
    .pv-line { flex-direction: column; align-items: flex-start; gap: 2px; width: 190px; flex: none; }
    .pv-blocks { flex: 1; min-width: 0; }
}
.pv-block {
    display: inline-flex; align-items: baseline; gap: 2px; padding: 2px 7px;
    border-radius: 7px; background: #fff; border: 1px solid var(--brand-100);
    font-family: var(--mono); font-size: 12px; color: var(--ink);
}
.pv-block b { font-size: 13px; }
.pv-block i { font-style: normal; color: var(--brand); }
.pv-block.mute { background: #f4f6fa; border-color: #e2e7f0; color: var(--muted); }
.pv-block.mute i { color: var(--muted); }
.pv-miss {
    font-size: 12px; color: #a33224; background: #fff1ef;
    border: 1px dashed #f0c3bc; border-radius: 8px; padding: 2px 8px;
}
.pv-blend { font-size: 12px; color: var(--muted); font-family: var(--mono); white-space: nowrap; }

/* 未录清单 */
.missing-box {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    margin-top: 10px; font-size: 13px; color: var(--ink-2);
}
.missing-box .mb-label { font-size: 13px; color: var(--muted); }
.missing-box .mb-label b { color: #a33224; font-size: 14px; }
.missing-chip {
    padding: 3px 9px; border-radius: 999px; font-size: 12px;
    background: #fff1ef; border: 1px solid #f0c3bc; color: #a33224;
    font-family: var(--mono);
}
.missing-chip:active { background: #ffe2dd; }
.missing-done { font-size: 13px; color: var(--ok); font-weight: 600; }

/* 错误反馈 */
.fb-cats { display: flex; flex-wrap: wrap; gap: 8px; }.fb-cat {
    padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; font-size: 13px; color: var(--ink-2);
}
.fb-cat.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.feedback-link { text-align: center; margin: 18px 0 4px; }
.link-btn {
    background: none; border: 0; padding: 6px 10px; font-size: 13px;
    color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.fb-item {
    border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    background: #fff;
}
.fb-item + .fb-item { margin-top: 10px; }
.fb-item.done { background: #f8fafc; }
.fb-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.fb-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-dark); }
.fb-msg { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.55; }
.fb-meta { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.6; word-break: break-all; }
.fb-reply { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #f2f7ff; font-size: 13px; color: var(--ink-2); }

/* ---------------- 录音器 ---------------- */
.rec-box { text-align: center; padding: 8px 0 4px; }
.rec-status { font-size: 13px; color: var(--muted); min-height: 20px; }
.rec-time { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: 1px; margin: 2px 0 10px; }
.rec-time.live { color: var(--rec); }

.meter { display: flex; gap: 3px; justify-content: center; height: 34px; align-items: flex-end; margin-bottom: 14px; }
.meter i { width: 4px; border-radius: 2px; background: var(--brand-100); height: 20%; transition: height .06s linear, background .2s; }
.meter.live i { background: var(--brand); }

.rec-btn {
    width: 92px; height: 92px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 26px -12px rgba(47, 111, 224, .9);
    transition: transform .1s ease, background .2s;
    margin: 0 auto;
}
.rec-btn:active { transform: scale(.95); }
.rec-btn.stop { background: var(--rec); box-shadow: 0 12px 26px -12px rgba(224, 52, 44, .9); }
.rec-btn[disabled] { opacity: .45; }
.rec-btn .rec-icon { width: 34px; height: 34px; }
.rec-btn .stop-icon { width: 26px; height: 26px; border-radius: 6px; background: #fff; }

.pulse { position: relative; }
.pulse::after {
    content: ""; position: absolute; inset: -8px; border-radius: 50%;
    border: 2px solid rgba(224, 52, 44, .5);
    animation: ring 1.4s ease-out infinite;
}
@keyframes ring {
    0% { transform: scale(.9); opacity: .8; }
    100% { transform: scale(1.25); opacity: 0; }
}

.rec-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.audio-player { width: 100%; margin-top: 14px; }
.audio-player audio { width: 100%; height: 40px; }

.save-state { font-size: 12px; color: var(--muted); min-height: 18px; margin-top: 8px; }
.save-state.ok { color: var(--ok); }
.save-state.err { color: var(--red); }

/* ---------------- 弹窗 ---------------- */
.modal {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(14, 26, 48, .45);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
}
.modal-card {
    width: 100%; max-width: 480px; background: #fff;
    border-radius: 22px 22px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    animation: slideUp .22s ease;
    max-height: 88vh; overflow: auto;
}
.modal.center { align-items: center; padding: 16px; }
.modal.center .modal-card { border-radius: 22px; }
@keyframes slideUp { from { transform: translateY(18px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal h3 { font-size: 18px; margin-bottom: 10px; }
.modal p { font-size: 14px; color: var(--ink-2); }
.modal-actions { display: grid; gap: 10px; margin-top: 18px; }
.modal-icon {
    width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50);
    color: var(--brand); display: grid; place-items: center; margin-bottom: 12px;
}

/* ---------------- 任务列表 ---------------- */
.task-item {
    display: flex; gap: 12px; align-items: center;
    padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; text-align: left; width: 100%;
}
.task-item + .task-item { margin-top: 10px; }
.task-item.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 224, .12); }
.task-main { flex: 1; min-width: 0; }
.task-main b { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-main span { font-size: 12px; color: var(--muted); }
.task-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 10px 8px; text-align: center;
}
.stat b { display: block; font-size: 19px; }
.stat span { font-size: 11px; color: var(--muted); }
.stat-btn { font: inherit; color: inherit; cursor: pointer; }
.stat-btn:active { background: var(--brand-50); }
.stat-btn.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 111, 224, .1); }

/* ---------------- 表格（后台） ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { color: var(--muted); font-weight: 600; font-size: 12px; white-space: nowrap; background: #f8fbff; }
table.data tr:hover td { background: #fafdff; }
table.data td.nowrap { white-space: nowrap; }
.table-empty { text-align: center; color: var(--muted); padding: 26px 0; font-size: 13px; }

/* ---------------- 后台 ---------------- */
.admin-shell { display: grid; gap: 14px; }
.admin-nav { display: flex; gap: 6px; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.admin-nav button {
    flex: none; min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px;
    background: transparent; color: var(--muted); font-size: 13px; font-weight: 600;
}
.admin-nav button.on { background: var(--brand); color: #fff; }
.admin-nav button .nav-dot {
    display: inline-block; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px;
    margin-left: 5px; border-radius: 9px; background: var(--rec); color: #fff;
    font-size: 11px; font-weight: 700; vertical-align: 1px;
}
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kpi b { display: block; font-size: 24px; line-height: 1.2; }
.kpi .kpi-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 130px; min-height: 38px; padding: 6px 10px; font-size: 13px; }
.toolbar .grow { flex: 1; }

.login-gate { max-width: 380px; margin: 8vh auto; }
.login-gate .card { padding: 24px 22px; }

/* 审核条目 */
.review-row {
    display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: #fff;
}
.review-row + .review-row { margin-top: 10px; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-head b { font-size: 15px; }
.review-head .spacer { flex: 1; }
.review-row audio { width: 100%; height: 36px; }

/* ---------------- 提示条 ---------------- */
.toast {
    position: fixed; left: 50%; bottom: 88px; transform: translate(-50%, 12px);
    background: rgba(18, 32, 58, .94); color: #fff;
    padding: 11px 18px; border-radius: 12px; font-size: 13px;
    opacity: 0; pointer-events: none; transition: all .24s ease; z-index: 200;
    max-width: 86vw; text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.banner {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--radius-sm); font-size: 13px;
    background: var(--warn-50); border: 1px solid #ffe0ad; color: #8a5600;
}
.banner.info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-dark); }
.banner.err { background: var(--red-50); border-color: #f4cdc8; color: #9c2b1e; }
.banner.ok { background: var(--ok-50); border-color: #c3e9d8; color: var(--ok); }
.banner b { font-weight: 700; }

.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--line);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    backdrop-filter: blur(8px);
}
.bottom-bar-inner { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bottom-bar .spacer { flex: 1; }

.empty { text-align: center; padding: 34px 12px; color: var(--muted); font-size: 14px; }
.loading { text-align: center; padding: 30px 0; color: var(--muted); font-size: 13px; }
.skeleton { background: linear-gradient(90deg, #eef3fb, #f7faff, #eef3fb); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { 0% { background-position: 0 0; } 100% { background-position: -200% 0; } }

/* ---------------- 桌面 ---------------- */
@media (min-width: 720px) {
    body { font-size: 15px; }
    .wrap { padding: 0 24px; }
    .hero { padding: 34px 30px; }
    .hero h1 { font-size: 32px; }
    .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
    .modal { align-items: center; padding: 20px; }
    .modal-card { border-radius: 22px; max-width: 460px; }
    .rec-btn { width: 104px; height: 104px; }
    .word-hero .word { font-size: 56px; }
    .bottom-bar-inner { padding: 0 8px; }
    .split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; align-items: start; }
}
