.home-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}

.home-btn:hover {
  background-color: #34629e;
  transform: translateY(-2px);
}

.home-btn-outline {
  background-color: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.home-btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 36px;
  font-size: 2rem;
  color: var(--primary-color);
}


/* 首页英雄区域 */
.hero {
  /* background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); */
  background-color: #ecf0f1;
  color: var(--light-text);
  padding-top: 0;
  padding-bottom: 0;
  text-align: center;
  height: calc(100vw * 1000/1920);
}

.hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .bannerSwiper,
.hero .bannerSwiper .swiper-slide,
.hero .bannerSwiper .swiper-slide img,
.hero .bannerSwiper .swiper-slide a {
  width: 100%;
  height: 100%;
}

.hero .bannerSwiper .swiper-slide {
  background-color: transparent;
}

.hero .bannerSwiper .swiper-slide img {
  object-fit: cover;
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.floating-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float 15s infinite linear;
  /* backdrop-filter: blur(10px); */
  filter: blur(5px);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  /* margin-top: calc(25vh - 75px); */
  z-index: 5;
  /* position: relative; */
  /* backdrop-filter: blur(10px); */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 30px;
  border-radius: 30px;
  /* background-color: rgba(255, 255, 255, 0.2); */
  /* box-shadow: var(--shadow) */
}

.hero h1 {
  font-size: 3.5rem;
  /* font-size: 2rem; */
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
}

