/* 首页手机端适配 */
@media (max-width: 768px) {
    html, body { min-width: 0 !important; overflow-x: hidden !important; }

    /* 头部：logo左 搜索右 一行 */
    .scy-main, .moe-page-set { width: 100% !important; box-sizing: border-box !important; padding: 0 10px !important; }
    .scy-tou { width: 100% !important; box-sizing: border-box !important; padding: 0 !important; }
    .scy-tou { display: flex !important; align-items: center !important; justify-content: space-between !important; height: 60px !important; }
    .scy-logo { width: 260px !important; height: auto !important; float: none !important; margin: 0 !important; flex-shrink: 0 !important; }
    .scy-js { overflow: visible !important; position: relative !important; flex-shrink: 0 !important; }
    .scy-js { display: none !important; }
    .scy-js-sou { display: none !important; position: absolute !important; right: 0 !important; top: 50% !important; transform: translateY(-50%) !important; width: 40px !important; margin: 0 !important; transition: width 0.3s ease !important; z-index: 100 !important; }
    .scy-js-sou.search-open { display: block !important; width: 250px !important; }
    .scy-js-sou input { width: 100% !important; box-sizing: border-box !important; }
    /* 搜索图标按钮 */
    .search-toggle { display: flex !important; width: 32px !important; height: 32px !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; }
    .search-toggle img { width: 22px !important; height: 22px !important; }


    /* 轮播banner：按1200/420比例 */
    .index-banner { width: 100% !important; height: 0 !important; padding-bottom: 35% !important; margin-top: 0 !important; position: relative !important; overflow: hidden !important; }
    .index-banner .layui-carousel { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; }
    .index-banner img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

    /* 通知栏 */
    .index-notice { width: 100% !important; box-sizing: border-box !important; padding: 8px 10px !important; margin-top: 10px !important; height: auto !important; }
    .index-notice p { width: auto !important; flex: 1 !important; margin-left: 10px !important; margin-right: 10px !important; font-size: 13px !important; }
    .index-notice-name { width: auto !important; padding: 0 8px !important; font-size: 13px !important; white-space: nowrap !important; }
    .index-notice .index-arrow { display: none !important; }

    /* 新闻区域3列改1列 */
    .index-news-box { width: 100% !important; padding: 0 10px !important; box-sizing: border-box !important; margin-top: 10px !important; }
    .index-news-box > ul { flex-direction: column !important; gap: 10px !important; }
    .index-news-box ul .index-news-list { width: 100% !important; }
    .index-news-title { width: 100% !important; box-sizing: border-box !important; height: 50px !important; }
    .index-news-title h1 { font-size: 20px !important; line-height: 50px !important; }
    .index-news-title span { line-height: 50px !important; }
    .index-news-list > ul { width: 100% !important; padding: 0 10px !important; box-sizing: border-box !important; }

    /* 图文新闻 */
    .index-pic-news { width: 100% !important; }
    .index-pic-news a { display: flex !important; gap: 10px !important; width: 100% !important; }
    .index-pic-news .index-left { width: 90px !important; height: 65px !important; flex-shrink: 0 !important; float: none !important; }
    .index-pic-news .index-left img { width: 90px !important; height: 65px !important; }
    .index-pic-news .index-right { width: auto !important; flex: 1 !important; float: none !important; min-width: 0 !important; }
    .index-pic-news .index-right h1 { font-size: 14px !important; margin-top: 0 !important; }
    .index-pic-news .index-right p { font-size: 12px !important; width: 100% !important; }
    .index-txt-news { width: 100% !important; }

    /* 中间广告位：按1200/100比例 */
    .index-s-banner { width: 100% !important; margin-top: 10px !important; padding: 0 10px !important; box-sizing: border-box !important; position: relative !important; overflow: hidden !important; }
    .index-s-banner img { width: 100% !important; height: 100% !important; object-fit: cover !important; object-position: center center !important; }

    /* 快捷入口 */
    .index-yw-list { width: 100% !important; }
    .act-list li { width: 100% !important; height: auto !important; box-sizing: border-box !important; }
    .act-list li p { width: auto !important; flex: 1 !important; font-size: 14px !important; line-height: 50px !important; }
    .act-list img { margin-top: 10px !important; }

    /* 业务建设：一行两个 */
    #index-yw-list { width: 100% !important; }
    #index-yw-list li { width: calc(50% - 8px) !important; height: auto !important; padding: 15px 0 !important; box-sizing: border-box !important; }
    #index-yw-list li h1 { font-size: 18px !important; line-height: 1.6 !important; }
    #index-yw-list li span { font-size: 14px !important; line-height: 1.4 !important; }
    #index-yw-list li img { width: 28px !important; margin-right: 5px !important; }

    /* 底部专题3列改1列 */
    .topic-box { width: 100% !important; padding: 0 10px !important; box-sizing: border-box !important; margin-top: 10px !important; }
    .topic-box ul { width: 100% !important; flex-direction: column !important; gap: 10px !important; }
    .topic-box ul li { width: 100% !important; }
    .topic-box ul li .cover-img { width: 100% !important; height: auto !important; }
    .topic-box ul li div { height: auto !important; display: flex !important; align-items: center !important; }
    .topic-box ul li div p { line-height: 50px !important; }
    .topic-box ul li div img { margin-top: 0 !important; }

    /* 底部 */
    .footer { width: 100% !important; box-sizing: border-box !important; padding: 15px 10px !important; margin-top: 10px !important; }
    .footer .link-title { width: 100% !important; padding-left: 0 !important; }
    .footer .link p { width: 100% !important; display: flex !important; flex-wrap: wrap !important; gap: 5px !important; padding-left: 0 !important; }
    .footer .link p a { font-size: 13px !important; }
    .footer .about-us { width: 100% !important; height: auto !important; }
    .footer .about-us ul { width: 100% !important; display: flex !important; flex-direction: column !important; height: auto !important; }
    .footer .about-us ul li { width: 100% !important; float: none !important; padding: 10px 15px !important; height: auto !important; box-sizing: border-box !important; margin-top: 0 !important; border-top: 1px solid rgba(255,255,255,0.15) !important; }
    .footer .qrcode { display: flex !important; align-items: center !important; justify-content: center !important; }
    .footer .qrcode img { top: 0 !important; }
    .copyright { width: 100% !important; box-sizing: border-box !important; padding: 0 10px !important; }
    .copyright span { margin: 0 !important; line-height: 1.6 !important; }
}

