/* 由 includes/footer.php 抽出（2026-10-23），修改樣式請改這個檔 */
    /* 頁尾文字置中（避免不同頁面樣式不一致） */
    .site-footer{ text-align:center; padding: 18px 10px 84px; }
    body .site-footer.bf-site-footer{ padding-bottom: calc(84px + env(safe-area-inset-bottom)); } /* 手機版 bf_shell.css 的頁尾留白會蓋掉上一行，最後一排會被「網站工具」按鈕擋住 */
    .site-footer p{ margin:0; line-height:1.6; color:#94a3b8; font-size:0.92rem; }
    body.dark-mode .site-footer p{ color:#94a3b8; }

    /* === 浮動工具列樣式優化 === */
    .line-float {
      position: fixed; right: 20px; bottom: 20px; z-index: 999;
      display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    }
    /* 網站工具：桌機和手機都收成一顆按鈕，點開才顯示（2026-10-23：桌機原本 6 顆按鈕會擋住表格與計算機按鈕） */
    .floating-tools-panel {
      position:absolute; right:0; bottom:56px; display:none; flex-direction:column; align-items:flex-end; gap:10px;
      width:174px; padding:10px; border:1px solid #dbeafe; border-radius:18px; background:rgba(255,255,255,.98);
      box-shadow:0 18px 42px rgba(15,23,42,.24); backdrop-filter:blur(10px);
    }
    .line-float.is-open .floating-tools-panel { display:flex; }
    .floating-tools-toggle {
      display:inline-flex; min-height:46px; align-items:center; gap:7px; padding:0 14px;
      border:1px solid rgba(255,255,255,.2); border-radius:999px; background:#172554; color:#fff;
      box-shadow:0 9px 24px rgba(15,23,42,.28); font-weight:900; cursor:pointer;
    }
    .floating-tools-toggle-text { font-size:.78rem; }
    .floating-context-action { display:none; }
    .floating-context-action:not([hidden]) { display:flex; }
    .line-float .floating-tools-panel a,
    .line-float .floating-tools-panel .theme-toggle-btn,
    .line-float .floating-tools-panel .floating-context-action {
      width:100%; min-height:44px; justify-content:flex-start; box-sizing:border-box; padding:8px 10px; border-radius:12px;
    }
    .line-float .floating-tools-panel .floating-social-link { min-height:56px; padding:7px 9px; }
    .line-float-text { display:inline; font-size:.76rem; }
    .bf-assistant-toggle { display:none !important; }
    body.dark-mode .floating-tools-panel { background:rgba(15,23,42,.98); border-color:#334155; }
    /* 回到頂端：捲動一段後才出現，網站工具展開時先收起 */
    .bf-to-top {
      position:fixed; right:20px; bottom:76px; z-index:998; width:44px; height:44px; border-radius:50%;
      border:1px solid #dbeafe; background:#fff; color:#173b73; font-size:1.15rem; font-weight:900; line-height:1;
      box-shadow:0 6px 16px rgba(15,23,42,.2); cursor:pointer;
    }
    .bf-to-top[hidden], .line-float.is-open ~ .bf-to-top { display:none; }
    body.dark-mode .bf-to-top { background:#1e293b; color:#e2e8f0; border-color:#334155; }

    /* 共用按鈕樣式 */
    .line-float a, .theme-toggle-btn, .floating-context-action, .stock-timer-badge {
      display: flex; align-items: center; gap: 8px;
      padding: 10px 14px; border-radius: 50px;
      text-decoration: none; font-size: 0.9rem; font-weight: bold;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      transition: transform 0.2s, box-shadow 0.2s;
      cursor: pointer; border: none;
    }
    .floating-context-action[hidden] { display: none !important; }
    .line-float a:hover, .theme-toggle-btn:hover, .floating-context-action:hover {
      transform: translateY(-3px);
      box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    }
    .line-float a:active, .theme-toggle-btn:active, .floating-context-action:active {
      transform: translateY(0);
    }

    /* 社群按鈕顏色 */
    .line-float a { background: #fff; color: #333; }
    .line-float a.floating-social-link {
      width: 170px; height:auto; min-height: 54px; box-sizing: border-box;
      padding: 7px 10px; gap: 9px; border: 1px solid #dbe3ed;
      border-radius: 15px; background: #fff; color: #1f2937;
      box-shadow: 0 4px 12px rgba(15,23,42,.15);
    }
    .line-float a.floating-social-link:hover {
      transform: none; background: #f8fafc;
      box-shadow: 0 6px 16px rgba(15,23,42,.18);
    }
    .line-float a.floating-social-link:active { transform:none; }
    .line-float a.floating-social-link:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
    .line-float .social-brand-icon {
      display:block; width:40px; height:40px; flex:0 0 40px; object-fit:contain;
      background:none; border:0; border-radius:0; box-shadow:none;
    }
    .line-float .floating-social-link .line-float-text { color:#1f2937; font-weight:800; white-space:nowrap; }
    
    .line-float-icon {
      width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.2); border-radius: 50%; font-size: 0.9rem;
    }

    /* 深色模式按鈕 */
    .theme-toggle-btn {
      background: #333; color: #facc15;
    }
    .floating-context-action { background:#eef4ff; color:#173b73; }
    
    /* 商人倒數計時器 */
    .stock-timer-badge {
      background: #0f172a; color: #fff; border: 2px solid #facc15;
      cursor: default; /* 純展示，不點擊 */
    }
    .stock-timer-badge:hover { transform: none; }
    .st-text { font-family: monospace; font-size: 1rem; letter-spacing: 1px; }

    /* 目錄已整合至網站工具列；保留原按鈕供目錄腳本觸發，但不重複顯示。 */
    .guide-toc-fab { display: none !important; }
    .guide-toc-panel {
      right: 14px;
      bottom: 86px;
    }

    /* 手機版調整 */
    @media (max-width: 768px) {
      .line-float { right: 14px; bottom: max(16px, env(safe-area-inset-bottom)); }
      .bf-to-top { right: 14px; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 56px); }
      .stock-timer-badge { padding: 8px 12px; border-radius: 20px; width: auto; height: auto; }
      .guide-toc-panel { left: 10px; right: 10px; bottom: 72px; width: auto; max-height: min(72vh, 560px); }
      .guide-section-link-btn { display:none !important; }
      .trust-page .floating-context-action[data-floating-action="assistant"] { display:none !important; }
    }
  
