/* ============================================
 * 公司相关页面 - 平板/移动端适配
 * 适用于: contact / copyright / event / honor / introduce / job
 * 依赖: top.css + cuohe-mobile.css（公共顶栏/布局）
 * 断点:
 *   max-width: 1024px - 平板
 *   max-width: 768px  - 手机
 *   max-width: 480px / 375px - 小屏
 * ============================================ */

/* ============= 平板/移动共用 (max-width: 1024px) ============= */
@media (max-width: 1024px) {

    /* 公司页侧栏 chips：与顶栏同色，避免露缝 */
    .pageleft {
        background: #15234a !important;
    }
    .pageleftmenus {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start;
        background: rgba(2, 106, 241, 0.25);
        border-radius: 8px;
        padding: 4px;
        gap: 4px;
        list-style: none;
        margin: 0;
    }
    .pageleftmenus li {
        flex: 0 0 auto !important;
        height: 36px !important;
        padding: 0 10px !important;
        border-radius: 6px;
        margin: 0 !important;
        border-bottom: none !important;
        display: flex !important;
        align-items: center;
    }
    .pageleftmenus li img {
        width: 14px;
        height: 14px;
        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.5);
        border-bottom: none !important;
    }

    /* 通用文本 */
    .pageabout {
        font-size: 15px !important;
        line-height: 1.7 !important;
        text-indent: 0 !important;
    }
    .pageabout p {
        margin: 6px 0;
        text-indent: 0 !important;
    }
    .title-p {
        font-size: 16px !important;
        margin-top: 14px !important;
        font-weight: 600;
    }
    .qwyoushi {
        margin: 16px 0 8px !important;
        padding-left: 14px !important;
        height: 30px !important;
        line-height: 30px;
        font-size: 15px !important;
    }

    /* 联系我们 */
    .pageaboutty {
        flex-wrap: wrap;
        gap: 10px;
    }
    .pageabouttyitem {
        margin-right: 0 !important;
        margin-bottom: 8px;
    }

    /* 知识产权 / 荣誉证书 swiper */
    .rongyu {
        width: 100% !important;
        max-width: 100%;
        height: 420px !important;
        background-size: 100% 100% !important;
        margin: 0 auto;
        box-sizing: border-box;
        overflow: hidden;
    }
    .rongyu > .swiper-container {
        width: 94% !important;
        height: 340px !important;
        margin: 20px auto 0 !important;
        overflow: hidden;
    }
    .rongyu .swiper-wrapper {
        align-items: center;
    }
    .rongyu .swiper-slide {
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box;
        /* 不要改 flex-shrink，否则 Swiper 宽度计算失效，图片会挤成竖条 */
    }
    .rongyu .swiper-slide img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        max-height: 320px !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 0 auto;
    }
    .rongyufoot {
        width: 100% !important;
        position: relative !important;
    }
    .rongyufoot1 img,
    .rongyufoot2 img,
    .rongyufoot3 img {
        width: 80%;
    }

    /* 大事记 */
    .dshjlistrightext,
    .dshjlistrightexts {
        font-size: 13px !important;
        line-height: 22px !important;
    }
    .dshjlistrightime {
        font-size: 18px !important;
    }

    /* 地图 */
    #allmap {
        height: 300px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* 招聘 */
    .aboutzpl {
        width: 100% !important;
        margin-bottom: 12px !important;
        box-sizing: border-box;
    }
    .aboutzplsk {
        display: block !important;
    }
    .aboutzpitem {
        font-size: 15px !important;
        line-height: 26px !important;
    }

    /* 悬浮客服 / 吐槽 / 回到顶部：保持显示（勿强制 display，否则关闭按钮 hide 无效） */
    .pagekefu,
    .pagekefu2 {
        position: fixed !important;
        right: 8px !important;
        z-index: 1000 !important;
    }
    .pagekefu.kefu-hidden,
    .pagekefu2.kefu-hidden {
        display: none !important;
    }
    .pagekefu {
        top: 35% !important;
    }
    .pagekefu2 {
        top: 58% !important;
    }
    .pagekefu > div > img,
    .pagekefu2 > div > img {
        width: 40px !important;
        height: 40px !important;
    }
    .pagekefujs {
        width: 56px !important;
        height: 22px !important;
        line-height: 22px !important;
        font-size: 11px !important;
    }
    .backTop {
        display: block !important;
        position: fixed !important;
        right: 12px !important;
        bottom: 120px !important;
        z-index: 1000 !important;
        width: 36px !important;
        height: 36px !important;
        pointer-events: auto !important;
    }
}

