body{
    background-color: #f5f5f5;
}
.main-content{
    margin-top: 80px;
}

/* 在线看厂容器样式 */
.factory-online-container {
    margin: 0 auto;
    height: calc(100vh - 80px);
}

/* 主视频容器样式 */
.video-main-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    border-radius: 4px;
}

.video-wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 播放按钮样式 */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 80px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-button:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 观看视频按钮样式 */
.video-controls {
    text-align: center;
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 100%;
    z-index: 3;
}

.watch-video-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.watch-video-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 缩略图区域样式 */
.thumbnails-section {
    background-color: #fff;
    padding: 20px 0;
}

/* 视频缩略图轮播样式 */
.video-thumbnails-container {
    position: relative;
    padding: 0 40px;
    max-width: 1226px;
    margin: 0 auto;
}

.video-thumbnails-swiper {
    width: 100%;
    overflow: hidden;
}

.swiper-slide {
    height: 120px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.swiper-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.swiper-slide-active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 轮播导航按钮样式 */
.swiper-button-next, .swiper-button-prev {
    color: #00a0e9;
    width: 30px;
    height: 30px;
    display: none; /* 默认隐藏箭头 */
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    display: none;
}

/* 视频弹窗样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
}

.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    z-index: 1002;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1003;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.video-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.video-modal-player {
    width: 100%;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-modal-player video {
    width: 100%;
    display: block;
}

/* 新时代智能工厂部分样式 */
.smart-factory-section {
    padding: 60px 0;
    background-color: #fff;
    /* max-width: 1200px; */
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    max-width: 1226px;
    margin: 0 auto;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    margin: 0;
}

.section-description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    max-width: 1226px;
}

.factory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
    margin: 0 auto;
    max-width: 1226px;
}

.factory-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #000;
}

.factory-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
}

.factory-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.factory-item:hover .factory-image img {
    transform: scale(1.05);
}

.factory-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 1024px) {
    .factory-online-container {
        /* padding: 15px; */
        height: calc(100vh - 70px);
    }
    
    .play-button {
        font-size: 60px;
    }
    
    .swiper-slide {
        height: 100px;
    }
    
    .video-controls {
        bottom: 25px;
    }
    
    .watch-video-btn {
        padding: 8px 25px;
        font-size: 15px;
    }
    
    .video-main-container {
        height: 100%;
    }
    
    .thumbnails-section {
        padding: 15px 0;
    }
    
    .video-modal-content {
        width: 90%;
    }
    
    /* 在平板端显示箭头 */
    .swiper-button-next, .swiper-button-prev {
        display: block;
    }
    
    /* 新时代智能工厂部分样式 - 平板适配 */
    .smart-factory-section {
        padding: 40px 15px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
        padding: 0 20px;
    }
    
    .factory-grid {
        grid-gap: 15px;
    }
    
    .factory-caption {
        padding: 12px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .main-content{
        margin-top: 60px;
    }
    
    .factory-online-container {
        /* padding: 10px; */
        height: calc(100vh - 60px);
    }
    
    .play-button {
        font-size: 50px;
    }
    
    .video-controls {
        bottom: 20px;
    }
    
    .watch-video-btn {
        padding: 6px 20px;
        font-size: 14px;
        border-width: 1px;
    }
    
    .swiper-slide {
        height: 80px;
    }
    
    .swiper-slide img {
        height: 100px;
    }
    
    .video-main-container {
        height: 100%;
    }
    
    .thumbnails-section {
        padding: 10px 0;
    }
    
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -35px;
        font-size: 20px;
    }
    
    /* 在移动端也显示箭头 */
    .swiper-button-next, .swiper-button-prev {
        display: block;
        width: 25px;
        height: 25px;
    }
    
    .swiper-button-next:after, .swiper-button-prev:after {
        font-size: 16px;
    }
    
    /* 新时代智能工厂部分样式 - 移动端适配 */
    .smart-factory-section {
        padding: 30px 10px;
    }
    
    .section-title h2 {
        font-size: 24px;
        padding-bottom: 10px;
    }
    
    .section-title h2:after {
        width: 50px;
    }
    
    .section-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .factory-grid {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .factory-caption {
        padding: 10px;
        font-size: 14px;
    }
}