/* 重置基本樣式並設置全屏顯示 */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* 防止水平滾動 */
    scroll-behavior: smooth; /* 添加平滑滾動效果 */
    background-color: #fff;
    color: #333;
}

/* 背景圖片與遮罩層 */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

.bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(51, 37, 37, 0.3);
    z-index: -1;
}

/* 導覽列相關樣式 */
.nav-bar {
    position: fixed;
    top: 50px;
    right: 40px;
    z-index: 100;
    display: flex;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.nav-hover-area {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 150px;
    z-index: 99;
    pointer-events: none;
}

.nav-hover-area:hover ~ .nav-bar,
.nav-bar:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-item a {
    font-family: 'Frank Ruhl Libre', serif;
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    padding: 10px;
    display: block;
    transition: all 0.5s ease;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
                4px 4px 8px rgba(0, 0, 0, 0.6),
                5px 5px 10px rgba(0, 0, 0, 0.4);
}

.nav-item > a {
    font-weight: 500;
}

.nav-item a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* 下拉選單樣式 */
.dropdown {
    position: absolute;
    top: 90%;
    left: 0;
    transform: translateX(0);
    background-color: rgba(255, 255, 255, 0.5);
    width: auto;
    min-width: 0px;
    border-radius: 0;
    padding: 10px 0;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    z-index: 1000;
}

.dropdown li {
    padding: 0;
    margin: 0;
}

.dropdown li a {
    font-family: 'Frank Ruhl Libre', serif;
    padding: 8px 15px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: visible;
    text-align: left;
    color: #000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.dropdown li a:hover {
    background-color: rgb(88, 49, 25, 0.8);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-item:hover .dropdown {
    display: block;
}

/* Logo 相關樣式 */
.logo {
    position: fixed;
    top: 20px;
    left: 60px;
    z-index: 101;
    max-width: 200px;
    transition: opacity 0.5s ease;
}

.logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4))
            drop-shadow(-1px -1px 2px rgba(0, 0, 0, 0.3))
            drop-shadow(0px 0px 5px rgba(255, 255, 255, 0.5));
}

.logo-hover-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 120px;
    z-index: 99;
    pointer-events: none;
}

.logo-hover-area:hover ~ .logo,
.logo:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 新聞頁面介紹區塊樣式 */
.news-intro-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.news-intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.news-intro-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 2;
    padding: 50px 0;
}

.news-intro-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-out;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.news-intro-content:hover {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(20px); }
}

.news-intro-content h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.news-intro-content h3 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 30px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.news-intro-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.intro-btn {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.intro-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.intro-btn:active {
    transform: translateY(-2px);
}

/* 新聞與活動區塊樣式 */
.news-section {
    padding: 60px 0;
    margin: 0;
    width: 100%;
    max-width: none;
    position: relative;
    background-color: #BEAB9A; /* 改為RGB(190,171,154) */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 0;
    box-shadow: 0 15px 0 rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-bottom: none;
    opacity: 0.9; /* 初始稍微透明 */
    transition: opacity 0.5s ease; /* 添加過渡效果 */
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.news-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.14)); /* 創建漸變過渡 */
    z-index: 1;
}

.news-section-inner {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
}

.news-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

/* 卡片輪播樣式 */
.card-slider {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: visible;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 20px;
    padding: 20px 0;
}

.slider-item {
    position: absolute;
    width: 200px;
    height: 320px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0;
    transition: all 0.5s ease;
    overflow: hidden;
    left: calc(50% - 100px);
    top: 40px;
    cursor: pointer;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 0;
}

.slider-with-text {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
}

.button-container {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 20;
}

#next-btn, #prev-btn {
    position: relative;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#next-btn:hover, #prev-btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
}

.cards-text-content {
    position: relative;
    width: 80%;
    margin: 5px auto 0;
    text-align: center;
    min-height: 120px;
    padding: 25px;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    z-index: 15;
}

