/* ================================================================
   模块：整体页面布局
   ================================================================ */
.product-page__inner {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    margin-bottom: 30px;
}
.product-page__main {
    flex: 1;
}
.product-page__wrap {
    background: #ffffff;
    padding: 40px;
}

/* ================================================================
   模块：产品网格容器（3列卡片布局）
   ================================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 0;
}

/* ================================================================
   模块：产品卡片
   ================================================================ */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    overflow: hidden;
    border: 1px solid #e8eaed;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 44px rgba(0, 0, 0, 0.10);
    border-color: var(--primary-color, #003070);
}
.product-card:hover .product-card__img img {
    transform: scale(1.05);
}
.product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 卡片图片区域（1:1 正方形） — 径向渐变背景 */
.product-card__img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, #ffffff 35%, #f0f5ff 75%);
    overflow: hidden;
}
.product-card__img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(240, 245, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.product-card:hover .product-card__img::after {
    opacity: 1;
}

/* 网格装饰线（科技感） */
.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 2;
}
.product-card:hover .product-card__overlay {
    opacity: 1;
}

/* 卡片底部内容 */
.product-card__body {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__title {
    font-size: 16px;
    color: #000;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.product-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f1f3;
}
.product-card__cate {
    font-size: 12px;
    color: var(--primary-color, #003070);
    text-transform: uppercase;
}
.product-card__arrow {
    color: #bbb;
    font-size: 13px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.product-card:hover .product-card__arrow {
    transform: translateX(4px);
    color: var(--accent-color, #ff6600);
}

/* ================================================================
   模块：空状态提示
   ================================================================ */
.product-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    font-size: 15px;
}

/* ================================================================
   模块：响应式适配
   ================================================================ */
@media (max-width: 992px) {
    .product-page__inner {
        flex-direction: column;
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .product-page__wrap {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    /* 与其他页面保持一致的容器处理，不搞负边距 */
    .product-page__inner {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    .product-page__main {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    .product-page__wrap {
        padding: 20px 16px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .product-grid {
        gap: 14px;
        padding: 0;
    }
    .product-empty {
        padding: 80px 16px;
    }
}

@media (max-width: 480px) {
    .product-page__inner {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }
    .product-page__main {
        flex: 1;
        min-width: 0;
        width: 100%;
    }
    .product-page__wrap {
        padding: 16px 14px;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        padding: 0;
    }
    .product-card__body {
         padding: 14px 10px;
    }
    .product-card__title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .product-card__cate {
        font-size: 11px;
    }
    .product-card__arrow {
        font-size: 12px;
    }
    .product-card__bottom {
        padding-top: 10px;
    }
    .product-empty {
        padding: 60px 16px;
        font-size: 14px;
    }
}