.hero-slider {
    position: relative;
    height: 600px;
    margin-top: 80px; /* 为固定的header留出空间 */
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: var(--techtronics-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    background: var(--techtronics-blue);
    color: var(--techtronics-white);
}

.btn-secondary {
    background: var(--techtronics-white);
    color: var(--techtronics-black);
}

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    margin: 0 auto;  /* 居中显示 */
}

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

.banner-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

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

.banner-image {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.banner-image img {
    width: 100%;
    height: auto;  /* 高度自适应 */
    display: block;  /* 移除图片底部间隙 */
}


.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: #fff;
}

.banner-content .inner {
    padding: 0px 10px;
    border-radius: 0;  /* 移除圆角 */
}




@media (min-width: 768px) {
    .banner-content .subtitle {
        line-height: 1.75rem;
        font-size: 1.25rem;
        margin-top: 20px;
        color: white;
    }
}

.banner-cta {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 16px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #fff;
    color: #003366;
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 4px;  /* 减小圆角 */
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

/* 轮播控制器样式 */
.banner-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.banner-progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.progress-dots {
    display: flex;
    gap: 12px;
}

/* 进度条样式 */
.progress-dots .dot {
    position: relative;
    width: 140px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: hidden;
}

/* 进度条动画效果 */
.progress-dots .dot::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 3s linear;
}

/* 激活状态 */
.progress-dots .dot.active::after {
    transform: translateX(0);
    transition: transform 3s linear;
}

/* 暂停时的效果 */
.banner-progress.paused .dot.active::after {
    transition: none;
}

/* 鼠标悬停效果 */
.progress-dots .dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* 已完成的进度条 */
.progress-dots .dot.completed::after {
    transform: translateX(0);
    transition: transform 3s linear;
}

/* 播放/暂停按钮样式 */
.pause-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
    position: relative;
    color: #fff;
}

.pause-btn svg {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    fill: currentColor;
    transition: opacity 0.2s ease;
}

.pause-btn .play {
    opacity: 0;
}

.pause-btn .pause {
    opacity: 1;
}

/* 播放状态 */
.pause-btn.playing .play {
    opacity: 1;
}

.pause-btn.playing .pause {
    opacity: 0;
}

/* 悬停效果 */
.pause-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* 左右箭头按钮样式 */
.banner-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-arrows button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.banner-arrows button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-arrows svg {
    width: 24px;
    height: 24px;
}

/* 响应式设计 */
@media (min-width: 1440px) {
    .banner-content {
        position: absolute;
        z-index: 1;
        top: 0;
        bottom: 0;
        width: 1440px; /* 固定宽度 */
        left: 50%; /* 先移动到父容器的50%位置 */
        transform: translateX(-50%); /* 再向左移动自身宽度的50%，达到水平居中 */
        display: flex;
        justify-content: center; /* 水平居中子元素 */
        top: calc(50% - 100px);
        
    }
    
    .inner.layout3 {
        text-align: left !important; /* 强制左对齐 */
        width: 100%;
    }
    
    .inner.layout3 h1,
    .inner.layout3 p {
        text-align: left !important; /* 确保所有文本左对齐 */
        line-height: 4.5rem !important;


    }
    .banner-content .inner.layout2 {
        text-align: left !important; /* 强制左对齐 */
        width: 100%;
    }
    .banner-content .inner.layout1 {
        text-align: left !important; /* 强制左对齐 */
        width: 100%;
    }
    .inner.layout1 h1,
    .inner.layout1 p {
        text-align: left !important; /* 确保所有文本左对齐 */
        line-height: 4.5rem !important;
    }
}
/* 响应式设计 */
@media (max-width: 1440px) {
    .hero-banner {
        width: 100%;
        height: auto;
        margin: 0;
    }
    .banner-content {
        position: absolute;
        z-index: 1;
        top: 0;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
    }
    .inner.layout3 h1,
    .inner.layout3 p {
        text-align: left !important; /* 确保所有文本左对齐 */
        line-height: 4.5rem !important;


    }
    .inner.layout1 h1,
    .inner.layout1 p {
        text-align: left !important; /* 确保所有文本左对齐 */
        line-height: 4.5rem !important;


    }
    
}

