/* 与 base.css 配合：PC 不变，≤768px 自适应（Main 子页共用） */
.mobile_menu_btn {
    display: none;
}

@media (max-width: 768px) {
    .wrap,
    .wrap_head,
    .wrap_footer,
    .home-footer,
    .index_case,
    .attract_calc {
        min-width: 0 !important;
    }

    .wrap_head {
        background: #fff;
    }

    .header_seat {
        padding-bottom: 72px;
    }

    .head_inner {
        width: 100% !important;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        height: 72px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        overflow: visible;
    }

    .head_logo {
        width: 186px;
        height: 36px;
        left: 0;
        position: relative;
        top: auto;
        transform: none;
    }

    .head_logo > h1 {
        width: 186px;
        height: 36px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: left center;
    }

    .mobile_menu_btn {
        display: inline-flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        background: #dc7a00;
        border: none;
        border-radius: 0;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
    }

    .mobile_menu_btn span {
        width: 18px;
        height: 2px;
        background: #fff;
        transition: all 0.2s linear;
    }

    .mobile_menu_btn.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile_menu_btn.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile_menu_btn.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .head_menu {
        position: absolute;
        left: 0;
        right: 0;
        top: 72px;
        height: auto;
        display: none !important;
        padding: 8px 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        z-index: 30;
    }

    .head_menu.mobile-open {
        display: block !important;
    }

    .head_menu .menu_item {
        float: none;
        margin-left: 0;
        height: auto;
        display: block;
    }

    .head_menu .menu_item .menu_item_txt {
        height: 42px;
        line-height: 42px;
        font-size: 14px;
        padding: 0 16px;
    }

    .head_menu .menu_item .menu_item_txt::after {
        display: none;
    }

    .content_item,
    .content_item_banner {
        width: 100% !important;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .content_item {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .home-footer .content_item {
        flex-direction: column;
        gap: 18px;
        padding: 26px 16px;
    }

    .home-footer .index_join,
    .home-footer .index_about {
        width: 100%;
        flex: none;
    }

    .footer-phone {
        display: block;
        white-space: normal;
        word-break: break-all;
    }

    .footer-phone a {
        color: inherit;
        text-decoration: none;
    }

    /* 与首页 PC 端 nowrap 一致，小屏允许换行避免溢出 */
    .home-footer .index_about ul li:not(.footer-phone) {
        white-space: normal !important;
        word-break: break-all;
    }

    .home-footer-qrs {
        margin: 8px 0 0;
        gap: 16px;
    }

    .home-footer-qr-item img {
        width: 72px;
        height: 72px;
    }

    .home-footer-record {
        height: auto;
        min-height: 45px;
        padding: 12px 16px;
    }

    .home-footer-record .wrap_copyright {
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .red-form-container {
        padding: 16px 0;
    }

    .red-form-content {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
        align-items: stretch;
    }

    .red-form-character {
        display: none;
    }

    .red-form-inputs {
        margin: 0 !important;
        width: 100%;
        gap: 10px;
    }

    .red-form-input {
        width: calc(50% - 5px) !important;
    }

    .red-form-button {
        width: 100%;
    }

    .red-form-btn {
        width: 100%;
        padding: 10px 16px;
    }

    /* product */
    .content_ad .content_product {
        padding: 0 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product_content {
        width: 100% !important;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    /* 产品 Tab：移动端 3 列网格，多行排列，不横向滚动 */
    .product_left {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        flex-wrap: unset;
        overflow-x: visible;
        overflow: visible;
        box-sizing: border-box;
    }

    .product_left li {
        float: none;
        width: auto;
        min-width: 0;
        flex: unset;
        margin: 0;
        padding: 10px 6px;
        white-space: normal;
        font-size: 12px;
        line-height: 1.35;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .product_right {
        width: 100% !important;
        max-width: 100%;
        padding: 12px 0 !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .product_right .fl,
    .product_right .fr {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .product_scroll_ui {
        display: none;
    }

    .product_title_text {
        margin: 20px 0;
    }

    .product_title_text h2 {
        font-size: 22px;
    }

    .product_right p {
        font-size: 15px;
        line-height: 26px;
    }

    /* honor */
    .honor_skill_item {
        width: calc(50% - 8px) !important;
        margin-right: 8px !important;
        margin-bottom: 12px;
    }

    ul > .honor_skill_item:nth-child(7n) {
        margin-right: 8px;
    }

    ul > .honor_skill_item:nth-child(2n) {
        margin-right: 0 !important;
    }

    .cooperation_right,
    .cooperation_left_item {
        width: 100% !important;
        max-width: 100%;
    }

    .cooperation_left_item {
        position: relative;
    }

    .cooperation_left_item_img {
        width: 100% !important;
        max-width: 282px;
        height: auto !important;
        margin: 0 auto 16px;
    }

    /* attract */
    .attract_calc {
        height: auto !important;
        min-height: 0;
        padding: 24px 16px;
        margin: 40px 0;
        background-size: cover;
    }

    .calc_form {
        width: 100% !important;
        max-width: 100%;
        position: relative !important;
        right: auto !important;
        transform: none !important;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .attract_business > li {
        width: 100% !important;
        display: block;
    }

    .attract_revenue > li {
        width: calc(50% - 8px);
        margin-right: 8px;
    }

    .attract_revenue > li:nth-child(4n) {
        margin-right: 8px;
    }

    .attract_revenue > li:nth-child(2n) {
        margin-right: 0;
    }

    .attract_advantage > li {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 16px;
    }

    .attract_support {
        width: 100% !important;
    }

    .attract_business_center > div {
        width: 100%;
        max-width: 230px;
        margin: 20px auto;
    }

    .educational-exchange-item {
        width: 100% !important;
    }

    .educational-exchange-container {
        margin: 20px 0;
    }

    .agent-testimonial-chinese,
    .educational-exchange-chinese {
        font-size: 24px;
        line-height: 1.3;
    }

    .agent-testimonial-english,
    .educational-exchange-english {
        font-size: 14px;
    }

    #baner_swiper .swiper-slide {
        height: 220px;
        transform: scale(0.98);
    }

    .attract_img {
        max-width: 100%;
        height: auto;
    }

    /* join */
    .join_item {
        width: 100% !important;
        float: none !important;
        display: block;
        box-sizing: border-box;
    }

    .join_item:nth-child(2) {
        margin-top: 0 !important;
    }

    .title_img {
        height: auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
}
