/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: "PingFang TC", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    color: #333;
    line-height: 1.8;
}

/* 頁首 */
header {
    background-color: #8c2b5e;
    color: white;
    text-align: center;
    padding: 50px 20px 30px;
}

header h1 {
    color: white;
    font-size: 42px;
    margin: 0;
    font-weight: bold;
}

header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-top: 10px;
}

/* 導覽列 */
nav {
    background-color: #8c2b5e;
    text-align: center;
    padding: 0;
}

nav a {
    display: inline-block;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

nav a:hover {
    background-color: #70224a;
}

nav a.active {
    background-color: #70224a;
}

/* 主內容區 */
.main-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 文章區塊（首頁用） */
.post {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.post:last-child {
    border-bottom: none;
}

.post h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
    line-height: 1.4;
}

.post-meta {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
}

.post-summary {
    font-size: 16px;
    color: #444;
    margin-bottom: 20px;
}

/* 按鈕 */
.button-wrapper {
    text-align: right;
}

.read-more {
    display: inline-block;
    background-color: #8c2b5e;
    color: white;
    padding: 8px 22px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    font-weight: bold;
    transition: opacity 0.3s;
}

.read-more:hover {
    opacity: 0.9;
}

/* 內容頁面樣式 */
.content-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.content-page h2 {
    font-size: 28px;
    color: #333;
    border-bottom: 2px solid #8c2b5e;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page h3 {
    color: #8c2b5e;
    font-size: 20px;
    margin-top: 30px;
    border-left: 4px solid #8c2b5e;
    padding-left: 15px;
}

.content-page p {
    font-size: 16px;
    color: #444;
    text-align: justify;
    margin-bottom: 1.5em;
}

.content-page strong {
    color: #222;
}

/* 列表樣式 */
.list-section {
    padding-left: 20px;
    font-size: 15px;
    color: #555;
    list-style-type: none;
}

.list-section li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.list-section li::before {
    content: "•";
    color: #8c2b5e;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 圖片畫廊 */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    justify-content: center;
}

.photo-gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.img-box {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    flex: 1;
    min-width: 250px;
    border-radius: 4px;
}

/* 頁腳 */
footer {
    background-color: #8c2b5e;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* 響應式設計 */
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    
    nav a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .main-container,
    .content-page {
        padding: 20px;
    }
    
    .content-page {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .photo-gallery {
        flex-direction: column;
    }
    
    .img-box {
        min-width: 100%;
    }
}

/* 評論區樣式 */
.comment-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.comment-section h3 {
    color: #8c2b5e;
    font-size: 24px;
    margin-bottom: 20px;
}

.comment-form {
    max-width: 600px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form button {
    background-color: #8c2b5e;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form button:hover {
    background-color: #70224a;
}

.comment-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
}

/* 視頻和音頻播放器樣式 */
.video-entry {
    margin-bottom: 40px;
}

.video-entry h3 {
    color: #8c2b5e;
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #8c2b5e;
    padding-left: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.youtube-link {
    display: inline-flex;
    align-items: center;
    color: #8c2b5e;
    text-decoration: none;
    font-size: 14px;
    margin-top: 10px;
}

.youtube-link:hover {
    text-decoration: underline;
}

/* 音頻播放器樣式 */
.audio-player {
    width: 100%;
    margin: 20px 0;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
}

.audio-player audio {
    width: 100%;
}

.audio-entry {
    margin-bottom: 30px;
}

.audio-entry h3 {
    color: #8c2b5e;
    font-size: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #8c2b5e;
    padding-left: 15px;
}

/* 文章元數據 */
.post-header {
    margin-bottom: 30px;
}

.post-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
}

/* 樂譜圖片 */
.music-score {
    margin: 30px 0;
    text-align: center;
}

.music-score img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

