/* ===== Banner幻灯片 - 正确版：箭头在全屏banner边缘 ===== */
.banner-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: #0f172a;
    overflow-x: hidden;     /* 防止横向滚动 */
}

/* 内容区域 - 限制宽度，居中 */
.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    height: 600px;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.banner-slide.active {
    opacity: 1;
    visibility: visible;
}

.banner-slide__bg {
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.3) 100%);
}

.banner-slide__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 4rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    box-sizing: border-box;
}

.banner-tag {
    display: inline-block;
    background-color: #008e4f;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.banner-title span {
    color: #008e4f;
    font-weight: 300;
    display: block;
    font-size: 2.8rem;
}

.banner-desc {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.6;
}

.banner-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary {
    background-color: #008e4f;
    color: white;
    border: 1px solid #008e4f;
}

.btn-primary:hover {
    background-color: #006f3d;
    border-color: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: white;
    color: #1e293b;
    border-color: white;
    transform: translateY(-2px);
}

/* ===== 轮播控制按钮 - 放在banner-wrapper下，全屏边缘 ===== */
.banner-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner-control:hover {
    background-color: #008e4f;
    border-color: #008e4f;
    transform: translateY(-50%) scale(1.1);
}

/* ===== 箭头间距调整 - 根据不同屏幕尺寸设置合适的间距 ===== */

/* 超大屏幕 (≥1600px) */
@media screen and (min-width: 1600px) {
    .banner-control.prev {
        left: 80px;
    }
    .banner-control.next {
        right: 80px;
    }
}

/* 大屏幕 (1400px - 1599px) */
@media screen and (min-width: 1400px) and (max-width: 1599px) {
    .banner-control.prev {
        left: 60px;
    }
    .banner-control.next {
        right: 60px;
    }
}

/* 中等屏幕 (1200px - 1399px) */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    .banner-control.prev {
        left: 50px;
    }
    .banner-control.next {
        right: 50px;
    }
}

/* 普通桌面 (1025px - 1199px) */
@media screen and (min-width: 1025px) and (max-width: 1199px) {
    .banner-control.prev {
        left: 40px;
    }
    .banner-control.next {
        right: 40px;
    }
}

