/* ==================================================
   产品页面独立样式文件
   ================================================== */

/* 1. 页面主容器 - 保持 72.9167vw 宽度 */
.products-page-wrap {
    width: 72.9167vw;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 80px;
}

/* 2. 在售产品主标题 */
.products-page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 50px;
    color: #111;
}

/* 3. 产品网格（在售 / 停产通用设置） */
.products-grid-active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px; /* 与下方停产区拉开距离 */
}

/* 4. 在售产品卡片样式 (配合 render_product_item 输出的 HTML) */
.product-box .item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-box .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.product-box .item .img {
    background: #f8f9fa;
    padding: 30px 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.product-box .item .img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-box .item .border {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-box .item .p1 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.product-box .item .p2 {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-box .item .more, .discontinued-grid .discontinued-item .more {
    display: inline-block;
    background: #005CB9;
    color: #ffffff;
    padding: 10px 35px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.3s ease;
}
.discontinued-grid .discontinued-item .end {
    margin: 0 auto;
    padding-bottom: 10px;
}
.product-box .item:hover .more {
    background: #004a94;
}

/* ==================================================
   5. 停产产品区域样式 (如图效果)
   ================================================== */
.discontinued-section {
    margin-top: 60px;
}

.discontinued-title {
    text-align: center;
    font-size: 20px;
    color: #777777;
    font-weight: 400;
    margin-bottom: 40px;
}

.discontinued-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 停产产品卡片 - 更简洁，无阴影或少阴影 */
.discontinued-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

.discontinued-item .img {
    padding: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.discontinued-item .img img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.discontinued-item .name {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #888888;
    font-weight: 500;
    transition: color 0.3s;
}

.discontinued-item:hover .name {
    color: #333333;
}

.banner .text {
    position: absolute;
    left: 0;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: white;
}
.banner .text h1 {
    color: #fff;
    font-size: 3.33333vw;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.12;
}
.banner {
    position: relative;
}
.banner .bg {
    width: 100%;
    display: block;
    object-fit: cover;
}
@media screen and (max-width: 1024px) {
    .banner {
        margin-top: 60px;
    }
}
@media screen and (max-width: 1024px) {
    .banner img {
        height: 200px;
    }
}
@media screen and (max-width: 1024px) {
    .banner .text h1 {
        font-size: 32px;
    }
}
.banner .waterBox {
    z-index: 10;
    pointer-events: none;
    width: 100%;
    height: 4.16667vw;
    margin-bottom: -0.10417vw;
    position: absolute;
    bottom: 0;
    left: 0;
}
.banner .waterBox svg {
    width: 100%;
    height: 4.0625vw;
    max-height: 100vh;
    margin: 0;
    display: block;
}
.banner .waterBox .water .parallax > use {
    transition: fill 0.5s ease-in-out;
    animation: 5s linear 1s infinite move-forever;
}
/* ==================================================
   6. 响应式适配
   ================================================== */
@media screen and (max-width: 1200px) {
    .products-page-wrap {
        width: 90vw;
    }
    
    .products-grid-active,
    .discontinued-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .products-page-wrap {
        width: 92vw;
        padding-top: 40px;
    }
    
    .products-page-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .products-grid-active,
    .discontinued-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-box .item .img {
        min-height: 180px;
    }
}