/* ===== Product Center Styles ===== */

/* Hero Section */
.product-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/product-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    height: 350px;
}

.product-hero .title,
.product-hero .subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Category Tabs */
.category-tabs {
    background-color: #f7f7f7;
    padding-top: 1rem;
    padding-bottom: 0;
    border-bottom: 1px solid #eee;
}

.category-tabs .tabs {
    margin-bottom: 0;
}

.category-tabs .tabs ul {
    border-bottom-color: transparent;
}

.category-tabs .tabs li a {
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: #555;
    border-bottom-width: 2px;
    transition: all 0.3s ease;
}

.category-tabs .tabs li.is-active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.category-tabs .tabs li a:hover {
    color: var(--primary-color);
    border-bottom-color: #ddd;
}

/* Product Filter */
.filter-section {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
    background-color: #fff;
}

.filter-section .buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filter-section .button {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    color: #666;
    transition: all 0.3s ease;
}

.filter-section .button.is-active,
.filter-section .button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Product Grid */
.product-grid {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.product-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #0099ff;
}

.product-card .card-image {
    padding: 0.5rem;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .image img {
    max-height: 100%;
    object-fit: contain;
}

.product-card .card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card .title {
    margin-bottom: 0.25rem;
    color: #333;
}

.product-card .subtitle {
    color: #666;
    margin-bottom: 0.75rem;
}

.product-model {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.product-desc {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.pagination {
    margin: 0.75rem 0;
}

.pagination-link {
    border-color: #e0e0e0;
    color: #666;
}

.pagination-link.is-current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination-previous,
.pagination-next {
    border-color: #e0e0e0;
    color: #666;
}

.pagination-previous[disabled],
.pagination-next[disabled] {
    color: #ccc;
}

/* Contact Form Section */
.contact-form-section {
    padding: 3rem 0;
}

.blue-gradient {
    background: linear-gradient(135deg, #0075c9, #00b0ff);
    color: white;
}

.contact-form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
}

.contact-form .input {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    height: 3rem;
}

.contact-form .button {
    margin-top: 1rem;
    padding: 0.5rem 2rem;
    height: auto;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-form .button:hover {
    background-color: white;
    color: #0099ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Styles */
@media screen and (max-width: 1023px) {
    .product-hero {
        margin-top: 0;
    }

    .product-card .image {
        height: 140px;
    }
    
    .category-tabs .tabs li a {
        padding: 0.75rem 1rem;
    }
}

@media screen and (max-width: 768px) {
    .column.is-one-fifth {
        width: 50%;
    }
    
    .filter-section .buttons {
        justify-content: center;
    }
    
    .category-tabs .tabs ul {
        justify-content: center;
    }
    
    .contact-form-section .columns {
        margin-left: 0;
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    .column.is-one-fifth {
        width: 100%;
    }

    .product-card .image {
        height: 180px;
    }
}

/* 产品计数显示 */
.product-count {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}
