/*banner*/

.banner-box {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 0;
}
.banner {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}
.banner .swiper-wrapper {
    /*图片和文字*/
    transition: all 2s cubic-bezier(0.77, 0, 0.175, 1) 0s;
    -webkit-transition: all 2s cubic-bezier(0.77, 0, 0.175, 1) 0s;
    -moz-transition: all 2s cubic-bezier(0.77, 0, 0.175, 1) 0s;
    -o-transition: all 2s cubic-bezier(0.77, 0, 0.175, 1) 0s;
}
.banner .swiper-wrapper .swiper-slide {
    overflow: hidden;
}

.banner .banner-page {
    /*页码*/
    position: absolute;
    z-index: 10;
    width: 130px;
    height: 20px;
    bottom: 50px;
    right: 100px;
}
.banner .banner-page span {
    line-height: 20px;
    width: 20px;
    height: 100%;
    display: inline-block;
    text-align: center;
    color: #fff;
    position: relative;
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
}
.banner .banner-page span.b_l {
    background: url("../img/banner-l.png") no-repeat center center;
    cursor: pointer;
}
.banner .banner-page span.of {
    width: 30px;
    background: url("../img/banner-of.png") no-repeat center center;
}
.banner .banner-page span.b_r {
    background: url("../img/banner-r.png") no-repeat center center;
    cursor: pointer;
}

/* 通用过渡效果 */
.transition-all-06s {
    transition: all 0.6s ease 0s;
    -webkit-transition: all 0.6s ease 0s;
    -moz-transition: all 0.6s ease 0s;
    -o-transition: all 0.6s ease 0s;
}

/* 主体部分通用样式 */
.home-body .main {
    position: relative;
    z-index: 1;
    background: #fff;
}
.home-body .main:after {
    display: table;
    content: "";
}

/* 其他部分通用样式 */
.home-body .main-other .others {
    height: 630px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}
.home-body .main-other .others .text {
    font-size: 14px;
    color: #fff;
    line-height: 24px;
    margin: 40px 0 60px;
}
.home-body .main-other .others .more {
    position: relative;
    display: block;
    overflow: hidden;
    width: 155px;
    height: 24px;
    font: 14px Adobe Devanagari;
    text-align: center;
    color: #fff;
    line-height: 24px;
    border: 1px solid #fff;
}
.home-body .main-other .others .more span {
    position: absolute;
    z-index: 1;
    width: 100%;
    text-align: center;
    left: 0;
    top: 0;
    height: 100%;
    transition: all 0.6s ease 0s;
    -webkit-transition: all 0.6s ease 0s;
    -moz-transition: all 0.6s ease 0s;
    -o-transition: all 0.6s ease 0s;
}
.home-body .main-other .others .more:before {
    position: absolute;
    content: "";
    background: #000;
    width: 100%;
    height: 100%;
    left: -100%;
    top: 0;
    z-index: 0;
    transition: all 0.6s ease 0s;
    -webkit-transition: all 0.6s ease 0s;
    -moz-transition: all 0.6s ease 0s;
    -o-transition: all 0.6s ease 0s;
}
.home-body .main-other .others .more:hover span {
    color: #fff;
}
.home-body .main-other .others .more:hover:before {
    left: 0;
}

/* 通用内容样式 */
.home-body .main-other .content {
    width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

/* 通用标题样式 */
.home-body .main-other .tits {
    position: relative;
    color: #fff;
    font-size: 46px;
}

/* 通用文本样式 */
.home-body .main-other .text {
    font-size: 16px;
    line-height: 28px;
    color: #fff;
}

/* 通用更多按钮样式 */
.home-body .main-other .more {
    color: #fff;
    border-color: #fff;
}

/* other1 部分样式 */
.home-body .main-other .other1 {
    background: url("../img/production-bg.jpg") no-repeat fixed center center;
    background-size: cover;
    position: relative;
    width: 100%;
}
.home-body .main-other .other1:after {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}
.home-body .main-other .other1 .content-r {
    width: 50%;
    float: right;
    padding-left: 40px;
    padding-top: 10%;
    color: #fff;
    max-width: 700px;
}

/* other2 部分样式 */
.home-body .main-other .other2 {
    background: url("../img/Centre-bg.jpg") no-repeat fixed center center;
    background-size: cover;
    position: relative;
    width: 100%;
}
.home-body .main-other .other2:after {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}
.home-body .main-other .other2 .content-l {
    width: 50%;
    float: left;
    padding-right: 40px;
    padding-top: 10%;
    color: #fff;
    max-width: 700px;
}

/* other3 部分样式 */
.home-body .main-other .other3 {
    background: url("../img/index-bg3.jpg") no-repeat fixed center center;
    background-size: cover;
    position: relative;
    width: 100%;
}
.home-body .main-other .other3:after {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 0;
}
.home-body .main-other .other3 .content-r {
    width: 50%;
    float: right;
    padding-left: 40px;
    padding-top: 10%;
    color: #fff;
    max-width: 700px;
}
.home-body .main-other .other3 .content .bg3 {
    display: none;
}

/* 产品部分样式 */
.home-body .main-product {
    position: relative;
    padding: 50px 0;
    background: var(--dark-bg);
    overflow: hidden;
}

/* 赛博风格变量 */
:root {
    --neon-blue: rgba(0, 243, 255, 1);
    --neon-purple: rgba(157, 0, 255, 1);
    --dark-bg: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --gradient-tech: linear-gradient(
        45deg,
        rgba(0, 243, 255, 0.1),
        rgba(157, 0, 255, 0.1)
    );
}

/* 动画效果 */
@keyframes borderGlow {
    0% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    }
    50% {
        border-color: var(--neon-purple);
        box-shadow: 0 0 20px rgba(157, 0, 255, 0.2);
    }
    100% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.2;
    }
}

