* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #4a7c59;
    --accent-color: #e74c3c;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.15);
    --green-light: #a8d5a8;
    --green-medium: #6b9e6b;
    --green-dark: #4a7c59;
}

body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    position: relative;
    margin: 0;
    padding: 0;
}

/* Fixed Background - Using background.gif */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: url('background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher in Hero */
.language-switcher {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 100;
}

.lang-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 1);
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    text-shadow: none;
}

/* Hero Section */
.hero-section {
    width: 100vw;
    height: auto;
    min-height: auto;
    overflow: visible; /* 改为 visible 让阴影可见 */
    position: relative;
    margin: 0;
    padding: 0 0 20px 0; /* 只保留下方 padding 给阴影留空间 */
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 将阴影移到容器上 */
    border-radius: 0 0 12px 12px; /* 只保留下方圆角 */
    overflow: hidden; /* 确保图片圆角生效 */
    position: relative; /* 为蒙板定位 */
    margin: 0;
    padding: 0;
}

/* 添加高透明度渐变蒙板 - 从垂直40%开始出现 */
.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 40%, 
        rgba(220, 240, 250, 0.2) 45%, 
        rgba(176, 224, 230, 0.25) 60%, 
        rgba(200, 230, 240, 0.3) 100%); /* 从40%开始逐渐出现淡蓝色渐变蒙板 */
    pointer-events: none; /* 不阻挡交互 */
    z-index: 1; /* 在图片上方 */
    border-radius: 0 0 12px 12px; /* 只保留下方圆角 */
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0 0 12px 12px; /* 只保留下方圆角 */
    position: relative;
    z-index: 0; /* 确保在蒙板下方 */
}

/* Mobile hero image - will be controlled by JavaScript */
@media (max-width: 768px) {
    .hero-image img {
        /* Image source will be updated by JavaScript based on language */
    }
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 3rem; /* 水平居中 */
    color: #1f3b73;
    position: relative;
    padding: 0; /* 移除 padding，使用固定尺寸来维持比例 */
    background-image: url('asset/title-border-bg.png');
    background-size: 100% 100%; /* 填满整个区域，保持 4:1 比例 */
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex; /* 改为 flex 让整个区域可以水平居中 */
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中 */
    box-sizing: border-box;
    width: 600px; /* 固定宽度，维持 4:1 比例 */
    height: 150px; /* 固定高度，600:150 = 4:1 */
    max-width: 90%; /* 移动端最大宽度 */
}

.section-title::after {
    display: none; /* 隐藏装饰线，因为已有背景图 */
}

/* Section 2: Introduction */
.quick-nav-section {
    padding: 2rem 0 0;
}

.quick-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.quick-nav-link {
    padding: 0.75rem 1.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    color: #1f3b73;
    font-size: 1.5rem; /* 与活动介绍 <p> 一样大 */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.15);
}

.quick-nav-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.3);
}

.quick-nav-link:active {
    transform: translateY(0);
}

.quick-nav-link:last-child {
    border-right: none;
}

.intro-section {
    background: transparent;
}

.intro-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0rem;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    text-align: left;
    flex: 1 1 50%;
}

.intro-image {
    flex: 0 0 50%;
    max-width: 600px;
}

.intro-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: none; /* 移除阴影 */
}

.intro-text h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.intro-text p {
    font-size: 1.5rem;
    line-height: 2;
    color: #333;
    white-space: pre-line;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Section 3: Video - Hidden until official link is provided */
.video-section {
    display: none !important;
}

/* Hide video link in quick navigation */
.quick-nav-link[href="#video-section"] {
    display: none !important;
    background: transparent;
    position: relative;
}

.video-wrapper {
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Section 4: Building Section */
.building-section {
    background: transparent;
    padding: 4rem 0;
}

.building-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.building-card-hidden {
    display: none !important;
}

.building-see-more-btn {
    margin: 2rem auto 0;
    display: none;
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, #1f3b73, #2c5a8f);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(31, 59, 115, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-align: center;
    justify-content: center;
    align-items: center;
    width: auto;
    min-width: 200px;
}

.building-see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(31, 59, 115, 0.3);
}

.building-see-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(31, 59, 115, 0.25);
}

