/* 春雨助学官网补充样式
   1) 桌面端不改变旧站版式；
   2) 移动端做可用性适配；
   3) 新增分页与移动导航组件。 */

/* ---------- 首页高度：旧站 #app 位于 form 内，高度为内容高度 ---------- */
#app { height: auto; }
#app > .public_wrap,
.public_wrap { height: auto; overflow: visible; }

/* ---------- 分页 ---------- */
.cy-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 12px;
    font-family: "Microsoft Yahei", PingFang SC, Arial, sans-serif;
}
.cy-pager__total { color: #666; margin-right: 4px; }
.cy-pager__link {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    line-height: 26px;
    padding: 0 7px;
    text-align: center;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #fff;
    box-sizing: border-box;
}
.cy-pager__link:hover { color: #fff; background: #cb121a; border-color: #cb121a; }
.cy-pager__link.is-current { color: #fff; background: #cb121a; border-color: #cb121a; }
.cy-pager__link.is-disabled { color: #bbb; background: #f7f7f7; }
.cy-pager__gap { color: #999; padding: 0 2px; }

/* ---------- 移动导航（桌面隐藏） ---------- */
.cy-menu-toggle { display: none; }
.cy-mobile-nav { display: none; }

/* ---------- 移动端适配 ---------- */
@media only screen and (max-width: 1229px) {
    html, body, #app { min-width: 0; width: 100%; height: auto; overflow-x: hidden; }
    body { min-width: 0; }

    .b-header { height: auto; }
    .b-header .b-content { width: 100%; padding: 8px 16px; box-sizing: border-box; }
    .b-header .b-content-left { width: 100%; justify-content: space-between; }
    .b-header .b-content-left img { width: 200px; height: auto; }
    .b-header .b-content-left .b-content-middle { display: none; }
    .b-header .b-content-left .cy-logo { display: flex; align-items: center; }

    .cy-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0 9px;
        border: 1px solid #e5e5e5;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
    }
    .cy-menu-toggle span { display: block; width: 100%; height: 2px; background: #cb121a; }
    .cy-mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid #eee; }
    .cy-mobile-nav.is-open { display: flex; }
    .cy-mobile-nav a { padding: 13px 20px; border-bottom: 1px solid #f0f0f0; color: #222; font-size: 15px; }
    .cy-mobile-nav a.is-active { color: #cb121a; font-weight: 600; }

    .home_wrap, .public_wrap, .section, .container, .ct2, .ct2-mn { width: 100% !important; max-width: 100%; box-sizing: border-box; }
    .home_item_cont, .information_disclosure_top .cont, .information_disclosure_cont, .information_disclosure_main { width: 100% !important; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
    .home_item { padding: 26px 0; }

    .banner_top, .el-carousel, .el-carousel__container { width: 100% !important; height: 200px !important; }
    .banner_top img, .el-carousel__item img { width: 100%; height: 100%; display: block; object-fit: cover; }

    .home_item_title { flex-wrap: wrap; gap: 8px; }
    .home_item_title h3 { font-size: 22px; }

    .party_building_main, .announcement_main, .foundation_profile_main { display: flex !important; flex-direction: column; gap: 18px; }
    .party_building_left, .party_building_right, .announcement_main_l, .announcement_main_r, .foundation_profile_left, .foundation_profile_right { width: 100% !important; }
    .foundation_profile_left { height: auto !important; }
    .foundation_profile_left p { width: 100% !important; height: auto !important; }
    .foundation_profile_right { height: auto !important; }
    .party_building_left img, .announcement_main_l img { width: 100% !important; height: auto; }
    .announcement_main .line { display: none; }

    .cooperative_agency { height: auto !important; padding-bottom: 40px !important; background-size: cover !important; }
    .cooperative_agency_main { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cooperative_agency_i, .cooperative_agency_i img { width: 100% !important; height: auto; }

    .information_disclosure_top { padding: 26px 0 12px; height: auto !important; }
    .information_disclosure_top .cont { height: auto !important; min-height: 0 !important; padding: 16px !important; }
    .information_disclosure_top .cont h3 { font-size: 22px; }
    .new_trends_item { display: flex; flex-direction: column; gap: 12px; }
    .new_trends_item > img { width: 100% !important; height: auto; object-fit: cover; }
    .new_trends_item_r { width: 100%; }
    .new_trends_item_r_t { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
    .new_trends_item_r_t h3 { width: 100% !important; font-size: 16px; line-height: 1.55; }
    .new_trends_item_r_t span { width: auto !important; font-size: 13px; }
    .new_trends_item_r_b, .new_trends_item_r > a { display: none !important; }
    .new_trends_item { margin-bottom: 26px !important; }

    .content-title h1 { font-size: 21px; line-height: 1.5; }
    .content-body, .in-about { width: 100% !important; overflow-x: auto; }
    .content-body img, .in-about img { max-width: 100% !important; width: auto !important; height: auto !important; }
    .in-about table, .content-body table { width: 100% !important; max-width: 100%; }
    .in-about table, .in-about tbody, .in-about tr, .in-about td { display: block !important; width: 100% !important; }
    .in-about td { padding: 4px 0 !important; }

    .footer_cont { width: 100% !important; padding: 24px 16px; box-sizing: border-box; height: auto !important; }
    .footer_wrap { height: auto !important; padding-bottom: 24px; }
    .footer_cont_top { display: flex; flex-direction: column; gap: 22px; }
    .footer_cont_l, .footer_cont_m, .footer_cont_r { width: 100% !important; }
    .footer_cont_r_img img { margin-left: 0 !important; }
    .footer_cont_bottom { text-align: center; }

    .banner-sub { height: 180px; background-size: cover; background-position: center; }
    .sub-tit { font-size: 22px; }
}