@media (max-width: 1024px) {
    .hero-banner {
        width: 95%;
    }
    .banner-content {
        position: absolute;
        z-index: 1;
        top: 0;
        width: 95%;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
    }
    .banner-arrows {
        left: -32px;
        right: -32px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
    .banner-content {
        position: absolute;
        z-index: 1;
        color: white;
        top: 0;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
    }
    /* 通用内容样式调整 */
    .banner-content {
        padding: 0 20px;
    }

    .banner-content .inner {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    /* 布局1的移动端样式 */
    .banner-content .inner.layout1 {
        margin-left: 0;
    }

   

    @media (min-width: 1025px) {
        .banner-content .inner.layout1 h1 {
            color: white;  /* 标题颜色设为白色 */
            line-height: 4.25rem;
            font-size: 4.375rem;
        }
    }
    @media (min-width: 768px) {
        .banner-content .inner.layout1 h1 {
            line-height: 3.625rem;
            font-size: 3.75rem;
            color: white;  /* 标题颜色设为白色 */
    
        }
    }
    @media (min-width: 576px) {
        .banner-content .inner.layout1 h1 {
            line-height: 3rem;
            font-size: 3.125rem;
            color: white;  /* 标题颜色设为白色 */
        }
    }

    /* 布局2的移动端样式 */
    .banner-content .inner.layout2 {
        margin: 0;
    }

   

    .banner-content .inner.layout2 .description {
        font-size: 14px;
        margin-top: 10px;
    }

    /* 布局3的移动端样式 */
    .banner-content .inner.layout3 {
        margin-right: 0;
    }

   

    /* 通用字体大小调整 */
    .banner-content .subtitle {
        font-size: 16px;
        margin-bottom: 8px;
    }

    /* 按钮样式调整 */
    .banner-cta {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        min-width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    .banner-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 添加移动端轮播图高度调整 */
    .banner-slider {
        height: 300px; /* 调整为更合适的高度 */
    }

    .banner-slide {
        height: 300px;
    }

    .banner-slide img {
        height: 300px;
    }
}

/* 平板端的样式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .banner-content .inner {
        padding: 25px;
    }


    .banner-content .inner.layout2 {
        max-width: 500px;
    }

   
    .banner-content h1 {
        font-size: 40px;
    }

    .banner-content .subtitle {
        font-size: 18px;
    }
}

.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* 布局2的样式 - 居中显示 */
.banner-content .inner.layout2 {
    border-radius: 12px;
    color: white;  /* 文字颜色设为白色 */
}

@media (min-width: 1025px) {
    .banner-content .inner.layout3 h1 {
        color: white;  /* 标题颜色设为白色 */
        line-height: 4.25rem;
        font-size: 4.375rem;
    }
}
@media (min-width: 768px) {
    .banner-content .inner.layout3 h1 {
        line-height: 3.625rem;
        font-size: 3.75rem;
        color: white;  /* 标题颜色设为白色 */

    }
}
@media (min-width: 576px) {
    .banner-content .inner.layout3 h1 {
        line-height: 3rem;
        font-size: 3.125rem;
        color: white;  /* 标题颜色设为白色 */
    }
}
@media (min-width: 1025px) {
    .banner-content h1 {
        color: white;  /* 标题颜色设为白色 */
        line-height: 4.25rem;
        font-size: 4.375rem;
    }
}
@media (min-width: 768px) {
    .banner-content h1 {
        line-height: 3.625rem;
        font-size: 3.75rem;
        color: white;  /* 标题颜色设为白色 */

    }
}
@media (min-width: 576px) {
    .banner-content h1 {
        line-height: 3rem;
        font-size: 3.125rem;
        color: white;  /* 标题颜色设为白色 */
    }
}


@media (min-width: 1025px) {
    .banner-content .inner.layout2 h1 {
        color: white;  /* 标题颜色设为白色 */
        line-height: 4.25rem;
        font-size: 4.375rem;
    }
}
@media (min-width: 768px) {
    .banner-content .inner.layout2 h1 {
        line-height: 3.625rem;
        font-size: 3.75rem;
        color: white;  /* 标题颜色设为白色 */

    }
}
@media (min-width: 576px) {
    .banner-content .inner.layout2 h1 {
        line-height: 3rem;
        font-size: 3.125rem;
        color: white;  /* 标题颜色设为白色 */
    }
}
.banner-content .inner.layout2 .description {
    font-size: 18px;
    line-height: 1.6;


}

/* 布局3的样式 - 右对齐 */
