/* 基本樣式 */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    background-color: #ffffff;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1), -3px -3px 10px rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 30px;
    line-height: 2;
}

h2 {
    font-size: 28px;
    color: #2980b9;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

/* 公告詳細信息 */
.info-box {
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.info-box p {
    margin: 1px 0;
    color: #555;
    font-weight: 500;
}

/* 標籤樣式 */
.info-box strong {
    font-weight: bold;
}

.info-box a {
    color: #3498db;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* 分類標籤樣式 */
.category-tag {
    background-color: #e74c3c;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 5px;
    display: inline-block;
}

.category-tag.important {
    background-color: #e74c3c;
}

.category-tag.notice {
    background-color: #3498db;
}

.category-tag.update {
    background-color: #2ecc71;
}

.category-tag.event {
    background-color: #f1c40f;
}

/* Hash Tag 區域 */
.hash-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hash-tag {
    background-color: #ecf0f1;
    color: #2980b9;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hash-tag:hover {
    background-color: #bdc3c7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 照片牆樣式 */
.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.photo-wall img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.photo-wall img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Lightbox 模態框樣式 */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
}

/* 左右箭頭 */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    user-select: none;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

/* 關閉按鈕 */
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.prev:hover,
.next:hover {
    color: #f1f1f1;
}


a.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 40px;
}

a.button:hover {
    background-color: #2980b9;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}



