* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 快讯容器 */
.flash-news-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 标题栏 */
.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
}

.flash-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-title i {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.flash-title h1 {
    font-size: 22px;
    font-weight: 700;
}

.flash-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    opacity: 0.9;
}

.stat-item i {
    font-size: 16px;
}

/* 控制按钮 */
.flash-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* 分类筛选 */
.flash-filters {
    padding: 18px 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    overflow-x: auto;
    scrollbar-width: none;
}

.filters-container {
    display: flex;
    gap: 10px;
    min-width: max-content;
}

.filter-btn {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: #0d6efd;
    color: #0d6efd;
}

.filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

/* 快讯列表 */
.flash-list {
    max-height: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 #f1f1f1;
}

/* 自定义滚动条 */
.flash-list::-webkit-scrollbar {
    width: 6px;
}

.flash-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.flash-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.flash-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 快讯项 */
.flash-item {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 16px;
    transition: all 0.3s;
    position: relative;
}

.flash-item:hover {
    background: #f8fbfe;
}

.flash-item:last-child {
    border-bottom: none;
}

.flash-item.hot::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #ff6b6b, #ffa726);
}

.flash-item.important::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #0d6efd, #6610f2);
}

/* 时间标签 */
.time-badge {
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.time {
    font-size: 14px;
    font-weight: 600;
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.date {
    font-size: 12px;
    color: #999;
}

/* 内容区域 */
.flash-content {
    flex: 1;
}

.flash-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}



.flash-text {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #333;
}

.flash-source {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
}

.source-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.source-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.interactions {
    display: flex;
    gap: 16px;
}

.interaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 13px;
}

.interaction-btn:hover {
    color: #0d6efd;
}

.interaction-btn i {
    font-size: 14px;
}

/* 实时更新指示器 */
.live-indicator {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.live-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.3);
    transition: all 0.3s;
}

.live-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: #ff4757;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

/* 空状态 */
.empty-state {
    padding: 60px 24px;
    text-align: center;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

/* 动画 */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

.new-item {
    animation: slideIn 0.5s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {


    .flash-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px;
    }

    .flash-stats {
        width: 100%;
        justify-content: space-between;
    }

    .flash-controls {
        position: absolute;
        right: 16px;
        top: 16px;
    }

    .flash-filters {
        padding: 12px 16px;
    }

    .flash-item {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }

    .time-badge {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        min-width: auto;
    }

    .time {
        margin-bottom: 0;
    }

    .flash-text {
        font-size: 14px;
    }

    .live-indicator {
        bottom: 20px;
        right: 20px;
    }

    .live-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .flash-title h1 {
        font-size: 18px;
    }

    .stat-item {
        font-size: 12px;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .interactions {
        gap: 12px;
    }

    .interaction-btn span {
        display: none;
    }

    .interaction-btn i {
        font-size: 16px;
    }

    .live-btn span {
        display: none;
    }

    .live-btn {
        padding: 12px;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
    }

    .flash-news-container {
        background: #2d2d2d;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .flash-filters {
        background: #252525;
        border-bottom-color: #404040;
    }

    .filter-btn {
        background: #3d3d3d;
        border-color: #404040;
        color: #bbb;
    }

    .filter-btn.active {
        background: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

    .flash-item {
        border-bottom-color: #404040;
    }

    .flash-item:hover {
        background: #353535;
    }

    .flash-text {
        color: #e0e0e0;
    }

    .flash-source {
        color: #aaa;
    }

    .source-logo {
        background: #404040;
    }
}
