/* 首页样式 */

/* 轮播Banner */
.hero-banner {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.banner-slider {
    height: 100%;
    position: relative;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    overflow: hidden;
}

.banner-slide.active {
    opacity: 1;
}

/* 轮播背景图 */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* 轮播遮罩层 */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85), rgba(26, 54, 93, 0.75));
    z-index: 1;
}

.banner-slide:nth-child(3) .banner-overlay {
    background: linear-gradient(135deg, rgba(197, 48, 48, 0.8), rgba(26, 54, 93, 0.85));
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 56px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease;
}

.banner-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.banner-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* 轮播指示器 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

.dot:hover {
    background: var(--white);
}

/* 轮播箭头 */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.banner-prev {
    left: 30px;
}

.banner-next {
    right: 30px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 核心优势 */
.advantages {
    padding: 80px 0;
    background: var(--white);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.advantage-icon i {
    font-size: 32px;
    color: var(--white);
}

.advantage-item h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.advantage-item p {
    color: var(--text-light);
    font-size: 14px;
}

/* 重点设备展示 */
.featured-equipment {
    padding: 100px 0;
    background: var(--bg-light);
}

.equipment-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.equipment-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.equipment-item.reverse {
    direction: rtl;
}

.equipment-item.reverse > * {
    direction: ltr;
}

.equipment-image {
    position: relative;
}

.equipment-image .image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.equipment-image .image-placeholder i {
    font-size: 120px;
    color: var(--primary-color);
}

.equipment-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.equipment-info {
    padding: 40px;
}

.equipment-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.equipment-info p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.equipment-specs {
    list-style: none;
    margin-bottom: 30px;
}

.equipment-specs li {
    padding: 10px 0;
    color: var(--text-dark);
    border-bottom: 1px dashed var(--border-color);
}

.equipment-specs li:last-child {
    border-bottom: none;
}

.equipment-specs i {
    color: var(--secondary-color);
    margin-right: 10px;
}

/* 关于我们 */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

.about-image .image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.about-image .image-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
}

/* 产品展示 */
.products-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image .image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image .image-placeholder i {
    font-size: 60px;
    color: var(--primary-color);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.read-more {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 新闻动态 */
.news-section {
    padding: 100px 0;
    background: var(--white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-date {
    min-width: 70px;
    text-align: center;
    padding: 15px;
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 8px;
}

.news-date .day {
    display: block;
    font-size: 32px;
    font-weight: bold;
}

.news-date .month {
    font-size: 14px;
}

.news-content h3 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-content a {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
}

/* 合作伙伴 */
.partners-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.partner-logo {
    height: 100px;
    background: var(--white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.partner-logo:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

.partner-logo i {
    font-size: 32px;
    margin-bottom: 5px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .advantages-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .equipment-item {
        grid-template-columns: 1fr;
    }
    
    .equipment-item.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 500px;
    }
    
    .banner-content h2 {
        font-size: 32px;
    }
    
    .banner-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .banner-arrow {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid,
    .products-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .equipment-info {
        padding: 30px;
    }
    
    .equipment-info h3 {
        font-size: 22px;
    }
}
