/* --- 全域變數設定 --- */
:root {
    /* 配色優化：更深沉穩重的鐵道藍 */
    --railway-blue: #002845;
    /* 配色優化：更有質感的霧金色，取代原本刺眼的黃色 */
    --model-gold: #D4AF37;
    /* 背景暖灰色 */
    --bg-warm-grey: #F5F5F2;
}

body { 
    font-family: "Microsoft JhengHei", "PingFang TC", sans-serif; 
    background-color: var(--bg-warm-grey); /* 使用新的暖灰背景 */
    padding: 15px; 
    color: #333; 
    line-height: 1.6;
}

/* --- Header 區域重新設計 (解決 LOGO 位置問題) --- */
header { 
    background: linear-gradient(135deg, var(--railway-blue) 0%, #001a2e 100%); /* 加入微漸層增加質感 */
    color: white; 
    padding: 1.5rem; 
    /* 使用 Flexbox 讓內容垂直置中 */
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid var(--model-gold); /* 使用霧金色邊框 */
    border-radius: 12px 12px 0 0; 
}

/* 新增：品牌組合區塊 (LOGO + 標題並排) */
.brand-lockup {
    display: flex;
    align-items: center; /* 垂直置中對齊 */
    justify-content: center;
    gap: 15px; /* LOGO 與文字的間距 */
    margin-bottom: 10px;
}

.logo-img { 
    max-width: 70px; /* 調整為適合並排的大小 */
    height: auto; 
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); /* 增加一點立體感 */
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.subtitle {
    margin: 5px 0 0 0; 
    letter-spacing: 2px; 
    font-size: 0.95rem;
    opacity: 0.9;
    color: var(--model-gold); /* 副標題使用金色點綴 */
}

/* --- 主要容器與區塊 --- */
.container { 
    max-width: 700px; 
    margin: auto; 
    background: white; 
    padding: 25px; 
    border-radius: 0 0 12px 12px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.08); /* 更柔和現代的陰影 */
}

hr {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 30px 0;
}

/* --- 導航按鈕優化 --- */
.nav-button { 
    display: block; 
    background: var(--railway-blue); 
    color: #ffffff !important; 
    text-align: center; 
    padding: 16px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.2rem; 
    margin: 25px 0; 
    box-shadow: 0 4px 12px rgba(0, 40, 69, 0.4); /* 使用深藍色陰影 */
    transition: all 0.3s ease;
}

.nav-button:hover { 
    background: #003d6b; /* 滑鼠移入稍微變亮 */
    transform: translateY(-2px); /* 輕微上浮效果 */
    box-shadow: 0 6px 16px rgba(0, 40, 69, 0.5);
}

/* --- 步驟卡片優化 --- */
.step-card { 
    border-left: 4px solid var(--railway-blue); 
    background: #fff;
    margin-bottom: 35px; 
    padding: 5px 0 5px 20px; 
}

.step-card h3 {
    margin-top: 0;
    display: flex;
    align-items: center;
}

.step-img { 
    width: 100%; 
    height: auto; 
    border-radius: 8px; 
    border: 1px solid #eee;
    margin-top: 15px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.badge { 
    background: var(--railway-blue); 
    color: white; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: normal;
    margin-right: 10px;
    letter-spacing: 1px;
}

/* --- 連結與提示優化 --- */
.link-container {
    text-align: right; 
    margin-top: 8px;
}

.street-link {
    display: inline-block;
    color: var(--railway-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
    border-bottom: 1px dotted var(--railway-blue);
}

.street-link:hover {
    color: #005091;
    border-bottom-style: solid;
}

small { 
    display: block; 
    margin-top: 15px; 
    color: #555; 
    line-height: 1.5; 
    background: var(--bg-warm-grey); /* 使用暖灰背景 */
    padding: 12px; 
    border-radius: 6px; 
    border-left: 3px solid var(--model-gold); /* 使用金色邊框提示 */
    font-size: 0.9rem;
}

.footer-info { 
    text-align: center; 
    font-size: 0.85em; 
    color: #888; 
    margin-top: 50px; 
    border-top: 1px solid #eee; 
    padding-top: 25px; 
    line-height: 1.8;
}

/* --- 新增：區塊分類標題 --- */
.section-divider {
    display: flex;
    align-items: center;
    color: var(--railway-blue);
    font-weight: bold;
    font-size: 1.1rem;
    margin: 30px 0 15px 0;
}
.section-divider::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 20px;
    background: var(--model-gold); /* 使用霧金色作為裝飾 */
    margin-right: 10px;
    border-radius: 2px;
}

/* --- 新增：緊急聯絡人區塊 --- */
.emergency-contact {
    background-color: #fff8e1; /* 淡淡的鵝黃色背景，很顯眼 */
    border: 2px solid #ffecb3;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin: 30px 0;
}

.emergency-title {
    color: #f57f17; /* 深橘黃色文字 */
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.call-button {
    display: inline-block;
    background-color: #ff9800; /* 亮橘色按鈕 */
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: transform 0.2s;
}

.call-button:hover {
    background-color: #f57c00;
}

.call-button:active {
    transform: scale(0.95); /* 按下去會有縮小效果 */
}

/* --- 新增：LINE 按鈕與按鈕群組排版 --- */

/* 讓按鈕並排的容器 */
.action-buttons {
    display: flex;
    justify-content: center; /* 內容置中 */
    gap: 15px; /* 按鈕之間的距離 */
    flex-wrap: wrap; /* 如果螢幕太小(例如小手機)，會自動變成上下排列 */
}

/* LINE 專用綠色按鈕 */
.line-button {
    display: inline-block;
    background-color: #00B900; /* LINE 官方綠色 */
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: transform 0.2s;
    border: none; /* 確保沒有邊框 */
}

.line-button:hover {
    background-color: #009900; /* 滑鼠移上去變深綠 */
}

.line-button:active {
    transform: scale(0.95);
}

/* FB 專用藍色按鈕 */
.fb-button {
    display: inline-block;
    background-color: #1877F2; /* FB 官方藍色 */
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    transition: transform 0.2s;
    border: none;
}

.fb-button:hover {
    background-color: #166fe5; /* 滑鼠移上去變深一點 */
}

.fb-button:active {
    transform: scale(0.95);
}

/* --- 頂部快速導覽列 (按鈕強化版) --- */
.quick-nav {
    display: flex;
    justify-content: center;
    gap: 15px; /* 按鈕之間的間距加大 */
    margin: 20px 0 30px 0; /* 增加與下方的距離 */
    flex-wrap: wrap; 
}

.quick-link {
    display: flex;
    align-items: center; /* 讓圖示跟文字垂直置中 */
    justify-content: center;
    
    background-color: #f0f4f8; /* 淺灰藍底色，與主按鈕區隔 */
    color: #0e2a47; /* 深藍色文字 */
    border: 2px solid #0e2a47; /* 深藍色邊框 */
    
    padding: 10px 20px;
    border-radius: 12px; /* 稍微方圓一點，比較像現代APP按鈕 */
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    
    /* 關鍵：立體陰影效果 */
    box-shadow: 0 4px 0 #cbd5e0; 
    transition: all 0.1s; /* 快速反應 */
}

/* 滑鼠移過去 */
.quick-link:hover {
    background-color: #fff; /* 變白 */
    transform: translateY(-2px); /* 微微浮起 */
    box-shadow: 0 6px 0 #cbd5e0; /* 陰影變長 */
}

/* 按下去的瞬間 */
.quick-link:active {
    transform: translateY(4px); /* 往下壓 */
    box-shadow: 0 0 0 #cbd5e0; /* 陰影消失 (壓扁效果) */
}

/* --- 複製成功提示框 (Toast) --- */
#toast-notification {
    visibility: hidden; /* 預設隱藏 */
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

/* 顯示時的狀態 */
#toast-notification.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px; /* 稍微往上浮的效果 */
}

/* 讓地址變成手指游標，暗示可點擊 */
.clickable-address {
    cursor: pointer;
    transition: color 0.2s;
}
.clickable-address:hover {
    color: var(--railway-blue) !important; /* 滑鼠移過去變藍色 */
}
.clickable-address:active {
    transform: scale(0.98);
}