
/* style.css - 完整修復版 */

/* --- 1. 基本設定與通用背景 --- */
body {
    font-family: '微軟正黑體', 'Microsoft JhengHei', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    
    /* 背景屬性 */
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-color: #f4f7f6;
}

/* 頁面背景圖設定 */
body:not(.lounge-background) { background-image: url('beach.png'); }
body.contact { background-image: url('beach.png'); }
body.booking { background-image: url('beach.png'); }
body.faq { background-image: url('beach.png'); }
body.lounge-background { background-image: url('main.jpg'); }

/* --- 2. Header & Navigation (全站通用 - 設計感升級版) --- */


/* --- 下拉選單容器 --- */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
    padding-bottom: 10px; /* 增加底部緩衝區，防止滑鼠快速移動時選單消失 */
    margin-bottom: -10px; /* 抵銷 padding 造成的佈局影響 */
}

/* --- 一般導航按鈕樣式 (Ghost Button 風格) --- */


.nav-btn:hover, .nav-item-dropdown:hover .nav-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 當前頁面狀態 */
.nav-btn.active {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: #fff;
    font-weight: bold;
}

/* --- 下拉選單內容 (Dropdown Content) --- */
.dropdown-content {
    display: block; /* 改為 block 但透過 opacity/visibility 控制，以支援動畫 */
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%; /* 在按鈕正下方 */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 初始位置稍微偏下 */
    background-color: rgba(30, 30, 30, 0.98); /* 深色背景 */
    min-width: 170px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border-radius: 12px;
    z-index: 2000;
    padding: 8px 0;
    border: 1px solid rgba(255,255,255,0.15);
    margin-top: 5px; /* 視覺上的間距 */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); /* 平滑過渡 */
}

/* ★★★ 關鍵優化：隱形橋樑 (Invisible Bridge) ★★★ 
   這個偽元素填補了按鈕與選單之間的空隙，
   確保滑鼠移動時不會因為經過「空隙」而導致 hover 狀態失效。
*/
.dropdown-content::after {
    content: "";
    position: absolute;
    bottom: 100%; /* 位於選單正上方 */
    left: 0;
    width: 100%;
    height: 30px; /* 橋樑高度，足夠覆蓋 margin-top 的間隙 */
    background-color: transparent; /* 透明 */
    /* background-color: rgba(255,0,0,0.3); 除錯用紅色 */
}

/* 小三角形箭頭 */
.dropdown-content::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent rgba(30, 30, 30, 0.98) transparent;
    pointer-events: none; /* 讓滑鼠穿透箭頭 */
}

/* 觸發顯示 */
.nav-item-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 浮動歸位 */
}