.card-text { display: none; }
.card-text.active { display: block; }
/* 動態插入的文字區塊沿用樣式 */
.card-text.dynamic h3 { font-size: 1.6rem; margin: 0 0 12px; color: #333; font-weight: 500; }
.card-text.dynamic p { font-size: 1.05rem; color: #555; line-height: 1.6; margin: 0; }

.card-text h3 {
    font-size: 1.5rem;
    margin: 0 0 15px;
    color: #333;
    font-weight: 500;
}

.card-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.slider-item h3,
.slider-item p {
    display: none;
}

.slider-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    z-index: 10 !important;
}

/* 活動照片區塊樣式 */
.event-photos-section {
    padding: 60px 0;
    margin: 0;
    width: 100%;
    position: relative;
    background-color: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    overflow: hidden;
    border: none;
    border-top: none;
    border-bottom: none;
    opacity: 0.9; /* 初始稍微透明 */
    transition: opacity 0.5s ease; /* 添加過渡效果 */
}

.event-photos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.event-photos-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.16)); /* 創建漸變過渡 */
    z-index: 1;
}

.event-photos-inner {
    width: 92%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

.photos-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
}

/* 照片垂直輪播樣式 */
.photo-carousel-container {
    height: 480px; /* 與成功故事區塊一致 */
}

.photo-carousel-nav {
    width: 10px;
    z-index: 15;
}

.photo-carousel {
    overflow: hidden;
    border-radius: 15px;
    height: 100%;
}

.photo-track {
    height: auto; /* 由JS動態設置 */
}

.photo-item-carousel {
    width: 100%;
    height: 480px;
    box-sizing: border-box;
    overflow: hidden;
    position: absolute;
}

.photo-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-content:hover {
    transform: scale(1.02);
}

.photo-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    color: #fff;
    z-index: 5;
}

.photo-info h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.photo-info p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 照片模態視窗樣式 */
#photo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.photo-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 1800px;
    max-height: 90vh;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.photo-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.photo-modal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.photo-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
    background: none;
    border: none;
    padding: 5px;
    line-height: 1;
}

.photo-modal .close-modal:hover {
    color: #000;
    transform: scale(1.1);
}

.photo-modal .modal-body {
    padding: 50px 60px;
    box-sizing: border-box;
}

.photo-modal .modal-title {
    width: 100%;
    margin: 0 auto 30px;
    text-align: center;
    font-size: 2rem;
    color: #333;
}

.photo-modal .modal-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.photo-modal .modal-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.photo-modal .modal-image {
    flex: 4;
}

.photo-modal .modal-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-modal .modal-text {
    flex: 1;
    padding-right: 10px;
    max-width: 20%;
}

.photo-modal .modal-text h5 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 500;
    line-height: 1.3;
}

.photo-modal .modal-text p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 成功故事區塊樣式 */
.success-stories-section {
    padding: 60px 0;
    margin: 0;
    width: 100%;
    position: relative;
    background-color: rgba(255, 255, 255, 0.16);
    background-image: url('../images/hand_machine_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    overflow: hidden;
    border: none;
    border-top: none;
    border-bottom: none;
    opacity: 0.9; /* 初始稍微透明 */
    transition: opacity 0.5s ease; /* 添加過渡效果 */
}

.success-stories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
    z-index: -1;
}

.success-stories-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16), rgba(0, 0, 0, 0.05)); /* 創建漸變過渡到頁尾 */
    z-index: 1;
}

.success-stories-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #fff;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* 垂直輪播容器 */
.vertical-carousel-container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    position: relative;
    height: 480px; /* 調整高度使其適合一屏顯示 */
}

/* 左側導航和滑竿 */
.carousel-nav {
    width: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
}

.scroll-track {
    height: 100%;
    width: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
}

.scroll-thumb {
    width: 12px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: top 0.3s ease, background-color 0.3s ease;
}

