/* ====== 新闻中心页样式 ====== */

.news-load-error {
  text-align: center;
  padding: 2.5rem 1rem;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 auto;
}

.news-load-error code {
  font-size: 13px;
  padding: 0.1rem 0.35rem;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 4px;
}

.news-footer-admin {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 13px;
  opacity: 0.85;
}

.nav-active {
  color: var(--accent) !important;
  font-weight: 700;
}

/* ====== Hero ====== */
.news-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(168deg, #020617 0%, #0f172a 30%, #1e1b4b 65%, #0c0a1d 100%);
  color: #e2e8f0;
}

.news-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(34, 211, 238, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 75%, rgba(168, 85, 247, 0.08), transparent 50%);
}

.news-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.news-hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.news-hero__eyebrow {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neo-cyan);
  padding: 0.25rem 0.85rem;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 1.25rem;
}

.news-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.news-hero__lead {
  max-width: 40rem;
  margin: 0 auto 2rem;
  font-size: 15px;
  line-height: 1.75;
  color: #94a3b8;
}

/* 分类 Tab */
.news-hero__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.news-tab {
  padding: 0.5rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background 0.25s;
}

.news-tab:hover {
  border-color: rgba(34, 211, 238, 0.4);
  color: #e2e8f0;
}

.news-tab--active {
  border-color: rgba(34, 211, 238, 0.6);
  color: #fff;
  background: rgba(34, 211, 238, 0.12);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
}

/* ====== 置顶推荐 ====== */
.news-featured {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 50%, #f8fafc 100%);
}

.news-featured__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 860px) {
  .news-featured__grid {
    grid-template-columns: 1fr;
  }
}

.news-featured__main {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.12);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s, transform 0.25s;
}

.news-featured__main:hover {
  box-shadow: 0 16px 48px rgba(8, 145, 178, 0.12);
  transform: translateY(-3px);
}

.news-featured__img {
  position: relative;
  height: 220px;
  background: linear-gradient(135deg, #0891b2 0%, #6366f1 50%, #a855f7 100%);
  overflow: hidden;
}

.news-featured__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #0891b2;
}

.news-featured__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.12), transparent 50%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
}

.news-featured__body {
  padding: 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-featured__body h2 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: #0c1222;
  line-height: 1.35;
}

.news-featured__body p {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.75;
  color: #475569;
  flex: 1;
}

.news-readmore {
  font-size: 14px;
  font-weight: 600;
  color: #0891b2;
}

.news-featured__main:hover .news-readmore {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-featured__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-featured__side-card {
  flex: 1;
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.news-featured__side-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
}

.news-featured__side-cat {
  display: inline-block;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 5px;
  background: rgba(14, 165, 233, 0.08);
  color: #0891b2;
}

.news-featured__side-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #0c1222;
  line-height: 1.45;
}

/* ====== 日期通用 ====== */
.news-date {
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

/* ====== 文章列表 ====== */
.news-list-section {
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f5f3ff 100%);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 860px;
  margin: 0 auto;
}

/* 文章卡片 */
.news-card {
  position: relative;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(14, 165, 233, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.3s;
}

.news-card--visible {
  opacity: 1;
  transform: translateY(0);
}

.news-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 40px rgba(8, 145, 178, 0.1);
}

.news-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, #0891b2 20%, #6366f1 50%, #a855f7 80%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.news-card:hover .news-card__accent {
  opacity: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.news-card__cat {
  font-size: 11px;
  font-weight: 700;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.news-card__cat--product {
  background: rgba(14, 165, 233, 0.1);
  color: #0891b2;
}

.news-card__cat--industry {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.news-card__cat--guide {
  background: rgba(5, 150, 105, 0.1);
  color: #059669;
}

.news-card__cat--case {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.news-card__title {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #0c1222;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.news-card__excerpt {
  margin: 0 0 0.85rem;
  font-size: 14.5px;
  line-height: 1.82;
  color: #475569;
}

.news-card__excerpt:last-of-type {
  margin-bottom: 1.15rem;
}

.news-card__excerpt strong {
  font-weight: 700;
  color: #0f172a;
}

.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.news-card__tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 0.18rem 0.6rem;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.06);
  color: #0e7490;
  border: 1px solid rgba(14, 165, 233, 0.12);
}

/* 响应式 */
@media (max-width: 640px) {
  .news-card {
    padding: 1.5rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card {
    opacity: 1;
    transform: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
}
