:root {
    --primary-blue: #3b82f6;
    --primary-hover: #2563eb;
    --soft-blue-bg: #f0f7ff;
    --body-bg: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --glass-bg: rgba(223, 255, 255, 0.85);
}

body.site-light-theme {
    background-color: var(--body-bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.font-mono { font-family: 'Space Mono', 'JetBrains Mono', monospace; }
.brand-accent { color: var(--primary-blue); }
.text-xs { font-size: 0.75rem; }
.fw-extra-bold { font-weight: 800; }

.navbar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color) !important;
    transition: transform 0.3s ease-in-out, background 0.3s;
    z-index: 1050;
}

.navbar.is-hidden {
    transform: translateY(-100%);
}

.nav-link {
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.search-wrapper {
    position: relative;
    width: 220px;
}

.search-input-light {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 12px 8px 36px;
    font-size: 0.85rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-light:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    width: 260px; 
}

.search-icon-light {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.hero-light {
    background: linear-gradient(180deg, var(--soft-blue-bg) 0%, var(--body-bg) 100%);
    border-bottom: 1px solid var(--border-color);
}

.ticker-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;

    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 10px 20px;
}

.ticker-box:active {
    cursor: grabbing;
}

.ticker-box::-webkit-scrollbar {
    display: none; 
}

.ticker-box > div {
    flex-shrink: 0;
    padding: 0 10px;
}

.text-divider {
    opacity: 0.3;
    flex-shrink: 0;
}

.news-card-light {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.news-card-light:hover {
    transform: translateY(-6px);
    border-color: var(--primary-blue);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.08), 0 8px 10px -6px rgba(59, 130, 246, 0.08);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--soft-blue-bg);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card-light:hover .news-image {
    transform: scale(1.08);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.sidebar-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.btn-outline-primary {
    border-color: var(--border-color);
    color: var(--text-main);
    background: white;
}

.btn-outline-primary:hover, .page-item.active .btn-primary {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: white !important;
}

.footer-light {
    background: white;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

.fw-800 { font-weight: 800; }

.article-body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #334155;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    border-radius: 12px;
    margin: 2rem 0;
    max-width: 100%;
}

.article-body blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1.5rem;
    font-style: italic;
    color: #64748b;
    margin: 2rem 0;
}

/* 文章內容排版（ai 生成） */
/* 1. 段落處理 */
.paragraph { margin-bottom: 1.5rem; }
.first-para { font-size: 1.2rem; font-weight: 500; color: #1e293b; }

/* 2. 子標題：Site04 寬字體風格 */
.sub-title { 
    font-family: 'Space Mono', monospace; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: #0f172a;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
}
.sub-title::before {
    content: "//";
    color: #3b82f6;
    margin-right: 0.5rem;
}

/* 3. 情報方塊 (info-list-box) */
.info-list-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
}
.source-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* 4. 專業表格 (styled-table) */
.table-container { overflow-x: auto; margin: 2rem 0; }
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.styled-table th { background: #f1f5f9; padding: 12px; text-align: left; }
.styled-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; }

/* 5. 專家引言 */
.expert-quote {
    border-left: 4px solid #3b82f6;
    padding: 1.5rem;
    background: #eff6ff;
    font-style: italic;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.trx-link:hover {
    border-bottom: 2px solid #3b82f6;
}