/* index.css */
/* 分屏基础样式 */
.container {
    width: 100%;
    /* max-width: 1300px; */
    margin: 0 auto;
    /* transform: scale(0.9); */
    padding: 50px 0;
    overflow-x: hidden;
}

.screen {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* scroll-snap-align: start; */
}

.screen-bg {
    position: relative;
    width: 100%;
    height: 100%;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.screen-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.screen-text p {
    font-size: 24px;
}


/* 轮播图基础样式 */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
    /* 关键：改为 auto */
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    /* 继承父级高度 */
    position: relative;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-indicator.active {
    background-color: white;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    /* padding: 0 100px; */
    transform: translateY(-50%);
    z-index: 999;
}

.carousel-control {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* 关于冀钢模块（分屏内） */
/* #screen3 {
    background: url("../img/image/gyjgbg1.png") center center no-repeat;
    background-size: cover
} */

.about-content {
    color: #940c11;
    text-align: center;
    max-width: 900px;

    h2 {
        font-size: 60px;
    }
}

.about-text {
    font-size: 20px;
    text-align: left;
    font-weight: bold;

}

.channeng {
    border: 3px solid #fff;
    width: 380px;
    margin: 50px auto;
    padding: 15px 0;
    position: relative;

    p {
        font-size: 20px;
        font-weight: bold;

        .num {
            font-size: 60px;
            line-height: 80px;
        }

        sup {
            font-size: 20px;
            right: 40px;
            top: 15px;
            position: absolute;
        }
    }
}

.btn-more {
    display: inline-block;
    padding: 20px 70px;
    background-color: #940c11;
    color: white;
    font-size: 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: bold;
    margin-top: 40px;
}

.btn-more:hover {
    background-color: #fff;
    color: #940c11;
    border: 1px solid #940c11;
}

/* 产品中心模块（分屏内） */
.product-area {
    /* background: url("../img/cpbg.jpg") center center no-repeat; */
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url(../img/image/gyjgbg1.jpg) center center no-repeat;
    background-size: cover;
    /* background-size: cover; */

    h2 {
        color: #940c11;
        line-height: 60px;
        font-size: 36px;
        text-align: center;
        /* padding-top: 50px; */

        i {
            /* background: var(--common-color-940c11); */
            /* display: inline-block; */
            height: 60px;
            vertical-align: bottom;
            font-style: normal
        }

        i:first-child {
            width: 10px;
        }

        i:nth-child(2) {
            width: 5px;
            margin: 0 2px 0 5px
        }

        i:last-child {
            padding: 0 20px;
        }
    }

    h5 {
        color: rgb(153, 153, 153);
        text-align: center;
    }

    h6 {
        color: rgb(197, 197, 197);
        text-align: center;
    }
}


/* 更新：关于冀钢模块的背景 */
#screen3 {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../img/image/gyjgbg.png") center center no-repeat;
    background-size: cover;
    min-height: auto;
    height: auto;
    display: block;
    margin-bottom: 0;
    /* 确保背景图完整显示 */
    overflow: hidden;
}

/* 为container添加flex布局，实现左右排列 */
#screen3 .container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    /* align-items: center; */
    justify-content: space-between;
    width: 100%;
    /* max-width: 1400px; */
    margin: 0 auto;
    /* padding: 0 20px; */
    box-sizing: border-box;
}

/* 左侧内容区域 */
.about-content-wrapper {
    flex: 1;
    min-width: 300px;
    color: #333;
    padding-right: 0;
}

.about-content-wrapper h2 {
    font-size: 36px;
    margin-bottom: 8px;
    color: var(--common-color-940c11);
}

.about-content-wrapper .subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 20px;
}

.about-content-wrapper .description p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* 右侧图片区域 */
.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 统计条样式 - 占满整行 */
.stats-bar {
    background-color: var(--common-color-940c11);
    color: white;
    padding: 30px 0;
    margin-top: 0;
    /* 关键：移除顶部margin */
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-sizing: border-box;
    /* 确保容器高度正确 */
    height: auto;
}

