 
header{ background-color:#FAFAFA;  }
#Logo{position:absolute;left:238px;top:-28px;}
#HeadTopMenu{position:absolute;left:539px;top:38px;}
@media screen and (max-width:1200px){#HeadTopMenu{position:fixed;left:0px;top:0px;}}
#banner{position:absolute;left:px;top:px;width:100px;height:auto}
/* 通用樣式 */
::selection {

color: #fff;

background-color:#E95613;

}
.button-container {
    display: inline-block;
    margin-right: 20px; /* 調整按鈕之間的距離 */
    margin-bottom: 20px; /* 避免按鈕之間重疊 */
}

.custom-button {
    display: block;
    width: 300px; /* 固定寬度 */
    height: 300px; /* 固定高度 */
    position: relative;
    overflow: hidden;

    transition: border-color 0.3s, transform 0.3s;
}

.custom-button img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片填滿按鈕區域且保持圖片比例 */
    transition: transform 0.3s;
}

.custom-button:hover {

    transform: scale(1.1);
}

.custom-button:hover img {
    transform: scale(1.1);
}

/* 手機上的樣式 */
@media (max-width: 768px) {
    .custom-button {
        width: 100%; /* 使按鈕寬度適應屏幕 */
        max-width: 400px; /* 設定最大寬度 */
        height: auto; /* 高度自動 */
        aspect-ratio: 1 / 1; /* 確保方形比例 */
    }

    .button-container {
        margin-right: 10px; /* 減少按鈕之間的距離 */
    }
}

  .carousel {
    height: auto;
  }

  .slide img {
    width: 100%;
    height: auto;
  }

  span {
    font-size: 14px; /* 調整手機上的字體大小 */
  }
}



/* styles.css */

    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    transition: padding 0.3s, font-size 0.3s;
}


}


    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.carousel-container {
    position: relative;
    width: 80%;
    max-width: 900px;
    overflow: hidden;
}

.carousel {
    display: flex;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    scroll-behavior: smooth; /* Smooth scrolling */
}

.carousel-item {
    min-width: 33.333%; /* Show 3 items at a time */
    box-sizing: border-box;
    padding: 10px;
}

.carousel-item img {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 100;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.carousel-button:focus {
    outline: none;
}

&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;body {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #000;
            margin: 0;
        }
        .animated-text {
            font-size: 5rem;
            font-weight: bold;
            color: white;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
            animation: moveText 3s infinite alternate;
        }
        @keyframes moveText {
            0% {
                transform: translateY(0);
            }
            100% {
                transform: translateY(-20px);
            }
        }
.carousel {
    width: 600px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border-radius: 15px; /* 圓角 */
}

.carousel-inner {
    position: relative;
    width: 100%;
    height: 300px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* 圓角 */
}

input[type=&amp;quot;radio&amp;quot;] {
    display: none;
}

.controls {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.controls label {
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

input:checked + .slides {
    transform: translateX(-100%);
}

/* Ensure labels correctly align with the slides */
input#slide1:checked ~ .slides {
    transform: translateX(0%);
}

input#slide2:checked ~ .slides {
    transform: translateX(-100%);
}

input#slide3:checked ~ .slides {
    transform: translateX(-200%);
}

input#slide4:checked ~ .slides {
    transform: translateX(-300%);
}



.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 內容區塊樣式 */
.content-block {
    padding: 40px 0;
    background: #f9f9f9;
}

.content-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-item img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #ddd;
}

.content-text {
    padding: 20px;
    text-align: center;
}

/* 標題漂浮效果 */
.animated-title {
    margin-top: 0;
    font-size: 1.8em;
    color: #333;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* 標題懸停效果 */
.animated-title:hover {
    color: #007bff;
    transition: all 0.3s ease;
}

.content-text p {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* 基本樣式 */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* 圖片輪播容器 */
.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 800px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 10px;
}

/* 隱藏 radio 按鈕 */
.carousel input[type=&amp;quot;radio&amp;quot;] {
    display: none;
}

/* 輪播圖片 */
.slides {
    display: flex;
    width: 400%;
    transition: transform 1s ease-in-out;
    animation: auto-slide 30s infinite; /* 調整動畫時長為 30s */
}

.slide {
    min-width: 100%;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 顯示相應的幻燈片 */
#slide1:checked ~ .slides {
    transform: translateX(0);
}

#slide2:checked ~ .slides {
    transform: translateX(-100%);
}

#slide3:checked ~ .slides {
    transform: translateX(-200%);
}

#slide4:checked ~ .slides {
    transform: translateX(-300%);
}

/* 自動輪播動畫 */
@keyframes auto-slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    
  
}

/* 控制按鈕樣式 */
.controls {
    position: absolute;
    bottom: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.control-btn {
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.control-btn:hover {
    background: #007bff;
}

/* 隱藏控制按鈕的樣式 */
.controls {
    display: flex;
}



&amp;lt;/style&amp;gt;