.building-card {
    background: transparent;
    border-radius: 12px;
    perspective: 1000px;
    height: 100%;
    min-height: 350px;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

/* 使用伪元素创建底图层 - 底图比卡片大，作为外边框 */
.building-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background-image: url('asset/card-border-building-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.building-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.building-card.flipped .building-card-inner {
    transform: rotateY(180deg);
}

.building-card-front,
.building-card-back {
    position: absolute;
    width: 75%; /* 进一步缩小，总共内缩 25% */
    height: 85%; /* 进一步缩小高度 */
    top: 7.5%; /* 上下各 7.5% */
    left: 12.5%; /* 左右各 12.5% */
    backface-visibility: hidden;
    border-radius: 40px; /* 增加圆角 */
    box-shadow: none;
    border: 0;
    background: rgba(255, 255, 255, 0.25); /* 半透明白色背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    -webkit-backdrop-filter: blur(10px); /* Safari 兼容 */
    padding: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.building-card-front {
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
}

.building-card-back {
    transform: rotateY(180deg);
    background: transparent;
    background-image: none;
    justify-content: space-between;
}

.building-card:hover .building-card-inner {
    box-shadow: none;
}

.building-card-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.building-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: transparent;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.building-card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-top: 0;
    color: var(--primary-color);
    flex-shrink: 0;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    padding: 0 0.5rem;
    line-height: 1.3;
    max-width: 100%;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    max-height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.building-card-back-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #1f3b73; /* 深蓝色，匹配标题颜色 */
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(31, 59, 115, 0.4); /* 淡蓝色边框 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.building-card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.building-card-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1f3b73, #2c5a8f); /* 深蓝色渐变，匹配标题颜色 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(31, 59, 115, 0.3);
    width: 90%; /* 宽度减少 10% */
    box-sizing: border-box;
    display: block;
    margin: 0 auto; /* 置中 */
}

.building-card-btn:hover {
    background: linear-gradient(135deg, #2c5a8f, #1f3b73);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 115, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.close-btn {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--text-color);
}

.modal-body {
    padding-top: 1rem;
}

.modal-body h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
}

/* Section 5: Tour Section */
.tour-section {
    background: transparent;
    padding: 4rem 0;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    min-height: 200px;
    position: relative;
    z-index: 1;
}

/* Section 6: Transportation Section */
.transportation-section {
    background: transparent;
    padding: 4rem 0;
}

.transportation-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.transportation-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #1f3b73, #2c5a8f);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(31, 59, 115, 0.3);
    text-align: center;
    min-width: 200px;
}

.transportation-btn:hover {
    background: linear-gradient(135deg, #2c5a8f, #1f3b73);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 115, 0.4);
}

.transportation-btn:active {
    transform: translateY(0);
}

.tour-card {
    background: transparent;
    border-radius: 12px;
    overflow: visible;
    box-shadow: none;
    border: 0;
    outline: 0;
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    background-image: none;
    background: transparent;
    padding: 2rem;
    box-sizing: border-box;
    margin: 0;
    display: block;
    min-height: 400px;
    width: 100%;
    z-index: 1;
}

/* 使用伪元素创建底图层 - 底图比卡片大，作为外边框 */
.tour-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    background-image: url('asset/card-border-tour-bg.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.tour-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.tour-card-image-wrapper {
    position: relative;
    width: 99%; /* 窄 1% */
    padding-bottom: 113.914%; /* 保持原来的高度 */
    overflow: visible; /* 改为 visible 让图片可以超出 */
    border-radius: 0;
    background: transparent;
    background-color: transparent;
    background-image: none;
    border: 0;
    outline: 0;
    box-shadow: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    height: 0;
}

.tour-card-image {
    position: absolute;
    top: -9%; /* 向上延伸 */
    left: 0;
    width: 100%;
    height: 118%; /* 增加图片高度以填满虚线区域 */
    object-fit: cover;
    object-position: center;
    border: 0;
    outline: 0;
    border-radius: 10px;
    box-shadow: none;
    display: block;
    margin: 0;
    padding: 0;
}

.tour-card-overlay {
    position: absolute;
    top: -9%;
    left: 0;
    width: 100%;
    height: 118%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: white;
    border: 0;
    outline: 0;
    box-shadow: none;
    border-radius: 8px;
}

.tour-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.tour-card-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #1f3b73, #2c5a8f); /* 深蓝色渐变，匹配标题颜色 */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(31, 59, 115, 0.3);
}

