* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f4f5; color: #1a1a1a; line-height: 1.6; padding-bottom: 56px;
}
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: linear-gradient(135deg, #b30000, #d32323);
  color: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.tabs { display: flex; gap: 8px; overflow-x: auto; }
.tab-btn {
  border: none; background: rgba(255,255,255,.16); color: #fff;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.tab-btn.active { background: #fff; color: #b30000; font-weight: 600; }
.refresh-btn {
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: #fff; color: #b30000; font-size: 20px; cursor: pointer; flex: none;
}
.refresh-btn:disabled { opacity: .5; }
#main { max-width: 640px; margin: 0 auto; padding: 12px 12px 20px; }
.banner {
  margin: 8px 4px 12px; padding: 10px 12px; border-radius: 10px;
  background: #fff7e6; color: #7a5b00; font-size: 13px;
}
.hero {
  background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #eee; }
.hero .body { padding: 12px 14px 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-right: 6px; }
.badge.headline { background: #d32323; color: #fff; }
.badge.key { background: #ffe8e8; color: #d32323; }
.badge.cat { background: #f0f0f0; color: #666; font-weight: 400; }
.hero h1 { font-size: 19px; margin: 8px 0 6px; }
.card {
  background: #fff; border-radius: 12px; margin-bottom: 10px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08); cursor: pointer;
}
.card .row { display: flex; gap: 10px; padding: 10px 12px; align-items: center; }
.card .thumb {
  width: 96px; height: 64px; border-radius: 8px; object-fit: cover; flex: none; background: #eee;
}
.card .txt { flex: 1; min-width: 0; }
.card .ttl { font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; background: #f0f4ff; color: #2b5bd7; padding: 1px 8px; border-radius: 999px; }
.analysis { display: none; border-top: 1px solid #f0f0f0; padding: 10px 12px 12px; }
.card.open .analysis { display: block; }
.hero .analysis { display: block; }
.sec { margin-top: 8px; }
.sec h3 { font-size: 13px; color: #b30000; margin-bottom: 2px; }
.sec p { font-size: 14px; color: #333; }
.stock-chip { display: inline-block; background: #f5f5f5; border-radius: 6px; padding: 2px 8px; font-size: 13px; margin: 2px 4px 2px 0; }
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; }
.chip { border: 1px solid #ddd; background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip.active { border-color: #d32323; color: #d32323; background: #fff5f5; font-weight: 600; }
.ep-brief {
  background: #fff; border-left: 4px solid #2b5bd7; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 12px; font-size: 13px; color: #444; white-space: pre-line;
}
.spinner { text-align: center; padding: 60px 0; color: #999; font-size: 14px; }
.empty { text-align: center; padding: 50px 20px; color: #666; }
.empty p { margin-top: 8px; font-size: 14px; }
.disclaimer {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 640px; margin: 0 auto;
  background: #fff; border-top: 1px solid #eee; text-align: center;
  font-size: 12px; color: #999; padding: 8px 12px;
}
.fade { opacity: .55; }

.video-link { display: inline-block; margin-top: 6px; color: #2b5bd7; font-size: 14px; text-decoration: none; font-weight: 500; }
.video-link:active { opacity: .7; }
.article-text { white-space: pre-line; font-size: 14px; color: #333; line-height: 1.7; }
