/* 全域樣式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.8;
    padding: 0;
    margin: 0;
}

/* 頁首樣式 */
header {
    background-color: #1e66aa;
    color: white;
    padding: 20px 0;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

nav .logo {
    height: 50px;
    margin-right: 20px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #00264d;
}

/* 主要內容區域 */
section {
    padding: 60px 30px;
    text-align: left;
    background-color: white;
    margin: 0 auto 30px;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

section:first-of-type {
    margin-top: 30px;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1e66aa;
    font-weight: 600;
    line-height: 1.3;
}

h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #1e66aa;
    font-weight: 600;
    border-bottom: 3px solid #6699cc;
    padding-bottom: 10px;
    display: inline-block;
}

p {
    font-size: 17px;
    margin-bottom: 15px;
    color: #555;
}

/* 頁尾樣式 */
footer {
    background-color: #1e66aa;
    color: white;
    text-align: center;
    padding: 30px 20px;
    position: relative;
    margin-top: 50px;
}

footer p {
    color: white;
}

#toolBox h2 {
    color: #004080;
    margin-bottom: 10px;
}

#toolBox p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

#toolBox ul {
    list-style: none;
    padding: 0;
    margin-left: 20px; /* 增加左邊距離，模擬階層感 */
}

#toolBox ul li {
    margin: 15px 0;
    position: relative;
    padding-left: 25px;
}

#toolBox ul li::before {
    content: "•"; /* 使用圓點作為條列符號 */
    position: absolute;
    left: 0;
    color: #1e66aa;
    font-size: 18px;
}

#toolBox ul li a {
    text-decoration: none;
    color: #1e66aa;
    font-weight: bold;
    transition: color 0.3s;
}

#toolBox ul li a:hover {
    color: #004080;
}

/* #about .about-container {
    display: flex;
    align-items: center;
    gap: 20px; 
}

#about img {
    flex-shrink: 0;
    max-width: 150px; 
    height: auto; 
}

#about p {
    flex: 1; 
    font-size: 16px;
    color: #555;
} */

#about .about-container {
    /* display: grid; */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

#about img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#about img:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#about p {
    font-size: 17px;
    color: #555;
    text-align: justify;
}

.highlight-link {
    color: #1e66aa;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 2px solid #1e66aa;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.highlight-link:hover {
    background-color: #1e66aa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 102, 170, 0.3);
}

.highlight-link i {
    transition: transform 0.3s ease;
}

.highlight-link:hover i {
    transform: translateX(3px);
}

.email-link {
    color: #1e66aa;
    background-color: #e8f4fc;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: #1e66aa;
    color: white;
    border-color: #1e66aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 102, 170, 0.3);
}

/* 輪播相冊樣式 */
.slideshow-container {
    max-width: 500px;
    position: relative;
    margin: auto;
}
.mySlides {
    display: none;
}
.mySlides img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 8px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.3);
    z-index: 2;
    transition: background 0.2s;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
    background: rgba(0,0,0,0.6);
}
.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
    vertical-align: middle;
}
.active, .dot:hover {
    background-color: #717171;
}
/* 讓圓點區塊更緊湊且不佔用過多空間 */
.slideshow-container + br + div[style*="text-align:center"] {
    margin-top: -10px;
    margin-bottom: 0;
    height: 20px;
    line-height: 20px;
    padding: 0;
}

/* 響應式設計 */
@media (max-width: 768px) {
    nav .logo {
        height: 35px;
        margin-left: -10px;
    }
    nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #about .about-container {
        flex-direction: column;
        text-align: center;
    }

    #about img {
        margin-bottom: 20px;
        max-width: 100%;
    }
}
