/* 浜у搧涓績椤甸潰鏍峰紡 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.product-main {
    flex: 1;
}

.product-detail-main {
    flex: 1;
}

.product-main {
    margin-top: 86px;
    position: relative;
    background-color: #fff;
}

/* 浜у搧banner */
.product-banner {
    background: url('../../images/product/bg.png') no-repeat center center;
    background-size: cover;
    padding: 70px 0;
    text-align: left;
    position: relative;
}

.product-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-banner .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-banner h1 {
    color: #000;
    font-size: 48px;
    font-weight: 400;
    margin-left: 180px;
}

.product-banner-image {
    max-height: 200px;
    margin-right: 60px;
}

/* 浜у搧鍒楄〃鍖哄煙 */
.product-list {
    padding: 40px 0;
    max-width: 1000px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: visible;
    transition: all 0.3s ease;
    height: auto;
    min-height: 140px;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    display: block;
}

.product-content {
    padding: 12px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue {
    background-color: #e6f7ff;
    color: #1890ff;
}

.tag-orange {
    background-color: #fff7e6;
    color: #fa8c16;
}

.product-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 6px;
}

.product-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    max-height: none;
    overflow: visible;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-primary {
    display: inline-block;
    padding: 4px 14px;
    background-color: #1F79FF;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline {
    display: inline-block;
    padding: 4px 14px;
    background-color: #fff;
    color: #1F79FF;
    border: 1px solid #1F79FF;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #0062e6;
}

.btn-outline:hover {
    background-color: #f0f7ff;
}

/* 鍒嗛〉鏍峰紡 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    gap: 8px;
    text-align: center;
    width: 100%;
}

.pagination a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-num.active {
    background-color: #1F79FF;
    color: #fff;
}

.pagination .page-num:hover:not(.active) {
    background-color: #f0f0f0;
}

.pagination .page-prev,
.pagination .page-next {
    color: #666;
}

.pagination .page-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    color: #666;
}

/* 鍝嶅簲寮忚璁 */
@media (max-width: 992px) {
    .product-list {
        padding: 30px 20px;
    }

    .product-item {
        flex-direction: column;
        height: auto;
    }

    .product-image {
        width: 100%;
        height: 160px;
    }

    .product-banner h1 {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .product-main {
        margin-top: 60px;
    }

    .product-banner {
        padding: 40px 0;
    }

    .product-banner .container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .product-banner h1 {
        font-size: 32px;
        margin-left: 0;
        margin-bottom: 20px;
    }

    .product-banner-image {
        max-height: 100px;
        margin-right: 0;
    }

    .product-list {
        padding: 20px 15px;
    }

    .product-item {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .product-image {
        height: 140px;
        border-radius: 8px 8px 0 0;
    }

    .product-content {
        padding: 12px;
    }

    .product-content h3 {
        font-size: 15px;
        margin-bottom: 5px;
    }

    .product-content p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .product-tags {
        flex-wrap: wrap;
        margin-bottom: 4px;
    }

    .tag {
        padding: 1px 6px;
        font-size: 11px;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn-primary, .btn-outline {
        text-align: center;
        width: 100%;
        padding: 6px 0;
        font-size: 12px;
    }

    .pagination {
        margin: 30px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .product-banner h1 {
        font-size: 28px;
    }

    .product-banner-image {
        max-height: 80px;
    }

    .product-image {
        height: 120px;
    }

    .product-content h3 {
        font-size: 14px;
    }

    .product-content p {
        font-size: 11px;
        line-height: 1.4;
    }

    .pagination a {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}