/* 轮播图容器样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.tit.f_52 {
    text-align: center;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 10vh;
}
/* 轮播内容区域 */
.carousel-content {
    position: relative;
    width: 100%;
    height: 100%;
}

/* 轮播项目样式 */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease, transform 1.5s ease;
    transform: scale(1.05);
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 图片样式 */
.carousel img {
    width: 100%;
    height: 100%;   
    min-height: 800px;
    animation: aniScaleBan 10s linear forwards;
    transform: scale(1.1); /* 初始放大 110% */
    animation: zoomIn 8s ease-out forwards;
    transform-origin: center center; /* 确保从中心开始缩放 */
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
        opacity: 1;
    }
}
/* 文字说明区域 */
.carousel-caption {
    position: absolute;
    top: 40%;
    left: 10%;
    padding: 20px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    transition-delay: 0.5s;
    max-width: 80%;
}

.carousel-caption span {
    display: inline-block;
    font-weight: bold;
    margin-bottom: 15px;
}

.carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

/* 导航按钮区域 */
.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    gap: 10px;
}

/* 导航按钮样式 */
.carousel-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-btn:hover {
    transform: scale(1.2);
}

.carousel-btn.active {
    background-color: #fff;
}

/* 响应式设计 */
/* 大屏幕设备 (1200px以上) */
@media screen and (min-width: 1200px) {
    .carousel-caption {
        left: 15%;
    }
    
    .carousel-caption span {
        font-size: 60px;
        line-height: 1.2;
    }
    
    .carousel-caption p {
        font-size: 26px;
        line-height: 1.5;
        max-width: 700px;
    }
    
    .carousel-nav {
        bottom: 40px;
        left: 40px;
    }
    
    .carousel-btn {
        width: 14px;
        height: 14px;
    }
}

