/* 技术服务页样式表 */
/* 页面内部Banner */
.inner-banner {
    position: relative;
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inner-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/jishu.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: 0;
}

.inner-banner-content {
    position: relative;
    z-index: 1;
    text-align: right !important;
    color: #fff;
    padding-right: 100px;
    padding-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 40px;
}

.inner-banner-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
    border-bottom: 3px solid #ff0000;
    padding-bottom: 10px;
}

.inner-banner-subtitle {
    font-size: 24px;
    font-weight: 300;
    opacity: 0.95;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}





/* 主内容区域 */
.service-main {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.service-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用部分 */
.sservice-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.sservice-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

.sservice-title.center {
    text-align: center;
    margin-bottom: 30px;
}

.service-subtitle {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    display: block;
    font-size: 18px;
    color: #666;
    /* 添加盒模型相关属性确保居中 */
    box-sizing: border-box;
    /* 强制继承父容器的文本对齐方式 */
    margin-left: auto;
    margin-right: auto;
}

.sservice-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

/* 技术服务部分 - 通用样式 */
.service-section {
    display: flex;
    margin-bottom: 80px;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 左图右文布局 */
.service-section.left-image {
    flex-direction: row;
}

/* 左文右图布局 */
.service-section.right-image {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* 幻灯片样式 */
.service-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out; /* 从1s改为0.3s，加快切换速度 */
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
}

.slider-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

/* 幻灯片切换按钮样式 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.service-section:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    padding: 40px 50px;
    max-width: 850px;
}

/* 查看更多按钮 */
.view-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.view-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.view-more-btn:hover {
    background-color: #0056b3;
}

.view-more-btn:hover i {
    transform: translateX(5px);
}

/* 滚动部分 - 企业认证和检测设备 */
.service-scroll-section {
    margin-bottom: 80px;
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.scroll-gallery {
    position: relative;
    margin: 30px 0;
    padding: 0 40px;
}

.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 滚动项目 */
.scroll-item {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.scroll-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.scroll-item-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.scroll-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.scroll-item:hover .scroll-item-image img {
    transform: scale(1.05);
}

.scroll-item-info {
    padding: 20px;
}

.scroll-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.scroll-item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* 滚动按钮 */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* 响应式设计 */
@media (max-width: 1366px) {
    .service-container {
        max-width: 1250px;
    }
    
    .service-image {
        max-width: 550px;
    }
    
    .scroll-item {
        flex: 0 0 270px;
    }
}

@media (max-width: 1200px) {
    .service-container {
        max-width: 1100px;
    }
    
    .service-image {
        max-width: 500px;
    }
    
    .service-content {
        padding: 30px 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .inner-banner {
        height: 280px;
    }
    
    .inner-banner-title {
        font-size: 2rem;
    }
    
    .service-section {
        flex-direction: column;
        margin-bottom: 50px;
    }
    
    .service-image {
        max-width: none;
        width: 100%;
    }
    
    .service-image img {
        min-height: 300px;
    }
    
    .service-content {
        padding: 30px;
        max-width: none;
    }
    
    .scroll-item {
        flex: 0 0 230px;
    }
    
    .scroll-item-image {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .inner-banner {
        height: 220px;
    }
    
    .inner-banner-title {
        font-size: 1.8rem;
    }
    
    .inner-banner-subtitle {
        font-size: 1rem;
    }
    
    .service-main {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-section {
        margin-bottom: 40px;
    }
    
    .service-content {
        padding: 25px;
    }
    
    .service-scroll-section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .scroll-gallery {
        padding: 0 30px;
    }
    
    .scroll-item {
        flex: 0 0 200px;
    }
    
    .scroll-item-image {
        height: 140px;
    }
    
    .view-more-btn {
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .inner-banner {
        height: 180px;
    }
    
    .inner-banner-title {
        font-size: 1.5rem;
    }
    
    .inner-banner-subtitle {
        font-size: 0.9rem;
    }
    
    .service-main {
        padding: 30px 0;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .service-scroll-section {
        padding: 20px;
    }
    
    .scroll-gallery {
        padding: 0 20px;
    }
    
    .scroll-item {
        flex: 0 0 180px;
    }
    
    .scroll-item-image {
        height: 120px;
    }
    
    .scroll-item-info {
        padding: 15px;
    }
    
    .scroll-item-title {
        font-size: 1rem;
    }
    
    .scroll-item-desc {
        font-size: 0.8rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }