/* style.css - 完整樣式表 */

body {
    font-family: 'Helvetica Neue', Arial, 'Heiti TC', sans-serif;
    background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('background.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 頁首 Header */
.site-header {
    background-color: #2c5e50;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container { display: flex; align-items: center; }
.logo-img { height: 60px; margin-right: 15px; border-radius: 50%; border: 2px solid white; }
.brand-name h1 { margin: 0; font-size: 1.5rem; letter-spacing: 1px; }
.brand-name p { margin: 5px 0 0 0; font-size: 0.8rem; opacity: 0.9; }

.social-links { display: flex; gap: 10px; margin-top: 10px; }
.social-btn {
    text-decoration: none; color: white; border: 1px solid white;
    padding: 6px 12px; border-radius: 20px; font-size: 0.9rem;
    transition: all 0.3s; display: flex; align-items: center; gap: 5px;
}
.fb-btn:hover { background-color: #1877f2; border-color: #1877f2; }
.ig-btn:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }

/* 主內容區 */
.main-wrapper { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; gap: 30px; max-width: 1200px; margin: 0 auto; width: 100%; }
.top-section { display: flex; flex-direction: column; gap: 30px; width: 100%; align-items: center; }
@media (min-width: 900px) { .top-section { flex-direction: row; justify-content: center; align-items: flex-start; gap: 40px; } }

/* 計算機與面板 */
.container { background-color: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); width: 100%; max-width: 400px; }
.info-panel { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 400px; }
.booking-section { width: 100%; max-width: 840px; background-color: white; padding: 30px; border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); text-align: center; margin-top: 20px; }
.booking-section h3 { margin-bottom: 10px; color: #2c5e50; }
.booking-section p { color: #666; margin-bottom: 20px; }
.form-wrapper { width: 100%; overflow: hidden; }

/* 表單元件 */
h2, h3 { color: #2c5e50; text-align: center; }
h2 { margin-top: 0; border-bottom: 2px solid #e0e0e0; padding-bottom: 15px; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: 600; color: #444; }
select, input[type="number"], input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; box-sizing: border-box; background-color: #fafafa; }
.two-col { display: flex; gap: 15px; align-items: center; }
.two-col > div { flex: 1; }
.checkbox-group label { display: flex; align-items: center; font-weight: normal; margin-bottom: 10px; cursor: pointer; }
.checkbox-group input { margin-right: 10px; width: 18px; height: 18px; }
#dateRange { background-color: white; cursor: pointer; background-image: url('data:image/svg+xml;utf8,<svg fill="%232c5e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>'); background-repeat: no-repeat; background-position: right 10px center; }
.holiday-check { display: flex; align-items: center; justify-content: center; background-color: #fff3cd; border: 1px solid #ffeeba; padding: 10px; border-radius: 8px; height: 100%; box-sizing: border-box; }
.checkbox-container { display: flex; flex-direction: column; font-size: 0.9rem; cursor: pointer; }
.checkbox-container small { margin-top: 2px; color: #856404; }
.btn-group { display: flex; gap: 10px; }
.calc-btn { flex: 2; background-color: #2c5e50; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.reset-btn { flex: 1; background-color: #e0e0e0; color: #555; border: none; padding: 12px; border-radius: 8px; cursor: pointer; }

/* 結果區 */
.result-box { margin-top: 25px; padding: 20px; background-color: #f1f8f6; border-radius: 10px; border: 1px solid #dbece8; }
.hidden { display: none !important; } /* 強制隱藏 */
.result-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: #555; }
.discount { color: #d32f2f; font-weight: bold; }
.total-row { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: bold; color: #2c5e50; margin-top: 10px; }

/* IG & Map */
.gallery-section, .map-section { background-color: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 15px; }
.gallery-item { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.4); display: flex; justify-content: center; align-items: center; color: white; font-size: 2rem; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item:hover .overlay { opacity: 1; }
.video-label { position: absolute; bottom: 0; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.6); color: white; font-size: 0.9rem; padding: 5px 0; font-weight: bold; }
.map-container { border-radius: 12px; overflow: hidden; border: 2px solid #eee; margin-bottom: 15px; }
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background-color: #4285F4; color: white; text-decoration: none; font-size: 1.1rem; font-weight: bold; padding: 12px 30px; border-radius: 50px; box-shadow: 0 4px 6px rgba(66, 133, 244, 0.3); transition: transform 0.2s; }
.site-footer { text-align: center; padding: 20px; background-color: #e9ecef; color: #666; font-size: 0.9rem; margin-top: auto; }

/* 規則區 (手機滑動) */
.rules-section { width: 100%; max-width: 1200px; margin: 30px auto; overflow: hidden; }
.rules-container { display: flex; flex-direction: row; gap: 15px; overflow-x: auto; padding-bottom: 15px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.rules-container::-webkit-scrollbar { height: 6px; }
.rules-container::-webkit-scrollbar-thumb { background-color: #ccc; border-radius: 10px; }
.rule-card { background-color: rgba(255, 255, 255, 0.95); padding: 20px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid #2c5e50; min-width: 90vw; flex-shrink: 0; scroll-snap-align: center; }
@media (min-width: 1024px) { .rule-card { min-width: 0; flex: 1; } .basic-rules { flex: 3; } .policy-rules { flex: 2; } .rules-container { overflow-x: visible; padding-bottom: 0; } }
.policy-rules { border-top-color: #d32f2f; }
.rule-card h3 { margin-top: 0; margin-bottom: 15px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; font-size: 1.2rem; white-space: nowrap; }
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-box { background-color: #f9fdfb; padding: 10px; border-radius: 8px; border: 1px solid #eef6f3; }
.mini-box h4 { margin: 0 0 8px 0; color: #2c5e50; font-size: 1rem; display: flex; align-items: center; gap: 5px; }
.mini-box ul { margin: 0; padding-left: 0; list-style: none; color: #555; font-size: 0.85rem; line-height: 1.5; }
.mini-box li { margin-bottom: 4px; padding-left: 8px; border-left: 2px solid #ddd; }
.lbl { font-weight: bold; color: #444; display: block; }
.highlight { color: #e67e22; font-weight: bold; }
.alert-text { color: #d32f2f; font-weight: bold; }
.refund-timeline { list-style: none; padding: 0; margin: 0 0 15px 0; }
.refund-timeline li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.9rem; }
.refund-timeline .days { font-weight: bold; color: #2c5e50; background-color: #e8f5e9; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }
.refund-timeline .desc { text-align: right; color: #555; flex: 1; margin-left: 10px; }
.refund-timeline .danger { color: #d32f2f; }
.bank-area { background-color: #fdf6e3; padding: 15px; border-radius: 8px; border: 1px dashed #d4a768; text-align: center; }
.bank-area h4 { margin: 0 0 5px 0; color: #8a6d3b; font-size: 0.95rem; }
.bank-details p { margin: 2px 0; font-weight: bold; color: #333; }
.account-number { font-family: monospace; font-size: 1.3rem; color: #2c5e50; letter-spacing: 1px; margin: 5px 0 !important; user-select: all; }
.bank-details small { color: #666; font-weight: normal; font-size: 0.8rem; }
/* LINE 按鈕專用樣式 */
/* === LINE 按鈕樣式 (觸碰變色版) === */
/* === LINE 按鈕樣式 (透明背景版) === */

/* 1. 平常狀態：背景透明，只有邊框和灰色文字 */
.social-btn.line-btn {
    background-color: transparent; /* ✅ 改成透明 */
    color: #ffffff;                   /* 文字深灰色 */
    border: 1px solid #ddd;        /* 淡淡的邊框 */
    transition: all 0.3s ease;     /* 動畫效果 */
}

/* 2. 滑鼠移過去 (Hover)：變成 LINE 綠色背景 + 白字 */
.social-btn.line-btn:hover {
    background-color: #06c755;     /* LINE 官方綠色 */
    color: white;                  /* 文字變白色 */
    border-color: #06c755;         /* 邊框也變綠色 */
    transform: translateY(-2px);   /* 稍微浮起 */
}