@charset "utf-8";
/* CSS Document */
    
    <style>
        body { background-color: var(--bg-main); padding-top: 80px; }
        
        /* 👑 關鍵字高亮：特殊顏色與字體 */
        .keyword-highlight {
            color: #B23A28; /* 經典硃砂紅 */
            font-weight: 800;
            font-family: 'Noto Serif TC', serif; /* 明體強調 */
            background: rgba(178, 58, 40, 0.08); /* 淡紅底色 */
            padding: 0 4px;
            border-radius: 4px;
            font-size: 1.05em;
        }

        .search-header { text-align: center; padding: 60px 20px; background: #fff; border-bottom: 1px solid var(--border-light); }
        .search-header h1 { font-size: 2.2rem; color: var(--theme-primary); margin-bottom: 15px; }
        .search-header p { color: var(--text-muted); font-size: 1.1rem; }
        .search-form-large { max-width: 600px; margin: 20px auto 0; display: flex; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-radius: 40px; overflow: hidden; border: 1px solid var(--border-light); }
        .search-form-large input { flex: 1; border: none; padding: 15px 25px; font-size: 1.1rem; outline: none; }
        .search-form-large button { background: var(--theme-primary); color: #fff; border: none; padding: 0 30px; font-size: 1rem; cursor: pointer; font-weight: bold; transition: 0.3s; }
        .search-form-large button:hover { background: var(--theme-primary-hover); }

        .search-container { max-width: 1200px; margin: 50px auto; padding: 0 40px; }
        .section-title { font-size: 1.8rem; color: var(--text-dark); border-left: 5px solid var(--accent-wood); padding-left: 15px; margin-bottom: 30px; }
        
        /* =======================================
           排版 A：行程列印 (大橫幅卡片)
        ======================================= */
        .tour-result-card {
            display: flex; background: #fff; border-radius: 12px; overflow: hidden; 
            box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid var(--border-light);
            margin-bottom: 30px; transition: 0.3s; text-decoration: none; color: inherit;
        }
        .tour-result-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
        .tr-img { flex: 0 0 35%; position: relative; }
        .tr-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
        .tr-body { flex: 1; padding: 30px; display: flex; flex-direction: column; }
        .tr-title { font-size: 1.5rem; color: var(--theme-primary); margin-bottom: 10px; font-family: 'Noto Serif TC', serif; }
        .tr-desc { font-size: 0.95rem; color: var(--text-dark); line-height: 1.8; margin-bottom: 20px; background: #fbfbfb; padding: 15px; border-left: 3px solid var(--border-light); border-radius: 0 6px 6px 0; }
        .tr-desc strong { color: var(--accent-wood); display: block; margin-bottom: 5px; font-size: 0.9rem; }
        
        /* 當日照片縮圖區 */
        .tr-thumbs { display: flex; gap: 10px; margin-bottom: 20px; }
        .tr-thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }

        .tr-footer { margin-top: auto; border-top: 1px dashed var(--border-light); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
        .tr-prices { display: flex; gap: 20px; }
        .tr-price-item { display: flex; flex-direction: column; }
        .tr-price-item span.label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2px; }
        .tr-price-item span.val { font-size: 1.2rem; font-weight: bold; color: var(--text-dark); font-family: 'Noto Serif TC', serif; }
        .tr-price-item.mini span.val { color: var(--accent-wood); }

        /* =======================================
           排版 B：敘日誌 (網格卡片)
        ======================================= */
        .article-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
        .art-result-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid var(--border-light); transition: 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
        .art-result-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }
        .ar-img { height: 200px; width: 100%; }
        .ar-img img { width: 100%; height: 100%; object-fit: cover; }
        .ar-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
        .ar-title { font-size: 1.2rem; color: var(--text-dark); margin-bottom: 15px; line-height: 1.4; font-family: 'Noto Serif TC', serif; }
        .ar-snippet { font-size: 0.95rem; color: #555; line-height: 1.7; flex: 1; }
        .ar-readmore { margin-top: 20px; color: var(--theme-primary); font-weight: bold; font-size: 0.9rem; }

       @media(max-width: 768px) {
    /* 👑 1. 修正大外框寬幅：將左右留白從 40px 強制縮小到 20px，與首頁完全同寬！ */
    .search-container { 
        padding: 0 20px !important; 
        margin: 30px auto 60px !important; 
        width: 100%;
    }
    
    /* 2. 相關精選行程卡片 (改為直式排列) */
    .tour-result-card { flex-direction: column; }
    .tr-img { height: 220px; }
    
    /* 👑 3. 卡片內部內容區塊向外撐開，讓文字不會擠在中間 */
    .tr-body { padding: 20px 15px !important; } 
    
    /* 附加小圖調整 (一行剛好塞下 3 張) */
    .tr-thumbs { gap: 8px; }
    .tr-thumbs img { width: 31%; height: 80px; } 

    .tr-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
    
    /* 👑 4. 敘日誌文章區塊：強制改為單欄滿版，並同步內部留白 */
    .article-results-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px; 
    }
    .ar-body { padding: 20px 15px !important; }
}
/* =======================================
   搜尋結果標題區 (Mini Header)
======================================= */
.search-result-header {
    text-align: center;
    /* 👑 這裡的 130px 是關鍵，用來完美避開 fixed 導覽列的遮擋 */
    padding: 90px 20px 30px; 
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.search-result-header h1 {
    font-size: 2.2rem;
    color: var(--theme-primary);
    margin-bottom: 10px;
    font-family: 'Noto Serif TC', serif;
    letter-spacing: 2px;
}

.search-result-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0;
}

.search-result-header strong {
    color: #B23A28; /* 經典硃砂紅，呼應全站的高亮色 */
    font-weight: bold;
    font-size: 1.15rem;
}

/* 修正 search-container 的上方間距，讓它接在標題區下方更順暢 */
.search-container { 
    max-width: 1200px; 
    margin: 40px auto 80px; /* 調整 margin 比例 */
    padding: 0 40px; 
}
    </style>
