/* ===== 分类标签栏 ===== */
.category-bar {
    background: #ffffff;
    border-bottom: 1px solid #e8ecf1;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.category-bar .category-item {
    display: inline-block;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-bar .category-item:hover {
    background: #eef2ff;
    color: #4a6cf7;
}

.category-bar .category-item.active {
    background: #4a6cf7;
    color: #fff;
}

.category-bar .category-item.important {
    color: #e53e3e;
    font-weight: 600;
}

.category-bar .category-item.important.active {
    background: #e53e3e;
    color: #fff;
}

.category-bar .auto-refresh {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: 12px;
    cursor: pointer;
    user-select: none;
    padding: 4px 10px;
    border-radius: 12px;
    transition: 0.2s;
}

.category-bar .auto-refresh:hover {
    background: #f1f4f9;
}

.category-bar .auto-refresh.paused {
    color: #e53e3e;
}

.category-bar .auto-refresh.paused i {
    color: #e53e3e;
}

/* ===== 热搜标签 ===== */
.hot-tags {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecf1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hot-tags .label {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

.hot-tags .tag {
    font-size: 0.8rem;
    color: #4a5568;
    background: #f1f4f9;
    padding: 4px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}

.hot-tags .tag:hover {
    background: #e2e8f0;
    color: #4a6cf7;
}

/* ===== 快讯流 ===== */
.news-feed {
    flex: 1;
    min-width: 0;
}

.date-header {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    padding: 12px 0 8px 0;
    border-bottom: 2px solid #e8ecf1;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-header .day-week {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 400;
}

.date-header .today-badge {
    background: #4a6cf7;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.date-header .today-badge.important {
    background: #e53e3e;
}

.date-header .today-badge.search {
    background: #f59e0b;
}

.flash-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    border: 1px solid #eef2f6;
    transition: all 0.15s;
    display: flex;
    gap: 16px;
}

.flash-item:hover {
    border-color: #d0d7de;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.flash-item .time {
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a6cf7;
    min-width: 60px;
    padding-top: 2px;
}

.flash-item .time .important-tag {
    display: block;
    font-size: 0.6rem;
    color: #e53e3e;
    font-weight: 600;
    margin-top: 2px;
}

.flash-item .content {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #1e293b;
}

.flash-item .content .title-link {
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    display: inline;
}

.flash-item .content .title-link:hover {
    color: #4a6cf7;
}

.flash-item .content .category-tag {
    font-size: 0.7rem;
    color: #4a6cf7;
    background: #eef2ff;
    padding: 1px 10px;
    border-radius: 12px;
    margin-left: 8px;
    white-space: nowrap;
}

.flash-item .content .summary {
    color: #475569;
    font-size: 0.9rem;
    margin-top: 4px;
}

.flash-item .content .source {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flash-item .content .source a {
    color: #94a3b8;
    text-decoration: none;
}

.flash-item .content .source a:hover {
    color: #4a6cf7;
}

/* ===== 首页响应式 ===== */
@media (max-width: 992px) {
    .flash-item {
        flex-direction: column;
        gap: 4px;
    }

    .flash-item .time {
        min-width: auto;
        font-size: 0.78rem;
        color: #94a3b8;
    }

    .flash-item .time .important-tag {
        display: inline;
        margin-left: 8px;
    }
}

@media (max-width: 576px) {
    .category-bar .category-item {
        font-size: 0.78rem;
        padding: 4px 12px;
    }

    .hot-tags .tag {
        font-size: 0.7rem;
        padding: 2px 10px;
    }

    .date-header {
        font-size: 0.9rem;
    }

    .flash-item {
        padding: 12px 14px;
    }

    .flash-item .content .summary {
        font-size: 0.85rem;
    }
}
/* ============================================================
   首页 - 论坛帖子风格
   ============================================================ */

/* ===== 帖子列表 ===== */
.forum-post-item {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #eef2f6;
    transition: all 0.15s ease;
    align-items: flex-start;
    margin-bottom: 6px;
}

.forum-post-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

/* 序号 */
.post-index {
    flex-shrink: 0;
    width: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    padding-top: 2px;
}

/* 帖子主体 */
.post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.post-title .title-link {
    color: #1a1a2e;
    text-decoration: none;
    transition: color 0.15s;
}

.post-title .title-link:hover {
    color: #4a6cf7;
}

/* 徽章 */
.post-title .badge-important {
    background: #fef3c7;
    color: #92400e;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 600;
    white-space: nowrap;
}

.post-title .badge-category {
    background: #eef2ff;
    color: #4a6cf7;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 0.55rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 底部信息 */
.post-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.post-info .author {
    font-weight: 500;
    color: #4a6cf7;
}

.post-info .replies,
.post-info .views,
.post-info .time {
    display: flex;
    align-items: center;
    gap: 2px;
}

.post-info i {
    font-size: 0.6rem;
}

/* ===== 移动端适配 ===== */
@media (max-width: 576px) {
    .forum-post-item {
        padding: 8px 10px;
        gap: 8px;
        border-radius: 6px;
    }
    .post-index {
        width: 22px;
        font-size: 0.6rem;
    }
    .post-title {
        font-size: 0.82rem;
    }
    .post-title .badge-important,
    .post-title .badge-category {
        font-size: 0.45rem;
        padding: 0 6px;
    }
    .post-info {
        font-size: 0.6rem;
        gap: 4px 8px;
    }
    .post-info i {
        font-size: 0.5rem;
    }
}

/* ===== 深色模式适配 ===== */
[data-theme="dark"] .forum-post-item {
    background: var(--bg-card);
    border-color: var(--border-light);
}

[data-theme="dark"] .forum-post-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color);
}

[data-theme="dark"] .post-title .title-link {
    color: var(--text-primary);
}

[data-theme="dark"] .post-title .title-link:hover {
    color: var(--text-link);
}

[data-theme="dark"] .post-info .author {
    color: var(--text-link);
}