/*==================================================================
 * 前台响应式适配层（桌面优先）
 *
 * 规则：
 *  1. 全部规则包裹在 max-width 媒体查询内 —— >1160px 视口（PC 桌面）
 *     本文件不产生任何效果，原 index.css 的 PC 展示完全不变；
 *  2. 断点四档：1160（定宽容器自适应）/ 1024（双栏堆叠）/
 *     768（手机布局）/ 480（小屏微调）；
 *  3. 视觉风格对齐参考项目 jbtm985/web/tpl/wap：
 *     白底顶栏 + 灰底纵排菜单 + banner 顶部 + 浅灰分隔区块；
 *  4. 带 !important 的规则用于覆盖页面内嵌 <style> / 内联 style
 *     （页面内样式在 head 链接之后解析，同特异性下会覆盖本文件）。
 *==================================================================*/

/* 折叠菜单开关：PC 端隐藏（不影响原有布局与交互），≤1024 由断点二显示 */
.menu-toggle {
    display: none;
}

/*------------------------------------------------------------------
 * 断点一：≤1160px —— 定宽容器自适应，消除横向滚动
 *（覆盖 index.css 中所有 ≥1000px 的定宽容器）
 *------------------------------------------------------------------*/
@media screen and (max-width: 1160px) {

    /* 通用定宽容器：1130/1100/1050/1000 → 自适应留边 */
    .html_top_con,
    .top_con,
    .main,
    .footer_con,
    .login_main,
    .system_dingwei,
    .jiazhang_xuzhi_con,
    .anquan_xuzhi_con,
    .dx_div_con,
    .shuoming_div_con,
    .input_info,
    .article_div_about,
    .yonghu_div_con,
    .links_d {
        width: auto;
        max-width: 100%;
        margin-left: 12px;
        margin-right: 12px;
        box-sizing: border-box;
    }

    /* 顶部主容器：1130 → 自适应（菜单/电话为绝对定位，可容纳） */
    .top_con {
        margin-left: 12px;
        margin-right: 12px;
    }

    /* 菜单容器从 320 固定左偏移改为跟随 logo 宽度，避免顶出视口；
       1025~1160 区间为压缩横排，≤1024 由断点二覆盖为纵排 */
    .menu_div {
        left: 0;
        width: auto;
        margin-left: 300px;
    }

    .menu {
        width: 100%;
        left: 0;
    }

    /* 9 个菜单项均分可用宽度（原本 9×81px=729px 定宽） */
    .menu li {
        width: 11.11%;
        box-sizing: border-box;
    }

    .menu li a {
        font-size: 14px;
        padding: 0 2px;
        box-sizing: border-box;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 右侧电话/QQ 装饰在窄屏隐藏，把宽度让给菜单 */
    .top_r,
    .top_qq {
        display: none;
    }

    /* banner：1800 定宽居中裁剪 → 全宽裁剪，图片等比缩放 */
    .banner {
        width: auto;
        max-width: 100%;
    }

    .banner_con,
    .banner_ul,
    .banner_ul li {
        width: 100% !important;
    }

    /* 原 1800px 居中用的 margin-left:-400px 必须清零，否则整块左移出视口 */
    .banner_con {
        margin-left: 0 !important;
    }

    /* 静态 banner（登录/栏目/用户中心等页用 .banner_con > img 直出 1800px 原图）：
       改为等比缩放，避免整图被裁切、banner 区高度失控 */
    .banner_con > img {
        display: block;
        width: 100%;
        height: auto;
    }

    .banner_ul li img {
        width: 100%;
        height: auto;
    }

    /* 五大优势：5 列 219px → 两列 */
    .youshi_ul {
        width: auto;
        margin-left: 12px;
        margin-right: 12px;
        overflow: hidden;
    }

    .youshi_ul li {
        width: 50%;
        box-sizing: border-box;
    }

    /* 录取理念表格：1104 → 全宽（table 自适应伸缩） */
    .linian_table {
        width: auto;
        max-width: 100%;
        margin: 0 12px;
    }

    /* 报考指南（xuzhi 页）：说明文字块由绝对定位改常规流 */
    .kaosheng_xuzhi {
        width: auto;
        max-width: 100%;
        margin: 0 12px;
        box-sizing: border-box;
    }

    .kaosheng_xuzhi_text {
        position: static;
        width: auto !important;
        max-width: 100%;
        margin-top: 12px;
    }

    .anquan_xuzhi_text {
        max-width: 100% !important;
        width: auto !important;
        box-sizing: border-box;
    }

    /* 报名说明浮层：绝对定位 → 常规流 */
    .shuoming_div_text {
        position: static;
        width: auto !important;
        max-width: 100%;
    }

    .shuoming_b {
        position: static;
        width: auto !important;
    }

    /* ===== 会员须知（channel/8）移动端：对齐 wap/index_xuzhi 排版规范 =====
       wap 规范：弃用宽幅装饰背景图 → 居中标题 24px + 正文 16px/28px 行高 +
       区块统一 32px 上下距；搜索框/按钮改常规流全宽；主题色保持站点原色。 */

    /* 家长须知：装饰图自带文案与“专业查找”色块，窄屏不可读 → 纯排版块 */
    .jiazhang_xuzhi {
        height: auto !important;
        background: none;
        background-color: #374151;
        padding: 32px 0;
    }
    .jiazhang_xuzhi::before {
        content: '家长须知';
        display: block;
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        margin-bottom: 20px;
    }
    .jiazhang_xuzhi_con { height: auto !important; }
    .chakan_azhuanye {
        position: static;
        display: block;
        width: auto;
        max-width: 320px;
        height: 48px;
        line-height: 48px;
        margin: 0 auto;
        font-size: 16px;
        background-color: #ea1219;
        border-color: #ea1219;
    }
    .cha_search {
        position: static;
        width: auto;
        height: auto;
        max-width: 320px;
        margin: 16px auto 0;
    }
    .cha_search .cha_inputtext {
        width: 100% !important;
        height: 44px;
        box-sizing: border-box;
    }
    .cha_search .cha_inputsubmit {
        width: 100% !important;
        height: 44px;
        margin-top: 12px;
    }

    /* 考生须知：去人物装饰图，标题居中、正文常规流 */
    .kaosheng_xuzhi {
        height: auto !important;
        background: none;
        padding: 32px 16px 24px;
    }
    .kaosheng_xuzhi::before {
        content: '考生须知';
        display: block;
        text-align: center;
        font-size: 24px;
        font-weight: bold;
        color: #333;
        margin-bottom: 20px;
    }
    .kaosheng_xuzhi_text {
        height: auto !important;
        font-size: 16px !important;
        line-height: 28px !important;
        color: #333 !important;
    }

    /* 系统作用 / 报考那些事：覆盖模板内联的固定高度、装饰背景与粗边框 */
    .anquan_xuzhi { padding: 32px 0 !important; }
    .anquan_xuzhi_con {
        height: auto !important;
        background: none !important;
    }
    .tit_h1 { font-size: 24px !important; }
    .anquan_xuzhi_text {
        border: 0 !important;
        padding: 0 !important;
        margin-top: 20px;
        font-size: 16px !important;
        line-height: 28px !important;
    }

    /* 报考指导时间说明：去框图与固定高；黑框提醒盒改为红字提示条 */
    .shuoming_div {
        height: auto !important;
        padding: 32px 0 !important;
    }
    .shuoming_div_con {
        height: auto !important;
        background: none !important;
    }
    .shuoming_div_text {
        height: auto !important;
        padding: 0 4px;
    }
    .shuoming_div_text h1 { font-size: 24px; }
    .shuoming_div_text p {
        font-size: 16px;
        line-height: 28px;
    }
    .shuoming_div_text h2 {
        font-size: 16px;
        line-height: 28px;
        font-weight: normal;
    }
    .shuoming_b {
        height: auto !important;
        line-height: 1.6 !important;
        font-size: 16px !important;
        color: #ea1219 !important;
        border: 0 !important;
        padding: 8px 4px !important;
        margin-top: 16px !important;
        text-align: left;
    }

    /* 系统定位说明图：全宽等比缩放（配合容器 text-align:center 居中） */
    .system_dingwei { height: auto; }

    /* 文章正文图片：780 上限 → 随容器缩放 */
    .article_body img,
    .article_about img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }

    /* 短链文章左右块 */
    .art_a {
        width: auto;
        max-width: 100%;
    }

    /* major 页底部固定操作条（blade 内嵌 style，需 !important） */
    .action-content {
        width: auto !important;
        max-width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
    }

    /* 固定操作条高 58px：给列表留出安全距离，避免最后一行专业被遮住 */
    .major {
        padding-bottom: 76px;
    }

    /* 表单大容器：810 → 自适应 */
    .input_info_con {
        padding: 30px 20px;
    }
}

