/* 技术服务页样式表 */
/* 页面内部Banner */
.tenglong-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;
}

.tenglong-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;
}

.tenglong-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;
}

.tenglong-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;
}

.tenglong-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);
}

/* 主内容区域 */
.tenglong-service-main {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.tenglong-service-container {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用部分 */
.tenglong-sservice-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.tenglong-sservice-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

.tenglong-sservice-title.tenglong-center {
    text-align: center;
    margin-bottom: 30px;
}

.tenglong-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;
}

.tenglong-sservice-title.tenglong-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.tenglong-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

.tenglong-section-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
    text-indent: 2em; /* 首行缩进两个汉字 */
    padding: 0 10px; /* 增加左右内边距，扩大文字距离 */
    letter-spacing: 1px; /* 增加字符间距 */
    text-align: justify; /* 使文本左右对齐 */
}

/* 技术服务部分 - 通用样式 */
.tenglong-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;
}

/* 左图右文布局 */
.tenglong-service-section.tenglong-left-image {
    flex-direction: row;
}

/* 左文右图布局 */
.tenglong-service-section.tenglong-right-image {
    flex-direction: row-reverse;
}

.tenglong-service-image {
    flex: 1;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.tenglong-service-image img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}



.tenglong-service-section:hover .tenglong-service-image img {
    transform: scale(1.05);
}

.tenglong-service-content {
    flex: 1;
    padding: 40px 27px;
    max-width: 850px;
}

/* 查看更多按钮 */
.tenglong-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;
}

.tenglong-view-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.tenglong-view-more-btn:hover {
    background-color: #0056b3;
}

.tenglong-view-more-btn:hover i {
    transform: translateX(5px);
}

/* 企业认证板块 */
.tenglong-certification-section {
    width: 100%;
    margin-bottom: 80px;
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
}

/* 企业认证滑动门样式 */
.tenglong-certification-tabs { width: 100%;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tenglong-cert-tab-container {
    display: flex;
    justify-content: center;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tenglong-cert-tab-item {
    flex: 1;
    max-width: 250px;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tenglong-cert-tab-item:hover {
    color: #333;
    background-color: #f0f0f0;
}

.tenglong-cert-tab-item.tenglong-active {
    color: #007bff;
    background-color: #fff;
    border-bottom-color: #007bff;
}

/* 认证内容区域 */
.tenglong-certification-content {
    width: 100%;
    margin: 0 auto;
    padding: 30px 0;
    overflow: hidden;
    position: relative;
}

.tenglong-cert-content-pane {
    display: none;
    width: 100%;
}

.tenglong-cert-content-pane.tenglong-active {
    display: block;
}

/* 认证轮播 */
.tenglong-cert-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
    padding: 0 60px;
}

.tenglong-cert-carousel-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    transition: transform 0.5s ease;
    position: relative;
}

.tenglong-cert-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.tenglong-cert-carousel-item {
    flex: 0 0 calc(14.2857% - 18px); /* 7个等分，考虑间距 */
    min-width: 200px;
    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;
}

.tenglong-cert-carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tenglong-cert-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.tenglong-cert-carousel-item:hover img {
    transform: scale(1.05);
}

/* 轮播按钮 */
.tenglong-cert-carousel-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;
}

.tenglong-cert-carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.tenglong-cert-carousel-prev {
    left: 0;
}

.tenglong-cert-carousel-next {
    right: 0;
}

/* 响应式设计 - 企业认证板块 */
@media (max-width: 1200px) {
    .tenglong-cert-carousel-item {
        flex: 0 0 calc(20% - 16px);
        min-width: 180px;
    }
}