.stat-item {
    text-align: center;
    flex: 1;
    /* 每个数据项占据相等空间 */
    min-width: 200px;
    /* 最小宽度 */
}

.stat-item .number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-item .label {
    font-size: 14px;
    opacity: 0.9;
}

/* 在 index.css 中添加 */
.intro-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 0;
}

.intro-left {
    flex: 1;
    min-height: 100%;
}

.intro-right {
    flex: 1;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-right img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== 2. 荣誉上下排布 ===== */
.stats-bar {
    width: 100%;
    background: var(--common-color-940c11);
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    /* 上下结构 */
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    /* 每条上下留空 */
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    margin-top: 6px;
    opacity: .9;
}

/* 产品中心轮播样式 */
.product-carousel {
    position: relative;
    width: 85%;
    height: 500px;
    margin: 40px auto 0;
    overflow: hidden;
}

.product-carousel .carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.product-carousel .carousel-item {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
}

.product-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-carousel h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    text-align: center;
}

.product-carousel .carousel-indicators {
    display: none;
}

.product-carousel .carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.product-carousel .carousel-control {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-carousel .carousel-control:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 更新后的 product-tabs 样式 */
.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    /*margin-top: 30px;*/
    background-color: #940c11;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
}

/* 更新后的 tab-btn 样式 */
.tab-btn {
    padding: 10px 50px;
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* border-bottom: 3px solid transparent; */
    flex: 1;
    /* 让每个按钮平均分配空间 */
    text-align: center;
    margin: 0;
    /* 移除外边距 */
    min-width: 0;
    /* 允许宽度缩小 */
}

.tab-btn:hover {
    color: var(--common-color-940c11);
}

.tab-btn.active {
    color: var(--common-color-940c11);
    background-color: white;
}

