* {
    padding:0;
    margin:0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
}
.menu {
    display:none;
}
header {
     z-index: 1000;     /* 讓這個區塊在所有元素上層 */
    background-color:rgb(255, 255, 255);/* 第四個數字碼代表透明程度 */
    height:80px;
    width:100%;
    position:fixed;
    border-bottom: 3px solid #0058a6;/* 調整區塊下緣的邊框顏色 */
}
h1 {
    color:rgb(255, 255, 255);
    position:absolute;
    left:120px;
    top:0;
    line-height: 80px;
    background-image:url(images/TPLlogo.png) ;
    background-repeat: no-repeat;
    background-position: center;
    width:510px; /* 寬度與圖片寬度一致 */
    text-indent: -9999px; 
}
header ul {
    position:absolute;
    right:5vw;
    top:0;
    line-height:80px;
}
header li {
    display:inline;
    margin-right:4vw;    
}
header a {
    color:rgb(0, 0, 0);
    text-decoration: none;
}
header a:hover {
    color:red
}

.story {
    margin-top: 80px; /* 為了不被固定header遮住 */
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.story h1 {
    color: white;
    background-image: none;
    position: relative;
    left: auto;
    top: auto;
    line-height: normal;
    width: auto;
    text-indent: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 2.5em;
    text-align: center;
    font-weight: bold;
}

.timeline {
    padding: 120px 20px;
    background-color: #f9f9f9;
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #0058a6;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #0058a6;
    border: 4px solid #ffffff;
    box-shadow: 0 0 0 4px #0058a6;
}

.timeline-date {
    font-size: 1.2em;
    font-weight: bold;
    color: #0058a6;
    margin-bottom: 10px;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.timeline-content h4 {
    color: #0058a6;
    margin: 15px 0 8px 0;
    font-size: 1.1em;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
}

.timeline-content strong {
    color: #0058a6;
}




.newsletter {
    background-color:#4c4c4c;     /* 區塊顏色 */
    color:rgb(255, 255, 255);     /* 區塊內容的顏色 */
    padding:60px 0;                 /* 區塊大小設定 */    /*60px 0*/
    display:flex;
    flex-direction: column;
    align-items: center;
    background-image:url(images/TPLbuttonlogo.jpg) ;
    background-repeat: no-repeat;
    background-size: 200px auto;             /* 圖片大小設定 */
    width:100%;                       /* 寬度與圖片寬度一致 */
    background-position:100px;
    text-indent: -9px; /*-9999px;*/  /* 文字區塊移動 */
}

.newsletter p {
    margin-bottom: 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.newsletter a {
    color: #ffffff;                          /* 設定連結顏色為藍色 */
    text-decoration: none;                   /* 移除底線 */
}
.newsletter a:hover {
    color: #38bdff;                          /* 滑鼠移入時的顏色 */
    text-decoration: underline;              /* 滑鼠移入時顯示底線 */
}



.newsletter .address {
     text-align: center; 
     margin: 10px auto; 
     max-width: 600px;
     font-family: Arial, Helvetica, sans-serif;     /* 底部地址的字體 */
}



footer {                                /* 網頁版權宣告 */
    background-color:#000000;
    color:#B7B7B7;
    height:60px;
    display:flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
}











@media screen and (max-width: 768px) {


header ul {
    display: none;
    position: absolute;
    top: 40px;                               /* 緊接在header下方 */
    left: 0%;                  /* 0 */
    width: 100%;
    background-color: rgba(255, 252, 252, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 999;                            /* 確保在其他元素上方 */
    flex-direction: column;
    padding: 0;
    margin: 0;
    opacity: 0;
    
    transform: translateY(-10px);            /* -10px */
    transition: all 0.3s ease;              /* 添加平滑動畫 */
}


h1 {
    width: 300px;        /* 調整 logo 寬度 */
    background-size: contain;  /* 或其他背景尺寸設定 */
    left: 50%;
    transform: translateX(-40%);
}



/* 當選單被激活時顯示 */
header ul.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

header li {
    display: block;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header li:last-child {
    border-bottom: none;
}

header a {
    display: block;
    padding: 15px 20px;
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

header a:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
}

.menu {
    display:block;
    background-color: transparent;
    color: #333;
    font-size: 30px;
    position: absolute;
    top: 15px;
    left: 20px;
    border: 2px solid #333;
    border-radius: 5px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;                           /* 確保在選單上方 */
}

.menu:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: red;
    border-color: red;
}

.newsletter {
    background-image: none;                   /* 在手機版時移除背景圖片 */
    text-indent: 0;                           /* 重設文字縮排 */
}

.timeline-container::before {
    left: 15px;
}

.timeline-item {
    padding-left: 50px;
}

.timeline-item::before {
    left: 6px;
}

.timeline-content {
    padding: 15px;
}


}