/* 伪元素：倒三角 */
.main-nav > li:nth-child(2)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 70%;
  transform: translateY(-50%);
  /* 三角画法：透明边框技巧 */
  border: 4px solid transparent;
  border-top-color: #3498ff; /* 三角颜色，和导航文字一致 */
}
/* ========== 产品系列板块【版心内】 ========== */
.product-section {
    padding: 80px 0;
}
.product-section h3 {
    text-align: center;
    font-size: 32px;
    color: #0b101b;
    margin-bottom: 48px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.product-card {
    border: 1px solid #e4e9f2;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s ease;
    background: #fff;
    /* 原图高度180px，加高到3倍：540px */
    height: 540px;
    display: flex;
    align-items: center;   /* 垂直居中 */
    justify-content: center; /* 水平居中 ✅ */
    flex-direction: column;
}
.product-card:hover {
    box-shadow: 0 12px 30px rgba(12, 20, 36, 0.12);
    transform: translateY(-4px);
}
.card-img {
    /* width: 100%; */
    /* height: 360px; */
    max-width:90%;
    max-height:90%;
    height: 70%;
    object-fit: cover;
}
.card-text {
    padding: 20px;
    flex: 1;
}
.card-text h4 {
    font-size: 20px;
    color: #0b101b;
    margin-bottom: 10px;
    text-align: center;
}
.card-text p {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    text-align: left;
}
/* PC端：7个盒子左对齐，第一行4个，第二行3个靠左 */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-flow: row;
    }
    .product-card:nth-child(5),
    .product-card:nth-child(6),
    .product-card:nth-child(7) {
        grid-column: auto;
    }
}
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-card {
        height: 420px;
    }
    .card-img {
        height: 260px;
    }
}
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        height: auto;
    }
    .card-img {
        height: 240px;
    }
}