@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap");
:root {
  font-size: clamp(16px, 2.8vw, 18px);
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.7rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.3rem);
  font-weight: 500;
}

h5 {
  font-size: clamp(1.125rem, 1.7vw, 1.2rem);
  font-weight: 400;
}

h6 {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
}

p,
a,
span {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

small {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  font-weight: 400;
}

li {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
}

body {
  font-family: "Noto Sans TC", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* CSS */
[data-aos=blur-up] {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  transition: all 0.1s ease;
}

[data-aos=blur-up].aos-animate {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

h2 {
  margin-bottom: 3rem;
  text-align: center;
  color: #295f9e;
}
@media (max-width: 768px) {
  h2 {
    margin-bottom: 2rem;
  }
}

.split {
  display: inline-block;
  overflow: hidden;
  text-shadow: 0 1.3em currentColor; /* 和 JS 位移一致 */
  will-change: transform;
  padding: 1 1rem;
}

.char {
  display: inline-block;
  position: relative;
}

section {
  padding: 8rem 0rem;
}
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

a {
  text-decoration: none;
  color: #295f9e;
}

img {
  -o-object-fit: cover;
     object-fit: cover;
}

.all-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}
.all-bg img,
.all-bg video {
  width: 100%;
  height: 100%;
  display: block;
  -o-object-fit: cover;
     object-fit: cover;
}

.cta-link {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  z-index: 999;
  flex-direction: column;
  display: flex;
  gap: 1rem;
  /* 避免子項目被等寬拉伸，同時維持靠右貼齊 */
  align-items: flex-end;
}
@media (max-width: 768px) {
  .cta-link {
    bottom: 1rem;
    right: 0.5rem;
  }
}
.cta-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 2rem;
  overflow: hidden;
}
.cta-link a.line {
  background: #39cd00;
}
.cta-link a.tel {
  background: #295f9e;
}
.cta-link a.tel svg #background {
  fill: #295f9e;
  fill: #f2a03d;
}
.cta-link a.tel svg #icon {
  fill: white;
  fill: #333;
}
.cta-link a .icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.cta-link a .icon svg {
  width: 50px;
}
.cta-link a .label {
  white-space: nowrap;
  overflow: hidden;
  color: white;
  /* 用可動畫屬性取代 display */
  opacity: 0;
  visibility: hidden;
  max-width: 0; /* 或用 width，依喜好 */
  margin-left: 0;
  transform: translateX(8px);
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.cta-link a:hover {
  gap: 0.5rem;
}
.cta-link a:hover .label {
  opacity: 1;
  visibility: visible;
  max-width: 200px;
  margin-left: 0rem;
  padding-right: 1rem;
  transform: translateX(0);
  transition: opacity 0.3s ease, max-width 0.3s ease, margin-left 0.3s ease, transform 0.3s ease, visibility 0s;
}
.cta-link .dropdown-menu {
  margin-right: 0.25rem;
  margin-left: 0;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 1049;
  transition: 0.5s;
  background: white;
}
.navbar .navbar-brand {
  transition: 0.5s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .navbar-brand span {
  display: inline-block;
  text-decoration: none;
  font-family: "Inter", "Noto Sans TC", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: #295f9e; /* 工業藍主體 */
  text-shadow: 0 1px 2px rgba(50, 72, 94, 0.25), 0 0 8px rgba(183, 187, 195, 0.15); /* 鋁灰柔暈 */
}
.navbar .navbar-brand span:hover {
  color: #1e4d82;
  text-shadow: 0 2px 6px rgba(50, 72, 94, 0.35), 0 0 12px rgba(242, 160, 61, 0.35); /* 品質橙光暈 */
}
.navbar .navbar-brand img {
  width: 80px;
  transition: 0.5s;
}
@media (max-width: 768px) {
  .navbar .navbar-brand img {
    width: 80px;
  }
}
.navbar .navbar-collapse {
  flex-grow: 0;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse {
    padding-top: 1rem;
  }
}
.navbar .navbar-collapse .navbar-nav {
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse .navbar-nav {
    gap: 0.5rem;
  }
}
.navbar .navbar-collapse .navbar-nav .nav-item.cta {
  background: #295f9e;
}

.parallax-fixed {
  position: relative;
  height: 100vh; /* 可自行調整高度 */
  overflow: hidden;
}
.parallax-fixed .parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 120%;
}
.parallax-fixed .parallax-img img {
  width: 100%;
  height: 100%;
}

.parallax-dynamic {
  position: relative;
  /* 高度交給圖片本身決定 */
}
.parallax-dynamic .parallax-media {
  overflow: hidden;
  line-height: 0; /* 移除 img 作為 inline 元素的行高縫隙 */
}
.parallax-dynamic .parallax-media img {
  display: block;
  width: 100%;
  height: auto;
  /* 關鍵：先往上、並放大一點，避免上下兩端出現空白 */
  transform: translateY(-12%) scale(1.12);
  transform-origin: center;
  will-change: transform;
}

#hero {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
  -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 89%, 50% 100%, 0 89%);
          clip-path: polygon(0% 0%, 100% 0, 100% 89%, 50% 100%, 0 89%);
  margin-top: 72.45px;
}
@media (max-width: 768px) {
  #hero {
    height: 40vh;
    margin-top: 64.4px;
  }
}
#hero .swiper {
  position: absolute;
  top: -10%; /* 往上預留位移空間 */
  left: 0;
  width: 100%;
  height: 110%;
  will-change: transform;
}
#hero .swiper .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 8s ease; /* 控制漸進放大 */
  -o-object-position: bottom left;
     object-position: bottom left;
}
#hero .cta-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: end;
  background: rgba(0, 0, 0, 0.438);
  background: linear-gradient(to right, rgba(41, 95, 158, 0) 40%, rgba(41, 95, 158, 0.7) 70%);
}
@media (max-width: 768px) {
  #hero .cta-box {
    background: rgba(41, 95, 158, 0.5);
    display: none;
  }
}
#hero .cta-box .cta-content {
  color: white;
  border-radius: 1rem;
}
#hero .cta-box .cta-content h1 {
  margin-bottom: 1rem;
}
#hero .cta-box .cta-content p {
  margin-bottom: 2rem;
}
#hero .cta-box .cta-content .btn-box {
  display: flex;
  gap: 1rem;
  align-items: center;
}
@media (max-width: 768px) {
  #hero .cta-box .cta-content .btn-box {
    flex-direction: column;
  }
}
#hero .cta-box .cta-content .btn-box a {
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10rem;
  transition: 0.5s;
}
@media (max-width: 768px) {
  #hero .cta-box .cta-content .btn-box a {
    padding: 0.5rem 1rem;
  }
}
#hero .cta-box .cta-content .btn-box a i {
  padding-left: 0.5rem;
  font-size: 1.3rem;
}
#hero .cta-box .cta-content .btn-box a:first-child {
  background: #295f9e;
  color: white;
}
#hero .cta-box .cta-content .btn-box a:first-child svg {
  fill: gray;
}
#hero .cta-box .cta-content .btn-box a:last-child {
  color: gray;
  background: white;
}
#about {
  position: relative;
  padding: 6rem 0;
}
@media (max-width: 768px) {
  #about {
    padding: 3rem 0 0;
  }
}
#about .text {
  position: relative;
  z-index: 10;
}
#about .text p {
  line-height: 2;
  margin-bottom: 2rem;
}

