body {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background: #fdf8e6;
    line-height: 1.8;
}

header.main-header {
    background: transparent;
    height: 21vw;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

/* 底部弧形曲線 */
.hero-curve-wrapper {
    position: relative;
    width: 100%;
}

.hero-curve-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #007396 0%, #00435a 100%);
    z-index: 0;
}

.hero-curve-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 80%;
    background-image: url('/frontstage/image/header_img.svg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: auto 200%;
    /* opacity: 1; */
}

.other-hero {
    position: relative;
    aspect-ratio: 1440/310;
    left: 0;
    width: 100%;
    z-index: 1;
    display: block;
    height: auto;
    pointer-events: none;
    transform: translateY(2px);
}

header.main-header.product-detail {
    background: transparent;
    height: 1vw;
}
header .navbar-nav .nav-link {
    color: #000000;
    font-weight: 600;
    font-size: 18px;
}
header .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 1200px) {
    .breadcrumb-group {
        bottom: 2.8vw;
    }
    .breadcrumb-group .page-title {
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 992px) {
    .breadcrumb-group .page-title {
        display: none;
    }
    .breadcrumb-group .breadcrumb-nav {
        font-size: 1rem;
    }
}

@media screen and (max-width: 640px) {
    .breadcrumb-group {
        bottom: 0px;
    }
}

/* Hero 水印 */
.hero-watermark {
    position: absolute;
    right: 0px;
    bottom: 22px;
    padding-top: 35px;
    padding-bottom: 35px;
    /* right: 8.6vw; */
    /* bottom: 2.8vw; */
    font: italic 600 84px/1 "Noto Sans TC", sans-serif;
    color: rgba(255, 255, 255, 1);
    opacity: 0.25;
    white-space: nowrap;
    pointer-events: none;
}
@media screen and (min-width: 1440.01px) {
    .hero-watermark {
        /* font-size: 6rem; */
    }
}

/* 確保在不同縮放級別下的響應行為 */
@media screen and (max-width: 992px) {
    .hero-watermark {
        font-size: 4rem;
    }
}

@media screen and (max-width: 768px) {
    .hero-watermark {
        display: none;
    }
}

/* Vanta Banner */
.vanta-banner {
    background: linear-gradient(180deg, #007396 0%, #007396 15%, #00435a 100%);
    color: #fff;
    min-height: 600px;
    overflow: hidden;
    position: relative;
    /* z-index: 10; */
}

/* RWD - vanta-banner 1800px */
@media screen and (max-width: 1800px) {
    .vanta-banner {
        min-height: 550px;
    }
}

/* RWD - vanta-banner 1600px */
@media screen and (max-width: 1600px) {
    .vanta-banner {
        min-height: 500px;
    }
}

/* RWD - vanta-banner 1400px */
@media screen and (max-width: 1400px) {
    .vanta-banner {
        min-height: 450px;
    }
}

/* RWD - vanta-banner 1200px */
@media screen and (max-width: 1200px) {
    .vanta-banner {
        min-height: 400px;
    }
}

/* RWD - vanta-banner 平板 */
@media screen and (max-width: 991px) {
    .vanta-banner {
        min-height: 300px;
    }
}

/* RWD - vanta-banner 768px */
@media screen and (max-width: 768px) {
    .vanta-banner {
        min-height: 250px;
    }
}

/* RWD - vanta-banner 手機 */
@media screen and (max-width: 576px) {
    .vanta-banner {
        min-height: 200px;
    }
}

/* RWD - vanta-banner 小手機 */
@media screen and (max-width: 375px) {
    .vanta-banner {
        min-height: 180px;
    }
}
/* 讓 Vanta 生成的 <canvas> 永遠置底 */
.vanta-banner > canvas {
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 0;
}
/* 內容保持在霧面之上 */
.vanta-banner .container,
.vanta-banner img,
.vanta-banner p {
    position: relative;
    z-index: 2;
}

/* ISO Section - 藍色區塊 */
.iso-section {
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* RWD - iso-section */
@media screen and (max-width: 1800px) {
    .iso-section {
        min-height: 580px;
    }
}

@media screen and (max-width: 1600px) {
    .iso-section {
        min-height: 530px;
    }
}

@media screen and (max-width: 1500px) {
    .iso-section {
        min-height: 495px;
    }
}

@media screen and (max-width: 1400px) {
    .iso-section {
        min-height: 460px;
    }
}

@media screen and (max-width: 1300px) {
    .iso-section {
        min-height: 425px;
    }
}

@media screen and (max-width: 1200px) {
    .iso-section {
        min-height: 380px;
    }
}

@media screen and (max-width: 1100px) {
    .iso-section {
        min-height: 345px;
    }
}

@media screen and (max-width: 1000px) {
    .iso-section {
        min-height: 310px;
    }
}

@media screen and (max-width: 991px) {
    .iso-section {
        min-height: 290px;
    }
}

@media screen and (max-width: 768px) {
    .iso-section {
        min-height: 250px;
    }
}

@media screen and (max-width: 576px) {
    .iso-section {
        min-height: 215px;
    }
}

@media screen and (max-width: 375px) {
    .iso-section {
        min-height: 185px;
    }
}

/* -------- Footer 區 -------- */

@media (min-width: 992px) {
    footer.site-footer {
        text-align: left;
    }
}

/** md */
@media screen and (max-width: 768px) {
    footer .site-desc {
        width: 100%;
        height: auto;
    }
}

footer h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}
footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
}
footer a:hover {
    text-decoration: underline;
}
footer .social a {
    font-size: 1.25rem;
}

.footer-padding {
    padding: 5.2vw 8.2vw;
}
.px-8vw {
    padding-left: 8.2vw;
    padding-right: 8.2vw;
}
.py-5vw {
    padding-top: 5.2vw;
    padding-bottom: 5.2vw;
}

.banner-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 0;
    background: radial-gradient(ellipse at center, #ffb000 0%, #ffc233 100%);
    animation: gradientShift 20s ease infinite;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 0%;
    }
    33% {
        background-position: 100% 0%;
    }
    66% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.wave {
    position: absolute;
    width: 140%;
    height: 160%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 45%;
    animation: wave-rotate 58.5s linear infinite;
}

.wave:nth-child(1) {
    top: -55%;
    left: -10%;
    animation-duration: 38s;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    top: -65%;
    right: -20%;
    animation-duration: 57.5s;
    animation-delay: -19.5s;
    background: rgba(255, 255, 255, 0.05);
}

.wave:nth-child(3) {
    bottom: -60%;
    left: -20%;
    animation-duration: 30s;
    animation-delay: -39s;
    background: rgba(255, 255, 255, 0.08);
}
.wave:nth-child(4) {
    bottom: -50%;
    right: -10%;
    animation-duration: 33s;
    animation-delay: -39s;
    background: rgba(255, 255, 255, 0.03);
}

/* RWD - wave 平板 */
@media screen and (max-width: 991px) {
    .wave {
        width: 200%;
        height: 200%;
    }
    .wave:nth-child(1) {
        top: -80%;
        left: -30%;
    }
    .wave:nth-child(2) {
        top: -90%;
        right: -40%;
    }
    .wave:nth-child(3) {
        bottom: -85%;
        left: -40%;
    }
    .wave:nth-child(4) {
        bottom: -75%;
        right: -30%;
    }
}

/* RWD - wave 手機 */
@media screen and (max-width: 576px) {
    .wave {
        width: 250%;
        height: 250%;
    }
    .wave:nth-child(1) {
        top: -100%;
        left: -50%;
    }
    .wave:nth-child(2) {
        top: -110%;
        right: -60%;
    }
    .wave:nth-child(3) {
        bottom: -105%;
        left: -60%;
    }
    .wave:nth-child(4) {
        bottom: -95%;
        right: -50%;
    }
}

.large-wave.wave:nth-child(1) {
    top: -45%;
    left: -25%;
    animation-duration: 30s;
    animation-delay: 0s;
}
.large-wave.wave:nth-child(2) {
    top: -45%;
    right: -35%;
    animation-duration: 42.5s;
    animation-delay: -5s;
    background: rgba(255, 255, 255, 0.09);
}

.large-wave.wave:nth-child(3) {
    bottom: -50%;
    left: -40%;
    animation-duration: 28s;
    animation-delay: -10s;
    background: rgba(255, 255, 255, 0.09);
}
.large-wave.wave:nth-child(4) {
    bottom: -45%;
    right: -40%;
    animation-duration: 24s;
    animation-delay: -15s;
    background: rgb(255, 255, 255, 0.08);
}

@keyframes wave-rotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.2);
    }
    50% {
        transform: rotate(180deg) scale(0.8);
    }
    75% {
        transform: rotate(270deg) scale(1.15);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* .wave {
    position: absolute;
    border-radius: 45%;
}

.wave:nth-child(1) {
    width: 120vw;
    height: 120vh;
    top: -50vh;
    left: -40vw;
    animation: wave-rotate1 27s linear infinite;
    animation-delay: -8.3s;
    background: rgba(255, 255, 255, 0.09);
}

.wave:nth-child(2) {
    width: 160vw;
    height: 160vh;
    top: -70vh;
    right: -40vw;
    animation: wave-rotate2 35s linear infinite;
    animation-delay: -19.7s;
    background: rgba(255, 255, 255, 0.09);
}

.wave:nth-child(3) {
    width: 120vw;
    height: 120vh;
    bottom: -25vh;
    left: -20vw;
    animation: wave-rotate3 32s linear infinite;
    animation-delay: -24.1s;
    background: rgba(255, 255, 255, 0.08);
}

.wave:nth-child(4) {
    width: 110vw;
    height: 110vh;
    bottom: -25vh;
    right: -25vw;
    animation: wave-rotate4 29s linear infinite;
    animation-delay: -15.6s;
    background: rgba(255, 255, 255, 0.08);
} */

/* 結合旋轉、縮放和位移的動畫 */
@keyframes wave-rotate1 {
    0% {
        transform: rotate(0deg) translate(-20vw, 5vh);
    }
    25% {
        transform: rotate(90deg) scale(1.1) translate(5vw, -12vh);
    }
    50% {
        transform: rotate(180deg) translate(15vw, 8vh);
    }
    75% {
        transform: rotate(270deg) scale(0.9) translate(-5vw, -6vh);
    }
    100% {
        transform: rotate(360deg) translate(-20vw, 5vh);
    }
}

@keyframes wave-rotate2 {
    0% {
        transform: rotate(45deg) scale(0.95) translate(30vw, -20vh);
    }
    33% {
        transform: rotate(165deg) translate(-18vw, 15vh);
    }
    66% {
        transform: rotate(285deg) scale(1.05) translate(0vw, -10vh);
    }
    100% {
        transform: rotate(405deg) scale(0.95) translate(30vw, -20vh);
    }
}

@keyframes wave-rotate3 {
    0% {
        transform: rotate(-30deg) translate(-15vw, 10vh);
    }
    20% {
        transform: rotate(60deg) scale(1.08) translate(6vw, -5vh);
    }
    40% {
        transform: rotate(150deg) translate(20vw, 12vh);
    }
    60% {
        transform: rotate(240deg) scale(0.92) translate(-8vw, -15vh);
    }
    80% {
        transform: rotate(300deg) translate(10vw, 3vh);
    }
    100% {
        transform: rotate(330deg) translate(-15vw, 10vh);
    }
}

@keyframes wave-rotate4 {
    0% {
        transform: rotate(15deg) scale(1.02) translate(5vw, -12vh);
    }
    30% {
        transform: rotate(135deg) translate(-12vw, 6vh);
    }
    60% {
        transform: rotate(255deg) scale(0.88) translate(18vw, -3vh);
    }
    100% {
        transform: rotate(375deg) scale(1.02) translate(5vw, -12vh);
    }
}
/* .quality-logo {
    width: 500px;
} */
/* .quality-logo-item {
    display: inline-block;
}
.quality-logo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} */
/* .quality-logo .slick-slide {
    max-width: 115px !important;
    min-width: 115px !important;
    width: 115px !important;
}
.quality-logo .slick-slide img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
} */

.quality-logo {
    height: 116px;
    overflow: hidden;
}

.quality-logo.slick-slider {
    padding: 0 50px;
    position: relative;
}
.quality-logo .slick-slide {
    padding: 0 10px;
}
.quality-logo .slick-slide img {
    aspect-ratio: 1/1;
    object-fit: cover;
    margin: 0 auto;
    width: 116px;
}

.custom-prev,
.custom-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background-color: transparent;
}
.custom-prev {
    left: 0;
}
.custom-next {
    right: 0;
}

