/* ============================================
 * 公司相关页面 - 平板/移动端适配样式
 * 适用于: contact / copyright / event / honor / introduce / job
 * 断点:
 *   max-width: 1024px - 平板(横/竖),开始收紧布局
 *   max-width: 768px  - 手机,改为顶部水平菜单
 * ============================================ */

/* ============= 平板适配 (max-width: 1024px) ============= */
@media (max-width: 1024px) {

    /* ====== 全局基础 ====== */
    .pagebj {
        background-size: cover !important;
    }
    .pagetop {
        flex-direction: column;
    }

    /* 覆盖 pages.css 在 1024px 处隐藏导航的规则,改为左右布局保留 */
    .pageleft {
        display: block !important;
        width: 100%;
        margin-bottom: 16px;
    }
    .pageleft > div:first-child {
        height: 0 !important;
    }
    .pageleftmenus {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        background: rgba(2, 106, 241, 0.25);
        border-radius: 6px;
        padding: 6px 0;
    }
    .pageleftmenus li {
        flex: 0 0 auto;
    }

    /* ====== 通用文本段落 ====== */
    .pageabout {
        font-size: 18px !important;
        line-height: 30px !important;
    }
    .pageabout p {
        margin: 6px 0;
    }
    .title-p {
        font-size: 18px !important;
        margin-top: 14px !important;
    }
    .qwyoushi {
        margin: 18px 0 10px !important;
        padding-left: 18px !important;
        height: 34px !important;
        line-height: 34px;
        font-size: 18px !important;
    }

    /* ====== 联系我们页 ====== */
    .pageaboutty {
        flex-wrap: wrap;
    }
    .pageabouttyitem {
        margin-right: 16px !important;
        margin-bottom: 12px;
    }

    /* ====== 知识产权 / 荣誉证书 swiper ====== */
    .rongyu {
        width: 100% !important;
        max-width: 1016px;
        height: 460px !important;
        background-size: 100% 100% !important;
        margin: 0 auto;
    }
    .rongyu > .swiper-container {
        width: 96% !important;
        height: 380px !important;
    }
    .rongyufoot {
        width: 100% !important;
        position: relative !important;
    }
    .rongyufoot1 img,
    .rongyufoot2 img,
    .rongyufoot3 img {
        width: 80%;
    }
    .swiper-slide img {
        /* max-height: 320px; */
        /* width: auto; */
        object-fit: unset !important;
    }

    /* ====== 大事记 ====== */
    .dshjlistrightext,
    .dshjlistrightexts {
        font-size: 13px !important;
        line-height: 22px !important;
    }
    .dshjlistrightime {
        font-size: 20px !important;
    }

    /* ====== 公司介绍 ====== */
    #allmap {
        height: 320px !important;
    }

    /* ====== 招聘信息 ====== */
    .aboutzpl {
        width: 100% !important;
        margin-bottom: 12px !important;
    }
    .aboutzplsk {
        display: block !important;
    }
    .aboutzpitem {
        font-size: 16px !important;
        line-height: 28px !important;
    }
}

