/* ============================================
   团播主持新人培训系统 — 样式表 — 基础共享层
   简洁清新风格 · 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;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

/* ========== 视图切换 ========== */
.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;
}
.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.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-danger { background: var(--danger); color: #FFF; }
.btn-outline { background: #FFF; color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost { background: none; color: var(--text-secondary); }
.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-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;
}


/* ========== 能力清单（培训师&新人共用） ========== */

/* ========== 能力清单 ========== */

/* -- 全屏视图容器 -- */
.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;
}


/* ========== 响应式布局 ========== */

/* ========== 响应式：手机端适配（≤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: 12px; }
    .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: 44px; height: 44px;
        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: 12px; }
    .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%; }
    /* -- 话术详情页贴紧 Tab 导航 -- */
    .script-detail {
        margin: -16px -10px 0;
    }

    /* -- 话术详情页顶部栏移动端极致压缩 -- */
    .script-detail-header {
        padding: 4px 8px;
        gap: 5px;
    }
    .script-detail-back {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .script-detail-title {
        font-size: 13px;
    }
    .script-version-select {
        font-size: 10px;
        padding: 2px 4px;
        max-width: 58px;
    }
    .script-detail-header .btn {
        font-size: 9px !important;
        padding: 2px 5px !important;
        min-height: 26px;
    }

    /* -- 话术筛选栏压缩 -- */
    .script-filter-bar {
        padding: 3px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    .script-filter-btn {
        font-size: 13px;
        padding: 6px 0;
        min-height: 38px;
    }

    /* -- 可折叠输入栏移动端微调 -- */
    .script-input-bar.collapsed {
        padding: 4px 12px;
        padding-bottom: max(4px, env(safe-area-inset-bottom));
    }
    .script-input-expand-btn {
        font-size: 13px;
        min-height: 40px;
    }
}

/* ========== 响应式：极小屏（≤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: 12px; }

    /* -- 团播认知极小屏 -- */
    .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); }
}