@charset "utf-8";
/* ============================================
   移动端响应式样式 - Mobile Responsive Styles
   不修改任何功能，仅控制显示效果
   ============================================ */

/* ── 平板（≤1024px）──────────────────────── */
@media (max-width: 1024px) {
    /* 首页：信息栏并排变上下 */
    .left, .right { float: none; width: 100%; }
    .right { margin-top: 10px; }

    /* 表单行允许换行 */
    .reg_list li.reg_l { width: 100px; }

    /* 搜索区域允许换行 */
    .search li { padding: 6px 10px; line-height: 28px; }
    .search input, .search select { margin-top: 2px; }
}

/* ── 手机（≤768px）───────────────────────── */
@media (max-width: 768px) {

    /* ====== Index.asp 主导航 ====== */
    /* 汉堡菜单按钮 */
    #menuToggle {
        display: block;
        position: fixed;
        top: 6px;
        left: 8px;
        z-index: 999;
        background: #88a1b7;
        color: #fff;
        border: none;
        border-radius: 4px;
        font-size: 22px;
        width: 38px;
        height: 38px;
        cursor: pointer;
        line-height: 38px;
        text-align: center;
        padding: 0;
    }
    #menuToggle:hover { background: #6a8a9e; }

    /* 遮罩层 */
    #menuOverlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.45);
        z-index: 98;
    }
    #menuOverlay.show { display: block; }

    /* 侧边栏：默认隐藏，点击后滑入 */
    .lefts {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        z-index: 99;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        padding-top: 50px;
    }
    .lefts.open { transform: translateX(0); }

    /* 内容区全宽 */
    .rights {
        margin: 0 0 0 0 !important;
        padding: 0 8px !important;
        min-height: 400px;
    }

    /* 顶栏给汉堡按钮留空 */
    .header { padding-left: 46px; box-sizing: border-box; }
    .header h1 { font-size: 15px; padding-left: 4px; line-height: 50px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header .header_member { font-size: 11px; }

    /* iframe 自适应宽度，允许滚动 */
    .main_iframe { width: 100% !important; overflow: auto !important; -webkit-overflow-scrolling: touch; }

    /* ====== 表格 → 卡片视图 ====== */
    .member_table {
        overflow-x: visible;
    }
    .member_table table {
        min-width: auto;
        width: 100%;
        border: none;
        font-size: 13px;
    }
    .member_table table thead,
    .member_table .member_table_top {
        display: none;
    }

    /* 每个数据行变成一张卡片 */
    .member_table table tbody tr,
    .member_table table tr:not(.member_table_top) {
        display: block;
        position: relative;
        margin: 0 0 14px 0;
        padding: 0;
        border: 1px solid #d0d7de;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        overflow: visible;
    }

    /* 空行显示为居中提示 */
    .member_table table tr:has(.empty-row) {
        display: block !important;
        border: 1px dashed #ddd !important;
        box-shadow: none !important;
        background: #fafafa !important;
        text-align: center;
        padding: 20px !important;
        border-radius: 8px;
    }
    .member_table table .empty-row {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        color: #999;
        font-size: 14px;
    }

    /* 每个单元格变成卡片中的一行 */
    .member_table table td {
        display: flex;
        align-items: flex-start;
        text-align: left;
        padding: 6px 12px;
        border-bottom: 1px solid #f0f2f5;
        border-left: none !important;
        word-break: break-all;
        font-size: 13px;
        line-height: 1.5;
    }
    .member_table table td:last-child {
        border-bottom: none;
    }

    /* 复选框列：卡片内顶行小尺寸 */
    .member_table table td:first-child:has(input[type="checkbox"]) {
        padding: 4px 12px 0 12px;
        border-bottom: none;
        font-size: 0;
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .member_table table td:first-child:has(input[type="checkbox"]) input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
    }

    /* 操作按钮列：卡片底部高亮条 */
    .member_table table .action-cell,
    .member_table table td:last-child {
        background: #f8f9fb;
        border-bottom: none;
        padding: 8px 12px;
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }
    .member_table table .action-cell a,
    .member_table table .action-cell .btn,
    .member_table table td:last-child a {
        display: inline-block;
        margin: 2px 0;
    }

    /* 行 hover 效果 */
    .member_table table tr:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    }

    /* 斑马纹保持 */
    .member_table table tr:nth-child(even) {
        background: #fafbfc;
    }

    /* ====== 搜索表单换行 ====== */
    .search li {
        padding: 4px 10px;
        line-height: 24px;
    }
    .search input[type="text"],
    .search select {
        width: 100% !important;
        max-width: 100%;
        margin: 2px 0;
        box-sizing: border-box;
    }
    .search input[type="text"].Wdate {
        width: 48% !important;
        display: inline-block;
    }

    /* ====== 表单响应式 ====== */
    .reg_list ul { padding: 4px 0; }
    .reg_list li { float: none !important; display: block; line-height: 28px; }
    .reg_list li.reg_l {
        width: auto !important;
        text-align: left !important;
        padding-left: 4px;
    }
    .reg_list li.reg_i { padding-left: 4px; }
    .reg_list li.reg_tip { padding-left: 4px; }
    .reg_list li.reg_g { padding-left: 4px; }
    .reg_list input[type="text"],
    .reg_list input[type="password"],
    .reg_list textarea,
    .reg_list select {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .reg_input { width: 100% !important; max-width: 100%; box-sizing: border-box; }

    /* ====== 首页统计面板 ====== */
    .count li {
        padding-left: 10px;
        height: auto;
        line-height: 24px;
    }

    /* ====== 分页 ====== */
    .meneame { font-size: 12px; }
    .meneame a { padding: 3px 6px; margin: 0 1px; font-size: 12px; }
    .meneame span { padding: 3px 6px; margin: 0 1px; font-size: 12px; }
    .meneame select { font-size: 12px; max-width: 80px; }

    /* ====== 页面标题 ====== */
    .reg_top { font-size: 14px; height: auto; padding: 8px 10px; }

    /* ====== 按钮 ====== */
    .member_btn { padding: 0 12px; height: 28px; line-height: 28px; font-size: 13px; }
    .check_all .member_btn { height: 24px; line-height: 24px; padding: 0 8px; font-size: 12px; }

    /* ====== 全选和批量操作栏 ====== */
    .check_all {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 8px 4px;
    }
    .check_all span {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        padding: 0;
    }
    .check_all .member_btn {
        white-space: nowrap;
    }

    /* ====== 卡片内小字 ====== */
    .member_table .small-text {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }
}