@media screen and (min-width: 1500px) {
    .quality-logo {
        height: 116px;
        overflow: hidden;
    }

    .quality-logo .slick-slide img {
        width: 116px;
    }

    .quality-logo.slick-slider {
        max-width: calc(1320px - 400px - 2rem);
    }
}

@media screen and (min-width: 1700px) {
    .quality-logo {
        height: 116px;
        overflow: hidden;
    }

    .quality-logo .slick-slide img {
        width: 116px;
    }

    .quality-logo.slick-slider {
        max-width: calc(1320px - 400px - 2rem);
    }
}
@media screen and (min-width: 1200.01px) and (max-width: 1440px) {
    .quality-logo.slick-slider {
        max-width: calc(1140px - 260px - 2rem);
    }
}
@media screen and (min-width: 992.01px) and (max-width: 1200px) {
    .quality-logo.slick-slider {
        max-width: calc(960px - 260px - 2rem);
    }
}

/* 漢堡按鈕樣式 */
.mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    z-index: 1060;
}

.hamburger-line {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 14px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -14px);
}

/* 手機版遮罩層 */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 手機版選單主體 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #ffb000;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* 手機版選單頂部 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #ffa500;
}

/* 手機版選單 Logo - 等比例縮小 */
.mobile-menu-logo img {
    /* 1920px 基準: height 40px = 2.08vw */
    height: 2.08vw;
    width: auto;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
}