/*------------------------------------------------------------------
 * 断点二：≤1024px —— 双栏浮动堆叠为单栏
 *------------------------------------------------------------------*/
@media screen and (max-width: 1024px) {

    /* 院校页：左栏(290 右浮) + 右栏(782 左浮) → 上下堆叠 */
    .left,
    .right {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* 左栏搜索框 208/269 → 随容器 */
    .cha_yuanxiao {
        width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .cha_yuanxiao_con {
        width: auto;
        max-width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .left .cha_inputtext,
    .cha_inputtext {
        width: 100%;
        box-sizing: border-box;
    }

    .cha_search {
        width: 100%;
        box-sizing: border-box;
    }

    /* 登录页：左表单(500) + 右侧(260) → 堆叠 */
    .login_left,
    .login_right {
        float: none;
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    .login_table {
        width: 100%;
        max-width: 450px;
    }

    /* 短信/购买页：左卡(453) + 右文(538) → 堆叠 */
    .dx_con_left,
    .dx_con_right {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 0 0 20px 0;
    }

    /* 报考筛选表单：700/638 → 全宽 */
    .baokao_div,
    .select_pici,
    .school_pici {
        width: 100%;
        box-sizing: border-box;
    }

    /* 文章页左右块浮动 → 堆叠 */
    .art_a {
        float: none;
    }

    /* 登录页：原 100px 左缩进在窄屏必须清零，否则整块右移出视口 */
    .login_main {
        box-sizing: border-box;
    }

    .login_left {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .login_right {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .login_table {
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }

    /* 顶栏：logo/菜单脱离绝对定位，菜单纵排（对齐 wap 灰底纵排菜单风格）
       —— 平板竖屏（≤1024）起即启用，避免横排 9 项在窄屏挤压溢出 */
    .top {
        height: auto;
        /* 菜单浮层改为 fixed 后仍是 .top 后代，层级受 .top 层叠上下文约束；
           页内存在 z-index:100 的容器（登录页等），头部需整体高于普通内容层 */
        z-index: 200;
    }

    .top_con {
        height: auto;
        padding-bottom: 8px;
    }

    #logo {
        position: static;
        display: inline-block;
        padding-top: 10px;
    }

    #logo img {
        max-height: 56px;
        width: auto;
    }

    /* 折叠菜单开关（对齐 wap 参考的汉堡按钮）：44px 触控区，位于 logo 右侧 */
    .menu-toggle {
        display: block;
        position: absolute;
        right: 12px;
        top: 16px;
        box-sizing: border-box;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        background-color: #fff;
        cursor: pointer;
        transition: border-color .3s ease, background-color .3s ease;
        padding:5px 8px;
    }

    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 5px auto;
        background-color: #444;
        border-radius: 2px;
        transform-origin: center;
        transition: transform .3s ease, opacity .25s ease, background-color .3s ease;
        pointer-events: none;
    }

    /* 展开态：三道杠平滑过渡为关闭“×”（主流汉堡→关闭图标动画） */
    .top_con.menu-open .menu-toggle { border-color: #ea1219; }
    .top_con.menu-open .menu-toggle span { background-color: #ea1219; }
    .top_con.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .top_con.menu-open .menu-toggle span:nth-child(2) { opacity: 0; transform: scale(.2); }
    .top_con.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 默认收起：9 个导航项全部展开会占掉手机半屏，首屏内容被推走。
       display 无法参与过渡，改用 max-height + 透明度 + 轻微上移做展开/收起动画 */
    .menu {
        display: block;
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: max-height .32s ease, opacity .22s ease,
                    transform .22s ease, visibility 0s linear .32s;
    }

    .top_con.menu-open .menu {
        max-height: 70vh;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: max-height .32s ease, opacity .22s ease,
                    transform .22s ease, visibility 0s;
    }

    /* 菜单浮层：fixed 悬浮于内容之上，展开/收起不影响下方元素布局位置。
       top 由 JS 在展开时按头部实际底缘动态设置（此处为兜底初值） */
    .menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0;
        background-color: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
        z-index: 90;
    }

    /* 展开态允许内部滚动：超小屏横屏等 70vh 不足以放下 9 项时不裁切内容 */
    .top_con.menu-open .menu {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 菜单展开时：登录条(.html_top) + 主头部(.top) 与导航浮层同步悬浮——
       三层一起 position:fixed 钉在视口顶部，滚动页面时整体位置不变。
       顶部坐标由 JS 展开瞬间实测高度写入的 CSS 变量驱动：
       --menu-ht-h = 登录条高度+其下边距（.top 的 top 偏移）
       --menu-top-h = 主头部高度
       body 用等高 padding-top 补偿脱离文档流的位移，页面内容不跳变 */
    body.menu-open {
        padding-top: calc(var(--menu-ht-h, 0px) + var(--menu-top-h, 0px));
    }
    body.menu-open .html_top {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin-bottom: 0;
        z-index: 210;
    }
    body.menu-open .top {
        position: fixed;
        top: var(--menu-ht-h, 0px);
        left: 0;
        right: 0;
        width: 100%;
    }
    body.menu-open .menu {
        top: calc(var(--menu-ht-h, 0px) + var(--menu-top-h, 0px));
    }

    .menu_div {
        position: static;
        width: 100%;
        height: 0;
        margin: 0;
        overflow: visible;  /* 内部 fixed 菜单不受裁切 */
    }

    #menu_bg {
        display: none;  /* 红色装饰块：纵排菜单下无意义 */
    }

    .menu li {
        float: none;
        width: 100%;
        height: 44px;
        line-height: 44px;
        background-color: #f5f5f5;
        border-bottom: solid 1px #e5e5e5;
        box-sizing: border-box;
    }

    .menu li a {
        display: block;
        height: 44px;
        line-height: 44px;
        padding: 0 0 0 12px;
        box-sizing: border-box;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    /* 选中项：PC 依赖隐藏的 #menu_bg 红块衬托白字，纵排后改红底白字保持可读 */
    .menu li#cur a,
    .menu li a:hover {
        color: #fff !important;
        background-color: #ea1219;
    }
}

/*==================================================================
 * 移动端细节优化层（补充）
 *
 * 本段针对「非 PC 端显示细节」做专项修整：
 *   A. 触控热区：可点击元素最小 44×44（Apple HIG / WCAG 2.5.5）
 *   B. 焦点可见：:focus-visible 键盘焦点环（键盘/读屏用户必需）
 *   C. 字号层级：输入框 ≥16px（避免 iOS Safari 聚焦时自动放大页面）
 *   D. 对比度：正文级灰字提到 AA 4.5:1，按钮白字底色加深
 *   E. 安全区域：env(safe-area-inset-*) 适配刘海屏 / 底部横条
 *   F. 动效与深色：prefers-reduced-motion 降级
 *
 * 全部包在 max-width:1024px 内 —— PC 桌面端零影响。
 *==================================================================*/
@media screen and (max-width: 1024px) {

    /*--- A. 触控热区 ------------------------------------------------
       顶栏登录条内的 [退出] / [报考系统] 等文字链接只有 17px 高，
       手指难以点中；统一给到 44px 高的点击区（视觉尺寸不变，
       用 padding 撑开，不影响 PC 排版）。平板档（769~1024）同为触控设备，
       故规则放在 ≤1024。 */
    .html_top .login_state a,
    .html_top .login_state {
        display: inline-block;
    }

    .html_top .wel {
        line-height: 20px;
        padding: 12px 0;
        height: auto;
    }

    .html_top {
        /* 高度交给内容，避免撑开的链接被裁切 */
        height: auto;
    }

    .html_top_con {
        line-height: normal;
        padding:6px 0;
    }

    /* 面包屑「首页 / 当前位置」链接：同样撑到 44px 点击区。
       实际渲染类名为 .right_tit（components/position.blade.php 的 .locations 未被使用），
       两者都覆盖，避免以后启用 position 模板时失效。 */
    .right_tit a,
    .locations a,
    .loca a {
        display: inline-block;
        line-height: 20px;
    }
    /* 查询按钮：39px 高 → 44px，拇指更好点 */
    .cha_inputsubmit,
    .login_inputsubmit,
    .pici_submit {
        min-height: 44px;
        height: auto;
        line-height: 44px;
    }

    /* 资料列表标题链接（.l_a）：整行可点，行高撑到 44px */
    .ziliao_ul li a.l_a,
    .ziliao_ul li a.r_a {

        line-height: 20px;
    }

    /* 正文/提示区内的文字链接（如「重要资料中下载」红字提示）：
       原为普通行内链接仅 20px 高，触控设备（平板+手机）点击困难。
       撑为 44px 热区 —— 视觉仍是文字样式，只是可点区域变大。 */
    .baokao_div_con a,
    .select_pici a,
    .article_body a {
        display: inline-block;
        padding: 12px 2px;
        line-height: 20px;
    }

    /* 资料详情「上一篇 / 下一篇」：原 35px 行高 → 44px 可点行 */
    .art_a li {
        height: auto;
        min-height: 44px;
        line-height: 44px;
        padding: 0;
    }

    .art_a li a {
        display: inline-block;
        line-height: 44px;
    }

    /*--- B. 焦点可见（键盘可达性）--------------------------------------
       index.css 全站没有 :focus 规则，Tab 键导航时无任何视觉反馈。
       用 :focus-visible 只在键盘操作时显示焦点环，不影响鼠标点击。 */
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
        outline: 2px solid #ea1219;
        outline-offset: 2px;
        border-radius: 2px;
    }

    /* 去掉移动端点击时的灰色高亮块（-webkit-tap-highlight），
       改由 :active 提供统一反馈 */
    a,
    button,
    input,
    select,
    textarea {
        -webkit-tap-highlight-color: rgba(234, 18, 25, .12);
    }

    /*--- C. 字号层级 --------------------------------------------------
       输入框字号 < 16px 时，iOS Safari 聚焦会自动放大整页，
       用户需手动缩回，体验断裂。移动端输入框统一 16px。 */
    .login_inputtext,
    .info_inputtext,
    .cha_inputtext,
    .input_text,
    .input_select,
    .select,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* 正文最小 13px（原 body 12px 偏小，中文长句阅读吃力） */
    .main,
    .right_con,
    .left {
        font-size: 14px;
        line-height: 1.7;
    }

    /*--- D. 对比度 ----------------------------------------------------
       ① #999 灰字（说明/空状态）对比度仅 2.85 → 提到 #767676 (4.54:1)
       ② 主按钮底色 #e30a11 + 白字 = 4.0:1 → 加深到 #c8102e (5.3:1)
       ③ 红色提示文字 red + 白底 = 4.0:1 → 用 #d0021b (4.6:1) */
    .select_pici[style*="#999"],
    .select_pici[style*="color:#999"] {
        color: #6b6b6b !important;
    }

    /* 纯红色提示文字：#d0021b 相对白底 4.6:1（AA 达标），
       且保持"警示红"的语义，不影响 PC 端配色 */
    .select_pici[style*="color:red"],
    .select_pici[style*="color: red"],
    .red[style*="color:red"],
    .red[style*="color: red"] {
        color: #d0021b !important;
    }

    .pici_submit,
    .baokao_div_con .pici_submit {
        background-color: #c8102e;
    }

    /* 空状态与提示文字：模板内联 #999，用属性选择器统一提亮 */
    p[style*="color:#999"],
    p[style*="color: #999"],
    td[style*="color:#999"] {
        color: #767676 !important;
    }

    /* 页脚备案灰色小字：后台富文本内联 #939393，在深灰底(#555752)上仅 2.38:1，
       提升到 #d8d9d6（≈7:1）以满足 WCAG AA */
    .footer_con p {
        color: #d8d9d6 !important;
    }

    /* 页脚备案链接点击区撑到 44px，便于手指点按 */
    .footer_con a {
        display: inline-block;
        padding: 12px 2px;
        line-height: 20px;
    }

    /*--- E. 安全区域（刘海屏 / 底部横条）-------------------------------
       页面底部固定操作条（major 页）需避开 iPhone 底部 Home Indicator；
       顶栏需避开刘海。env() 不支持时自动回退为 0。 */
    .action {
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    .main {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .footer_con {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }

    /*--- F. 动效降级 ---------------------------------------------------
       开启「减少动态效果」的系统设置下，关闭动画与平滑滚动。 */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: .001ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: .001ms !important;
            scroll-behavior: auto !important;
        }
    }

    /*--- G. hover 降级与 active 反馈 -----------------------------------
       移动端没有 hover，PC 端靠 hover 才有交互反馈的样式
       （如资料列表标题变红下划线）在移动端永远不触发。
       用 @media (hover: hover) 把 hover 效果限制在真正有指针的设备，
       再用 :active 给触摸设备提供等价的按压反馈。 */
    @media (hover: none) {
        /* 触摸设备：去掉 hover 专用样式，改由 :active 承担 */
        .list_ul li h3 a:hover,
        .zhuanye_ul li a:hover,
        .menu li a:hover,
        .footer_con a:hover {
            color: inherit;
            text-decoration: none;
        }

        .list_ul li h3 a:active,
        .zhuanye_ul li a:active,
        .menu li a:active {
            color: #ea1219;
            text-decoration: underline;
        }

        .footer_con a:active {
            text-decoration: underline;
        }
    }
}

/*------------------------------------------------------------------
 * 深色模式（prefers-color-scheme: dark）
 *
 * 现状：项目完全没有深色模式声明，浏览器/系统切深色时页面仍是
 * 白底，图片与文字不产生任何变化（不算 bug，但缺少适配）。
 * 以下仅在系统明确要求深色时生效，PC 端同样适用且为纯增益。
 *------------------------------------------------------------------*/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #14161a;
        color: #e6e6e6;
    }

    /* 卡片/面板类白底 → 深灰 */
    .card,
    .action,
    .action-content,
    .login_table td,
    .select_pici,
    .input_info,
    .input_info_con,
    .menu li {
        background-color: #1e2126;
        border-color: #33373d;
    }

    .menu li {
        border-bottom-color: #2c3036;
    }

    /* 表头深色保持，深色模式下加深底色 */
    .linian_table th {
        background-color: #2b3038;
    }

    .linian_table td {
        background-color: #1e2126;
        color: #d8dade;
    }

    .article_body,
    .article_div {
        background-color: transparent;
        color: #dfe1e5;
    }

    .footer_con {
        background-color: #101216;
    }

    .banner_con img,
    .banner_ul li img {
        opacity: .88;
    }
}
@media screen and (max-width: 768px) {

    body {
        -webkit-text-size-adjust: 100%;
    }

    /* 顶栏：html_top 登录条允许换行；top 高度自适应 */
    .html_top {
        height: auto;
        min-height: 30px;
    }

    .html_top_con {
        padding: 6px 0px;
        box-sizing: border-box;
    }

    .top {
        height: auto;
    }

    .top_con {
        height: auto;
        padding-bottom: 8px;
    }

    /* logo 尺寸：手机端略小 */
    #logo img {
        max-height: 48px;
        width: auto;
    }

    /* 五大优势：两列 → 单列 */
    .youshi_ul li {
        width: 100%;
    }

    .youshi_ul li img {
        position: static;
        display: block;
        margin: 12px auto 0;
    }

    /* banner 高度压缩，避免整图占满首屏 */
    .banner_ul {
        height: auto;
    }

    .banner_ul li {
        height: auto;
    }

    .big_h1 {
        margin-top: 24px;
        margin-bottom: 32px;
    }

    /* 报考筛选表单内部元素 100% */
    .baokao_div_con .s_pici,
    .pici_submit {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 侧栏「院校查询 / 专业查询」输入框与按钮：
       原样式 .left .cha_inputtext { width: 208px !important } 写死了宽度，
       父容器 .cha_yuanxiao_con 也是 230px 定宽，窄屏下只剩中间一小截，
       必须用同等 !important 覆盖为占满可用宽度。 */
    .cha_yuanxiao_con {
        width: auto;
        max-width: 100%;
        margin: 16px auto;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .left .cha_inputtext,
    .left .cha_inputsubmit,
    .cha_yuanxiao_con .cha_inputtext,
    .cha_yuanxiao_con .cha_inputsubmit {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 志愿推荐列表：198px 五列 → 两列 */
    .zhiyuan_ul li {
        width: 50%;
        box-sizing: border-box;
    }

    /* major 选专业页（blade 内嵌 style，需 !important）：五列 → 三列 */
    .major ul li {
        width: 33.33% !important;
    }

    /* 底部操作条已选列表四列 → 两列 */
    .action-selected .action-list li {
        width: 50% !important;
    }

    /* 全局图片防溢出（内容图片不受影响：height auto 等比缩放） */
    .main img,
    .right_con img,
    .article_body img {
        max-width: 100%;
        height: auto;
    }

    /* 分页按钮过大时允许换行 */
    .pages {
        word-break: break-all;
    }

    /* 联系方式/二维码等辅助区块纵排 */
    .dx_con_code {
        padding-left: 0;
        height: auto;
    }

    .dx_con_code img {
        position: static;
        margin-bottom: 10px;
    }

    .dx_con_code h1 {
        width: auto;
        padding-left: 0;
    }

    /* 数据结果/表格类区块允许横向滚动兜底（表格内容过宽时不破版） */
    .linian_div,
    .right_con {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* .right_con 原本只有 padding 没有宽度，PC 下作为 .right(782px 定宽) 的子元素
       由父级撑开；但窄屏下 .right 变为 100% 后，.right_con 会收缩到内容宽度
       （会员报告正文被压成每行一个字的竖排）。这里显式撑满父容器。 */
    .right_con {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* 结果表格（8 列）：保持可读列宽，超宽由 .linian_div 横向滑动。
       若继续用 width:auto 自适应，375px 下每列只剩 30~60px，
       学校名/专业名会被压成逐字换行，几乎无法阅读。 */
    .linian_div .linian_table {
        width: 680px;
        max-width: none;
    }

    .linian_table th,
    .linian_table td {
        white-space: nowrap;
    }

    /* 正文内超长链接（网盘地址、下载地址等）强制折行：
       单个不可断词会撑出容器被裁切，窄屏下必须 break-all */
    .article_body a,
    .article_body p,
    .article_body div {
        word-break: break-all;
        overflow-wrap: anywhere;
    }

    /* 说明文字字号 */
    .shuoming_div_text h1 {
        font-size: 24px;
    }

    .shuoming_div_text p {
        font-size: 16px;
    }

    /* 完善信息 / 资料完善表单：表格「标签+输入+提示」三列在窄屏互相挤压，
       提示文字会被压成每行一个字的竖排 —— 改为纵向堆叠 */
    .input_info_table,
    .input_info_table tbody,
    .input_info_table tr,
    .input_info_table td {
        display: block;
        width: auto !important;
    }

    .input_info_table td {
        padding: 4px 0;
    }

    .info_inputtext {
        width: 100% !important;
        box-sizing: border-box;
        height: 34px;
    }

    .info_alert {
        display: block;
        padding-left: 0;
        margin-top: 4px;
        line-height: 20px;
    }

    .input_info_con {
        padding: 16px;
    }

    /*================================================================
     * 移动端排版层（仅布局调整：顺序 / 间距 / 层级 / 触控）
     *
     * 目标：符合移动端操作习惯 ——
     *  - 首屏信息密度：压缩辅助元素（面包屑），让正文提早点进首屏
     *  - 信息层级：面包屑降为辅助级小字，标题/正文/按钮主次分明
     *  - 单手操作：主按钮全宽 44px，分页/上下篇触控目标 ≥44px
     *  - 间距节奏：区块间距统一 16px（替代 PC 端 25~55px 的大留白）
     * 不改动任何配色、字体族与视觉风格。
     *===============================================================*/

    /* ① 面包屑降级：56px → 紧凑辅助条，字号 12px（定位信息非首要内容） */
    .right_tit {
        height: auto;
        line-height: 20px;
        padding: 12px 0px;
        box-sizing: border-box;
    }

    .right_tit span {
        font-size: 12px;
    }

    /* ③ 主内容区上边距收紧：PC 端 .main 与 banner 间的大留白 → 16px */
    .main {
        margin-top: 16px;
    }

    /* ④ 双栏堆叠后的间距节奏：主内容与侧栏查询区之间 16px 呼吸 */
    .left {
        margin-top: 16px;
    }

    .right + .left,
    .left + .right {
        margin-top: 16px;
    }

    /* 侧栏查询卡片内部节奏：25px 外距 → 16px */
    .cha_yuanxiao {
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }

    .cha_yuanxiao_tit {
        line-height: 44px;   /* 查询卡片标题行本身可点区域 44px */
    }

    /* ⑤ 分页触控：原 padding 3px 10px（≈24px 高）→ 44px 热区 */
    .pages {
        padding-top: 16px;
        line-height: 44px;
    }

    .pages a,
    .pages span {
        display: inline-block;
        min-width: 44px;
        min-height: 44px;
        line-height: 42px;   /* 44 - 2px 边框 */
        padding: 0 12px;
        margin: 4px 3px;
        box-sizing: border-box;
        text-align: center;
    }

    /* 分页跳页控件：输入框/按钮同为 44px 热区；输入字号 16px 防 iOS 聚焦自动放大 */
    .page_jump_input,
    .page_jump_btn {
        min-width: 44px;
        min-height: 44px;
        padding: 0 12px;
        margin: 4px 3px;
        box-sizing: border-box;
        vertical-align: middle;
        line-height: 42px;
    }

    .page_jump_input {
        width: 88px;
        font-size: 16px;
    }

    /* 新版分页（pages_new）：信息行 + 页码组移动端适配 */
    .pages_new {
        word-break: normal;   /* 覆盖旧版 .pages 的 break-all，允许整组换行 */
    }

    .pages_new .pages_meta {
        line-height: 44px;
        word-break: normal;
    }

    .pages_new .pages_size {
        min-width: 44px;
        min-height: 44px;
        height: 44px;
        padding: 0 8px;
        box-sizing: border-box;
        font-size: 16px;   /* 防 iOS 聚焦自动放大 */
        line-height: 42px;
    }

    /* 省略号与禁用态不撑满 44px 也无妨，但保持统一高度 */
    .pages_new .pages_nav span.pages_dots {
        min-width: 24px;
        padding: 0 2px;
    }

    /* 上一篇 / 下一篇：20px → 44px 可点行 */
    .page_pn a {
        display: block;
        padding: 12px 4px;
        line-height: 20px;
    }

    /* ⑥ 主按钮统一为移动端主操作形态：全宽 + 44px + 明显下边距
       （视觉风格沿用原红底白字，仅改布局尺寸） */
    .pici_submit {
        width: 100%;
        max-width: 100%;
        margin-top: 24px;
        margin-bottom: 16px;
    }

    .login_inputsubmit {
        width: 100% !important;
        max-width: 100%;
    }

    /* ⑦ 列表节奏：文章/资料列表 18px 底距 → 16px，行距统一 */
    .list_ul li {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .list_ul {
        padding: 0px;
    }

    .ziliao_ul {
        padding: 12px;
    }

    /* ⑧ 登录页：表单优先 —— 说明文字（找回密码提示等）在表单之后，
       堆叠顺序已由 DOM 决定（表单在前），这里只收紧说明块与表单的间距 */
    .login_right {
        margin-top: 16px;
        padding-top: 16px;
    }

    /* ⑨ 会员报告/说明卡内部留白：35px 左右内边距在小屏太宽 → 16px */
    .baokao_div_con {
        padding: 16px;
    }

    .select_pici {
        padding: 12px 16px;
    }

    /* ⑩ 底部操作条（选专业页）：按钮高度提到 44px，拇指易点。
        该按钮是 Element UI 的 el-button（渲染为 button.el-button），一并覆盖 */
    .action-content .action-btn a,
    .action-content .action-btn .el-button,
    .action-content button,
    .action-content input[type=submit] {
        min-height: 44px;
        line-height: 44px;
    }

    .action-btn .el-button {
        padding-top: 0;
        padding-bottom: 0;
    }

    /* 会员中心「已选择专业」列表：4 列 → 3 列，间距同步收紧 */
    .major-ul {
        gap: 8px;
        padding: 16px 10px;
    }

    .major-ul li {
        flex: 0 0 calc(33.333% - 5.34px);
    }
}

/*------------------------------------------------------------------
 * 断点四：≤480px —— 小屏手机微调
 *------------------------------------------------------------------*/
@media screen and (max-width: 480px) {

    /* 容器留边收紧 */
    .html_top_con,
    .top_con,
    .main,
    .footer_con,
    .login_main,
    .dx_div_con {
        margin-left: 8px;
        margin-right: 8px;
    }

    /* major 选专业页：三列 → 两列 */
    .major ul li {
        width: 50% !important;
    }

    /* 会员中心「已选择专业」列表：3 列 → 2 列，小屏收紧内边距与字号 */
    .major-ul {
        gap: 6px 8px;
        padding: 12px 8px;
    }

    .major-ul li {
        flex: 0 0 calc(50% - 4px);
        font-size: 13px;
    }

    /* 志愿列表：两列 → 单列 */
    .zhiyuan_ul li {
        width: 100%;
    }

    /* 登录表单输入框全宽 */
    .login_inputtext,
    .login_inputsubmit,
    .info_inputtext {
        width: 100% !important;
        box-sizing: border-box;
    }

    .login_table {
        max-width: 100%;
    }

    .login_table td {
        display: block;
        width: auto !important;
    }

    /* 表格字号 */
    .linian_table th {
        font-size: 14px;
    }

    .linian_table td {
        font-size: 13px;
    }

    /* 底部操作条：纵向堆叠 */
    .action-content {
        flex-wrap: wrap;
    }

    .action-selected .action-count {
        width: auto !important;
    }

    /* 标题字号 */
    .big_h1 {
        font-size: 22px;
        width: auto;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .linian_tit {
        width: auto;
        font-size: 22px;
        padding: 0 16px;
    }

    /* 页脚版权区由后台富文本输出，可能含内联固定宽度（如备案信息 width:300px），
       窄屏下用 max-width 兜底，避免被裁切 */
    .footer_con div,
    .footer_con li {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/*------------------------------------------------------------------
 * 回到顶部按钮 · 移动端触屏适配
 * 基础样式（PC）见 index.css 末尾 .back-top 段落；
 * 这里只做触屏/小屏的位置与尺寸调整，>768px 不生效。
 *------------------------------------------------------------------*/
@media screen and (max-width: 768px) {

    .back-top {
        /* 紧贴屏幕右下角，拇指可达；避开 iOS 底部安全区（全面屏小横条） */
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        /* 触控目标 48px，满足移动端 ≥44px 的最小可点尺寸 */
        width: 48px;
        height: 48px;
        /* 去掉 hover 语义（触屏无悬停），半透明弱化遮挡感 */
        opacity: .92;
        border-radius: 6px;
        -webkit-tap-highlight-color: transparent;
        /* 消除触屏双击缩放延迟 */
        touch-action: manipulation;
    }

    .back-top.is-show {
        opacity: .92;
    }

    .back-top_txt {
        font-size: 13px;
    }
}

@media screen and (max-width: 480px) {

    /* 小屏右下角常被底部操作条/版权区占据，上移错开 */
    .back-top {
        right: 10px;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    }
}
