/* 页面标题区域 */
.yzg-page-header {
	background: linear-gradient(135deg, var(--yzg-primary-blue) 0%, var(--yzg-primary-blue-dark) 100%);
	background-size: cover;
	background-position: center;
	color: white;
	padding: 80px 0 60px;
	margin-top: 82px;
	text-align: center;
}

.yzg-page-header h1 {
	font-size: 2.8rem;
	margin-bottom: 25px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.2;
	font-weight: bold;
}

.yzg-page-header p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 0 auto 30px;
	opacity: 0.9;
	color:white;
}
	
.product-grid-title {
	color: var(--yzg-secondary-color); 
	margin: 30px 0 20px; 
	font-size: 1.6rem; 
	border-left: 5px solid var(--yzg-primary-blue); 
	padding-left: 20px;
}
	
/* 面包屑导航 */
.yzg-breadcrumb {
	background-color: var(--yzg-light-bg);
	padding: 18px 0;
	border-bottom: 1px solid var(--yzg-border-color);
}

.yzg-breadcrumb ol {
	display: flex;
	list-style: none;
	align-items: center;
	flex-wrap: wrap;
}

.yzg-breadcrumb li {
	margin-right: 10px;
	font-size: 0.95rem;
}

.yzg-breadcrumb li:not(:last-child)::after {
	content: "/";
	margin-left: 10px;
	color: var(--yzg-text-light);
}

.yzg-breadcrumb a {
	color: var(--yzg-text-light);
	text-decoration: none;
	transition: var(--yzg-transition);
}

.yzg-breadcrumb a:hover {
	color: var(--yzg-primary-blue);
}

.yzg-breadcrumb .yzg-current {
	color: var(--yzg-secondary-color);
	font-weight: 600;
}

/* ===== 产品展示区域 (与品牌真空泵中心页面一致) ===== */
.yzg-products-count {
    color: var(--yzg-text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--yzg-border-color);
}
.yzg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}
.yzg-product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--yzg-shadow-light);
    transition: var(--yzg-transition);
    border: 1px solid var(--yzg-border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.yzg-product-card:hover {
    transform: translateY(-10px);
    border-color: var(--yzg-primary-blue);
}
/* 卡片尺寸统一为品牌中心页面的规格 */
.yzg-product-header {
    background-color: var(--yzg-light-bg);
    padding: 25px 25px 15px;   /* 上左右25px，下15px (与品牌中心统一) */
    text-align: center;
    border-bottom: 1px solid var(--yzg-border-color);
    position: relative;
}
.yzg-product-brand {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--yzg-primary-blue);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 500;
}
.yzg-product-img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    margin-bottom: 15px;        /* 与品牌中心统一，增加图片下方间距 */
}
.yzg-product-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.yzg-product-name {
    color: var(--yzg-secondary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 600;
}
.yzg-product-type {
    color: var(--yzg-text-light);
    font-size: 0.95rem;
}
.yzg-product-body {
    padding: 20px 25px;        /* 上20px 左右25px (与品牌中心统一) */
    flex-grow: 1;
}
.yzg-product-features {
    list-style: none;
    margin-bottom: 20px;
}
.yzg-product-features li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}
.yzg-product-features li:last-child {
    border-bottom: none;
}
.yzg-product-features i {
    color: var(--yzg-secondary-orange);
    margin-right: 10px;
    font-size: 0.9rem;
}
.yzg-product-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--yzg-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.view-details {
    color: var(--yzg-primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: var(--yzg-transition);
}
.view-details i {
    transition: transform 0.2s;
}
.view-details:hover {
    color: var(--yzg-secondary-orange);
}
.view-details:hover i {
    transform: translateX(4px);
}
.yzg-products-grid .yzg-product-card {
    display: none;
}
.yzg-products-grid .yzg-product-card.show {
    display: flex;
}

/* ===== 分页控件 ===== */
.yzg-pagination-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--yzg-border-color);
}
.yzg-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px 0;
}
.yzg-pagination-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--yzg-border-color);
    border-radius: 4px;
    color: var(--yzg-text-dark);
    cursor: pointer;
    transition: var(--yzg-transition);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}
