/* cpr-styles.css */

/* 基礎樣式 */
body {
    font-family: '微軟正黑體', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.main-content-wrapper {
    max-width: 960px; /* 限制最大寬度以避免在寬螢幕上過度拉伸 */
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 img {
    max-width: 100%;
    height: auto;
}

.page-header .last-updated {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.cpr-section {
    margin-bottom: 40px;
}

.cpr-section h2 {
    font-size: 24px;
    font-weight: bold;
    color: #008080;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cpr-section h2 img {
    height: 30px;
    width: auto;
}

.cpr-section hr {
    border: none;
    height: 2px;
    background-color: #008080;
    width: 150px;
    margin: 10px 0;
}

.section-text p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 圖片藝廊 */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* 圖片之間的間距 */
}

.gallery figure {
    margin: 0;
    width: 100%;
}

.gallery img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery figcaption {
    text-align: center;
    font-size: 14px;
    color: #555;
    margin-top: 8px;
}

/* 文件列表 */
.document-list ul {
    list-style: none;
    padding: 0;
}

.document-list li {
    background-color: #f8f8f8;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.document-list li:hover {
    background-color: #e9ecef;
}

.document-list a {
    text-decoration: none;
    color: #007bff;
    font-weight: bold;
}

.document-list a:hover {
    text-decoration: underline;
}

.document-list span {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
}

/* 響應式調整 */
@media (min-width: 600px) {
    .gallery figure {
        width: calc(50% - 10px); /* 在平板上兩張並排 */
    }
}

@media (min-width: 900px) {
    .gallery figure {
        width: calc(33.333% - 14px); /* 在電腦上三張並排 */
    }
}