/* ==================== 首页样式 ==================== */

/* ==================== 轮播图 Banner ==================== */
.banner-section {
    background: linear-gradient(135deg, #1a5fa8 0%, #2d7dd2 100%);
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.banner-slider {
    max-width: 1400px;
    margin: 0 auto;
}

.banner-slide {
    display: none;
}

.banner-slide.active {
    display: block;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-text {
    flex: 1;
    color: white;
}

.banner-text h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: bold;
}

.banner-text p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: white;
    color: #1a5fa8;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

.banner-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image .placeholder {
    font-size: 120px;
    color: white;
    opacity: 0.3;
}

/* 轮播图控制 */
.banner-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.banner-prev,
.banner-next {
    background: rgba(255,255,255,0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(255,255,255,0.5);
}

.banner-dots {
    display: flex;
    gap: 10px;
}

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

.banner-dots .dot.active {
    background: white;
}

/* ==================== 核心优势模块 ==================== */
.advantages-section {
    padding: 60px 20px;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 28px;
    color: #1a5fa8;
    margin-bottom: 5px;
}

.section-header .en-title {
    font-size: 16px;
    color: #666;
    font-family: Arial;
}

.advantages-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

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

.advantage-item:hover {
    background: #e6f2ff;
    transform: translateY(-5px);
}

.advantage-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.advantage-item h3 {
    font-size: 18px;
    color: #1a5fa8;
    margin-bottom: 10px;
}

.advantage-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ==================== 产品展示模块 ==================== */
.products-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 168, 0.15);
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image .placeholder {
    font-size: 60px;
    color: #1a5fa8;
    opacity: 0.3;
}

.product-image .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
}

.product-model {
    font-size: 13px;
    color: #1a5fa8;
    margin-bottom: 8px;
}

.product-params {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #999;
}

.product-params span {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    padding: 10px 15px;
    background: #fafafa;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-more {
    flex: 1;
    padding: 10px 15px;
    background: white;
    color: #1a5fa8;
    border: 1px solid #1a5fa8;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-more:hover {
    background: #f0f7ff;
}

.btn-inquiry {
    flex: 1;
    padding: 10px 15px;
    background: #1a5fa8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-inquiry:hover {
    background: #2d7dd2;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.btn-view-all {
    display: inline-block;
    padding: 12px 40px;
    background: #1a5fa8;
    color: white;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #2d7dd2;
}

/* ==================== 工程案例模块 ==================== */
.cases-section {
    padding: 60px 20px;
    background: white;
}

.cases-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-card {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.case-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 168, 0.15);
    transform: translateY(-3px);
}

.case-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.case-image .placeholder {
    font-size: 80px;
    color: #1a5fa8;
    opacity: 0.3;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.case-location {
    font-size: 14px;
    color: #1a5fa8;
    margin-bottom: 10px;
}

.case-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ==================== 新闻资讯模块 ==================== */
.news-section {
    padding: 60px 20px;
    background: #f5f5f5;
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: 0 5px 20px rgba(26, 95, 168, 0.15);
}

.news-date {
    width: 80px;
    text-align: center;
    background: #1a5fa8;
    color: white;
    padding: 15px 10px;
    border-radius: 8px;
}

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

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

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content a {
    color: #1a5fa8;
    font-size: 14px;
    text-decoration: none;
}

.news-content a:hover {
    color: #2d7dd2;
}

/* ==================== 询盘表单模块 ==================== */
.inquiry-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a5fa8 0%, #2d7dd2 100%);
}

.inquiry-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    padding: 40px;
}

.inquiry-header {
    text-align: center;
    margin-bottom: 30px;
}

.inquiry-header h2 {
    font-size: 28px;
    color: #1a5fa8;
    margin-bottom: 5px;
}

.inquiry-header .en-title {
    font-size: 16px;
    color: #666;
    font-family: Arial;
    margin-bottom: 10px;
}

.inquiry-header p {
    font-size: 14px;
    color: #666;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.form-group.full-width {
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #1a5fa8;
    outline: none;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    padding: 15px 50px;
    background: #1a5fa8;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #2d7dd2;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 992px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-image .placeholder {
        font-size: 80px;
    }

    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .news-date {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .banner-section {
        padding: 40px 10px;
    }

    .banner-text h2 {
        font-size: 20px;
    }

    .banner-image .placeholder {
        font-size: 60px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .advantage-item {
        padding: 20px 15px;
    }

    .advantage-icon {
        font-size: 36px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 150px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .case-image {
        height: 150px;
    }

    .inquiry-container {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}