.yzg-pagination-btn:hover {
    background-color: var(--yzg-primary-blue);
    border-color: var(--yzg-primary-blue);
    color: white;
}
.yzg-pagination-btn:disabled {
    background-color: var(--yzg-light-bg);
    border-color: var(--yzg-border-color);
    color: var(--yzg-text-light);
    cursor: not-allowed;
}
.yzg-pagination-pages {
    display: flex;
    gap: 5px;
    margin: 0 10px;
}
.yzg-pagination-page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    background-color: white;
    border: 1px solid var(--yzg-border-color);
    border-radius: 4px;
    color: var(--yzg-text-dark);
    cursor: pointer;
    transition: var(--yzg-transition);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yzg-pagination-page:hover {
    background-color: var(--yzg-light-bg);
    border-color: var(--yzg-primary-blue);
}
.yzg-pagination-page.active {
    background-color: var(--yzg-primary-blue);
    border-color: var(--yzg-primary-blue);
    color: white;
}
.yzg-pagination-info {
    margin: 0 15px;
    color: var(--yzg-text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}
.yzg-pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    color: var(--yzg-text-light);
    font-size: 0.9rem;
}
.yzg-pagination-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid var(--yzg-border-color);
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}
.yzg-pagination-jump-btn {
    padding: 6px 12px;
    background-color: var(--yzg-primary-blue);
    border: 1px solid var(--yzg-primary-blue);
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: var(--yzg-transition);
    font-size: 0.9rem;
}
.yzg-pagination-jump-btn:hover {
    background-color: var(--yzg-primary-blue-dark);
}

/* ===== 独立页特有布局 ===== */
.product-grid-wrapper {
    max-width: 1060px;  /* 3列最小宽度 + 间隙：3*320px + 2*25px = 1010px，留点余量 */
    margin-left: auto;
    margin-right: auto;
}
.puyon-independent {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    padding-bottom: 40px;
}
.filter-bar {
    background: white;
    border-radius: 16px;
    padding: 30px 20px;
    margin-bottom: 40px;
    box-shadow: var(--yzg-shadow-light);
    border: 1px solid var(--yzg-border-color);
}
.filter-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}
.filter-row:last-child {
    margin-bottom: 0;
}
.filter-btn {
    padding: 10px 32px;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    color: var(--yzg-text-dark);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.filter-btn:hover {
    border-color: var(--yzg-primary-blue);
    color: var(--yzg-primary-blue);
    background-color: #f0f9ff;
}
.filter-btn.active {
    background-color: var(--yzg-primary-blue);
    border-color: var(--yzg-primary-blue);
    color: white;
}
.filter-btn.btn-all {
    background-color: var(--yzg-secondary-orange);
    border-color: var(--yzg-secondary-orange);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(241,130,0,0.2);
}
.filter-btn.btn-all:hover {
    background-color: var(--yzg-secondary-orange-dark);
    border-color: var(--yzg-secondary-orange-dark);
    transform: translateY(-2px);
}
.case-section {
    margin-top: 10px;
}
.case-section h2 {
    font-size: 1.8rem;
    color: var(--yzg-secondary-color);
    text-align: center;
    margin-bottom: 30px;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.case-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--yzg-shadow-light);
    border: 1px solid var(--yzg-border-color);
    transition: var(--yzg-transition);
}
.case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--yzg-shadow-medium);
    border-color: var(--yzg-primary-blue);
}
.case-img {
    height: 180px;
    background-color: var(--yzg-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.case-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.case-info {
    padding: 20px;
    text-align: center;
}
.case-info h4 {
    font-size: 1.2rem;
    color: var(--yzg-secondary-color);
    margin-bottom: 8px;
}
.case-info p {
    color: var(--yzg-text-light);
    font-size: 0.9rem;
}

/* ===== 响应式调整 ===== */
@media (max-width: 1200px) {
	.yzg-page-header h1 {
		font-size: 2.5rem;
	}
}

@media (max-width: 992px) {
	.yzg-page-header h1 {
		font-size: 2.5rem;
	}
    .yzg-products-grid {
        grid-template-columns: repeat(2, 1fr); /* 保持两列，但手机下会被覆盖 */
    }
}

@media (max-width: 768px) {
	.yzg-page-header {
		padding: 130px 0 60px;
	}
	.yzg-page-header h1 {
		font-size: 1.9rem;
	}
    .puyon-independent {
        margin-top: 80px;
    }
    .case-grid {
        grid-template-columns: 1fr;
    }
    .filter-btn {
        min-width: 100px;
        padding: 8px 20px;
    }
    .yzg-pagination {
        flex-direction: column;
        gap: 15px;
    }
    .yzg-pagination-pages {
        order: 3;
        margin-top: 10px;
    }
    .yzg-pagination-info {
        order: 2;
        margin: 0;
    }
    .yzg-pagination-jump {
        order: 4;
        margin-left: 0;
        margin-top: 10px;
    }
    .yzg-pagination-btn {
        order: 1;
    }
    /* 手机端强制单列显示，与品牌真空泵中心页面一致 */
    .yzg-products-grid {
        grid-template-columns: 1fr;
    }
}