/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 头部样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 50px;
}

.nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.nav-link.active,
.nav-link:hover {
    color: #2563eb;
}

.nav-link.active::after,
.nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #2563eb;
}

.menu-toggle {
    font-size: 24px;
    border: none;
    background: none;
    color: #333;
    cursor: pointer;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.mobile-nav-link {
    display: block;
    color: #333;
    padding: 10px 0;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #2563eb;
}

/* 轮播图样式 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slider {
    position: relative;
    height: 100%;
}

/* 顶部通知栏样式 */
.top-notification {
    font-size: 14px;
}

/* 轮播图覆盖层样式 */
.banner-slide {
    position: relative;
}

.banner-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    max-width: 800px;
}

/* 信任标识区样式 */
.trust-logos {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.trust-logo img {
    max-height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-logo img:hover {
    opacity: 1;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-dot.active {
    background-color: #fff;
}

/* 产品样式 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* 新闻样式 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-title a {
    color: #333;
    transition: color 0.3s;
}

.news-title a:hover {
    color: #2563eb;
}

/* 常见问题样式 */
.faq-question {
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

/* 用户评价样式 */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .testimonial-slide {
        width: 50%; /* 在小屏幕上显示2个评价 */
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        width: 33.333%; /* 在大屏幕上显示3个评价 */
    }
}

.testimonial-prev,
.testimonial-next {
    z-index: 10;
}

/* 联系我们样式 */
.contact-content {
    display: flex;
    flex-wrap: wrap;
}

/* 页脚样式 */
.footer-links h3 {
    color: #fff;
}

.footer-links a {
    color: #aaa;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .banner {
        height: 200px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-name {
        font-size: 14px;
    }

    .product-description {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }
}