/* =========================================
   1. 傳說級 3D 全域變數 (超過 10 種多巴胺色彩調色盤)
   ========================================= */
:root {
    /* 主力活力色 */
    --c-orange-glow: #FF6A00;   /* 高光亮橘 */
    --c-pink-neon: #FF0055;     /* 霓虹亮粉 */
    
    /* 輔助多巴胺色 (用於卡片、圖示、發光陰影) */
    --c-mint-green: #10B981;    /* 薄荷鮮綠 */
    --c-ocean-blue: #3B82F6;    /* 蔚藍海洋 */
    --c-amethyst: #8B5CF6;      /* 紫水晶 */
    --c-sunshine: #F59E0B;      /* 陽光金黃 */
    --c-rose-red: #EF4444;      /* 玫瑰警示紅 */
    --c-cyan-drop: #06B6D4;     /* 青冰滴 */

    /* 清爽動態背景色系 */
    --bg-sky: #F0F9FF;          /* 晴空藍 */
    --bg-mint: #F0FDF4;         /* 嫩草綠 */
    --bg-blush: #FFF1F2;        /* 櫻花粉 */
    --bg-lemon: #FFFBEB;        /* 檸檬淺黃 */

    /* 文字與版面基底 */
    --text-dark: #1E293B;       /* 深邃曜石灰 */
    --text-muted: #64748B;      /* 質感亞麻灰 */
    --sidebar-width: 280px;
    
    /* 3D 專用玻璃與陰影變數 */
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --shadow-soft: 0 10px 30px rgba(148, 163, 184, 0.15);
    --shadow-3d-lift: 0 20px 40px rgba(148, 163, 184, 0.25), 0 0 0 1px rgba(255,255,255,0.6) inset;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   🌟 字體載入 (路徑修正：往外找 fonts 資料夾)
   ========================================= */
@font-face {
    font-family: 'Noto Sans TC';
    src: url('../fonts/NotoSansTC-VF.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-display: swap;
}

body {
    font-family: 'Noto Sans TC', "PingFang TC", "Microsoft JhengHei", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-dark);
    line-height: 1.6;
    padding-bottom: 80px !important; 
    overflow-x: hidden;
}

/* =========================================
   🌟 多色呼吸動態背景 (柔和清爽)
   ========================================= */
body.frontend {
    background: linear-gradient(-45deg, var(--bg-sky), var(--bg-mint), var(--bg-blush), var(--bg-lemon));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

body.backend {
    background: linear-gradient(135deg, #F8FAFC 0%, #E2E8F0 100%);
    min-height: 100vh;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 物理按鈕防止連點 */
button, input, select, textarea, a { touch-action: manipulation; }

/* =========================================
   🌟 雙色閃爍警告橫幅 (紅黃交替)
   ========================================= */
@keyframes alertBlink {
    0%, 100% { color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    50% { color: var(--c-sunshine); text-shadow: 0 0 15px rgba(245, 158, 11, 0.9); } 
}

body::after {
    content: "‼️ 2026洪益華動態網頁實作測試 - 非正式網站請勿留真實個資 ‼️";
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: rgba(239, 68, 68, 0.95); /* 使用玫瑰警示紅 */
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    text-align: center; padding: 10px 15px;
    font-size: 1.05rem; font-weight: 900; letter-spacing: 2px;
    z-index: 10000; pointer-events: none;
    border-top: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 -5px 20px rgba(239, 68, 68, 0.4);
    animation: alertBlink 1.2s infinite ease-in-out; 
}

/* =========================================
   🌟 3D 多彩毛玻璃導覽列
   ========================================= */
.top-nav {
    padding: 1rem 3rem !important; 
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.08); /* 帶有微微藍色光暈 */
    z-index: 1050; transition: all 0.4s ease;
}

.brand-logo { 
    font-size: 2.2rem; font-weight: 900; text-decoration: none;
    background: linear-gradient(135deg, var(--c-orange-glow), var(--c-pink-neon));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: flex; align-items: center; gap: 10px;
    filter: drop-shadow(0 4px 6px rgba(255, 106, 0, 0.25));
}

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-item {
    font-size: 1.15rem !important; font-weight: 800; color: var(--text-muted) !important;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative; padding: 8px 12px; border-radius: 12px;
}

.nav-item::after {
    content: ''; position: absolute; width: 0%; height: 3px;
    bottom: 0px; left: 0; border-radius: 5px; transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--c-ocean-blue), var(--c-cyan-drop)); /* 預設底線顏色 */
}

/* 導覽列多巴胺 Hover 變色 */
/* =========================================
   🌟 前台導覽列：滑鼠游標移過去的高亮升級版 
   (完美融合你原本的排版與 ::after 動畫)
   ========================================= */

.frontend .nav-item:hover { 
    transform: translateY(-3px); /* 保留並稍微強化你的浮起效果 */
    
    /* 🌟 將原本的白底改為高亮橘粉漸層 */
    background: linear-gradient(135deg, var(--c-orange-glow), var(--c-pink-neon)) !important; 
    
    /* 🌟 將原本的微弱陰影升級為：外圍橘色霓虹光圈 + 內部白色高光 */
    box-shadow: 0 8px 20px rgba(255, 106, 0, 0.5), inset 0 2px 5px rgba(255, 255, 255, 0.4) !important; 
    
    color: #ffffff !important; /* 文字反白 */
    border-radius: 50px !important; /* 加上圓角變成高質感的膠囊按鈕 */
}

/* 讓裡面的 Icon 也同步發出白光 */
.frontend .nav-item:hover i {
    color: #ffffff !important;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

/* 🌟 完美保留你的底線動畫，並升級成「光劍」發光效果！ */
.frontend .nav-item:hover::after { 
    width: 100%; 
    background: #ffffff !important; /* 底線變成純白色 */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9); /* 讓底線自帶一圈光暈 */
}
.nav-item:nth-child(1):hover { color: var(--c-ocean-blue) !important; }
.nav-item:nth-child(2):hover { color: var(--c-mint-green) !important; }
.nav-item:nth-child(2)::after { background: linear-gradient(90deg, var(--c-mint-green), #34D399); }
.nav-item:nth-child(3):hover { color: var(--c-orange-glow) !important; }
.nav-item:nth-child(3)::after { background: linear-gradient(90deg, var(--c-orange-glow), var(--c-sunshine)); }

.cart-badge {
    background: linear-gradient(135deg, var(--c-orange-glow), var(--c-pink-neon));
    color: white; font-size: 0.9rem; font-weight: 900;
    padding: 4px 12px; border-radius: 50px; margin-left: 6px; display: inline-block; 
    box-shadow: 0 4px 12px rgba(255, 0, 85, 0.4), inset 0 2px 0 rgba(255,255,255,0.4); 
    border: 1px solid rgba(255,255,255,0.2); vertical-align: top;
}

/* =========================================
   🌟 3D 多彩浮動卡片 (Claymorphism + Glass)
   ========================================= */
.feature-card, .card, .product-item, .stat-tile, .chart-card {
    background: var(--glass-bg) !important; backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important; border-radius: 30px !important;
    box-shadow: var(--shadow-soft) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}

.feature-card::before, .card::before, .product-item::before, .stat-tile::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 30px; pointer-events: none; border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out; mask-composite: exclude;
}

.feature-card:hover, .product-item:hover, .stat-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-3d-lift) !important;
}

/* 🌟 特色卡片專屬多巴胺配色 */
.feature-card .icon-circle {
    width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; 
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    box-shadow: 8px 8px 16px rgba(0,0,0,0.06), -8px -8px 16px rgba(255,255,255,0.8); 
    transition: all 0.4s ease;
}

/* 第 1 張卡片：薄荷綠 */
.feature-card:nth-child(1) .icon-circle { color: var(--c-mint-green); }
.feature-card:nth-child(1):hover { border-color: rgba(16, 185, 129, 0.4) !important; box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15) !important; }
.feature-card:nth-child(1):hover .icon-circle { background: linear-gradient(135deg, var(--c-mint-green), #34D399); color: white; transform: scale(1.15) rotate(10deg); box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4); }

/* 第 2 張卡片：海洋藍 */
.feature-card:nth-child(2) .icon-circle { color: var(--c-ocean-blue); }
.feature-card:nth-child(2):hover { border-color: rgba(59, 130, 246, 0.4) !important; box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15) !important; }
.feature-card:nth-child(2):hover .icon-circle { background: linear-gradient(135deg, var(--c-ocean-blue), var(--c-cyan-drop)); color: white; transform: scale(1.15) rotate(-10deg); box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4); }

/* 第 3 張卡片：紫水晶 */
.feature-card:nth-child(3) .icon-circle { color: var(--c-amethyst); }
.feature-card:nth-child(3):hover { border-color: rgba(139, 92, 246, 0.4) !important; box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15) !important; }
.feature-card:nth-child(3):hover .icon-circle { background: linear-gradient(135deg, var(--c-amethyst), #A78BFA); color: white; transform: scale(1.15) rotate(10deg); box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4); }

/* 商品選中狀態 (多彩漸層邊框) */
.product-item.selected {
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.3), var(--shadow-3d-lift) !important;
    border-color: var(--c-orange-glow) !important;
}

/* =========================================
   🌟 3D 多彩按鈕系統 (超強點擊回饋)
   ========================================= */
.btn-legendary, .floating-cart-btn {
    background: linear-gradient(135deg, var(--c-orange-glow), var(--c-pink-neon)) !important;
    color: white !important; border-radius: 50px !important; font-weight: 800 !important; border: none !important;
    box-shadow: 0 10px 25px rgba(255, 0, 85, 0.4), inset 0 2px 0 rgba(255,255,255,0.4) !important; 
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-legendary:hover, .floating-cart-btn:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(255, 0, 85, 0.5), inset 0 2px 0 rgba(255,255,255,0.6) !important;
    background: linear-gradient(135deg, var(--c-sunshine), var(--c-pink-neon)) !important; /* Hover 時加入陽光金黃 */
}

.btn-legendary:active, .floating-cart-btn:active {
    transform: translateY(2px) scale(0.96) !important;
    box-shadow: 0 2px 10px rgba(255, 0, 85, 0.4), inset 0 4px 8px rgba(0,0,0,0.2) !important;
}

.floating-cart-btn {
    position: fixed; bottom: 75px; right: 30px; padding: 16px 32px !important; font-size: 1.3rem !important;
    z-index: 1050; display: flex; align-items: center; gap: 12px;
    opacity: 0; transform: translateY(50px); pointer-events: none;
}
.floating-cart-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-badge {
    background-color: white; color: var(--c-pink-neon);
    padding: 3px 12px; border-radius: 20px; font-size: 1.1rem; box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* =========================================
   🌟 其他組件：圖片與數量調整器
   ========================================= */
.img-placeholder {
    height: 220px; background: transparent; display: flex; align-items: center; justify-content: center;
    border-radius: 20px; overflow: hidden; position: relative; padding: 15px; 
}
.img-placeholder img {
    width: 100%; height: 100%; object-fit: contain; 
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.15)); 
    transition: transform 0.4s ease;
}
.product-item:hover .img-placeholder img { transform: scale(1.1) translateY(-5px); }