.tour-card-btn:hover {
    background: linear-gradient(135deg, #2c5a8f, #1f3b73);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 115, 0.4);
}

/* Footer */
.footer {
    background: rgba(220, 240, 250, 0.7); /* 柔和淡蓝色，30% 透明度，匹配背景视觉风格 */
    color: var(--text-color);
    padding: 3rem 0;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-weight: 600;
}

.footer-logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-note {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    text-align: left;
    opacity: 0.8;
    flex: 0 0 auto;
    max-width: 300px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: nowrap;
}

.footer-logo {
    max-width: 200px;
    max-height: 100px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-nav-section {
        padding: 1rem 0 0; /* 移动端减少上方间距 */
    }
    
    .quick-nav {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .quick-nav-link {
        width: 100%;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        font-size: 1.2rem; /* 与活动介绍 <p> 移动端一样大 */
    }
    
    .quick-nav-link:last-child {
        border-bottom: none;
    }
    
    .intro-content {
        max-width: 100%;
        flex-direction: column; /* 移动端垂直布局 */
        gap: 1.5rem;
    }
    
    .intro-text {
        text-align: center; /* 移动端文字居中 */
        width: 100%;
    }
    
    .intro-text p {
        font-size: 1.2rem;
        text-align: justify; /* 段落文字保持两端对齐 */
    }
    
    .intro-text h3 {
        font-size: 1.8rem;
    }
    
    .intro-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .building-grid,
    .tour-grid {
        grid-template-columns: 1fr;
    }

    .building-see-more-btn {
        width: calc(100% - 40px);
        max-width: 360px;
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        padding: 0; /* 移动端也移除 padding */
        width: 90%; /* 移动端宽度 */
        max-width: 400px; /* 最大宽度 */
        height: calc((90vw * 0.9) / 4); /* 保持 4:1 比例，高度 = 宽度 / 4 */
        max-height: 100px; /* 最大高度（对应最大宽度 400px） */
        min-height: 60px; /* 最小高度 */
    }

    .hero-section {
        width: 100vw;
        height: auto;
        min-height: auto; /* 移除固定高度，自适应 */
        padding: 0 0 15px 0; /* 移动端也只保留下方 padding */
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        max-width: 100vw;
    }
    
    .hero-image {
        height: auto;
        min-height: auto; /* 移除固定高度，自适应 */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 移动端阴影也在容器上 */
        border-radius: 0 0 12px 12px; /* 移动端也只保留下方圆角 */
        overflow: hidden; /* 确保图片圆角生效 */
    }
    
    .hero-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        display: block; /* 移除图片底部间隙 */
        border-radius: 0 0 12px 12px; /* 移动端也只保留下方圆角 */
    }
    
    .building-card {
        min-height: 400px;
    }
    
    .building-card-image-wrapper {
        padding-bottom: 60%; /* 减少图片区域高度，为标题留出更多空间 */
    }
    
    .building-card-title {
        font-size: 1.1rem;
        padding: 0 0.5rem;
        white-space: normal;
        line-height: 1.4;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        margin-top: 0.75rem;
        min-height: 3em; /* 确保至少能显示2行文字 */
    }
    
    .building-card-front,
    .building-card-back {
        padding: 0.75rem;
        justify-content: flex-start;
    }
    
    .building-card-front {
        justify-content: space-between;
    }
    
    .footer-logos-wrapper {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }
    
    .footer-note {
        text-align: center;
        max-width: 100%;
        font-size: 0.85rem;
    }

    .language-switcher {
        top: 1rem;
        right: 1rem;
    }

    .lang-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        width: 95%;
        max-width: 95%;
        padding: 1rem;
        max-height: 95vh;
    }
    
    .close-btn {
        right: 0.5rem;
        top: 0.5rem;
        font-size: 1.5rem;
    }
    
    .footer-logos {
        flex-wrap: wrap;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 1rem;
    }
    
    .footer-logo {
        max-width: 150px;
        max-height: 80px;
    }
    
    /* Special handling for wide logo (新北市政府) on mobile */
    .footer-logo-wide {
        width: auto !important;
        max-width: calc(100vw - 100px) !important;
        max-width: min(calc(100vw - 100px), 300px) !important;
        height: auto !important;
    }
    
    /* Transportation Section Mobile */
    .transportation-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .transportation-btn {
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 0.9rem 2rem;
    }
    
    /* Tour Modal Mobile */
    .modal.active {
        padding: 0.5rem;
        align-items: flex-start;
    }
    
    .tour-modal-content {
        max-height: 95vh;
        min-height: auto;
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        overflow-y: auto;
        justify-content: flex-start;
        margin: 0;
    }
    
    .tour-detail-content {
        display: block !important;
    }
    
    .tour-detail-route {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .tour-detail-route-image {
        flex: 1 1 auto !important;
        min-width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .tour-detail-image {
        width: 100% !important;
        max-height: 300px !important;
        min-height: auto !important;
    }
    
    .tour-detail-route-content {
        width: 100% !important;
    }
    
    .tour-detail-info {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .tour-detail-title {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .tour-detail-route {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .tour-detail-route h4 {
        font-size: 1.2rem;
    }
    
    .tour-detail-route .route-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .tour-detail-intro h4 {
        font-size: 1.2rem;
    }
    
    .tour-detail-intro .intro-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .tour-detail-youcan {
        margin: 1.5rem 0;
    }
    
    .tour-detail-youcan h4 {
        font-size: 1.2rem;
    }
    
    .tour-detail-youcan .youcan-text {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .tour-detail-signup {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .tour-signup-btn {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
        width: calc(100% - 2rem);
        max-width: 300px;
    }
    
    .modal-body {
        padding: 0;
        overflow-y: visible;
    }
}

/* Tour Modal Styles */
.tour-modal-content {
    max-width: 1400px;
}

.tour-detail-content {
    display: block;
    margin: 0;
    min-height: fit-content;
    max-width: 100%;
    width: 100%;
}

.tour-detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.tour-detail-title {
    font-size: 2rem;
    color: #1f3b73; /* 深蓝色，匹配标题颜色 */
    margin-bottom: 2rem;
    text-align: left;
    padding-bottom: 1rem;
    border-bottom: 3px solid rgba(31, 59, 115, 0.4); /* 淡蓝色边框 */
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-detail-route {
    background: linear-gradient(135deg, rgba(176, 224, 230, 0.2) 0%, rgba(220, 240, 250, 0.15) 100%); /* 淡蓝色渐变背景 */
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 5px solid rgba(31, 59, 115, 0.5); /* 深蓝色边框 */
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.tour-detail-route-image {
    flex: 0 0 300px;
    min-width: 300px;
    max-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-detail-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: block;
}

.tour-detail-route-content {
    flex: 1;
    min-width: 0;
}

.tour-detail-route h4 {
    font-size: 1.4rem;
    color: #1f3b73; /* 深蓝色 */
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(176, 224, 230, 0.5); /* 淡蓝色边框 */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-detail-route .route-text {
    font-size: 1.1rem;
    line-height: 2;
    color: #555;
    margin: 0;
    white-space: pre-line;
}

.tour-detail-intro {
    margin: 2rem 0;
}

.tour-detail-intro h4 {
    font-size: 1.4rem;
    color: #1f3b73; /* 深蓝色 */
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(176, 224, 230, 0.5); /* 淡蓝色边框 */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-detail-intro .intro-text {
    font-size: 1.15rem;
    line-height: 2;
    color: #555;
    margin: 0;
    text-align: justify;
}

.tour-detail-youcan {
    margin: 1.5rem 0;
}

.tour-detail-youcan h4 {
    font-size: 1.4rem;
    color: #1f3b73; /* 深蓝色 */
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(176, 224, 230, 0.5); /* 淡蓝色边框 */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tour-detail-youcan .youcan-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin: 0;
    text-align: justify;
    white-space: pre-line;
}

.tour-detail-signup {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.tour-signup-btn {
    padding: 1rem 3rem;
    background: linear-gradient(135deg, #1f3b73, #2c5a8f);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(31, 59, 115, 0.3);
    text-align: center;
    min-width: 200px;
}

.tour-signup-btn:hover {
    background: linear-gradient(135deg, #2c5a8f, #1f3b73);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(31, 59, 115, 0.4);
}

.tour-signup-btn:active {
    transform: translateY(0);
}