@media (max-width: 992px) {
    .tenglong-certification-content {
        padding: 20px 15px;
    }
    
    .tenglong-cert-carousel-item {
        flex: 0 0 calc(25% - 15px);
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .tenglong-cert-tab-container {
        flex-wrap: wrap;
    }
    
    .tenglong-cert-tab-item {
        flex: 1 0 33.333%;
        font-size: 14px;
        padding: 12px 10px;
    }
    
    .tenglong-cert-carousel-item {
        flex: 0 0 calc(33.333% - 14px);
        min-width: 130px;
    }
    
    .tenglong-cert-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .tenglong-cert-tab-item {
        flex: 1 0 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tenglong-cert-tab-item:last-child {
        border-bottom: none;
    }
    
    .tenglong-cert-tab-item.tenglong-active {
        border-bottom-color: #e0e0e0;
        border-left: 3px solid #007bff;
    }
    
    .tenglong-cert-carousel-item {
        flex: 0 0 calc(50% - 10px);
        min-width: 120px;
    }
    
    .tenglong-cert-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* 滚动部分 - 专利证书和检测设备 */
.tenglong-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);
}

.tenglong-scroll-gallery {
    position: relative;
    margin: 30px 0;
    padding: 0 40px;
    overflow: hidden;
}

.tenglong-scroll-container {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
}

.tenglong-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* 滚动项目 */
.tenglong-scroll-item {
    flex: 0 0 calc(14.2857% - 13px); /* 7个卡片等宽，考虑gap */
    width: 100%;
	height:auto;
    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;
}

.tenglong-scroll-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tenglong-scroll-item-image {
    width: 100%;
	height:auto;
    overflow: hidden;
    position: relative;
   
}

.tenglong-scroll-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tenglong-scroll-item:hover .tenglong-scroll-item-image img {
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 1366px) {
    .tenglong-service-container {
        max-width: 1250px;
    }
    
    .tenglong-service-image {
        max-width: 550px;
    }
    
    .tenglong-scroll-item {
        flex: 0 0 270px;
    }
    
    .tenglong-service-content {
        padding: 30px;
    }
}

@media (max-width: 1200px) {
    .tenglong-service-container {
        max-width: 1100px;
    }
    
    .tenglong-service-image {
        max-width: 500px;
    }
    
    .tenglong-service-content {
        padding: 30px 20px;
    }
    
    .tenglong-sservice-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 992px) {
    .tenglong-inner-banner {
        height: 280px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 2rem;
    }
    
    .tenglong-service-section {
        flex-direction: column;
        margin-bottom: 50px;
    }
    
    .tenglong-service-image {
        max-width: none;
        width: 100%;
    }
    
    .tenglong-service-image img {
        min-height: 300px;
    }
    
    .tenglong-service-content {
        padding: 30px 20px;
        max-width: none;
    }
    
    .tenglong-scroll-item {
        flex: 0 0 230px;
    }
    
    .tenglong-scroll-item-image {
        height: 160px;
    }
}

/* 平板端适配 */
@media (max-width: 768px) {
    .tenglong-inner-banner {
        height: 220px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.8rem;
    }
    
    .tenglong-inner-banner-subtitle {
        font-size: 1rem;
    }
    
    .tenglong-service-main {
        padding: 40px 0;
    }
    
    .tenglong-sservice-title {
        font-size: 1.5rem;
        padding-bottom: 10px;
    }
    
    .tenglong-service-subtitle {
        font-size: 16px;
    }
    
    .tenglong-service-section {
        margin-bottom: 40px;
    }
    
    .tenglong-service-content {
        padding: 25px 15px;
    }
    
    .tenglong-service-scroll-section {
        padding: 25px 15px;
        margin-bottom: 40px;
    }
    
    .tenglong-scroll-gallery {
        padding: 0 15px;
    }
    
    .tenglong-scroll-item {
        flex: 0 0 calc(50% - 8px); /* 一行显示2个 */
    }
    
    .tenglong-scroll-item-image {
        height: 140px;
    }
    
    .tenglong-view-more-btn {
        padding: 10px 20px;
    }
    
    .tenglong-cert-carousel {
        padding: 0 20px;
    }
    
    .tenglong-cert-carousel-item {
        flex: 0 0 calc(50% - 10px); /* 一行显示2个 */
    }
    
    .tenglong-cert-tab-item {
        flex: 1 0 50%;
        font-size: 14px;
        padding: 12px 10px;
    }
}

/* 手机端适配 */
@media (max-width: 576px) {
    .tenglong-inner-banner {
        height: 180px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.5rem;
    }
    
    .tenglong-inner-banner-subtitle {
        font-size: 0.9rem;
    }
    
    .tenglong-service-main {
        padding: 30px 0;
    }
    
    .tenglong-service-container {
        padding: 0 10px;
    }
    
    .tenglong-service-content {
        padding: 20px 10px;
    }
    
    .tenglong-sservice-title {
        font-size: 1.4rem;
        padding-bottom: 8px;
    }
    
    .tenglong-section-description {
        font-size: 0.9rem;
        padding: 0 5px;
        text-indent: 1.5em;
    }
    
    .tenglong-service-scroll-section {
        padding: 20px 10px;
    }
    
    .tenglong-scroll-gallery {
        padding: 0 10px;
    }
    
    .tenglong-scroll-item {
        flex: 0 0 100%; /* 手机端一行只显示一个 */
        max-width: 300px;
        margin: 0 auto 15px;
    }
    
    .tenglong-scroll-item-image {
        height: 200px;
    }
    
    .tenglong-view-more-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tenglong-certification-section {
        margin-bottom: 60px;
        padding: 30px 10px;
    }
    
    .tenglong-cert-tab-item {
        flex: 1 0 100%;
        font-size: 14px;
        padding: 15px 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tenglong-cert-tab-item:last-child {
        border-bottom: none;
    }
    
    .tenglong-cert-carousel {
        padding: 0 10px;
    }
    
    .tenglong-cert-carousel-item {
        flex: 0 0 100%; /* 手机端一行只显示一个 */
        max-width: 300px;
        margin: 0 auto 15px;
    }
    
    .tenglong-cert-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .tenglong-cert-carousel-prev {
        left: 10px;
    }
    
    .tenglong-cert-carousel-next {
        right: 10px;
    }
    
    .tenglong-service-image img {
        min-height: 200px;
    }
    
    .tenglong-tab-item {
        flex: 1 0 100%;
        font-size: 14px;
        padding: 15px 10px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tenglong-tab-item:last-child {
        border-bottom: none;
    }
}

/* 小屏手机端适配 */
@media (max-width: 480px) {
    .tenglong-inner-banner {
        height: 160px;
    }
    
    .tenglong-inner-banner-title {
        font-size: 1.3rem;
    }
    
    .tenglong-inner-banner-subtitle {
        font-size: 0.8rem;
    }
    
    .tenglong-service-main {
        padding: 25px 0;
    }
    
    .tenglong-service-container {
        padding: 0 5px;
    }
    
    .tenglong-sservice-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .tenglong-service-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .tenglong-section-description {
        font-size: 0.85rem;
        margin-bottom: 12px;
        text-indent: 1.2em;
        letter-spacing: 0.5px;
    }
    
    .tenglong-service-content {
        padding: 15px 8px;
    }
    
    .tenglong-service-section {
        margin-bottom: 30px;
    }
    
    .tenglong-service-scroll-section {
        padding: 15px 5px;
        margin-bottom: 30px;
    }
    
    .tenglong-scroll-item {
        flex: 0 0 100%;
        max-width: 280px;
    }
    
    .tenglong-scroll-item-image {
        height: 180px;
    }
    
    .tenglong-certification-section {
        margin-bottom: 50px;
        padding: 25px 5px;
    }
    
    .tenglong-cert-tab-item {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .tenglong-cert-carousel-item {
        max-width: 260px;
    }
    
    .tenglong-service-image img {
        min-height: 180px;
    }
    
    .tenglong-tab-item {
        padding: 12px 8px;
        font-size: 13px;
    }
}

/* 检测设备滑动门菜单样式 */
.tenglong-equipment-tabs {
    margin: 30px auto;
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tenglong-tab-container {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.tenglong-tab-item {
    flex: 1;
    padding: 15px 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tenglong-tab-item:hover {
    color: #333;
    background-color: #f0f0f0;
}

.tenglong-tab-item.tenglong-active {
    color: #007bff;
    background-color: #fff;
    border-bottom-color: #007bff;
}

.tenglong-tab-content {
    padding: 15px;
    min-height: 30px; /* 保留一个最小高度，使菜单看起来更加完整 */
    background-color: #fff;
}

/* 响应式设计 - 移动端滑动门菜单 */
@media (max-width: 768px) {
    .tenglong-tab-container {
        flex-wrap: wrap;
    }
    
    .tenglong-tab-item {
        flex: 1 0 50%;
        font-size: 14px;
        padding: 12px 10px;
    }
    
    .tenglong-tab-content {
        padding: 20px 15px;
    }
    
    .tenglong-tab-pane h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .tenglong-tab-item {
        flex: 1 0 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tenglong-tab-item:last-child {
        border-bottom: none;
    }
    
    .tenglong-tab-item.tenglong-active {
        border-bottom-color: #e0e0e0;
        border-left: 3px solid #007bff;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tenglong-fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.tenglong-delay-100 { animation-delay: 0.1s; }
.tenglong-delay-200 { animation-delay: 0.2s; }
.tenglong-delay-300 { animation-delay: 0.3s; }
.tenglong-delay-400 { animation-delay: 0.4s; }
.tenglong-delay-500 { animation-delay: 0.5s; }