/* ── Articles Page Styles ── */

/* ── Hero ── */
.articles-hero {
  padding: 56px 32px;
  text-align: center;
  background: var(--gradient-hero);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
  color: white;
  position: relative;
  overflow: hidden;
}
.articles-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.articles-hero h1 {
  margin: 0 0 12px 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
}
.articles-hero p {
  margin: 0 auto;
  font-size: clamp(15px, 1.8vw, 17px);
  opacity: 0.88;
  max-width: 520px;
  line-height: 1.7;
  position: relative;
}

/* ── Content Section (override for articles) ── */
.content-section {
  padding: 48px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
  box-shadow: var(--shadow-card);
}

/* ── 分类筛选 ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-tag {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85em;
  font-weight: 500;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-tag:hover {
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--primary-color);
}
.filter-tag.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ── 文章卡片列表 ── */
.articles-list {
  max-width: var(--inner-max);
  margin: 0 auto;
}
.article-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(79, 70, 229, 0.15);
  color: inherit;
  text-decoration: none;
}
.article-cover {
  flex-shrink: 0;
  width: 180px;
  height: 108px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-cover .cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  background: var(--bg-subtle);
}
.article-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.article-date {
  font-size: 0.82em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.article-category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 500;
  background: rgba(79, 70, 229, 0.06);
  color: var(--primary-color);
}
.article-card h3 {
  margin: 0 0 6px 0;
  font-size: 1.05em;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.article-card .article-summary {
  margin: 0;
  font-size: 0.87em;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-source {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── 空状态 ── */
.articles-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
  font-size: 0.95em;
}

/* ── 订阅提示 ── */
.subscribe-banner {
  text-align: center;
  padding: 40px 32px;
  background: var(--gradient-hero);
  border-radius: var(--card-radius);
  margin-bottom: var(--section-gap);
  color: white;
  position: relative;
  overflow: hidden;
}
.subscribe-banner::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.subscribe-banner h2 {
  margin: 0 0 10px 0;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  position: relative;
}
.subscribe-banner p {
  margin: 0 auto 24px auto;
  opacity: 0.85;
  font-size: 15px;
  max-width: 460px;
  position: relative;
}
.subscribe-banner .btn {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 32px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  position: relative;
}
.subscribe-banner .btn:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

/* ── 响应式 ── */
@media (max-width: 767px) {
  .articles-hero { padding: 40px 20px; }
  .content-section { padding: 28px 20px; }
  .article-card { flex-direction: column; gap: 14px; }
  .article-cover { width: 100%; height: 180px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .article-cover { width: 150px; height: 90px; }
}
