/* ============================================================
   媒见GEO · 资讯页
   精选 SEO 新法则 + 学习路径 + 分类卡片网格
   ============================================================ */

.news-page {
  background: var(--bg, #F8FAFD);
  min-height: 60vh;
}

/* ===== Hero：精选技术地图 ===== */
.news-hero {
  position: relative;
  padding: 48px 0 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(79, 107, 255, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 100%, rgba(15, 118, 110, 0.06), transparent 50%),
    #fff;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.06));
}

.news-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.news-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary, #4F6BFF);
  background: rgba(79, 107, 255, 0.1);
  border: 1px solid rgba(79, 107, 255, 0.18);
}

.news-page-kicker {
  margin: 0 0 8px !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #4F6BFF) !important;
  max-width: none !important;
}

.news-hero-copy .news-page-title {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--ink, #050816);
}

.news-hero-copy .news-hero-featured-title {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--ink, #050816);
}

.news-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--ink, #050816);
}

.news-hero-copy p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted, #5b6478);
  max-width: 42ch;
}

.news-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.news-hero-actions .btn-ghost {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--ink, #050816);
  padding: 0 18px;
  height: var(--btn-h, 46px);
  border-radius: var(--btn-radius, 12px);
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.news-hero-actions .btn-ghost:hover {
  border-color: var(--primary, #4F6BFF);
  background: rgba(79, 107, 255, 0.04);
}

.news-hero-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 24px 56px rgba(5, 8, 22, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.news-hero-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 64px rgba(79, 107, 255, 0.18),
    0 0 0 1px rgba(79, 107, 255, 0.12);
}

.news-hero-card--image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eef1ff;
}

.news-hero-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--primary, #4F6BFF);
  box-shadow: 0 8px 20px rgba(79, 107, 255, 0.4);
}

/* ===== 学习路径 ===== */
.news-path {
  padding: 40px 0;
  background: #fff;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, 0.06));
}

.news-path-head {
  margin-bottom: 24px;
}

.news-path-head h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink, #050816);
}

.news-path-head p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted, #5b6478);
}

.news-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
}

.news-path-steps > li:not(.news-path-arrow) {
  flex: 1 1 140px;
  min-width: 140px;
}

.news-path-steps a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  background: var(--bg, #F8FAFD);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.news-path-steps a:hover {
  border-color: rgba(79, 107, 255, 0.35);
  box-shadow: 0 12px 28px rgba(79, 107, 255, 0.1);
  transform: translateY(-2px);
}

.news-path-steps .is-featured a {
  background: linear-gradient(160deg, #eef1ff 0%, #f8fafd 100%);
  border-color: rgba(79, 107, 255, 0.35);
  box-shadow: 0 8px 24px rgba(79, 107, 255, 0.1);
}

.news-path-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary, #4F6BFF);
}

.news-path-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #050816);
  letter-spacing: -0.02em;
}

.news-path-desc {
  font-size: 12.5px;
  color: var(--muted, #5b6478);
}

.news-path-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  color: var(--muted-2, #9aa3b8);
  font-size: 18px;
  font-weight: 300;
}

/* ===== 列表区 ===== */
.news-body {
  padding: 48px 0 100px;
}

.news-body-head {
  margin-bottom: 20px;
}

.news-body-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink, #050816);
}

.news-body-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #5b6478);
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  box-shadow: 0 4px 16px rgba(5, 8, 22, 0.03);
}

.news-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted, #5b6478);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.news-tab:hover {
  background: rgba(79, 107, 255, 0.06);
  color: var(--ink, #050816);
}

.news-tab.active {
  background: var(--ink, #050816);
  color: #fff;
}

/* ===== Cards ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(5, 8, 22, 0.05);
  border: 1px solid var(--line, rgba(0, 0, 0, 0.06));
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 107, 255, 0.25);
  box-shadow: 0 18px 44px rgba(79, 107, 255, 0.12);
}

.news-card.is-featured {
  border-color: rgba(79, 107, 255, 0.3);
  box-shadow: 0 12px 36px rgba(79, 107, 255, 0.12);
}

.news-card-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 18px 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  overflow: hidden;
  background: #1a1f3a;
}

.news-card-cover.has-image {
  padding: 0;
}

.news-card-cover.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card-cover.theme-ink {
  background: linear-gradient(145deg, #0a1030 0%, #1a2a6e 50%, #4F6BFF 100%);
}

.news-card-cover.theme-slate {
  background: linear-gradient(145deg, #1e293b 0%, #334155 55%, #64748b 100%);
}

.news-card-cover.theme-teal {
  background: linear-gradient(145deg, #0f766e 0%, #14b8a6 55%, #5eead4 100%);
}

.news-card-cover.theme-amber {
  background: linear-gradient(145deg, #b45309 0%, #f59e0b 55%, #fcd34d 100%);
  color: #1a1a1a;
}

.news-card-cover.theme-rose {
  background: linear-gradient(145deg, #9f1239 0%, #e11d48 50%, #fb7185 100%);
}

.news-card-cover.theme-blue {
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 50%, #60a5fa 100%);
}

.news-card-cover-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-cover.theme-amber .news-card-cover-title {
  color: #1a1a1a;
}

.news-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(8px);
}

.news-card-badge.is-new {
  background: var(--primary, #4F6BFF);
}

.news-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card-cat {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79, 107, 255, 0.08);
  color: var(--primary, #4F6BFF);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.news-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink, #050816);
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted, #5b6478);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted-2, #9aa3b8);
}

.news-card-meta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.7;
}

.news-empty,
.news-loading {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2, #9aa3b8);
}

.news-noscript {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.news-noscript li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.news-noscript a {
  color: var(--primary, #4F6BFF);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .news-hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .news-path-arrow {
    display: none;
  }

  .news-path-steps > li:not(.news-path-arrow) {
    flex: 1 1 calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .news-hero {
    padding: 28px 0 24px;
  }

  .news-path {
    padding: 28px 0;
  }

  .news-path-steps > li:not(.news-path-arrow) {
    flex: 1 1 100%;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-tabs {
    gap: 4px;
  }

  .news-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .news-body {
    padding: 32px 0 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .news-hero-card,
  .news-path-steps a {
    transition: none;
  }
}
