:root {
  --bg: #0d0d0f;
  --bg-card: #16161a;
  --bg-elevated: #1c1c21;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --live: #22c55e;
  --urgent: #ef4444;
  --border: #27272a;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ----- 顶部 Breaking 滚动条 ----- */
.ticker-wrap {
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
}

.ticker-label {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
}

.ticker {
  flex: 1;
  overflow: hidden;
  padding: 0.5rem 0;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 60s linear infinite;
  font-size: 0.9rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-content:hover {
  animation-play-state: paused;
}

/* ----- 实时状态条 ----- */
.status-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.status-divider {
  color: var(--border);
  font-weight: 300;
  margin: 0 0.15rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.live {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.5s ease-in-out infinite;
}

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

.timer {
  font-weight: 600;
  color: var(--accent);
}

.last-update {
  color: var(--text-muted);
  margin-left: auto;
  font-size: 0.8125rem;
}

/* ----- 主标题区 ----- */
.hero {
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ----- 时间线区块 ----- */
.timeline-section {
  padding: 0 1.5rem 2.5rem;
  flex: 1;
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.timeline-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.live-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--live);
  background: rgba(34, 197, 94, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab {
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.timeline-list {
  min-height: 200px;
  position: relative;
}

.timeline-loading {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
}

.timeline-loading.hidden {
  display: none;
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.timeline-item:hover {
  border-color: var(--accent);
}

.timeline-item.urgent {
  border-left: 3px solid var(--urgent);
}

.timeline-item .item-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.timeline-item .item-tag {
  font-size: 0.6875rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
}

.timeline-item .item-tag.urgent {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.timeline-item .item-tag.developing {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent);
}

.timeline-item .item-tag.analysis {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.timeline-item .item-tag.market {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.timeline-item .item-title {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.timeline-item .item-source {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.timeline-item .item-title-link {
  font-weight: 500;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
  display: block;
  color: var(--text);
  text-decoration: none;
}

.timeline-item .item-title-link:hover {
  color: var(--accent);
}

.timeline-error,
.timeline-empty {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.timeline-error {
  color: #f87171;
}

/* ----- 分享区 ----- */
.share-section {
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.share-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.share-section p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.share-btn:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
}

/* ----- 响应式 ----- */
@media (max-width: 640px) {
  .status-bar {
    font-size: 0.8125rem;
  }
  .last-update {
    margin-left: 0;
    width: 100%;
  }
  .hero {
    padding: 2rem 1rem 2rem;
  }
  .stats {
    gap: 1.5rem;
  }
}
