/* ============================================================
   首頁專用樣式（Media 風格）
   ============================================================ */

/* --- Ticker --- */
.ticker-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.45rem 0;
    font-size: 0.8rem;
    overflow: hidden;
}
.ticker-bar .container { display: flex; align-items: center; gap: 0.75rem; overflow: hidden; }
.ticker-label {
    background: var(--primary);
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.ticker-track { display: flex; gap: 0; white-space: nowrap; overflow: hidden; }
.ticker-track a { color: #444; font-size: 0.8rem; }
.ticker-track a:hover { color: var(--primary); }
.ticker-track .sep { color: #ccc; margin: 0 0.5rem; }

/* --- Header 調整 --- */
.header-inner { height: 56px; }
.site-logo { font-size: 1.15rem; }
.site-nav a { font-size: 0.88rem; font-weight: 500; padding: 0.3rem 0.6rem; border-radius: 4px; }
.nav-cta { background: var(--primary) !important; color: #fff !important; border-radius: 4px; }
.nav-cta:hover { background: var(--primary-dark) !important; }

/* --- Featured Section --- */
.featured-section {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}
.featured-main { display: flex; flex-direction: column; gap: 0.85rem; }
.featured-thumb { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 16/9; background: #eee; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.featured-thumb:hover img { transform: scale(1.02); }
.featured-cat {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 3px;
    width: fit-content;
}
.featured-title { font-size: 1.55rem; font-weight: 700; line-height: 1.4; }
.featured-title a { color: #1a1a1a; }
.featured-title a:hover { color: var(--primary); }
.featured-excerpt { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }
.featured-date { color: var(--text-dim); font-size: 0.78rem; }

/* Featured Sidebar */
.featured-sidebar { display: flex; flex-direction: column; gap: 1rem; border-left: 1px solid var(--border); padding-left: 1.5rem; }
.featured-sub { display: flex; gap: 0.75rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.featured-sub:last-child { border-bottom: none; padding-bottom: 0; }
.sub-thumb { flex-shrink: 0; width: 90px; height: 68px; border-radius: 4px; overflow: hidden; background: #eee; }
.sub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-body { display: flex; flex-direction: column; gap: 0.3rem; }
.sub-cat { display: inline-block; background: var(--primary); color: #fff !important; font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 3px; }
.sub-title { font-size: 0.85rem; font-weight: 600; line-height: 1.4; }
.sub-title a { color: #1a1a1a; }
.sub-title a:hover { color: var(--primary); }
.sub-date { color: var(--text-dim); font-size: 0.72rem; }

/* --- News Section --- */
.news-section { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.news-section:last-child { border-bottom: none; }
.news-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}
.news-section-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    padding-left: 0.65rem;
    border-left: 4px solid var(--primary);
    line-height: 1;
}
.news-more { font-size: 0.78rem; color: var(--text-muted); }
.news-more:hover { color: var(--primary); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
.news-card { background: #fff; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-thumb { display: block; aspect-ratio: 16/9; background: #eee; overflow: hidden; }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-body { padding: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.news-card-title { font-size: 0.88rem; font-weight: 600; line-height: 1.45; }
.news-card-title a { color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-title a:hover { color: var(--primary); }
.news-card-date { font-size: 0.72rem; color: var(--text-dim); }

/* --- Footer --- */
.site-footer { background: #1a1a1a; color: #ccc; padding: 2.5rem 0 1.5rem; margin-top: 0; }
.site-footer .site-logo { color: #fff; }
.site-footer .footer-brand p { color: #aaa; }
.site-footer .footer-col h4 { color: #888; }
.site-footer .footer-col a { color: #aaa; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-bottom { color: #666; border-top-color: #333; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-sidebar { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .featured-sub { border-bottom: none; padding-bottom: 0; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .featured-sidebar { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .featured-title { font-size: 1.2rem; }
    .ticker-track { display: none; }
}
