/* ============================================================
   PAGE NEWS — 营销资讯板块
   拓跋云 V4
   ============================================================ */

/* ─── Featured Article ─────────────────────────── */
.featured-article { margin-bottom: 16px; }
.fa-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
}
.fa-card:hover { box-shadow: var(--shadow-hover); border-color: var(--red-200); }
.fa-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}
.fa-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fa-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
  letter-spacing: 1px;
  align-self: flex-start;
}
.fa-title {
  font-size: 22px;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.fa-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}
.fa-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.fa-date, .fa-read-time { font-size: 12px; }

/* ─── Tag Color Variants ──────────────────────── */
.tag-tech, .tag-geo, .tag-ai, .tag-case, .tag-ads { background: var(--red-50); color: var(--red-500); }
.tag-company { background: #eff6ff; color: #2563eb; }
.tag-training { background: #fef3c7; color: #d97706; }
.tag-industry { background: #f0fdf4; color: #16a34a; }
.tag-seo { background: #fdf2f8; color: #db2777; }

/* ─── News Tab Bar ───────────────────────────── */
.news-tabs-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.news-tabs { display: flex; gap: 28px; }
.news-tab { font-size: 15px; font-weight: 500; color: var(--text-secondary); cursor: pointer; padding-bottom: 12px; border-bottom: 2px solid transparent; transition: var(--transition-fast); position: relative; }
.news-tab:hover { color: var(--red-500); }
.news-tab.active { color: var(--red-500); font-weight: 600; }
.news-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--red-500); }
.news-tab-dot { display: inline-block; width: 6px; height: 6px; background: var(--red-500); border-radius: 50%; margin-left: 4px; vertical-align: middle; }
.news-more { font-size: 14px; color: var(--red-500); font-weight: 500; white-space: nowrap; }

/* ─── News Card Horizontal ────────────────────── */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card-h {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}
.news-card-h:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.nch-link {
  display: flex;
  gap: 20px;
  padding: 16px;
  align-items: flex-start;
}
.nch-thumb {
  width: 160px;
  height: 110px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.nch-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nch-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nch-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}
.nch-date {
  font-size: 12px;
  color: var(--text-tertiary);
}
.nch-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.nch-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Sidebar ─────────────────────────────────── */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.widget-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red-100);
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-item {
  display: inline-block;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.tag-item:hover {
  background: var(--red-50);
  color: var(--red-500);
  border-color: var(--red-200);
}

/* Subscribe CTA */
.subscribe-cta {
  background: linear-gradient(135deg, var(--red-50), #fff);
  border-color: var(--border-red);
}
.sub-inner h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.sub-inner p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Hot List */
.hot-list {
  list-style: none;
  padding: 0;
}
.hot-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hot-list li:last-child { border-bottom: none; }
.hot-list a {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-list a:hover { color: var(--red-500); }
.hot-list span {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* Pagination */
.news-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-en);
}
.page-btn:hover { border-color: var(--red-300); color: var(--red-500); }
.page-btn.active {
  background: var(--red-500);
  color: #fff;
  border-color: var(--red-500);
}

/* ─── Layout main content (first column of grid) ── */
.layout-main-content { grid-column: 1; min-width: 0; }

/* ─── Article Detail Page ────────────────────────── */
.article-page { padding: 32px 0 48px; }

/* Article header */
.article-header { margin-bottom: 40px; }
.article-header, .article-body, .author-bio, .article-share {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.article-category {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 1px;
}
/* Category color variants */
.article-category.tag-tech { background: var(--red-50); color: var(--red-500); }
.article-category.tag-industry { background: #f0fdf4; color: #16a34a; }
.article-category.tag-company { background: #eff6ff; color: #2563eb; }
.article-category.tag-ai { background: #fdf2f8; color: #db2777; }
.article-category.tag-seo { background: #fef3c7; color: #d97706; }
.article-category.tag-training { background: #f5f3ff; color: #7c3aed; }
.article-date, .article-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
}
.article-date::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}
.article-reading-time::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}
.article-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.article-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}
.article-hero-image {
  width: 100%;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
}

/* Article body / prose */
.article-body { font-size: 16px; line-height: 1.85; color: var(--text-primary); }
.article-body h2 {
  font-size: 22px; font-weight: 700; margin: 40px 0 16px;
  color: var(--text-primary); line-height: 1.4;
}
.article-body h3 {
  font-size: 18px; font-weight: 600; margin: 28px 0 12px;
  color: var(--text-primary); line-height: 1.4;
}
.article-body p { margin-bottom: 16px; }
.article-body ul {
  margin: 16px 0 24px; padding-left: 24px;
}
.article-body ul li {
  margin-bottom: 10px; position: relative;
}
.article-body ul li::marker { color: var(--red-500); }
.article-body blockquote {
  margin: 28px 0; padding: 20px 24px;
  border-left: 3px solid var(--red-500);
  background: var(--gray-50); border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-body blockquote p { margin-bottom: 8px; font-style: italic; }
.article-body blockquote cite {
  font-size: 14px; color: var(--text-secondary); font-style: normal;
}
.article-body strong { font-weight: 700; }

/* Author bio */
.author-bio {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  margin: 48px 0;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.author-info p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Share buttons */
.article-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.share-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.share-btn:hover { border-color: var(--red-200); color: var(--red-500); }

/* Related articles */
.related-articles { margin: 48px 0; }
.related-articles h3 { font-size: 20px; font-weight: 600; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-base);
}
.related-card:hover { box-shadow: var(--shadow-hover); border-color: var(--red-200); }
.related-card img { width: 100%; height: 140px; object-fit: cover; }
.related-card div { padding: 12px 14px; }
.related-card h4 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.related-card span { font-size: 12px; color: var(--text-tertiary); }

/* Article CTA */
.article-cta {
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 48px 32px;
  margin: 48px 0;
}
.article-cta h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.article-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* ─── Responsive — all rules now centralized in responsive-mobile.css ─── */
