﻿@charset "UTF-8";

/* 
============================================================
foot-count.css - 頁尾與相關UI元件樣式
全部背景色已調整為接近 #19558E 深藍色系
============================================================
*/

/* ----- 全域重置 ----- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
    width: 100%;
    margin: 0;
    padding: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   1. 桌面版頁尾工具列 (.botry-v2-footer-toolbar)
   ============================================================ */
.botry-v2-footer-toolbar {
    background: linear-gradient(135deg, #1a5f8a 0%, #19558E 100%);
    color: white;
    padding: 6px 0;
    border-top: 2px solid rgba(25, 85, 142, 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: #bdc3c7;
    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: #bdc3c7;
    text-decoration: none;
    white-space: nowrap;
}

.botry-v2-footer-info-left a:hover,
.botry-v2-footer-info-right a:hover { 
    color: #ffd700; /* 金色 hover，與深藍色搭配好看 */
}

.botry-v2-footer-separator {
    color: #7f8c8d;
    margin: 0 5px;
    font-size: 0.8rem;
}

/* ============================================================
   2. 行動版固定工具列 (.botry-v2-mobile-toolbar)
   ============================================================ */
.botry-v2-mobile-toolbar {
    display: none; 
    background: linear-gradient(135deg, #1a5f8a 0%, #19558E 100%);
    padding: 6px 0;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 -2px 6px rgba(0, 0, 0, 0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    text-align: center;
    height: 60px;
}

.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: white;
    padding: 4px 2px;
    transition: all 0.2s ease;
}

.botry-v2-mobile-tool-item:hover {
    transform: scale(1.05);
    color: #ffd700;
}

.botry-v2-mobile-tool-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 2px;
}

.botry-v2-mobile-tool-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.botry-v2-mobile-tool-label {
    font-size: 0.6rem;
    text-align: center;
}

/* ============================================================
   3. 返回頂端按鈕 (.back-to-top)
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 120px;
    right: 15px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    /* 深藍色系背景 - 接近 #19558E */
    background: linear-gradient(145deg, #1a7ab3, #19558E);
}

.back-to-top.show { 
    opacity: 1; 
    visibility: visible; 
}

.back-to-top:hover { 
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(25, 85, 142, 0.5);
    background: linear-gradient(145deg, #208fcf, #134a7a);
}

/* ----- 返回頂端按鈕內的箭頭 (SVG 樣式) ----- */
.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top .arrow-line { stroke: white; }
.back-to-top .arrow-head { stroke: white; }

/* ----- 備用：純 CSS 箭頭 (若使用 .twitter-arrow) ----- */
.twitter-arrow {
    --arrow-size: 40px;
    width: var(--arrow-size);
    height: var(--arrow-size);
    position: relative;
    font-size: var(--arrow-size);
}

.twitter-arrow::before {
    content: ''; 
    position: absolute; 
    width: 0; 
    height: 0;
    top: 0.1em; 
    left: 50%; 
    transform: translateX(-50%);
    border-left: 0.4em solid transparent;
    border-right: 0.4em solid transparent;
    border-bottom: 0.5em solid white;
}

.twitter-arrow::after {
    content: ''; 
    position: absolute;
    width: 0.25em; 
    height: 0.6em;
    background: white; 
    bottom: 0.1em; 
    left: 50%;
    transform: translateX(-50%); 
    border-radius: 0.05em;
}

/* ============================================================
   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 { 
        width: 42px; 
        height: 42px; 
        bottom: 100px; /* 稍微上移，避免與工具列重疊 */
        right: 10px;
    }
    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
    .twitter-arrow { 
        --arrow-size: 30px; 
    }
}

/* ============================================================
   5. 列印樣式
   ============================================================ */
@media print {
    .botry-v2-mobile-toolbar,
    .botry-v2-footer-toolbar,
    .back-to-top {
        display: none !important;
    }
}

/* ============================================================
   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));
   
   ============================================================ */