.qty-input-group {
    width: 100%; max-width: 150px; margin: 0 auto;
    background: rgba(255,255,255,0.8); border: 1px solid var(--glass-border); border-radius: 50px;
    display: flex; align-items: center; justify-content: space-between; padding: 2px 6px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); 
}
.btn-qty {
    background: white; border: none; width: 34px; height: 34px; border-radius: 50%;
    font-weight: 900; font-size: 1.2rem; color: var(--text-dark); box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: 0.2s;
}
.btn-qty:hover:not(:disabled) { background: var(--c-cyan-drop); color: white; transform: scale(1.1); box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4); }
.btn-qty:active:not(:disabled) { transform: scale(0.9); box-shadow: inset 0 2px 4px rgba(0,0,0,0.2); }
.qty-val { width: 45px; text-align: center; border: none; background: transparent; font-weight: 900; font-size: 1.2rem; color: var(--text-dark); }

/* =========================================
   🌟 後台專屬：深邃多彩宇宙
   ========================================= */
.app-container { display: flex; width: 100%; }

.sidebar {
    width: var(--sidebar-width) !important; height: 100vh !important;
    background: linear-gradient(180deg, #0F172A 0%, #1E1B4B 100%); /* 深藍轉深紫的宇宙色調 */
    color: white; padding: 2rem 1.5rem; position: fixed !important; left: 0; top: 0;
    z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.15);
}

