/* Banner轮播图样式 */
.banner {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.banner-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

    .banner-slide.active {
        opacity: 1;
    }

    .banner-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
    }

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

    .banner-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .banner-content p {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

.banner-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

    .banner-dot.active {
        background: white;
        transform: scale(1.2);
    }

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

    .banner-arrow:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .banner-arrow.prev {
        left: 20px;
    }

    .banner-arrow.next {
        right: 20px;
    }

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    float: right;
}

    .btn:hover {
        background: #ff6f00;
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    }

/* 服务区域样式 */
.services {
    padding: 60px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

    .section-title h2 {
        font-size: 2rem;
        color: var(--primary-color);
        display: inline-block;
        padding-bottom: 10px;
        position: relative;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--accent-color);
        }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    text-align: center;
    padding: 30px 20px;
    opacity: 0;
    transform: translateY(30px);
}

    .service-card.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
}

/* 产品展示区域 - 全屏背景 */
.products {
    padding: 100px 0;
    position: relative;
    background-size: cover;
    color: white;
}

    .products::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
    }

    .products .container {
        position: relative;
        z-index: 1;
    }

    .products .section-title h2 {
        color: white;
    }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

    .product-card.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        background: rgba(255, 255, 255, 0.15);
    }

.product-img {
    height: 280px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: center;
}

    .product-info h3 {
        font-size: 1.3rem;
        color: white;
        margin-bottom: 10px;
    }

    .product-info p {
        color: #ccc;
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

/* 关于我们区域 */
.about {
    background: var(--light-color);
    padding: 60px 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-img {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

    .about-img.animated {
        opacity: 1;
        transform: translateX(0);
    }

    .about-img img {
        width: 100%;
        height: auto;
        display: block;
    }

.about-text {
    flex: 1;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

    .about-text.animated {
        opacity: 1;
        transform: translateX(0);
    }

    .about-text h2 {
        font-size: 2rem;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .about-text p {
        margin-bottom: 15px;
        line-height: 30px;
    }

/* 证书滚动显示区域 - 优化版 */
.certificates {
    padding: 60px 0;
    background: white;
    position: relative;
    overflow: visible; /* 允许箭头超出区域 */
}

.cert-outer-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* 隐藏超出容器的内容 */
}

.cert-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px; /* 与内容容器宽度一致 */
    margin: 0 auto;
}

.cert-container {
    width: 100%; /* 证书区域宽度等于内容宽度 */
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    padding: 0 5px;
}

.cert-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    transition: transform 0.5s ease;
}

.cert-card {
    flex: 0 0 275px;
    height: 380px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

    .cert-card.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .cert-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .cert-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cert-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

    .cert-arrow:hover {
        background: var(--primary-color);
        color: white;
    }

    /* 箭头位置：在内容区域之外 */
    .cert-arrow.prev {
        left: -25px; /* 完全在内容区域左侧之外 */
    }

    .cert-arrow.next {
        right: -25px; /* 完全在内容区域右侧之外 */
    }

/* 新闻区域 - 图文混排 */
.news {
    padding: 60px 0;
    background: white;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

    .news-card.animated {
        opacity: 1;
        transform: translateY(0);
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

.news-img {
    height: 200px;
    overflow: hidden;
}

    .news-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: var(--transition);
    }

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 20px;
}

    .news-content p {
        font-weight: normal;
    }

.news-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 0.9rem;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.news-card p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.news-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
}

    .news-card a i {
        margin-left: 5px;
        transition: var(--transition);
    }

    .news-card a:hover i {
        transform: translateX(5px);
    }

/* 响应式设计 */
@media (max-width: 1250px) {
    /* 在接近内容宽度的屏幕上调整箭头位置 */
    .cert-arrow.prev {
        left: 10px;
    }

    .cert-arrow.next {
        right: 10px;
    }
}

@media (max-width: 992px) {
    .banner-content h2 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        justify-content: center;
    }

    .dropdown-menu.columns-2,
    .dropdown-menu.columns-3 {
        width: auto;
        left: 0;
        right: 0;
    }
}

@media (max-width: 768px) {

    .about-content {
        flex-direction: column;
    }

    .banner {
        height: 400px;
    }

    .banner-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .banner-content h2 {
        font-size: 1.8rem;
    }

    .search-box {
        margin-right: 10px;
    }

        .search-box input {
            width: 150px;
        }

    .product-img {
        height: 250px;
    }

    .about-img {
        flex: 1;
        min-width: 300px;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.8s ease;
    }

    .about-text {
        flex: 1;
        min-width: 300px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.8s ease;
    }

    /* 证书区域响应式 */
    .cert-card {
        flex: 0 0 140px;
        height: 220px;
    }

    .cert-arrow {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .banner {
        height: 350px;
    }

    .banner-content h2 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .product-grid,
    .news-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .banner-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

        .banner-arrow.prev {
            left: 10px;
        }

        .banner-arrow.next {
            right: 10px;
        }

    .top-bar {
        padding: 8px 0;
        font-size: 0.8rem;
    }

    .contact-info span {
        margin-right: 10px;
    }

    .search-box input {
        width: 120px;
        padding: 4px 10px;
    }

    .product-img {
        height: 220px;
    }

    /* 证书区域响应式 */
    .cert-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .cert-card {
        flex: 0 0 120px;
        height: 180px;
    }
}
