:root{
    --text:#505254;
    --focus-text:#FFA4A4;
    --focus:#FFBDBD;
    --background:hsl(0, 0%, 100%);

}
*{
    margin: 0;
    padding: 0;
}
body{
    width: 100%;
    height: fit-content;
    padding-bottom: 10px;
    background-color:var(--background);
    position: relative;
}
.header{
    width: 100%;
    height: 65px;
    background-color: var(--background);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0px;
    z-index: 3;
    
}
.header a {
    text-decoration: none;
}
.header-main{
    width: 55%;
    padding-left: 25px;
}
.header-main a {
    font-size: 28px;
    color: var(--focus-text);
}
.header-main a:hover{
    color: var(--focus);
    border-color:var(--focus-text);
    border-top: 2px;
}
.header-other{
    width: 40%;
    display: flex;
    justify-content: space-around;
}
.header-other-container{
    display: none;
}
.header-other a {
    color: var(--text);
}
.sidepanel a {
    color: var(--text);
}
.header-other a:hover{
    color: var(--focus-text);
    border-color:var(--focus-text) ;
    border-top: 2px;
}

/* 側面板樣式 */
.sidepanel {
  position: fixed;
  top: 65px;
  right: -300px; /* 初始隱藏在畫面右側 */
  width: 300px;
  height: calc(100vh - 65px);
  background-color: var(--background);
  box-shadow: -2px 0 15px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.sidepanel a {
  padding: 15px 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid rgba(80, 82, 84, 0.1);
}

.sidepanel a:hover {
  color: var(--focus-text);
  background-color: rgba(255, 189, 189, 0.05);
}

/* 側面板觸發狀態 */
.sidepanel-active {
  transform: translateX(-300px); /* 向左滑入顯示 */
}

/* 移動設備下隱藏原導航連結 */
@media screen and (max-width: 1000px) {
  .header-other > a:not(.sidepanel a) {
    display: none;
  }
}

/*slideshow - 輪播器*/
.slideshow{
    width: 100%;
    height: 480px;
}
        .container {
            max-width: 100vw;
            width: 100%;
        }
        
        
        .carousel-container {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        
        .carousel-wrapper {
            position: relative;
            width: 100%;
            max-width: 100vw;
            margin: 0 auto;
            overflow: hidden;
            border-radius:0px 0px 15px 15px;
            box-shadow: 0 15px 35px rgba(248 215 241 / 30%);;
            height: 500px;
        }
        
        .carousel {
            display: flex;
            transition: transform 0.5s ease-in-out;
            height: 100%;
        }
        
        .carousel-item {
            min-width: 100%;
            height: 100%;
            position: relative;
        }
        
        .carousel-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .carousel-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(248, 211, 240, 0.8), transparent);
            color: white;
            padding: 25px;
            text-align: center;
        }
        
        .carousel-caption h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }
        
        .carousel-caption p {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 80%;
            margin: 0 auto;
        }
        
        .carousel-controls {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            transform: translateY(-50%);
        }
        
        .carousel-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            font-size: 1.5rem;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        }
        
        .carousel-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 5px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 12px;
        }
        
        .indicator {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .indicator.active {
            background: #fff;
            transform: scale(1.3);
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }
        
        .controls-panel {
            max-width: 900px;
            margin: 30px auto 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255, 255, 255, 0.08);
            padding: 20px 30px;
            border-radius: 15px;
            display: none;
        }
        
        .auto-play-control {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .toggle-btn {
            width: 60px;
            height: 30px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            position: relative;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .toggle-btn.active {
            background: #4CAF50;
        }
        
        .toggle-btn::before {
            content: '';
            position: absolute;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: white;
            top: 3px;
            left: 3px;
            transition: transform 0.3s;
        }
        
        .toggle-btn.active::before {
            transform: translateX(30px);
        }
        
        .current-info {
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 20px;
            border-radius: 10px;
        }
       
        .loading {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background: rgba(246, 246, 246, 0.5);
            backdrop-filter: blur(5px);
            z-index: 2;
            flex-direction: column;
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s linear infinite;
        }
/*關於公司*/
.aboutus{
    padding-top: 150px;
    width: 100%;
    height: fit-content;
    background-color: var(--background);
    display: flex;
}
.aboutus table{
    display: flex;
    justify-content: center;
}
.aboutus table th div{
   margin-left: 90px;
    display: flex;
    max-width: 450px;
    flex-direction: column;
    align-items: flex-start;
}
.aboutus table th div h3{
    color: var(--focus-text);
}
.aboutus table th div p{
    font-size: 13px;
    text-align: left;
}
.aboutus table tr th img{
    max-width:300px;
    max-height: 380px;
    border-radius: 5px;
}
.aboutus-but{
    background-color: var(--focus-text);
    color: #ffffff;
    border: 0px;
    width: 80px;
    height: 45px;
    border-radius: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: ease-out .8s;
}
.aboutus-but:hover{
    
    transform:scale(1.1);
        box-shadow: 0px 10px 10px rgb(243 215 215 / 87%);
}
/*公司服務*/
.service{
    padding-top: 120px;
    width: 100%;
    height: fit-content;
    background-color: var(--background);
}
.service-content{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.service-content h4{
    color: var(--text);
}
.service-content h3{
    color: var(--focus-text);
}
        .service-image{
            display: flex;
            justify-content: center;
            overflow-x: auto;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .service-image img{
            width: 180px;
            height: 180px;
            border-radius: 100px;
            margin-right: 20px;

        }
        .service-image-content{
            display: flex;
            align-items: center;
            flex-direction: column;
        }
        /* Hide scrollbar for Chrome, Safari and Opera */
        .service-image::-webkit-scrollbar{
            display: none;
        }

.environment{
    padding-top: 150px;
    width: 100%;
    height: fit-content;
    background-color: var(--background);
}
.environment table th h3{
    color: var(--focus-text);
}
.environment table th h4{
    color: var(--text);
}
.environment table th p{
    width: 450px;
    font-size: 13px;
    text-align: left;
}
#environment-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
    .environment-slides {
        display: none;
    }
    .environment-slides img{
        width: 400px;
        height: 300px;
    }
    .environment-slideshow {
    width: 50%;
    position: relative;
    margin: auto;
    }

    /* Caption text */
    .text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    }

    /* Number text (1/3 etc) */
    .numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
    }

    /* The dots/bullets/indicators */
    .environment-slideshow-dot {
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: var(--focus);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    }

    .active {
    background-color: #717171;
    }

    /* Fading animation */
    .environment-fade {
    animation-name: environment-fade;
    animation-duration: 1.5s;
    }

    @keyframes environment-fade {
    from {opacity: 0.6} 
    to {opacity: 1}
    }

.location{
    padding-top: 120px;
    width: 100%;
    height: fit-content;
    background-color: var(--background);
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

    .location-info1{
        height: 380px;
    } 
    .location-info1 h2{
        color: var(--focus-text);
        padding-bottom: 5px;
    }
    .location-info1 h4{
    color : var(--text);
    padding-bottom: 2px;
    }
    .location-info2{
        max-height: 380px;
    }
    .location-info2 iframe{
        height: 380px;
        border-radius: 5px;
    }

footer{
    padding-top: 65px;
}


@media  screen and (max-width: 1000px)
{
body{
    overflow: auto;
}
.header{
    max-width: 100VW;
}
.header-main{
    width: calc(100% - 80px);
    display: flex;
    padding-left: 20px;
}
.header-other{
    width: 80px;
}
.header-other-container{
    display: block;
    display: inline-block;
  cursor: pointer;
}

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 5px;
  background-color: #333;
  margin: 6px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {opacity: 0;}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

.aboutus table th div {
   margin-left: 30px;
    }
.environment-slideshow{
    max-width: 40%;
}
.environment-slides img {
    width: 280px;
 }
 .service-content h4{
    max-width: 90%;
    text-align: start;
 }
.service-image{
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-wrap: wrap;
    justify-content: center;
}
.service-image img{
    width: 200px;
    height: 200px;
}
.location-info2 iframe{
    max-width: 450px;
}
}
@media  screen and (max-width: 650px)
{
.slideshow{
    height: auto;
}
.carousel-wrapper{
    height: auto;
}
.aboutus table tr th img{
    padding-bottom: 20px;
}
.aboutus-phonesize{
    display: flex;
    flex-direction: column;
    max-width: 100vw;

}
.aboutus table th div {
   margin-left: 10px;
   width: 90vw;
    }
.service-image img{
    width: 100px;
    height: 100px;
}
.environment-slideshow{
    width: 100%;
    max-width: 100vw;

}
#environment-content{
align-items: center;
}
#environment-content p{
    max-width: 95vw;

}
.location{
    flex-direction: column;
}
.location-info1{
    width: 100%;
    height: fit-content;
    padding-bottom: 20px;
    padding-left: 10px;
    font-size: 18px;
}
.location-info2 iframe {
        max-width: 95vw;
    }
/**/
.aboutus{
    padding-top: 100px;
}
.service{
    padding-top: 100px;
}
.environment{
    padding-top: 100px;
}
.location{
    padding-top: 100px;
}
}