/* 宿舍管理页（ss- 前缀，勿与全局类混用）
   两站共用：04 由 App.razor、07 由 TXZXAuto.Client 引入 _content 路径。
   不用 .razor.css 隔离（04 宿主仅认指纹文件名），改完 bump 两站引用的 ?var= */
.ss-top {
    min-height: 51px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.ss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
}

.ss-filter {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.ss-tools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 工具区按钮图标统一淡蓝色（修改学生信息/设置） */
.ss-tools .btn i {
    color: #62ade8;
}

.ss-page {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.ss-state {
    text-align: center;
    color: #999;
    padding: 48px 0;
    font-size: 15px;
}

/* flex 拉伸保证同行卡片等高（含空宿舍），内层铺满 */
.ss-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.ss-card {
    box-sizing: border-box;
    width: 100%;
    padding: 5px;
}

.ss-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .ss-card {
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .ss-card {
        width: 25%;
    }
}

.ss-room {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    text-align: center;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    margin-bottom: 6px;
}

.ss-row {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #444;
    line-height: 26px;
}

.ss-c1 {
    flex: none;
    width: 44px;
}

.ss-c2 {
    flex: none;
    width: 52px;
}

/* 按班级模式行首完整床位码（1-102-01），走读生为空 */
.ss-bedcode {
    flex: none;
    width: 72px;
    font-size: 12px;
    color: #888;
}

/* 重复床号清单表格 */
.ss-dup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.ss-dup-table th,
.ss-dup-table td {
    padding: 5px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
}

.ss-dup-table th {
    position: sticky;
    top: 0;
    background: #f0f7ec;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.ss-name {
    flex: 0 0 auto;     /* 2026-10-06 用户定：姓名永不截断，让请假后缀去缩 */
    white-space: nowrap;
}

/* 2026-10-06 请假后缀：只显事由（点击看详情），空间不足时自缩略，不挤姓名 */
.ss-qj {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 6px;
    color: #e67e22;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ss-bzr {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    font-size: 13px;
    color: #666;
    word-break: break-all;
}

/* 请假中勾选 */
.ss-jia {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    
}

    .ss-jia input {
        accent-color: #4a90d9;
        cursor: pointer;
        margin-right: 6px;
    }

/* 未勾选请假中时：请假中学生整行标橙 */
.ss-row-jia .ss-c1,
.ss-row-jia .ss-c2,
.ss-row-jia .ss-name {
    color: #e67e22;
}

.ss-row-jia .ss-name {
    font-weight: 600;
}

/* 床位设置弹窗（同请假页 xq-modal 视觉） */
.ss-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.ss-modal {
    width: 92vw;
    max-width: 420px;
    max-height: 86vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px 16px;
}

.ss-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ss-modal-close {
    border: none;
    background: none;
    font-size: 22px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
}

.ss-field {
    display: block;
    margin-bottom: 12px;
}

.ss-label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

.ss-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

.ss-bedbtns {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ss-bedbtn {
    flex: 1;
    font-size: 14px;
    padding: 9px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.ss-bedbtn:hover:not(:disabled) {
    background: #ececec;
}

.ss-bedbtn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ss-bedbtn-primary {
    background: #4a90d9;
    border-color: #4a90d9;
    color: #fff;
}

.ss-bedbtn-primary:hover:not(:disabled) {
    background: #3d7fc4;
}

.ss-filepick {
    display: block;
    font-size: 13px;
    color: #555;
}

.ss-filepick input {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    max-width: 100%;
}

.ss-bedmsg {
    margin-top: 10px;
    font-size: 13px;
    color: #b35900;
    background: #fdf3e7;
    border: 1px solid #f3ddb8;
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-all;
}

.ss-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 6px;
}

/* 卡片上的修改床位按钮 */
.ss-bededit {
    margin-top: 8px;
    align-self: flex-end;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid #9ec5e8;
    border-radius: 6px;
    background: #eef5fc;
    color: #2f6fa8;
    cursor: pointer;
    white-space: nowrap;
}

.ss-bededit:hover {
    background: #dcecf9;
}

/* 床位设置弹窗里的开关行 */
.ss-checkrow {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

/* 删除学生弹窗的理由选项行 */
.ss-del-reason {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

    .ss-del-reason .ss-checkrow {
        margin-bottom: 0;
    }

    .ss-del-reason .ss-label {
        flex: none;
    }

    .ss-checkrow input {
        accent-color: #4a90d9;
        cursor: pointer;
    }

/* 修改床位模态框 */
.ss-be-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.ss-be-filter .ss-input {
    flex: 1;
    min-width: 0;
}

.ss-be-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px 2px;
    border-bottom: 1px dashed #eee;
}

.ss-be-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ss-be-now {
    font-size: 13px;
    color: #4a90d9;
    white-space: nowrap;
}

.ss-be-edit {
    font-size: 12px;
    padding: 3px 10px;
    border: 1px solid #c9c9c9;
    border-radius: 6px;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.ss-be-edit:hover {
    background: #ececec;
}

.ss-be-editor {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    padding: 6px 0 2px;
}

    .ss-be-editor .ss-input {
        font-size: 13px;
        padding: 6px 6px;
    }

.ss-be-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

    .ss-be-actions .ss-bedbtn {
        flex: 0 0 auto;
        padding: 6px 14px;
        font-size: 13px;
    }

/* 请假中学生行可点击 */
.ss-row-click {
    cursor: pointer;
}

/* 班主任电话可点击 */
.ss-bzr .ss-bzr-tel {
    color: #2f6fa8;
    text-decoration: none;
    margin-left: 4px;
}

.ss-bzr .ss-bzr-tel:hover {
    text-decoration: underline;
}

/* 请假详情弹窗 */
.ss-lv-row {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: #333;
    border-bottom: 1px dashed #eee;
}

.ss-lv-k {
    flex: none;
    width: 64px;
    color: #888;
}

.ss-lv-v {
    flex: 1;
    word-break: break-all;
}

.ss-lv-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

    .ss-lv-actions .ss-bedbtn {
        flex: 0 0 auto;
        padding: 8px 22px;
    }

/* ===== 人脸注册管理弹窗 ===== */
.ss-modal-wide {
    width: min(560px, 94vw);
}

.ss-face-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.ss-face-tab {
    flex: 1;
    padding: 7px 0;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #555;
}

.ss-face-tab-on {
    background: #62ade8;
    border-color: #62ade8;
    color: #fff;
    font-weight: 600;
}

.ss-face-filter {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

    .ss-face-filter .ss-input {
        /* 2026-10-18 修复横向溢出：.ss-input 默认 width:100%，叠加 flex:none 时
           select 以整行宽度参与 flex 布局，把筛选行撑出模态框边界。
           改为可收缩、不超 200px。字号与弹窗内其它控件协调为 13px。 */
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        max-width: 200px;
        font-size: 13px;
        padding: 6px 10px;
    }

    @@media (max-width: 480px) {
        .ss-face-filter .ss-input {
            max-width: 150px; /* 窄屏再收一档，保证 姓名框+下拉+人数 都在弹窗内 */
        }
    }

    .ss-face-filter input.ss-input {
        /* 2026-10-18 姓名输入框：占满剩余宽度、可收缩，不设 200px 上限（与 select 区分） */
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        max-width: none;
    }

.ss-face-count {
    flex: none;
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* 2026-10-18 标题行「导出」按钮（关闭按钮左侧） */
.ss-face-export {
    flex: none;
    padding: 6px 16px;
    font-size: 13px;
    border: 1px solid #62ade8;
    border-radius: 8px;
    background: #f0f8fe;
    color: #2f6fa8;
    cursor: pointer;
}

    .ss-face-export:disabled {
        opacity: .5;
        cursor: default;
    }

.ss-face-list {
    max-height: 320px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

.ss-face-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    /* 2026-10-18 配合 <Virtualize>：固定行高，虚拟滚动定位才准确 */
    height: 48px;
    box-sizing: border-box;
}

    .ss-face-row:last-child {
        border-bottom: none;
    }

.ss-face-name {
    flex: none;
    font-weight: 600;
    color: #333;
}

.ss-face-cls {
    flex: 1;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ss-face-badge {
    flex: none;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
}

.ss-face-ok {
    background: #e8f7ee;
    color: #16a34a;
}

.ss-face-no {
    background: #fdecec;
    color: #dc2626;
}

.ss-face-fails {
    margin-top: 8px;
    max-height: 150px;
    overflow: auto;
    border: 1px solid #fdecec;
    border-radius: 8px;
    background: #fffafa;
    font-size: 12px;
}

.ss-face-fail-row {
    padding: 4px 10px;
    color: #b91c1c;
    border-bottom: 1px dashed #fdecec;
    word-break: break-all;
}

.ss-face-pager {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    font-size: 12px;
    color: #666;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
}

/* ===== 刷脸核验页 /facescan ===== */
.fs-page {
    max-width: 430px;
    margin: 0 auto;
    padding: 14px 14px 30px;
}

.fs-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.fs-title {
    font-size: 19px;
    font-weight: 700;
    color: #1f2937;
}

.fs-school {
    font-size: 12px;
    color: #94a3b8;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fs-state {
    text-align: center;
    color: #94a3b8;
    padding: 50px 0;
    font-size: 14px;
}

.fs-cam {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-hide {
    display: none;
}

/* 定格照片 / 未开摄像头占位层：两者都是「盖在 <video> 上的层」，必须绝对定位。
   ⚠️ 2026-10-02 用户截图实测的坑：.fs-cam / .fsign-cam 都是 display:flex（默认横向），
   这两个 div 若不脱流，就会变成排在 <video> 之后的第二个 flex 项 ——
   被挤到视频右侧、宽度压成 min-content（中文一字一行）、按钮被 overflow:hidden 裁掉一大半。
   （就是模态框里「📷 正在打开摄像头… / 开启中…」歪在右边那个样子） */
.fs-preview,
.fs-cam-idle {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
}

.fs-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-cam-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 14px;
}

.fs-idle-icon {
    font-size: 40px;
    opacity: .6;
}

.fs-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(34, 197, 94, .85);
    box-shadow: 0 0 12px 2px rgba(34, 197, 94, .55);
    animation: fs-scan 1.6s ease-in-out infinite alternate;
}

@keyframes fs-scan {
    from {
        top: 8%;
    }

    to {
        top: 88%;
    }
}

.fs-actions {
    display: flex;
    gap: 10px;
    margin: 14px 0 4px;
}

.fs-btn {
    border: none;
    border-radius: 10px;
    font-size: 15px;
    padding: 11px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.fs-btn-main {
    flex: 1.4;
    background: #16a34a;
    color: #fff;
    font-weight: 700;
}

    .fs-btn-main:disabled {
        opacity: .6;
    }

.fs-btn-sub {
    flex: 1;
    background: #eef4fb;
    color: #2563eb;
    font-weight: 600;
}

.fs-btn-again {
    margin-top: 12px;
    background: rgba(255, 255, 255, .92);
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 22px;
}

.fs-err {
    margin-top: 10px;
    font-size: 13px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fdecec;
    border-radius: 8px;
    padding: 8px 12px;
}

.fs-result {
    margin-top: 14px;
    border-radius: 14px;
    padding: 18px 16px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fs-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.fs-no {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.fs-fail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.fs-r-status {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
}

.fs-ok .fs-r-status {
    color: #16a34a;
}

.fs-no .fs-r-status {
    color: #dc2626;
}

.fs-fail .fs-r-status {
    color: #64748b;
}

.fs-r-name {
    margin-top: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.fs-r-line {
    margin-top: 4px;
    font-size: 14px;
    color: #475569;
}

.fs-recent {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.fs-recent-head {
    padding: 7px 12px;
    font-size: 12px;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
}

.fs-recent-row {
    padding: 6px 12px;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px dashed #eef2f7;
}

    .fs-recent-row:last-child {
        border-bottom: none;
    }

.fs-k-ok {
    color: #16a34a;
}

.fs-k-no {
    color: #dc2626;
}

.fs-k-fail {
    color: #94a3b8;
}

/* ===== 刷脸核验页：全屏结果/绿色按钮/切换镜头 ===== */
.fs-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, .94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fs-card-fs {
    width: min(420px, 92vw);
    border-radius: 18px;
    padding: 30px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

    .fs-card-fs .fs-r-status {
        font-size: 34px;
    }

    .fs-card-fs .fs-r-name {
        font-size: 24px;
        margin-top: 12px;
    }

    .fs-card-fs .fs-r-line {
        font-size: 15px;
        margin-top: 6px;
    }

.fs-r-time {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
}

.fs-btn-sub {
    background: #16a34a;
    color: #fff;
    font-weight: 700;
}

.fs-btn-alt {
    flex: 1;
    background: #eef4fb;
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
}

.fs-btn-back {
    margin-top: 20px;
    background: #1f2937;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 11px 44px;
}

.fs-retry {
    margin-top: 4px;
    border: 1px solid #64748b;
    background: transparent;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    padding: 6px 18px;
    cursor: pointer;
}

/* ===== 人脸注册弹窗：拍摄提示条 ===== */
.ss-face-tip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff7e6;
    border: 1px solid #ffd591;
    color: #ad6800;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}

/* ===== 刷脸核验页改版：方形取景/快门/迷你按钮 ===== */
.fs-cam {
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.fs-mirror {
    transform: scaleX(-1);
}

.fs-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.fs-shutter {
    flex: none;
    width: 64px;
    height: 64px;
    border: none;
    border-radius: 16px;
    background: #16a34a;
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(22, 163, 74, .35);
}

    .fs-shutter:disabled, .fs-shutter-off {
        opacity: .45;
        box-shadow: none;
        cursor: default;
    }

.fs-mini {
    flex: none;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: #eef1f5;
    color: #64748b;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fs-close {
    margin-left: auto;
}

    .fs-close:active {
        background: #e2e8f0;
    }

/* 快门居中：三键 space-between（左右均为42px，快门64px 恒居中） */
.fs-actions {
    justify-content: space-between;
}

.fs-close {
    margin-left: 0;
}

/* ===== 刷脸页：手工核验（识别不出/未注册时按学号兜底） ===== */
.fs-manual-btn {
    margin-top: 10px;
    border: 1px solid #64748b;
    background: transparent;
    color: #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    padding: 7px 18px;
    cursor: pointer;
}

.fs-manual-box {
    width: 100%;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fs-xh-input {
    width: 100%;
    box-sizing: border-box;
    font-size: 20px;
    letter-spacing: 2px;
    text-align: center;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
}

.fs-manual-btns {
    display: flex;
    gap: 10px;
}

.fs-btn-ghost {
    flex: 1;
    background: #e2e8f0;
    color: #1f2937;
    font-weight: 600;
}

.fs-btn-ok {
    flex: 1.4;
    background: #185fa5;
    color: #fff;
    font-weight: 700;
}

.fs-btn-ok:disabled {
    opacity: .6;
}

/* ===== 人脸注册弹窗：知情同意勾选（PIPL 单独同意留痕） ===== */
.ss-face-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 10px;
    padding: 8px 10px;
    background: #f0f7ff;
    border: 1px solid #cfe3fb;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #1e3a5f;
    cursor: pointer;
}

    .ss-face-consent input {
        margin: 2px 0 0;
        flex: 0 0 auto;
    }

/* ===== 刷脸记录：统计概览 ===== */
.ss-face-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ss-face-stat {
    font-size: 12px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 3px 10px;
}

.ss-face-stat-on {
    background: #e8f4ff;
    border-color: #cfe3fb;
    color: #185fa5;
    font-weight: 600;
}

/* ===== 学生自助注册人脸（/facesignup） ===== */
.fsign-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 12px 28px;
    box-sizing: border-box;
}

.fsign-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff7e6;
    border: 2px solid #ffb84d;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #8a5300;
}

    .fsign-tip i {
        font-size: 22px;
        color: #d97706;
        flex: 0 0 auto;
    }

.fsign-stat {
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

.fsign-shot {
    margin-top: 14px;
    height: 290px;
    border-radius: 14px;
    background: #f1f5f9;
    border: 1px dashed #b6c6d8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .fsign-shot img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.fsign-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

    .fsign-ph i {
        font-size: 44px;
    }

.fsign-btns {
    margin-top: 14px;
    display: flex;
    gap: 10px;
}

.fsign-btn {
    flex: 1;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    padding: 13px 0;
    cursor: pointer;
}

.fsign-btn-pick {
    background: #eef4fb;
    color: #2563eb;
    font-weight: 600;
}

.fsign-sub {
    flex: 1.3;
    background: #185fa5;
    color: #fff;
    font-weight: 700;
}

.fsign-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.fsign-consent {
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f0f7ff;
    border: 1px solid #cfe3fb;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #1e3a5f;
    cursor: pointer;
}

    .fsign-consent input {
        margin: 2px 0 0;
        flex: 0 0 auto;
    }

.fsign-msg {
    margin-top: 12px;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
}

.fsign-msg-ok {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.fsign-msg-err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b3261e;
}

.fsign-back {
    margin-top: 18px;
    width: 100%;
    background: #1f2937;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 0;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* ===== 学生注册人脸：页内取景 / 快门 / 切换镜头 ===== */
.fsign-cam {
    position: relative;
    width: min(360px, 100%);
    aspect-ratio: 1 / 1;
    margin: 14px auto 0;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 人像构图引导框：正面免冠照的取景参考 */
.fsign-frame {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 60%;
    height: 76%;
    transform: translate(-50%, -50%);
    border: 2px dashed rgba(255, 255, 255, .7);
    border-radius: 50% / 42%;
    pointer-events: none;
}

.fsign-frame-tip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
    pointer-events: none;
}

/* 未开摄像头时的提示与「开启摄像头」按钮（必须让用户用手势触发 getUserMedia） */
.fsign-cam .fs-cam-idle {
    /* 定位/铺满已由上面的 .fs-cam-idle 统一负责（绝对定位盖在视频上）。
       这里只管排版，避免中文文案一字一行。 */
    padding: 0 20px;
    text-align: center;
    line-height: 1.5;
}

.fsign-cam .fs-retry {
    margin-top: 6px;
    border: none;
    background: #185fa5;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 26px;
    border-radius: 10px;
    flex: 0 0 auto;
    max-width: 100%;
}

    .fsign-cam .fs-retry:disabled {
        opacity: .6;
    }

.fsign-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

    /* 主色统一走注册页的蓝，别沿用刷脸页的绿 */
    .fsign-actions .fs-shutter {
        background: #185fa5;
        box-shadow: 0 4px 14px rgba(24, 95, 165, .35);
    }

.fsign-facing {
    flex: none;
    width: 42px;
    text-align: right;
    font-size: 12px;
    color: #64748b;
}

.fsign-fallback {
    margin-top: 12px;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-size: 14px;
    padding: 11px 0;
    border-radius: 10px;
    cursor: pointer;
}

    .fsign-fallback:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

/* ===== 注册完成态：隐藏取景与拍摄提示，只留结果和「重新注册」 ===== */
.fsign-done {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 28px 16px 24px;
}

    .fsign-done i {
        font-size: 48px;
        color: #16a34a;
    }

.fsign-done-t {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #166534;
}

.fsign-done-s {
    font-size: 14px;
    color: #4b8060;
}

.fsign-done-tip {
    margin-top: 8px;
    font-size: 12px;
    color: #6b8f7a;
}

/* 已注册人脸照片（方形裁切 + 绿框，一眼确认是不是本人） */
.fsign-done-photo {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #16a34a;
    background: #0f172a;
}

.fsign-done-ph {
    width: 170px;
    height: 170px;
    border-radius: 14px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fsign-done-ph i {
        font-size: 76px;
        color: #16a34a;
    }

.fsign-btn-re {
    margin-top: 16px;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #185fa5;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 0;
    cursor: pointer;
}

/* 次要动作按钮（描边）：重新注册等 */
.fsign-btn-sec {
    margin-top: 10px;
    width: 100%;
    border: 1px solid #185fa5;
    background: #f0f6fc;
    color: #185fa5;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 0;
    border-radius: 10px;
    cursor: pointer;
}

/* ===== 完成态底部动作条（2026-10-02 用户反馈改造）=====
   原来「自测一下 / 重新注册 / 关闭」三个按钮各占一行（都是 width:100%），竖排显得很笨。
   现在：两个动作并排一行（容器内覆盖掉各自的 width/margin-top），「关闭」在嵌入模式已移除。
   配色沿用页面既有的品牌蓝 #185fa5，只做质感（渐变 / 投影 / 悬停位移）。 */
.fsign-done-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

    .fsign-done-actions > button {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        margin-top: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        border-radius: 12px;
        letter-spacing: .5px;
        white-space: nowrap;
        transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
    }

    /* 主按钮：自测一下（品牌蓝渐变 + 立体投影） */
    .fsign-done-actions > .fsign-btn-re {
        background: linear-gradient(135deg, #2e7fc9 0%, #185fa5 100%);
        box-shadow: 0 6px 14px rgba(24, 95, 165, .26);
    }

        .fsign-done-actions > .fsign-btn-re:hover {
            background: linear-gradient(135deg, #3591de 0%, #1b6cb9 100%);
            box-shadow: 0 9px 20px rgba(24, 95, 165, .34);
            transform: translateY(-1px);
        }

        .fsign-done-actions > .fsign-btn-re:active {
            transform: translateY(0);
            box-shadow: 0 3px 8px rgba(24, 95, 165, .3);
        }

    /* 次按钮：重新注册（白底描边 + 轻投影） */
    .fsign-done-actions > .fsign-btn-sec {
        border: 1.5px solid #bfd8ec;
        background: #fff;
        color: #185fa5;
        box-shadow: 0 2px 6px rgba(24, 95, 165, .07);
    }

        .fsign-done-actions > .fsign-btn-sec:hover {
            border-color: #185fa5;
            background: #f0f7ff;
            box-shadow: 0 5px 14px rgba(24, 95, 165, .16);
            transform: translateY(-1px);
        }

        .fsign-done-actions > .fsign-btn-sec:active {
            transform: translateY(0);
            box-shadow: 0 2px 6px rgba(24, 95, 165, .1);
        }

    .fsign-done-actions > button i {
        font-size: 15px;
    }

/* 极窄屏（小手机）：压缩间距与字号，保证两个按钮仍在一行 */
@media (max-width: 380px) {
    .fsign-done-actions {
        gap: 8px;
    }

        .fsign-done-actions > button {
            font-size: 14px;
            gap: 5px;
        }
}


/* ===== 教师中心 ===== */
.tc-tabs { display: flex; gap: 6px; }
.tc-tab { border: 1px solid #cfe0ee; background: #fff; color: #44607a; font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tc-tab-on { background: #185fa5; border-color: #185fa5; color: #fff; font-weight: 600; }
.tc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 7px 4px; border-bottom: 1px dashed #eef2f6; }
.tc-row:last-child { border-bottom: none; }
.tc-row .ss-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-tag { flex: 0 0 auto; font-size: 11px; color: #5c7f9c; background: #eef5fb; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.tc-zw { flex: 0 0 auto; font-size: 11px; color: #b26a00; background: #fff7e8; border-radius: 6px; padding: 2px 6px; white-space: nowrap; }
.tc-count { font-size: 12px; color: #8aa2b5; font-weight: 400; }

.tc-sex { flex: 0 0 auto; font-size: 12px; color: #8aa2b5; white-space: nowrap; }

/* 教师电话：点击直接拨号 */
.tc-tel { flex: 0 0 auto; font-size: 12px; color: #185fa5; text-decoration: none; border-bottom: 1px dashed #9dc0e0; white-space: nowrap; }
.tc-tel:hover { color: #0c447c; border-bottom-style: solid; }

/* 管理员铅笔图标：教师行尾直达修改 */
.tc-edit { flex: 0 0 auto; margin-left: auto; border: none; background: transparent; color: #8aa2b5; font-size: 12px; padding: 2px 4px; cursor: pointer; }
.tc-edit:hover { color: #185fa5; }

/* ===== 班级中心：学生/教师切换 + 教师行（2026-10-01） ===== */
.ss-seg { display: inline-flex; align-items: center; border: 1px solid #bcd6e8; border-radius: 8px; overflow: hidden; }
.ss-seg-btn { border: none; background: #fff; color: #1F3A5F; font-size: 13px; padding: 4px 14px; cursor: pointer; line-height: 1.6; }
.ss-seg-btn + .ss-seg-btn { border-left: 1px solid #bcd6e8; }
.ss-seg-on { background: #5CA5CE; color: #fff; }
.ss-tearow { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-bottom: 1px solid #f3f4f6; font-size: 13px; }
.ss-tearow:last-child { border-bottom: none; }
.ss-tea-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #eef3f7; }
/* 2026-10-01 学生行首头像：与记录行高匹配（行高26px→头像22px），可点击进 myinfo 学生详情 */
.ss-row-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; margin-right: 6px; background: #eef3f7; cursor: pointer; }
.ss-tea-avatar { cursor: pointer; }
.ss-tea-xueke { color: #6b7280; font-size: 12px; }

/* 2026-10-02 头像后第一项：序号（学生/教师列表卡片通用） */
.ss-no { flex: 0 0 auto; min-width: 16px; text-align: right; margin-right: 7px; color: #94a3b8; font-size: 12px; font-variant-numeric: tabular-nums; }

/* 2026-10-02 班级中心：班主任行的设置按钮（仅管理员可见） */
.ss-bzr { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ss-bzr-edit { border: none; background: transparent; color: #5CA5CE; cursor: pointer; font-size: 13px; padding: 0 2px; }
.ss-bzr-edit:hover { color: #1F3A5F; }

/* 2026-10-02 教师中心：行首头像（与班级中心教师头像同规格） */
.tc-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: #eef3f7; cursor: pointer; }

/* 2026-10-02 副班主任多选：设置弹框复选列表 */
.ss-fu-list { max-height: 190px; overflow-y: auto; border: 1px solid #d8e2ec; border-radius: 8px; padding: 4px 2px; background: #fff; }
.ss-fu-item { display: flex; align-items: center; gap: 7px; padding: 5px 9px; font-size: 13px; cursor: pointer; border-radius: 6px; }
.ss-fu-item:hover { background: #eef5fa; }
.ss-fu-item input[type="checkbox"] { accent-color: #5CA5CE; width: 15px; height: 15px; flex: 0 0 auto; }
.ss-fu-empty { padding: 10px; font-size: 12px; color: #94a3b8; text-align: center; }