.main-content { flex: 1; margin-left: var(--sidebar-width) !important; padding: 3rem !important; min-height: 100vh; }

.nav-item {
    color: rgba(255,255,255,0.6); text-decoration: none; padding: 1rem 1.5rem; margin-bottom: 0.5rem;
    border-radius: 16px; display: block; font-weight: 600; transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: linear-gradient(135deg, var(--c-amethyst), var(--c-pink-neon)); /* 後台專屬：紫粉漸層 */
    color: white; box-shadow: 0 4px 15px rgba(255, 0, 85, 0.4); transform: translateX(5px);
}

/* 後台多彩狀態標籤 */
.status-badge { font-size: 0.9rem; padding: 8px 15px; border-radius: 50px; font-weight: bold; display: inline-block; white-space: nowrap; text-align: center; box-shadow: inset 0 2px 4px rgba(255,255,255,0.5); }
.status-pending { background: linear-gradient(135deg, #FEF08A, #FDE047); color: #B45309; border: 1px solid #FEF08A; }
.status-shipped { background: linear-gradient(135deg, #BAE6FD, #7DD3FC); color: #0369A1; border: 1px solid #BAE6FD; }
.status-completed { background: linear-gradient(135deg, #A7F3D0, #6EE7B7); color: #047857; border: 1px solid #A7F3D0; }
.status-cancelled { background: linear-gradient(135deg, #FECACA, #FCA5A5); color: #B91C1C; border: 1px solid #FECACA; }

/* =========================================
   🌟 響應式 RWD (完美適配手機)
   ========================================= */
@media (max-width: 992px) { .top-nav { padding: 1rem 2rem !important; } }

@media (max-width: 768px) {
    body::after { font-size: 0.85rem; padding: 8px 10px; }

    .top-nav { padding: 15px 10px !important; flex-direction: column !important; gap: 15px !important; }
    .top-nav h2 { font-size: 2rem !important; }
    .nav-links { flex-wrap: wrap !important; justify-content: center !important; gap: 10px 15px !important; }
    .nav-item { font-size: 1.05rem !important; background: rgba(0,0,0,0.03); border-radius: 20px; }

    .app-container { flex-direction: column !important; }
    .sidebar {
        position: relative !important; width: 100% !important; height: auto !important;
        padding: 15px 10px !important; flex-direction: row !important; display: flex !important;
        overflow-x: auto !important; white-space: nowrap !important;
        background: #0F172A !important; -webkit-overflow-scrolling: touch; z-index: 1000 !important;
    }
    .sidebar::-webkit-scrollbar { display: none; }
    .sidebar h2, .sidebar hr, .sidebar small, .sidebar span { display: none !important; }
    
    .nav-item {
        display: inline-block !important; padding: 10px 20px !important; margin-bottom: 0 !important;
        margin-right: 10px !important; font-size: 1rem !important;
        background: rgba(255,255,255,0.1) !important; color: white !important; border-radius: 50px !important;
    }
    .nav-item.active { background: linear-gradient(135deg, var(--c-amethyst), var(--c-pink-neon)) !important; }

    .main-content { margin-left: 0 !important; padding: 15px !important; width: 100% !important; }
    
    .floating-cart-btn { bottom: 60px; right: 20px; left: 20px; justify-content: center; padding: 14px 20px !important; }
}
/* =========================================
   🌟 全域樣式：後台側邊欄 (乾淨正常版)
   ========================================= */
.sidebar a.nav-item { 
    color: rgba(255, 255, 255, 0.7) !important; 
    text-decoration: none !important; 
    transition: all 0.2s ease;
    border-left: none !important; /* 徹底拔掉左邊框 */
}
.sidebar a.nav-item:hover { 
    color: #ffffff !important; 
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
}
.sidebar a.nav-item:active, 
.sidebar a.nav-item.active { 
    color: #ffffff !important; 
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    border-left: none !important;
}
.sidebar a.nav-item.active i {
    color: #ffffff !important; 
}

/* =========================================
   🌟 全域樣式：表格強制不換行
   ========================================= */
.table thead th, 
.table tbody td {
    white-space: nowrap !important; 
    vertical-align: middle !important;
}

/* =========================================
   📱 手機版 RWD 終極整合 (max-width: 768px)
   ========================================= */
@media (max-width: 768px) {

    /* ----- 🟢 1. 前台導覽列 (右上角管理版) ----- */
    .frontend .top-nav {
        position: relative !important; 
        flex-direction: column !important;
        /* 🌟 魔法在這裡：把上方的內距從 15px 加大到 38px，把 Logo 往下推，讓出右上角空間 */
        padding: 38px 10px 15px !important; 
        gap: 12px !important;
    }
    .frontend .nav-links a[href*="index.html"] { display: none !important; }
    .frontend .nav-links a[href*="login.html"] {
        position: absolute !important; 
        top: 8px !important;   /* 🌟 貼緊最上方 */
        right: 10px !important; 
        padding: 4px 8px !important; /* 縮小按鈕本體 */
        font-size: 0.7rem !important; /* 字體再縮小一點 */
        background: rgba(255, 255, 255, 0.9) !important; /* 稍微白一點，確保文字清晰 */
        color: #94A3B8 !important;
        border: 1px solid rgba(0,0,0,0.05) !important; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
        z-index: 10 !important; /* 確保它永遠在最上層，不會被蓋住 */
    }
    .frontend .nav-links {
        width: 100%; justify-content: center !important; gap: 12px !important;
    }
    .frontend .nav-item {
        font-size: 0.95rem !important; padding: 8px 20px !important; margin: 0 !important;
        color: #334155 !important; background: rgba(255, 255, 255, 0.85) !important;
        border-radius: 50px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important;
    }
    .frontend .nav-item:active, .frontend .nav-item.active {
        color: #ffffff !important;
        background: linear-gradient(135deg, var(--c-orange-glow), var(--c-pink-neon)) !important;
        box-shadow: 0 4px 15px rgba(255, 106, 0, 0.5) !important;
    }
    .frontend .nav-item::after { display: none !important; }

    /* ----- 🔵 2. 後台側邊欄 (多行點擊版) ----- */
    .sidebar {
        display: flex !important; flex-wrap: wrap !important; flex-direction: row !important;
        justify-content: center !important; gap: 10px !important; 
        padding-bottom: 20px !important; overflow-x: hidden !important;
    }
    .sidebar h2, .sidebar .border-bottom {
        width: 100% !important; text-align: center !important; margin-bottom: 5px !important;
    }
    .sidebar a.nav-item {
        white-space: nowrap !important; padding: 8px 16px !important; margin: 0 !important; 
        flex: 0 0 auto !important; border-left: none !important; outline: none !important;
    }
    .sidebar div[style*="flex-grow"], .sidebar hr { display: none !important; }
    .sidebar a.text-danger, .sidebar a.text-muted.small {
        width: auto !important; margin-top: 5px !important;
    }

    /* ----- 🟠 3. 後台排版與表格微調 ----- */
    .header-card .d-flex {
        flex-direction: column !important; align-items: flex-start !important; gap: 15px !important;
    }
    #current-date { border-radius: 50px !important; width: fit-content; }
    
    .table thead th, .table tbody td {
        padding: 0.8rem 1rem !important; font-size: 0.95rem !important;
    }
    .search-bar-wrapper { max-width: 100% !important; }
}
/* ----- 🟣 4. 修復訂單/客戶頁面：搜尋框與篩選按鈕跑出版面 ----- */
    .search-filter-container {
        flex-direction: column !important; /* 讓搜尋框跟按鈕變成上下排列 */
        align-items: stretch !important;
        gap: 15px !important;
        width: 100% !important;
    }
    
    .filter-scroll {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: auto !important; /* 允許手指左右滑動隱藏的按鈕 */
        -webkit-overflow-scrolling: touch !important; /* 讓 iOS 滑動更滑順 */
        padding-bottom: 5px !important;
    }
    
    .filter-btn-group {
        display: inline-flex !important;
        white-space: nowrap !important; /* 確保裡面的文字絕對不換行 */
    }
	/* ----- 🟣 5. 訂單狀態列：左右懸浮箭頭與排版 ----- */
    .filter-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .filter-arrow {
        display: block; /* 手機版顯示 */
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(255, 106, 0, 0.3);
        border-radius: 50%;
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        z-index: 10;
        color: var(--c-orange-glow);
        font-weight: 900;
        line-height: 1;
        text-align: center;
        cursor: pointer;
        padding: 0;
        transition: 0.3s ease;
    }
    
    .filter-arrow-left { left: -5px; }
    .filter-arrow-right { right: -5px; }
    
    /* 隱藏原生的醜醜捲動條，但保留滑動功能 */
    .filter-scroll::-webkit-scrollbar { display: none; }
    .filter-scroll { 
        -ms-overflow-style: none; 
        scrollbar-width: none; 
        overflow-x: auto !important; 
        scroll-behavior: smooth;
    }
	body, html {
    overscroll-behavior-x: none; 
	}