/* ===== 产品页面专用样式 ===== */
.products-main {
    background: white;
    padding-top: 160px;
    min-height: calc(100vh - 160px);
}

/* 产品标题区域 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.decoration-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.decoration-icon {
    margin: 0 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(72, 202, 228, 0.4);
}

/* 产品筛选按钮 */
.btn-filter {
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.btn-filter:hover, .btn-filter.active {
    background: var(--primary-color);
    color: var(--white);
    /* 移除移动端向上移动效果 */
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* 产品网格布局 */
.product-grid {
    margin: 0 auto;
    min-height: 500px;
}

.product-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
    height: 436px;
    width: 400px;
    margin: 0 auto;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.btn-detail {
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    max-width: 150px;
}

.btn-detail:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* 模态框样式 */
.product-modal-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.product-category.badge {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 5px 10px;
    margin-bottom: 15px;
}

.product-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

.specs-list {
    list-style: none;
    padding-left: 0;
}

.specs-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.specs-list i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 14px;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 991.98px) {
    .product-image-container {
        width: 350px;
        height: 320px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .product-image-container {
        width: 100%;
        height: 300px;
        max-width: 436px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .product-filters {
        flex-direction: column;
        align-items: center;
    }

    .btn-filter {
        width: 100%;
        max-width: 200px;
        margin-bottom: 10px;
    }
}

@media (max-width: 575.98px) {
    .product-image-container {
        height: 250px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1.1rem;
    }
}
/* 移动端优化样式 */
@media (max-width: 767.98px) {
    .products-main {
        padding-top: 120px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .title-decoration {
        margin-top: 10px;
    }

    .decoration-line {
        width: 50px;
    }

    .decoration-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin: 0 10px;
    }

    /* 产品筛选按钮横向滚动布局 */
    .product-filters {
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        display: block;
    }

    .product-filters::-webkit-scrollbar {
        display: none;
    }

    .product-filters .d-flex {
        display: inline-flex !important;
        flex-wrap: nowrap !important;
        padding: 0 15px;
    }

    .btn-filter {
        white-space: nowrap;
        margin: 0 5px;
        padding: 6px 15px;
    }

    /* 产品网格优化 */
    .product-grid {
        margin-top: 20px;
        min-height: 400px;
    }

    .product-item {
        margin-bottom: 15px;
    }

    .product-image-container {
        height: 220px;
    }

    /* 减少整体间距 */
    .products-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .pagination-container {
        margin-top: 30px !important;
    }
}

@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.5rem;
    }

    .product-image-container {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .btn-detail {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}