@keyframes typingEffect {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* 添加扫描线效果 */
.main-product::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 243, 255, 0.2),
        transparent
    );
    z-index: 3;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

/* 添加数字线条效果 */
.main-product::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
            rgba(0, 243, 255, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(0, 243, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 1;
}

.main-product .tits {
    position: relative;
    z-index: 2;
    margin-bottom: 50px;
    text-align: center;
}

.main-product .tits img {
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5));
    animation: textGlow 3s infinite alternate;
}

.main-product .boxs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.main-product .boxs li {
    width: calc(33.33% - 30px);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(15, 15, 25, 0.7);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(5px);
}

.main-product .boxs li::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: linear-gradient(
            90deg,
            rgba(0, 243, 255, 0.3),
            rgba(157, 0, 255, 0.3),
            rgba(0, 243, 255, 0.3)
        )
        border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 10px;
}

.main-product .boxs li:hover::after {
    opacity: 1;
    animation: borderGlow 3s infinite alternate;
}

.main-product .boxs li a {
    display: block;
    width: 100%;
    height: 100%;
}

.main-product .boxs li .box-z,
.main-product .boxs li .box-f {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.main-product .boxs li .box-f {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
    transition: all 0.5s ease;
}

.main-product .boxs li .box-z {
    opacity: 0;
}

.main-product .boxs li:hover .box-f {
    opacity: 1;
}

/* 图片盒子基本样式 */
.main-product .boxs li .img-box {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(5, 5, 10, 0.5);
    border-bottom: 1px solid rgba(0, 243, 255, 0.2);
}

.main-product .boxs li .img-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 243, 255, 0.1),
        rgba(157, 0, 255, 0.1)
    );
    opacity: 0;
    transition: all 0.3s ease;
}

.main-product .boxs li:hover .img-box::after {
    opacity: 1;
}

.main-product .boxs li span {
    color: #ffffff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.3);
    position: relative;
}

.main-product .boxs li:hover span {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.8);
    animation: textGlow 2s infinite alternate;
}