/* 小桌面/笔记本 (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .banner-control.prev {
        left: 30px;
    }
    .banner-control.next {
        right: 30px;
    }
    .banner-container {
        height: 500px;
    }
    .banner-title {
        font-size: 2.8rem;
    }
    .banner-title span {
        font-size: 2.2rem;
    }
}

/* 平板 (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .banner-control.prev {
        left: 25px;
    }
    .banner-control.next {
        right: 25px;
    }
    .banner-control {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    .banner-container {
        height: 450px;
    }
    .banner-slide__content {
        padding: 2rem 1.5rem;
    }
    .banner-title {
        font-size: 2.2rem;
    }
    .banner-title span {
        font-size: 1.8rem;
    }
}

/* 手机 (≤480px) */
@media screen and (max-width: 480px) {
    .banner-control.prev {
        left: 15px;
    }
    .banner-control.next {
        right: 15px;
    }
    .banner-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .banner-container {
        height: 400px;
    }
    .banner-title {
        font-size: 1.8rem;
    }
    .banner-title span {
        font-size: 1.5rem;
    }
    .banner-btns {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 轮播指示器 - 在内容区域内 */
.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: #008e4f;
    width: 30px;
    border-radius: 20px;
}

.dot:hover {
    background-color: white;
}


/* ===== 产品模块样式 ===== */
.section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.green-text {
    color: #008e4f;
    font-weight: 600;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

/* 分类导航 */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.6rem 1.5rem;
    background-color: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
}

.category-btn:hover {
    border-color: #008e4f;
    color: #008e4f;
}

.category-btn.active {
    background-color: #008e4f;
    border-color: #008e4f;
    color: white;
}

/* 产品网格 - 两行每行4个 = 8个产品 */
.product-grid {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-grid.active {
    display: grid;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: #008e4f;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #be0600;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    z-index: 2;
}

.product-badge:contains("New") {
    background-color: #008e4f;
}

.product-image {
    width: 100%;
    height: 140px;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.8rem;
}

.product-specs {
    margin-bottom: 1rem;
}

.spec-item {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;    /* 增加行间距，让多个 spec-item 之间更宽松 */
    display: flex;
    align-items: baseline;     /* 改为 baseline，让文字基线对齐 */
}

.spec-label {
    font-weight: 600;          /* 稍微加粗，更醒目 */
    color: #475569;
    width: 85px;               /* 稍宽一点，给长标签留空间 */
    flex-shrink: 0;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e2e8f0;
}

.product-model {
    font-size: 0.8rem;
    color: #94a3b8;
}

.spec-value {
    flex: 1;                   /* 占满剩余空间 */
    padding-left: 0.75rem;     /* 左侧内边距，与 label 拉开距离 */
    color: #1e293b;            /* 值使用深色，更突出 */
}

.product-inquiry {
    color: #008e4f;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-inquiry i {
    transition: transform 0.2s;
}

.product-inquiry:hover i {
    transform: translateX(3px);
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-categories {
        gap: 0.5rem;
    }

    .category-btn {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
}


/* ===== 公司介绍模块 - 加背景版 ===== */
.about-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #0a1a2b 0%, #1a3650 100%);
    padding: 5rem 0;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-card {
    background: white;
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-left {
    flex: 1.2;
}

.about-tag {
    display: inline-block;
    background-color: rgba(0, 142, 79, 0.1);
    color: #008e4f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.about-title .green-text {
    color: #008e4f;
    font-weight: 700;
    display: block;
    font-size: 2rem;
    margin-top: 0.3rem;
}

.about-desc {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #334155;
    font-size: 0.95rem;
}

.about-feature i {
    color: #008e4f;
    font-size: 1.1rem;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #008e4f;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.about-btn:hover {
    background-color: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.about-right {
    flex: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #f8fafc;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: #008e4f;
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #008e4f;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
}

.certificates {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.certificates h4 {
    color: #1e293b;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-badges .cert-badge {
    background-color: rgba(0, 142, 79, 0.1);
    color: #008e4f;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 142, 79, 0.2);
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .about-card {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }

    .about-wrapper {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: 2rem;
    }

    .about-title .green-text {
        font-size: 1.8rem;
    }
}


/* ===== 展会图片展示模块 ===== */
.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.exhibition-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.exhibition-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 2 / 2;
}

.exhibition-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.exhibition-item:hover .exhibition-image img {
    transform: scale(1.1);
}

.exhibition-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.exhibition-item:hover .exhibition-overlay {
    transform: translateY(0);
}

.exhibition-date {
    display: inline-block;
    background-color: #008e4f;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.exhibition-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.exhibition-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.exhibition-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-outline-green {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    border: 2px solid #008e4f;
    border-radius: 40px;
    color: #008e4f;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-green:hover {
    background-color: #008e4f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.2);
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .exhibition-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .exhibition-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exhibition-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (max-width: 480px) {
    .exhibition-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 搜索产品模块 - 宽度统一版 ===== */
.search-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.search-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.search-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 142, 79, 0.15);
    border-color: rgba(0, 142, 79, 0.3);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-row-last {
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.form-group label i {
    color: #008e4f;
    font-size: 0.9rem;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #1e293b;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.2s;
}

.select-wrapper select:hover {
    border-color: #008e4f;
}

.select-wrapper select:focus {
    outline: none;
    border-color: #008e4f;
    box-shadow: 0 0 0 3px rgba(0, 142, 79, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.8rem;
}

.form-group-action {
    justify-content: flex-end;
}

.action-label {
    visibility: hidden;
}

.action-buttons {
    display: flex;
    gap: 0.8rem;
    height: 100%;
    align-items: center;
}

.btn-search {
    flex: 2;
    background-color: #008e4f;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-search:hover {
    background-color: #006f3d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 142, 79, 0.3);
}

.btn-reset {
    flex: 1;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    white-space: nowrap;
}

.btn-reset:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.search-note {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.search-note i {
    color: #008e4f;
    font-size: 1rem;
}

.search-note a {
    color: #008e4f;
    text-decoration: none;
    font-weight: 500;
}

.search-note a:hover {
    text-decoration: underline;
}

/* 响应式 */
@media screen and (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row-last {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        width: 100%;
    }

    .search-card {
        padding: 2rem;
    }
}

@media screen and (max-width: 640px) {
    .search-section {
        padding: 0 1rem;
    }

    .search-card {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-search, .btn-reset {
        width: 100%;
    }

    .search-note {
        flex-direction: column;
        text-align: center;
    }
}