#features {
  position: relative;
  padding: 5rem 0;
  -webkit-clip-path: polygon(0 11%, 50% 0%, 100% 11%, 100% 100%, 0% 100%);
          clip-path: polygon(0 11%, 50% 0%, 100% 11%, 100% 100%, 0% 100%);
}
@media (max-width: 768px) {
  #features {
    -webkit-clip-path: polygon(0 5%, 50% 0%, 100% 5%, 100% 100%, 0% 100%);
            clip-path: polygon(0 5%, 50% 0%, 100% 5%, 100% 100%, 0% 100%);
  }
}
#features::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: linear-gradient(-150deg, rgba(41, 95, 158, 0.95), rgba(41, 95, 158, 0.2));
}
#features img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
#features .feature-card {
  position: relative;
  z-index: 10;
  background-image: linear-gradient(135deg, #fff7d1 0%, #f9e18b 20%, #f4c95a 40%, #e1aa3a 60%, #f4c95a 80%, #b88927 100%);
  padding: 2rem;
  border-radius: 0.5rem;
  color: white;
  text-align: center;
  position: relative;
}
#features .feature-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 95%;
  border-radius: 0.5rem;
  border: 2px solid rgb(255, 255, 255);
}
#features .feature-card i {
  font-size: 3.5rem;
}
#features .feature-card h3 {
  margin-top: 1rem;
}

