/* 重置基本樣式並設置全屏顯示 */
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 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);
}

/* 響應式設計調整 */
@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) {
    .nav-bar {
        right: 20px;
    }
    
    .logo {
        left: 20px;
    }
    
    .photo-item {
        width: calc(50% - 20px);
        min-width: 250px;
    }
    
    .photo-modal .modal-body {
        padding: 20px;
    }
    
    .success-story {
        width: calc(50% - 20px);
    }
    
    .news-section {
        margin: 0;
    }
    
    .story-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .story-modal .modal-body {
        flex-direction: column;
    }
    
    .story-modal .modal-image {
        height: 300px;
    }
    
    .story-modal .modal-text {
        padding: 0;
    }
    
    /* 新聞頁面介紹區塊響應式 */
    .news-intro-content {
        padding: 40px 25px;
    }
    
    .news-intro-content h2 {
        font-size: 2.5rem;
    }
    
    .news-intro-content h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .news-intro-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .intro-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .intro-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .carousel-nav {
        left: 5px;
        z-index: 20;
    }
    
    .v-carousel-item {
        padding: 20px 20px 20px 25px;
        min-height: 520px; /* 增加小屏幕下的高度 */
    }
    
    .story-details h4 {
        font-size: 1.5rem;
    }
    
    .story-subtitle {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .story-description p {
        font-size: 1rem;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .story-modal .modal-text h5 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .story-modal .modal-text p {
        font-size: 1rem;
    }
    
    .story-modal .modal-image {
        height: 250px;
    }
}

@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 {
    position: fixed;
    bottom: 170px; /* 位置在返回頂部按鈕上方，從160px上移至165px */
    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: 170px;
    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;
    }
}

/* 行動版選單按鈕樣式 */
.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);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .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;
    }

    .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;
    }

    .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;
    }

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

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