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

body {
    font-family: 'Microsoft JhengHei', '微軟正黑體', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    /* 優化移動端滾動性能 */
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
}

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

/* 頂部導航 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 44px;
    z-index: 1000;
    padding: 15px 0;
    /* 防止移動端滾動抖動 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

@media (max-width: 768px) {
    .header {
        z-index: 1001;
    }
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* 防止移動端滾動抖動 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    display: none;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2d8659;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #2d8659;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2d8659;
}

/* 移動端菜單按鈕 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #2d8659;
    padding: 5px 10px;
    z-index: 1001;
    position: relative;
}

/* 輪播圖 - 改為靜態圖片 */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider.short-slider {
    height: 350px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 10;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 24px;
}

/* 主要內容 */
.main-content {
    padding: 60px 0;
}

.section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    color: #2d8659;
    margin-bottom: 20px;
}

/* 熱門目的地 */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.destination-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.destination-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
}

.card-content .route {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

/* 關於途悅 */
.about-preview {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stat-card.highlight {
    background-color: #2d8659;
    color: #fff;
}

.stat-icon {
    font-size: 48px;
    color: #2d8659;
    margin-bottom: 10px;
}

.stat-card.highlight .stat-icon {
    color: #fff;
}

.stat-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.stat-card.highlight .stat-text {
    color: rgba(255, 255, 255, 0.9);
}

/* 探索活動 */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.event-info {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.view-details-btn {
    width: 100%;
    padding: 12px;
    background-color: #2d8659;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: block;
    text-align: center;
}

.view-details-btn:hover {
    background-color: #246b4a;
}

/* 服務特色 */
.services {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2d8659;
}

.service-icon i {
    display: inline-block;
}

.service-item h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 頁面內容 */
.page-content {
    padding: 40px 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 36px;
    color: #2d8659;
    margin-bottom: 30px;
    text-align: center;
}

.text-content {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.text-content p {
    margin-bottom: 20px;
}

.text-content h3 {
    font-size: 24px;
    color: #2d8659;
    margin-top: 30px;
    margin-bottom: 15px;
}

.text-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.text-content li {
    margin-bottom: 10px;
}

.text-content a {
    color: #2d8659;
    text-decoration: none;
}

.text-content a:hover {
    text-decoration: underline;
}

/* 關於我們頁面 */
.company-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #2d8659;
}

.value-item h3 {
    font-size: 22px;
    color: #2d8659;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* 營業執照圖片 */
.license-image {
    margin-top: 50px;
    text-align: center;
}

.license-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 聯繫我們頁面 */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.contact-card h3 {
    font-size: 24px;
    color: #2d8659;
    margin-bottom: 20px;
    border-bottom: 2px solid #2d8659;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card h3 i {
    font-size: 28px;
}

.contact-details p {
    font-size: 16px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-details p i {
    color: #2d8659;
    font-size: 18px;
    margin-top: 2px;
    min-width: 20px;
}

.contact-details a {
    color: #2d8659;
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
    color: #246b4a;
}

.contact-details .contact-value {
    color: #333;
    font-weight: 500;
}

.contact-details .contact-link {
    color: #2d8659 !important;
    font-weight: 500;
}

.contact-details .contact-link:hover {
    color: #246b4a !important;
}

/* 底部導航 */
.footer {
    background-color: #2d8659;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    line-height: 2;
}

.footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .header {
        /* 移動端額外優化，防止滾動抖動 */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-perspective: 1000;
        perspective: 1000;
        top: 0;
        z-index: 1001;
    }

    .menu-toggle {
        display: block !important;
        z-index: 1002;
        position: relative;
        pointer-events: auto;
        cursor: pointer;
        background: none;
        border: none;
        padding: 8px;
        /* 确保按钮可点击 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .menu-toggle i {
        pointer-events: none; /* 让点击事件穿透到按钮本身 */
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1001;
        /* 防止移動端滾動抖動 */
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        /* 确保菜单在最上层 */
        transform: translateZ(0);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

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

    .hero-slider {
        height: 400px;
    }

    .hero-slider.short-slider {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .destinations-grid {
        grid-template-columns: 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .company-values {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

