/* 压力传感器页面样式 */

/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 页面容器样式 */
.pressure-sensors-page {
    background-color: #fff;
    color: #333;
}

.pressure-banner {
    background-color: #fff;
    padding: 100px 0 50px;
    color: #fff;
    
}
.pressure-banner .container{
    background-image: url("../../images/Pin-to-top/Sensor-long.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    max-width: 1600px;
}

.containers {
    margin: 0 auto;
    padding: 20px 20px;
    color: #333;
    
}

.banner-content {
    
    max-width: 1500px;
    margin: 20px ;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-content p {
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
}




/* 产品分类区域 */
.product-categories {
    background-color: #e5e5e5;
    padding: 0 0 60px;
}

.category-section {
    margin-bottom: 60px;
}

.category-title {
    font-size: 25px;
    color: #fff;
    margin-bottom: 30px;
    padding: 15px;
    border-bottom: 2px solid #224668;
    text-align: center;
    background-color: #224668;
}

.slider-badge {
    display: inline-block;
    background-color: #555;
    color: #fff;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 15px;
    border: 1px solid #777;
}



/* 产品网格布局 */
.product-grid {
    background-color: #e5e5e5;
    display: -ms-grid;
    display: grid;
    gap: 30px;
}

.product-item {
    text-align: left;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin: 0 20px;
    display: flex;
    gap: 30px;
    padding: 24px 28px;
}



.product-item:hover {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -o-transform: translateY(-5px);
    transform: translateY(-5px);
    -webkit-box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    -moz-box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-image {
    width: clamp(180px, 26vw, 190px);
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 4px;
    margin-left: 10%;
}

.product-info {
    flex: 1;
    min-width: 200px;
    padding: 0;
    padding-left: 7%;
    align-self: center;
}

.product-info h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-info h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 14px;
    font-weight: 700;
}

.product-features {
    list-style: none;
    text-align: left;
    margin-bottom: 0;
    padding: 0;
}

.product-features li {
    color: #666;
    font-size: 18px;
}

/* 按钮容器 — 右对齐纵向排列 */
.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 6%;
    align-self: center;
}

.product-btn {
    display: inline-block;
    background-color: #224668;
    color: #fff;
    padding: 10px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.product-btn:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-header .containers {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .header-image {
        max-width: 100%;
    }

    .header-content h1 {
        font-size: 16px;
    }

    .header-content p {
        font-size: 11px;
    }

    .product-item h3 {
        font-size: 13px;
    }

    .product-item p {
        font-size: 11px;
    }

    .product-features li {
        font-size: 11px;
    }

    .product-btn {
        font-size: 11px;
        padding: 6px 14px;
    }

    .product-image {
        width: 100%;
        max-width: 150px !important;
        margin: 0 auto;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }


}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 当页面宽度较小时，产品项变为垂直排列 */
@media (max-width: 1200px) {
    .product-item {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .product-features {
        padding-right: 0;
    }

    .product-info {
        min-width: 100%;
        padding: 0;
    }

    .product-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}