.scroll-thumb:hover, .scroll-thumb.dragging {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 垂直輪播主體 */
.vertical-carousel {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px; /* 為滾動條留出空間 */
}

.v-carousel-track {
    position: absolute;
    width: 100%;
    height: auto; /* 高度由JS動態設置 */
    transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

.v-carousel-item {
    position: absolute;
    top: 0; /* 初始位置，由JS動態調整 */
    left: 0;
    width: 100%;
    height: 480px; /* 與容器高度一致 */
    padding: 25px 30px 25px 30px;
    opacity: 0.3;
    filter: blur(2px);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
    box-sizing: border-box; /* 確保padding不影響總寬高 */
    overflow: hidden; /* 避免內容溢出 */
}

.v-carousel-item.active {
    opacity: 1;
    filter: blur(0);
}

.story-content {
    display: flex;
    height: 100%;
    gap: 30px;
    transition: transform 0.3s ease;
}

.story-content:hover {
    transform: scale(1.01);
}

.story-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    max-width: 40%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.story-content:hover .story-image img {
    transform: scale(1.05);
}

.story-details {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
    max-height: 100%;
    overflow: hidden;
}

.story-details h4 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.story-subtitle {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
    font-style: italic;
}

.story-description {
    max-height: 200px;
    overflow-y: auto; /* 內容過多時可滾動 */
    margin-bottom: 20px;
    padding-right: 10px;
}

.story-description p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.story-description::-webkit-scrollbar {
    width: 5px;
}

.story-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.story-description::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.read-more-btn {
    align-self: flex-start;
    margin-top: auto; /* 推到底部 */
    padding: 8px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-btn:hover {
    background-color: #000;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 成功故事模態視窗樣式 */
.story-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.story-modal .modal-content {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.story-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    transition: all 0.3s ease;
    z-index: 2;
}

.story-modal .close-modal:hover {
    color: #333;
    transform: rotate(90deg);
}

.story-modal .modal-body {
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.story-modal .modal-flex {
    display: flex;
    gap: 30px;
    height: 100%;
}

.story-modal .modal-image {
    flex: 1;
    max-width: 45%;
    overflow: hidden;
    border-radius: 10px;
    height: 200px;
}

.story-modal .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-modal .modal-text {
    flex: 2;
    padding: 0 10px;
}

.story-modal .modal-text h5 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    line-height: 1.3;
}

.story-modal .modal-text p {
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* 頁尾樣式 */
.static-footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    z-index: 10;
    margin-top: 0;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info p {
    margin: 3px 0;
    font-size: 0.85rem;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 5px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* 返回頂部按鈕樣式 */
#backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 0;
    font-size: 18px;
    width: 50px;
    height: 50px;
    display: none;
    transition: background-color 0.3s ease;
}

#backToTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 台灣網站按鈕樣式 */
.taiwan-site-container {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 99;
}

#taiwanSiteBtn {
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: block;
    transition: background-color 0.3s ease;
}

#taiwanSiteBtn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#taiwanSiteBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 響應式設計調整 */
@media (max-width: 992px) {
    .nav-bar {
        right: 20px;
    }
    
    .photo-modal .modal-flex {
        flex-direction: column;
    }
    
    .photo-modal .modal-image,
    .photo-modal .modal-text {
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .news-section {
        margin: 0;
    }
    
    /* 新聞頁面介紹區塊響應式 */
    .news-intro-content h2 {
        font-size: 3rem;
    }
    
    .news-intro-content h3 {
        font-size: 1.8rem;
    }
    
    .news-intro-content p {
        font-size: 1.1rem;
    }
    
    .vertical-carousel-container {
        height: auto;
        min-height: 480px;
    }
    
    .carousel-nav {
        width: 8px;
        height: 100%;
        left: 10px;
        top: 0;
    }
    
    .scroll-track {
        height: 100%;
        width: 5px;
    }
    
    .scroll-thumb {
        height: 50px;
        width: 10px;
    }
    
    .v-carousel-item {
        height: auto;
        min-height: 480px;
        /* 确保已定位状态下的透明度正常 */
        opacity: 0.3;
    }
    
    .v-carousel-item.active {
        opacity: 1;
    }
    
    .story-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .story-image {
        max-width: 100%;
        height: 220px;
    }
    
    .story-details {
        padding: 0;
    }
    
    .story-description {
        max-height: 150px;
    }
    
    /* 模態視窗響應式調整 */
    .story-modal .modal-flex {
        flex-direction: column;
    }
    
    .story-modal .modal-image {
        max-width: 100%;
        height: 300px;
    }
    
    .story-modal .modal-image img {
        height: 100%;
        object-fit: cover;
    }
    
    .story-modal .modal-body {
        padding: 20px;
    }
    
    .photo-slider-container {
        height: 500px;
        margin-bottom: 30px;
    }
    
    .photo-modal .modal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: 1001 !important;
    }
    
    .nav-bar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 60px;
        overflow-x: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .nav-bar.active {
        right: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-item a {
        text-align: left;
        padding: 12px 20px;
        font-size: 1.2rem;
        font-family: 'Frank Ruhl Libre', serif; /* 確保使用相同字體 */
        color: #fff;
        text-decoration: none;
        display: block;
        transition: all 0.5s ease;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1),
                    4px 4px 8px rgba(0, 0, 0, 0.6),
                    5px 5px 10px rgba(0, 0, 0, 0.4);
    }
    
    .nav-item a:hover {
        color: rgba(255, 255, 255, 0.7);
        transform: translateY(-3px);
    }
    
    /* 下拉選單樣式調整 */
    .dropdown {
        position: static;
        width: 100%;
        background-color: rgba(50, 50, 50, 0.8);
        box-shadow: none;
        padding: 0;
    }
    
    .dropdown li a {
        padding: 10px 40px;
        font-size: 1rem;
        font-family: 'Frank Ruhl Libre', serif; /* 確保使用相同字體 */
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    }
    
    .dropdown li a:hover {
        background-color: rgb(88, 49, 25, 0.8);
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }
    
    /* 點擊觸發下拉選單 */
    .nav-item:hover .dropdown {
        display: none;
    }
    
    .nav-item.active .dropdown {
        display: block;
    }
    
    .logo {
        left: 20px;
        top: 15px;
    }
    
    .logo img {
        width: 150px;
    }
    
    /* 新聞頁面介紹區塊手機版調整 */
    .news-intro-section {
        align-items: flex-start;
        padding-top: 80px;
    }
    
    .news-intro-content {
        padding: 40px 30px;
    }
    
    .news-intro-content h2 {
        font-size: 2.5rem;
    }
    
    .news-intro-content h3 {
        font-size: 1.8rem;
    }
    
    .news-intro-content p {
        font-size: 1.1rem;
    }
    
    .intro-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .intro-btn {
        width: 200px;
        text-align: center;
    }
    
    /* 照片模態視窗響應式調整 */
    .photo-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .photo-modal .modal-body {
        padding: 30px 20px;
    }
    
    .photo-modal .modal-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .photo-modal .modal-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .photo-modal .modal-image {
        flex: none;
        width: 100%;
    }
    
    .photo-modal .modal-text {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 6px;
    }
    
    .photo-grid-container {
        min-height: 350px;
    }
    
    /* 按鈕位置調整 */
    .booking-container {
        bottom: 210px;
        right: 15px;
    }
    
    #bookingBtn {
        bottom: 210px;
        right: 15px;
    }
    
    .taiwan-site-container {
        bottom: 140px;
        right: 15px;
    }
    
    #backToTopBtn {
        bottom: 70px;
        right: 15px;
    }
    
    /* 手機版預約彈出按鈕對齊調整 */
    .booking-popup {
        top: 0; /* 與按鈕垂直居中對齊 */
        right: 55px; /* 調整水平位置以適應較小的螢幕 */
    }
}

@media (max-width: 576px) {
    .carousel-nav {
        left: 2px;
        width: 6px;
    }
    
    .scroll-thumb {
        width: 8px;
    }
    
    .story-image {
        height: 180px;
    }
    
    .v-carousel-item {
        padding: 15px 15px 15px 20px;
        min-height: 480px;
    }
    
    .story-details h4 {
        font-size: 1.3rem;
    }
    
    .story-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .story-description {
        max-height: 130px;
    }
    
    .story-modal .modal-body {
        padding: 15px;
    }
    
    .story-modal .modal-image {
        height: 200px;
    }
    
    /* 行動版：統一三顆按鈕對齊與尺寸 */
    #bookingBtn,
    .booking-container {
        width: 45px !important;
        height: 45px !important;
        bottom: 210px !important; /* 預約按鈕最上方 */
        right: 15px !important;
    }
    
    #taiwanSiteBtn,
    .taiwan-site-container {
        width: 45px !important;
        height: 45px !important;
        bottom: 140px !important; /* 台灣按鈕中間 */
        right: 15px !important;
    }
    
    #backToTopBtn {
        width: 45px !important;
        height: 45px !important;
        bottom: 70px !important; /* 返回頂部按鈕最下方 */
        right: 15px !important;
    }
    
    /* 統一圖標尺寸 */
    #bookingBtn img,
    #taiwanSiteBtn img {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* 返回頂部按鈕字體大小調整 */
    #backToTopBtn {
        font-size: 16px !important;
        padding: 8px !important;
    }
    
    /* 預約彈出選項調整 */
    .booking-popup {
        top: 0 !important;
        right: 50px !important;
        height: 45px !important;
    }
    
    .booking-option {
        font-size: 20px !important;
        line-height: 45px !important;
    }
    
    .booking-container:hover .booking-popup {
        width: 120px !important;
    }
}

