/* ============================================
   团播主持新人培训系统 — 样式表
   简洁清新风格 · CSS 变量统一管理
   ============================================ */

:root {
    --primary: #5B8DEF;
    --primary-dark: #4A7BDE;
    --primary-light: #E8F0FE;
    --success: #34C759;
    --success-light: #E8F8ED;
    --danger: #FF3B30;
    --danger-light: #FFEBEA;
    --warning: #FF9500;
    --warning-light: #FFF3E6;
    --text: #1D1D1F;
    --text-primary: #1D1D1F;   /* 话术区块主文字（= --text 别名，保持向后兼容） */
    --text-secondary: #6E6E73;
    --text-muted: #AEAEB2;
    --bg: #F5F5F7;
    --bg-card: #FFFFFF;        /* 话术区块卡片背景（= --card 别名） */
    --bg-secondary: #F2F2F7;   /* 次级背景（卡片嵌套/示例区） */
    --card: #FFFFFF;
    --border: #E5E5EA;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== 视图切换 ========== */
.view { display: none; }
.view.active { display: block; }

/* ========== 登录页 ========== */
.login-container {
    max-width: 460px;
    margin: 80px auto 0;
    text-align: center;
    padding: 0 16px;
}
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* 新人卡片 — 主体 */
.login-card-main {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--primary-light);
}
.login-card-icon { font-size: 48px; margin-bottom: 12px; }
.login-card-main h3 { font-size: 20px; margin-bottom: 20px; color: var(--text); }

.login-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    text-align: center;
    margin-bottom: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}
.login-input:focus { outline: none; border-color: var(--primary); }

