/* ============================================================
   学员管理系统（助教PK版） - 自定义样式
   蓝色专业主题 + 侧边栏布局
   ============================================================ */

:root {
    /* ===== 设计令牌 Design Tokens：全站统一色值 / 圆角 / 阴影 / 间距 ===== */
    /* 品牌主色（蓝）及深浅梯度 */
    --brand: #2E6BE6;
    --brand-strong: #1F55C4;
    --brand-deep: #1A47A8;
    --brand-light: #5B8DF0;
    --brand-soft: #EAF1FE;
    --brand-soft-2: #F5F8FE;

    /* 页面 / 卡片 / 导航底色 */
    --page-bg: #F2F5FA;
    --card-bg: #FFFFFF;
    --sidebar-bg: #FFFFFF;
    --topbar-bg: #FFFFFF;

    /* 圆角 */
    --radius-card: 12px;
    --radius-ctl: 10px;
    --radius-sm: 8px;
    --radius-pill: 999px;

    /* 阴影 */
    --shadow-card: 0 2px 10px rgba(46, 107, 230, .08);
    --shadow-card-hover: 0 8px 22px rgba(46, 107, 230, .16);
    --shadow-pop: 0 18px 48px rgba(23, 58, 130, .18);
    --shadow-topbar: 0 1px 2px rgba(46, 107, 230, .06);

    /* 文字灰阶 */
    --text-1: #333333;
    --text-2: #5B5B6B;
    --text-3: #8A8A99;
    --text-muted: #9CA3AF;

    /* 描边 */
    --border-soft: #E7EDF8;
    --border-ctl: #E2E9F7;

    /* 间距档位 */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;

    /* 语义色（收敛） */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #2E6BE6;

    /* 布局 */
    --sidebar-width: 170px;
    --topbar-height: 60px;

    --bs-primary: #2E6BE6;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-1);
}

/* ---------- 侧边栏 ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border-soft);
    padding: 14px 12px 18px;
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.sidebar .brand {
    color: var(--text-1);
    font-size: 17px;
    font-weight: 700;
    padding: 6px 10px 16px;
    letter-spacing: .5px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 12px;
}

.sidebar .brand .brand-line {
    display: block;
    line-height: 1.4;
    white-space: nowrap;
}

.sidebar .brand .brand-line-1 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.sidebar .brand .brand-line-2 {
    font-size: 17px;
    font-weight: 700;
    color: var(--brand);
}

.sidebar .brand small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-3);
    margin-top: 3px;
    letter-spacing: 0;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    padding: 10px 12px;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    border-left: none;
    border-radius: var(--radius-ctl);
    transition: background .18s ease, color .18s ease;
}

.sidebar .nav-link i {
    width: 18px;
    margin-right: 0;
    font-size: 15px;
    text-align: center;
}

.sidebar .nav-link:hover {
    color: var(--brand);
    background: var(--brand-soft-2);
}

.sidebar .nav-link.active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

/* ---------- 主区域 ---------- */
.main-wrapper {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
}

.topbar {
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-topbar);
}

.topbar .page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-1);
}

.content {
    padding: var(--space-4);
    flex: 1;
}

/* ---------- 卡片 ---------- */
/* 卡片间距基准＝作业登记页：mb-3（16px）。默认 margin 与之对齐，
   避免未显式声明 mb-* 的卡片出现 18px 的额外偏差。 */
.card {
    border: none;
    border-radius: var(--radius-card);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
}

/* 栅格列内的卡片不再叠加自身下边距：行距统一由 .row 的 mb-3 / g-3 控制，
   消除「卡片 16px + 行 16px」叠加造成的过大留白（测评模考、座次排表、仪表盘等页）。 */
.row > [class*="col"] > .card {
    margin-bottom: 0;
}

/* 表格型卡片：整体圆角裁剪，避免表格溢出呈直角（考勤登记学员列表卡，iOS 风格圆角） */
.att-list-card {
    border-radius: var(--radius-card);
    overflow: hidden;
}

/* 考勤登记页其余卡片：与学员列表卡保持一致的 iOS 圆角 */
.att-page-card {
    border-radius: var(--radius-card);
}

/* 圆角卡片内的表头 / 表格跟随卡片圆角，避免出现直角白边 */
.att-page-card .card-header,
.att-list-card .card-header {
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
}

/* 可点击行：点击行内空白处直达学员详情（行内已有按钮 / 链接的点击优先） */
tr[data-href] {
    cursor: pointer;
}

.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-soft);
    font-weight: 600;
    color: var(--text-1);
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
    padding: 14px 18px;
}

/* ---------- 统计卡 / 看板卡（全站唯一权威定义，基准＝考勤登记页看板小卡） ----------
   规格：白底 + 无描边 + 圆角 12px（var(--radius-card)）+ 柔和阴影；
   最小高度 88px / 内边距 8px 10px；标签 12.5px / 数值 24px / 副行 11.5px。
   注意：本块必须位于 .stat-blue/.stat-green/.stat-orange/.stat-red 之前，
   以保证彩色背景卡的特异性覆盖成立，请勿在文件后段重复定义 .stat-card。 */
.stat-card {
    min-height: 88px;
    padding: 8px 10px;
    margin-bottom: 0;
    border: none;
    border-radius: var(--radius-card);
    color: var(--text-1);
    background: var(--card-bg);
    box-shadow: var(--shadow-card);
}

.stat-card .card-body { padding: .5rem; }

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-1);
}

.stat-card .stat-label {
    font-size: 12.5px;
    color: var(--text-3);
    opacity: 1;
    margin-top: 0;
}

.stat-card .stat-sub {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
    min-height: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 表格 ---------- */
.table thead th {
    background: var(--brand-soft-2);
    color: var(--text-2);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-soft);
}

.table td {
    vertical-align: middle;
    font-size: 13.5px;
    color: var(--text-1);
}

/* ---------- 考勤单选组 ---------- */
/* ---------- 警示列表 ---------- */
/* ---------- 徽章 ---------- */
/* ---------- 五问模板 ---------- */
/* ---------- 时间线 ---------- */
/* ---------- 进度条 ---------- */
/* ---------- 其他 ---------- */
@media (max-width: 991px) {
    .sidebar {
        width: 60px;
    }
    .sidebar .brand .brand-line,
    .sidebar .nav-link span {
        display: none;
    }
    .sidebar .nav-link i {
        margin-right: 0;
    }
    .main-wrapper {
        margin-left: 60px;
    }
}

/* 看板卡片可点击 */
.stat-card .bi-eye { font-size: .75rem; opacity: .55; }

/* ============================================================
   考勤彩色状态按钮组（正常绿/迟到橙/请假蓝/缺勤红）
   ============================================================ */