/* 行動版選單按鈕樣式 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}


/* 預約按鈕樣式 */
#bookingBtn {
    position: fixed;
    bottom: 240px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 0;
    width: 50px;
    height: 50px;
    display: block;
    transition: background-color 0.3s ease;
}

#bookingBtn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

#bookingBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 預約按鈕容器 */
.booking-container {
    position: fixed;
    bottom: 240px;
    right: 30px;
    z-index: 99;
    display: flex;
    align-items: center;
}

/* 預約彈出選項 */
.booking-popup {
    position: absolute;
    right: 60px; /* 位於按鈕左側 */
    top: -50px; /* 確保與按鈕上緣對齊 */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center; /* 垂直居中 */
    height: 50px; /* 與按鈕同高 */
    overflow: hidden;
    width: 0;
}

.booking-container:hover .booking-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    width: 150px; /* 稍微減小寬度 */
}

.booking-option {
    font-family: 'Dancing Script', cursive;
    color: white;
    text-decoration: none;
    padding: 0 20px;
    white-space: nowrap;
    font-size: 24px; /* 增加字體大小 */
    transition: background-color 0.3s ease;
    text-align: center;
    height: 100%; /* 填滿高度 */
    line-height: 50px; /* 垂直居中文字 */
    width: 100%;
}

