﻿@charset "UTF-8";

/* ============================================================
   footer-count.css - 頁尾工具列、行動選單與返回頂端按鈕
   版本：暖色調（與夏悅統包工程品牌一致）
   說明：適用於桌面及行動裝置，內含 GA4 追蹤支援（未更動任何追蹤屬性）
   ============================================================ */

/* ----- 全域重置（僅影響頁尾相關區塊）----- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) { .footer-spacer { margin-bottom: 66px;}}

/* ============================================================
   1. 桌面版頁尾工具列 (.botry-v2-footer-toolbar)
      配色：暖色漸層（奶油→金），文字深棕，hover 加深陶土色
   ============================================================ */
.botry-v2-footer-toolbar {
    background: #e0e0e0;
    color: #333;
    padding: 6px 0;
    border-top: 2px solid rgba(216, 184, 127, 0.5);
    width: 100%;
}

.botry-v2-footer-toolbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.botry-v2-footer-toolbar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 30px;
}

.botry-v2-footer-info-left,
.botry-v2-footer-info-right {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #555;
    font-size: 0.9rem;
    flex-wrap: wrap;
}
.botry-v2-footer-info-left { justify-content: flex-start; }
.botry-v2-footer-info-right { justify-content: flex-end; }

.botry-v2-footer-info-left a,
.botry-v2-footer-info-right a {
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}
.botry-v2-footer-info-left a:hover,
.botry-v2-footer-info-right a:hover {
    color: #8a6a3a; /* 深棕金 hover */
}

.botry-v2-footer-separator {
    color: #999;
    margin: 0 5px;
    font-size: 0.8rem;
}

/* ============================================================
   2. 行動版固定工具列 (.botry-v2-mobile-toolbar)
      固定在底部，暖色背景，圖標含半透明襯底
   ============================================================ */
.botry-v2-mobile-toolbar {
    display: none;  /* 預設隱藏，平板以下顯示 */
    background: #e0e0e0;
    padding: 6px 0;
    border-top: 2px solid rgba(216, 184, 127, 0.5);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.5),
        0 -2px 6px rgba(0, 0, 0, 0.08);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    text-align: center;
    height: 66px;
}

.botry-v2-mobile-toolbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    height: 100%;
}

.botry-v2-mobile-toolbar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    width: 100%;
    height: 100%;
    align-items: center;
}

.botry-v2-mobile-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding: 5px 3px;
    transition: all 0.2s ease;
}
.botry-v2-mobile-tool-item:hover {
    transform: scale(1.05);
    color: #8a6a3a; /* 深棕金 hover */
}

/* 圖標 – 無底色 */
.botry-v2-mobile-tool-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
}
.botry-v2-mobile-tool-icon img {
    width: 100%;
    height: 100%;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    /* 將圖標顏色調整為深色，與暖色背景協調 */
    filter: brightness(0) saturate(100%) invert(10%) sepia(10%) saturate(500%) hue-rotate(330deg) brightness(95%) contrast(95%);
}
.botry-v2-mobile-tool-item:hover .botry-v2-mobile-tool-icon img {
    filter: brightness(0) saturate(100%) invert(10%) sepia(10%) saturate(600%) hue-rotate(330deg) brightness(85%) contrast(100%);
}

.botry-v2-mobile-tool-label {
    font-size: 0.66rem;
    text-align: center;
}

/* ============================================================
   3. 返回頂端按鈕 (.back-to-top)
      圓形按鈕＋箭頭＋TOP文字，金棕色系
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 15px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    transform: translateY(-3px);
}

/* 圓形按鈕本體（沿用 .twitter-arrow 元素作為圓形容器） */
.twitter-arrow {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #D8B87F;
    position: relative;
    box-shadow: 0 8px 20px rgba(216, 184, 127, 0.45);
    transition: background 0.3s ease;
}
.back-to-top:hover .twitter-arrow {
    background: #c9a469;
}

/* 純 CSS 箭頭（白色，置於圓形正中央） */
.twitter-arrow::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 38%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fff;
}
.twitter-arrow::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 14px;
    background: #fff;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* TOP 文字標籤（用偽元素加在 .back-to-top 本身，顯示於圓形下方） */
.back-to-top::after {
    content: 'TOP';
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #2E2621;
    font-weight: 700;
}

/* ============================================================
   4. 響應式媒體查詢（保持原有邏輯）
   ============================================================ */

/* ----- 平板與手機：顯示行動工具列，隱藏桌面頁尾 ----- */
@media (max-width: 992px) {
    .botry-v2-mobile-toolbar {
        display: block !important;
    }
    .botry-v2-footer-toolbar {
        display: none !important;
    }
}

/* ----- 小手機：縮小返回頂端按鈕 ----- */
@media (max-width: 600px) {
    .back-to-top {
        bottom: 100px;
        right: 10px;
    }
    .twitter-arrow {
        width: 46px;
        height: 46px;
    }
    .twitter-arrow::before {
        border-left-width: 7px;
        border-right-width: 7px;
        border-bottom-width: 10px;
    }
    .twitter-arrow::after {
        width: 5px;
        height: 12px;
        bottom: 12px;
    }
}






/* ============================================================
   5. 列印樣式
   ============================================================ */
@media print {
    .botry-v2-mobile-toolbar,
    .botry-v2-footer-toolbar,
    .back-to-top {
        display: none !important;
    }
}

/* ============================================================
   6. 顏色參考（保留供日後快速切換）
   ============================================================
   
   暖色系（目前使用）：
   - 背景漸層: #F3E4C4 → #F0DAB6 (桌面) / #E8D5B5 → #D8B87F (行動)
   - 文字: #2E2621 (深棕)
   - hover: #D8B87F (陶土) / #8B6E4A (深金)
   - 箭頭: #2E2621
   
   若需切換為藍色系，可參考以下範例：
   - 背景: linear-gradient(135deg, #1a5f8a, #19558E)
   - 文字: #fff
   - hover: #ffd700
   ============================================================ */

/* ============================================================
   6. 顏色參考（保留供日後快速切換）
   ============================================================
   
   深藍色 #19558E（目前使用）：
   background: linear-gradient(135deg, #1a5f8a 0%, #19558E 100%);
   hover: background: linear-gradient(135deg, #1a7ab3 0%, #134a7a 100%);
   
   藍色：
   background: linear-gradient(145deg, rgba(33, 150, 243, 0.9), rgba(25, 118, 210, 0.95));
   hover: background: linear-gradient(145deg, rgba(33, 150, 243, 0.95), rgba(21, 101, 192, 1));
   
   紫色：
   background: linear-gradient(145deg, rgba(156, 39, 176, 0.85), rgba(123, 31, 162, 0.95));
   hover: background: linear-gradient(145deg, rgba(156, 39, 176, 0.95), rgba(106, 27, 154, 1));
   
   森林綠：
   background: linear-gradient(145deg, rgba(46, 125, 50, 0.85), rgba(27, 94, 32, 0.95));
   hover: background: linear-gradient(145deg, rgba(46, 125, 50, 0.95), rgba(21, 72, 25, 1));
   
   紅色：
   background: linear-gradient(145deg, rgba(211, 47, 47, 0.85), rgba(183, 28, 28, 0.95));
   hover: background: linear-gradient(145deg, rgba(211, 47, 47, 0.95), rgba(150, 20, 20, 1));
   
   橙色：
   background: linear-gradient(145deg, rgba(245, 124, 0, 0.85), rgba(230, 81, 0, 0.95));
   hover: background: linear-gradient(145deg, rgba(245, 124, 0, 0.95), rgba(200, 70, 0, 1));
   
   ============================================================ */