:root {
  color-scheme: light;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
  color: #172033;
  background: #f4f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.page-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.hero {
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 8px;
}

.hero p {
  margin: 0;
  color: #52607a;
}

.status-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.status-item,
.news-card {
  background: #ffffff;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(20, 32, 56, 0.06);
}

.status-item .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6781;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #d8e1ee;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(20, 32, 56, 0.06);
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5a6781;
}

.filter-select {
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid #c9d6ea;
  border-radius: 10px;
  background: #f9fbff;
  color: #172033;
  font: inherit;
}

.filter-select:focus {
  outline: 2px solid rgba(29, 78, 216, 0.18);
  border-color: #1d4ed8;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #5a6781;
}

.source {
  font-weight: 700;
  color: #1d4ed8;
}

.title-en {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.title-zh {
  margin: 0 0 16px;
  color: #30415f;
  font-size: 1rem;
}

.reddit-meta,
.news-summary {
  margin: 0 0 12px;
  color: #52607a;
}

.news-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-article-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #2563eb;
  border-radius: 10px;
  background: #ffffff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.read-article-button:hover {
  background: #eff6ff;
  text-decoration: none;
}

@media (max-width: 640px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-select {
    min-width: 0;
    width: 100%;
  }
}

.empty-state {
  color: #5a6781;
}
