/* 产品区块 */
.products-section {
    width: 100%;
    padding: 60px 20px 80px;
}

/* 内容容器 最大宽度1560px */
.products-container {
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
}

/* ===== 页面主标题样式 (H1) ===== */
.products-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.products-section-subtitle {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== 分类导航样式 (支持移动端单行横向滚动及居中) ===== */
.products-category-nav-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 40px;
    margin-top: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.products-category-nav-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.products-category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    white-space: nowrap;
}

.products-category-btn {
    width: 180px;
    height: 80px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.products-category-btn:hover,
.products-category-btn.active {
    background-color: #06b6d4;
    color: #ffffff;
    border-color: #06b6d4;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.07);
}

/* 产品网格 桌面3列 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* 产品卡片 */
.products-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 2px solid #06b6d4;
    display: none;
}

.products-card.active {
    display: block;
}

/* 图片容器 桌面端强制500px*500px */
.products-image-box {
    width: 100%;
    height: 500px;
    background: #f8fafc;
    overflow: hidden;
}

.products-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products-card:hover .products-image {
    transform: scale(1.05);
}

/* 卡片文字区域 */
.products-content {
    padding: 26px;
}

/* 产品标题 单行省略 */
.products-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.products-name a {
    color: #1e293b;
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-name a:hover {
    color: #06b6d4;
}

/* 按钮组 */
.products-button-group {
    display: flex;
    gap: 16px;
}

.products-btn {
    flex: 1;
    text-align: center;
    padding: 13px 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.products-more-btn {
    border: 1px solid #06b6d4;
    color: #06b6d4;
    background: transparent;
    z-index: 1;
}

.products-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #06b6d4;
    transition: width 0.35s ease-in-out;
    z-index: -1;
}

.products-more-btn:hover::before {
    width: 100%;
}

.products-more-btn:hover {
    color: #ffffff;
}

.products-inquiry-btn {
    background-color: #06b6d4;
    color: #ffffff;
}

.products-inquiry-btn:hover {
    background-color: #0891b2;
}

/* ===== 分页样式 ===== */
.products-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 60px;
    gap: 8px;
}

.products-pagination-btn {
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
}

.products-pagination-btn:hover:not(:disabled):not(.disabled) {
    border-color: #06b6d4;
    color: #06b6d4;
}

.products-pagination-btn.active {
    background-color: #06b6d4;
    border-color: #06b6d4;
    color: #ffffff;
}

.products-pagination-btn:disabled,
.products-pagination-btn.disabled {
    background-color: #f1f5f9;
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
    pointer-events: none;
}

.products-pagination-dots {
    padding: 0 6px;
    color: #64748b;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    height: 42px;
}

/* ===== 响应式适配 ===== */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* 移动端图片容器固定宽450px、高200px，居中展示 */
    .products-image-box {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .products-section {
        padding: 40px 16px 60px;
    }

    .products-section-title {
        font-size: 28px;
    }

    /* 移动端强制单行横向排列，取消换行 */
    .products-category-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0 10px;
    }

    .products-category-btn {
        width: 140px;
        height: 70px;
    }
}

/* 超小屏兼容：屏幕宽度不足450px时图片自适应100%宽度 */
@media (max-width: 480px) {
    .products-image-box {
        height: auto;
        aspect-ratio: 1 / 1;
    }
}