/* 修复产品卡片图片显示问题 */
.main-product .boxs li .box-f .img-box {
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 添加图片霓虹发光效果 */
.main-product .boxs li .box-f .img-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(0, 243, 255, 0.2) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.main-product .boxs li:hover .box-f .img-box::before {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

/* 改进额外信息显示样式 */
.main-product .boxs li .img-box .extra-info {
    position: absolute;
    top: 0;
    right: 0;
    width: 72%;
    height: 100%;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(5px);
    padding: 20px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease;
    border-left: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: -5px 0 15px rgba(0, 243, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
    font-family: "Orbitron", sans-serif;
}

.main-product .boxs li:hover .img-box .extra-info {
    opacity: 1;
    transform: translateX(0);
}

.main-product .boxs li .img-box .extra-info p {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease;
    position: relative;
    padding-left: 20px;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
}

.main-product .boxs li .img-box .extra-info p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
    width: 8px;
    height: 8px;
    background: #00f3ff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
    transition: all 0.3s ease;
}

.main-product .boxs li:hover .img-box .extra-info p:hover::before {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 12px rgba(0, 243, 255, 1);
}

.main-product .boxs li:hover .img-box .extra-info p {
    opacity: 1;
    transform: translateY(0);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typingEffect 1s steps(40, end) forwards;
}

/* 为不同段落设置不同的延迟 */
.main-product .boxs li:hover .img-box .extra-info p:nth-child(1) {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.main-product .boxs li:hover .img-box .extra-info p:nth-child(2) {
    transition-delay: 0.2s;
    animation-delay: 0.9s;
}

.main-product .boxs li:hover .img-box .extra-info p:nth-child(3) {
    transition-delay: 0.3s;
    animation-delay: 1.7s;
}

.main-product .boxs li:hover .img-box .extra-info p:nth-child(4) {
    transition-delay: 0.4s;
    animation-delay: 2.5s;
}

/* 悬停效果 */
.main-product .boxs li:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 243, 255, 0.2),
        0 0 20px rgba(157, 0, 255, 0.2), 0 0 5px rgba(0, 243, 255, 0.5);
    z-index: 3;
    border: 1px solid rgba(0, 243, 255, 0.5);
}

/* 媒体查询 - 统一整理 */
@media screen and (max-width: 768px) {
    .main-product {
        padding: 30px 0;
    }

    .main-product .boxs {
        padding: 0 15px;
        gap: 15px;
    }

    .main-product .boxs li {
        width: 100%;
        margin-bottom: 15px;
    }

    .main-product .tits img {
        width: 80%;
    }

    .main-product .boxs li .img-box .extra-info {
        width: 100%;
        height: auto;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
        border-left: none;
        border-top: 1px solid rgba(0, 243, 255, 0.3);
        padding: 15px;
    }

    .main-product .boxs li .img-box .extra-info p {
        margin-bottom: 10px;
        font-size: 11px;
        white-space: normal;
        animation: none !important;
    }

    .main-product .boxs li:hover .img-box .extra-info p {
        white-space: normal;
        animation: none;
    }

    .home-body .main-other .content {
        padding: 0 20px;
    }

    .home-body .main-other .other1 .content-r,
    .home-body .main-other .other2 .content-l,
    .home-body .main-other .other3 .content-r {
        width: 100%;
        max-width: none;
        padding: 40px 0;
        float: none;
    }

    .home-body .main-other .others {
        height: auto;
        min-height: 500px;
    }
}

@media screen and (max-width: 1024px) {
    .main-product .boxs {
        padding: 0 20px;
    }

    .main-product .boxs li {
        width: calc(50% - 20px);
        margin-bottom: 20px;
    }

    .home-body .main-product .boxs li {
        height: 200px;
    }

    /* 统一 other1、other2、other3 的样式 */
    .home-body .main-other .others {
        margin-bottom: 40px;
        width: 100%;
    }

    .home-body .main-other .other1,
    .home-body .main-other .other2,
    .home-body .main-other .other3 {
        background-size: cover;
    }

    .home-body .main-other .other1:after,
    .home-body .main-other .other2:after,
    .home-body .main-other .other3:after {
        width: 100%;
        background: rgba(0, 0, 0, 0.4);
    }

    .home-body .main-other .other1 .content,
    .home-body .main-other .other2 .content,
    .home-body .main-other .other3 .content {
        width: 90%;
        padding: 0 5%;
        margin: 0 auto;
    }

    .home-body .main-other .other1 .content-r,
    .home-body .main-other .other2 .content-l,
    .home-body .main-other .other3 .content-r {
        width: 100%;
        padding: 40px 0;
        float: none;
        text-align: center;
    }

    .home-body .main-other .other1 .text,
    .home-body .main-other .other2 .text,
    .home-body .main-other .other3 .text {
        font-size: 14px;
        line-height: 24px;
    }

    .tits img {
        width: 50%;
    }
}

@media screen and (max-width: 1200px) {
    .home-body .main-product .boxs li a:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(41, 128, 185, 0.3);
    }

    .home-body .main-product .boxs li a:hover > div.box-z .img-box {
        opacity: 0;
        filter: alpha(opacity=0);
        -webkit-transform: scale(0.8);
        -ms-transform: scale(0.8);
        -o-transform: scale(0.8);
        transform: scale(0.8);
    }

    .home-body .main-product .boxs li a:hover > div span {
        color: #fff;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .home-body .main-product .boxs li a:hover > div.box-f {
        -webkit-transform: scale(1);
        -ms-transform: scale(1);
        -o-transform: scale(1);
        transform: scale(1);
        opacity: 1;
        filter: alpha(opacity=100);
    }
}

@media screen and (max-width: 1450px) {
    .home-body .main-other .content {
        width: 100%;
        max-width: 1400px;
        padding: 0 40px;
    }

    /* 产品盒子 */
    .home-body .main-product .boxs {
        width: 96%;
    }

    /* 统一 other1、other2、other3 的样式 */
    .home-body .main-other .other1 .content,
    .home-body .main-other .other2 .content,
    .home-body .main-other .other3 .content {
        width: 90%;
        padding: 0 5%;
        max-width: 1400px;
        margin: 0 auto;
    }

    .home-body .main-other .other1 .content-r,
    .home-body .main-other .other2 .content-l,
    .home-body .main-other .other3 .content-r {
        /* width: 50%; */
        padding: 0 5%;
        text-align: left;
    }

    .home-body .main-other .other1 .text,
    .home-body .main-other .other2 .text,
    .home-body .main-other .other3 .text {
        font-size: 15px;
        line-height: 26px;
    }
}
