*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box
}

html {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px
}

body {
    margin: 0;
    padding: 0;
    background: url(../images/body-bg.gif) repeat
}

main {
    display: block;
    padding: 0 24px
}

main .container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    padding: 0 12px;
    background-color: #fff
}

@media (max-width: 768px) {
    main .container {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto
}

header {
    padding: 36px 24px 0
}

header .logo {
    margin: 0 0 8px;
    color: #fff;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.5
}

@media (max-width: 380px) {
    header .logo {
        font-size: 2.6rem
    }
}

header .logo a {
    color: inherit;
    text-decoration: none
}

header .slogan {
    margin: 0 0 32px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400
}

header nav {
    background-color: #fff;
    border-radius: 8px 8px 0 0
}

header nav ul {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    list-style: none;
    padding: 0 12px;
    overflow-x: auto
}

header nav ul::-webkit-scrollbar {
    height: 4px
}

header nav ul::-webkit-scrollbar-track {
    background: #ccc
}

header nav ul::-webkit-scrollbar-thumb {
    background: #369
}

header nav li {
    min-width: 88px;
    padding: 20px 12px;
    text-align: center
}

header nav li a {
    color: #369;
    font-size: 1.6rem;
    text-decoration: none;
    font-weight: 500
}

header nav li a:hover {
    text-decoration: underline
}

header .banner {
    background-color: #fff
}

header .banner img {
    width: 100%
}

aside {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-flex-basis: 200px;
    -ms-flex-preferred-size: 200px;
    flex-basis: 200px
}

@media (max-width: 768px) {
    aside {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-ordinal-group: 2;
        -webkit-order: 1;
        -ms-flex-order: 1;
        order: 1;
        -webkit-flex-basis: 100%;
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
        gap: 12px
    }
}

@media (max-width: 480px) {
    aside {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }
}

aside ul {
    margin: 0 0 12px;
    padding: 0;
    background-color: #e5e9e0;
    list-style: none
}

@media (max-width: 768px) {
    aside ul {
        -webkit-flex-basis: 100%;
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%
    }
}

aside ul p {
    margin: 0 0 8px;
    padding: 8px;
    background: url(../images/aside/title-bg.gif) repeat-x left top;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500
}

aside ul li {
    margin: 0 0 8px;
    padding: 4px 8px;
    font-size: 1.4rem;
    border-bottom: 1px solid #fff
}

aside ul li:last-child {
    border-bottom: none
}

aside ul li a {
    text-decoration: none;
    color: #333
}

aside ul li a:hover {
    opacity: .9
}

article {
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%
}

article h1 {
    margin: 0 0 20px;
    padding: 0 0 8px;
    color: #d01c02;
    font-size: 2.6rem;
    border-bottom: 1px solid #aaa
}

@media (max-width: 480px) {
    article h1 {
        font-size: 2rem
    }
}

article h2 {
    margin: 24px 0 12px;
    color: #333;
    font-size: 2rem
}

@media (max-width: 480px) {
    article h2 {
        font-size: 1.8rem
    }
}

article p {
    margin: 0 0 12px;
    font-size: 1.6rem;
    line-height: 1.5
}

@media (max-width: 480px) {
    article p {
        font-size: 1.4rem
    }
}

article .news {
    margin: -4px 0 0;
    padding: 0;
    list-style: none
}

article .news li {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid #ccc
}

article .news li .title {
    margin: 0;
    color: #000;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none
}

@media (max-width: 480px) {
    article .news li .title {
        font-size: 1.4rem
    }
}

article .news li a:hover {
    opacity: .8
}

article .news li .date {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    min-width: 62px;
    margin: 0;
    color: #aaa;
    font-size: 1.2rem
}

@media (max-width: 480px) {
    article .news li .date {
        display: none
    }
}

article .link {
    margin: 0 0 8px;
    padding: 8px 12px;
    background-color: #fbf9f4;
    border-left: 2px solid #dcdac9;
    clear: both
}

article .link a {
    color: #005a9c;
    font-size: 1.4rem;
    font-weight: 600
}

article .link a:hover {
    color: #333
}

article .aboutLogo {
    float: left;
    width: 100px;
    margin: 0 12px 0 0
}

article .table {
    width: 100%;
    margin: 0 0 24px;
    font-size: 1.6rem
}

article .table .tr {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex
}

article .table .tr .th,
article .table .tr .td {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 12px 4px;
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%
}

article .table .tr .th:nth-child(1),
article .table .tr .th:nth-child(2),
article .table .tr .td:nth-child(1),
article .table .tr .td:nth-child(2) {
    -webkit-flex-basis: 90px;
    -ms-flex-preferred-size: 90px;
    flex-basis: 90px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0
}

article .table .tr .th:nth-child(3),
article .table .tr .td:nth-child(3) {
/* 1. 設定寬度 (保持原本設定) */
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;

    /* 2. 修改對齊方式：原本是 center，改成 flex-start (靠左) */
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;

    /* 3. 增加左邊內距 (避免文字緊貼著分隔線，比較美觀) */
    padding-left: 15px; 
    
    /* 4. 強制文字對齊 */
    text-align: left;
}

article .table .tr .th a,
article .table .tr .td a {
    color: inherit;
    text-decoration: none
}

article .table .tr .th a:hover,
article .table .tr .td a:hover {
    text-decoration: underline
}

article .table .tr .th {
    background-color: #ddd;
    color: #333;
    font-weight: 600
}

article .table .tr .td {
    border-bottom: 1px solid #ccc;
    color: #005a9c
}

article .contact ul {
    list-style: disc;
    padding-left: 1.6em;
    margin: 0 0 24px
}

article .contact ul li {
    margin: 0 0 8px;
    padding: 0;
    color: #333;
    font-size: 1.6rem
}

article .contact form {
    margin: 0 0 24px
}

article .contact form .group {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 0 0 12px;
    padding: 0 0 12px;
    font-size: 1.6rem;
    gap: 12px
}

@media (max-width: 480px) {
    article .contact form .group {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap
    }
}

article .contact form .group label {
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-flex-basis: 100px;
    -ms-flex-preferred-size: 100px;
    flex-basis: 100px
}

article .contact form .group input,
article .contact form .group textarea {
    -webkit-flex-basis: 100%;
    -ms-flex-preferred-size: 100%;
    flex-basis: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px
}

article .contact form .group textarea {
    height: 100px
}

article .contact form button {
    display: block;
    margin: 0 auto;
    padding: 8px 12px;
    background-color: #005a9c;
    border: none;
    color: #fff;
    font-size: 1.6rem
}

article .gallery {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap
}

article .gallery .item {
    margin: 0 0 12px;
    padding: 0 6px;
    -webkit-flex-basis: 50%;
    -ms-flex-preferred-size: 50%;
    flex-basis: 50%
}

@media (max-width: 575px) {
    article .gallery .item {
        -webkit-flex-basis: 100%;
        -ms-flex-preferred-size: 100%;
        flex-basis: 100%
    }
}

article .gallery .item .img {
    width: 100%;
    padding-top: 56.25%;
    background-color: #ccc
}

article .gallery .item p {
    margin: 0;
    padding: 8px;
    font-size: 1.4rem;
    text-align: center
}

footer {
    padding: 24px
}

footer address {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 12px;
    font-style: normal
}

@media (max-width: 575px) {
    footer address {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 8px
    }
}

footer address p {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.5
}

/* =========================================
   新增樣式：活動花絮內頁 (Photo Grid) & 燈箱
   ========================================= */

/* --- 照片牆排版 --- */
.photo-grid {
    display: grid;
    /* 自動排版：每張照片最小寬度 250px */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); 
    gap: 15px;
    margin-top: 20px;
}

.photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid #ddd;
    padding: 4px;
    background: #fff;
}

.photo-grid img:hover {
    transform: scale(1.03); 
    border-color: #005a9c;
}

/* --- 返回按鈕 --- */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #005a9c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.6rem; /* 配合您原本的字體大小 */
}

/* --- 燈箱 (Lightbox) 效果 --- */
.lightbox {
    display: none; /* 預設隱藏 */
    position: fixed;
    z-index: 9999; /* 確保在最上層 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* 黑色半透明背景 */
    justify-content: center;
    align-items: center;
}

/* 放大後的圖片 */
.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border: 5px solid #fff;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s;
}

/* 關閉按鈕 (X) */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close:hover {
    color: #ccc;
}

/* 動畫效果 */
@keyframes zoom {
    from { transform: scale(0.1); }
    to { transform: scale(1); }
}