/* 手机端独立菜单 */
.m-nav-toggle, .m-nav, .m-nav-mask { display: none; }
@media (max-width: 768px) {
    /* 隐藏PC导航 */
    .scy-nav { display: none !important; }
    /* 汉堡按钮 */
    .m-nav-toggle { display: flex !important; position: fixed; top: 12px; right: 10px; z-index: 10000; width: 36px; height: 36px; background: #2663ce; border: none; border-radius: 4px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; touch-action: none; }
    .m-nav-toggle span { display: block; width: 20px; height: 2px; background: #fff; }
    /* 遮罩 */
    .m-nav-mask { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 9998; }
    .m-nav-mask.open { display: block; }
    /* 侧滑菜单 */
    .m-nav { display: block; position: fixed; top: 0; right: -270px; width: 260px; height: 100vh; background: #2663ce; z-index: 9999; overflow-y: auto; transition: right 0.3s; padding: 50px 0 20px; box-sizing: border-box; }
    .m-nav.open { right: 0; }
    .m-nav > ul { list-style: none; margin: 0; padding: 0; }
    .m-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,0.1); }
    .m-nav-item { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; line-height: 44px; color: #fff; font-size: 15px; cursor: pointer; text-decoration: none; }
    a.m-nav-item { display: block; }
    .m-nav-arrow { font-size: 12px; transition: transform 0.2s; }
    .m-nav-arrow.open { transform: rotate(180deg); }
    .m-nav-sub { display: none; list-style: none; margin: 0; padding: 0; background: rgba(0,0,0,0.15); }
    .m-nav-sub li a { display: block; padding: 0 35px; line-height: 38px; color: rgba(255,255,255,0.85); font-size: 14px; text-decoration: none; }
    .m-nav-sub li a:hover { background: rgba(255,255,255,0.1); }
}