.auto-carousel {
  padding: 0;
}
.auto-carousel .swiper {
  width: 100%;
  transform: rotate(0deg);
  position: relative;
}
.auto-carousel .swiper .swiper-wrapper {
  transition-timing-function: linear !important; /* 平滑線性移動 */
}
.auto-carousel .swiper .swiper-slide {
  width: 600px;
  aspect-ratio: 3/2;
}
@media (max-width: 768px) {
  .auto-carousel .swiper .swiper-slide {
    width: 300px;
  }
}
.auto-carousel .swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

#products .product-card .img-box {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
@media (max-width: 768px) {
  #products .product-card .img-box {
    height: 300px;
  }
}
#products .product-card .img-box:hover img {
  transform: scale(1.2);
}
#products .product-card .img-box:hover .title-box {
  background: none;
}
#products .product-card .img-box img {
  width: 100%;
  height: 100%;
  transition: 2s;
}
#products .product-card .img-box .title-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: none;
  display: flex;
  justify-content: center;
  align-items: end;
  padding: 0;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.537254902) 100%);
}
#products .product-card .img-box .title-box .title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1rem;
  z-index: 10;
  color: white;
  align-items: center;
}
#products .product-card .img-box .title-box .title h4 {
  margin-bottom: 0;
}
#products .product-card .img-box .title-box .title i {
  font-size: 2rem;
}
#products .product-card .content {
  display: none;
  background: #32485e;
  color: white;
  transform: translateY(-1rem);
  z-index: -1;
  position: relative;
  border-radius: 0 0 1rem 1rem;
}
#products .product-card.is-open .content {
  display: block;
  padding: 2.5rem 18px 1rem;
}
#products .product-card.is-open .icon-plus {
  display: none;
}
#products .product-card.is-open .icon-minus {
  display: inline-block;
}
#products .product-card .icon-minus {
  display: none;
}

#works .nav-pills .nav-link.active,
#works .nav-pills .show > .nav-link {
  background: #295f9e;
}
#works .nav-pills .nav-link {
  color: #ff6b00;
}

#contact {
  margin-top: 5rem;
  background: #295f9e;
}
#contact h2 {
  color: white;
}
@media (max-width: 768px) {
  #contact {
    padding-bottom: 1rem;
  }
}
#contact .contact-box {
  display: flex;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  #contact .contact-box {
    margin-bottom: 1rem;
  }
}
#contact .contact-box:last-child {
  margin-bottom: 0;
}
#contact .contact-box .icon-box {
  background: #295f9e;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
}
#contact .contact-box .icon-box i {
  color: white;
  font-size: 2rem;
}
#contact .contact-box a {
  color: #295f9e;
  font-weight: 600;
}
#contact .contact-box span {
  display: block;
  color: gray;
  margin-top: 0.5rem;
}

footer {
  background: #295f9e;
  padding-bottom: 1rem;
  color: white;
}
footer a {
  text-decoration: underline;
  color: #f2a03d;
}/*# sourceMappingURL=all.css.map */