
/* ===== 左右布局产品分类页面 ===== */
.yzg-products-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px 70px;
    gap: 30px;
}

/* 左侧分类栏 */
.yzg-category-sidebar {
    flex: 0 0 280px;
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--yzg-shadow-light);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.yzg-sidebar-title {
    color: var(--yzg-secondary-color);
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--yzg-primary-blue);
}

.yzg-category-list {
    list-style: none;
}

.yzg-category-item {
    margin-bottom: 8px;
}

.yzg-category-link {
    display: block;
    padding: 12px 15px;
    color: var(--yzg-text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--yzg-transition);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.yzg-category-link:hover {
    background-color: rgba(0, 127, 204, 0.08);
    color: var(--yzg-primary-blue);
    border-left-color: var(--yzg-primary-blue);
}

.yzg-category-link.yzg-active {
    background-color: rgba(0, 127, 204, 0.12);
    color: var(--yzg-primary-blue);
    font-weight: 600;
    border-left-color: var(--yzg-primary-blue);
}

.yzg-category-link i {
    margin-right: 10px;
    color: var(--yzg-primary-blue);
    width: 20px;
    text-align: center;
}

/* 右侧产品展示区域 */
.yzg-products-main {
    flex: 1;
}

/* 品牌筛选 */
.yzg-brand-filter {
    background-color: var(--yzg-light-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--yzg-shadow-light);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.yzg-brand-filter-btn {
    padding: 8px 16px;
    background-color: white;
    border: 1px solid var(--yzg-border-color);
    border-radius: 50px;
    color: var(--yzg-text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--yzg-transition);
    font-size: 0.9rem;
}

.yzg-brand-filter-btn:hover {
    border-color: var(--yzg-primary-blue);
    color: var(--yzg-primary-blue);
}

.yzg-brand-filter-btn.yzg-active {
    background-color: var(--yzg-primary-blue);
    border-color: var(--yzg-primary-blue);
    color: white;
}

/* 产品数量显示 */
.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);
    box-shadow: var(--yzg-shadow-hover);
    border-color: var(--yzg-primary-blue);
}

.yzg-product-header {
    background-color: var(--yzg-light-bg);
    padding: 25px;
    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: 25px;
    flex-grow: 1;
}

.yzg-product-description {
    color: var(--yzg-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.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;
}

/* 咨询表单部分 */
.yzg-consult-form-section {
    padding: 70px 0;
    background-color: white;
}

.yzg-consult-form-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.yzg-consult-form-box {
    background-color: var(--yzg-light-bg);
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--yzg-shadow-light);
}

.yzg-consult-form-box h3 {
    color: var(--yzg-secondary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.yzg-consult-form-box p {
    color: var(--yzg-text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
}

.yzg-consult-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.yzg-form-group {
    margin-bottom: 20px;
}

.yzg-form-group.yzg-full-width {
    grid-column: 1 / -1;
}

.yzg-form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--yzg-secondary-color);
    font-weight: 500;
}

.yzg-form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--yzg-border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--yzg-text-dark);
    transition: var(--yzg-transition);
}

.yzg-form-input:focus {
    outline: none;
    border-color: var(--yzg-primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 127, 204, 0.1);
}

.yzg-form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--yzg-border-color);
    border-radius: 6px;
    font-size: 1rem;
    color: var(--yzg-text-dark);
    transition: var(--yzg-transition);
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.yzg-form-textarea:focus {
    outline: none;
    border-color: var(--yzg-primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 127, 204, 0.1);
}

.yzg-form-submit {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

/* 页面标题区域 */
.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;
}
	
/* 面包屑导航 */
.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;
}		
	
/* 产品分类页响应式设计 */
@media (max-width: 1200px) {
    .yzg-products-layout,
    .yzg-consult-form-container {
        max-width: 100%;
        padding: 40px 20px 70px;
    }
	.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);
    }
    
    .yzg-products-layout {
        flex-direction: column;
    }
    
    .yzg-category-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 30px;
    }
    
    .yzg-consult-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .yzg-page-header {
        padding: 130px 0 60px;
    }
    
    .yzg-page-header h1 {
        font-size: 1.9rem;
    }
    
    .yzg-products-grid {
        grid-template-columns: 1fr;
    }
    
    .yzg-consult-form-box {
        padding: 30px 20px;
    }
    
    .yzg-brand-filter {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .yzg-brand-filter-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .yzg-page-header h1 {
        font-size: 1.7rem;
    }
    
    .yzg-product-header,
    .yzg-product-body,
    .yzg-product-footer {
        padding: 20px;
    }
}

/* 产品卡片默认隐藏，通过分页控制显示 */
.yzg-products-grid .yzg-product-card {
    display: none;
}

/* 分页显示的产品卡片 */
.yzg-products-grid .yzg-product-card.show {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* ===== 分页控件样式 ===== */
.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-btn:disabled:hover {
    background-color: var(--yzg-light-bg);
    border-color: var(--yzg-border-color);
    color: var(--yzg-text-light);
}

.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);
}

/* 产品卡片每页显示6个 */
.yzg-products-grid .yzg-product-card {
    display: none;
}

.yzg-products-grid .yzg-product-card.show {
    display: flex;
}
	
/* 响应式调整 */
@media (max-width: 768px) {
    .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;
    }
}

@media (max-width: 480px) {
    .yzg-pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .yzg-pagination-page {
        min-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.yzg-product-group {
    will-change: transform; /* 优化动画性能 */
    transform: translateZ(0); /* 启用GPU加速 */
}

/* 防止滚动时的布局抖动 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 导航栏高度 */
}

/* 产品组切换时保持稳定 */
.yzg-product-group[style*="display: none"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.yzg-product-group[style*="display: block"] {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    height: auto;
}
	/* 确保分页按钮可点击 */
.yzg-pagination-btn:not(:disabled) {
    cursor: pointer;
}

.yzg-pagination-btn:not(:disabled):hover {
    background-color: var(--yzg-primary-blue);
    border-color: var(--yzg-primary-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 127, 204, 0.2);
}

/* 页码按钮样式 */
.yzg-pagination-page {
    cursor: pointer;
    transition: all 0.3s ease;
}

.yzg-pagination-page:hover {
    background-color: var(--yzg-primary-blue);
    color: white;
    border-color: var(--yzg-primary-blue);
}

.yzg-pagination-page.active {
    background-color: var(--yzg-primary-blue);
    color: white;
    border-color: var(--yzg-primary-blue);
    cursor: default;
}

/* 确保分页容器可见 */
.yzg-pagination-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

