/* 轮播容器样式 */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    color: white;
}

.carousel {
    position: relative;
    width: 100%;
    height: 500px;
}

/* 轮播幻灯片样式 */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

/* 为每个幻灯片设置不同的背景色 */
.carousel-slide:nth-child(1) {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.carousel-slide:nth-child(2) {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.carousel-slide:nth-child(3) {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.carousel-slide:nth-child(4) {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.carousel-slide:nth-child(5) {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

/* 轮播内容样式 */
.carousel-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    z-index: 2;
}

.carousel-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    color: white;
}

.carousel-content h2::after {
    display: none;
}

.carousel-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    color: white;
}

/* 轮播导航按钮样式 */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    transform: translateY(-50%);
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
}

.indicator {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    width: 40px;
    border-radius: 6px;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 关于我们模块样式 */
.about-us {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* 关于我们内容布局 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* 图片区域样式 */
.about-image {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #e3f2fd;
}

/* 图片占位符样式 */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #2196f3;
}

.image-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.image-text {
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0.8;
}

/* 文字内容样式 */
.about-text {
    padding: 0 1rem;
}

.about-text h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.about-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    margin: 0.5rem 0 0;
    border-radius: 2px;
    transform: none;
    left: 0;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 按钮容器样式 */
.about-button {
    text-align: center;
    margin-top: 2rem;
}

/* 公司特色区域样式 */
.company-features {
    padding: 4rem 0;
    background: #fff;
}

/* 区域标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* 特色卡片网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

/* 特色卡片样式 */
.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #1abc9c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* 特色图标样式 */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #3498db;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* 卡片标题样式 */
.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

/* 卡片描述样式 */
.feature-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 热门产品和最新产品模块样式 */
.popular-products,
.new-products {
    padding: 4rem 0;
    background: #fff;
}

.popular-products {
    background: #f8f9fa;
}

/* 产品网格样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 产品卡片样式 */
.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #3498db;
}

/* 产品图片区域 */
.product-image {
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.product-item:hover .product-image {
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    transform: scale(1.05);
}

/* 产品信息区域 */
.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.product-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

/* 产品特性标签 */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.product-features span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    background: #f8f9fa;
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.product-features span:hover {
    background: #e3f2fd;
    border-color: #3498db;
    color: #3498db;
}

.product-features i {
    font-size: 0.9rem;
    color: #3498db;
}

/* 轮播响应式调整 */
@media (max-width: 900px) {
    .carousel {
        height: 400px;
    }
    
    .carousel-content h2 {
        font-size: 2.5rem;
    }
    
    .carousel-content p {
        font-size: 1.1rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .carousel {
        height: 350px;
    }
    
    .carousel-content h2 {
        font-size: 2rem;
    }
    
    .carousel-content p {
        font-size: 1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        padding: 0 1rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
    }
    
    /* 关于我们响应式调整 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        height: 300px;
    }
    
    .about-text h2 {
        text-align: center;
    }
    
    .about-text h2::after {
        margin: 0.5rem auto 0;
    }
    
    .features-grid,
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card,
    .product-item {
        padding: 1.5rem;
    }
    
    .product-image {
        height: 200px;
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 300px;
    }
    
    .carousel-content h2 {
        font-size: 1.6rem;
    }
    
    .carousel-content p {
        font-size: 0.9rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-nav {
        padding: 0 0.5rem;
    }
    
    .carousel-indicators {
        gap: 0.5rem;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
    
    .indicator.active {
        width: 30px;
    }
    
    .product-image {
        height: 180px;
        font-size: 3.5rem;
    }
    
    .product-info {
        padding: 1.2rem;
    }
    
    .product-features {
        flex-direction: column;
        gap: 0.6rem;
    }
}