/* 确保图片容器宽度正确 */
.product-carousel {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

/* 确保图片完全填充容器 */
.product-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.product-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.product-card {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    font-size: 20px;
    color: #333;
    margin: 0;
}

.product-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.btn-detail {
    display: block;
    padding: 10px 15px;
    background-color: #333;
    color: #fff;
    text-align: center;
    text-decoration: none;
    margin: 15px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-detail:hover {
    background-color: #555;
}

/* #screen4 {
    background: url("../img/cpbg.png") center center no-repeat;
    background-size: cover;
} */

.media-list {
    padding-top: 3rem;
    display: flex;

    .media-item {
        background: #f9f9f9;
    }

    .media-item:first-child {
        flex: 1;

        .text,
        .img {
            flex: 50%
        }

        .triangle {
            left: -0.9rem;
            top: 50%;
            transform: translateY(-50%) rotate(90deg);
        }

        .flex:nth-child(2n+1) {
            .triangle {
                right: -0.9rem;
                top: 50%;
                transform: translateY(-50%) rotate(-90deg);
                left: auto;
            }

            .img::after {
                left: 0 !important;
            }
        }
    }

    .media-item:last-child {
        width: 33%;

        a {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .text {
            flex: 1
        }
    }

    .img {
        position: relative;
        line-height: 0;

        img {
            max-width: 100%
        }

        .more {
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(33, 33, 33, 0.5);
            font-size: 1.2rem;
            color: #fff;
            opacity: 0;
            transition: all 0.8s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .triangle {
            position: absolute;
            bottom: 0;
            border-width: 1.8rem;
            left: 50%;
            transform: translateX(-50%);
            border-bottom-color: #f9f9f9;
            transition: all 0.8s;
        }
    }

    .img::after {
        width: 0.25rem;
        height: 100%;
        background-color: var(--common-color-940c11);
        position: absolute;
        top: 0;
        right: 0;
        content: '';
        transition: all 0.8s;
    }

    .text {
        width: 100%;
        color: #333;
        box-sizing: border-box;
        padding: 3rem 3rem 0 3rem;
        transition: all 0.8s;

        .time {
            width: 100%;
            /*height: 0.18rem;*/
            display: flex;
            align-items: center;
            justify-content: space-between;

            color: var(--common-color-940c11);
            font-weight: 600;

            .arrow {
                transition: all 1s;
                scale: 0.5
            }
        }

        h5 {
            font-size: 1rem;
            font-weight: bold;
            color: #333;
            line-height: 1.5rem;
            margin-top: 1.4rem;
        }

        p {
            font-size: 0.9rem;
            padding-top: 0.9rem;
        }
    }

    a:hover {
        .more {
            opacity: 1
        }

        .triangle {
            border-bottom-color: var(--common-color-940c11)
        }

        .img::after {
            opacity: 0
        }

        .text {
            background: var(--common-color-940c11);

            .time,
            h5,
            p {
                color: #fff
            }

            .arrow::after {
                border-color: #fff
            }
        }
    }
}



/* 左侧悬浮导航样式 */
.side-navigation {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.side-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-navigation li {
    margin-bottom: 15px;
    text-align: center;
}

.side-navigation a {
    width: 3.8rem;
    display: block;
    transition: all 0.3s ease;
    color: #fff;
    line-height: 1.2rem;
    font-size: 0.9rem;

    i {
        width: 3rem;
        height: 3rem;
        display: inline-block;
        border-radius: 50%;
        background-size: 45%;
        background-position: center;
        background-repeat: no-repeat;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    i.product-icon {
        background-image: url("../img/Product Management.png");
    }

    i.about-icon {
        background-image: url("../img/Group.png")
    }

    i.news-icon {
        background-image: url("../img/Message.png")
    }
}

.side-navigation a:hover,
.side-navigation .side-nav-item.active a {
    color: var(--common-color-940c11);

    i.product-icon {
        background-image: url("../img/RedProduct Management.png")
    }

    i.about-icon {
        background-image: url("../img/RedGroup.png")
    }

    i.news-icon {
        background-image: url("../img/RedMessage.png")
    }
}

/* 修复产品轮播被压缩或高度塌陷 */
.product-carousel {
    height: 500px;
    /* 明确给高度，避免 0 */
    overflow: hidden;
    /* 只隐藏切换溢出，不隐藏内容 */
}

.product-carousel .carousel-inner {
    display: flex;
    height: 100%;
}

.product-carousel .carousel-item {
    flex: 1 0 100%;
    /* 不压缩、不收缩、占满一屏 */
    height: 100%;
    /* 继承父级高度 */
}

.product-carousel .carousel-item img {
    width: auto;
    height: 100%;
    object-fit: cover;
}


.carousel-item {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    display: flex;
    align-items: flex-end;
    /* justify-content: center;
    text-align: center; */
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carousel-item:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.product-bottom p {
    /* margin: 0; */
    font-size: 18px;
    line-height: 1.4;
    color: white;

}

/* 修改底部屏幕高度 */
#screen5.screen {
    min-height: auto;
    /* 改为auto而不是100vh */
    height: auto;
    padding: 0;
    /* 移除可能的内边距 */
    margin: 0;
    /* 硣保没有外边距 */
}

/* 集团简介改为指定红色 */
.intro-left h2 {
    color: #940c11;
    padding: 20px 0 0;
    font-size: 50px;
    font-weight: normal;
}

.intro-left h5 {
    color: rgb(153, 153, 153);
    font-size: 25px;
    padding: 0 0 15px 0;
    font-weight: 350;
}

.intro-left p {
    text-indent: 2em;
}

/* 轮播视频样式 */
.carousel-video {
    width: 100%;
    height: 89.5vh;
    object-fit: cover;
    /* 保持视频比例并填满容器 */
}

/* 确保视频容器高度与原来一致 */
.carousel-item {
    position: relative;
    width: 100%;
    height: 100vh;
    /* 保持全屏高度 */
    overflow: hidden;
}

/* 响应式：小屏幕适配 */
@media (max-width: 768px) {
    .screen-text h1 {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .screen-text p {
        font-size: 18px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
        padding: 0 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }

    /* 关于冀钢模块 */
    #screen3 {
        background-size: cover;
    }



    .about-content {
        padding: 0 20px;
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 40px;
        margin-bottom: 20px;
    }

    .about-text {
        font-size: 18px;
    }

    .channeng {
        width: 90%;
        margin: 30px auto;
        padding: 12px 0;
    }

    .channeng p {
        font-size: 18px;
    }

    .channeng p .num {
        font-size: 48px;
        line-height: 60px;
    }

    .channeng p sup {
        font-size: 16px;
        right: 60px;
        top: 12px;
    }

    .btn-more {
        padding: 15px 50px;
        font-size: 18px;
    }

    .intro-wrapper {
        flex-direction: column;
    }

    .intro-left,
    .intro-right {
        flex: 1 1 100%; text-align: center;
        .intro-txt{padding: 0 15px;text-align: left;}
    }

    /* 产品中心模块 */
    .product-area h2 {
        font-size: 28px;
        /* padding-top: 30px; */
    }

    .product-area h2 i {
        height: 50px;
    }

    .product-area h2 i:first-child {
        width: 8px;
    }

    .product-area h2 i:nth-child(2) {
        width: 4px;
        margin: 0 2px 0 4px;
    }

    .product-area h2 i:last-child {
        padding: 0 15px;
    }

    .product-tabs {
        gap: 20px;
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 8px 30px;
        font-size: 20px;
        min-width: 120px;
    }

    .product-carousel {
        height: 400px;
        width: 95%;
    }

    .product-carousel .carousel-control {
        width: 35px;
        height: 35px;
    }

    .product-carousel h3 {
        padding: 15px;
        font-size: 18px;
    }

    .product-cards {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .product-card {
        min-width: 100%;
    }

    .product-card img {
        height: 180px;
    }

    .product-card h3 {
        padding: 12px;
        font-size: 18px;
    }

    .product-card p {
        padding: 0 12px 12px;
        font-size: 13px;
    }

    .btn-detail {
        padding: 8px 12px;
        margin: 12px;
        font-size: 14px;
    }

    /* 媒体列表 */
    .media-list {
        padding-top: 2rem;
    }

    .media-item:first-child .text,
    .media-item:first-child .img {
        flex: 100%;
    }

    .media-item:last-child {
        width: 100%;
    }

    .media-item:last-child a {
        flex-direction: row;
    }

    .text {
        padding: 2rem;
    }

    .text h5 {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .text p {
        font-size: 0.8rem;
        padding-top: 0.7rem;
    }

    .triangle {
        border-width: 1.5rem;
    }

    /* 底部 */
    .footer .qrcode {
        padding: 2rem 0 3rem 0;
    }

    .footer .qrcode img {
        height: 10rem;
        padding: 0 3rem;
    }

    .footer-column:last-child {
        width: 100%;
        border-left: none;
        padding-left: 2rem;
    }

    /* 侧边导航 */
    .side-navigation {
        left: 15px;
    }

    .side-navigation a {
        width: 3rem;
        font-size: 0.8rem;
        line-height: 1rem;
    }

    .side-navigation a i {
        width: 2.5rem;
        height: 2.5rem;
    }
    .media-list{display: block}
    .media-list .media-item:last-child{width: 100%}
    .media-list .media-item .flex{flex-direction: column;}
    .media-list .media-item .flex:last-child{flex-flow: column-reverse;}
    .media-list {
        .text{padding: 1rem;
            h5{text-align: left;margin-top: 1px;}
        }
        .img::after,.triangle{display: none}
    }




/* 移动端优化 */
@media (max-width: 768px) {
    .carousel {
        /*height: 100vh;*/
        /* 占满视口高度 */
    }

    .carousel-inner,
    .carousel-item,
    .carousel-img {
        height: 100%;
    }
}


/* 小屏幕手机 (480px 及以下) */
@media (max-width: 480px) {
    .screen-text {
        padding: 0 15px;
    }

    .screen-text h1 {
        font-size: 28px;
    }

    .screen-text p {
        font-size: 16px;
    }

    .carousel-control {
        width: 35px;
        height: 35px;
    }

    .about-content h2 {
        font-size: 32px;
    }

    .about-text {
        font-size: 16px;
    }

    .channeng {
        width: 95%;
        margin: 25px auto;
        padding: 10px 0;
        border-width: 2px;
    }

    .channeng p {
        font-size: 16px;
    }

    .channeng p .num {
        font-size: 40px;
        line-height: 50px;
    }

    .channeng p sup {
        font-size: 14px;
        right: 50px;
        top: 10px;
    }

    .btn-more {
        padding: 12px 40px;
        font-size: 16px;
    }

    .product-area h2 {
        font-size: 24px;
        padding-top: 25px;
    }

    .product-tabs {
        gap: 15px;
    }

    .tab-btn {
        padding: 6px 10px;
        font-size: 18px;
        min-width: 100px;
    }

    .product-carousel {
        height: 350px;
        margin: 25px auto 0;
        width: 98%;
    }

    .product-carousel .carousel-control {
        width: 30px;
        height: 30px;
    }

    .product-carousel h3 {
        padding: 12px;
        font-size: 16px;
    }

    .product-card img {
        height: 160px;
    }

    .product-card h3 {
        padding: 10px;
        font-size: 16px;
    }

    .product-card p {
        padding: 0 10px 10px;
        font-size: 12px;
    }

    .btn-detail {
        padding: 6px 10px;
        margin: 10px;
        font-size: 13px;
    }

    .media-item:last-child a {
        flex-direction: column;
    }

    .text {
        padding: 1.5rem;
    }

    .text h5 {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }

    .text p {
        font-size: 0.7rem;
        padding-top: 0.6rem;
    }

    .footer .qrcode {
        padding: 1.5rem 0 2rem 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer .qrcode img {
        height: 8rem;
        padding: 0 1.5rem;
        margin-bottom: 1rem;
    }

    .side-navigation {
        left: 10px;
    }

    .side-navigation a {
        width: 2.5rem;
        font-size: 0.7rem;
    }

    .side-navigation a i {
        width: 2rem;
        height: 2rem;
        background-size: 40%;
    }
}

/* 超小屏幕手机 (320px 及以下) */
@media (max-width: 320px) {
    .screen-text h1 {
        font-size: 24px;
    }

    .screen-text p {
        font-size: 14px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    .about-text {
        font-size: 14px;
    }

    .channeng {
        width: 100%;
        padding: 8px 0;
    }

    .channeng p {
        font-size: 14px;
    }

    .channeng p .num {
        font-size: 32px;
        line-height: 40px;
    }

    .channeng p sup {
        font-size: 12px;
        right: 40px;
        top: 8px;
    }

    .btn-more {
        padding: 10px 30px;
        font-size: 14px;
    }

    .product-area h2 {
        font-size: 20px;
        padding-top: 20px;
    }

    .tab-btn {
        padding: 5px 15px;
        font-size: 16px;
        min-width: 80px;
    }

    .product-carousel {
        height: 300px;
        margin: 20px auto;
    }

    .product-card img {
        height: 140px;
    }

    .product-card h3 {
        font-size: 14px;
    }

    .product-card p {
        font-size: 11px;
    }

    .btn-detail {
        font-size: 12px;
    }

    .text {
        padding: 1rem;
    }

    .text h5 {
        font-size: 0.7rem;
    }

    .text p {
        font-size: 0.6rem;
    }
}

/* 通用移动端优化 */
@media (max-width: 768px) {

    /* 优化触摸体验 */
    .tab-btn,
    .carousel-control,
    .product-carousel .carousel-control,
    .side-navigation a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    /* 优化字体渲染 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }

    /* 防止文本调整大小 */
    html {
        -webkit-text-size-adjust: 100%;
    }

    /* 优化图片加载 */
    .screen-img,
    .carousel-img,
    .product-card img,
    .product-carousel .carousel-item img {
        image-rendering: -webkit-optimize-contrast;
    }

    /* 1. 标题独占一行 */
    .about-tabs .l1Name {
        width: 2% !important;
        border-right: none !important;
        margin: 0 0 10px 0 !important;
        text-align: center;
    }

    /* 2. 按钮容器：横排 一排两个 */
    .about-tabs .column.flex {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        gap: 10px;
    }

    /* 3. 每个按钮占一半宽度 */
    .about-tabs .tab-btn {
        flex: 0 0 calc(50% - 5px) !important;
        /* 一半宽 减去间隙 */
        min-width: auto !important;
        margin: 0 !important;
        text-align: center;
    }

    /* 缩小第四屏整体尺寸 */
    #screen4 .media-list {
        padding-top: 1.5rem !important;
    }

    /* 缩小图片尺寸 */
    #screen4 .media-item .img img {
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* 缩小文字内容 */
    #screen4 .media-item .text {
        padding: 1.5rem 1.5rem 0 1.5rem !important;
    }

    #screen4 .media-item .text .time {
        font-size: 0.8rem;
    }

    #screen4 .media-item .text h5 {
        font-size: 0.7rem;
        line-height: 1rem;
    }

    #screen4 .media-item .text p {
        font-size: 0.8rem;
        padding-top: 0.7rem;
    }

    /* 缩小装饰元素 */
    #screen4 .triangle {
        border-width: 1.2rem;
    }

    /* 调整第一个媒体项的布局 */
    #screen4 .media-item:first-child .text,
    #screen4 .media-item:first-child .img {
        flex: 50%;
    }

    /* 调整最后一个媒体项的宽度 */
    #screen4 .media-item:last-child {
        width: 33%;
    }

    #screen4 .media-item:last-child a {
        flex-direction: column !important;
        height: 100% !important;
    }

    /* 恢复装饰元素 */
    #screen4 .triangle,
    #screen4 .img::after {
        display: block !important;
        /* 重新显示装饰元素 */
    }

    /* 恢复文字区域的原始样式 */
    #screen4 .media-item .text {
        padding: 3rem 3rem 0 3rem !important;
        /* 恢复原始padding */
    }

    /* 5. footer 不再被绝对定位拽上去 */
    #screen5.screen {
        height: auto !important;
        min-height: auto;
    }

    .footer .footer-logo img {
        width: 150px !important;
        /* 想再小就调小 */
        height: auto !important;
    }
}

/* 在 css/index.css 中添加以下样式 */
.video-container {
    position: relative;
    width: 100%;
    height: 75vh;
    overflow: hidden;
    background-color: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.video-container video.active {
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-control {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 768px) {
    .carousel-controls {
        padding: 0 10px;
    }

    .carousel-control {
        width: 40px;
        height: 40px;
    }
}

/* 轮播指示点 */
/* 轮播指示点 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 0;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: #940c11;
    transform: scale(1.2);
}


/* 轮播容器需要相对定位，让指示器可以绝对定位 */
.carousel {
    position: relative;
}

/* 指示器容器 - 居中显示在轮播底部 */
.carousel-indicators {
    position: absolute;
    bottom: 20px; /* 距离底部的距离 */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px; /* 圆点之间的间距 */
    padding: 0;
    margin: 0;
    list-style: none;
    z-index: 10; /* 确保在视频上方显示 */
}

/* 单个圆点样式 */
.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%; /* 圆形 */
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色 */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease; /* 过渡动画 */
}

/* 激活状态的圆点 */
.carousel-indicator.active {
    background-color: white; /* 纯白色 */
    width: 12px;
    height: 12px; /* 激活时稍大一点 */
}