/* ============= 手机适配 (max-width: 768px) ============= */
@media (max-width: 768px) {

    /* ====== 全局基础 ====== */
    body {
        background: #0a1638 !important;
    }
    .pagebj {
        background: none !important;
        padding-bottom: 10px;
    }
    .pagewidth {
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    .pagetop {
        padding-top: 0 !important;
        flex-direction: column;
    }

    /* ====== 左侧导航改为顶部两行菜单 ====== */
    .pageleft {
        display: block !important;
        width: 100%;
        margin-bottom: 12px;
        position: sticky;
        top: 0;
        z-index: 99;
        background: #0a1638;
        padding-top: 8px;
    }
    .pageleft > div:first-child {
        height: 0 !important;
    }
    .pageleftmenus {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-start;
        background: rgba(2, 106, 241, 0.25);
        border-radius: 6px;
        padding: 4px;
    }
    .pageleftmenus li {
        flex: 0 0 auto;
        height: 34px !important;
        padding: 0 10px !important;
        border-radius: 4px;
        margin: 3px 2px;
        border-bottom: none !important;
    }
    .pageleftmenus li img {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }
    .pageleftmenus li a {
        font-size: 13px !important;
        margin-left: 0 !important;
        white-space: nowrap;
    }
    .pageleftmenus li.active,
    .pageleftmenus li:hover {
        background: rgba(0, 132, 255, 0.50);
        border-bottom: none !important;
    }

    /* ====== 右侧内容区 ====== */
    .pageright {
        width: 100%;
    }
    .pagerighttop {
        display: none !important;
    }
    .pagerightconten {
        padding: 16px 14px !important;
        background: rgba(5, 15, 65, 0.70) !important;
        min-height: auto !important;
    }
    .contentop {
        margin-bottom: 8px;
    }
    .contentoptitle {
        font-size: 20px !important;
    }
    .contentoptitle span {
        width: 6px !important;
        height: 20px !important;
        margin-right: 10px !important;
    }

    /* ====== 通用文本段落 ====== */
    .pageabout {
        font-size: 14px !important;
        line-height: 24px !important;
    }
    .title-p {
        font-size: 16px !important;
        margin-top: 10px !important;
    }
    .qwyoushi {
        margin: 12px 0 6px !important;
        padding-left: 12px !important;
        height: 26px !important;
        line-height: 26px;
        font-size: 14px !important;
    }

    /* ====== 联系我们页 ====== */
    .pageaboutty {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 4px;
    }
    .pageabouttyitem {
        width: 31%;
        margin-right: 0 !important;
        margin-bottom: 10px;
        font-size: 12px;
        text-align: center;
    }
    .pageabouttyitemimg {
        margin-bottom: 6px !important;
    }
    .pageabouttyitemimg img {
        width: 100%;
        max-width: 100px;
    }
    .contact-info {
        font-size: 14px;
        line-height: 26px;
    }
    .contact-info-item {
        margin-bottom: 4px;
        color: #fff;
    }

    /* ====== 知识产权 / 荣誉证书 swiper ====== */
    .rongyu {
        width: 100% !important;
        height: 320px !important;
        background-size: 100% 100% !important;
    }
    .rongyu > .swiper-container {
        width: 96% !important;
        height: 260px !important;
    }
    .rongyufoot {
        width: 100% !important;
        position: relative !important;
    }
    .rongyufoot1 {
        bottom: 30px !important;
        left: 10px !important;
        width: 50px !important;
    }
    .rongyufoot1 img,
    .rongyufoot3 img {
        width: 100%;
    }
    .rongyufoot2 {
        bottom: 0 !important;
        left: 30% !important;
        width: 40% !important;
    }
    .rongyufoot2 img {
        width: 100%;
    }
    .rongyufoot3 {
        bottom: 30px !important;
        right: 10px !important;
        width: 50px !important;
    }
    .swiper-slide {
        transform: scale(1) !important;
        flex-shrink:unset !important;
    }
    .swiper-slide img {
        /* max-height: 220px; */
        width: auto !important;
        object-fit: unset !important;
    }
    /* swiper 左右按钮: 移动端显示并缩小,方便点击切换 */
    .rongyu .swiper-button-prev,
    .rongyu .swiper-button-next {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        top: 50% !important;
        transform: translateY(-50%);
    }
    .rongyu .swiper-button-prev {
        left: 6px !important;
    }
    .rongyu .swiper-button-next {
        right: 6px !important;
    }
    .rongyu .swiper-button-prev img,
    .rongyu .swiper-button-next img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }
    /* 防止按钮阻挡slide点击 */
    .rongyu .swiper-button-prev::after,
    .rongyu .swiper-button-next::after {
        display: none !important;
    }

    /* ====== 大事记 ====== */
    .dshj {
        padding: 0 4px;
    }
    .dshjlist {
        flex-direction: column !important;
        margin-top: 16px !important;
        position: relative;
    }
    .dshjlistleftbox {
        padding-right: 0 !important;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
    }
    .dshjlistleftbox > div:first-child {
        width: 32px;
        flex: 0 0 32px;
    }
    .dshjlistleftbox > div:first-child img {
        width: 22px;
        height: 22px;
    }
    .dshjlistlefts {
        display: none !important;
    }
    .dshjlistright {
        padding-left: 0 !important;
        width: 100%;
    }
    .dshjlistrightime {
        font-size: 18px !important;
        margin-bottom: 6px !important;
        color: #0084FF;
    }
    .dshjlistrightext,
    .dshjlistrightexts {
        font-size: 13px !important;
        line-height: 22px !important;
        margin-bottom: 8px;
        color: #fff;
    }

    /* ====== 公司介绍 ====== */
    #allmap {
        height: 220px !important;
        margin-top: 14px !important;
    }

    /* ====== 招聘信息 ====== */
    /* banner图: 移动端宽度自适应容器,完整显示 */
    .pagerightconten > div:first-child > img {
        width: 100%;
        height: auto;
        display: block;
        max-width: 100%;
    }
    .aboutzp {
        height: auto !important;
        padding: 14px 10px !important;
        flex-direction: column;
        position: relative;
    }
    .zixunybleft,
    .zixunybright {
        display: none !important;
    }
    .aboutzp > div:nth-child(2) {
        display: none; /* 隐藏左侧装饰图 */
    }
    .aboutzpitem {
        font-size: 13px !important;
        line-height: 24px !important;
        padding-left: 0 !important;
        margin-bottom: 6px;
        text-align: center;
    }
    .aboutzp > .aboutzpitem {
        padding-left: 0 !important;
    }
    .aboutzpitem:last-child {
        margin-bottom: 0;
    }
    .aboutzplsk {
        margin-top: 16px !important;
    }
    .aboutzpl {
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto !important;
        padding: 14px !important;
        box-sizing: border-box !important;
        background: rgba(0, 132, 255, 0.10);
        border-radius: 6px;
        margin-bottom: 12px !important;
    }
    .aboutzpl .contentoptitle {
        font-size: 18px !important;
    }
    .aboutzpl .qwyoushi {
        font-size: 13px !important;
        height: 24px !important;
        line-height: 24px;
    }
    .aboutzpl .pageabout {
        font-size: 13px !important;
        line-height: 22px !important;
    }
}

/* ====== 超小屏 (宽度 <= 375px) 微调 ====== */
@media (max-width: 375px) {
    .pageleftmenus li {
        padding: 0 6px !important;
        margin: 2px;
    }
    .pageleftmenus li a {
        font-size: 12px !important;
    }
    .pageleftmenus li img {
        width: 14px;
        height: 14px;
    }
    .pageabouttyitem {
        font-size: 11px;
    }
    .contentoptitle {
        font-size: 18px !important;
    }
}