.booking-option:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 照片滾動容器樣式 */
.photo-slider-container {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.photo-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}

.photo-slider-item {
    flex-shrink: 0;
    height: 33.333%;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.photo-slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.photo-slider-item img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

.photo-slider-prev,
.photo-slider-next {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.photo-slider-prev {
    top: 10px;
}

.photo-slider-next {
    bottom: 10px;
}

.photo-slider-prev:hover,
.photo-slider-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 照片放大模態視窗樣式 */
.expanded-image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.close-expanded {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-expanded:hover {
    color: #bbb;
    transform: rotate(90deg);
}

.expanded-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* 照片網格容器樣式 */
.photo-grid-container {
    width: 100%;
    height: auto;
    min-height: 500px;
    max-height: 75vh;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    padding: 5px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.photo-grid-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1/1;
    width: 100%;
    height: 100%;
    margin: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.photo-grid-item img:hover {
    transform: scale(1.05);
}

/* 調整模態視窗文字區塊樣式 */
.photo-modal .modal-text {
    padding-right: 10px;
    max-width: 25%;
}

.photo-modal .modal-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* 響應式設計調整 */
@media (max-width: 1200px) {
    .photo-modal .modal-body {
        padding: 40px 30px;
    }
    
    .photo-modal .modal-flex {
        gap: 30px;
    }
    
    .photo-modal .modal-image {
        flex: 5;
    }
    
    .photo-modal .modal-text {
        flex: 1;
        max-width: 22%;
    }
    
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .photo-grid-container {
        min-height: 450px;
    }
}

@media (max-width: 992px) {
    .photo-modal .modal-flex {
        gap: 25px;
    }
    
    .photo-modal .modal-image {
        flex: 5;
    }
    
    .photo-modal .modal-text {
        flex: 1;
    }
    
    .photo-grid-container {
        min-height: 400px;
    }
    
    .photo-grid {
        gap: 8px;
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .photo-modal {
        width: 98%;
        max-height: 95vh;
    }
    
    .photo-modal .modal-body {
        padding: 30px 20px;
    }
    
    .photo-modal .modal-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .photo-modal .modal-flex {
        flex-direction: column;
        gap: 20px;
    }
    
    .photo-modal .modal-image {
        flex: none;
        width: 100%;
    }
    
    .photo-modal .modal-text {
        flex: none;
        width: 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 6px;
    }
    
    .photo-grid-container {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .photo-modal .modal-body {
        padding: 20px 15px;
    }
    
    .photo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        padding: 4px;
    }
    
    .photo-grid-container {
        min-height: 300px;
    }
    
    /* 導覽列在480px斷點的特殊調整 - 與index完全一致 */
    .nav-item {
        margin: 0 8px;
    }
    
    .nav-item a {
        font-size: 1rem;
    }
    
    .logo img {
        width: 120px;
    }
    
    /* 新聞頁面介紹區塊小螢幕調整 */
    .news-intro-section {
        padding-top: 60px;
    }
    
    .news-intro-content {
        padding: 30px 20px;
    }
    
    .news-intro-content h2 {
        font-size: 2rem;
    }
    
    .news-intro-content h3 {
        font-size: 1.4rem;
    }
    
    .news-intro-content p {
        font-size: 1rem;
    }
    
    .intro-btn {
        width: 180px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* 三個按鈕進一步調整 - 與index完全一致 */
    #taiwanSiteBtn, #bookingBtn {
        width: 45px;
        height: 45px;
        padding: 8px;
    }
    
    #taiwanSiteBtn img, #bookingBtn img {
        width: 28px;
        height: 28px;
    }
    
    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .booking-option {
        font-size: 20px;
    }
    
    .booking-container:hover .booking-popup {
        width: 120px;
    }
    
    /* 小螢幕預約彈出按鈕對齊調整 */
    .booking-popup {
        top: 0; /* 與按鈕垂直居中對齊 */
        right: 50px; /* 進一步調整水平位置適應小螢幕 */
        height: 45px; /* 調整高度與小螢幕按鈕一致 */
    }
    
    .booking-option {
        line-height: 45px; /* 調整文字垂直居中適應新高度 */
    }
}

/* 行動版選單按鈕樣式 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* --- 新版 Event Gallery 樣式 --- */

.event-gallery-section {
    background-color: rgba(255, 255, 255, 0.18);
}

.event-gallery-intro {
    max-width: 900px;
    margin: 0 auto 35px;
    text-align: center;
}

.event-gallery-intro p {
    font-size: 1.08rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
}

.event-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto 45px;
}

.event-index-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(139, 90, 43, 0.18);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.event-index-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B5A2B;
    margin-bottom: 10px;
    font-weight: 700;
}

.event-index-title {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-index-card p {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.event-gallery-block {
    display: none;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 22px;
    border: 1px solid rgba(139, 90, 43, 0.16);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.10);
}

.event-gallery-block.active {
    display: block;
}

.event-gallery-header {
    text-align: center;
    margin-bottom: 28px;
}

.event-category {
    display: inline-block;
    color: #8B5A2B;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.event-gallery-header h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.25;
    color: #222;
    margin: 0 0 10px;
    word-break: normal;
    overflow-wrap: anywhere;
}

.event-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin: 0;
}

.event-gallery-slider {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    background: #fff;
}

.event-gallery-slider-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.event-gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.event-gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

.event-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fafafa;
    cursor: pointer;
}

.event-gallery-prev,
.event-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.event-gallery-prev {
    left: 18px;
}

.event-gallery-next {
    right: 18px;
}

.event-gallery-prev:hover,
.event-gallery-next:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.06);
}