/* ============= 手机适配 (max-width: 768px) ============= */
@media (max-width: 768px) {

    body {
        background: #15234a !important;
    }
    .pagebj {
        background: none !important;
        padding-bottom: 0 !important;
    }
    .pagerightconten {
        padding: 14px 12px !important;
        min-height: auto !important;
        box-sizing: border-box;
    }
    .contentoptitle {
        font-size: 18px !important;
    }
    .contentoptitle span {
        width: 5px !important;
        height: 18px !important;
        margin-right: 8px !important;
    }

    .pageabout {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    .title-p {
        font-size: 15px !important;
        margin-top: 12px !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: 8px;
    }
    .pageabouttyitem {
        width: 31%;
        margin-right: 0 !important;
        margin-bottom: 10px;
        font-size: 12px;
        text-align: center;
        box-sizing: border-box;
    }
    .pageabouttyitemimg {
        margin-bottom: 6px !important;
    }
    .pageabouttyitemimg img {
        width: 100%;
        max-width: 100px;
        height: auto;
    }
    .contact-info {
        font-size: 14px;
        line-height: 26px;
    }
    .contact-info-item {
        margin-bottom: 4px;
        color: #fff;
        word-break: break-all;
    }

    /* swiper：移动端单卡清晰展示，禁止破坏 slide 宽度 */
    .rongyu {
        width: 100% !important;
        height: 280px !important;
        background-size: 100% 100% !important;
        padding: 10px 0 0;
        box-sizing: border-box;
    }
    .rongyu > .swiper-container {
        width: 100% !important;
        height: 220px !important;
        margin: 0 auto !important;
    }
    .rongyufoot {
        display: none !important; /* 装饰脚在小屏易遮挡证书，隐藏 */
    }
    .rongyu .swiper-slide {
        transform: scale(1) !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .rongyu .swiper-slide img {
        width: auto !important;
        max-width: 88% !important;
        max-height: 200px !important;
        height: auto !important;
        object-fit: contain !important;
    }
    .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;
        margin-top: 0 !important;
        transform: translateY(-50%);
    }
    .rongyu .swiper-button-prev {
        left: 4px !important;
    }
    .rongyu .swiper-button-next {
        right: 4px !important;
    }
    .rongyu .swiper-button-prev img,
    .rongyu .swiper-button-next img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        max-height: none !important;
    }
    .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%;
        box-sizing: border-box;
    }
    .dshjlistrightime {
        font-size: 16px !important;
        margin-bottom: 6px !important;
        color: #0084FF;
    }
    .dshjlistrightext,
    .dshjlistrightexts {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 8px;
        color: #fff;
        word-break: break-word;
    }

    #allmap {
        height: 220px !important;
        margin-top: 14px !important;
    }

    /* 招聘 */
    .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;
        box-sizing: border-box;
    }
    .zixunybleft,
    .zixunybright {
        display: none !important;
    }
    .aboutzp > div:nth-child(2) {
        display: none;
    }
    .aboutzpitem {
        font-size: 13px !important;
        line-height: 1.6 !important;
        padding-left: 0 !important;
        margin-bottom: 8px;
        text-align: left;
        word-break: break-all;
    }
    .aboutzp > .aboutzpitem {
        padding-left: 0 !important;
    }
    .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: 16px !important;
    }
    .aboutzpl .qwyoushi {
        font-size: 13px !important;
        height: 24px !important;
        line-height: 24px;
    }
    .aboutzpl .pageabout {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
}

/* ============= 小屏 (max-width: 480px) ============= */
@media (max-width: 480px) {
    .pagekefu > div > img,
    .pagekefu2 > div > img {
        width: 34px !important;
        height: 34px !important;
    }
    .pagekefujs {
        width: 48px !important;
        height: 20px !important;
        line-height: 20px !important;
        font-size: 10px !important;
    }
    .rongyu {
        height: 240px !important;
    }
    .rongyu > .swiper-container {
        height: 190px !important;
    }
    .rongyu .swiper-slide img {
        max-height: 170px !important;
    }
    .pageabouttyitem {
        font-size: 11px;
    }
}

/* ====== 超小屏 (<= 375px) ====== */
@media (max-width: 375px) {
    .pageleftmenus li {
        padding: 0 6px !important;
    }
    .pageleftmenus li a {
        font-size: 12px !important;
    }
    .pageleftmenus li img {
        width: 14px;
        height: 14px;
    }
    .contentoptitle {
        font-size: 16px !important;
    }
}