.mobile-menu-close:hover {
    color: #333;
}

/* 手機版選單內容 */
.mobile-menu-content {
    padding: 0;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(240, 240, 240, 0.3);
}

.mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 下拉箭頭 */
.dropdown-arrow {
    transition: transform 0.2s ease;
}

.mobile-dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* 子選單 */
.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(255, 176, 0, 0.8);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-submenu.active {
    max-height: 200px;
}

.mobile-submenu-link {
    display: block;
    padding: 15px 40px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mobile-submenu-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* 防止背景滾動 */
body.mobile-menu-open {
    overflow: hidden;
}

/* 漸層背景 - 公司簡介 */
.gradient-bg-blue {
    background: linear-gradient(to bottom, #015875, #026a8d, #004056);
}

/* 響應式設定 */
@media (max-width: 991.98px) {
    .desktop-menu {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }
}

@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .mobile-menu,
    .mobile-overlay {
        display: none !important;
    }

    .desktop-menu {
        /* display: block !important; */

        display: flex !important;
        width: 100%;
        justify-content: flex-end;
    }
}

/* 平板優化 */
@media (max-width: 991.98px) and (min-width: 768px) {
    .mobile-menu {
        width: 350px;
    }

    .mobile-nav-link {
        padding: 20px 25px;
        font-size: 16px;
    }

    .mobile-submenu-link {
        padding: 18px 50px;
        font-size: 15px;
    }
}
