﻿@charset "utf-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== CSS 變數定義 (設計系統) ===== */
:root {
    /* 字型設定 */
    --font-family-primary: "微軟正黑體", "Microsoft JhengHei", "Segoe UI", "Arial", sans-serif;
    --font-family-fallback: sans-serif;
    
    /* 文字顏色 */
    --text-color-primary: #555;
    --text-color-secondary: #666;
    --text-color-heading: #666;
    --text-color-subheading: #800080;
    --text-color-strong: #444;
    --text-color-strong-block: #AC3F26;
    --text-color-blue: blue;
    --text-color-white: #fff;
    --text-color-muted: #95a5a6;
    
    /* 背景顏色 */
    --bg-color-primary: #f8f9fa;
    --bg-color-secondary: #2c3e50;
    --bg-color-accent: #e74c3c;
    --bg-color-light: #fff;
    
    /* 基礎文字大小 (響應式) */
    --font-size-base: 1rem;
    --font-size-base-tablet: 1.1rem;
    --font-size-base-desktop: 1.2rem;
    
    /* 標題增量 */
    --font-increment-h1: 0.5rem;
    --font-increment-h2: 0.4rem;
    --font-increment-strong: 0.3rem;
    
    /* 行高設定 */
    --line-height-base: 1.6;
    --line-height-heading: 1.4;
    
    /* 字距設定 */
    --letter-spacing-base: 1px;
    
    /* 間距設定 */
    --margin-top-h1: 30px;
    --margin-top-other: 20px;
    --margin-bottom-base: 20px;
    --margin-bottom-mobile: 10px;
    
    /* 字重設定 */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 700;
    
    /* 容器設定 */
    --container-max-width: 1200px;
    --container-padding: 0 15px;
    
    /* 邊框設定 */
    --border-radius: 4px;
    --border-radius-lg: 6px;
}


    /* ===== 基礎文字樣式 ===== */
    body {
        font-family: var(--font-family-primary), var(--font-family-fallback);
        line-height: var(--line-height-base);
        letter-spacing: var(--letter-spacing-base);
        color: var(--text-color-primary);
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-normal);
    }

    /* ===== 通用容器樣式 ===== */
    .container {
        width: 100%;
        max-width: var(--container-max-width);
        margin: 0 auto;
        padding: var(--container-padding);
    }

    .main-content {
        flex: 1;
        padding: 40px 0;
    }

