
/* 自定义样式增强轮播图效果 */
.carousel-item {
    height: 600px;
    background-color: #333; /* 图片加载前的背景色 */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 5px;
    bottom: 20%;
}

.carousel-caption h3 {
    color: #f97316;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #e04a2d;
    border-color: #e04a2d;
}

.btn-outline-primary {
    border-color: var(--light-color);
    color: var(--light-color);
    padding: 12px 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
}


.category-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-card img {
    height: 300px;
    object-fit: cover;
}

.quality-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 10px;
    margin-bottom: 10px;
}

.testimonial-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 5px;
    margin-bottom: 30px;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.certifications-section {
    background-color: var(--secondary-color);
    padding: 80px 0;
}

.cert-logo {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.cert-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.cta-section {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-weight: 700;
    margin-bottom: 20px;
}


@media (max-width: 768px) {
    .carousel-item {
        height: 300px;
    }

    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

}