:root {
    --primary: #3b82f6; 
    --accent: #facc15;      
    --bg-black: #000000;
    --zinc-900: #18181b;   
    --zinc-800: #27272a;     
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
}

.card {
    background-color: var(--zinc-900);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.price-up { color: #10b981; }  
.price-down { color: #ef4444; }

.post-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    padding: 1rem;
}

.post-card:hover {
    background: var(--zinc-800);
    transform: translateY(-5px);
}

.post-title a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none;
}

.detail-content {
    color: #d1d5db; 
    line-height: 1.8;
}

.detail-content h3 {
    color: #fff;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-top: 3rem;
}

.detail-content ul {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
}

.navbar {
    height: 64px;
    padding: 0 !important;
    display: flex;
    align-items: center;
}

.navbar-toggler

.navbar-collapse {
    background-color: #000;
    z-index: 999;
}

/* 1. 統一搜尋表單容器樣式 */
#searchForm, #mobileSearchForm {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(255, 255, 255, 0.03) !important; /* 稍微有點灰度 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* 單一細邊框 */
    border-radius: 50px !important;
}

/* 2. 移除聚焦時的黃色背景，改為邊框發光 */
#searchForm:focus-within, #mobileSearchForm:focus-within {
    background-color: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--accent) !important; /* 你的亮黃色變數 */
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.2); /* 淡淡的發光 */
}

/* 3. 徹底消除 Input 原生的藍色/白色外框 */
#newsSearchInput, #mobileSearchInput {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important; /* 消除 Enter 時的黑框 */
    color: white !important;
    font-size: 0.85rem;
}

/* 4. 修正 Icon 顏色與間距 */
#searchForm [data-lucide], #mobileSearchForm [data-lucide] {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

#searchForm:focus-within [data-lucide] {
    color: var(--accent);
}
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important; /* 如果你不想有任何邊框 */
}

/* 針對 Lucide Icon 或是內部圖示的點擊框 */
.navbar-toggler i {
    outline: none !important;
}

.navbar-toggler {
    padding: 0,25rem 0.5rem;
}

.navbar-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-text {
    font-weight: 900;
    letter-spacing: -0.-5em;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.nav-link:hover {
    color: #fff !important;
}

.latest-price-section {
    background: #09090b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden; 
}

.price-marquee-track {
    display: flex; 
    flex-direction: row;
    white-space: nowrap; 
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

.price-item {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #000;
        padding: 1.5rem;
        margin-top: 8px;
        border-radius: 0 0 1rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}