/* ================= 产品中心样式 (Products Page) ================= */
:root {
    --brand-primary: #1677C9;
    --brand-primary-dark: #125f9f;
    --brand-secondary: #32B8B8;
    --brand-tertiary: #A3A8E0;
}

/* 1. 静态英雄区 (与进入途瑞一致) */
.page-hero {
    position: relative;
    height: 48vh;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content-static {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content-static h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: heroFadeInUp 0.8s ease forwards;
}

.hero-content-static p {
    font-size: 1.2rem;
    opacity: 0;
    animation: heroFadeInUp 0.8s ease forwards 0.3s;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. 主体布局 (侧边栏 + 网格) */
.product-main-section {
    padding: 60px 0;
    background-color: #f5f5f5;
    min-height: 800px;
    position: relative;
    z-index: 0;
}

.product-main-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.2) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 51, 153, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(0, 51, 153, 0.04) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px, 60px 60px;
    background-position: -1px -1px, 0 0, 0 0;
    z-index: 0;
    pointer-events: none;
}

.product-main-section > .container {
    position: relative;
    z-index: 1;
}

.product-layout {
    display: flex;
    gap: 30px;
}

/* 侧边栏样式 */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: fit-content;
    position: sticky;
    top: 100px; /* 距离顶部导航栏留出一点空间 */
    z-index: 10;
}

.sidebar-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    color: var(--brand-primary); /* 蓝色主题 */
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
}

.en-title {
    font-size: 0.8rem;
    color: #999;
    font-weight: normal;
    margin-top: 5px;
    text-transform: uppercase;
}

.category-group {
    margin-bottom: 5px;
}

.category-title {
    padding: 12px 15px;
    background: #f8f9fa;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.category-title:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.category-title.active {
    background: var(--brand-primary);
    color: #fff;
}

.category-title .bar {
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--brand-secondary);
    margin-right: 10px;
}

.category-title.active .bar {
    background: #fff;
}

.category-list {
    list-style: none;
    padding: 10px 0 10px 20px;
    display: none; /* 默认折叠 */
}

.category-group.active .category-list {
    display: block;
}

.cat-link {
    display: block;
    padding: 8px 0;
    color: #666;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.cat-link:hover {
    color: var(--brand-primary);
}

.cat-link.active {
    color: var(--brand-primary);
    font-weight: bold;
}

/* 右侧内容区域 */
.product-content {
    flex: 1;
}

.product-grid {
    display: grid;
    /* 改为两列排版 */
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品卡片样式 */
.product-card {
    background: #fff;
    border-radius: 8px; /* 增加圆角 */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* 更柔和的阴影 */
    transition: all 0.3s ease;
    border: 1px solid #eaeaea; /* 浅灰边框 */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 20px; /* 为顶部标签留出空间 */
}

.product-enter {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    animation: productCardIn 0.5s ease forwards;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--brand-primary); /* 悬停时边框变蓝 */
}

/* 顶部蓝色标签居中 */
.card-tag {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 4px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    z-index: 2;
}

.card-image {
    width: 100%;
    height: 250px; /* 加大图片区域 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 30px; /* 避开标签 */
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.08);
}

.card-info {
    padding: 25px;
    background: #fafafa; /* 浅灰底色 */
    margin-top: auto; /* 保证在底部 */
}

.card-title {
    font-size: 1.25rem; /* 标题加粗加大 */
    color: #222;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-specs {
    font-size: 0.95rem; /* 尺寸信息加大 */
    color: #666;
    line-height: 1.8;
}

.spec-row {
    display: flex;
    justify-content: space-between;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-btn:hover, .page-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

@keyframes productCardIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式适配 */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .product-hero-slider {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
}
