/* 基本樣式設置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* 頁首 */
header {
    background-color: #28a745;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .logo h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* 導航欄 */
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: #f4f4f4;
    text-decoration: underline;
}

/* 主要內容區域 */
.main-content {
    padding: 40px 20px;
    max-width: 900px;
    margin: 30px auto;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.main-content h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.main-content p {
    font-size: 1.1em;
    color: #555;
}

.latest-posts h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.latest-posts ul {
    list-style-type: none;
    padding-left: 0;
}

.latest-posts ul li {
    margin: 12px 0;
}

.latest-posts ul li a {
    color: #28a745;
    font-size: 1.2em;
    text-decoration: none;
}

.latest-posts ul li a:hover {
    text-decoration: underline;
}

/* 圖片與視頻 */
img, video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
}

/* 按鈕 */
button {
    padding: 10px 20px;
    font-size: 1.1em;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #218838;
}

/* 頁腳 */
footer {
    background-color: #333;
    color: white;
    padding: 15px 0;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header .logo h1 {
        font-size: 2em;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-bottom: 10px;
    }

    .main-content {
        padding: 20px;
    }
}
