/* ==========================================
   1. CSS 變數設定 (全站主題色)
   ========================================== */
:root {
    --primary: #0056b3;        /* 品牌主色 (藍) */
    --primary-dark: #002147;   /* 品牌深色 (深藍) */
    --accent: #ff9800;         /* 強調色 (橘) */
    --accent-hover: #e68a00;   /* 強調色懸浮 */
    --bg-light: #f8f9fa;       /* 淺灰背景 */
    --text-main: #333333;      /* 主要文字 */
    --text-muted: #666666;     /* 次要文字 */
}

/* --- 基礎設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

/* 👇👇👇 將原本的 body 替換成下面這段 👇👇👇 */
html, body { 
    max-width: 100%; 
    overflow-x: hidden; /* 嚴格禁止水平溢出 */
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--bg-light); 
    scroll-behavior: smooth; 
}
a { text-decoration: none; color: var(--primary); }

/* --- 導覽列 --- */
header { background-color: #ffffff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; padding: 0.8rem 2rem; }
.logo { display: flex; align-items: center; }
.logo-img { height: 45px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; gap: 1.8rem; }
.nav-links a { color: #555; font-weight: 500; font-size: 1.1rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* --- 首圖橫幅 --- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; padding: 7rem 2rem; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1.2rem; }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.btn { background-color: var(--accent); color: white; padding: 1rem 2.5rem; border-radius: 5px; font-size: 1.2rem; font-weight: bold; display: inline-block; transition: background-color 0.3s; cursor: pointer; border: none;}
.btn:hover { background-color: var(--accent-hover); }

/* --- 為什麼選擇我們 (數據化優勢) --- */
.features { background-color: #ffffff; padding: 4rem 2rem; border-bottom: 1px solid #eee; }
.features-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; text-align: center; }
.feature-item h4 { font-size: 2.5rem; color: var(--primary); margin-bottom: 0.5rem; }
.feature-item p { font-size: 1.1rem; color: #555; font-weight: bold; }

/* --- 互動導覽地圖 --- */
.tour-section { background-color: #0b1120; padding: 6rem 2rem; text-align: center; border-bottom: 1px solid #1e293b;}
.tour-header h2 { font-size: 2.2rem; color: #ffffff; margin-bottom: 1rem; }
.tour-header p { font-size: 1.1rem; color: #94a3b8; max-width: 700px; margin: 0 auto 3.5rem auto; }
.tour-container { max-width: 1300px; margin: 0 auto; display: grid; grid-template-columns: 1fr 600px; gap: 3rem; text-align: left; align-items: center; align-items: start; }
.map-area { position: relative; width: 100%; aspect-ratio: 16/9; background-color: #1e293b; border-radius: 16px; border: 1px solid #334155; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden; }
.map-bg { position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(#475569 2px, transparent 2px), linear-gradient(90deg, #475569 2px, transparent 2px); background-size: 40px 40px; }
.map-lines-outer { position: absolute; inset: 2rem; border: 4px solid rgba(51, 65, 85, 0.5); border-radius: 12px; }
.map-line-v { position: absolute; top: 2rem; bottom: 2rem; left: 33%; border-left: 4px solid rgba(51, 65, 85, 0.5); }
.map-line-h { position: absolute; top: 50%; left: 2rem; right: 2rem; border-top: 4px solid rgba(51, 65, 85, 0.5); }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 10; transition: transform 0.3s; }
.map-pin:hover { transform: translate(-50%, -50%) scale(1.05); }
.map-pin.active { transform: translate(-50%, -50%) scale(1.15); z-index: 20; }
.pin-icon-wrapper { position: relative; padding: 0.75rem; border-radius: 50%; border: 2px solid #334155; background: rgba(15, 23, 42, 0.8); color: #94a3b8; transition: all 0.3s; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px);}
.map-pin:hover .pin-icon-wrapper { color: #e2e8f0; }
.pin-label { margin-top: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold; background: rgba(30, 41, 59, 0.9); border: 1px solid #334155; color: #cbd5e1; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.map-pin:hover .pin-label { opacity: 1; }
.map-pin.active .pin-label { opacity: 1; background: #2563eb; color: white; border-color: #2563eb; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.ping-ring { position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
.map-pin.active .ping-ring { animation: pingAnim 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes pingAnim { 0% { opacity: 0.7; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(2.2); } }
.info-panel { background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(8px); width: 100%; border: 1px solid #334155; border-radius: 16px; padding: 2rem; display: flex; flex-direction: column; height: 100%; justify-content: center; transition: all 0.3s ease; }
.info-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.info-icon-box { padding: 1rem; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.info-title { font-size: 1.5rem; font-weight: bold; color: white; line-height: 1.2; }
.info-subtitle { color: #94a3b8; font-size: 0.85rem; }
.info-desc { color: #cbd5e1; margin-bottom: 2rem; line-height: 1.7; }
.info-features-title { font-size: 0.85rem; font-weight: bold; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.info-features-list { list-style: none; }
.info-features-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: #e2e8f0; margin-bottom: 0.75rem; font-size: 0.95rem; }

/* ==========================================
   關於我們 (About Us) - 尊爵升級版
   ========================================== */
.about { 
    background-color: #ffffff; 
    padding: 7rem 2rem; /* 增加上下留白，更有呼吸感 */
    border-bottom: 1px solid #eee; 
}
.about-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 5rem; /* 加大左右圖文間距 */
    align-items: center; 
}

/* 標題與質感裝飾線 */
.about-text .section-title { 
    text-align: left; 
    margin-bottom: 2rem; 
    position: relative; 
    display: inline-block; 
}
.about-text .section-title::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent); /* 橘色點綴線 */
    border-radius: 2px;
}

/* 內文排版微調 */
.about-desc { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    line-height: 1.85; 
    margin-bottom: 1.5rem; 
    text-align: justify; 
}

/* 列表完美對齊魔法 (變成圓形 Check 徽章) */
.about-list { 
    list-style: none; 
    margin-top: 2.5rem; 
}
/* 列表完美對齊魔法 (解除垂直排版詛咒版) */
.about-list { 
    list-style: none; 
    margin-top: 2.5rem; 
}
.about-list li { 
    position: relative; /* 🌟 關鍵修正：讓列表變成定位基準 */
    padding-left: 42px; /* 🌟 預留左側空間給打勾徽章，保護文字不被擠壓 */
    margin-bottom: 1.2rem; 
    font-size: 1.05rem; 
    color: var(--text-main); 
    line-height: 1.6; 
}
.about-list li::before { 
    content: "✔"; 
    position: absolute; /* 🌟 讓徽章獨立浮動，絕對不會再干擾文字 */
    left: 0;
    top: 2px; /* 微調高度，對齊第一行字 */
    color: white; 
    background-color: var(--accent); 
    width: 26px; 
    height: 26px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    font-size: 0.85rem; 
}
.about-list li strong { 
    color: var(--primary-dark); 
    font-weight: 700;
}

/* 圖片升級：加入現代感交錯外框 */
.about-image { 
    position: relative; 
}
.about-image::before {
    content: "";
    position: absolute;
    top: 25px;
    left: -25px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary); /* 藍色幾何框 */
    border-radius: 12px;
    z-index: 0;
}
.about-image img { 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.15); 
    object-fit: cover; 
    position: relative; /* 👉 確保圖片蓋在幾何框上面 */
    z-index: 1; 
}

/* 針對手機與平板的縮放調整 */
@media (max-width: 900px) {
    .about-container { grid-template-columns: 1fr; gap: 4rem; }
    .about-text .section-title { text-align: center; display: block; }
    .about-text .section-title::after { left: 50%; transform: translateX(-50%); }
    .about-image::before { top: 15px; left: -15px; } /* 手機版框框距離微調 */
}

/* --- 服務項目卡片 --- */
.services { max-width: 1600px; margin: 5rem auto; padding: 0 2rem; text-align: center; }
.section-title { font-size: 2.2rem; margin-bottom: 3.5rem; color: var(--primary-dark); text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.8rem; }
.service-card { background: white; padding: 2rem 1.5rem; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; position: relative; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 12px 20px rgba(0,86,179,0.15); border: 1px solid var(--primary); }
.service-card::after { content: "點擊看詳細 ➔"; display: block; margin-top: auto; padding-top: 1.5rem; font-size: 0.95rem; color: var(--accent); font-weight: bold; }
.service-card h3 { color: var(--primary); font-size: 1.3rem; margin-bottom: 1rem; }
.service-card p { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.6; }
.service-list { list-style-type: none; font-size: 0.95rem; color: #444; text-align: left; border-top: 1px solid #eee; padding-top: 1.2rem; }
.service-list li { margin-bottom: 0.4rem; display: flex; gap: 0.5rem; }
.service-list li::before { content: "✓ "; color: #28a745; font-weight: bold; }

/* --- 成功案例 --- */
.cases { max-width: 1400px; margin: 5rem auto; padding: 0 2rem; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.case-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.case-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,86,179,0.15); }
.case-image { height: 200px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; font-weight: bold; letter-spacing: 2px; }
.bg-blue { background: linear-gradient(135deg, var(--primary), #3b82f6); }
.bg-orange { background: linear-gradient(135deg, var(--accent), #fca5a5); }
.bg-dark { background: linear-gradient(135deg, var(--primary-dark), #475569); }
.case-content { padding: 2rem; }
.case-tag { display: inline-block; background-color: #e0f2fe; color: var(--primary); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: bold; margin-bottom: 1rem; }
.case-card h3 { color: var(--text-main); font-size: 1.35rem; margin-bottom: 1rem; line-height: 1.4; }
.case-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.case-result { border-top: 1px dashed #cbd5e1; padding-top: 1.2rem; color: #059669; font-weight: bold; font-size: 0.95rem; }

/* 讓卡片滑鼠游標變成手指，並預留下方空間 */
.case-card { cursor: pointer; position: relative; padding-bottom: 2rem; }





/* 點擊看實績的提示文字 */
.click-hint { 
    position: absolute; 
    bottom: 1.5rem; 
    left: 2rem; 
    color: var(--accent); 
    font-weight: bold; 
    font-size: 0.95rem; 
}

/* 案例視窗的特別排版 (讓照片能放比較大) */
.case-modal-content { flex-direction: column !important; gap: 1.5rem !important; }
.case-modal-image img { max-height: 55vh; object-fit: cover; background-color: #f1f5f9; }
.case-result-highlight { margin-top: 1rem; color: #059669; font-weight: bold; font-size: 1.1rem; padding: 1rem; background: #ecfdf5; border-radius: 8px; border-left: 4px solid #10b981; }


/* --- 常見問題 FAQ --- */
.faq { background-color: #ffffff; padding: 5rem 2rem; }
.faq-container { 
    max-width: 1400px; /* 🌟 稍微把容器拉寬，讓三欄有足夠空間 */
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); /* 🌟 這裡改成 3 欄 */
    column-gap: 2.5rem; /* 🌟 稍微縮小左右間距，避免太擠 */
    row-gap: 0.5rem; 
    align-items: start; 
}
.faq-item { 
    border-bottom: 1px solid #ddd; 
}
.faq-question { padding: 1.2rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: bold; color: var(--text-main); transition: color 0.3s; }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 1.5rem; color: var(--primary); transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: #555; line-height: 1.8; }
.faq-answer p { padding-bottom: 1.5rem; font-size: 1.05rem; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

/* --- 合作品牌 Logo 牆 --- */
.partners { padding: 4rem 2rem; background-color: var(--bg-light); text-align: center; }
.partners p { margin-bottom: 2rem; color: var(--text-muted); font-size: 1.1rem; }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; max-width: 1000px; margin: 0 auto; }
.partners-grid img { height: 40px; opacity: 0.5; filter: grayscale(100%); transition: all 0.3s; }
.partners-grid img:hover { opacity: 1; filter: grayscale(0%); cursor: pointer; }

/* --- 聯絡表單 --- */
.contact { background-color: #e9ecef; padding: 5rem 2rem; }
.contact-container { max-width: 700px; margin: 0 auto; background: white; padding: 3rem; border-radius: 10px; box-shadow: 0 8px 15px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 1.8rem; }
.form-group label { display: block; margin-bottom: 0.6rem; font-weight: bold; color: var(--text-main); font-size: 1.1rem;}
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 1rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1.05rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.submit-btn { width: 100%; background-color: var(--primary); color: white; border: none; padding: 1.2rem; font-size: 1.2rem; font-weight: bold; border-radius: 6px; cursor: pointer; letter-spacing: 2px; transition: background-color 0.3s;}
.submit-btn:hover { background-color: #004494; }

/* --- 頁尾 --- */
footer { background-color: var(--primary-dark); color: white; text-align: center; padding: 2.5rem; font-size: 1rem; }

/* --- 彈出視窗 Modal --- */
.modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-content { background-color: #fff; padding: 3.5rem; border-radius: 12px; width: 90%; max-width: 1100px; position: relative; display: flex; gap: 3.5rem; box-shadow: 0 15px 35px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.close-btn { position: absolute; top: 1.5rem; right: 2rem; font-size: 2.5rem; cursor: pointer; color: #aaa; transition: color 0.3s; line-height: 1;}
.close-btn:hover { color: #222; }
.modal-image { flex: 1; display: flex; align-items: center; justify-content: center; }
.modal-image img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 10px; box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.modal-text { flex: 1.2; display: flex; flex-direction: column; justify-content: center; }
.modal-text h3 { color: var(--primary-dark); font-size: 2rem; margin-bottom: 1.2rem; border-bottom: 3px solid var(--primary); padding-bottom: 0.8rem; display: inline-block; }
.modal-text p { color: #444; margin-bottom: 1.5rem; line-height: 1.9; font-size: 1.15rem; }
.modal-text #modalFeatures { font-size: 1.15rem; background-color: var(--bg-light); padding: 1.5rem; border-radius: 8px; border-left: 4px solid var(--accent); }

/* --- 右下角懸浮按鈕 FAB (統一管理) --- */
.fab-container { position: fixed; bottom: 30px; right: 30px; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 1000; }
.fab-btn { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1rem; font-weight: bold; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.fab-btn:hover { transform: scale(1.1); box-shadow: 0 6px 15px rgba(0,0,0,0.3); color: white; }
.fab-line { background-color: #06C755; } 
.fab-phone { background-color: var(--accent); } 
.back-to-top { position: static; margin: 0; width: 45px; height: 45px; background-color: var(--primary-dark); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.2); transition: all 0.3s ease; opacity: 0; visibility: hidden; }
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background-color: var(--primary); transform: scale(1.1); } 

/* ==========================================
   響應式設計整理 (RWD) - 控制手機版與平板版
   ========================================== */
@media (max-width: 1200px) { 
    .service-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } 
}
@media (max-width: 1100px) {
    .cases-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .tour-container { grid-template-columns: 1fr; gap: 2rem;padding: 0 1rem; } 
}

.map-area {
        height: 400px; /* 🌟 讓地圖在手機上稍微矮一點，這樣使用者才不會滑半天滑不出去 */
    }
    
@media (max-width: 900px) {
    .modal-content { flex-direction: column; padding: 2.5rem 2rem; max-height: 90vh; overflow-y: auto; gap: 2rem;}
    .modal-image img { max-height: 250px; }
}
@media (max-width: 768px) { 
    nav { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
    .nav-links a { font-size: 1rem; white-space: nowrap; }
    .logo-img { height: 35px; }
    .hero { padding: 4rem 1.5rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1.1rem; }
    .service-grid { grid-template-columns: 1fr; }
    .fab-container { bottom: 20px; right: 20px; gap: 10px; }
    .fab-btn { width: 50px; height: 50px; font-size: 0.9rem; }
    .back-to-top { width: 40px; height: 40px; font-size: 1rem; }
}

/* ==========================================
   客戶真實評價 (Testimonials) - 請確保貼在檔案最底部
   ========================================== */
.testimonials {
    background-color: #f8fafc; 
    padding: 6rem 2rem;
}
.testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.testimonial-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ==========================================
   客戶評價 (Testimonials) - 手機與平板防護網
   ========================================== */
@media (max-width: 992px) {
    /* 平板螢幕：變成一排兩張 */
    .testimonials-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    /* 手機螢幕：變成一排一張 (上下排列) */
    .testimonials-grid { 
        grid-template-columns: 1fr; /* 🌟 關鍵：強制變成單欄 */
        gap: 1.5rem; /* 卡片上下的間距 */
        padding: 0 1rem; /* 左右保留一點呼吸空間，不要貼死邊緣 */
    }
    
    /* 確保文字不會因為擠壓而排版錯亂 */
    .review-text {
        min-height: auto; 
        text-align: left; /* 讓文字靠左對齊，閱讀更順暢 */
    }
}

.quote-icon {
    font-size: 5rem;
    color: var(--accent); 
    opacity: 0.15;
    font-family: Georgia, serif;
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}
.review-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    min-height: 130px; 
    text-align: justify;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 1.5rem;
}
.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
}
.client-details h4 {
    color: var(--primary-dark);
    margin-bottom: 0.2rem;
    font-size: 1.05rem;
}
.client-details span {
    font-size: 0.85rem;
    color: #64748b;
}

/* 針對手機與平板的縮放調整 */
/* 針對平板、小筆電 (螢幕小於 1200px) */
@media (max-width: 1200px) {
    .faq-container {
       grid-template-columns: 1fr; /* 退回單欄 */
       gap: 1rem;
    }
}

/* 針對手機 (螢幕小於 768px) */
@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr; /* 退回單欄 */
        gap: 1rem;
    }
}

/* --- 導覽資訊面板圖片 (完整無裁切版) --- */
.tour-detail-image {
    width: 100%; /* 寬度乖乖對齊面板的左右邊緣 */
    height: auto; /* 🌟 關鍵魔法：高度讓圖片自己決定！不管原圖多高多扁，都會依照原始比例完整縮放，絕不裁切 */
    border-radius: 8px; /* 保留一點圓角增加質感 */
    margin-bottom: 1.5rem;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    animation: fadeInImage 0.5s ease-out; 
}

@keyframes fadeInImage {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}