header {
    background-color: rgba(40, 40, 40, 0.95);
    color: white;
    padding: 2px 0;                 /* 原本 12px → 稍微變薄 */
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header h1 {
    margin: 3px 0 10px 0;           /* 上下間距縮小 */
    font-size: 1.1em;              /* 原本 1.4em → 略縮 */
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 1.5px;
    color: #f1c40f;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;                       /* 原本 12px → 稍微縮小 */
    padding: 0 8px;                 /* 原本 0 10px → 縮一點 */
}

/* 一般導航按鈕 */
.nav-btn {
    color: #ecf0f1;
    text-decoration: none;
    padding: 5px 13px;              /* 原本 8px 18px → 變瘦小一點 */
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.85em;               /* 原本 0.95em → 略小 */
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 班表凸顯按鈕 */
.nav-highlight {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white !important;
    font-weight: bold;
    padding: 7px 17px;              /* 原本 10px 24px → 小一階 */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.5);
    text-decoration: none;
    font-size: 0.95em;                 /* 原本 1.05em → 略小 */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Logo 大小 */
.nav-logo {
    height: 48px;                   /* 原本 60px → 小一點 */
    width: auto;
    vertical-align: middle;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
    transition: transform 0.3s;
}

/* 下拉選單內的連結 */
.dropdown-content a {
    color: #ddd;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.95em;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    white-space: nowrap; /* 防止換行 */
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e67e22;
    padding-left: 25px; /* 輕微位移效果 */
}

/* Logo 按鈕特殊樣式 */
nav a.logo-button {
    padding: 0 15px; 
    background-color: transparent; 
    border-radius: 8px;
    margin: 0 5px;
    border-bottom: none !important;
}

nav a.logo-button:hover {
    transform: scale(1.08);
}


/* ★★★ 外框發金光（靜態、不跳動） ★★★ */
.btn-super {
    font-size: 1.25em;
    padding: 18px 26px;
    border-radius: 14px;

    /* 主體維持深色 */
    background: linear-gradient(135deg, #111, #2b240f);
    color: #f5d76e;

    /* 金色發光外框 */
    border: 2px solid #f5d76e;
    box-shadow:
        0 0 0 2px rgba(245, 215, 110, 0.35),
        0 0 12px rgba(245, 215, 110, 0.6),
        0 0 24px rgba(245, 215, 110, 0.45),
        0 0 36px rgba(245, 215, 110, 0.25);

    /* 穩定，不位移 */
    transform: none;
    filter:
        drop-shadow(0 0 6px rgba(245,215,110,0.9))
        drop-shadow(0 0 14px rgba(245,215,110,0.7))
        drop-shadow(0 0 28px rgba(245,215,110,0.5));
}

.btn-super.btn-tg {
    background: linear-gradient(135deg, #111, #2b240f) !important;
}

.btn-super:hover {
    transform: none;
    box-shadow:
        0 0 0 2px rgba(245, 215, 110, 0.35),
        0 0 14px rgba(245, 215, 110, 0.7),
        0 0 30px rgba(245, 215, 110, 0.5),
        0 0 44px rgba(245, 215, 110, 0.3);
}




.nav-highlight:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.7);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* --- 3. 主要容器 Main --- */
main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
    min-height: 60vh;
}

/* --- 4. 首頁專用樣式 (Hero Section) --- */
.hero-page {
    display: flex;
    justify-content: center;
}

.main-hero-card {
    background-color: rgba(255, 255, 255, 0.9); /* 提高不透明度以增加閱讀性 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 1100px;
    width: 100%;
}

.hero-title {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 3px solid #d35400;
    display: inline-block;
    padding-bottom: 10px;
}

.hero-text {
    font-size: 1.1em;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* --- 5. 內頁樣式 (修復部分) --- */
.content-page {
    background-color: rgba(255, 255, 255, 0.93); /* 恢復內頁白底背景 */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.5);
}

.content-page h2 {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.content-page h3 {
    color: #d35400; /* 標題跳色 */
    margin-top: 30px;
    font-size: 1.4em;
    border-left: 4px solid #d35400;
    padding-left: 10px;
}

.content-page section {
    margin-bottom: 30px;
}

.content-page p, .content-page li {
    font-size: 1.05em;
    color: #444;
}

/* 重點方塊 (About, Booking, Guide 常用) */
.highlight-box {
    border: 2px solid #e0e0e0;
    background-color: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    transition: transform 0.2s;
}

.highlight-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #d35400;
}

/* FAQ 樣式 */
.faq-list {
    display: grid;
    gap: 15px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-item h3 {
    color: #2c3e50;
    border-left: none;
    padding-left: 0;
    margin-top: 0;
}

/* --- 6. 表格樣式 (Schedule, Price List) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden; /* 讓圓角生效 */
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #34495e;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #f1f1f1;
}

/* --- 7. 按鈕與連結組件 --- */

/* 快速選單膠囊 (首頁用) */
.quick-nav-label {
    font-weight: bold;
    color: #666;
    margin: 25px 0 10px 0;
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.quick-link-pill {
    background-color: #f0f0f0;
    color: #555;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
}

.quick-link-pill:hover {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.3);
}

.quick-link-pill.hot {
    background-color: #fff0f0;
    color: #c0392b;
    border-color: #ffcccc;
}

.quick-link-pill.hot:hover { background-color: #c0392b; color: white; }

/* 品牌按鈕 (Line, Telegram) */
.contact-section-label {
    font-size: 1.2em;
    font-weight: bold;
    color: #d35400;
    margin: 10px 0 15px 0;
    display: block;
    text-align: center;
}

.cta-group, .hero-buttons-stacked {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px auto;
}

.brand-btn, .hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
}

.brand-btn:hover, .hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
/* 賺外快按鈕（新樣式） */
.btn-money {
    background: linear-gradient(135deg, #f39c12, #d35400);
}
.btn-money:hover {
    background: linear-gradient(135deg, #e67e22, #ca5310);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 126, 34, 0.4);
}

/* 按鈕顏色定義 */
.btn-line, .primary-btn { background-color: #06C755; } /* Line */
.btn-line:hover, .primary-btn:hover { background-color: #05b54d; }

.btn-tg { background-color: #0088cc; } /* Telegram */
.btn-tg:hover { background-color: #0077b5; }

.btn-channel, .secondary-btn { 
    background: linear-gradient(135deg, #8e44ad, #c0392b); 
}
.btn-channel:hover, .secondary-btn:hover { 
    background: linear-gradient(135deg, #9b59b6, #e74c3c); 
}

/* ★★★ 電話按鈕樣式 (穩重深色系) ★★★ */
.btn-phone {
    background-color: #34495e; /* 深藍灰 */
}
.btn-phone:hover {
    background-color: #2c3e50;
}

/* 普通次級按鈕 (用在內頁跳轉) */
.content-page .secondary-btn {
    background: #7f8c8d; /* 灰色系 */
}
.content-page .secondary-btn:hover {
    background: #95a5a6;
}

/* ★★★ 新增：子分頁「返回」導航按鈕樣式 ★★★ */
.back-nav-container {
    margin-bottom: 25px;
}

.back-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background-color: #f8f9fa;
    color: #555;
    text-decoration: none;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.back-nav-btn:hover {
    background-color: #e67e22;
    color: white;
    border-color: #e67e22;
    transform: translateX(-5px); /* 往左滑動效果 */
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.2);
}

.back-nav-btn span {
    margin-right: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.back-nav-btn:hover span {
    transform: translateX(-3px); /* 箭頭額外移動 */
}

/* --- 8. SEO 區塊樣式 --- */
.seo-content-block {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: left;
    color: #444;
    border-left: 5px solid #e67e22;
}

.seo-content-block h2 {
    color: #2c3e50;
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
}

.seo-info-list {
    background-color: #f9f9f9;
    padding: 15px 15px 15px 35px;
    border-radius: 8px;
}

/* --- 9. Footer --- */
footer {
    padding: 30px 20px;
    margin-top: 40px;
    background-color: rgba(30, 30, 30, 0.95);
    color: #ddd;
    text-align: center;
}

.footer-contact {
    max-width: 1200px; /* 修正：放寬最大寬度，讓內容能並排 */
    width: 95%; /* 確保在寬螢幕佔比足夠 */
    margin: 0 auto 20px auto;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item.signature p {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-item {
    font-size: 1em;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 8px 15px;
    border-radius: 20px;
}

.contact-item .label {
    font-weight: bold;
    margin-right: 8px;
    color: #e67e22;
}

.contact-item .value {
    color: white;
    text-decoration: none;
}

.contact-item .value:hover {
    text-decoration: underline;
    color: #e67e22;
}

.copyright {
    margin: 15px 0 0 0;
    font-size: 0.85em;
    color: #888;
}

.map-section {
    margin-top: 30px;
    text-align: left;
}

.map-section h2 {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.map-section p {
    font-size: 1em;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.7;
}

/* 地圖 RWD 容器 */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* 提示框 */
.note {
    font-style: italic;
    font-weight: bold;
    color: #555;
    padding: 15px;
    background-color: #fff3e0;
    border-left: 5px solid #ff9800;
    border-radius: 4px;
    display: block;
    margin-top: 10px;
}

.hidden { display: none; }

/* --- 10. RWD 響應式（手機版：上方縮小＋顯示 logo） --- */
/* --- 10. RWD 響應式（手機版優化：縮小 Header＋導航＋LOGO 排到「如合約紅牌」與「班表」中間） --- */
@media (max-width: 768px) {

    /* 整個 header 變薄 */
    header {
        padding: 4px 0;
    }

    /* 標題縮小、行高壓低 */
    header h1 {
        font-size: 0.9rem;
        margin: 0 0 4px 0;
        padding: 0 6px;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* 導航列：中置＋可換行 */
    nav {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 3px;
        padding: 0 4px;
    }

    /* 手機版不需要滑鼠 hover 下拉 → 關掉 */
    .dropdown-content {
        display: none !important;
    }

    /* 一般導航按鈕縮小一號 */
    .nav-btn {
        padding: 3px 8px;
        font-size: 0.8rem;
        margin: 1px;
        border-radius: 18px;
    }

    /* 如合約紅牌（整個 dropdown 容器）排在前面一點 */
    .nav-item-dropdown {
        order: 2;   /* 第二順位：在前方其他按鈕之後 */
    }

    /* 班表亮色按鈕縮小＋排在最後 */
    .nav-highlight {
        order: 4;               /* 第四順位 */
        padding: 5px 10px;
        font-size: 0.82rem;
    }

    /* ✅ LOGO 按鈕顯示，排在「如合約紅牌」和「班表」中間 */
    nav a.logo-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;               /* 第三順位：剛好在 紅牌 和 班表 中間 */
        width: auto;
        margin: 0 4px;
        border-bottom: none !important;
        padding-bottom: 0;
    }

    .nav-logo {
        height: 36px;           /* 手機版 LOGO 縮小 */
        width: auto;
        vertical-align: middle;
    }

    /* 主要內容縮一點 padding，騰出空間給上方 */
    main {
        margin-top: 10px;
        padding: 0 8px;
    }

    .content-page {
        padding: 16px 10px;
    }

    /* 首頁文字略縮，避免塞太滿 */
    .hero-title {
        font-size: 1.4em;
    }

    .hero-text,
    .content-page p,
    .content-page li {
        font-size: 0.95em;
    }

    /* 表格可左右滑動，避免被擠爆 */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Footer 聯絡資訊：橫向排、自動換行 */
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .contact-item {
        margin-bottom: 5px;
        font-size: 0.9em;
    }
}

.brand-btn.btn-super {
    border: 2px solid #f5d76e !important;
}





