body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
}

/* 产品分类导航 */
.products-category-section {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.products-category-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.products-category-list {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 5px 0;
    white-space: nowrap;
}

.products-category-item {
    width: 180px;
    height: 80px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: var(--transition);
    font-weight: 500;
    background-color: var(--gray-light);
    text-decoration: none;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.products-category-item:hover {
    background-color: var(--primary);
    color: var(--white);
}

.products-category-item.active {
    background-color: var(--primary);
    color: var(--white);
}

/* 产品展示区域 */
.products-section {
    margin-bottom: 60px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-section-heading {
    font-size: 1.8rem;
    color: var(--text-dark);
}

.products-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

/* 产品卡片样式 */
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-bottom: 2px solid var(--primary);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image-container {
    width: 100%;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info a {
    text-decoration: none;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    transition: all 550ms;
    /* 单行显示，超出部分省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title:hover {
    color: var(--primary);
}

.product-description {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 0.95rem;
    /* 单行显示，超出部分省略 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-product-actions {
    display: flex;
    gap: 10px;
    justify-content: center; /* 按钮居中对齐 */
}

.products-btn {
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap; /* 确保按钮文字不换行 */
}

.products-btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.products-btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.products-btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.products-btn-primary:hover {
    background-color: var(--primary-dark);
}

/* 分页控件 */
.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.products-pagination-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-light);
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-pagination-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.products-pagination-btn.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.products-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: var(--text-light);
    color: var(--text-light);
    background-color: var(--gray-light);
}

/* 响应式布局 */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-image-container {
        height: 500px; /* PC端图片尺寸 */
    }
    .products-btn {
        flex: 1; /* PC端按钮自适应宽度 */
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .product-image-container {
        height: 500px; /* 平板端图片尺寸 */
    }
    .products-btn {
        flex: 1; /* 平板端按钮自适应宽度 */
    }
}

@media (max-width: 767px) {
    .products-grid {
        gap: 15px;
    }

    .products-section-heading {
        font-size: 1.5rem;
    }

    .product-image-container {
        margin: 0 auto; /* 居中显示 */
    }

    .product-info {
        padding: 12px; /* 减少整体内边距 */
    }

    .product-title {
        font-size: 1rem; /* 缩小标题字体 */
        margin-bottom: 5px; /* 缩短标题与描述间距 */
    }

    .product-description {
        font-size: 0.85rem; /* 缩小描述字体 */
        margin-bottom: 12px; /* 缩短描述与按钮间距 */
    }

    /* 移动端按钮优化 */
    .products-btn {
        flex: 1;
        height: 36px;
        padding: 0;
        font-size: 0.75rem; /* 调整字体大小确保一行显示 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}