/* 产品中心 / 详情页 */
.page-banner {
    min-height: 280px;
    background: url("../img/6-Di1HlY2D.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-banner-inner { text-align: center; }
.page-banner-title {
    font-size: 28px;
    font-weight: 300;
    color: #333;
    margin: 0 0 10px;
}
.page-banner-subtitle {
    font-size: 16px;
    color: var(--primary);
    margin: 0;
}

.product-page { padding: 40px 0 60px; }
.product-cat-tabs {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border);
}
.product-cat-tabs li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-muted);
}
.product-cat-tabs li a:hover,
.product-cat-tabs li.active a {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: -1px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .product-grid { grid-template-columns: 1fr; }
}

.product-card-link {
    display: block;
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s;
    color: inherit;
    text-decoration: none;
}
.product-card-link:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    color: inherit;
}
.product-card-img {
    /* 固定高度，防止列表图过大 */
    height: 220px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.product-card-img .no-image {
    font-size: 14px;
    color: var(--text-muted-light);
}
.product-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 16px 16px 6px;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    padding: 0 16px 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card-btn {
    display: inline-block;
    margin: 0 16px 16px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}
.product-card-link:hover .product-card-btn {
    background: var(--primary-dark);
}

.pagination-wrap {
    margin-top: 32px;
    text-align: center;
}
.pagination-wrap ul { margin: 0; }

/* 产品详情页 */
.product-detail { padding: 40px 0 60px; }
.product-detail-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.product-detail-img-col {
    flex: 0 0 360px;
}
.product-detail-img {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-detail-img .no-image { color: var(--text-muted-light); }

.product-detail-info-col { flex: 1; min-width: 280px; }
.product-detail-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text);
}
.product-detail-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #52c41a;
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
}
.product-detail-attrs {
    background: var(--bg-page);
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.product-detail-attrs p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-muted);
}
.product-detail-attrs p:last-child { margin-bottom: 0; }
.product-detail-feature {
    margin-bottom: 24px;
}
.product-detail-feature h4 {
    font-size: 16px;
    color: var(--primary);
    margin: 0 0 10px;
    padding-left: 12px;
    border-left: 4px solid var(--primary);
}
.product-detail-feature .content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-wrap;
}
.product-detail-back {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s;
}
.product-detail-back:hover { color: #fff; background: var(--primary-dark); }

.product-detail-tabs {
    margin-top: 40px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.product-detail-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    background: var(--bg-page);
    list-style: none;
    margin: 0;
    padding: 0;
}
.product-detail-tabs-nav a {
    padding: 14px 24px;
    color: var(--text-muted);
    font-size: 15px;
}
.product-detail-tabs-nav a.active {
    color: var(--primary);
    background: #fff;
    border-bottom: 2px solid var(--primary);
    margin-bottom: -1px;
}
.product-detail-tab-content {
    padding: 24px;
    min-height: 120px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    white-space: pre-wrap;
}
.product-detail-tab-content p {
    margin: 0 0 8px;
    text-indent: 0 !important;
}
.product-detail-tab-content:empty::before { content: '暂无内容'; color: var(--text-muted-light); }