/* 关于我们区域 */
.about {
  background-color: var(--light-text);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/*全球足迹*/
.footprint {
    background-color: var(--light-text);
    padding: 0;
}

.footprint-content {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
}

.footprint-content .swiper {
    width: 100%;
    height: 100%;
}

.footprint-content .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: white;
    font-weight: bold;
    /* 模拟自下而上的视觉 */
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.footprint-bg-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    backdrop-filter: blur(12px) brightness(0.6);
}
.footprint-bg-video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
    z-index: 1;
}
.footprint-bg-title {
    position: relative;
    z-index: 3;
    font-size: 8rem;
    color: #fff;
    font-weight: bold;
}
@media (max-width: 768px) {
    .footprint-bg-title {
        font-size: 3rem;
    }
}
    .footprint .swiper-slide img {
        width: 100%;
        height: 100%;
        /*object-fit: cover;*/ /* 不变形、自适应、居中裁剪 */
        object-fit: contain;
        display: block;
    }
    /* 文字浮在图片上方 */
    .footprint .slide-text {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        padding: 30px;
        color: #fff;
        background: linear-gradient(transparent, rgba(0,0,0,0.6));
        z-index: 2;
        padding: 40px 0;
    }

        .footprint .slide-text h3 {
            font-size: 24px;
            margin: 0 0 8px;
        }

        .footprint .slide-text p {
            font-size: 16px;
            margin: 0;
        }



    /* 产品区域 */
    .products {
        background-color: #f5f7fa;
    }

    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
        margin-bottom: 50px;
    }

    .product-card {
        background-color: var(--light-text);
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

        .product-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        }

    .product-image {
        height: 200px;
        overflow: hidden;
    }

        .product-image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: var(--transition);
        }

    .product-card:hover .product-image img {
        transform: scale(1.1);
    }

    .product-info {
        padding: 20px;
    }

        .product-info h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: var(--primary-color);
        }

        .product-info p {
            margin-bottom: 15px;
            color: #666;
        }

    .product-price {
        font-weight: 700;
        font-size: 1.2rem;
        color: var(--accent-color);
        margin-bottom: 15px;
    }


    @media (max-width: 1000px) {
        .hero h1 {
            font-size: 2rem;
        }
    }

    @media (max-width: 768px) {
        .hero {
            /* min-height: 800px; */
            /* min-height: 400px; */
            height: calc(100vw * 1000/1920);
        }

        .hero-content {
            width: 90%;
            transform: scale(0.45) translate(-50%, -50%);
            transform-origin: top left;
        }

        .hero-container {
            /* display: none; */
        }

        .hero h1 {
            /* font-size: 3.5rem; */
            font-size: 2rem;
        }



        .hero-btns {
            flex-direction: column;
            align-items: center;
        }

        .hero-content {
            /* margin-top: 1rem; */
        }

        .about-content {
            grid-template-columns: 1fr;
        }

        .home-btn {
            width: 100%;
            max-width: 250px;
        }
    }



    .icon {
        vertical-align: middle;
        margin-right: 8px;
    }

    .swiper {
        width: 100%;
        height: 100%;
        user-select: none;
    }

    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .swiper-slide img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

    .swiper-button-next,
    .swiper-button-prev {
        opacity: 0;
        color: var(--secondary-color);
    }

    .swiper:hover .swiper-button-next,
    .swiper:hover .swiper-button-prev {
        opacity: 1;
    }

    /* 留资 */

    /* --- CTA 区域容器 --- */
    .lead-cta-section {
        background-color: #f8f9fa; /* 浅灰背景，或者用品牌深色 #1a1a1a */
        padding: 20px 0;
        border-top: 1px solid #e9ecef;
    }

    .cta-card {
        display: flex;
        align-items: center; /* 垂直居中 */
        justify-content: space-between;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        /* 关键：控制整体高度 */
        height: 320px; /* 目标高度 300px + 少量余量 */
        max-width: 1200px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
    }

    /* --- 左侧文案 --- */
    .cta-content {
        flex: 1;
        padding: 0 3rem;
        color: #333;
    }

    .cta-title {
        font-size: 2rem;
        font-weight: 800;
        margin: 0 0 10px 0;
        line-height: 1.1;
        color: #1a1a1a;
    }

    .cta-desc {
        font-size: 1rem;
        color: #666;
        margin: 0 0 20px 0;
        max-width: 400px;
    }

    .cta-benefits {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        gap: 15px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #555;
    }

        .cta-benefits li i {
            color: #28a745;
            margin-right: 5px;
        }

    /* --- 右侧表单包装器 --- */
    .cta-form-wrapper {
        flex: 0 0 420px; /* 固定表单区域宽度 */
        height: 100%;
        background: #fdfdfd;
        border-left: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
    }

    /* --- 紧凑表单内部 --- */
    .lead-form-compact {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .compact-lead-form {
        width: 100%;
    }

    /* 行布局 */
    .form-row {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
    }

    .form-group {
        margin-bottom: 0;
        position: relative;
        flex: 1;
    }

        .form-group.half {
            flex: 1;
        }

        .form-group.full {
            flex: 100%;
        }

        .form-group.btn-group {
            flex: 1;
            display: flex;
            align-items: stretch; /* 让按钮填满高度 */
        }

    /* 紧凑型输入框 */
    .form-control-compact {
        width: 100%;
        height: 44px; /* 固定高度 */
        padding: 0 12px;
        font-size: 0.9rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fff;
        transition: all 0.2s;
        box-sizing: border-box;
    }

        .form-control-compact:focus {
            border-color: #007bff;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
        }

    .textarea-compact {
        height: 44px !important;
        resize: none;
        padding-top: 10px;
    }

    /* 紧凑型按钮 */
    .btn-cta-submit {
        width: 100%;
        height: 44px; /* 与输入框同高 */
        background: #007bff;
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        transition: background 0.2s;
        white-space: nowrap;
    }

        .btn-cta-submit:hover {
            background: #0056b3;
        }

        .btn-cta-submit:disabled {
            background: #ccc;
            cursor: not-allowed;
        }

    /* 错误提示小字 */
    .text-danger-small {
        font-size: 0.7rem;
        color: #dc3545;
        position: absolute;
        bottom: -14px;
        left: 0;
        white-space: nowrap;
        display: none; /* 默认隐藏，有错误时由后端或JS控制显示 */
    }

    .input-validation-error + .text-danger-small {
        display: block;
    }

    .input-validation-error {
        border-color: #dc3545 !important;
    }

    /* 紧凑 Alert */
    .compact-alert {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        text-align: center;
        padding: 10px;
        border-radius: 6px;
        font-size: 0.9rem;
        display: none; /* JS 控制显示 */
        z-index: 10;
        justify-content: center;
        align-items: center;
        gap: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

        .compact-alert.d-none {
            display: none !important;
        }
        /* 当 JS 移除 d-none 时，我们需要它显示为 flex */
        .compact-alert:not(.d-none) {
            display: flex;
        }


    /* --- 响应式适配 (移动端) --- */
    @media (max-width: 768px) {
        .cta-card {
            flex-direction: column;
            height: auto; /* 移动端不强制高度 */
            padding: 20px;
            text-align: center;
        }

        .cta-content {
            padding: 0 0 20px 0;
            width: 100%;
        }

        .cta-benefits {
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-form-wrapper {
            width: 100%;
            flex: none;
            border-left: none;
            border-top: 1px solid #eee;
            padding-top: 20px;
        }

        .form-row {
            flex-direction: column;
        }

        .btn-cta-submit {
            height: 48px; /* 移动端手指友好 */
        }
    }