/* 检测中心页面样式 */

/* 检测中心顶部背景图样式 - 建议使用1920x500像素的图片 */
.detection-banner {
    position: relative;
    width: 100vw; /* 使用视口宽度单位 */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 500px;
    background-image: url('../images/detection-banner.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -4px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    overflow: hidden;
    box-sizing: border-box;
}

body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* 渐入效果 */
.detection-banner.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* 背景图叠加层样式 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 55, 98, 0.6); /* 行政蓝半透明叠加 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.banner-overlay h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-overlay p {
    font-size: 24px;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 检测中心内容区域 */
.detection-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 切换按钮样式 */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    padding: 12px 30px;
    margin: 0 10px;
    font-size: 18px;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    color: #163762; /* 行政蓝 */
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #ffcc00; /* 黄色悬停效果 */
}

.tab-button.active {
    border-bottom-color: #163762;
    font-weight: bold;
    color: #163762;
}

/* 标签内容样式 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 检测能力内容样式 */
.capability-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.capability-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.capability-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.capability-item h3 {
    color: #163762;
    font-size: 22px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.capability-item p {
    color: #666;
    margin-bottom: 15px;
}

.process {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.process h4 {
    color: #163762;
    margin-bottom: 10px;
    font-size: 16px;
}

.process ol {
    padding-left: 20px;
    margin: 0;
}

.process li {
    margin-bottom: 8px;
    color: #555;
}

/* 查看设备按钮样式 */
.view-equipment {
    display: inline-block;
    padding: 8px 20px;
    background-color: #163762;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-equipment:hover {
    background-color: #ffcc00;
    color: #163762;
}

/* 检测设备内容样式 */
.equipment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.equipment-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

/* 设备图片样式 - 建议使用600x600像素的方形图片 */
.equipment-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
}

/* 设备导航按钮样式 */
.equipment-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.equipment-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #163762;
    background-color: white;
    color: #163762;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.equipment-nav-btn:hover {
    background-color: #f0f0f0;
}

.equipment-nav-btn.active {
    background-color: #163762;
    color: white;
}

/* 设备描述区域样式 */
.equipment-description {
    flex: 1;
    min-width: 300px;
}

.equipment-desc {
    display: none;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.equipment-desc.active {
    display: block;
}

.equipment-desc h3 {
    color: #163762;
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.equipment-desc p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

.equipment-desc strong {
    color: #333;
}

/* 渐入动画 */
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-element.show {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .banner-overlay h1 {
        font-size: 36px;
    }
    
    .banner-overlay p {
        font-size: 20px;
    }
    
    .capability-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .detection-banner {
        height: 400px;
    }
    
    .banner-overlay h1 {
        font-size: 32px;
    }
    
    .banner-overlay p {
        font-size: 18px;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    .equipment-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .detection-banner {
        height: 300px;
    }
    
    .banner-overlay h1 {
        font-size: 28px;
    }
    
    .banner-overlay p {
        font-size: 16px;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-button {
        width: 100%;
        margin: 5px 0;
    }
    
    .capability-list {
        grid-template-columns: 1fr;
    }
    
    .equipment-nav-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* 新增的检测内容链接样式 */
.process li a.capability-link {
    color: #163762;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 2px 0;
}

.process li a.capability-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.process li a.capability-link::after {
    content: "→";
    margin-left: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.process li a.capability-link:hover::after {
    opacity: 1;
}

/* 调整列表项间距 */
.process li {
    margin-bottom: 8px;
    padding-left: 5px;
}