/* 首页独立样式 - 只包含首页特有内容样式，页头页尾已分离到全局文件 */

/* 简洁全屏轮播图 */
.simple-slider {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden;
}

.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.simple-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.simple-dots .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.simple-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.simple-dots .dot:hover {
    background: rgba(255,255,255,0.8);
}

.image-placeholder {
    font-size: 1.2em;
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

/* 产品展示区域样式 */
.product-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: #1e40af;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: "•";
    color: #3b82f6;
    font-size: 24px;
    margin: 0 15px;
    position: relative;
    top: -2px;
}

.section-title .subtitle {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    z-index: -1;
}

/* 热门产品模块 - 简洁营销设计 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 30px;
    margin-bottom: 40px;
}

.product-box {
    text-align: center;
    transition: transform 0.2s ease;
}

.product-box:hover {
    transform: scale(1.02);
}

.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 15px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-box:hover .product-image img {
    transform: scale(1.05);
}

.product-box h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.product-box h3 a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-box h3 a:hover {
    color: #1e40af;
}

/* 公司简介区域样式 */
.about-section {
    padding: 60px 0;
    background: white;
}

.about-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-image {
    width: 100%;
    height: 300px;
    background: #ecf0f1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    font-size: 18px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 选择我们的理由样式 */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.reason-box {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reason-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.reason-icon {
    font-size: 48px;
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reason-box h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.reason-box p {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

/* 公司简介背景样式 */
.about-section {
    background-image: url(https://indigo.huitheme.cn/wp-content/uploads/2022/11/2022110710521230.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-box {
    background: white;
    position: relative;
    z-index: 2;
}

/* 新闻区域样式 */
.news-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.news-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.news-image {
    width: 100%;
    height: 150px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-weight: bold;
    margin-bottom: 15px;
}

.news-box h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
}

.news-box h3 a {
    color: inherit;
    text-decoration: none;
}

.news-box h3 a:hover {
    color: #1e40af;
}

.news-box p {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
    }
}

/* 选择我们的理由响应式设计 */
@media (max-width: 1024px) {
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .reason-box {
        padding: 25px 15px;
    }
    
    .reason-icon {
        font-size: 40px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .simple-slider {
        height: 300px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-box {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 15px;
    }
    
    .simple-slider {
        height: 200px;
    }
    
    .image-placeholder {
        font-size: 18px;
    }
}