/* ==========================================================================
   瑪嵐旅遊｜武界部落 2天1夜套裝行程與行前須知 專用響應式樣式表
   設計風格：原民水彩手繪、粉彩柔和三段分區、全設備極致自適應
   ========================================================================== */

/* --- 1. 全域變數與重設 --- */
:root {
    /* 主體字型 */
    --font-main: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Zen Maru Gothic', 'Noto Sans TC', sans-serif;

    /* 第一區：淡黃色系列 (溫暖晨曦) */
    --bg-yellow-light: #FFFDF2;
    --bg-yellow-card: #FFFFFF;
    --border-yellow: #FDE68A;
    --accent-yellow: #D97706;
    --text-yellow-dark: #3F2D17;
    --shadow-yellow: rgba(217, 119, 6, 0.08);

    /* 第二區：櫻花粉色系列 (浪漫雲海) */
    --bg-pink-light: #FFF5F7;
    --bg-pink-card: #FFFFFF;
    --border-pink: #FBCFE8;
    --accent-pink: #DB2777;
    --text-pink-dark: #421828;
    --shadow-pink: rgba(219, 39, 119, 0.08);

    /* 第三區：天空粉藍系列 (安心防呆) */
    --bg-blue-light: #F0F7FF;
    --bg-blue-card: #FFFFFF;
    --border-blue: #BAE6FD;
    --accent-blue: #0284C7;
    --text-blue-dark: #14283C;
    --shadow-blue: rgba(2, 132, 199, 0.08);

    /* 原民圖騰配色 (布農族幾何織布) */
    --tribal-red: #C53030;
    --tribal-ochre: #D69E2E;
    --tribal-indigo: #2B6CB0;
    --tribal-black: #2D3748;

    /* 圓角與轉場 */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: #2D3748;
    background-color: #FAFAF7;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- 2. 布農族菱形幾何圖騰裝飾帶 --- */
/* ==========================================================================
   📱 總編專屬：一鍵切換手機 / 電腦版預覽工具列 (大道至簡)
   ========================================================================== */
.view-mode-bar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: #1E293B;
    color: #F8FAFC;
    padding: 8px 16px;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border-bottom: 2px solid #F59E0B;
}

.view-mode-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.view-mode-label {
    font-size: 14px;
    font-weight: 800;
    color: #FBBF24;
}