.event-gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    z-index: 6;
}

.event-gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255,255,255,0.55);
    cursor: pointer;
}

.event-gallery-dot.active {
    background: #fff;
}

.event-collage-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.event-collage-item {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 1 / 1;
    background: #f4f4f4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.event-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.event-collage-item img:hover {
    transform: scale(1.06);
    opacity: 0.92;
}

.event-gallery-text {
    max-width: 950px;
    margin: 28px auto 0;
}

.event-gallery-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px;
}

/* Event Gallery Tabs 樣式 */
.event-filter-tabs {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto 35px;
}

.event-filter-btn {
    border: 1px solid rgba(139, 90, 43, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #333;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 0.98rem;
    line-height: 1.35;
    cursor: pointer;
    transition: all 0.25s ease;
    max-width: 260px;
    min-height: 48px;
    text-align: center;
    font-weight: 600;
}

.event-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.95);
}

.event-filter-btn.active {
    background: #8B5A2B;
    color: #fff;
    border-color: #8B5A2B;
    box-shadow: 0 8px 24px rgba(139, 90, 43, 0.24);
}

/* 影片活動與 Placeholder 樣式 */
.event-video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
    margin-top: 22px;
}

.event-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.16);
}

.event-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.event-video-text {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(139, 90, 43, 0.12);
    border-radius: 16px;
    padding: 22px;
}

