/* SAICO - styles for index.html (loaded after common.css) */
:root{--blue:#001fff;--text:#000;--gray:#666;--light:#f5f7fa;--line:#e2e4e6;--container:1600px}
.section-title{font-size:48px;font-weight:600;line-height:1.2;text-align:center;letter-spacing:-.2px}
.logo img{width:auto;height:auto}
.hero{position:relative;height:auto;background:#0e172e;color:#fff;overflow:hidden;overflow:clip;touch-action:pan-y}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.hero-slide.on{opacity:1;visibility:visible;z-index:2}
.hero-slide.leaving{opacity:1;visibility:visible;z-index:1;transition:none}
.hero-slide .bg{position:relative;inset:0;background:center/cover no-repeat;transform:scale(1.06);transition:transform 7s ease-out}
.hero-slide .bg img{width:100%;height:auto;object-fit:cover;}
.hero-slide.on .bg{transform:scale(1)}
/*.hero-slide::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(10,18,45,.55) 0%,rgba(10,18,45,.25) 40%,rgba(10,18,45,0) 60%)}
 .hero-slide.dark-left::before{background:linear-gradient(90deg,rgba(6,18,58,.82) 0%,rgba(6,18,58,.6) 38%,rgba(6,18,58,0) 62%)}
 */
.hero .container{position:relative;z-index:2;padding-top:118px}
.hero-slide .container>*{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.hero-slide.on .container>*{opacity:1;transform:none}
.hero-slide.on .container>:nth-child(2){transition-delay:.12s}
.hero-slide.on .container>:nth-child(3){transition-delay:.24s}
.hero-slide.on .container>:nth-child(4){transition-delay:.36s}
.hero .hero-btn{height:54px;padding:0 34px;font-size:16px;margin-top:40px}
.hero-ctrl{position:absolute;left:0;right:0;bottom:56px;z-index:3}
.hero .hero-ctrl .container{padding:0;display:flex;align-items:center;justify-content:space-between}
.hero-dots{display:flex;gap:12px}
.hero-dots button{width:40px;height:4px;background:rgba(255,255,255,.4);padding:0;position:relative;overflow:hidden}
.hero-dots button{transition:width .4s ease,background .4s}
.hero-dots button:hover{background:rgba(255,255,255,.7)}
.hero-dots button.on{width:72px;background:rgba(255,255,255,.55)}
.hero-dots button::after{content:"";position:absolute;inset:0;background:#fff;transform:scaleX(0);transform-origin:left}
.hero-dots button.on::after{animation:heroBar var(--hero-delay,6s) linear forwards}
.hero.paused .hero-dots button.on::after{animation-play-state:paused}
@keyframes heroBar{to{transform:scaleX(1)}}
.hero-arrows{display:flex;gap:10px}
.hero-arrows button{width:50px;height:50px;background:transparent;border:1px solid rgba(255,255,255,.45);display:flex;align-items:center;justify-content:center;transition:.2s}
.hero-arrows button:hover{background:var(--blue);border-color:var(--blue)}
.hero-arrows svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.2}
.hero h1{font-size:50px;font-weight:700;line-height:58px;white-space:nowrap;letter-spacing:-1px}
.hero .lead{font-size:18px;line-height:36px;margin-top:22px;width:700px}
.hero ul{margin-top:28px}
.hero li{font-size:20px;font-weight:300;line-height:36px;display:flex;align-items:center;gap:8px}
.hero li svg{width:15px;height:15px;flex:none}
.hero .note{font-size:18px;font-weight:500;margin-top:30px}
.float-bar{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:60;display:flex;flex-direction:column;gap:4px}
.float-bar a{width:56px;height:56px;background:var(--blue);display:flex;align-items:center;justify-content:center;transition:.2s}
.float-bar a:hover{background:#0016c4}
.float-bar svg{width:26px;height:26px;fill:#fff}
.float-toggle{display:none}
.why{background:var(--light);padding:93px 0 119px}
.why .section-title{font-size:47px;letter-spacing:.3px}
.stats{display:grid;grid-template-columns:repeat(8,1fr);gap:21px;margin-top:28px}
.stat{background:#fff;height:323px;text-align:center;padding-top:69px;transition:.3s}
.stat:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(0,31,255,.08)}
.stat .num{font-size:36px;font-weight:600;line-height:1;white-space:nowrap}
.stat .num sup{font-size:22px;vertical-align:baseline}
.stat .num sub{font-size:22px;vertical-align:baseline;font-weight:600}
.stat img{width:52px;height:52px;margin:24px auto 18px}
.stat p{font-size:18px;line-height:24px;padding:0 14px}
.about{padding:125px 0 124px}
.about .container{display:flex;align-items:center;justify-content:space-between}
.about-text{width:660px}
.about h2{font-size:48px;font-weight:600;line-height:1.2}
.about p{font-size:18px;line-height:30px;color:#333;margin-top:22px}
.about .btn{width:176px;height:50px;font-size:16px;margin-top:38px;border-radius: 5px}
.about-media{width:830px;height:508px;position:relative;overflow:hidden;border-radius:2px}
.about-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;}
.about-media .play{position:absolute;left:50%;top:50%;width:140px;height:140px;transform:translate(-50%,-50%);border-radius:50%;cursor:pointer}
.about-media:hover img{transform:scale(1.06)}
.about-media .video{ }
.mold{background:var(--light);padding:98px 0 122px}
.mold #productSlider{padding-top:5%}
.tabs{display:flex;justify-content:center;gap:50px;margin:33px 0 0;border-bottom:1px solid var(--line);margin-bottom:48px}
.tab{display:flex;align-items:center;gap:6px;font-size:18px;color:#111;padding:0 2px 26px;position:relative;cursor:pointer;background:none}
.tab img{height:auto}
.tab.active{color:var(--blue)}
.tab.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:var(--blue)}
.slider{position:relative}
.slider-viewport{overflow:hidden}
.slider-track{display:flex;gap:25px;transition:transform .5s ease}
.product{flex:0 0 calc((100% - 75px)/4);background:#fff;height:426px;padding:16px 0 0;transition:.3s}
.product:hover{box-shadow:0 10px 30px rgba(0,0,0,.08)}
.product .pic{height:290px;display:flex;align-items:center;justify-content:center}
.product .pic img{max-width:100%;max-height:100%}
.product .info{padding:37px 32px 0}
.product h4{font-size:18px;font-weight:400;color:var(--blue);line-height:28px}
.product p{font-size:18px;line-height:30px;color:#111}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:54px;height:54px;border-radius:50%;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.08);display:flex;align-items:center;justify-content:center;z-index:5;transition:.2s}
.arrow svg{width:16px;height:16px;stroke:var(--blue);fill:none;stroke-width:2.4}
.arrow.next{background:var(--blue)}
.arrow.next svg{stroke:#fff}
.arrow:hover{transform:translateY(-50%) scale(1.06)}
.arrow.prev{left:-84px}
.arrow.next{right:-91px}
.certs{padding:105px 0 123px;overflow:hidden;overflow:clip}
.certs .sub{text-align:center;font-size:18px;font-weight:300;color:#222;margin-top:10px}
.cert-stage{position:relative;height:562px;margin-top:60px}
.cert{position:absolute;top:50%;left:50%;background:#fff;box-shadow:0 6px 30px rgba(0,0,0,.08);transition:all .5s ease;cursor:pointer}
.cert img{width:100%;height:100%;object-fit:cover}
.cert[data-pos="0"]{width:428px;height:562px;padding:22px 20px;transform:translate(-50%,-50%);z-index:5}
.cert[data-pos="-1"]{width:320px;height:477px;padding:19px 0 19px 19px;transform:translate(calc(-50% - 374px),-50%);z-index:4}
.cert[data-pos="1"]{width:320px;height:477px;padding:19px 19px 19px 0;transform:translate(calc(-50% + 374px),-50%);z-index:4}
.cert[data-pos="-2"]{width:265px;height:393px;padding:16px 0 15px 16px;transform:translate(calc(-50% - 668px),-50%);z-index:3}
.cert[data-pos="2"]{width:265px;height:393px;padding:16px 16px 15px 0;transform:translate(calc(-50% + 668px),-50%);z-index:3}
.cert[data-pos="hide"]{width:200px;height:300px;transform:translate(-50%,-50%);opacity:0;z-index:1;pointer-events:none}
.certs .arrow.prev{left:-84px}
.certs .arrow.next{right:-91px}
.testi{position:relative;padding:118px 0 108px;background:linear-gradient(180deg,#e5eaf1 0%,#eef2f7 45%,#f4f7fa 100%);overflow:hidden;overflow:clip}
.testi::before,.testi::after{content:"";position:absolute;pointer-events:none}
.testi::before{left:-10%;top:0;width:60%;height:100%;background:linear-gradient(120deg,transparent 40%,rgba(255,255,255,.55) 50%,transparent 60%)}
.testi::after{right:-15%;top:0;width:70%;height:100%;background:linear-gradient(60deg,transparent 45%,rgba(255,255,255,.5) 52%,transparent 60%)}
.testi .container{position:relative;z-index:1}
.testi .section-title{font-size:48px}
.testi .sub{text-align:center;font-size:18px;line-height:30px;color:#111;width:740px;margin:12px auto 0}
.testi-viewport{margin-top:62px}
.testi-track{display:flex;gap:33px;transition:transform .5s ease}
.review{flex:0 0 445px;height:328px;background:#fff;padding:34px 34px 0;position:relative;transition:opacity .4s}
.review.dim{opacity:.45}
.stars{color:#f39500;font-size:15px;letter-spacing:1px;line-height:1}
.review p {
    font-size: 16px;
    line-height: 30px;
    color: #222;
    margin-top: 26px;
    /* height: 110px; 删掉固定高度，改用行高计算 */
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.person{display:flex;align-items:center;gap:8px;position:absolute;left:34px;bottom:33px}
.person img{width:62px;height:62px;border-radius:50%;object-fit:cover}
.person b{display:block;font-size:18px;font-weight:500;line-height:24px}
.person span{display:block;font-size:14px;color:#666;line-height:24px}
.dots{display:flex;justify-content:center;gap:24px;margin-top:33px}
.dots i{width:9px;height:9px;border-radius:50%;background:#c7cbd2;cursor:pointer;transition:.2s}
.dots i.on{background:var(--blue)}
.resources{padding:118px 0 119px}
.res-head{display:flex;align-items:center;justify-content:space-between}
.res-head h2{font-size:50px;font-weight:600;line-height:1}
.res-head .btn{width:161px;height:55px;font-size:16px}
.res-body{display:flex;justify-content:space-between;margin-top:38px}
.res-main{width:765px;align-self:flex-start;background:#fff;box-shadow:0 0 30px rgba(0,0,0,.05);padding:32px 27px 34px;margin-left:2px}
.res-main .img{height:367px;overflow:hidden;border-radius:2px}
.res-main img{width:100%;height:100%;object-fit:cover;transition:.5s}
.res-main:hover img{transform:scale(1.04)}
.date{font-size:14px;color:#555;line-height:20px}
.res-main .date{margin-top:31px}
.res-main h3{font-size:22px;font-weight:500;margin-top:12px;line-height:30px}
.res-main .more{display:block;font-size:14px;line-height:20px;color:var(--blue);margin-top:12px}
.res-list{width:764px}
.news{display:flex;gap:24px;padding-bottom:30px;border-bottom:1px solid var(--line);margin-bottom:34px}
.news:last-child{border-bottom:0;margin-bottom:0}
.news .thumb{flex:0 0 195px;height:138px;overflow:hidden}
.news .thumb img{width:100%;height:100%;object-fit:cover;transition:.5s}
.news:hover .thumb img{transform:scale(1.06)}
.news .date{margin-top:12px}
.news h4{font-size:18px;font-weight:500;line-height:30px;margin-top:6px}
.news:hover h4{color:var(--blue)}
.news p{font-size:14px;color:#666;line-height:24px;margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.faq{background:var(--light);padding:105px 0 140px}
.faq .container{display:flex;justify-content:space-between}
.faq-left{width:400px}
.faq-left h2{font-size:50px;font-weight:600;line-height:1}
.faq-left p{font-size:16px;line-height:30px;margin-top:30px}
.faq-left .btn{width:215px;height:55px;font-size:16px;margin-top:100px}
.faq-list{width:991px;margin-top:5px}
.qa{border-bottom:1px solid #000}
.qa:last-child{border-bottom:0}
.qa .q{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;text-align:left;font-size:20px;color:#111;padding:28px 0 28px}
.qa:first-child .q{padding-top:0}
.qa.open .q{padding-bottom:12px}
.qa .q i{position:relative;width:12px;height:12px;flex:none;margin-right:4px}
.qa .q i::before,.qa .q i::after{content:"";position:absolute;background:#111;left:0;top:5px;width:12px;height:1.6px;transition:.3s}
.qa .q i::after{transform:rotate(90deg)}
.qa.open .q i::after{transform:rotate(0)}
.qa .a{overflow:hidden;max-height:0;transition:max-height .4s ease}
.qa .a p{font-size:16px;line-height:30px;color:#333;padding-bottom:26px;hyphens:auto;-webkit-hyphens:auto}
.qa.open .a{max-height:200px}

@media (max-width:1280px){
  :root{--container:1400px}
  .about-text{width:46%}
  .about-media{width:50%;height:auto;aspect-ratio:830/508}
  .res-main{width:49%}
  .res-list{width:48%}
  .faq-list{width:62%}
  .arrow.prev{left:-62px}
  .arrow.next{right:-62px}
  .certs .arrow.prev{left:-62px}
  .certs .arrow.next{right:-62px}
}

@media (max-width:1280px){
  .stats{grid-template-columns:repeat(4,1fr)}
  .about .container,.res-body,.faq .container,.cta .container{flex-direction:column;gap:40px}
  .about-text,.about-media,.res-main,.res-list,.faq-left,.faq-list,.cta-form,.cta-left{width:100%}
  .cta-form{margin-top:0}
  .hero h1,.hero .lead{width:auto}
  .arrow{display:none}
  .hero h1{white-space:normal}
  .cert[data-pos="-2"],.cert[data-pos="2"]{opacity:0;pointer-events:none}
  .cert[data-pos="-1"]{transform:translate(calc(-50% - 260px),-50%) scale(.85)}
  .cert[data-pos="1"]{transform:translate(calc(-50% + 260px),-50%) scale(.85)}
}

@media (max-width:760px){
  .container{max-width:calc(100% - 32px)}
  .float-bar{top:auto;bottom:16px;right:16px;transform:none;flex-direction:column-reverse;gap:8px;align-items:center}
  .float-toggle{display:flex;width:48px;height:48px;border-radius:50%;background:var(--blue);align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,31,255,.35);transition:transform .25s}
  .float-toggle .i-close{display:none}
  .float-bar.open .float-toggle .i-open{display:none}
  .float-bar.open .float-toggle .i-close{display:inline}
  .float-bar a{width:44px;height:44px;border-radius:50%;box-shadow:0 4px 12px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(12px) scale(.8);transition:opacity .2s,transform .2s,visibility .2s}
  .float-bar a svg{width:22px;height:22px}
  .float-bar.open a{opacity:1;visibility:visible;transform:none}
  .float-bar.open a:nth-of-type(2){transition-delay:.03s}
  .float-bar.open a:nth-of-type(3){transition-delay:.06s}
  .float-bar.open a:nth-of-type(4){transition-delay:.09s}
  .hero{height:780px}
  .hero .container{padding-top:48px}
  .hero h1{font-size:28px;line-height:36px;white-space:normal}
  .hero h1 br{display:none}
  .hero .lead{font-size:15px;line-height:26px}
  .hero li{font-size:15px;line-height:28px}
  .hero .note{font-size:15px}
  .hero-ctrl{bottom:24px}
  .hero .hero-btn{margin-top:28px}
  .hero .note{margin-top:20px}
  .hero ul{margin-top:18px}
  .hero-arrows button{width:40px;height:40px}
  .section-title,.why .section-title,.testi .section-title{font-size:30px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .stat{height:auto;padding:36px 0 30px}
  .stat .num{font-size:28px}
  .stat .num sub{font-size:17px}
  .stat p{font-size:15px;line-height:21px;padding:0 8px}
  .res-head{flex-wrap:wrap;gap:16px}
  .res-head h2{font-size:34px}
  .res-head .btn{width:auto;padding:0 22px;height:46px}
  .tabs{flex-wrap:wrap;gap:16px}
  .product{flex-basis:100%}
  .review{flex-basis:100%}
  .testi .sub{width:auto}
  .cert-stage{height:440px}
  .cert[data-pos="-2"],.cert[data-pos="2"],.cert[data-pos="-1"],.cert[data-pos="1"],.cert[data-pos="hide"]{display:none}
  .cert[data-pos="0"]{width:300px;height:400px}
  .news{flex-direction:column}
  .logo img{width:120px}
}

@media (max-width:360px){
  .logo img{width:100px}
}

@media (max-width:760px){
  .cta .container{padding-top:0;gap:28px}
  .product{height:auto;padding:12px 0 22px}
  .product .pic{height:220px}
  .product .info{padding:16px 22px 0}
  .product h4,.product p{font-size:16px;line-height:26px}
  .hero{/* display:grid;grid-template-columns:minmax(0,1fr); */height:auto}
  .hero-slide{position:relative;inset:auto;grid-area:1/1;padding-bottom:0px}
  .hero .container{padding-top:36px}
  .hero-swiper{position:relative;inset:auto}
  .why{padding:48px 0 52px}
  .stat{padding:22px 0 18px!important}
  .stat img{width:36px;height:36px;margin:12px auto 10px}
  .stat p{font-size:14px;line-height:19px}
  .why .section-title{font-size:26px}
  .stats{margin-top:20px}
  .section-title{font-size:26px}
  .about{padding:52px 0}
  .about .container{gap:28px}
  .about h2{font-size:30px}
  .about p{font-size:15px;line-height:26px;margin-top:14px}
  .about .btn{margin-top:22px;height:46px}
  .about-media .play{width:80px;height:80px}
  .mold{padding:52px 0}
  .tabs{flex-wrap:nowrap;justify-content:flex-start;gap:26px;overflow-x:auto;margin:20px -16px 24px;padding:0 16px;scrollbar-width:none}
  .tabs::-webkit-scrollbar{display:none}
  .tab{flex:none;white-space:nowrap;font-size:15px;padding-bottom:14px}
  .tab img{width:24px}
  .certs{padding:52px 0}
  .certs .sub{font-size:15px}
  .cert-stage{height:420px;margin-top:28px}
  .cert[data-pos="0"]{width:290px;height:390px;padding:14px}
  .testi{padding:52px 0}
  .testi .sub{font-size:15px;line-height:24px}
  .testi-viewport{margin-top:28px}
  .review{height:auto;padding:24px 24px 100px}
  .review p{height:auto;font-size:15px;line-height:26px;margin-top:14px}
  .person{left:24px;bottom:24px}
  .dots{margin-top:24px}
  .resources{padding:52px 0}
  .res-body{margin-top:24px;gap:28px}
  .res-main{padding:14px 14px 20px;margin-left:0}
  .res-main .img{height:auto;aspect-ratio:16/10}
  .res-main .date{margin-top:16px}
  .res-main h3{font-size:18px;line-height:26px;margin-top:6px}
  .news{flex-direction:row;gap:14px;padding-bottom:18px;margin-bottom:18px}
  .news .thumb{flex:0 0 112px;height:80px}
  .news .date{margin-top:0;font-size:12px}
  .news h4{font-size:15px;line-height:22px;margin-top:2px}
  .news p{font-size:13px;line-height:20px}
  .faq{padding:52px 0}
  .faq .container{gap:28px}
  .faq-left h2{font-size:34px}
  .faq-left p{font-size:15px;line-height:26px;margin-top:14px}
  .faq-left .btn{margin-top:22px;height:46px;width:auto;padding:0 24px}
  .qa .q{font-size:16px;padding:18px 0;gap:16px}
  .qa.open .q{padding-bottom:8px}
  .qa .a p{font-size:14px;line-height:24px;padding-bottom:18px}
  .qa.open .a{max-height:640px}
}

/* ===== Swiper carousels (index.php + js/index.js) =====
   Scoped to the .swiper classes so the static index.html (custom sliders) is unaffected. */
/* Hero: fade effect; the active-slide animations use .swiper-slide-active instead of .on */
.hero-swiper{/* position:absolute; */inset:0}
.hero-swiper .hero-slide{position:relative;inset:auto;visibility:visible;opacity:1}
.hero-swiper .swiper-slide-active .bg{transform:scale(1)}
.hero-swiper .swiper-slide-active .container>*{opacity:1;transform:none}
.hero-swiper .swiper-slide-active .container>:nth-child(2){transition-delay:.12s}
.hero-swiper .swiper-slide-active .container>:nth-child(3){transition-delay:.24s}
.hero-swiper .swiper-slide-active .container>:nth-child(4){transition-delay:.36s}
.hero-ctrl{z-index:3}
/* Products: Swiper sets the slide width and spacing */
.slider-track.swiper-wrapper{gap:0}
.product.swiper-slide{flex:0 0 auto}
/* Certificates: each slide spans the stage; js/index.js positions and sizes the cards */
.cert-stage.swiper{overflow:visible}
.cert-stage .swiper-slide{pointer-events:none;transition-property:transform,opacity}
.cert-stage.swiper .cert{transform:translate(-50%,-50%);transition-property:width,height,padding;transition-duration:0s;pointer-events:auto}
/* Testimonials: fixed-width cards, the 4th visible card is dimmed */
.testi-viewport.swiper{overflow:visible}
.testi-track.swiper-wrapper{gap:0}
.testi-viewport .swiper-slide-active+.review+.review+.review{opacity:.45}

