:root{
  --blue:#009fe3;
  --pink:#ffd2f2;
  --green:#d9ff52;
  --pale-blue:#dff5ff;
  --ink:#050505;
  --muted:#333;
  --shadow:0 14px 34px rgba(0,0,0,.13);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif;
  color:var(--ink);
  background:#fff;
  font-size:18px;
  line-height:1.65;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.topbar{
  height:74px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  background:#fff;
  position:sticky;
  top:0;
  z-index:10;
  border-bottom:1px solid #eee;
}

.topbar{
  transition: transform .3s ease;
}

.topbar.hide{
  transform: translateY(-100%);
}

.logo img{
  width:128px;
  height:auto;
}
.nav{
  display:flex;
  gap:34px;
  align-items:center;
  font-size:17px;
}
.nav a{opacity:.9}
.nav .lang{
  font-size:16px;
  border:1px solid #ddd;
  border-radius:999px;
  padding:7px 18px;
}

.soft-gradient{
  background:
    radial-gradient(circle at 4% 10%,rgba(255,207,239,.95),transparent 30%),
    radial-gradient(circle at 96% 18%,rgba(80,190,235,.95),transparent 34%),
    linear-gradient(180deg,#fff 0%,#fbfff8 100%);
}

.hero{
  min-height:840px;
  text-align:center;
  padding:105px 20px 84px;
  overflow:hidden;
}

.hero-text h1{
  font-size:clamp(58px,5.8vw,92px);
  line-height:1.08;
  margin:0 0 22px;
  font-weight:900;
  letter-spacing:-.055em;
  font-family: "Noto Sans TC", sans-serif
}
.hero-text p{
  font-size:22px;
  margin:0 auto 34px;
  max-width:860px;
}
.hero-machine{
  width:min(520px,82vw);
  margin:0 auto 36px;
  filter:drop-shadow(0 22px 24px rgba(0,0,0,.14));
}
.hero-cards{
  width:min(880px,calc(100% - 30px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.hero-cards article{
  background:#fff;
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:34px 26px 32px;
  min-height:250px;
}
.hero-cards img{
  height:92px;
  width:92px;
  margin:0 auto 20px;
  object-fit:contain;
}
.hero-cards h3{
  font-size:25px;
  line-height:1.25;
  margin:0 0 14px;
  font-weight:900;
}
.hero-cards p{
  font-size:16px;
  margin:0;
  color:#222;
  line-height:1.55;
}

.section{padding:112px 20px}
.section h2,
.service-band h2{
  font-size:clamp(42px,4vw,58px);
  line-height:1.2;
  text-align:center;
  margin:0 0 78px;
  font-weight:900;
  letter-spacing:-.035em;
  font-family: "Noto Sans TC", sans-serif;
}

.challenge-grid{
  width:min(900px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:52px;
}
.challenge-grid article{text-align:center}
.challenge-grid img{
  height:160px;
  object-fit:contain;
  margin:0 auto 50px;
}
.challenge-grid h3{
  font-size:17px;
  color:#009ee2;
  margin:0 0 10px;
  font-weight:900;
  font-family: "Noto Sans TC", sans-serif;
}
.challenge-grid p{
  font-size:14px;
  line-height:1.45;
  margin:0;
  color:#222;
}

.solution{padding-top:98px}
.solution h2{margin-bottom:66px;font-family: "Noto Sans TC", sans-serif;}
.solution-list{
  width:min(1080px,100%);
  margin:0 auto;
  display:grid;
  gap:82px;
}
.solution-item{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  min-height:285px;
}
.solution-item::before{
  content:"";
  position:absolute;
  z-index:0;
  width:460px;
  height:160px;
}
.solution-item.blue-block::before{background:#009fe3}
.solution-item.pink-block::before{background:#ffc9ef}
.solution-item.green-block::before{background:#d8ff4f}
.solution-item.left::before{left:0;bottom:-18px}
.solution-item.right::before{right:0;bottom:-18px}
.solution-item .image-wrap{
  position:relative;
  z-index:1;
  width:390px;
  justify-self:center;
}
.solution-item .image-wrap img{
  border-radius:2px;
  box-shadow:0 8px 18px rgba(0,0,0,.13);
}
.solution-item .copy{
  position:relative;
  z-index:2;
  width:410px;
}
.solution-item.right .image-wrap{grid-column:2}
.solution-item.right .copy{
  grid-column:1;
  grid-row:1;
  justify-self:center;
}
.solution-item h3{
  font-size:34px;
  margin:0 0 22px;
  font-weight:900;
  letter-spacing:-.02em;
  font-family: "Noto Sans TC", sans-serif
}
.solution-item p{
  font-size:18px;
  line-height:1.7;
  margin:0;
  color:#111;
}
.solution-item.small-img .image-wrap{width:410px}

.product{
  margin-top:50px;
  padding:100px 20px;
  display:grid;
  grid-template-columns:1fr 1.15fr;
  align-items:center;
  gap:58px;
}
.product-copy{
  justify-self:end;
  width:430px;
}
.product h2{
  font-size:48px;
  margin:0 0 20px;
  letter-spacing:-.035em;
  font-family: "Noto Sans TC", sans-serif;
}
.product h3{
  font-size:22px;
  margin:0 0 20px;
  font-family: "Noto Sans TC", sans-serif;
}
.product ul{
  font-size:17px;
  margin:0 0 28px;
  padding-left:22px;
}
.product img{width:520px}
.buttons{
  display:grid;
  width:230px;
  gap:10px;
}
.btn{
  background:#000;
  color:#fff;
  text-align:center;
  border-radius:3px;
  font-size:15px;
  padding:13px 18px;
}

.application{
  padding:60px 20px 80px;
}
.application-grid{
  width:min(860px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:64px;
  align-items:center;
}
.application img{border-radius:2px}
.application h3{
  font-size:32px;
  margin:0 0 20px;
  font-weight:900;
  font-family: "Noto Sans TC", sans-serif;
}
.application p{
  font-size:18px;
  margin:0;
}

.service-band{
  width:min(1060px,calc(100% - 40px));
  margin:0 auto 110px;
  background:linear-gradient(90deg,#009fe3 0 72%);
  padding:64px 74px 74px;
  position:relative;
}
.service-band h2{
  color:#fff;
  text-align:left;
  margin:0 0 24px;
  font-family: "Noto Sans TC", sans-serif;
}
.service-band {
  position: relative;
  padding: 80px 8% 110px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.service-cards article {
  position: static;
  transform: none;
  width: auto;
  min-height: 260px;
  padding: 48px;
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
}

.service-cards article:nth-child(1),
.service-cards article:nth-child(2),
.service-cards article:nth-child(3) {
  position: static;
  transform: none;
  left: auto;
  top: auto;
}
.service-cards h3{
  font-size:22px;
  margin:0 0 16px;
  font-weight:900;
  font-family: "Noto Sans TC", sans-serif;
}
.service-cards p{
  font-size:16px;
  line-height:1.65;
  margin:0;
}
.service-cards article:nth-child(1){
  top:160px;
  left:260px;
}
.service-cards article:nth-child(2){
  top:20px;
  left:480px;
}
.service-cards article:nth-child(3){
  top:150px;
  right:0;
}

.about{
  width:min(980px,calc(100% - 40px));
  display:grid;
  grid-template-columns:1fr 360px;
  gap:90px;
  align-items:start;
  margin:0 auto;
  padding-top:0;
}
.about h2{
  text-align:left;
  margin:0 0 32px;
}
.about h3{
  font-size:20px;
  margin:24px 0 8px;
  font-family: "Noto Sans TC", sans-serif;
}
.about p{
  font-size:16px;
  margin:0;
  color:#111;
}
.about img{border-radius:2px}
.certs{
  display:flex;
  gap:38px;
  align-items:center;
  margin-top:46px;
}
.certs span{
  border:2px solid #3157b7;
  color:#3157b7;
  border-radius:50%;
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  text-align:center;
  font-weight:900;
  line-height:1;
}
.certs strong{
  font-size:52px;
  letter-spacing:.08em;
}

.contact{
  text-align:center;
  padding:94px 20px 72px;
}
.diamond{
  width:58px;
  height:58px;
  background:
    radial-gradient(circle at 70% 25%,#9efaff 0 14px,transparent 15px),
    linear-gradient(135deg,#dfff60,#f3c7ff 55%,#25b9f0);
  transform:rotate(45deg);
  margin:0 auto 34px;
  box-shadow:0 8px 18px rgba(0,0,0,.13);
}
.contact h2{
  font-size:44px;
  margin:0 0 10px;
  letter-spacing:-.03em;
}
.contact p{
  font-size:16px;
  margin:0 0 26px;
}
.contact form{
  width:min(620px,100%);
  margin:0 auto;
  text-align:left;
}
.contact label{
  display:block;
  font-size:14px;
  margin:0 0 16px;
}
.contact input,
.contact textarea{
  display:block;
  width:100%;
  border:1px solid #999;
  border-radius:3px;
  margin-top:6px;
  padding:10px 12px;
  font-size:16px;
  font-family:inherit;
  box-sizing:border-box;
}
.contact input{
  height:44px;
}
.contact textarea{
  min-height:180px;
  resize:vertical;
  line-height:1.6;
}
.contact button{
  width:100%;
  height:46px;
  background:#000;
  color:#fff;
  border:0;
  border-radius:4px;
  margin-top:6px;
  font-size:15px;
  cursor:pointer;
}
.contact button:hover{
  opacity:.86;
}

.footer{
  min-height:170px;
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  align-items:center;
  gap:34px;
  padding:48px 80px;
  font-size:15px;
}
.footer img{width:100%}
.footer address{
  font-style:normal;
  line-height:1.65;
}

@media(max-width:760px){
  body{font-size:16px}

  .topbar{
    height:64px;
    padding:0 18px;
    justify-content:space-between;
  }

  .logo img{width:112px}

  /* 手機版只保留 Logo + English */
  .nav{
    display:block;
    font-size:16px;
  }

  .nav a:not(.lang){
    display:none;
  }

  .nav .lang{
    display:inline-block;
    font-size:16px;
    padding:8px 18px;
  }

  .hero{
    padding-top:62px;
    min-height:auto;
  }

  .hero-text h1{
    font-size:44px;
    line-height:1.08;
    font-weight:900;
    letter-spacing:-.045em;
  }
  .hero-text p{font-size:16px}

  .hero-cards,
  .challenge-grid{
    grid-template-columns:1fr;
  }

  .hero-cards article{min-height:auto}
  .challenge-grid{gap:32px}

  .solution-item,
  .product,
  .application-grid,
  .about,
  .footer{
    grid-template-columns:1fr;
  }

  /* 修正手機版 Solutions 圖片與文字超出版面 */
  .solution-list{
    width:100%;
    gap:72px;
    overflow:hidden;
  }

  .solution-item{
    gap:22px;
    min-height:auto;
    overflow:visible;
    width:100%;
    display:flex;
    flex-direction:column;
  }

  .solution-item::before{
    width:82%;
    height:112px;
    left:50%!important;
    right:auto!important;
    top:145px!important;
    bottom:auto!important;
    transform:translateX(-50%);
    z-index:0;
  }

  .solution-item .image-wrap{
    order:1;
    position:relative;
    z-index:1;
  }

  .solution-item .copy{
    order:2;
    position:relative;
    z-index:2;
    background:#fff;
    padding-top:8px;
  }

  .solution-item.right .image-wrap,
  .solution-item.right .copy{
    grid-column:auto;
    grid-row:auto;
  }


  .solution-item .image-wrap,
  .solution-item .copy,
  .product-copy{
    width:100%;
    max-width:calc(100vw - 48px);
    justify-self:center;
    overflow:hidden;
  }

  .solution-item .image-wrap img{
    width:100%;
    height:auto;
  }

  .solution-item h3{font-size:28px}
  .solution-item p{font-size:16px}

  .product img{
    width:min(440px,100%);
    margin:auto;
    order:1;
  }

  .product-copy{
    justify-self:center;
    order:2;
  }

  .service-band{
    width:calc(100% - 40px);
    padding:46px 28px;
    background:#009fe3;
    margin-bottom:82px;
  }

  .service-cards{
    position:static;
    min-height:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
  }

  .service-cards article{
    position:static;
    width:auto;
    transform:none!important;
  }

  .about{gap:34px}

  .about img{
    width:280px;
    margin:auto;
  }

  .footer{
    text-align:center;
    padding:38px 20px;
  }

  .footer img{margin:auto}
}

/* 初始狀態：還沒進場 */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 出現在畫面後 */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-left.show {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-right.show {
  opacity: 1;
  transform: translateX(0);
}


@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
