/* ========== 移动端主体适配样式（仅在小于1200px时生效） ========== */

@media (max-width: 1200px) {
    /* 顶部轮播图 */
    .header .top-carousel {
        height: auto;
    }

    .header .top-carousel img {
        width: 100%;
        height: auto;
        display: block;
    }

    .header .top-carousel .carousel-indicators {
        bottom: 6px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        z-index: 10;
    }

    .indicator {
        width: 20px;
        height: 4px;
    }

    .carousel .more {
        display: flex;
        align-items: center;
        bottom: 15px;
        right: 8px;
        padding: 2px 6px;
        font-size: 10px;
        z-index: 10;
        line-height: 1.2;
        height: 25px;
        width: 68px;
    }

    /* 企业介绍模块 */
    .main .content,
    .main .contentBg {
        max-width: 100%;
        margin: 0;
        padding: 30px 15px;
        height: auto;
    }

    .main .contentBg {
        background-size: cover;
        background-position: center;
    }

    .main .content .title {
        font-size: 22px;
        line-height: 1.4;
    }

    .main .content .line {
        width: 60px;
        height: 3px;
        margin: 12px auto;
    }

    .main .content .brief {
        font-size: 14px;
        margin: 20px auto;
        line-height: 1.8;
    }

    .main .content .type-wrap {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
        margin-top: 20px;
    }

    .main .content .type-box {
        width: calc(50% - 8px);
        padding: 15px 10px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .main .content .type-box .unit {
        font-size: 14px;
        line-height: 1.4;
    }

    .main .content .type-box .unit .red {
        font-size: 32px;
        display: block;
        line-height: 1.2;
    }

    .main .content .type-box .name {
        font-size: 14px;
        margin-top: 5px;
    }

    /* 核心能力模块 */
    .main .contentPower {
        height: auto;
        padding: 30px 15px;
    }

    .main .power-img {
        max-width: 100%;
        margin: 20px auto 0;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }

    .main .power-img .power-box {
        width: calc(50% - 5px);
        height: 160px;
        flex: 0 0 calc(50% - 5px);
        position: relative;
        box-sizing: border-box;
    }

    /* 核心能力模块禁用PC端hover效果 */
    .main .power-img:hover .power-box,
    .main .power-img:hover .power-box:first-child,
    .main .power-img:hover .power-box:hover {
        flex-grow: 0 !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    /* 移动端默认：所有盒子都是左侧装饰线，内容隐藏 */
    .main .power-img .power-box span {
        width: auto !important;
        font-size: 14px !important;
        position: absolute;
        padding-left: 8px !important;
        top: 15px !important;
        left: 15px !important;
        line-height: 28px !important;
        border-left: 2px solid transparent !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        z-index: 2;
        border-image: linear-gradient(180deg, #FFFFFF 0%, rgba(255,255,255,0) 100%) 1 !important;
        text-shadow: 0px 2px 1px rgba(19,80,143,0.5);
        white-space: nowrap;
        color: #fff;
    }

    .main .power-img .power-box h6 {
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* 移动端激活状态：底部装饰线，内容显示 */
    .main .power-img .power-box.power-active span {
        width: auto !important;
        padding-left: 0 !important;
        padding-bottom: 8px !important;
        border-left: none !important;
        border-bottom: 2px solid transparent !important;
        border-image: linear-gradient(90deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%) 1 !important;
    }

    .main .power-img .power-box.power-active h6 {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .power-box h6 {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        position: absolute;
        top: 0;
        left: 0;
        font-size: 12px;
        text-align: left;
        background: rgba(3, 50, 98, 0.7);
        padding: 55px 15px 15px 15px;
        visibility: hidden;
        z-index: 1;
        display: -webkit-box;
        -webkit-line-clamp: 6;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-weight: normal;
        text-align: justify;
        opacity: 0;
        box-sizing: border-box;
        color: #fff;
        line-height: 1.6;
        margin: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .main .power-img .power-box .round-bg {
        background-size: cover;
        background-position: center;
    }

    /* 确保hover不改变布局 */
    .main .power-img .power-box:hover {
        transition: none !important;
    }

    .main .power-img:hover .power-box {
        flex-grow: 0 !important;
        flex: 0 0 calc(50% - 5px) !important;
    }

    .main .power-img .power-box:first-child {
        flex-grow: 0 !important;
    }

    /* 最新产品轮播图 - 移动端尽量保持PC端效果 */
    .main .contentBg2 {
        max-width: 100%;
        height: auto;
        padding: 30px 10px;
        background-size: cover;
    }

    .main .carousel-img {
        max-width: 100%;
        margin: 44px auto 0;
    }

    /* 轮播容器 - 与PC端一致 */
    .card-carousel {
        position: relative;
        width: 100%;
        height: auto;
        overflow: visible;
        border-radius: 8px;
        padding: 0 25px 30px 25px;
        box-sizing: border-box;
    }

    .card-carousel-inner {
        position: relative;
        width: 100%;
        min-height: 350px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* 卡片基础样式 - 上下布局，加宽 */
    .carousel-card {
        position: absolute;
        width: 100%;
        background: #fff;
        border-radius: 12px;
        overflow: visible;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        padding: 15px 15px 25px 15px;
        box-sizing: border-box;
    }

    /* 三张卡片的位置状态 - 与PC端一致 */
    .carousel-card.prev {
        left: -10%;
        transform: scale(0.85);
        opacity: 0.2;
        z-index: 1;
    }

    .carousel-card.active {
        left: 50%;
        transform: translateX(-50%) scale(1);
        opacity: 1;
        z-index: 10;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }

    .carousel-card.next {
        right: -10%;
        left: auto;
        transform: scale(0.85);
        opacity: 0.2;
        z-index: 1;
    }

    .carousel-card.hidden {
        opacity: 0;
        transform: scale(0.7);
        z-index: 0;
        pointer-events: none;
    }

    /* 卡片内容 - 上下布局，图片在上，文字在下 */
    .carousel-card .card-image {
        width: 100%;
        height: 200px;
        display: block;
        border-radius: 8px;
        background: #f5f5f5;
        flex-shrink: 0;
    }

    .carousel-card .card-body {
        width: 100%;
        padding: 15px 0 15px 0;
        flex: 1;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
    }

    .carousel-card h3 {
        width: 100%;
        height: auto;
        min-height: 30px;
        font-family: Source Han Sans CN;
        font-weight: 500;
        color: #333333;
        font-size: 16px;
        text-align: left;
        display: flex;
        align-items: center;
        margin: 0;
        line-height: 1.4;
    }

    .carousel-card h3 img {
        width: 22px;
        height: 15px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .carousel-card p {
        width: 100%;
        flex: 1;
        min-height: 80px;
        margin: 12px 0;
        color: #333333;
        font-family: Source Han Sans CN;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.7;
        text-indent: 1.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: left;
    }

    .carousel-card .card-link {
        width: auto;
        min-width: 100px;
        background: #BD0F0F;
        border-radius: 20px;
        height: 38px;
        line-height: 38px;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 400;
        text-align: center;
        margin-top: -7px;
        margin-left: auto;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        white-space: nowrap;
    }

    .card-link .ckgd {
        margin-left: 8px;
        width: 16px;
        height: 12px;
        flex-shrink: 0;
    }

    .card-link .ckgd-txt {
        line-height: 1;
        color: #FFFFFF;
        font-size: 14px;
    }

    /* 左右箭头 - 去掉圆圈 */
    .carousel-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #000000;
        transition: all 0.3s;
        width: auto;
        height: auto;
        padding: 5px;
    }

    .carousel-nav:hover {
        color: #BD0F0F;
    }

    .carousel-nav .nav-btn {
        width: 18px;
        height: 30px;
        opacity: 0.6;
    }

    .carousel-nav:hover .nav-btn {
        opacity: 1;
    }

    .carousel-nav.prev {
        left: -4px;
    }

    .carousel-nav.next {
        right: -4px;
    }

    /* 指示器 - 上移 */
    .carousel-dots {
        position: absolute;
        bottom: -18px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 8px;
        z-index: 20;
        margin-top: 0;
    }

    .carousel-dots span {
        width: 30px;
        height: 4px;
        border-radius: 20px;
        background: #c0c4cc;
        cursor: pointer;
        transition: all 0.3s;
        opacity: 1;
    }

    .carousel-dots span.active {
        background: #BD0F0F;
        width: 30px;
        border-radius: 20px;
    }

    /* 动态资讯模块 */
    .main .contentBg3 {
        height: auto;
        padding: 30px 15px;
    }

    .contentBg3 .list-img {
        max-width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .contentBg3 .list-img .show-box {
        flex: none;
        height: auto;
    }

    .contentBg3 .show-box .round-bg {
        height: 200px;
    }

    .contentBg3 .show-box .round-bg img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .contentBg3 .show-box .item-list {
        height: auto;
        padding: 15px;
    }

    .contentBg3 .show-box .item-list h5 {
        font-size: 16px;
        font-weight: 600;
    }

    .contentBg3 .show-box .item-list .brief {
        font-size: 13px;
        margin: 10px 0;
    }

    .contentBg3 .show-box .item-list .info-row {
        padding-top: 12px;
        margin-top: 10px;
    }

    .contentBg3 .show-box .item-list .time {
        font-size: 13px;
    }

    .contentBg3 .show-box .item-list .detail {
        font-size: 14px;
    }
}