/* ===== 內容區域文字樣式 ===== */
.content-text {
    font-size: var(--font-size-base);
    color: var(--text-color-primary);
    line-height: var(--line-height-base);
    font-weight: var(--font-weight-normal);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== 標題層級樣式 ===== */

/* H1 標題 - 從 2.css 整合過來的樣式 */
.content-text h1 {
    color: #800080;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: block;
    margin-top: var(--margin-top-h1);
    margin-bottom: var(--margin-bottom-base);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 響應式設計 - content-text h1 */
/* 手機裝置 (600px以下) */
@media (max-width: 600px) {
    .content-text h1 {
        font-size: 1.8rem;
        margin-top: calc(var(--margin-top-h1) * 0.7);
        margin-bottom: calc(var(--margin-bottom-base) * 0.7);
        line-height: 1.3;
    }
}

/* 平板裝置 (601px - 1199px) */
@media (min-width: 601px) and (max-width: 1199px) {
    .content-text h1 {
        font-size: 2rem;
    }
}

/* 桌面裝置 (1200px以上) */
@media (min-width: 1200px) {
    .content-text h1 {
        font-size: 2.2rem;
    }
}

/* 超小屏幕 (375px以下) */
@media (max-width: 375px) {
    .content-text h1 {
        font-size: 1.6rem;
        line-height: 1.4;
        padding: 1rem 0.5rem;
    }
}

/* 列印樣式 - content-text h1 */
@media print {
    .content-text h1 {
        color: black !important;
        font-size: 18pt !important;
        text-shadow: none !important;
    }
}

/* 動畫效果 - content-text */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-text {
    animation: fadeInUp 0.6s ease;
}

/* 高對比度模式支援 */
@media (prefers-contrast: high) {
    .content-text {
        color: #000;
    }
    
    .content-text a {
        color: #0000EE;
    }
}

/* 減少動畫模式支援 */
@media (prefers-reduced-motion: reduce) {
    .content-text {
        animation: none;
    }
}

/* ===== 導航欄樣式 ===== */

/* ===== 導航欄樣式 ===== */
header {
    background-color: #E7D7C9;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    color: #cc3306;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.logo-icon {
    margin-right: 10px;
    font-size: 30px;
}
.logo span {
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 12px 18px;
    display: block;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #e74c3c;
    color: white;
}

.dropdown-menu {
    position: absolute;
    background-color: white;
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1001;
    padding: 10px 0;
}

.dropdown-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    color: #333;
    padding: 12px 20px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
    color: #e74c3c;
    padding-left: 25px;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    position: relative;
    transition: all 0.3s ease;
}

/* 三條槓和X圖標樣式 - 添加動畫 */
.mobile-toggle .hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 18px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-toggle .hamburger span:nth-child(1) {
    top: 0px;
    transform-origin: left center;
}

.mobile-toggle .hamburger span:nth-child(2) {
    top: 8px;
    transform-origin: left center;
}

.mobile-toggle .hamburger span:nth-child(3) {
    top: 16px;
    transform-origin: left center;
}

.mobile-toggle.active .hamburger span:nth-child(1) {
    top: 0px;
    left: 3px;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger span:nth-child(2) {
    width: 0%;
    opacity: 0;
}

.mobile-toggle.active .hamburger span:nth-child(3) {
    top: 16px;
    left: 3px;
    transform: rotate(-45deg);
}

/* 移動設備導航樣式 - 添加動畫 */
.mobile-menu-container {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #e0a502;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-container.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu {
    background-color: #e0a502;
    transform: translateX(-10px);
    transition: transform 0.3s ease 0.1s;
}

.mobile-menu-container.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    border-bottom: 2px solid #efcf79;
    position: relative;
    overflow: hidden;
}

/* 普通選單項背景色 */
.mobile-menu ul li:not(.has-submenu) {
    background-color: #6A0DAD;
}

/* 有下拉選單的選單項背景色 */
.mobile-menu ul li.has-submenu {
    background-color: #8B2DC9;
}

.mobile-menu ul li a {
    color: #fff;
    display: block;
    font-size: 20px;
    padding: 18px 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-menu ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.mobile-menu ul li a:hover::before {
    left: 100%;
}

.mobile-menu ul li a:hover, .mobile-menu ul li a:active {
    background-color: #fab802;
    padding-left: 25px;
}

/* 加大下拉圖標 - 添加動畫 */
.mobile-menu ul li i {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: block;
    width: 24px;
    height: 24px;
    overflow: hidden;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu ul li i.touch-arrow-down::before {
    content: "+";
    display: block;
    transition: transform 0.4s ease;
}

.mobile-menu ul li i.touch-arrow-up::before {
    content: "-";
    display: block;
    transform: rotate(180deg);
}

.mobile-menu ul li a:hover i {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

/* 子選單動畫效果 */
.mobile-menu ul ul {
    display: none;
    margin: 0;
    padding: 0;
    background-color: #7A3DB8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.3s ease;
}

.mobile-menu ul ul.active {
    display: block;
    max-height: 500px;
    padding: 10px 0;
}

.mobile-menu ul ul li {
    border-bottom: none;
    margin: 0;
    background-color: #7A3DB8;
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu ul ul.active li {
    transform: translateX(0);
    opacity: 1;
}

/* 子選單項目的延遲動畫 */
.mobile-menu ul ul li:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu ul ul li:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu ul ul li:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu ul ul li:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu ul ul li:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu ul ul li:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu ul ul li:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu ul ul li:nth-child(8) { transition-delay: 0.4s; }

.mobile-menu ul ul li a {
    padding: 16px 20px 16px 40px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.mobile-menu ul ul li a:hover {
    background-color: #9B4DDB;
    padding-left: 45px;
}

/* ===== 大圖檔區域樣式 ===== */
.header-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa; /* 預設背景色 */
}

.header-banner img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.5s ease;
}

/* 桌面版圖片 (預設顯示) */
.header-banner .desktop-img {
    display: block;
}

/* 平板版圖片 (預設隱藏) */
.header-banner .tablet-img {
    display: none;
}

/* 手機版圖片 (預設隱藏) */
.header-banner .mobile-img {
    display: none;
}

/* 響應式圖片切換 */
@media (max-width: 992px) and (min-width: 768px) {
    .header-banner .desktop-img {
        display: none;
    }
    
    .header-banner .tablet-img {
        display: block;
    }
}

@media (max-width: 767px) {
    .header-banner .desktop-img {
        display: none;
    }
    
    .header-banner .mobile-img {
        display: block;
    }
}

/* 圖片載入前的佔位空間 */
.header-banner.placeholder {
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-banner.placeholder::before {
    content: "載入中...";
    color: #666;
    font-size: 1.2rem;
}

/* 圖片載入失敗的備用樣式 */
.header-banner.error {
    min-height: 200px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* 可選：添加圖片說明文字樣式 */
/* 圖片說明文字樣式 */
.banner-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
    display: block; /* 預設顯示 */
}

.banner-caption p {
    margin: 5px 0 0 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* 響應式文字調整 */
@media (max-width: 768px) {
    .banner-caption {
        display: none; /* 小於等於768px時隱藏 */
        /* 如果需要保留其他樣式，可以註解掉下面這行 */
        /* bottom: 15px;
        padding: 10px 15px;
        font-size: 1rem; */
    }
    
    .banner-caption p {
        font-size: 0.9rem;
    }
}


    /* ===== 標題層級樣式 ===== */
    /* H1 標題 */
    .content-text h1,
    h1 {
        color: var(--text-color-heading);
        font-size: calc(var(--font-size-base) + var(--font-increment-h1));
        line-height: var(--line-height-heading);
        font-weight: var(--font-weight-bold);
        position: relative;
        display: block;
        margin-top: var(--margin-top-h1);
        margin-bottom: var(--margin-bottom-base);
        color: #800080;
        font-size: 2.2rem;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 1px;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    }

/* ===== 主内容區域樣式 ===== */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1551524164-6ca5f5f77e75?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
}



    /* ===== 標題層級樣式 ===== */
    /* H1 標題 */
    .content-text h1,
    h1 {
        color: var(--text-color-heading);
        font-size: calc(var(--font-size-base) + var(--font-increment-h1));
        line-height: var(--line-height-heading);
        font-weight: var(--font-weight-bold);
        position: relative;
        display: block;
        margin-top: var(--margin-top-h1);
        margin-bottom: var(--margin-bottom-base);

     color: #800080;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);

    }

    /* H2 標題 */
    .content-text h2,
    h2 {
        color: var(--text-color-subheading);
        font-size: calc(var(--font-size-base) + var(--font-increment-h2));
        line-height: var(--line-height-heading);
        font-weight: var(--font-weight-bolder);
        position: relative;
        display: block;
        margin-top: var(--margin-top-other);
        margin-bottom: var(--margin-bottom-base);
    }

    /* H3 標題 */
    .content-text h3,
    h3 {
        color: var(--text-color-subheading);
        font-size: calc(var(--font-size-base) + var(--font-increment-h2) - 0.1rem);
        line-height: var(--line-height-heading);
        font-weight: var(--font-weight-bold);
        position: relative;
        display: block;
        margin-top: var(--margin-top-other);
        margin-bottom: var(--margin-bottom-base);
    }





.btn {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.2rem;
    color: #2c3e50;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #e74c3c;
    margin: 15px auto 0;
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.section-title:hover:after {
    transform: scaleX(1);
}

/* ===== 按鈕樣式擴充 ===== */

/* 通用按鈕基礎樣式 */
.btn-reservation,
.btn-booking,
.btn-learn-more,
.btn-automatic,
.btn-manual,
.btn-plan {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 14px 35px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    cursor: pointer;
    margin: 5px;
}

/* 按鈕懸停效果 */
.btn-reservation::before,
.btn-booking::before,
.btn-learn-more::before,
.btn-automatic::before,
.btn-manual::before,
.btn-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-reservation:hover::before,
.btn-booking:hover::before,
.btn-learn-more:hover::before,
.btn-automatic:hover::before,
.btn-manual:hover::before,
.btn-plan:hover::before {
    left: 100%;
}

.btn-reservation:hover,
.btn-booking:hover,
.btn-learn-more:hover,
.btn-automatic:hover,
.btn-manual:hover,
.btn-plan:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* 特定按鈕的個性化樣式 */
.btn-reservation {
    background-color: #e74c3c; /* 紅色 */
}

.btn-booking {
    background-color: #FF8306; /* 橙色 */
}

.btn-learn-more {
    background-color: #3498db; /* 藍色 */
}

.btn-automatic {
    background-color: #2ecc71; /* 綠色 */
}

.btn-manual {
    background-color: #9b59b6; /* 紫色 */
}

.btn-plan {
    background-color: #f39c12; /* 黃色 */
}

/* 響應式按鈕調整 */
@media (max-width: 768px) {
    .btn-reservation,
    .btn-booking,
    .btn-learn-more,
    .btn-automatic,
    .btn-manual,
    .btn-plan {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        margin: 5px 0;
    }
}

/* 按鈕容器樣式，用於按鈕組排列 */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        align-items: center;
    }
}

/* ===== 頁尾導航列樣式 ===== */
.footer-nav {
    background: linear-gradient(135deg, #E4D4B9 0%, #ECE1D0 100%);
    color: white;
    padding: 60px 0 25px;
    margin-top: auto;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: #e74c3c;
    border-radius: 2px;
}

/* 原始CSS中的圖示樣式 - 修改為圓角矩形 */
.footer-column h3 .icon {
    font-size: 1.6rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px; /* 改為圓角矩形 */
    border: 2px solid rgba(231, 76, 60, 0.3);
    overflow: hidden; /* 新增：確保圖片不會超出圓角邊界 */
}

/* 新增：圖示內的圖片樣式 */
.footer-column h3 .icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 6px; /* 圖片內部也使用圓角 */
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

/* 大箭頭圖標 */
.footer-links a::before {
    content: '➤';
    margin-right: 15px;
    color: #e74c3c;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.footer-links a:hover {
    color: #CC3300;
    transform: translateX(10px);
}

.footer-links a:hover::before {
    transform: scale(1.3);
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

/* 聯絡資訊大圖標 */
.contact-info {
    margin-top: 20px;
    background-color: #f8f4ff; /* 淡紫色 */
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e8e0ff; /* 淡紫色邊框 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* 輕微陰影 */
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #2c3e50; /* 深色文字在淡紫背景上更清晰 */
    padding: 10px 0;
    border-bottom: 1px solid rgba(232, 224, 255, 0.5); /* 半透明淡紫分隔線 */
}


/* 聯絡資訊大圖標 - 內部 */

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

/* 上 - 聯絡資訊大圖標 - 內部 */



.contact-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.contact-item .icon {
    margin-right: 15px;
    color: #e74c3c;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 8px;
    font-size: 1.4rem;
    border: 2px solid rgba(231, 76, 60, 0.2);
}

.contact-item:hover .icon {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
    border-color: rgba(231, 76, 60, 0.4);
}

/* 大社交媒體圖標 */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 1.4rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    background: #e74c3c;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.5);
    border-color: rgba(231, 76, 60, 0.5);
}

.footer-bottom {
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.copyright {
    color: #95a5a6;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright::before {
    content: '©';
    font-size: 1.2rem;
    color: #e74c3c;
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.footer-bottom-links a {
    color: #95a5a6;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom-links a::before {
    content: '•';
    color: #e74c3c;
    font-size: 1.2rem;
}

.footer-bottom-links a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

/* 回到頂部大按鈕 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.6);
}

/* ===== 頁尾底部工具列樣式 ===== */
.footer-toolbar {
    background: linear-gradient(135deg, #1a2a3a 0%, #2c3e50 100%);
    color: white;
    padding: 25px 0;
    border-top: 3px solid rgba(231, 76, 60, 0.3);
}

.footer-toolbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-toolbar-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px; /* 減少間距 */
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-info a:hover {
    color: #e74c3c;
    transform: translateY(-2px);
}

.footer-info .separator {
    color: #7f8c8d;
    margin: 0 3px; /* 減少分隔符間距 */
}

/* 日期和訪量樣式 - 減少間距 */
.update-info {
    display: flex;
    align-items: center;
    gap: 5px; /* 減少間距 */
}

.visit-count {
    display: flex;
    align-items: center;
    gap: 5px; /* 減少間距 */
}

/* ===== 行動裝置工具列樣式 ===== */
.mobile-toolbar {
    display: none;
    background: #E7D7C9;
    padding: 8px 0;
    border-top: 2px solid rgba(231, 76, 60, 0.3);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.2);
}

.mobile-toolbar-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.mobile-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    align-items: center;
}

.mobile-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    padding: 5px 3px;
    border-radius: 6px;
}

.mobile-tool-item:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: translateY(-2px);
}

.mobile-tool-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 3px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.mobile-tool-item:hover .mobile-tool-icon {
    transform: scale(1.1);
}

.mobile-tool-label {
    font-size: 0.7rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.1;
}

/* ===== 響應式設計 ===== */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 30px;
        right: 30px;
        width: 55px;
        height: 55px;
    }
    
    .mobile-toolbar {
        display: block;
    }
    
    .footer-toolbar {
        display: none;
    }
    
    .footer-toolbar-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .footer-column h3 {
        font-size: 1.3rem;
    }
    
    .footer-column h3 .icon {
        font-size: 1.6rem;
        width: 40px;
        height: 40px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a::before {
        font-size: 1.1rem;
        width: 22px;
        height: 22px;
    }
    
    .contact-item .icon {
        font-size: 1.3rem;
        width: 35px;
        height: 35px;
    }
    
    .footer-info {
        font-size: 0.9rem;
        gap: 6px;
        justify-content: flex-start;
    }
    
    .footer-info .separator {
        margin: 0 2px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .mobile-menu ul li a {
        font-size: 18px;
        padding: 16px 20px;
    }
    
    .mobile-menu ul ul li a {
        padding: 14px 20px 14px 40px;
        font-size: 16px;
    }
    
    .footer-nav {
        padding: 40px 0 15px;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .footer-links a {
        font-size: 0.95rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .footer-toolbar {
        padding: 12px 0;
    }
    
    .footer-info {
        font-size: 0.85rem;
        gap: 4px;
        justify-content: flex-start;
    }
    
    .footer-info .separator {
        margin: 0 1px;
    }
    
    .mobile-toolbar {
        padding: 6px 0;
    }
    
    .mobile-toolbar-container {
        padding: 0 8px;
    }
    
    .mobile-toolbar-grid {
        gap: 6px;
    }
    
    .mobile-tool-item {
        padding: 4px 2px;
    }
    
    .mobile-tool-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 2px;
    }
    
    .mobile-tool-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 360px) {
    .mobile-toolbar {
        padding: 5px 0;
    }
    
    .mobile-tool-icon {
        width: 30px;
        height: 30px;
    }
    
    .mobile-tool-label {
        font-size: 0.6rem;
    }
}

/* PC顯示設定 - 頁尾底部工具列 */
@media (min-width: 993px) {
    .footer-toolbar {
        display: block;
    }
    
    /* 小螢幕文字上移調整 */
    @media (max-width: 1200px) {
        .footer-info {
            position: relative;
            top: -6px;
        }
    }
}

/* 列印樣式 */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .btn, .mobile-toggle, .back-to-top, .footer-nav, header {
        display: none !important;
    }
}

/* 動畫效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-column {
    animation: fadeInUp 0.8s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

/* 懸停放大效果 */
.footer-column:hover h3 .icon {
    transform: scale(1.1);
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
}
/* ===== 新增：佈局和組件樣式 ===== */

/* 車輛比較區域 */
.vehicle-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.vehicle-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.vehicle-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.vehicle-header p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

.vehicle-image {
    position: relative;
    overflow: hidden;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    text-align: center;
}

.caption-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.caption-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.vehicle-specs {
    padding: 20px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #555;
}

.spec-value {
    font-weight: 500;
    color: #e74c3c;
}

.price-tag {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #e74c3c;
}

.price-tag p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 0.9rem;
}

/* 特色區域 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 變速系統選擇 */
.transmission-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.transmission-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.transmission-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.transmission-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.transmission-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.recommendation {
    background: #e8f4fd;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.recommendation strong {
    color: #3498db;
}

/* 租賃方案 */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #e74c3c;
    transform: translateY(-5px);
}

.option-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.option-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
}

.option-card p {
    color: #666;
    margin-bottom: 20px;
}

.option-features {
    list-style: none;
    text-align: left;
    margin: 25px 0;
}

.option-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 25px;
}

.option-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
}

.option-features li:last-child {
    border-bottom: none;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .vehicle-comparison {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .transmission-options {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-card,
    .feature-card,
    .transmission-card,
    .option-card {
        margin: 0 10px;
    }
}

/* 修正現有問題 */
.nav-link {
    color: #fff !important; /* 修正導航文字顏色 */
}

.highlight {
    background-color: #ffeb3b;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
}

/* 確保所有按鈕都有正確樣式 */
.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #008ACC;
}

/* 移除所有链接的下划线 */

a {
    text-decoration: none;
}