/* Services Page Styles - Matching Index.html */
.services-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.services-page section {
    padding: 60px 0;
}

.services-page .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-page .section-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.services-page .section-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Service Hero Section */
.service-hero {
    background: #0056b3;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.service-hero .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.service-hero .hero-content p {
    font-size: 1.5rem;
}

/* Service Flow Section */
.service-flow {
    background: #f9f9f9;
}

.service-flow .flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; /* 稍微增大间距让箭头更自然 */
    text-align: center;
}

.service-flow .step {
    background: white;
    padding: 16px; /* 减小内边距，使内容更聚焦 */
    border-radius: 10px;
    border: 1px solid #e8eef9; /* 轻量边框，降低厚重感 */
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    position: relative; /* 为箭头与数字徽章定位 */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-flow .step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* 图标容器与图标美化 */
.service-flow .step-icon {
    width: 220px;  /* 增大图标容器 */
    height: 220px;
    border-radius: 50%;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 8px 18px rgba(31, 107, 215, 0.22);
}

.service-flow .step-icon img {
    width: 100%;  /* 提升图片占比，减少“蓝圈过厚”感 */
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.15));
}

.service-flow .step-title {
    font-weight: bold;
    color: #333;
    margin-top: 2px;
}

/* 步骤数字徽章 */
.service-flow .step-number {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1f6bd7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 12px rgba(31,107,215,.25);
}

/* 蓝色箭头连接（桌面端） */
.service-flow .step::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -28px; /* 与gap相匹配的视觉间距 */
    transform: translateY(-50%);
    width: 34px;
    height: 2px; /* 细一点更优雅 */
    background: linear-gradient(90deg, rgba(31,107,215,0.15), #1f6bd7);
    opacity: 0.85;
}

.service-flow .step::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 8px solid #1f6bd7; /* 箭头尖端 */
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* 每行最后一个不显示箭头（4列） */
.service-flow .step:nth-child(4n)::before,
.service-flow .step:nth-child(4n)::after {
    display: none;
}

/* Responsive adjustments for service flow */
@media (max-width: 992px) {
    .service-flow .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    /* 平板及以下隐藏箭头，避免拥挤 */
    .service-flow .step::before,
    .service-flow .step::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .service-flow .flow-steps {
        grid-template-columns: 1fr;
    }
}

/* Service Advantages Section */
.service-advantages .advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 桌面端固定4列 */
    gap: 24px;
}

.service-advantages .advantage-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.service-advantages .advantage-icon {
    width: 60px;
    height: 60px;
    background: #0056b3;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.service-advantages .advantage-body h3 {
    font-size: 1.5rem;
    color: #0056b3;
    margin-bottom: 10px;
}

.service-advantages .advantage-body p {
    color: #666;
    line-height: 1.6;
}

/* 优势区响应式列数 */
@media (max-width: 992px) {
    .service-advantages .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .service-advantages .advantages-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Equipment Section */
.main-equipment {
    background: #f9f9f9;
}

.main-equipment .equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.main-equipment .equipment-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.main-equipment .equipment-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 4px;
}

.main-equipment .equipment-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.main-equipment .equipment-card p {
    color: #666;
    line-height: 1.5;
}

/* Product Showcase Section */
.product-showcase .showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-showcase .showcase-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-showcase .showcase-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-showcase .showcase-body {
    padding: 20px;
}

.product-showcase .showcase-body h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.product-showcase .showcase-body p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-showcase .showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-showcase .showcase-tags .tag {
    background: #e0e0e0;
    color: #555;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .service-hero .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-hero .hero-content p {
        font-size: 1.2rem;
    }
    
    .services-page .section-header h2 {
        font-size: 2rem;
    }
    
    .service-flow .flow-steps {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .service-advantages .advantages-grid,
    .main-equipment .equipment-grid,
    .product-showcase .showcase-grid {
        grid-template-columns: 1fr;
    }
}