.event-placeholder-card {
    max-width: 760px;
    margin: 25px auto 10px;
    padding: 36px 28px;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(139, 90, 43, 0.35);
    border-radius: 18px;
}

.event-placeholder-card h4 {
    font-size: 1.5rem;
    color: #8B5A2B;
    margin: 0 0 10px;
}

.event-placeholder-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

@media (max-width: 992px) {
    .event-gallery-block {
        padding: 26px;
    }

    .event-gallery-slider {
        height: 400px;
    }

    .event-collage-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .event-video-layout {
        grid-template-columns: 1fr;
    }

    .event-video-text {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .event-gallery-block {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .event-gallery-slider {
        height: 320px;
    }

    .event-collage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .event-gallery-prev,
    .event-gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .event-gallery-header h3 {
        font-size: 1.55rem;
    }

    .event-filter-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 4px 10px;
        scroll-snap-type: x mandatory;
    }

    .event-filter-btn {
        flex: 0 0 auto;
        max-width: 220px;
        min-width: 170px;
        scroll-snap-align: start;
        font-size: 0.9rem;
        padding: 11px 16px;
    }

    .event-video-frame {
        border-radius: 14px;
    }

    .event-video-text {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .event-index-grid {
        grid-template-columns: 1fr;
    }

    .event-gallery-slider {
        height: 250px;
    }

    .event-collage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-gallery-text p {
        font-size: 1rem;
    }

    .event-filter-btn {
        min-width: 160px;
        max-width: 210px;
        font-size: 0.86rem;
    }

    .event-placeholder-card {
        padding: 28px 18px;
    }
}