.att-btn-group {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.att-btn {
    min-width: 46px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    background: #fff;
    transition: all .18s ease;
    user-select: none;
    box-shadow: 0 1px 3px rgba(46, 107, 230, .08);
}

.att-btn:focus { outline: none; }

/* 正常 - 绿 */
.att-btn.st-normal {
    color: #157347;
    background: #e9f7ef;
    border-color: #a9dfc2;
}
.att-btn.st-normal:hover {
    background: #d3f0df;
    border-color: #28a745;
}
.att-btn.st-normal.active {
    color: #fff;
    background: linear-gradient(135deg, #34ce57, #1e7e34);
    border-color: #1e7e34;
    box-shadow: 0 3px 8px rgba(40, 167, 69, .35);
}

/* 迟到 - 橙 */
.att-btn.st-late {
    color: #b45309;
    background: #fff4e6;
    border-color: #fdd9a8;
}
.att-btn.st-late:hover {
    background: #ffe8cc;
    border-color: #fd7e14;
}
.att-btn.st-late.active {
    color: #fff;
    background: linear-gradient(135deg, #ff9f43, #e8590c);
    border-color: #e8590c;
    box-shadow: 0 3px 8px rgba(253, 126, 20, .35);
}

/* 请假 - 蓝 */
.att-btn.st-leave {
    color: #1F55C4;
    background: #EAF1FE;
    border-color: #D3E0FA;
}
.att-btn.st-leave:hover {
    background: #DFE8FA;
    border-color: #2E6BE6;
}
.att-btn.st-leave.active {
    color: #fff;
    background: linear-gradient(135deg, #5B8DF0, #1F55C4);
    border-color: #1F55C4;
    box-shadow: 0 3px 8px rgba(46, 107, 230, .35);
}

/* 缺勤 - 红 */
.att-btn.st-absent {
    color: #b02a37;
    background: #fdecee;
    border-color: #f5b8be;
}
.att-btn.st-absent:hover {
    background: #fbdadd;
    border-color: #dc3545;
}
.att-btn.st-absent.active {
    color: #fff;
    background: linear-gradient(135deg, #ff5b6a, #b02a37);
    border-color: #b02a37;
    box-shadow: 0 3px 8px rgba(220, 53, 69, .35);
}

/* 看板卡片小字行（等高时固定高度） */
.stat-sub { margin-top: 6px; min-height: 18px; }

/* ============================================================
   UI2 改造：看板小卡 + 早中晚分区表头 + iOS 风格状态按钮
   ============================================================ */
/* 看板小卡（6 卡一行）：class="stat-card stat-card-sm" 仅为语义标记，
   全部视觉规格统一由文件上方唯一的 .stat-card 权威定义提供，此处不再重复声明。 */

/* 仪表盘：置顶的班主任PK排名卡
   下半部分（排名列表区）加大圆角 + 内边距统一，形成 iOS 圆润质感；
   表格自身按单元格圆角裁剪（border-collapse: separate 才能让圆角生效）。 */
.pk-rank-card {
    margin-bottom: 0;
    border-radius: var(--radius-card);
}
.pk-rank-card .card-header { border-radius: var(--radius-card) var(--radius-card) 0 0 !important; }
.pk-rank-card .pk-rank-body {
    padding: .45rem .7rem .75rem;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.pk-rank-card .table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
    border-radius: var(--radius-card);
}
.pk-rank-card .table > thead > tr > th:first-child { border-top-left-radius: 14px; }
.pk-rank-card .table > thead > tr > th:last-child { border-top-right-radius: 14px; }
.pk-rank-card .table > tbody > tr:last-child > td { border-bottom: none; }
.pk-rank-card .table > tbody > tr:last-child > td:first-child { border-bottom-left-radius: 14px; }
.pk-rank-card .table > tbody > tr:last-child > td:last-child { border-bottom-right-radius: 14px; }
/* 仪表盘PK卡：本月实时 / 已结算 分块标题 + 管理员编辑框 */
.pk-rank-card .pk-block-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: 13px;
    color: var(--text-2);
    padding: .1rem .2rem .45rem;
}
.pk-rank-card .pk-edit { max-width: 86px; padding: .18rem .4rem; font-size: 12.5px; }
.pk-rank-card .pk-save { padding: .18rem .55rem; font-size: 12.5px; }

/* 顶栏当前账号信息 */
.topbar-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-user .topbar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #4B4B57;
}
@media (max-width: 576px) {
    .topbar-user .topbar-user-name { display: none; }
}

/* 成员（只读）账号：全站隐藏写操作入口（后端另有 403 兜底） */
.role-readonly [data-write] { display: none !important; }
.role-readonly-hint { display: none; }
.role-readonly .role-readonly-hint { display: block; }
/* 交互型写控件（状态按钮 / 座位格 / 日历日期 / 改名按钮）：只读时禁用点击但保留展示 */
.role-readonly .att-btn,
.role-readonly .hw-status-btn,
.role-readonly .seat-cell,
.role-readonly .cal-day,
.role-readonly .rename-btn { pointer-events: none !important; }
.role-readonly .att-btn { opacity: .9; }

/* 早/中/晚表头分区 */
.att-sess-head {
    text-align: center;
    min-width: 205px;
    border-left: 1px solid #EDF2FB;
}
.sess-morning { background: #fff7e6; color: #b25000; }
.sess-noon { background: #f0f9ff; color: #1F55C4; }
.sess-evening { background: #F2F6FE; color: #1E4FB0; }

/* iOS 风格状态按钮（浅色填充 + 系统色文字，选中渐变实底 + 白字 + 柔和阴影） */
.att-btn {
    min-width: 42px;
    padding: 5px 8px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    line-height: 1.4;
    transition: all .2s ease;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.att-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.att-btn.active { color: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }

/* 正常 - iOS 绿 #34C759 */
.att-btn.st-normal { color: #34C759; background: rgba(52, 199, 89, .14); }
.att-btn.st-normal.active { background: linear-gradient(135deg, #5ce07e, #28a745); box-shadow: 0 3px 10px rgba(40, 167, 69, .35); }

/* 迟到 - iOS 橙 #FF9500 */
.att-btn.st-late { color: #FF9500; background: rgba(255, 149, 0, .15); }
.att-btn.st-late.active { background: linear-gradient(135deg, #ffb340, #ff8f00); box-shadow: 0 3px 10px rgba(255, 143, 0, .35); }

/* 请假 - iOS 蓝 #2E6BE6 */
.att-btn.st-leave { color: #2E6BE6; background: rgba(46, 107, 230, .13); }
.att-btn.st-leave.active { background: linear-gradient(135deg, #5B8DF0, #2E6BE6); box-shadow: 0 3px 10px rgba(46, 107, 230, .35); }

/* 缺勤 - iOS 红 #FF3B30 */
.att-btn.st-absent { color: #FF3B30; background: rgba(255, 59, 48, .13); }
.att-btn.st-absent.active { background: linear-gradient(135deg, #ff6961, #ff3b30); box-shadow: 0 3px 10px rgba(255, 59, 48, .35); }

/* 学员考勤详情页 - iOS 分段控件 */
.period-seg .btn {
    border-radius: 999px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    color: #2E6BE6;
    background: rgba(46, 107, 230, .08);
    transition: all .2s ease;
}
.period-seg .btn:hover { background: rgba(46, 107, 230, .16); }
.period-seg .btn.active { color: #fff; background: linear-gradient(135deg, #5B8DF0, #2E6BE6); box-shadow: 0 3px 10px rgba(46, 107, 230, .35); }

/* 明细表状态小胶囊 */
.att-pill {
    display: inline-block;
    min-width: 44px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 999px;
}
.att-pill.st-normal { color: #34C759; background: rgba(52, 199, 89, .14); }
.att-pill.st-late { color: #FF9500; background: rgba(255, 149, 0, .15); }
.att-pill.st-leave { color: #2E6BE6; background: rgba(46, 107, 230, .13); }
.att-pill.st-absent { color: #FF3B30; background: rgba(255, 59, 48, .13); }

/* ============================================================
   UI2-2 改造：状态按钮未选中白底细边框灰字，选中才显系统色
   ============================================================ */
.att-btn {
    background: #ffffff;
    color: #8A8A99;
    border: 1px solid #E2E9F7;
    box-shadow: none;
}
.att-btn:hover {
    filter: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.att-btn.active {
    color: #fff;
    border-color: transparent;
}

/* 未选中一律白底灰字细边框（覆盖浅色填充规则） */
.att-btn.st-normal, .att-btn.st-late, .att-btn.st-leave, .att-btn.st-absent {
    color: #8A8A99;
    background: #ffffff;
    border: 1px solid #E2E9F7;
}

/* 选中态：保持系统色渐变实底 + 白字 + 柔和阴影 */
.att-btn.st-normal.active { background: linear-gradient(135deg, #5ce07e, #28a745); box-shadow: 0 3px 10px rgba(40, 167, 69, .35); }
.att-btn.st-late.active { background: linear-gradient(135deg, #ffb340, #ff8f00); box-shadow: 0 3px 10px rgba(255, 143, 0, .35); }
.att-btn.st-leave.active { background: linear-gradient(135deg, #5B8DF0, #2E6BE6); box-shadow: 0 3px 10px rgba(46, 107, 230, .35); }
.att-btn.st-absent.active { background: linear-gradient(135deg, #ff6961, #ff3b30); box-shadow: 0 3px 10px rgba(255, 59, 48, .35); }

/* ============================================================
   UI3 改造：考勤原因弹窗 iOS 风格 + 表格列间距
   ============================================================ */
/* 考勤原因弹窗：iOS 风格正式窗口（仅 #reasonModal 作用域） */
#reasonModal .modal-content {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
    overflow: hidden;
}
#reasonModal .modal-header {
    background: linear-gradient(135deg, #FAF9FE 0%, #ffffff 100%);
    border-bottom: 1px solid #F1F5FD;
    padding: 1rem 1.25rem .85rem;
}
#reasonModal .modal-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333333;
    display: flex;
    align-items: center;
    gap: .45rem;
}
#reasonModal .modal-title i { font-size: 1.15rem; }
#reasonModal .modal-body { padding: 1.25rem 1.5rem .75rem; }
#reasonModal .modal-body .form-label { font-weight: 600; color: #3A3A46; }
#reasonModal .modal-body .form-control,
#reasonModal .modal-body .form-select {
    border-radius: var(--radius-card);
    padding: .55rem .8rem;
    border-color: #E2E9F7;
    transition: border-color .15s ease, box-shadow .15s ease;
}
#reasonModal .modal-body .form-control:focus,
#reasonModal .modal-body .form-select:focus {
    border-color: #2E6BE6;
    box-shadow: 0 0 0 3px rgba(46, 107, 230, .12);
}
#reasonModal .modal-footer {
    border-top: 1px solid #F1F5FD;
    padding: .8rem 1.25rem 1rem;
    gap: .6rem;
}
#reasonModal .btn-ios-secondary {
    background: #EFF4FD; color: #3A3A46;
    border: none; border-radius: 999px;
    padding: .5rem 1.5rem; font-weight: 600;
    transition: filter .15s ease;
}
#reasonModal .btn-ios-secondary:hover { filter: brightness(.96); }
#reasonModal .btn-ios-primary {
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff; border: none; border-radius: 999px;
    padding: .5rem 1.6rem; font-weight: 600;
    box-shadow: 0 4px 14px rgba(46, 107, 230, .35);
    transition: filter .15s ease, transform .15s ease;
}
#reasonModal .btn-ios-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* 表格列间距优化 */
#att-tbody td { padding: .6rem .55rem; }
#att-tbody td:first-child { padding-left: 1.1rem; }
#att-tbody td:nth-child(2) { padding-left: .8rem; padding-right: 1rem; }
#att-tbody td:nth-child(3),
#att-tbody td:nth-child(4) { padding-left: .8rem; }
.att-sess-head { min-width: 195px; }

/* ============================================================
   UI4 修复：考勤表对齐 + 饱满横胶囊按钮（文件末尾覆盖旧规则）
   ============================================================ */
/* 表头与单元格 padding 统一，消除错位 */
#att-table thead th { padding: .7rem .75rem; }
#att-table td { padding: .7rem .75rem; }
#att-table td:first-child,
#att-table td:nth-child(2),
#att-table td:nth-child(3),
#att-table td:nth-child(4) { padding-left: .75rem; }

/* 时段列加宽容纳按钮组 */
#att-table .att-sess-head { min-width: 230px; }

/* 饱满横胶囊按钮（宽>高，垂直居中；不改选中态渐变规则） */
.att-btn-group { gap: 8px; }
.att-btn {
    min-width: 50px;
    height: 34px;
    padding: 0 14px;
    line-height: 32px;
    border-radius: 999px;
    box-sizing: border-box;
}

/* 联系电话数字与表头对齐 */
#att-table td:nth-child(2) { padding-left: .75rem; }

/* 表头与内容统一居中对齐（对齐时段列样式） */
#att-table th,
#att-table td { text-align: center; }

/* ============================================================
   UI5 学员管理页 iOS 风格改造（文件末尾覆盖旧规则）
   ============================================================ */
#class-manage-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 16px rgba(84, 74, 150, .08);
    overflow: hidden;
}
#class-manage-card .card-header {
    background: linear-gradient(135deg, #FAF9FE 0%, #EDF2FB 100%);
    border-bottom: none;
    padding: .8rem 1.25rem;
    font-weight: 600;
    letter-spacing: .2px;
}
#class-manage-card .card-header .small { font-weight: 400; }

/* 班级筛选胶囊 */
.class-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.class-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .95rem;
    border-radius: 999px;
    background: #EFF4FD;
    color: #3A3A46;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}
.class-chip:hover { background: #E2E9F7; transform: translateY(-1px); }
.class-chip.active {
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 107, 230, .32);
}
.class-chip .chip-count {
    font-size: .72rem;
    font-weight: 500;
    opacity: .72;
}
.class-chip.active .chip-count { opacity: .85; }
.class-chip-del {
    display: inline-flex;
    align-items: center;
    color: #ff3b30;
    text-decoration: none;
    font-size: .8rem;
    opacity: .55;
    transition: opacity .15s ease;
}
.class-chip-del:hover { opacity: 1; }
.class-chip.active .class-chip-del { color: rgba(255, 255, 255, .92); }

/* iOS 胶囊按钮（学员管理页作用域） */
#class-manage-card .btn-ios-primary,
#class-manage-card .btn-ios-secondary {
    border: none;
    border-radius: 999px;
    padding: .5rem 1.35rem;
    font-weight: 600;
    font-size: .9rem;
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
#class-manage-card .btn-ios-primary {
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(46, 107, 230, .35);
}
#class-manage-card .btn-ios-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
#class-manage-card .btn-ios-secondary {
    background: #EFF4FD;
    color: #3A3A46;
}
#class-manage-card .btn-ios-secondary:hover { background: #E2E9F7; transform: translateY(-1px); }
#class-manage-card .btn-ios-primary.btn-sm,
#class-manage-card .btn-ios-secondary.btn-sm {
    padding: .32rem .9rem;
    font-size: .8rem;
}

/* 新增班级内联输入 */
#class-manage-card .new-class-wrap input {
    border-radius: 999px;
    padding: .32rem .95rem;
    border: 1px solid #D6E1F2;
    font-size: .85rem;
    min-width: 180px;
}
#class-manage-card .new-class-wrap input:focus {
    border-color: #2E6BE6;
    box-shadow: 0 0 0 .2rem rgba(46, 107, 230, .15);
}

/* 搜索区表单控件圆角 */
#class-manage-card .form-control,
#class-manage-card .form-select {
    border-radius: var(--radius-card);
    border-color: #D6E1F2;
    font-size: .88rem;
}
#class-manage-card .form-control:focus,
#class-manage-card .form-select:focus {
    border-color: #2E6BE6;
    box-shadow: 0 0 0 .2rem rgba(46, 107, 230, .15);
}
#class-manage-card .form-label { font-weight: 600; color: #3A3A46; }

/* 学员表格卡片 */
.ios-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 2px 16px rgba(84, 74, 150, .08);
    overflow: hidden;
}
#student-tbody tr:hover { background: #F5F9FF; }

/* ============================================================
   UI6 全系统列表表格统一居中 + 学员页按钮微调（文件末尾覆盖）
   ============================================================ */
/* 新增班级确定/取消按钮药丸胶囊（显式兜底） */
#class-manage-card .new-class-wrap .btn {
    border-radius: 999px;
}

/* 所有含学员列表的表格：表头与内容统一居中（与考勤登记页一致） */
.table-center th,
.table-center td {
    text-align: center;
}

/* ============================================================
   UI7 新增班级确定/取消按钮：照抄考勤 .att-btn 饱满横胶囊
   确定=蓝渐变白字（同 .att-btn 选中态），取消=白底灰字细边框
   ============================================================ */
#class-manage-card .new-class-wrap .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 76px;
    height: 34px;
    padding: 0 20px;
    line-height: 32px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 999px;
    box-sizing: border-box;
    border: 1px solid #E2E9F7;
    box-shadow: none;
    transition: all .18s ease;
}
#class-manage-card #btn-add-class-confirm {
    color: #fff;
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(46, 107, 230, .35);
}
#class-manage-card #btn-add-class-confirm:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}
#class-manage-card #btn-add-class-cancel {
    color: #8A8A99;
    background: #ffffff;
    border: 1px solid #E2E9F7;
    box-shadow: none;
}
#class-manage-card #btn-add-class-cancel:hover {
    background: #F5F9FF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}

/* ============================================================
   UI8 新增班级确定/取消按钮横排：输入框 + 确定 + 取消 同一行
   显式 row 防止纵向堆叠；输入框宽度自适应不挤压按钮
   ============================================================ */
#class-manage-card .new-class-wrap {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}
#class-manage-card .new-class-wrap input {
    width: auto;
    min-width: 120px;
    flex: 0 1 auto;
}

/* ============================================================
   作业登记：状态按钮组（照抄考勤 .att-btn 饱满横胶囊）
   未选中白底灰字细边框，选中蓝色渐变白字
   ============================================================ */
.hw-btn-group {
    display: inline-flex;
    gap: 6px;
    flex-wrap: nowrap;
}
.hw-status-btn {
    min-width: 50px;
    height: 34px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 32px;
    border: 1px solid #E2E9F7;
    border-radius: 999px;
    box-sizing: border-box;
    background: #ffffff;
    color: #8A8A99;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}
.hw-status-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transform: translateY(-1px);
}
.hw-status-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(46, 107, 230, .35);
}
/* 点「未完成」按钮标记为红色 */
.hw-status-btn.active[data-status="未完成"] {
    background: linear-gradient(135deg, #F06B72 0%, #DC3545 100%);
    box-shadow: 0 3px 10px rgba(220, 53, 69, .35);
}

/* 作业任务卡片标题：班型大而醒目，作业内容相对小一号 */
.hw-class-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.3;
    color: #333333;
}
.hw-task-title {
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.4;
    color: #8A8A99;
}

/* ===== 全局 iOS 胶囊按钮（考勤/作业页搜索、发布按钮统一样式） ===== */
.btn-ios-primary {
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .5rem 1.35rem;
    font-weight: 600;
    font-size: .9rem;
    box-shadow: 0 4px 14px rgba(46, 107, 230, .35);
    transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-ios-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ios-primary:active { transform: translateY(0); filter: brightness(.95); }
.btn-ios-primary:disabled { filter: grayscale(.4); opacity: .65; box-shadow: none; }

/* ============================================================
   UI9 学员详情页 iOS 风格改造（统计卡 + 分段控件 + 记录表）
   ============================================================ */
/* 统计卡：大圆角、柔和阴影、浅色渐变底、图标胶囊，点击切换对应记录 Tab */
.dt-stat-card {
    border: none;
    border-radius: var(--radius-card);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(84, 74, 150, .10);
    padding: 1.1rem 1.2rem;
    height: 100%;
    cursor: pointer;
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
}
.dt-stat-card::after {
    content: '';
    position: absolute;
    right: -24px;
    top: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    opacity: .35;
    pointer-events: none;
}
.dt-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(84, 74, 150, .16);
}
.dt-stat-card:active { transform: translateY(-1px); }

.dt-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-card);
    font-size: 1.25rem;
    margin-bottom: .55rem;
}
.dt-stat-label {
    font-size: .8rem;
    font-weight: 600;
    color: #8A8A99;
    letter-spacing: .3px;
}
.dt-stat-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.25;
    color: #333333;
    font-variant-numeric: tabular-nums;
}

/* 四卡配色：iOS 系统色浅底 */
.dt-stat-att { background: linear-gradient(160deg, #ffffff 0%, #F5F8FE 100%); }
.dt-stat-att::after { background: #2E6BE6; }
.dt-stat-att .dt-stat-icon { background: rgba(46, 107, 230, .14); color: #2E6BE6; }
.dt-stat-att .dt-stat-value { color: #1F55C4; }

.dt-stat-hw { background: linear-gradient(160deg, #ffffff 0%, #f2fbf5 100%); }
.dt-stat-hw::after { background: #34C759; }
.dt-stat-hw .dt-stat-icon { background: rgba(52, 199, 89, .15); color: #1f9e45; }
.dt-stat-hw .dt-stat-value { color: #1f9e45; }

.dt-stat-exam { background: linear-gradient(160deg, #ffffff 0%, #F5F8FF 100%); }
.dt-stat-exam::after { background: #4C7FE8; }
.dt-stat-exam .dt-stat-icon { background: rgba(76, 127, 232, .14); color: #4C7FE8; }
.dt-stat-exam .dt-stat-value { color: #3D6FDD; }

.dt-stat-fu { background: linear-gradient(160deg, #ffffff 0%, #fff8ef 100%); }
.dt-stat-fu::after { background: #FF9500; }
.dt-stat-fu .dt-stat-icon { background: rgba(255, 149, 0, .15); color: #e68600; }
.dt-stat-fu .dt-stat-value { color: #e68600; }

/* 记录卡：分段控件 + 圆角内容区（间距与作业登记页基准 mb-3 一致） */
.dt-rec-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 6px 20px rgba(84, 74, 150, .10);
    overflow: hidden;
    margin-bottom: 16px;
}
.dt-rec-head {
    background: linear-gradient(135deg, #FAF9FE 0%, #ffffff 100%);
    padding: .85rem 1.25rem .65rem;
    border-bottom: 1px solid #F1F5FD;
}
.dt-seg {
    display: inline-flex;
    gap: 4px;
    background: rgba(84, 74, 150, .06);
    border-radius: 999px;
    padding: 4px;
    width: 100%;
}
.dt-seg-btn {
    flex: 1;
    border: none;
    background: transparent;
    color: #6B7280;
    font-size: .85rem;
    font-weight: 600;
    padding: .45rem 0;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.dt-seg-btn:hover { color: #333333; }
.dt-seg-btn.active {
    background: #ffffff;
    color: #2E6BE6;
    box-shadow: 0 2px 8px rgba(84, 74, 150, .14);
}
.dt-rec-body { background: #ffffff; }
.dt-rec-body .tab-content {
    min-height: 240px;
}
.dt-rec-table-wrap {
    overflow-x: auto;
}
.dt-rec-table {
    margin-bottom: 0;
    min-width: 640px;
}
.dt-rec-table thead th {
    background: #FAF9FE;
    color: #8A8A99;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .3px;
    border-bottom: 1px solid #EDF2FB;
    padding: .7rem .9rem;
    text-align: center;
    white-space: nowrap;
}
.dt-rec-table td {
    padding: .7rem .9rem;
    font-size: .85rem;
    vertical-align: middle;
    text-align: center;
    border-top: 1px solid #F1F5FD;
    color: #3A3A46;
}
.dt-rec-table tbody tr { transition: background .15s ease; }
.dt-rec-table tbody tr:hover { background: #F5F9FF; }
.dt-rec-table .dt-cell-left { text-align: left; }
.dt-empty {
    padding: 2.6rem 0;
    text-align: center;
    color: #9CA3AF;
    font-size: .88rem;
}
/* 记录表状态小胶囊 */
.dt-pill {
    display: inline-block;
    padding: 3px 12px;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.dt-pill-ok { color: #1f9e45; background: rgba(52, 199, 89, .14); }
.dt-pill-warn { color: #e68600; background: rgba(255, 149, 0, .16); }
.dt-pill-info { color: #1F55C4; background: rgba(46, 107, 230, .12); }
.dt-pill-danger { color: #d93025; background: rgba(255, 59, 48, .13); }
.dt-pill-muted { color: #8A8A99; background: rgba(138, 138, 153, .14); }

/* 详情页顶部返回/编辑按钮 iOS 化 */
.dt-topbar .btn-ios-secondary {
    background: #EFF4FD;
    color: #3A3A46;
    border: none;
    border-radius: 999px;
    padding: .4rem 1.1rem;
    font-weight: 600;
    font-size: .85rem;
    transition: filter .15s ease, transform .15s ease;
}
.dt-topbar .btn-ios-secondary:hover { background: #E2E9F7; transform: translateY(-1px); }
.dt-topbar .btn-ios-primary {
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: .4rem 1.1rem;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 4px 14px rgba(46, 107, 230, .35);
    transition: filter .15s ease, transform .15s ease;
}
.dt-topbar .btn-ios-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* 基本信息卡 iOS 化 */
.dt-info-card {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 6px 20px rgba(84, 74, 150, .10);
    overflow: hidden;
}
.dt-info-card .card-body { padding: 1.15rem 1.35rem; }
.dt-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B8DF0 0%, #2E6BE6 100%);
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(46, 107, 230, .30);
    margin-bottom: .5rem;
}
.dt-info-card .table td {
    border-top: none;
    font-size: .88rem;
    color: #3A3A46;
}
.dt-info-card .table td.text-muted { color: #8A8A99; font-size: .8rem; }

/* 近期作业完成情况质量填写框（iOS 风格，任何班主任均可填写） */
.dt-quality-box {
    padding: 1rem 1.25rem .6rem;
    border-bottom: 1px solid #F1F5FD;
    background: linear-gradient(180deg, #F5F9FF 0%, #ffffff 100%);
}
.dt-quality-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .65rem;
    flex-wrap: wrap;
}
.dt-quality-label {
    font-weight: 700;
    font-size: .88rem;
    color: #333333;
    letter-spacing: .2px;
}
.dt-quality-input {
    width: 100%;
    border: 1px solid #E2E9F7;
    border-radius: var(--radius-card);
    background: #F5F9FF;
    padding: .7rem .95rem;
    font-size: .88rem;
    line-height: 1.55;
    color: #3A3A46;
    resize: vertical;
    min-height: 88px;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.dt-quality-input::placeholder { color: #B4BECD; }
.dt-quality-input:hover { border-color: #D6E1F2; }
.dt-quality-input:focus {
    outline: none;
    border-color: #2E6BE6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(46, 107, 230, .12);
}
.dt-quality-hint {
    margin-top: .5rem;
    text-align: right;
    font-size: .72rem;
    color: #9CA3AF;
    padding-bottom: .35rem;
}

/* ---------- 今日考勤总览大卡（考勤分布 + 迟到/请假/缺勤名单融合） ---------- */
/* ============================================================
   仪表盘（四象限 + 全局概览栏）与统一看板名单页
   iOS 风格：20px 圆角 / 轻阴影 / 胶囊按钮 / 充足留白
   ============================================================ */

/* ---------- 全局概览栏 ---------- */
.dash-overview {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 16px 22px;
    box-shadow: 0 2px 12px rgba(46, 107, 230, .06);
    border: 1px solid #EDF2FB;
}

.dash-overview .ov-divider { width: 1px; background: #EDF2FB; }

.dash-overview .ov-block { display: flex; flex-direction: column; justify-content: center; }
.dash-overview .ov-static { min-width: 168px; }
.dash-overview .ov-label { font-size: 12.5px; color: #9CA3AF; }
.dash-overview .ov-label i { margin-right: 4px; }
.dash-overview .ov-value { font-size: 27px; font-weight: 700; color: #333333; line-height: 1.25; }
.dash-overview .ov-value.ov-date { font-size: 16.5px; font-weight: 600; padding-top: 6px; }
.dash-overview .ov-sub { font-size: 12px; color: #9CA3AF; }

.dash-overview .ov-todo { flex: 1 1 340px; }
.dash-overview .ov-todo-count {
    display: inline-block;
    min-width: 20px;
    padding: 0 6px;
    margin-left: 4px;
    border-radius: 999px;
    background: rgba(255, 149, 0, .16);
    color: #c96a00;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}
.dash-overview .ov-todos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dash-overview .ov-todo-item {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 149, 0, .12);
    color: #c96a00;
    font-size: 12.5px;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.dash-overview .ov-todo-item:hover { background: rgba(255, 149, 0, .22); transform: translateY(-1px); color: #a85800; }
.dash-overview .ov-todo-empty { background: #F1F5FD; color: #9CA3AF; }

/* ---------- 四象限容器 ---------- */
.quad-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #EDF2FB;
    border-radius: var(--radius-card);
    padding: 16px 16px 18px;
    box-shadow: 0 2px 12px rgba(46, 107, 230, .06);
}
.quad-card .quad-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.quad-card .quad-title { font-size: 15px; font-weight: 700; color: #333333; }
.quad-card .quad-hint { font-size: 12px; color: #9CA3AF; }
.quad-card .quad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.quad-card.accent-att { border-top: 3px solid #2E6BE6; }
.quad-card.accent-hw { border-top: 3px solid #4C7FE8; }
.quad-card.accent-exam { border-top: 3px solid #f59e0b; }
.quad-card.accent-fu { border-top: 3px solid #10b981; }

.accent-att .metric-head i { color: #2E6BE6; }
.accent-hw .metric-head i { color: #4C7FE8; }
.accent-exam .metric-head i { color: #f59e0b; }
.accent-fu .metric-head i { color: #10b981; }

/* ---------- 指标卡（可点击 → 独立名单页） ---------- */
.metric-card {
    display: block;
    text-decoration: none;
    background: #F5F9FF;
    border: 1px solid #EDF2FB;
    border-radius: var(--radius-card);
    padding: 12px 14px;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 107, 230, .10);
    border-color: #E2E9F7;
    background: #fff;
    text-decoration: none;
}
.metric-card .metric-head { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #6B7280; }
.metric-card .metric-value { font-size: 26px; font-weight: 700; color: #333333; line-height: 1.25; margin-top: 2px; }
.metric-card .metric-sub {
    margin-top: 2px;
    font-size: 11.5px;
    color: #9CA3AF;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.metric-card .dist-chart { height: 92px; margin-top: 4px; }

@media (max-width: 575.98px) {
    .quad-card .quad-grid { grid-template-columns: 1fr; }
    .dash-overview .ov-divider { display: none; }
}

/* ---------- 名单页 ---------- */
.btn-ios-secondary {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 16px;
    border: none;
    border-radius: 999px;
    background: #EFF4FD;
    color: #333333;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.btn-ios-secondary:hover { background: #E2E9F7; color: #333333; transform: translateY(-1px); text-decoration: none; }
.btn-ios-secondary.btn-sm { padding: 5px 13px; font-size: 12.5px; }

.panel-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.panel-toolbar .panel-toolbar-title { font-size: 15px; font-weight: 700; color: #333333; }
.panel-toolbar .panel-toolbar-hint { margin-left: auto; }

.panel-head-card {
    border: 1px solid #EDF2FB;
    border-left: 5px solid #2E6BE6;
    border-radius: var(--radius-card);
    padding: 18px 22px;
    box-shadow: 0 2px 12px rgba(46, 107, 230, .06);
}
.panel-head-card.accent-hw { border-left-color: #4C7FE8; }
.panel-head-card.accent-exam { border-left-color: #f59e0b; }
.panel-head-card.accent-fu { border-left-color: #10b981; }

.panel-head-main { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.panel-head-left { flex: 1 1 420px; }
.panel-title-cn { font-size: 17px; font-weight: 700; color: #333333; }
.panel-caliber { margin-top: 6px; max-width: 780px; font-size: 12.5px; color: #9CA3AF; line-height: 1.65; }
.panel-head-right { text-align: right; }
.panel-big-value { font-size: 34px; font-weight: 800; color: #333333; line-height: 1.15; }
.panel-head-card.accent-att .panel-big-value { color: #1F55C4; }
.panel-head-card.accent-hw .panel-big-value { color: #4C7FE8; }
.panel-head-card.accent-exam .panel-big-value { color: #d98600; }
.panel-head-card.accent-fu .panel-big-value { color: #0d9b6c; }
.panel-big-sub { font-size: 12px; color: #9CA3AF; }

.panel-table-card { border: 1px solid #EDF2FB; border-radius: var(--radius-card); box-shadow: 0 2px 12px rgba(46, 107, 230, .06); overflow: hidden; }
.panel-table-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 18px;
    border-bottom: 1px solid #EDF2FB;
}
.panel-table-head .panel-count { font-size: 13px; font-weight: 600; color: #333333; }
.panel-table tbody tr { cursor: pointer; }
.panel-table .panel-detail { font-size: 12.5px; color: #5B5B6B; }
.panel-op-wrap { display: flex; align-items: center; gap: 8px; }
.panel-mark-select { max-width: 118px; border-radius: var(--radius-ctl); }
.panel-mark-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(52, 199, 89, .14);
    color: #1f9e45;
    font-size: 11.5px;
    white-space: nowrap;
}
.panel-score-box { display: flex; align-items: center; gap: 6px; }
.panel-score-input { width: 84px; border-radius: var(--radius-ctl); }

/* ---------- 可点击看板卡（全站统一：hover 放大 + 手型 + 跳名单页） ---------- */
a.board-link,
.board-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.board-link:hover,
.board-link:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 107, 230, .10);
}
a.board-link:active,
.board-link:active { transform: translateY(0); }
a.board-link .stat-label,
.board-link .stat-label { text-decoration: none; }

/* ============================================================
   UI10 全站设计重构层（参考图风格）
   主色 #2E6BE6 | 页面底 #F2F5FA | 白卡 12px 圆角 | 左侧竖向导航
   说明：本层位于文件末尾，用于把早期零散定义统一收敛到设计令牌。
   ============================================================ */

/* ---------- 1. 底色 / 排版 ---------- */
body { background-color: var(--page-bg); color: var(--text-1); }
.main-wrapper { background: var(--page-bg); }
.content { padding: var(--space-4); }

/* 顶部操作区 */
.topbar { background: var(--topbar-bg); border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-topbar); }
.topbar .page-title { color: var(--text-1); }
.topbar .badge { background: var(--brand-soft) !important; color: var(--brand) !important; }
.topbar .badge.bg-danger { background: var(--brand-soft) !important; color: var(--brand) !important; }
.topbar .btn-outline-secondary, .topbar .btn-outline-danger { border-radius: var(--radius-sm); border-color: var(--border-ctl); color: var(--text-2); }
.topbar .btn-outline-secondary:hover, .topbar .btn-outline-danger:hover { background: var(--brand-soft-2); color: var(--brand); border-color: var(--brand); }

/* ---------- 2. 左侧竖向导航 ---------- */
.sidebar { background: var(--sidebar-bg); border-right: 1px solid var(--border-soft); box-shadow: none; }
.sidebar .brand .brand-line-1 { color: var(--text-2); }
.sidebar .brand .brand-line-2 { color: var(--brand); }
.sidebar .brand small { color: var(--text-3); }
.sidebar .nav-link { color: var(--text-2); border-radius: var(--radius-ctl); border-left: none; }
.sidebar .nav-link i { color: var(--text-3); transition: color .18s ease; }
.sidebar .nav-link:hover { color: var(--brand); background: var(--brand-soft-2); }
.sidebar .nav-link:hover i { color: var(--brand); }
.sidebar .nav-link.active { color: var(--brand); background: var(--brand-soft); font-weight: 600; border-left: none; }
.sidebar .nav-link.active i { color: var(--brand); }

/* ---------- 3. 卡片容器：白底 + 12px 圆角 + 柔和阴影 ---------- */
.card, .dash-overview, .quad-card, .att-list-card, .att-page-card, .ios-card, #class-manage-card, .dt-stat-card, .dt-rec-card, .dt-info-card, .pk-rank-card, .panel-head-card, .panel-table-card{
    border-radius: var(--radius-card);
    border-color: var(--border-soft);
    box-shadow: var(--shadow-card);
    background: var(--card-bg);
}
.dash-overview, .quad-card { border: none; }
.card-header, .att-page-card .card-header, .att-list-card .card-header, .pk-rank-card .card-header,
.dt-rec-head, .panel-table-head, #class-manage-card .card-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-1);
    border-radius: var(--radius-card) var(--radius-card) 0 0 !important;
}
#class-manage-card .card-header { color: var(--text-1); }
.stat-card { border: none; border-radius: var(--radius-card); box-shadow: var(--shadow-card); background: var(--card-bg); color: var(--text-1); }
.stat-card .stat-value { color: var(--text-1); font-size: 24px; }
.stat-card .stat-label { color: var(--text-3); opacity: 1; }
.stat-card .stat-sub { color: var(--text-muted); }
.dt-stat-card .dt-stat-label, .dt-rec-head { color: var(--text-2); }

/* ---------- 4. 强调色收敛（四象限 / 名单页） ---------- */
.accent-att { --accent: var(--brand); }
.accent-hw { --accent: #4C7FE8; }
.accent-exam { --accent: var(--warning); }
.accent-fu { --accent: var(--success); }
.quad-card { border-top: 3px solid var(--accent, var(--brand)); }
.quad-card .quad-title i { color: var(--accent, var(--brand)); }
.quad-card .quad-hint { color: var(--text-muted); }
.metric-card .metric-head i { color: var(--accent, var(--brand)); }
.panel-head-card { border-left: 4px solid var(--brand); }
.panel-head-card.accent-hw { border-left-color: #4C7FE8; }
.panel-head-card.accent-exam { border-left-color: var(--warning); }
.panel-head-card.accent-fu { border-left-color: var(--success); }
.panel-head-card .panel-big-value { color: var(--brand); }
.panel-head-card.accent-hw .panel-big-value { color: #4C7FE8; }
.panel-head-card.accent-exam .panel-big-value { color: #B26A00; }
.panel-head-card.accent-fu .panel-big-value { color: #0E9F6E; }

/* ---------- 5. 指标卡网格：四卡等宽等高，分数段分布不跨列（修正一） ---------- */
.quad-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 96px;               /* 四卡统一行高（以同模块三卡为基准） */
    gap: var(--space-2);
}
.metric-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 12px 14px;
    background: var(--brand-soft-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-ctl);
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.metric-card:hover { background: var(--card-bg); border-color: var(--brand); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.metric-card .metric-head { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-card .metric-value { font-size: 24px; font-weight: 700; color: var(--text-1); line-height: 1.25; }
.metric-card .metric-sub { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 分数段分布图：装进标准小卡内（尺寸不变，文字完整不截断由图表参数保证） */
.metric-card .dist-chart { flex: 1 1 auto; width: 100%; min-height: 26px; max-height: 46px; margin-top: 4px; }

/* ---------- 6. 按钮规范：主色蓝 + 圆角矩形（10px / 小号 8px） ---------- */
.btn { border-radius: var(--radius-ctl); font-weight: 600; }
.btn-sm { border-radius: var(--radius-sm); }
.btn-primary { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background-color: var(--brand-strong) !important; border-color: var(--brand-strong) !important; color: #fff; box-shadow: 0 6px 16px rgba(46, 107, 230, .24) !important; }
.btn-primary:disabled, .btn-primary.disabled { background-color: #C3D4F4; border-color: #C3D4F4; }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background-color: var(--brand); border-color: var(--brand); color: #fff; }
.btn-outline-secondary { color: var(--text-2); border-color: var(--border-ctl); border-radius: var(--radius-sm); }
.btn-outline-secondary:hover { background-color: var(--brand-soft-2); color: var(--brand); border-color: var(--brand); }
.btn-ios-primary {
    background: var(--brand);
    border: none;
    color: #fff;
    border-radius: var(--radius-ctl);
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: none;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn-ios-primary:hover { background: var(--brand-strong); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(46, 107, 230, .26); }
.btn-ios-primary:active { background: var(--brand-deep); transform: none; }
.btn-ios-primary:disabled, .btn-ios-primary.disabled { background: #C3D4F4; opacity: 1; }
.btn-ios-secondary {
    background: #fff;
    color: var(--text-2);
    border: 1px solid var(--border-ctl);
    border-radius: var(--radius-ctl);
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: none;
    transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn-ios-secondary:hover { background: var(--brand-soft-2); color: var(--brand); border-color: var(--brand); transform: translateY(-1px); }
.btn-ios-danger { background: var(--danger); color: #fff; border: none; border-radius: var(--radius-ctl); padding: .5rem 1.25rem; font-weight: 600; }
.btn-ios-danger:hover { background: #DC2626; transform: translateY(-1px); }

/* 页内作用域按钮同步为圆角矩形 + 主色 */
#class-manage-card .btn-ios-primary, #class-manage-card .btn-ios-secondary, #class-manage-card #btn-add-class-confirm, #class-manage-card #btn-add-class-cancel, #reasonModal .btn-ios-primary, #reasonModal .btn-ios-secondary, #teacherModal .btn-ios-primary, #teacherModal .btn-ios-secondary, .tc-topbar .btn-ios-secondary, .dt-topbar .btn-ios-primary, .dt-topbar .btn-ios-secondary{ border-radius: var(--radius-ctl) !important; }
#teacherModal .btn-ios-primary, #class-manage-card #btn-add-class-confirm { background: var(--brand) !important; color: #fff !important; }
#teacherModal .btn-ios-secondary, #class-manage-card #btn-add-class-cancel { background: #fff !important; color: var(--text-2) !important; border: 1px solid var(--border-ctl) !important; }
#class-manage-card .new-class-wrap { border-radius: var(--radius-ctl); }
#class-manage-card .new-class-wrap input, #class-manage-card .new-class-wrap .form-control { border-radius: var(--radius-ctl); }

/* 修正二：测评看板名单页「确定（保存）」按钮 → 胶囊（999px） */
.panel-score-box .panel-score-save, .panel-score-save { border-radius: var(--radius-pill) !important; padding-left: 1.1rem; padding-right: 1.1rem; }

/* 既有胶囊语义控件（状态按钮 / 分段控件 / 标签）保持胶囊 */
.att-btn, .hw-status-btn, .class-chip, .period-seg .btn, .att-pill, .dt-pill, .dt-seg, .dt-seg-btn, .badge, .panel-mark-tag, .rounded-pill{ border-radius: var(--radius-pill) !important; }

/* ---------- 7. 表格 / 表单 / 列表 ---------- */
.table thead th { background: var(--brand-soft-2); color: var(--text-2); border-bottom: 1px solid var(--border-soft); }
.table { color: var(--text-1); }
.table td, .table th { border-color: var(--border-soft); }
.table-hover > tbody > tr:hover > * { background-color: var(--brand-soft-2); }
tr[data-href]:hover { background: var(--brand-soft-2); }
.form-control, .form-select { border-radius: var(--radius-ctl); border-color: var(--border-ctl); color: var(--text-1); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(46, 107, 230, .15); }
.text-muted{ color: var(--text-muted) !important; }
/* ---------- 8. 弹窗 / 下拉 / 提示条 ---------- */
.modal-content { border: none; border-radius: var(--radius-card); box-shadow: var(--shadow-pop); }
.modal-header, .modal-footer { border-color: var(--border-soft); }
.modal-title { color: var(--text-1); font-weight: 600; }
.alert { border: none; border-radius: var(--radius-ctl); }
.alert-info { background: var(--brand-soft); color: var(--brand-deep); }
.alert-warning { background: #FFF6E6; color: #96620B; }
/* ---------- 9. 窄屏（≤991px）：侧栏折叠为图标条，不破坏可用性 ---------- */
@media (max-width: 991px) {
    .sidebar { width: 64px; padding: 12px 8px; }
    .sidebar .brand { text-align: center; padding: 4px 0 12px; }
    .sidebar .brand .brand-line, .sidebar .brand small { display: none; }
    .sidebar .brand::after { content: "新途径"; display: block; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 0; }
    .sidebar .nav-link { justify-content: center; padding: 11px 0; margin-bottom: 2px; }
    .sidebar .nav-link i { margin: 0; width: auto; font-size: 17px; }
    .sidebar .nav-link span { display: none; }
    .main-wrapper { margin-left: 64px; }
    .content { padding: var(--space-3); }
    .topbar { padding: 0 14px; }
    .topbar .page-title { font-size: 15px; }
}
@media (max-width: 576px) {
    .quad-grid { grid-template-columns: 1fr; }
    .content { padding: 12px; }
}

/* ===================== UI11 收尾修正：白卡指标卡 / 名单页胶囊按钮 / 颜色收口 ===================== */
:root {
    --radius-xs: 6px;
    --bs-primary: #2E6BE6;
    --bs-primary-rgb: 46, 107, 230;
    --bs-secondary-rgb: 138, 138, 153;
    --bs-link-color: #2E6BE6;
    --bs-link-color-rgb: 46, 107, 230;
    --bs-link-hover-color: #1F55C4;
    --bs-link-hover-color-rgb: 31, 85, 196;
    --bs-body-color: #333333;
    --bs-body-bg: #F2F5FA;
}

/* (1) 指标卡：纯白底 + 12px 圆角 + 柔和阴影，主色仅保留左侧色条与数值/图标强调 */
.metric-card,
.quad-card .metric-card {
    background: #FFFFFF !important;
    border: none !important;
    border-left: 3px solid var(--accent, var(--brand)) !important;
    border-radius: var(--radius-card, 12px) !important;
    box-shadow: var(--shadow-card, 0 2px 10px rgba(46, 107, 230, .08)) !important;
}
.metric-card:hover {
    background: #FFFFFF !important;
    box-shadow: var(--shadow-card-hover, 0 6px 18px rgba(46, 107, 230, .14)) !important;
    transform: translateY(-1px);
}
.metric-card .metric-head { color: #6B7280 !important; }
.metric-card .metric-value { color: var(--text-1, #333333) !important; }
.metric-card .metric-sub { color: #8A8A99 !important; }

/* (2) 链接与语义色统一到蓝色令牌 */
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-strong, #1F55C4); }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.badge.bg-primary { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
/* (3) 名单页提交类控件：输入框与按钮同高 34px，按钮统一横向胶囊 */
.panel-score-box,
.panel-op-wrap { display: inline-flex; align-items: center; gap: 8px; }
.panel-score-box .form-control,
.panel-score-box .panel-score-input,
.panel-op-wrap .panel-mark-select {
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: .82rem;
}
.panel-score-box .btn,
.panel-score-box .btn-ios-primary,
.panel-score-box .panel-score-save,
.panel-op-wrap .btn {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px !important;
    margin: 0 !important;
    font-size: .82rem;
    line-height: 1;
    white-space: nowrap;
    border-radius: var(--radius-pill, 999px) !important;
    box-shadow: none;
}
.panel-op-wrap .panel-mark-select { border-radius: var(--radius-pill, 999px) !important; }
.panel-mark-tag { line-height: 24px; border-radius: var(--radius-pill, 999px); font-style: normal; }
.panel-score-box .text-muted { font-size: .82rem; }

/* (4) 窄屏保护：含表格的卡片内部横向滚动，避免整页横向溢出 */
@media (max-width: 900px) {
    .card:has(table.table) { overflow-x: auto; }
    .card:has(table.table) > table.table { min-width: 700px; }
}

/* ============================================================
   本轮：表格与列表卡纯白化
   Bootstrap 5.3 的 .table 默认 --bs-table-bg = var(--bs-body-bg)，
   而本站 --bs-body-bg 是页面底色 #F2F5FA，导致卡片内表格整片发灰。
   这里把表格背景改为透明（跟随所在卡片），并把常用列表卡显式置白。
   ============================================================ */
.table,
table.table {
    --bs-table-bg: transparent;
    background-color: transparent;
}

.ios-card,
.att-list-card,
.att-page-card,
.task-card,
.session-item {
    background: #FFFFFF;
}

/* 学员全局状态标记：请假蓝字、特殊情况灰字；仅用文字颜色区分，名字不加底色/描边。 */
.student-name-marked {
    display: inline;
    border-radius: 0;
    line-height: inherit;
}

.student-status-special {
    color: #4B5563 !important;
}

.student-status-leave {
    color: #245B9B !important;
}

.student-status-special.student-status-leave {
    color: #4B5563 !important;
}

/* ============================================================
   20261101 全站统一设计规范（iOS 简约风 · 最终覆盖，消除历史样式冲突）
   ============================================================ */

/* ---------- A. 按钮统一：圆角矩形 10px / 600 字重 / 统一动效 ---------- */
.btn {
    border-radius: var(--radius-ctl) !important;
    font-weight: 600;
    transition: background .16s ease, color .16s ease, border-color .16s ease,
                box-shadow .16s ease, transform .12s ease, filter .16s ease;
    will-change: transform;
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled, .btn.disabled { opacity: .65; pointer-events: none; }
.btn-sm { padding: .32rem .85rem; font-size: .82rem; }

.btn-ios-primary, #class-manage-card .btn-ios-primary, #reasonModal .btn-ios-primary,
.dt-topbar .btn-ios-primary {
    background: var(--brand) !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-ctl) !important;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: none !important;
}
.btn-ios-primary:hover, #class-manage-card .btn-ios-primary:hover, #reasonModal .btn-ios-primary:hover,
.dt-topbar .btn-ios-primary:hover {
    background: var(--brand-strong) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(46, 107, 230, .28) !important;
    filter: none !important;
}
.btn-ios-primary:active { background: var(--brand-deep) !important; transform: scale(.97); }

.btn-ios-secondary, #class-manage-card .btn-ios-secondary, #reasonModal .btn-ios-secondary,
.dt-topbar .btn-ios-secondary {
    background: #fff !important;
    background-image: none !important;
    color: var(--text-2) !important;
    border: 1px solid var(--border-ctl) !important;
    border-radius: var(--radius-ctl) !important;
    padding: .5rem 1.25rem;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: none !important;
}
.btn-ios-secondary:hover, #class-manage-card .btn-ios-secondary:hover, #reasonModal .btn-ios-secondary:hover,
.dt-topbar .btn-ios-secondary:hover {
    background: var(--brand-soft-2) !important;
    color: var(--brand) !important;
    border-color: var(--brand) !important;
    transform: translateY(-1px);
    filter: none !important;
}

.btn-ios-danger {
    background: var(--danger) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-ctl) !important;
}
.btn-ios-danger:hover { background: #DC2626 !important; color: #fff !important; transform: translateY(-1px); }

.btn-primary {
    background-color: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--brand-strong) !important;
    border-color: var(--brand-strong) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-secondary {
    background: #fff !important;
    color: var(--text-2) !important;
    border: 1px solid var(--border-ctl) !important;
}
.btn-secondary:hover { background: var(--brand-soft-2) !important; color: var(--brand) !important; border-color: var(--brand) !important; }

.btn-outline-primary, .btn-outline-secondary, .btn-outline-danger, .btn-outline-info, .btn-outline-warning {
    border-radius: var(--radius-ctl) !important;
    font-weight: 600;
    border-width: 1px;
}
.btn-outline-primary { color: var(--brand) !important; border-color: var(--brand) !important; }
.btn-outline-primary:hover { background: var(--brand) !important; color: #fff !important; transform: translateY(-1px); }
.btn-outline-secondary { color: var(--text-2) !important; border-color: var(--border-ctl) !important; }
.btn-outline-secondary:hover { background: var(--brand-soft-2) !important; color: var(--brand) !important; border-color: var(--brand) !important; transform: translateY(-1px); }
.btn-outline-danger { color: var(--danger) !important; border-color: rgba(239, 68, 68, .5) !important; }
.btn-outline-danger:hover { background: var(--danger) !important; color: #fff !important; transform: translateY(-1px); }
.btn-outline-info { color: var(--brand) !important; border-color: rgba(46, 107, 230, .5) !important; }
.btn-outline-info:hover { background: var(--brand) !important; color: #fff !important; transform: translateY(-1px); }
.btn-outline-warning { color: #B45309 !important; border-color: rgba(245, 158, 11, .55) !important; }
.btn-outline-warning:hover { background: var(--warning) !important; color: #fff !important; transform: translateY(-1px); }
.btn-danger { background: var(--danger) !important; border-color: var(--danger) !important; color: #fff !important; }
.btn-danger:hover { background: #DC2626 !important; border-color: #DC2626 !important; transform: translateY(-1px); }

/* 胶囊类语义控件保持胶囊，不被按钮规范覆盖 */
.att-btn, .hw-status-btn, .class-chip, .period-seg .btn, .att-pill, .dt-pill, .dt-seg, .dt-seg-btn,
.badge, .panel-mark-select, .panel-mark-tag, .panel-score-save {
    border-radius: var(--radius-pill, 999px) !important;
}

/* ---------- B. 考勤状态按钮：窄屏禁止文字竖排（一行排不下整组换行） ---------- */
.att-btn, .hw-status-btn {
    white-space: nowrap !important;
    flex: 0 0 auto;
}
.att-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

/* ---------- C. 细长条卡片（上课日期管理 / 请假管理） ---------- */
.att-strip-card { border: none; box-shadow: var(--shadow-card); border-radius: var(--radius-card); }
.att-strip-card .card-body { padding: .55rem 1.1rem; }
.att-strip-title { font-weight: 700; color: var(--text-1); white-space: nowrap; }

/* ---------- D. 跟进记录详情弹窗 ---------- */
.fu-row-clickable { cursor: pointer; }
.fu-row-clickable:hover > td { background: var(--brand-soft-2); }
.fu-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fu-detail-badge {
    background: var(--brand-soft); color: var(--brand-deep);
    border-radius: var(--radius-pill, 999px); padding: 3px 12px;
    font-size: .78rem; font-weight: 600;
}
.fu-detail-block { margin-bottom: 10px; }
.fu-detail-label { font-size: .75rem; color: var(--text-3); margin-bottom: 3px; font-weight: 600; }
.fu-detail-text {
    background: var(--brand-soft-2); border-radius: var(--radius-ctl);
    padding: 9px 12px; font-size: .88rem; line-height: 1.65;
    color: var(--text-1); white-space: pre-wrap; word-break: break-word;
}

/* ---------- E. 动效：弹窗 / 提示条 / 列表（顺滑但克制） ---------- */
@keyframes modalPop {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal.show .modal-dialog { animation: modalPop .22s cubic-bezier(.2, .8, .3, 1); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-toast {
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-ctl);
    margin-bottom: 8px;
    box-shadow: 0 6px 18px rgba(23, 58, 130, .22);
    font-size: 13.5px;
    animation: toastIn .22s ease;
}
.app-toast-success { background: #1e7e34; }
.app-toast-warning { background: #d96606; }
.app-toast-danger { background: #b02a37; }
.app-toast-out { opacity: 0; transition: opacity .4s ease; }

.card { transition: box-shadow .2s ease, transform .2s ease; }
.table tbody tr { transition: background .15s ease; }
tr[data-href] { cursor: pointer; }

/* 焦点可见性（键盘可访问） */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
    outline: 2px solid rgba(46, 107, 230, .45);
    outline-offset: 2px;
}

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   20261101 v2 视觉升级：一眼可见的 iOS 质感（最终覆盖所有历史局部规则）
   ============================================================ */

/* ---------- A. 状态按钮组：四列等宽网格，整齐对齐不换行 ---------- */
.att-btn-group {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px !important;
    width: 100%;
    min-width: 0;
    align-items: center;
}
.att-btn {
    white-space: nowrap !important;
    width: 100%;
    min-width: 0 !important;
    padding: 5px 2px !important;
    font-size: 12px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: visible;
}
.hw-status-btn {
    white-space: nowrap !important;
}

/* ---------- B. 按钮：主按钮渐变+彩色投影；次按钮灰底；描边按钮着色底 ---------- */
:root { --radius-btn: 12px; }

.btn, .btn-sm, .btn-lg {
    border-radius: var(--radius-btn) !important;
    font-weight: 600;
    letter-spacing: .01em;
}
.btn:active:not(:disabled) { transform: scale(.96) !important; }

.btn-primary, .btn-ios-primary,
#class-manage-card .btn-ios-primary, #class-manage-card .btn-ios-primary.btn-sm,
#reasonModal .btn-ios-primary, #teacherModal .btn-ios-primary, .dt-topbar .btn-ios-primary,
#class-manage-card #btn-add-class-confirm, #class-manage-card .new-class-wrap .btn#btn-add-class-confirm {
    background: linear-gradient(135deg, #4F86F7 0%, #2E6BE6 100%) !important;
    background-image: linear-gradient(135deg, #4F86F7 0%, #2E6BE6 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    box-shadow: 0 6px 16px rgba(46, 107, 230, .30) !important;
    padding: .52rem 1.3rem;
    font-size: .88rem;
}
.btn-primary:hover, .btn-ios-primary:hover,
#class-manage-card .btn-ios-primary:hover, #reasonModal .btn-ios-primary:hover,
#teacherModal .btn-ios-primary:hover, .dt-topbar .btn-ios-primary:hover,
#class-manage-card #btn-add-class-confirm:hover {
    background: linear-gradient(135deg, #5B8DF0 0%, #1F55C4 100%) !important;
    background-image: linear-gradient(135deg, #5B8DF0 0%, #1F55C4 100%) !important;
    color: #fff !important;
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(46, 107, 230, .38) !important;
}
.btn-primary:active, .btn-ios-primary:active,
#class-manage-card #btn-add-class-confirm:active {
    transform: scale(.96) !important;
    box-shadow: 0 4px 10px rgba(46, 107, 230, .28) !important;
}

.btn-secondary, .btn-ios-secondary,
#class-manage-card .btn-ios-secondary, #class-manage-card .btn-ios-secondary.btn-sm,
#reasonModal .btn-ios-secondary, #teacherModal .btn-ios-secondary, .dt-topbar .btn-ios-secondary,
#class-manage-card #btn-add-class-cancel, #class-manage-card .new-class-wrap .btn#btn-add-class-cancel {
    background: #EEF2F9 !important;
    background-image: none !important;
    color: #4A5568 !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    box-shadow: none !important;
    padding: .52rem 1.3rem;
    font-size: .88rem;
}
.btn-secondary:hover, .btn-ios-secondary:hover,
#class-manage-card .btn-ios-secondary:hover, #reasonModal .btn-ios-secondary:hover,
#teacherModal .btn-ios-secondary:hover, .dt-topbar .btn-ios-secondary:hover,
#class-manage-card #btn-add-class-cancel:hover {
    background: #E2E9F7 !important;
    color: var(--brand) !important;
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

/* 描边按钮（表格行内操作）：着色底 + 同色文字，悬停实底白字 */
.btn-outline-primary {
    background: rgba(46, 107, 230, .10) !important;
    color: var(--brand) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
}
.btn-outline-primary:hover { background: var(--brand) !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(46, 107, 230, .28); }
.btn-outline-secondary {
    background: #F2F5FA !important;
    color: #4A5568 !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
}
.btn-outline-secondary:hover { background: var(--brand-soft) !important; color: var(--brand) !important; transform: translateY(-1px); }
.btn-outline-danger {
    background: rgba(239, 68, 68, .10) !important;
    color: var(--danger) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
}
.btn-outline-danger:hover { background: var(--danger) !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(239, 68, 68, .26); }
.btn-outline-info {
    background: rgba(46, 107, 230, .10) !important;
    color: var(--brand) !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
}
.btn-outline-info:hover { background: var(--brand) !important; color: #fff !important; transform: translateY(-1px); }
.btn-outline-warning {
    background: rgba(245, 158, 11, .12) !important;
    color: #B45309 !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
}
.btn-outline-warning:hover { background: var(--warning) !important; color: #fff !important; transform: translateY(-1px); }

.btn-danger, .btn-ios-danger {
    background: linear-gradient(135deg, #F76B6B 0%, #EF4444 100%) !important;
    background-image: linear-gradient(135deg, #F76B6B 0%, #EF4444 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-btn) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, .28) !important;
}
.btn-danger:hover, .btn-ios-danger:hover {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    background-image: linear-gradient(135deg, #EF4444 0%, #DC2626 100%) !important;
    color: #fff !important;
    filter: none !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(239, 68, 68, .34) !important;
}

/* ---------- C. 卡片：大圆角 + 柔和层叠阴影 + 轻悬停 ---------- */
.card, .ios-card, .att-list-card, .att-page-card, .task-card, .stat-card, .dt-stat-card, .metric-card {
    border-radius: 16px !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(23, 58, 130, .07) !important;
}
.card:hover, .dt-stat-card:hover { box-shadow: 0 10px 28px rgba(23, 58, 130, .12) !important; }
.att-strip-card .card-body { padding: .55rem 1.15rem; }

/* ---------- D. 表单：浅灰填充输入框，聚焦白底 + 品牌光环 ---------- */
.form-control, .form-select, textarea.form-control {
    background: #F6F8FC !important;
    border: 1px solid transparent !important;
    border-radius: var(--radius-btn) !important;
    color: var(--text-1);
    transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.form-control:focus, .form-select:focus {
    background: #fff !important;
    border-color: rgba(46, 107, 230, .45) !important;
    box-shadow: 0 0 0 4px rgba(46, 107, 230, .13) !important;
}
.form-control::placeholder { color: #B4BCCB; }

/* ---------- E. 表格：清爽表头 + 行悬停提亮 ---------- */
.table thead th {
    background: transparent !important;
    color: #98A2B3 !important;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border-soft) !important;
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.table tbody td { padding-top: .6rem; padding-bottom: .6rem; }
.table-hover > tbody > tr:hover > * { background-color: #F5F9FF !important; }

/* ---------- F. 弹窗：大圆角 + 柔和标题栏 ---------- */
.modal-content {
    border-radius: 20px !important;
    box-shadow: 0 24px 64px rgba(23, 58, 130, .22) !important;
    overflow: hidden;
}
.modal-header {
    background: linear-gradient(180deg, #F7FAFF 0%, #FFFFFF 100%);
    padding: 16px 22px 12px;
    border-bottom: 1px solid var(--border-soft);
}
.modal-title { font-size: 1.02rem; font-weight: 700; }
.modal-body { padding: 18px 22px; }
.modal-footer { padding: 12px 22px 18px; border-top: none; gap: 10px; }
.btn-close { opacity: .55; }

/* ---------- G. 徽章 / 提示统一 ---------- */
.badge { font-weight: 600; letter-spacing: .02em; }
.alert { border-radius: var(--radius-btn) !important; }

/* 与 v1 一致：胶囊语义控件保持胶囊 */
.att-btn, .hw-status-btn, .class-chip, .period-seg .btn, .att-pill, .dt-pill, .dt-seg, .dt-seg-btn,
.badge, .panel-mark-select, .panel-mark-tag, .panel-score-save, .panel-op-wrap .btn {
    border-radius: var(--radius-pill, 999px) !important;
}

/* ---------- H. 违纪名单 / 请假次数统计 ---------- */
.dis-red > td { background: rgba(239, 68, 68, .06) !important; }
.dis-red-name { color: var(--danger); }
.dis-cell { white-space: nowrap; }
.ls-over > td { background: rgba(245, 158, 11, .08) !important; }
.ls-over-name { color: #B45309; }

/* 名字节点一律去掉底色、描边、圆角、内边距（含标记组合与搜索/跟进名单） */
.student-name-marked,
.fu-name.student-status-special,
.fu-name.student-status-leave,
.fu-name.student-status-special.student-status-leave,
.student-name.student-status-special,
.student-name.student-status-leave,
.student-name.student-status-special.student-status-leave,
.student-name-marked.student-status-special,
.student-name-marked.student-status-leave,
.student-name-marked.student-status-special.student-status-leave {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    text-decoration: none !important;
}

tr.student-status-special,
.fu-row.student-status-special,
.leave-summary.student-status-special {
    background-color: #F3F4F6 !important;
}

tr.student-status-leave,
.fu-row.student-status-leave,
.leave-summary.student-status-leave {
    background-color: #EFF6FF !important;
}

.seat-cell.student-status-special {
    background: #E5E7EB !important;
    color: #4B5563 !important;
    border-color: #9CA3AF !important;
    box-shadow: inset 0 0 0 2px #9CA3AF !important;
}

.seat-cell.student-status-leave {
    background: #DCEBFF !important;
    color: #245B9B !important;
    border-color: #A9CDF5 !important;
    box-shadow: inset 0 0 0 2px #A9CDF5 !important;
}

.seat-cell.student-status-special .seat-name {
    color: #4B5563 !important;
}

.seat-cell.student-status-leave .seat-name {
    color: #245B9B !important;
}

/* 可搜索学员选择器：姓名、手机号、班级即时匹配。 */
.student-search-select {
    position: relative;
}

.student-search-control {
    position: relative;
}

.student-search-results {
    display: block;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1080;
    max-height: 280px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #D8DEE9;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(30, 41, 59, .16);
}

.student-search-results[hidden] {
    display: none !important;
}

.student-search-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 9px;
    white-space: normal;
}

.student-search-option:hover,
.student-search-option.active {
    background: #EAF2FF;
    color: #174A8B;
}

.student-search-name {
    flex: 0 0 auto;
    font-weight: 650;
}

.student-search-detail {
    min-width: 0;
    overflow: hidden;
    color: #667085;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-search-empty {
    padding: 14px 10px;
    color: #7A8496;
    text-align: center;
}
/* ============================================================
   班主任事项安排（teacher_reminders）
   ============================================================ */
.reminder-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.reminder-stat {
    flex: 1 1 150px;
    background: #fff;
    border: 1px solid #EDF2FB;
    border-radius: var(--radius-card);
    padding: 12px 18px;
    box-shadow: 0 2px 12px rgba(46, 107, 230, .06);
}
.reminder-stat .label { font-size: 12.5px; color: #9CA3AF; }
.reminder-stat .value { font-size: 26px; font-weight: 700; color: #333333; line-height: 1.25; }
.reminder-stat.due .value { color: #f59e0b; }
.reminder-stat.overdue .value { color: #dc3545; }

.reminder-list { display: flex; flex-direction: column; gap: 10px; }
.reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #EDF2FB;
    border-left: 4px solid #cfd8ea;
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .15s ease, background .15s ease;
}
.reminder-item:hover { box-shadow: 0 4px 14px rgba(46, 107, 230, .10); }
.reminder-item.is-due { border-left-color: #f59e0b; background: #FFFBF2; }
.reminder-item.is-today { border-left-color: #f97316; background: #FFF7ED; }
.reminder-item.is-overdue { border-left-color: #dc3545; background: #FFF5F5; }
.reminder-item.is-done { border-left-color: #34c759; background: #F7FBF8; opacity: .85; }

.reminder-check {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 2px;
    border-radius: 50%;
    border: 2px solid #c7d2e5;
    background: #fff;
    color: #9CA3AF;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}
.reminder-check:hover { border-color: #34c759; color: #34c759; }
.reminder-item.is-done .reminder-check { border-color: #34c759; background: #34c759; color: #fff; }

.reminder-body { flex: 1 1 auto; min-width: 0; }
.reminder-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reminder-title { font-size: 14.5px; font-weight: 650; color: #333333; word-break: break-all; }
.reminder-item.is-done .reminder-title { text-decoration: line-through; color: #9CA3AF; }

.reminder-badge {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.reminder-badge.is-upcoming { background: #F1F5FD; color: #667085; }
.reminder-badge.is-today { background: rgba(249, 115, 22, .15); color: #c2410c; }
.reminder-badge.is-overdue { background: rgba(220, 53, 69, .14); color: #b02a37; }
.reminder-badge.is-done { background: rgba(52, 199, 89, .16); color: #1e7e34; }

.reminder-student {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 10px;
    border-radius: 999px;
    background: rgba(46, 107, 230, .10);
    color: #2E6BE6;
    font-size: 12px;
    text-decoration: none;
}
.reminder-student:hover { background: rgba(46, 107, 230, .20); color: #174A8B; }

.reminder-meta {
    margin-top: 4px;
    font-size: 12.5px;
    color: #9CA3AF;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.reminder-note { color: #7A8496; }
.reminder-actions { flex: 0 0 auto; display: flex; gap: 6px; }

.quick-date {
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid #c7d2e5;
    background: #F6F9FF;
    color: #2E6BE6;
    font-size: 12.5px;
    transition: all .15s ease;
}
.quick-date:hover { background: #EAF2FF; border-color: #2E6BE6; }

/* ---------- 仪表盘：班主任事项安排入口 ---------- */
.dash-overview .ov-todo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.ov-reminder-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(46, 107, 230, .35);
    background: rgba(46, 107, 230, .08);
    color: #2E6BE6;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s ease;
}
.ov-reminder-btn:hover { background: rgba(46, 107, 230, .16); color: #174A8B; }
.ov-reminder-badge {
    display: none;
    min-width: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(46, 107, 230, .15);
    color: #2E6BE6;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
}
.ov-reminder-badge:not(:empty) { display: inline-block; }
.ov-reminder-badge.is-due { background: #dc3545; color: #fff; }
/* ============================================================
   宽度随内容：按钮左右留白收紧、下拉框按文字宽、搜索框收窄
   （字号保持原样，只改宽度）
   ============================================================ */
.btn, .btn-ios-primary, .btn-ios-secondary {
    padding-left: .95em !important;
    padding-right: .95em !important;
}
.btn-sm {
    padding-left: .8em !important;
    padding-right: .8em !important;
}
.form-select, .form-select-sm, .form-select-lg {
    width: auto !important;
    min-width: 8.5em;
    max-width: 100%;
}
#search-input {
    width: 220px !important;
    max-width: 100%;
}
#btn-search, #btn-dis-search, #flt-search {
    width: auto !important;
    min-width: 5.4em;
    padding-left: 1.5em !important;
    padding-right: 1.5em !important;
}
/* 作业页搜索为输入框旁的纯图标按钮，保持紧凑 */
#search-input + #btn-search {
    min-width: 0;
    padding-left: 1.1em !important;
    padding-right: 1.1em !important;
}


