/* ============================================
   news 卡片样式（TAB 版）
   ============================================ */
.card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}


/* ----- TAB 导航 ----- */
.newstablist{background: var(--major-div-bg); padding:0; flex-wrap: wrap;}
.newstab {background: var(--primary-bg); flex: 0 0 auto; }


/* ----- TAB 面板 ----- */
.news-panels {
    position: relative;
}

.news-panel {
    display: none;
    animation: fadeIn 0.2s ease;
}

.news-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- 新闻列表（单个源） ----- */
.news-source-items {
    padding: 4px 0 8px 0;
}

.news-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
    font-size: 0.88rem;
    line-height: 1.4;
}

.news-item:hover {
    background: #f8f8f8;
    margin: 0 -4px;
    padding: 4px 4px;
    border-radius: 4px;
}

.news-item__title {
    flex: 1;
}

.news-item__time {
    font-size: 0.7rem;
    color: #999;
    flex-shrink: 0;
}

.news-empty {
    text-align: center;
    padding: 30px 0;
    color: #999;
}