.btn-mode {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    background: #334155;
    color: #CBD5E1;
    border: 1.5px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-mode:hover {
    background: #475569;
    color: #FFFFFF;
}

.btn-mode.active {
    background: #F59E0B;
    color: #1E293B;
    border-color: #FDE68A;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.view-mode-hint {
    font-size: 12px;
    color: #94A3B8;
    margin-left: auto;
}

/* ==========================================================================
   📱 手機版擬真模擬視圖 (當總編切換至手機看版時，強制鎖定手機原生樣式)
   ========================================================================== */
body.mobile-preview-mode {
    background-color: #CBD5E1 !important;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.mobile-preview-mode .tribal-banner-top,
body.mobile-preview-mode .site-header,
body.mobile-preview-mode .hero-section,
body.mobile-preview-mode main,
body.mobile-preview-mode .site-footer {
    width: 390px !important;
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.25), 0 0 0 8px #0F172A, 0 0 0 12px #334155 !important;
    overflow-x: hidden;
}

body.mobile-preview-mode .tribal-banner-top {
    border-top-left-radius: 36px !important;
    border-top-right-radius: 36px !important;
    margin-top: 20px !important;
}

body.mobile-preview-mode .site-footer {
    border-bottom-left-radius: 36px !important;
    border-bottom-right-radius: 36px !important;
}

/* 覆蓋桌面 min-width 規則，在 390px 手機模擬模式下強制使用單欄手機排版 */
body.mobile-preview-mode .hero-container {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
}

body.mobile-preview-mode .hero-character-left,
body.mobile-preview-mode .hero-character-right {
    display: none !important; /* 手機端隱藏大立繪，由對話泡泡統一呈現 */
}

body.mobile-preview-mode .hero-heading {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

body.mobile-preview-mode .hero-features {
    justify-content: center !important;
}

body.mobile-preview-mode .itinerary-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

body.mobile-preview-mode .card-step2,
body.mobile-preview-mode .card-pink-step:nth-child(4) {
    grid-column: auto !important;
}

body.mobile-preview-mode .checklist-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body.mobile-preview-mode .footer-card {
    flex-direction: column !important;
    text-align: center !important;
    gap: 16px !important;
}

body.mobile-preview-mode .footer-cta-buttons {
    flex-direction: column !important;
}

/* 頂部導覽列：兩行自適應排列，四個膠囊全部清晰露臉 */
body.mobile-preview-mode .quick-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
}

body.mobile-preview-mode .quick-nav .nav-pill {
    font-size: 12px !important;
    padding: 5px 12px !important;
}

/* 懸浮按鈕：吸附在手機模擬外框邊緣，不遮擋正文 */
body.mobile-preview-mode .floating-actions {
    right: calc(50% - 195px - 58px) !important;
    bottom: 25px !important;
}

/* 幾何圖騰裝飾帶 */
.tribal-banner-top {
    height: 12px;
    background: repeating-linear-gradient(
        45deg,
        var(--tribal-red) 0px,
        var(--tribal-red) 12px,
        var(--tribal-ochre) 12px,
        var(--tribal-ochre) 24px,
        var(--tribal-indigo) 24px,
        var(--tribal-indigo) 36px,
        var(--tribal-black) 36px,
        var(--tribal-black) 48px
    );
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tribal-divider {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tribal-divider::before,
.tribal-divider::after {
    content: "";
    flex: 1;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        #D69E2E 0,
        #D69E2E 10px,
        #C53030 10px,
        #C53030 20px,
        #2B6CB0 20px,
        #2B6CB0 30px
    );
}

.tribal-diamond {
    padding: 0 16px;
    font-size: 14px;
    color: var(--tribal-red);
    font-weight: bold;
    background: transparent;
}

/* --- 3. 頂部導航列 (相容手機、平板與桌機) --- */
.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.brand-group {
    display: flex;
    flex-direction: column;
}

.brand-badge {
    font-size: 11px;
    font-weight: 700;
    color: var(--tribal-red);
    letter-spacing: 0.5px;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #1A202C;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-title span {
    font-size: 13px;
    color: #718096;
    font-weight: 500;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding-bottom: 2px;
}

.nav-pill {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}

.pill-yellow { background: #FEF3C7; color: #92400E; }
.pill-yellow:hover { background: #FDE68A; }

.pill-pink { background: #FCE7F3; color: #9D174D; }
.pill-pink:hover { background: #FBCFE8; }

.pill-rose { background: #FFE4E6; color: #9F1239; }
.pill-rose:hover { background: #FECDD3; }

.pill-blue { background: #E0F2FE; color: #075985; }
.pill-blue:hover { background: #BAE6FD; }

/* --- 4. 英雄大橫幅 (Hero Banner) --- */
.hero-section {
    background: linear-gradient(180deg, #FFFDF5 0%, #FFF8E1 100%);
    padding: 30px 16px 24px;
    border-bottom: 1px solid var(--border-yellow);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.hero-ribbon {
    display: inline-block;
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
    color: #FFFFFF;
    padding: 6px 20px;
    border-radius: var(--radius-full);
    font-weight: 900;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(197, 48, 48, 0.25);
}

.hero-heading {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: #2D3748;
    line-height: 1.35;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.feat-tag {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #FCD34D;
    color: #92400E;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
}

.hero-character-left,
.hero-character-right {
    display: none; /* 手機端隱藏大立繪，由對話泡泡統一呈現 */
}

/* --- 5. 對話泡泡卡片 (Dialogue Bubbles) --- */
.character-talk-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.8);
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.character-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.char-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    object-fit: contain;
    background: #FFFFFF;
    border: 3px solid #F6E05E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    padding: 2px;
}

.char-thumb-round {
    border-color: #F687B3;
}

.char-name {
    font-size: 12px;
    font-weight: 800;
    color: #4A5568;
    background: #EDF2F7;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.dialogue-bubble {
    position: relative;
    background: #FFFFFF;
    padding: 14px 18px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    font-size: 15px;
    color: #2D3748;
    line-height: 1.6;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    border: 1.5px solid #FEEBC8;
}

.bubble-hero {
    border-color: #FCD34D;
    background: #FFFCF2;
    border-top-left-radius: 16px;
}

.bubble-alang {
    border-color: #FBD38D;
    background: #FFFAF0;
}

.bubble-malan {
    border-color: #FBB6CE;
    background: #FFF5F7;
}

.bubble-shafeng {
    border-color: #BAE6FD;
    background: #F0F9FF;
}

/* --- 6. 區塊樣式 (Sections) --- */
.section-block {
    padding: 36px 16px;
}

.block-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 22px;
}

.header-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.badge-yellow { background: #FEF3C7; color: #B45309; }
.badge-pink { background: #FCE7F3; color: #BE185D; }
.badge-blue { background: #E0F2FE; color: #0369A1; }

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: #1A202C;
    line-height: 1.35;
    margin-bottom: 6px;
}

.section-subtitle {
    font-size: 14px;
    color: #718096;
}

/* 區塊一：淡黃底色 */
.section-day1 {
    background-color: var(--bg-yellow-light);
}

/* 區塊二：粉紅底色 */
.section-day2 {
    background-color: var(--bg-pink-light);
}

/* 區塊三：粉藍底色 */
.section-day3 {
    background-color: var(--bg-blue-light);
}

/* --- 7. 行程卡片清單 (Itinerary Cards) --- */
.itinerary-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.itinerary-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #FFFFFF;
    padding: 18px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-yellow);
    box-shadow: 0 4px 12px var(--shadow-yellow);
    transition: var(--transition);
}

.itinerary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-pink-step {
    border-color: var(--border-pink);
    box-shadow: 0 4px 12px var(--shadow-pink);
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.3);
}

.step-num-pink {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    box-shadow: 0 3px 8px rgba(219, 39, 119, 0.3);
}

.step-info {
    flex: 1;
}

.step-time-tag,
.step-highlight-tag,
.step-special-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
}

.step-time-tag { background: #FEF3C7; color: #92400E; }
.step-highlight-tag { background: #DCFCE7; color: #166534; }
.step-special-tag { background: #EDE9FE; color: #5B21B6; }

.tag-pink { background: #FCE7F3; color: #9D174D; }
.tag-pink-h { background: #DCFCE7; color: #166534; }
.tag-pink-s { background: #FEE2E2; color: #991B1B; }

.step-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 6px;
    line-height: 1.45;
}

.step-desc {
    font-size: 15px;
    color: #4B5563;
    line-height: 1.6;
}

.text-note {
    display: inline-block;
    font-size: 13px;
    color: #D97706;
    margin-top: 4px;
    font-weight: 500;
}

/* 內嵌手繪插圖容器 */
.inline-illus-box {
    margin-top: 14px;
    background: #FAFAFA;
    border: 1px dashed #E5E7EB;
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.inline-illus-img {
    max-width: 240px;
    margin: 0 auto 6px;
    border-radius: var(--radius-sm);
}

.inline-illus-img-dance {
    max-width: 220px;
    margin: 0 auto 6px;
}

.inline-illus-img-alang {
    max-width: 220px;
    margin: 4px auto 6px;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

.inline-illus-img-sun {
    max-width: 140px;
    margin: 0 auto 6px;
}

.illus-caption {
    font-size: 12px;
    font-weight: 700;
    color: #6B7280;
}

.memo-notice-banner {
    margin-top: 20px;
    background: rgba(254, 243, 199, 0.7);
    border: 1px solid #FCD34D;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #92400E;
}

.notice-icon {
    font-size: 20px;
    flex-shrink: 0;
}

/* --- 8. 四季花期切換指南 (Flower Tabs) --- */
.flower-guide-card {
    margin-top: 30px;
    background: #FFFFFF;
    border: 2px solid var(--border-pink);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    box-shadow: 0 6px 20px var(--shadow-pink);
}

.flower-guide-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.flower-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.flower-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-pink);
    margin-bottom: 4px;
}

.flower-card-desc {
    font-size: 14px;
    color: #6B7280;
}

.flower-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.flower-tabs::-webkit-scrollbar { display: none; }

.flower-tab {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: #FDF2F8;
    color: #9D174D;
    border: 1px solid #FBCFE8;
    transition: var(--transition);
}

.flower-tab.active {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    color: #FFFFFF;
    border-color: #DB2777;
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.3);
}

.flower-pane {
    display: none;
    align-items: flex-start;
    gap: 14px;
    background: #FFF5F7;
    border: 1px solid #FBCFE8;
    padding: 16px;
    border-radius: var(--radius-md);
    animation: fadeIn 0.3s ease;
}

.flower-pane.active {
    display: flex;
}

.flower-pane-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.flower-pane-text h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: #9D174D;
    margin-bottom: 6px;
}

.flower-pane-text p {
    font-size: 14px;
    color: #4B5563;
    line-height: 1.6;
}

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

/* --- 9. 裝備打包打勾清單 (Checklist) --- */
.checklist-card {
    background: #FFFFFF;
    border: 1.5px solid var(--border-blue);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px var(--shadow-blue);
}

.checklist-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-blue);
}

.checklist-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-icon {
    font-size: 24px;
}

.checklist-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-blue);
}

.checklist-progress {
    font-size: 13px;
    font-weight: 700;
    background: #E0F2FE;
    color: #0369A1;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.checklist-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.check-item:hover {
    background: #F0F9FF;
    border-color: #BAE6FD;
}

.check-item input[type="checkbox"] {
    display: none;
}

.checkbox-box {
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 6px;
    background: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.check-item input[type="checkbox"]:checked + .checkbox-box {
    background: #0284C7;
    border-color: #0284C7;
}

.check-item input[type="checkbox"]:checked + .checkbox-box::after {
    content: "✓";
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 900;
}

.check-label {
    font-size: 14.5px;
    color: #334155;
    flex: 1;
}

.check-item.completed {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.check-item.completed .check-label {
    color: #166534;
}

/* --- 10. 常見問題手風琴 (Accordion FAQ) --- */
.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    background: #FFFFFF;
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-blue);
    transition: var(--transition);
}

.accordion-toggle {
    width: 100%;
    padding: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: var(--transition);
}

.accordion-toggle:hover {
    background-color: #F8FAFC;
}

.acc-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: #E0F2FE;
    color: #0369A1;
    flex-shrink: 0;
}

.acc-badge-warn {
    background: #FEF3C7;
    color: #B45309;
}

.acc-badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.acc-badge-special {
    background: #EDE9FE;
    color: #6D28D9;
}

.acc-title {
    font-family: var(--font-heading);
    font-size: 15.5px;
    font-weight: 800;
    color: #1E293B;
    flex: 1;
    line-height: 1.4;
}

.acc-chevron {
    font-size: 12px;
    color: #94A3B8;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .acc-chevron {
    transform: rotate(180deg);
    color: var(--accent-blue);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
}

.acc-body {
    padding: 0 16px 16px;
    font-size: 14.5px;
    color: #475569;
    line-height: 1.65;
    border-top: 1px dashed #E2E8F0;
    margin-top: 4px;
    padding-top: 14px;
}

.acc-body ul, .acc-body ol {
    padding-left: 20px;
    margin-top: 6px;
}

.acc-body li {
    margin-bottom: 6px;
}

.info-alert-box {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 8px;
}

.alert-sub {
    margin-bottom: 8px;
}
.alert-sub:last-child { margin-bottom: 0; }

.text-subnote {
    font-size: 13px;
    color: #64748B;
    margin-top: 6px;
}

/* --- 11. 底部資訊與 CTA (Footer) --- */
.site-footer {
    background: #1E293B;
    color: #E2E8F0;
    padding: 40px 16px 80px;
    margin-top: 20px;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 24px;
}

.footer-avatar {
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    border: 3.5px solid #F6E05E;
    object-fit: contain;
    background: #FFFFFF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    padding: 3px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: #FFFFFF;
}

.footer-desc {
    font-size: 14px;
    color: #CBD5E1;
    max-width: 500px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.contact-item a {
    color: #38BDF8;
    font-weight: 700;
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    margin-top: 6px;
}

.btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 15px;
    transition: var(--transition);
}

.btn-line {
    background: #06C755;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
}
.btn-line:hover { background: #05B34C; }

.btn-phone {
    background: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}
.btn-phone:hover { background: #2563EB; }

.footer-copyright {
    text-align: center;
    font-size: 12px;
    color: #94A3B8;
}

/* --- 12. 右下角懸浮按鈕 (Floating Actions) --- */
.floating-actions {
    position: fixed;
    right: 14px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.float-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.float-btn:hover {
    transform: scale(1.08);
}

.float-line { background: #06C755; }
.float-phone { background: #3B82F6; }
.float-top {
    background: #4B5563;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.float-top.visible {
    opacity: 0.9;
    pointer-events: auto;
}

.float-icon { font-size: 18px; line-height: 1; }
.float-text { font-size: 10px; font-weight: 800; margin-top: 2px; }

/* ==========================================================================
   📱 響應式媒體查詢 (Responsive Media Queries)
   ========================================================================== */

/* 平板端 (Tablet 768px ~ 1023px) */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .hero-character-left {
        display: block;
        width: 160px;
        flex-shrink: 0;
    }

    .hero-character-right {
        display: block;
        width: 140px;
        flex-shrink: 0;
    }

    .hero-avatar, .hero-avatar-malan {
        border-radius: var(--radius-lg);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    }

    .hero-content {
        flex: 1;
    }

    .hero-features {
        justify-content: flex-start;
    }

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

    .card-step2, .card-pink-step:nth-child(4) {
        grid-column: span 2; /* 景點多的項目橫跨兩欄 */
    }

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

    .footer-card {
        flex-direction: row;
        text-align: left;
        gap: 24px;
    }

    .footer-cta-buttons {
        flex-direction: row;
    }
}

/* 電腦端 (Desktop 1024px+) */
@media (min-width: 1024px) {
    .hero-heading {
        font-size: 34px;
    }

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

    .itinerary-card {
        padding: 22px 20px;
    }

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

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

    .character-talk-card {
        padding: 18px 24px;
    }

    .char-thumb {
        width: 80px;
        height: 80px;
    }

    .dialogue-bubble {
        font-size: 16px;
    }
}