/* ── 小屏手机（≤480px）──────────────────── */
@media (max-width: 480px) {
    body { font-size: 12px; }

    .header h1 { font-size: 13px; }
    .header .header_member { font-size: 10px; }

    .lefts { width: 200px; }

    .meneame { font-size: 11px; }
    .meneame a { padding: 2px 4px; }
    .meneame span { padding: 2px 4px; }

    /* 卡片更紧凑 */
    .member_table table tr {
        margin: 0 0 10px 0;
        border-radius: 8px;
    }
    .member_table table td {
        padding: 4px 8px;
        font-size: 12px;
        line-height: 1.4;
    }
    .member_table table td:first-child:has(input[type="checkbox"]) {
        padding: 2px 8px 0 8px;
        min-height: 20px;
    }

    .reg_top { font-size: 13px; }

    .member_btn { padding: 0 8px; height: 26px; line-height: 26px; font-size: 12px; }
}

/* ====== 登录页响应式 ====== */
@media (max-width: 768px) {
    .header, .footer, .login_bg {
        width: 100% !important;
        max-width: 100%;
    }
    .login_bg {
        height: auto;
        min-height: 100vh;
        background-size: cover;
        background-position: center top;
    }
    .login {
        position: relative;
        top: auto;
        left: auto;
        margin: 20px auto;
        width: 90% !important;
        max-width: 360px;
        height: auto;
        padding-bottom: 20px;
    }
    .login h2 {
        font-size: 22px;
        padding: 16px 0 8px 24px;
    }
    .login ul {
        width: 90%;
        margin: 8px auto 0 auto;
    }
    .login li input {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .login_btn {
        width: 100% !important;
    }
    .reg_input {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    .contents {
        background: #6da5b8;
    }
}

/* ── 打印样式（隐藏侧栏）─────────────────── */
@media print {
    .lefts, .header, #menuToggle, #menuOverlay { display: none !important; }
    .rights { margin: 0 !important; padding: 0 !important; }
}