/* 平板设备 (768px - 1199px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .carousel-caption {
        left: 10%;
        top: 35%;
    }
    
    .carousel-caption span {
        font-size: 40px;
        line-height: 1.2;
    }
    
    .carousel-caption p {
        font-size: 20px;
        line-height: 1.4;
        max-width: 500px;
    }
    
    .carousel-nav {
        bottom: 30px;
        left: 30px;
    }
    
    .carousel-btn {
        width: 12px;
        height: 12px;
    }
}

/* 手机设备 (767px以下) */
@media screen and (max-width: 767px) {
    .carousel-caption {
        left: 5%;
        top: 40%;
        padding: 15px;
    }
    .scrollmagic-pin-spacer {
      padding-top: 0;
    }
    .carousel-caption span {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .carousel-caption p {
        font-size: 16px;
        line-height: 1.3;
        max-width: 300px;
    }
    
    .carousel-nav {
        bottom: 20px;
        left: 20px;
    }
    
    .carousel-btn {
        width: 10px;
        height: 10px;
    }
    
    .carousel-item img {
        object-position: center center;
        height: 100%;
    }
    
    .mobile-cards-arrow {
        display: none !important;
    }
}

/* 小屏手机设备 (480px以下) */
@media screen and (max-width: 480px) {
    .carousel-caption {
        left: 5%;
        top: 40%;
        padding: 10px;
    }
    
    .carousel-caption span {
        font-size: 24px;
        line-height: 1.2;
    }
    
    .carousel-caption p {
        font-size: 14px;
        line-height: 1.3;
        max-width: 260px;
    }
    
    .carousel-nav {
        bottom: 15px;
        left: 15px;
    }
    
    .carousel-btn {
        width: 8px;
        height: 8px;
    }
}

/* 确保轮播图容器在各种设备上的高度合适 */
@media screen and (max-height: 600px) {
    .carousel-container {
        height: 100vh;
    }
    
    .carousel-caption {
        top: 30%;
    }
    
    .carousel-caption span {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .carousel-caption p {
        font-size: 14px;
    }
}

/* 横屏模式优化 */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .carousel-caption {
        top: 25%;
    }
    
    .carousel-caption span {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .carousel-caption p {
        font-size: 12px;
    }
    
    .carousel-nav {
        bottom: 10px;
    }
}

.hero-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-width: 1200px;
    z-index: 10;
}

.section2 {
    background-color: #fff;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中 */
    gap: 30px;               /* 元素间距 */
    flex-wrap: wrap;         /* 允许换行 */
}

/* LOGO容器样式 */
.logo-container-two {
    order: 2; /* 将LOGO设为中间位置 */
    width: 100px;
    height: 50px;
    margin: 0 20px; /* 左右留白 */
}


.logo {
    width: 100%;
    height: 100%;
}

/* 调整标语容器 */
.slogan-container {
    display: flex;
    width: auto; /* 改为自适应宽度 */
    gap: 20px; /* 文字间距 */
    align-items: center;
    display: contents; /* 解除容器限制 */
}

.slogan-left, .slogan-right {
    order: 1;          /* 左侧文字 */
    font-size: 24px;
    transition: all 0.5s ease-out;
}

.slogan-right {
    order: 3;          /* 右侧文字 */
}


.section3 {
    background-color: #fff;
}

.mask-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-mask {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.factory-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
}

.section4 {
    background-color: #fff;
}

.iot-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.iot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.iot-circle {
    position: absolute;
    width: 60%;
    height: auto;
    z-index: 2;
}

.iot-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iot-element {
    position: absolute;
    color: white;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.element-1 {
    top: 25%;
    left: 15%;
}

.element-2 {
    top: 30%;
    right: 15%;
}

.element-3 {
    bottom: 25%;
    left: 15%;
}

.element-4 {
    bottom: 30%;
    right: 15%;
}
/* 移动端适配 */
@media (max-width: 768px) {
.section2 {
flex-direction: column;
gap: 15px;
}
.logo-container-two {
order: 2;      /* 保持中间位置 */
margin: 15px 0;
}
.slogan-left, .slogan-right {
order: initial; /* 重置排序 */
}
}
section {
    position: relative;
    height: 845px;
    min-width: 1200px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 在about.css中添加 */
:root {
    --nav-height: 80px; /* 根据实际导航栏高度修改 */
  }
  
  /* 现代浏览器方案 */
  :target {
    scroll-margin-top: var(--nav-height);
  }
  
  /* 传统浏览器兼容方案 */
  :target::before {
    content: "";
    display: block;
    height: var(--nav-height);
    margin-top: calc(-1 * var(--nav-height));
    visibility: hidden;
  }
  
  /* 响应式适配 */
  @media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
  }

/* 响应式媒体查询 */
/* 大屏幕设备 (1200px以上) */
@media screen and (min-width: 1200px) {
    .carousel-caption span {
        font-size: 60px;
        width: 600px;
    }
    
    .carousel-caption p {
        width: 700px;
        font-size: 26px;
    }
    
    .circle-container {
        width: 600px;
        height: 600px;
    }
    
    .title {
        font-size: 56px;
    }
    
    .description {
        font-size: 16px;
    }
    
    .space-cards-module .i_part4 .con.show>.tit {
        font-size: 2.5vw;
        line-height: 3.5vw;
    }
    
    .space-cards-module .boxes .h {
        font-size: 24px;
    }
    
    .space-cards-module .boxes .p {
        font-size: 13px;
    }
}

/* 平板设备 (768px - 1199px) */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .carousel-caption span {
        font-size: 40px;
        width: 400px;
    }
    .space-cards-module .boxes .p{
        line-height: 1.8vw;
        font-size: 12px;
    }
    .space-cards-module .boxes .h{
        font-size: 20px;
    }
    .carousel-caption p {
        width: 500px;
        font-size: 20px;
    }
    
    .circle-container {
        width: 450px;
        height: 450px;
    }
    
    .title {
        font-size: 42px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .space-cards-module .i_part4 .con.show>.tit {
        font-size: 2.2vw;
        line-height: 3vw;
    }
    
    .space-cards-module .boxes .h {
        font-size: 20px;
    }
    

    
    .space-cards-module .boxes .pic-one {
        padding-bottom: 70%;
    }
}

/* 手机设备 (767px以下) */
@media screen and (max-width: 767px) {
    .space-cards-module {
        height: auto;
        min-height: 100vh;
        background: #000;
    }
    
    .i_part4 {
        margin-top: 150px !important;
        height: auto;
    }
    
    .space-cards-module .i_part4 .con.show>.tit {
        display: none;
    }
    
    .space-cards-module .i_part4 .con .boxs-ones {
        display: block;
        overflow: visible !important;
        padding: 0;
        padding-bottom: 10vh !important;
    }
    
    .space-cards-module .boxes {
        min-width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        display: block;
    }
    
    .space-cards-module .boxes .pic-one {
        width: 100%;
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .space-cards-module .boxes .pic-one img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    .space-cards-module .boxes .h {
        font-size: 24px;
        font-weight: 500;
        margin: 20px 0;
        padding: 0 20px;
        color: #fff;
    }
    
    .space-cards-module .boxes .p {
        font-size: 16px;
        line-height: 1.6;
        margin-top: 10px;
        width: 100% !important;
        margin-bottom: 30px;
        padding: 0 20px;
        color: #fff;
        height: auto;
        white-space: normal;
    }
    
    /* 分页指示器样式 */
    .mobile-cards-pagination {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 20px 0;
        padding: 0 20px;
    }
    
    .mobile-cards-pagination-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #555;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-cards-pagination-dot.active {
        width: 24px;
        border-radius: 4px;
        background-color: #1e90ff;
    }
    
    /* 隐藏左右箭头 */
    .mobile-cards-arrow {
        display: none !important;
    }
    
    .space-cards-module .i_part4 .con .boxs-ones .boxes:nth-child(2n-1) {
        margin-left: 0 !important;
        margin-top: 0 !important;
        transform: none !important;
        width: 100% !important;
    }
}

/* 小屏手机设备 (480px以下) */
@media screen and (max-width: 480px) {
    .carousel-caption span {
        font-size: 24px;
        width: 240px;
    }
    .tit.f_52 {
       font-size: 2rem !important;
    }
    .i_part4 {
        margin-top: 400px;
    }
    .carousel-caption p {
        width: 260px;
        font-size: 14px;
    }
    
    .circle-container {
        width: 250px;
        height: 250px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .description {
        font-size: 11px;
    }
    
    .space-cards-module .i_part4 .con.show>.tit {
        font-size: 1.5vw;
        line-height: 2vw;
    }
    
    .space-cards-module .boxes .h {
        font-size: 16px;
    }
    
    .space-cards-module .boxes .p {
        color: #ffffff;
        font-family: hr;
        line-height: 1.6; /* 保持较大行间距 */
        overflow: visible; /* 允许多行显示 */
        text-overflow: initial;
        -webkit-line-clamp: unset;
        -webkit-box-orient: vertical;
        margin-top: .7vw;
        width: 100%;
        font-size: 10px;
        display: inline;
        white-space: normal;
        height: auto;
    }
    
    .space-cards-module .i_part4 .con .boxs-ones .boxes:nth-child(2n-1),
    .space-cards-module .i_part4 .con .boxs-ones .boxes:nth-child(2n) {
        width: 90%;
        margin-left: 5%;
    }
}

/* 确保图片响应式 */
img {
    max-width: 100%;
    height: auto;
}

/* 确保容器响应式 */
.section1,
.section2,
.section3,
.section4,
.smooth-wrapper,
.space-cards-module {
    min-width: 100%;
    width: 100%;
    height: auto;
    min-height: 100vh;
}

/* 调整动画效果在不同设备上的表现 */
@media screen and (max-width: 767px) {
    .space-cards-module .boxes {
        transform-origin: center center !important;
    }
    
    .space-cards-module .boxes:hover {
        transform: translateY(-5px) !important;
    }
}

/* 初始状态: logo图片可见，无遮罩 */
.logo-container-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.logo-image {
    width: 110px;
    height: 60px;
}

/* 遮罩图片，将在滚动时展开 */
.img-box {
    width: 100%;
    height: 100%;
    position: absolute;
    opacity: 0; /* 初始隐藏 */
    -webkit-mask: url("./images/index/logo\(1\).png") center/contain;
    mask: url("./images/index/logo\(1\).png") center/contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 110px 60px; /* 初始尺寸 */
    mask-size: 110px 60px;
}

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

.no-mask {
    -webkit-mask: none !important;
    mask: none !important;
}

/* 移动端适配 */
@media screen and (max-width: 767px) {
    /* 隐藏logo容器和文字容器 */
    .logo-container-img,
    .text-container {
        display: none !important;
    }
    
    /* 直接显示img-box内容 */
    .img-box {
        opacity: 1 !important;
        -webkit-mask: none !important;
        mask: none !important;
        z-index: 1;
        position: relative;
        height: 100vh;
    }
    
    .img-box img {
        object-position: center center;
    }
    
    /* 调整circle-nav-container在移动端的样式 */
    .circle-nav-container {
        position: relative;
        height: 100%;
    }
    
    .circle-container {
        width: 600px;
        height: 600px;
        transform: scale(0.5); /* 0.5可根据实际屏幕调整 */
        transform-origin: center center;
    }
    
    /* 调整内容区域在移动端的样式 */
    .content {
        position: relative;
        width: 90vw;
        max-width: 320px;
        margin: 0 auto;
        padding: 20px;
        font-size: 14px;
    }
    
    .content .title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .content .description {
        font-size: 12px;
        line-height: 1.6;
    }
    
    /* 禁用滚动动画相关样式 */
    .smooth-wrapper {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .label {
        font-size: 12px;
    }
}

.circle-container {
    width: 600px;
    height: 600px;
    /* ... */
}

.circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    /* ... */
}

.label, .title, .description {
    /* 默认大屏字体 */
    font-size: 1.2em;
}

@media screen and (max-width: 1199px) {
    .circle-container { transform: scale(); }
    .label, .title, .description { font-size: 1em; }
}
@media screen and (max-width: 767px) {
    .circle-container { transform: scale(0.8); top: 10%;}
    .label, .title, .description { font-size: 0.7em; }
}
@media screen and (max-width: 675px) {
    .circle-container { transform: scale(0.6); top: 10%;}
}   
@media screen and (max-width: 480px) {
    .circle-container { transform: scale(0.5); right: 22%; }
    .label, .title, .description { font-size: 0.55em; }
}

.space-cards-module .boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 不要设置固定高度 */
}

.space-cards-module .boxes .pic-one {
    width: 100%;
    /* 不要设置固定高度，或用比例撑开 */
    margin-bottom: 10px;
}
.canvas {
    width: 29.6875vw !important;
    height: 29.6875vw !important;
    display: block;
}

.box3.img-cover {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 300px;
    height: 60vw;
    max-height: 90vh;
}
@media (max-width: 767px) {
    .box3.img-cover {
        height: 50vw;
        min-height: 180px;
        max-height: 60vh;
    }
}

.ani-box2 {
    width: 100vw;
    min-height: 300px;
    height: 60vw;
    max-height: 90vh;
    position: relative;
}
@media (max-width: 767px) {
    .ani-box2 {
        height: 50vw;
        min-height: 180px;
        max-height: 60vh;
    }
}