/* 培训师入口 — 弱化 */
.trainer-entry {
    margin-top: 32px;
}
.btn-trainer-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 12px;
    transition: color 0.2s;
}
.btn-trainer-toggle:hover { color: var(--text-secondary); }
.trainer-entry-form {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.trainer-entry-form .login-input {
    width: 180px;
    margin-bottom: 0;
    font-size: 14px;
    padding: 8px 12px;
}
.login-hint { font-size: 13px; color: #D35400; }  /* 加深以提升对比度 */

/* 密码强度指示器 */
.password-strength-wrap {
    margin-bottom: 12px;
}
.password-strength-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.password-strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}
.password-strength-fill.strength-low { background: var(--danger); }
.password-strength-fill.strength-medium { background: var(--warning); }
.password-strength-fill.strength-high { background: var(--success); }
.password-strength-label {
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    padding-left: 2px;
}
.password-strength-label.strength-low { color: var(--danger); }
.password-strength-label.strength-medium { color: var(--warning); }
.password-strength-label.strength-high { color: var(--success); }

/* 登录表单密码消息 */
.password-msg {
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
    display: none;
}
.password-msg.error { color: var(--danger); display: block; }
.password-msg.info { color: var(--text-secondary); display: block; }
.password-msg.success { color: var(--success); display: block; }

/* ========== 顶部栏 ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-trainer { background: linear-gradient(135deg, #1D1D1F, #3A3A3C); }
.header-trainer .header-title { color: #FFF; }
.header-trainer .btn-outline { border-color: #FFF; color: #FFF; }
.header-trainer .btn-outline:hover { background: #FFF; color: #1D1D1F; }
.header-title { font-size: 20px; font-weight: 700; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-user { font-size: 14px; color: var(--text-secondary); font-weight: 600; }

/* ========== Tab 导航 ========== */
.tab-nav {
    display: flex;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.tab-btn {
    padding: 14px 24px;
    border: none;
    background: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* Tab 红点提醒 */
.tab-btn-script { position: relative; }
.tab-dot {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

/* ========== 主内容 ========== */
.main-content { max-width: 900px; margin: 24px auto; padding: 0 16px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ========== 卡片 ========== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.card-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.card-sub { font-size: 13px; color: var(--text-secondary); }
.card-row { display: flex; justify-content: space-between; align-items: center; }

/* ========== 徽章 ========== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.badge-done { background: var(--success-light); color: #1A7A36; }
.badge-pending { background: var(--warning-light); color: #9A5600; }  /* 加深以提升对比度 */
.badge-info { background: var(--primary-light); color: var(--primary-dark); }

/* ========== 按钮 ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.btn-primary { background: var(--primary); color: #FFF; }
.btn-success { background: var(--success); color: #FFF; }
.btn-success:hover { background: #2DB84D; }
.btn-danger { background: var(--danger); color: #FFF; }
.btn-danger:hover { background: #E0352B; }
.btn-outline { background: #FFF; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #FFF; }
.btn-ghost { background: none; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal-content {
    background: var(--card);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
    border: none; background: none;
    font-size: 24px; cursor: pointer;
    color: var(--text-muted); line-height: 1;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; line-height: 1.8; }
.modal-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 8px 0; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; gap: 12px; justify-content: flex-end;
}

/* ========== 题目区域 ========== */
.question-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}
.question-card.answered { border-left-color: var(--success); }
.question-number {
    font-size: 13px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.question-type-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
}
.tag-single { background: #E8F0FE; color: #5B8DEF; }
.tag-multiple { background: #E8F8ED; color: #34C759; }
.tag-truefalse { background: #FFF3E6; color: #FF9500; }
.tag-fill { background: #FFEBEA; color: #FF3B30; }
.multi-hint { font-size: 12px; color: var(--danger); }
.question-text { font-size: 16px; font-weight: 500; margin: 12px 0; line-height: 1.7; }

.question-images {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 16px;
}
.question-img {
    max-width: 100%; max-height: 280px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    cursor: pointer; object-fit: contain;
    transition: transform 0.2s;
}
.question-img:hover { transform: scale(1.02); }

/* -- 图片遮罩缩放（替代 position:fixed 切换，避免抖动） -- */
.img-zoom-overlay {
    display: none;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 300;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.img-zoom-overlay.active { display: flex; }
.img-zoom-img {
    max-width: 92vw; max-height: 92vh;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    object-fit: contain;
}

/* -- 图片选项配对（图片数 === 选项数时使用） -- */
.img-opt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.img-opt-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--card);
}
.img-opt-card:hover { box-shadow: var(--shadow-sm); }
.img-opt-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}
.img-opt-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}
.img-opt-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text);
    min-height: 44px;
}

/* 选项 */
.option-list { list-style: none; }
.option-item {
    display: flex; align-items: center;
    padding: 10px 14px; margin-bottom: 6px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.15s;
}
.option-item:hover { border-color: var(--primary-light); background: #F8FAFF; }
.option-item.selected { border-color: var(--primary); background: var(--primary-light); }
.option-item.correct { border-color: var(--success); background: var(--success-light); }
.option-item.wrong { border-color: var(--danger); background: var(--danger-light); }
.option-radio, .option-checkbox {
    width: 20px; height: 20px;
    border: 2px solid var(--border);
    margin-right: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.option-radio { border-radius: 50%; }
.option-checkbox { border-radius: 4px; }
.selected .option-radio { border-color: var(--primary); background: var(--primary); }
.selected .option-radio::after {
    content: ""; width: 8px; height: 8px; background: #FFF; border-radius: 50%;
}
.selected .option-checkbox { border-color: var(--primary); background: var(--primary); }
.selected .option-checkbox::after { content: "✓"; color: #FFF; font-size: 13px; font-weight: 700; }

/* 填空题 */
.fill-input-wrapper { margin-top: 4px; }
.fill-input {
    width: 100%; padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px; font-family: inherit;
    background: #FAFAFA; transition: border-color 0.2s;
}
.fill-input:focus { outline: none; border-color: var(--primary); background: #FFF; }

/* 考试操作栏 */
.quiz-bar {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; flex-wrap: wrap;
}
.quiz-bar-title { font-size: 20px; flex: 1; }
.quiz-bar-status { font-size: 14px; color: var(--text-secondary); font-weight: 600; }

/* ========== 成绩结果 ========== */
.result-score {
    font-size: 72px; font-weight: 800; color: var(--primary);
}
.result-score.pass { color: var(--success); }
.result-score.fail { color: var(--danger); }
.result-item {
    padding: 12px 16px; margin-bottom: 8px;
    border-radius: var(--radius-sm);
    border-left: 4px solid transparent;
}
.result-item.correct-item { background: var(--success-light); border-left-color: var(--success); }
.result-item.wrong-item { background: var(--danger-light); border-left-color: var(--danger); }
.result-question { font-weight: 600; margin-bottom: 4px; }
.result-answer { font-size: 14px; color: var(--text-secondary); }
.result-explanation { font-size: 14px; color: var(--primary); margin-top: 4px; }

/* ========== 进度面板 ========== */
.progress-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.progress-section h3 { font-size: 17px; margin-bottom: 16px; }
.progress-bar-wrap {
    height: 12px; background: var(--border);
    border-radius: 6px; overflow: hidden; margin: 8px 0;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 6px; transition: width 0.5s ease; width: 0%;
}
.progress-label { font-size: 14px; color: var(--text-secondary); text-align: right; }

/* 表格 */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border);
}
.data-table th { font-size: 12px; color: var(--text-secondary); font-weight: 600; background: #FAFAFA; }
.data-table td { font-size: 14px; }
.empty-state { text-align: center; color: var(--text-muted); padding: 40px; font-size: 15px; }

/* ========== 培训师端 ========== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: inherit;
    transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--primary);
}
.form-textarea { min-height: 200px; resize: vertical; font-family: monospace; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.inline-flex { display: flex; gap: 8px; align-items: center; }

/* ========== 导入预览 ========== */
.import-preview { max-height: 400px; overflow-y: auto; }
.import-preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.import-preview-table th, .import-preview-table td {
    padding: 6px 10px; border: 1px solid var(--border); text-align: left;
}
.import-preview-table th { background: #FAFAFA; }

/* ========== 能力清单 ========== */

/* -- 全屏视图容器 -- */
.checklist-fullscreen {
    margin: -24px -16px;  /* 抵消 main-content 的 padding，撑满屏幕 */
    min-height: calc(100vh - 120px);  /* 减去 header + tab 的高度 */
}

/* -- 全屏顶部栏 -- */
.checklist-fs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.checklist-fs-title { font-size: 17px; font-weight: 700; }
.checklist-fs-spacer { width: 60px; }  /* 平衡左侧返回按钮，让标题居中 */

/* -- 返回按钮 -- */
.checklist-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: none;
    background: var(--bg);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s;
    flex-shrink: 0;
}
.checklist-back-btn:active { background: var(--border); }
.checklist-back-label { display: none; }  /* 手机端只显示箭头 */

/* -- 入口卡片 -- */
.checklist-entry-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary);
}
.checklist-entry-main { flex: 1; min-width: 0; }
.checklist-entry-title { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.checklist-entry-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }

/* -- 入口卡片内迷你进度条 -- */
.checklist-mini-bar { display: flex; align-items: center; gap: 10px; }
.checklist-mini-track {
    flex: 1; max-width: 160px;
    height: 6px; background: var(--border);
    border-radius: 3px; overflow: hidden;
}
.checklist-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px; transition: width 0.3s;
}
.checklist-mini-text { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* -- 弹窗内顶部总进度条 -- */
.checklist-overall-bar {
    padding: 16px 24px;
    background: #FAFAFA;
    border-bottom: 1px solid var(--border);
}
.checklist-overall-info {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.checklist-overall-label { font-weight: 700; font-size: 15px; }
.checklist-overall-num { font-size: 15px; font-weight: 700; color: var(--primary); }
.checklist-overall-track {
    height: 10px; background: var(--border);
    border-radius: 5px; overflow: hidden; margin-bottom: 12px;
}
.checklist-overall-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
    border-radius: 5px; transition: width 0.4s;
    min-width: 0;
}
.checklist-legend {
    display: flex; gap: 20px; font-size: 12px; color: var(--text-secondary);
}
.checklist-legend-item { display: flex; align-items: center; gap: 4px; }
.cl-dot {
    display: inline-block;
    width: 10px; height: 10px; border-radius: 50%;
}
.cl-dot-mastered { background: var(--success); }
.cl-dot-unskilled { background: var(--warning); }
.cl-dot-unlearned { border: 2px solid var(--danger); background: #FFF; }

/* -- 分类容器 -- */
.checklist-cats-wrapper { padding: 0; }

/* -- 分类头部（手风琴触控行） -- */
.checklist-cat-header {
    display: flex; align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    background: #FFF; cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.checklist-cat-header:active { background: var(--bg); }
.checklist-cat-arrow { font-size: 13px; color: var(--text-muted); margin-right: 10px; width: 16px; flex-shrink: 0; }
.checklist-cat-name { flex: 1; font-weight: 600; font-size: 15px; }
.checklist-cat-count { font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* -- 分类正文（清单项列表） -- */
.checklist-cat-body { /* display controlled by JS */ }

/* -- 单个清单项（三态） -- */
.checklist-item {
    display: flex; align-items: center;
    padding: 13px 24px 13px 38px;
    min-height: 48px;
    border-bottom: 1px solid #F0F0F5;
    cursor: pointer; user-select: none;
    transition: background 0.15s;
}
.checklist-item:active { background: var(--bg); }
.checklist-item-icon {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-right: 14px; flex-shrink: 0;
    font-size: 14px; font-weight: 700;
}
.checklist-item-text { font-size: 14px; line-height: 1.5; }

/* 已掌握 — 绿色 */
.cl-mastered { border-left: 4px solid var(--success); }
.cl-mastered .checklist-item-icon { background: var(--success); color: #FFF; }

/* 不熟练 — 黄色 */
.cl-unskilled { border-left: 4px solid var(--warning); }
.cl-unskilled .checklist-item-icon { background: var(--warning); color: #FFF; }

/* 未掌握 — 红色 */
.cl-unlearned { border-left: 4px solid var(--danger); }
.cl-unlearned .checklist-item-icon { border: 2px solid var(--danger); color: var(--danger); background: #FFF; }

/* -- 进度面板清单摘要 -- */
.checklist-progress-fill { background: linear-gradient(90deg, var(--primary), var(--success)); }

/* -- 进度面板三列网格 -- */
.progress-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
    margin-bottom: 16px;
}

/* -- 培训师监管统计网格 -- */
.trainee-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}

/* ========== 团播认知 ========== */

/* -- 顶部引导语 -- */
.cog-hero {
    text-align: center;
    padding: 32px 16px 20px;
}
.cog-hero-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.cog-hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
}

/* -- 卡片堆叠 -- */
.cog-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 32px;
}

/* -- 单张认知卡片 -- */
.cog-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: box-shadow 0.2s;
}
.cog-card:hover { box-shadow: var(--shadow); }

/* -- 序号标记 -- */
.cog-card-marker {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFF;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(91,141,239,0.3);
}

/* -- 卡片标题 -- */
.cog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding-left: 8px;
    border-left: 3px solid var(--primary);
}

/* -- 卡片正文 -- */
.cog-card-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}
.cog-card-body p {
    margin-bottom: 12px;
}
.cog-card-body ul,
.cog-card-body ol {
    margin: 0 0 12px 20px;
}
.cog-card-body li {
    margin-bottom: 6px;
}
.cog-card-body strong {
    color: var(--text);
}

/* -- 场景判断区域 -- */
.cog-scenario {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}
.cog-scenario-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.cog-scenario-question {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 14px;
    line-height: 1.7;
    font-weight: 500;
}

/* -- 选项按钮 -- */
.cog-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.cog-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    color: var(--text);
    min-height: 44px;
}
.cog-option:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}
.cog-option:active {
    transform: scale(0.98);
}
.cog-option:disabled {
    cursor: default;
    pointer-events: none;
}

/* -- 选项字母标 -- */
.cog-option-letter {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.cog-option:hover .cog-option-letter {
    background: var(--primary);
    color: #FFF;
}

/* -- 选项判定态 -- */
.cog-option-correct {
    border-color: var(--success) !important;
    background: var(--success-light) !important;
}
.cog-option-correct .cog-option-letter {
    background: var(--success);
    color: #FFF;
}
.cog-option-wrong {
    border-color: var(--danger) !important;
    background: var(--danger-light) !important;
}
.cog-option-wrong .cog-option-letter {
    background: var(--danger);
    color: #FFF;
}

/* -- 反馈区域 -- */
.cog-feedback {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    animation: cogFadeIn 0.3s ease;
}
@keyframes cogFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cog-feedback-ok {
    background: var(--success-light);
    border: 1px solid var(--success);
}
.cog-feedback-err {
    background: var(--danger-light);
    border: 1px solid var(--danger);
}
.cog-feedback-icon {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}
.cog-feedback-ok .cog-feedback-icon { color: #1A7A36; }
.cog-feedback-err .cog-feedback-icon { color: var(--danger); }
.cog-feedback-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========== 响应式：手机端适配（≤600px） ========== */
@media (max-width: 600px) {

    /* -- 全局 -- */
    body { -webkit-tap-highlight-color: transparent; }

    /* -- 登录页 -- */
    .login-container { margin-top: 32px; padding: 0 12px; }
    .login-title { font-size: 22px; }
    .login-subtitle { font-size: 14px; margin-bottom: 24px; }
    .login-card-main { padding: 28px 20px; border-radius: var(--radius); }
    .login-card-icon { font-size: 40px; }
    .login-card-main h3 { font-size: 17px; }
    .login-input { padding: 14px; font-size: 16px; }
    .trainer-entry { margin-top: 24px; }
    .trainer-entry-form { flex-direction: column; align-items: stretch; }
    .trainer-entry-form .login-input { width: 100%; }
    .btn-trainer-toggle { padding: 12px; font-size: 14px; min-height: 44px; }

    /* -- 顶部栏 -- */
    .header { padding: 10px 14px; flex-wrap: wrap; gap: 6px; }
    .header-title { font-size: 16px; }
    .header-user { font-size: 13px; }
    .header-right { gap: 8px; }

    /* -- Tab 导航 -- */
    .tab-nav {
        padding: 0 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .tab-btn { padding: 14px 16px; font-size: 13px; white-space: nowrap; flex-shrink: 0; min-height: 44px; }
    .tab-btn.active::after { left: 25%; width: 50%; }

    /* -- 主内容 -- */
    .main-content { margin: 16px auto; padding: 0 10px; }

    /* -- 卡片 -- */
    .card { padding: 16px; margin-bottom: 10px; }
    .card-title { font-size: 15px; }
    .card-sub { font-size: 12px; }
    .card-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .card-row > div:first-child { min-width: 0; }

    /* -- 按钮 -- */
    .btn { padding: 12px 20px; font-size: 15px; min-height: 44px; }
    .btn-sm { padding: 10px 16px; font-size: 13px; min-height: 44px; }
    .btn-block { width: 100%; }

    /* -- 弹窗 -- */
    .modal-overlay { padding: 8px; align-items: flex-end; }
    .modal-content { max-width: 100%; max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; }
    .modal-header { padding: 12px 16px; }
    .modal-title { font-size: 16px; }
    .modal-close { font-size: 28px; padding: 8px; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    .modal-body { padding: 16px; }
    .modal-footer { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
    .modal-footer .btn { flex: 1; min-width: 0; }

    /* -- 截图 -- */
    .screenshot-section { margin: 16px 0 12px; padding: 12px; }
    .screenshot-label { font-size: 13px; }
    .screenshot-img { max-height: 40vh; object-fit: contain; }

    /* -- 题目 -- */
    .question-card { padding: 16px; margin-bottom: 12px; }
    .question-text { font-size: 15px; }
    .question-images { gap: 6px; }
    .question-img { max-height: 200px; }

    /* 图片选项配对 — 手机端 2 列 */
    .img-opt-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .img-opt-img { aspect-ratio: 1/1; object-fit: contain; cursor: zoom-in; }
    .img-opt-label { font-size: 12px; padding: 8px 10px; min-height: 44px; }

    /* -- 选项 -- */
    .option-item { padding: 14px 14px; margin-bottom: 8px; min-height: 48px; }
    .option-radio, .option-checkbox { width: 24px; height: 24px; margin-right: 14px; flex-shrink: 0; }
    .selected .option-radio::after { width: 10px; height: 10px; }
    .selected .option-checkbox::after { font-size: 15px; }

    /* -- 填空题 -- */
    .fill-input { padding: 14px 16px; font-size: 16px; }

    /* -- 考试操作栏 -- */
    .quiz-bar { gap: 10px; padding: 12px 0; }
    .quiz-bar-title { font-size: 17px; flex: 1 1 100%; }
    .quiz-bar-status { font-size: 13px; }

    /* -- 成绩结果 -- */
    .result-score { font-size: 56px; }
    .result-item { padding: 10px 14px; }
    .result-answer, .result-explanation { font-size: 13px; }

    /* -- 进度面板 -- */
    .progress-section { padding: 16px; margin-bottom: 12px; }
    .progress-section h3 { font-size: 15px; margin-bottom: 12px; }
    .progress-section div[style*="font-size:32px"] { font-size: 26px !important; }

    /* -- 表格 -- */
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .data-table th, .data-table td { padding: 8px 10px; font-size: 13px; }
    .data-table th { font-size: 11px; }
    .empty-state { padding: 28px 16px; font-size: 14px; }

    /* -- 能力清单 -- */
    .checklist-fullscreen { margin: -16px -10px; }

    .checklist-fs-header {
        padding: 10px 14px;
        position: sticky; top: 0; z-index: 10;
    }
    .checklist-fs-title { font-size: 16px; }
    .checklist-fs-spacer { width: 50px; }

    .checklist-back-btn {
        width: 36px; height: 36px;
        font-size: 18px;
    }

    .checklist-entry-card {
        flex-direction: column; align-items: stretch; gap: 12px;
    }
    .checklist-entry-card .btn { width: 100%; }
    .checklist-mini-bar { gap: 8px; }
    .checklist-mini-track { max-width: none; }

    .checklist-overall-bar { padding: 12px 16px; }
    .checklist-overall-label { font-size: 14px; }
    .checklist-overall-num { font-size: 14px; }
    .checklist-legend { gap: 14px; font-size: 11px; }
    .checklist-overall-track { height: 8px; margin-bottom: 10px; }

    .checklist-cat-header { padding: 14px 16px; min-height: 48px; }
    .checklist-cat-name { font-size: 14px; }
    .checklist-cat-count { font-size: 13px; }

    .checklist-item { padding: 14px 16px 14px 30px; min-height: 48px; }
    .checklist-item-icon { width: 24px; height: 24px; margin-right: 12px; font-size: 13px; }
    .checklist-item-text { font-size: 13px; }

    /* -- 进度面板三列 → 三列（手机端够用） -- */
    .progress-grid-3 {
        gap: 10px;
    }
    .progress-grid-3 > div > div:first-child { font-size: 24px !important; }

    /* -- 培训师监管统计四列 → 两列 -- */
    .trainee-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    /* -- 团播认知 -- */
    .cog-hero { padding: 24px 12px 16px; }
    .cog-hero-title { font-size: 19px; }
    .cog-hero-sub { font-size: 13px; }
    .cog-card { padding: 20px 16px; }
    .cog-card-marker {
        top: -8px; left: -8px;
        width: 28px; height: 28px;
        font-size: 13px;
    }
    .cog-card-title { font-size: 16px; }
    .cog-card-body { font-size: 13px; }
    .cog-scenario-question { font-size: 13px; }
    .cog-option { padding: 12px; font-size: 13px; }

    /* -- 培训师端 -- */
    .form-input, .form-textarea, .form-select { font-size: 16px; }
    .inline-flex { flex-direction: column; align-items: stretch; }
    .inline-flex > .form-select { width: 100%; }
}

/* ========== 响应式：极小屏（≤380px） ========== */
@media (max-width: 380px) {
    .login-title { font-size: 20px; }
    .login-card-main { padding: 22px 14px; }
    .header-title { font-size: 14px; }
    .tab-btn { padding: 12px 14px; font-size: 12px; }
    .card-title { font-size: 14px; }
    .btn { font-size: 14px; padding: 10px 16px; }
    .question-text { font-size: 14px; }
    .option-item { padding: 12px 12px; min-height: 44px; }
    .option-radio, .option-checkbox { width: 22px; height: 22px; }
    .result-score { font-size: 42px; }
    .quiz-bar-title { font-size: 15px; }
    .progress-section div[style*="font-size:32px"] { font-size: 22px !important; }
    .modal-header { padding: 10px 12px; }
    .modal-body { padding: 12px; }
    .modal-footer { padding: 10px 12px; }

    /* -- 能力清单极小屏 -- */
    .checklist-fs-header { padding: 10px 12px; }
    .checklist-fs-title { font-size: 15px; }
    .checklist-fs-spacer { width: 44px; }
    .checklist-cat-header { padding: 12px 14px; }
    .checklist-cat-name { font-size: 13px; }
    .checklist-item { padding: 12px 14px 12px 26px; }
    .checklist-item-icon { width: 22px; height: 22px; margin-right: 10px; }
    .checklist-item-text { font-size: 12px; }
    .checklist-overall-bar { padding: 10px 12px; }
    .checklist-overall-label { font-size: 13px; }
    .checklist-overall-num { font-size: 13px; }
    .checklist-legend { gap: 10px; font-size: 10px; }

    /* -- 团播认知极小屏 -- */
    .cog-hero { padding: 20px 8px 12px; }
    .cog-hero-title { font-size: 17px; }
    .cog-card { padding: 16px 12px; }
    .cog-card-marker { width: 24px; height: 24px; font-size: 12px; top: -6px; left: -6px; }
    .cog-card-title { font-size: 15px; }
    .cog-card-body { font-size: 12px; }
    .cog-option { padding: 10px; font-size: 12px; }
    .cog-option-letter { width: 20px; height: 20px; font-size: 11px; }
}

/* -- 触屏设备去掉 hover 效果（保留到桌面端） -- */
@media (hover: hover) {
    .card:hover { box-shadow: var(--shadow); }
    .btn-primary:hover { background: var(--primary-dark); }
    .btn-success:hover { background: #2DB84D; }
    .btn-danger:hover { background: #E0352B; }
    .btn-outline:hover { background: var(--primary); color: #FFF; }
    .btn-ghost:hover { background: var(--bg); }
    .btn-trainer-toggle:hover { color: var(--text-secondary); }
    .tab-btn:hover { color: var(--primary); }
    .modal-close:hover { color: var(--danger); }
    .option-item:hover { border-color: var(--primary-light); background: #F8FAFF; }
    .question-img:hover { transform: scale(1.02); }
    .screenshot-img:hover { transform: scale(1.01); box-shadow: var(--shadow); }
    .header-trainer .btn-outline:hover { background: #FFF; color: #1D1D1F; }
    .checklist-cat-header:hover { background: #FAFAFA; }
    .checklist-item:hover { background: #F8FAFF; }
    .checklist-back-btn:hover { background: var(--border); }
}

/* ============================================
   话术练习系统
   ============================================ */

/* --- 排名系统 --- */
.rank-hero {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 0 16px;
}
.rank-number {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.rank-divider {
    font-size: 24px;
    color: var(--text-muted);
}
.rank-total {
    font-size: 16px;
    color: var(--text-secondary);
}
.rank-score {
    margin-left: auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.rank-list {
    display: flex;
    flex-direction: column;
}
.rank-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    min-height: 44px;
}
.rank-row:last-child {
    border-bottom: none;
}
.rank-row-me {
    background: rgba(0,122,255,0.05);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 -12px;
}
.rank-medal {
    font-size: 20px;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.rank-pos {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}
.rank-name {
    flex: 1;
    font-size: 15px;
    color: var(--text-primary);
}
.rank-pts {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.rank-hint {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    padding: 10px 0 0;
    opacity: 0.7;
}

/* 排名变化指示器 */
.rank-change {
    font-size: 14px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 2px;
}
.rank-change.up {
    color: #34C759;
    background: rgba(52,199,89,0.1);
}
.rank-change.down {
    color: #FF3B30;
    background: rgba(255,59,48,0.08);
}
.rank-change.same {
    color: var(--text-muted);
    font-size: 12px;
}

/* 徽章 */
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 0 12px;
}
.badge-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #FFF9E6, #FFF3CC);
    border: 1px solid rgba(200,160,50,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #8B6914;
    white-space: nowrap;
    cursor: default;
    transition: transform 0.15s;
}
.badge-item:active {
    transform: scale(0.96);
}
.badge-icon {
    font-size: 16px;
    line-height: 1;
}
.rank-trainer-table-wrap {
    overflow-x: auto;
    margin-bottom: 16px;
}
.rank-table th,
.rank-table td {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 13px;
}
.rank-table th:first-child,
.rank-table td:first-child {
    width: 32px;
    text-align: center;
}

/* --- 筛选切换栏 --- */
.script-filter-bar {
    display: flex;
    gap: 0;
    padding: 4px;
    background: var(--bg-card);
    border-radius: 10px;
    margin-bottom: 14px;
}
.script-filter-btn {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 7px;
    transition: all 0.2s;
    min-height: 44px;
}
.script-filter-btn.active {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.script-filter-btn:active {
    opacity: 0.8;
}

/* --- 场景列表项（扩展） --- */
.script-item-body {
    flex: 1;
    min-width: 0;
}
.script-item-preview {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 场景分类手风琴 — 复用 checklist-category 结构 */
.script-category {
    margin-bottom: 12px;
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
}
.script-cat-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    user-select: none;
    min-height: 48px;
    gap: 10px;
}
.script-cat-header:active {
    background: rgba(0,0,0,0.04);
}
.script-cat-arrow {
    font-size: 12px;
    color: var(--text-muted);
    width: 16px;
    flex-shrink: 0;
}
.script-cat-name {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}
.script-cat-count {
    font-size: 13px;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.script-cat-body {
    /* 展开/折叠控制 */
}

/* 场景列表项 */
.script-item {
    display: flex;
    align-items: center;
    padding: 12px 16px 12px 40px;
    min-height: 48px;
    cursor: pointer;
    gap: 10px;
    border-top: 1px solid var(--border);
    transition: background 0.15s;
}
.script-item:active {
    background: rgba(0,0,0,0.04);
}
.script-item-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}
.script-item-icon.unwritten { color: var(--danger); }
.script-item-icon.draft { color: var(--warning); }
.script-item-icon.written { color: var(--success); }
.script-item-icon.reviewed { color: #FF3B30; }  /* 有批注 — 红色圆点 */

.script-item-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}
/* 场景卡片红点（二级话术标记） */
.script-scene-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 6px;
}
.script-scene-dot.read {
    background: #C0C0C0;
}

/* --- 场景详情页 --- */
.script-detail {
    padding-bottom: 200px;
    background: #F8F8FA;
}
.script-detail-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 5;
}
.script-detail-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #F2F2F7;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}
.script-detail-back:active {
    background: #E5E5EA;
}
.script-detail-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.script-version-select {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-primary);
    flex-shrink: 0;
    max-width: 100px;
    font-weight: 500;
}

/* 区块共用样式 */
.script-section {
    padding: 18px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.script-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: none;
}

/* 目的区块 */
.script-section.goal {
    background: #fff;
}
.script-section.goal .script-section-text {
    font-size: 15px;
    color: #1C1C2E;
    line-height: 1.6;
}

/* 逻辑思维区块 */
.script-section.logic {
    background: #fff;
}
.script-section.logic .script-section-text {
    font-size: 14px;
    color: #4A4A5A;  /* 加深以提升对比度 */
    line-height: 1.85;
}

/* 示范话术 & 关键技巧区块 */
.script-section:not(.goal):not(.logic) {
    background: #fff;
}

/* 示范话术滑动区 */
.script-examples-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 80px;
    margin-top: 10px;
}
.script-examples-track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
}
.script-example-card {
    flex: 0 0 100%;
    padding: 18px;
    background: #F8F9FB;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    font-style: normal;
    min-height: 60px;
    box-sizing: border-box;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
}
.script-example-card::before {
    content: "\201C";
    font-size: 32px;
    color: var(--primary);
    opacity: 0.25;
    position: absolute;
    top: 6px;
    left: 12px;
    line-height: 1;
    font-style: normal;
}
.script-example-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    padding: 10px 0 2px;
}
.script-example-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: var(--bg-card);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.script-example-nav button:active {
    background: var(--bg-secondary);
    border-color: var(--primary);
}
.script-example-nav button:disabled {
    opacity: 0.2;
}
.script-example-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.script-example-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: all 0.25s;
}
.script-example-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 3px;
}

/* 关键技巧区块 */
.script-section.tips {
    padding-bottom: 20px;
}
.script-section.tips .script-section-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.script-section.tips ul {
    margin: 0;
    padding-left: 20px;
}
.script-section.tips li {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 6px;
    padding-left: 4px;
}
.script-section.tips li::marker {
    color: var(--primary);
    opacity: 0.5;
}

/* --- 底部固定输入栏 --- */
.script-input-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
@media (min-width: 601px) {
    .script-input-bar {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
    }
}
.script-input-bar textarea {
    width: 100%;
    min-height: 56px;
    max-height: 180px;
    padding: 12px 14px;
    font-size: 16px;  /* 16px 防止 iOS Safari 聚焦时自动放大页面 */
    line-height: 1.55;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    background: #F9F9FB;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.script-input-bar textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}
.script-input-bar textarea::placeholder {
    color: #8E8E93;  /* 加深以提升对比度 */
    font-size: 13px;
}
.script-input-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.script-input-actions button {
    flex: 0 1 auto;
    min-width: 64px;
    padding: 0 14px;
    min-height: 42px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-script-draft {
    background: #F2F2F7;
    color: #5C5C6E;  /* 加深以提升对比度 */
}
.btn-script-draft:active {
    background: #E5E5EA;
}
.btn-script-submit {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,122,255,0.2);
}
.btn-script-submit:active {
    opacity: 0.85;
    transform: scale(0.98);
}
.btn-script-read {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary) !important;
    flex: 0.45;
    min-width: 56px;
}
.btn-script-read:active {
    background: rgba(0,122,255,0.06);
}

/* --- 试读模式 --- */
.read-mode-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #1C1C1E;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 24px;
}
.read-mode-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.read-mode-text {
    font-size: 20px;
    line-height: 1.8;
    color: #FFFFFF;
    text-align: center;
    max-width: 400px;
    word-break: break-word;
}
.read-mode-close {
    min-height: 50px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
}
.read-mode-close:active {
    background: rgba(255,255,255,0.2);
}

/* --- 培训师端话术卡片 --- */
.trainer-script-stats {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    cursor: pointer;
}
.trainer-script-stats:hover {
    color: var(--primary);
    text-decoration: underline;
}
.script-trainer-feedback-input {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    box-sizing: border-box;
    margin-top: 8px;
}

/* ===== Fix 1: 待批注概览 ===== */
.pending-review-card {
    padding: 16px 14px;
}
.pending-review-header {
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text);
}
.pending-review-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pending-review-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
    min-height: 44px;  /* 手机端触摸目标 */
}
.pending-review-item:hover,
.pending-review-item:active {
    background: #FFF3E0;
}
.pending-review-name {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}
.pending-review-scene {
    flex: 1;
    color: var(--text-secondary);
}
.pending-review-arrow {
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}


/* ===== Fix 4: 反馈历史链 ===== */
.feedback-chain-item {
    padding: 12px 14px;
    margin-bottom: 8px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--border);
}
.feedback-chain-item.feedback-chain-current {
    border-left-color: var(--primary);
    background: #F0F4FF;
}
.feedback-chain-ver {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feedback-chain-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}
.feedback-chain-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ===== Fix 5: 基于批注修改按钮 ===== */
.feedback-revise-wrap {
    text-align: center;
    padding: 8px 0 0;
}
.feedback-revise-btn {
    font-size: 13px;
    width: 100%;
    padding: 10px 0;
    border-color: var(--primary);
    color: var(--primary);
    min-height: 44px;
}
