*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background: #0b0b0b;
  color: #c8d0dc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.fl-wrap {
  max-width: 960px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 20px 16px 60px;
}

/* ── Header ── */
.fl-header {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #21262d;
  width: 100%;
  min-width: 0;
}

.fl-title {
  font-size: 18px;
  font-weight: 700;
  color: #e8edf3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fl-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.fl-live {
  font-size: 10px;
  background: #ef4444;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.fl-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.fl-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #8892a4;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}
.fl-btn:hover, .fl-btn.active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.fl-status {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}
.fl-status.connected    { color: #10b981; }
.fl-status.reconnecting { color: #f59e0b; }

/* ── List ── */
.fl-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 400px;
}

.fl-loading {
  text-align: center;
  padding: 40px;
  color: #4b5568;
}

/* ── Item ── */
.fl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #161b22;
  transition: background 0.3s;
  width: 100%;
  min-width: 0;
}

.fl-item.fl-new {
  animation: highlight 2s ease-out;
}

@keyframes highlight {
  0%   { background: rgba(29, 78, 216, 0.15); }
  100% { background: transparent; }
}

.fl-item.high .fl-item-title a,
.fl-item.high .fl-item-title {
  color: #fbbf24;
}

.fl-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 44px;
  padding-top: 2px;
}

.fl-tag {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
}
.fl-tag.high        { background: #7f1d1d; color: #fca5a5; }
.fl-tag.cat-macro   { background: #1e3a5f; color: #60a5fa; }
.fl-tag.cat-crypto  { background: #1a2f1a; color: #4ade80; }

.fl-item-body {
  flex: 1;
  min-width: 0;
}

.fl-item-title {
  font-size: 14px;
  color: #e8edf3;
  line-height: 1.5;
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fl-item-title a {
  color: inherit;
  text-decoration: none;
}
.fl-item-title a:hover { color: #4b9eff; }

.fl-item-en {
  font-size: 12px;
  color: #4b5568;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 80px;
  padding-top: 2px;
}

.fl-source {
  font-size: 11px;
  color: #6b7280;
  background: #21262d;
  padding: 1px 6px;
  border-radius: 3px;
}

.fl-time {
  font-size: 11px;
  color: #4b5568;
  white-space: nowrap;
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .fl-item-en     { display: none; }
  .fl-item-right  { min-width: 60px; }
  .fl-status      { display: none; }
}

/* ── 加载更多按钮 ── */
.fl-loadmore-btn {
  background: #21262d;
  border: 1px solid #30363d;
  color: #8892a4;
  padding: 8px 32px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.fl-loadmore-btn:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

/* ── 修复来源标签宽度，防止撑宽右栏 ── */
.fl-item-right {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  flex-shrink: 0;
}
.fl-source {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

/* ── 阅读原文链接 ── */
.fl-read-link {
  display: inline-block;
  margin-left: 6px;
  color: #4b8cf5;
  font-size: 11px;
  text-decoration: none;
  background: rgba(75,140,245,0.12);
  border: 1px solid rgba(75,140,245,0.3);
  border-radius: 3px;
  padding: 0 5px;
  vertical-align: middle;
  line-height: 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.fl-read-link:hover { background: rgba(75,140,245,0.25); color: #7db3ff; }

/* 2026-04-15: 锁定快讯页容器宽度，避免部分筛选结果因长文本撑宽导致页面跳动 */
.fl-wrap,
.fl-header,
.fl-list,
.fl-item {
  width: 100%;
  min-width: 0;
}

.fl-list,
.fl-item,
.fl-item-body,
.fl-item-title,
.fl-item-en {
  overflow-x: hidden;
}

.fl-item-title,
.fl-item-en {
  overflow-wrap: anywhere;
  word-break: break-word;
}
