/* ===== 文章中心 page-news ===== */
.page-news {
  --news-ink: #39FF88;
  --news-flame: #FF6A00;
  --news-data: #00E5FF;
  --news-panel: rgba(14, 22, 45, 0.8);
  --news-glass: rgba(255, 255, 255, 0.08);
  --news-radius: 18px;

  position: relative;
  overflow: hidden;
  padding: 120px 20px 56px;
  background:
    radial-gradient(900px 320px at 88% -8%, rgba(255, 106, 0, 0.18), transparent 55%),
    radial-gradient(760px 420px at -10% 30%, rgba(57, 255, 136, 0.08), transparent 60%),
    linear-gradient(160deg, var(--bg-primary) 0%, var(--bg-secondary) 85%);
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.page-news::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 300px;
  background: linear-gradient(135deg, rgba(57, 255, 136, 0.12), transparent 60%);
  border-bottom-left-radius: 48px;
  pointer-events: none;
  z-index: 0;
}

.page-news .news-hero,
.page-news .news-categories,
.page-news .news-layout {
  position: relative;
  z-index: 1;
}

.page-news .news-hero {
  max-width: 1280px;
  margin: 0 auto 36px;
}

.page-news .breadcrumbs {
  margin-bottom: 28px;
}

.page-news .breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.page-news .breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.page-news .breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(160, 176, 204, 0.5);
}

.page-news .breadcrumbs__link {
  color: var(--accent-data);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-news .breadcrumbs__link:hover {
  color: var(--accent-green);
}

.page-news .news-hero__inner {
  display: grid;
  gap: 24px;
}

.page-news .news-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid var(--border-green);
  border-radius: 999px;
  background: rgba(57, 255, 136, 0.08);
  color: var(--accent-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-news .news-hero__title {
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.page-news .news-hero__subtitle {
  margin: 12px 0 0;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--accent-green);
}

.page-news .news-hero__desc {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.page-news .news-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.page-news .hero-stat {
  position: relative;
  flex: 1 1 130px;
  padding: 16px 16px 14px;
  background: var(--news-panel);
  border: 1px solid var(--border-soft);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.page-news .hero-stat--warm {
  border-color: rgba(255, 106, 0, 0.4);
}

.page-news .hero-stat__num {
  display: block;
  font-family: var(--font-number);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--accent-green);
}

.page-news .hero-stat--warm .hero-stat__num {
  color: var(--accent-orange);
}

.page-news .hero-stat__unit {
  font-size: 20px;
  color: var(--accent-data);
}

.page-news .hero-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ===== 栏目分类 ===== */
.page-news .news-categories {
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 18px 20px;
  border: 1px solid var(--border-green);
  background: var(--news-glass);
  border-radius: 999px;
}

.page-news .news-categories__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-news .news-categories__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-news .news-categories__list::-webkit-scrollbar {
  display: none;
}

.page-news .news-categories__item {
  flex: 0 0 auto;
}

.page-news .cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-green);
  background: rgba(10, 14, 39, 0.4);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-news .cat-tag:hover {
  border-color: var(--accent-green);
  background: rgba(57, 255, 136, 0.12);
}

.page-news .cat-tag.is-active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #0A0E27;
  font-weight: 700;
}

.page-news .cat-tag__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.15);
  font-family: var(--font-number);
  font-size: 12px;
  color: var(--accent-data);
}

.page-news .cat-tag.is-active .cat-tag__num {
  background: rgba(10, 14, 39, 0.18);
  color: #0A0E27;
}

/* ===== 新闻布局 ===== */
.page-news .news-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.page-news .news-feed {
  min-width: 0;
}

.page-news .feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-news .section-title {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.page-news .section-title__zh {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.page-news .section-title__en {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-green);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-news .feed-head__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.page-news .feed-head__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, 0.16);
}

.page-news .news-grid {
  display: grid;
  gap: 20px;
}

/* ===== 文章卡片 ===== */
.page-news .article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--news-radius);
  border: 1px solid var(--border-soft);
  background: var(--news-panel);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-news .article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-green);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-news .article-card__index {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(57, 255, 136, 0.35);
  background: rgba(10, 14, 39, 0.82);
  font-family: var(--font-number);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-green);
  backdrop-filter: blur(8px);
}

.page-news .article-card__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--news-glass);
}

.page-news .article-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.28) 0%, rgba(10, 14, 39, 0) 45%);
  pointer-events: none;
}

.page-news .article-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .article-card--featured .article-card__media {
  aspect-ratio: 16 / 10;
}

.page-news .article-card--data .article-card__media {
  aspect-ratio: 3 / 2;
}

.page-news .article-card--version .article-card__media {
  aspect-ratio: 5 / 3;
}

.page-news .article-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 22px;
}

.page-news .article-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.page-news .article-card__tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-green);
  color: #0A0E27;
  font-size: 13px;
  font-weight: 700;
}

.page-news .article-card__time {
  font-family: var(--font-number);
  font-size: 13px;
  color: var(--text-secondary);
}

.page-news .article-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.page-news .article-card p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-news .article-card__link {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 136, 0.3);
  background: rgba(57, 255, 136, 0.1);
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-news .article-card__link::after {
  content: "→";
  margin-left: 6px;
  transition: margin-left 0.2s ease;
}

.page-news .article-card__link:hover {
  background: var(--accent-green);
  color: #0A0E27;
}

.page-news .article-card__link:hover::after {
  margin-left: 10px;
}

.page-news .article-card--slim {
  background:
    linear-gradient(135deg, rgba(57, 255, 136, 0.06) 0%, transparent 45%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 10px),
    var(--news-panel);
}

.page-news .article-card--slim .article-card__content {
  padding: 26px 24px 28px;
}

.page-news .article-card--slim h3 {
  font-size: 20px;
}

/* ===== 推荐阅读 ===== */
.page-news .recommend-panel {
  min-width: 0;
  padding: 22px;
  border-radius: var(--news-radius);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(16, 42, 31, 0.7), rgba(14, 22, 45, 0.8)),
    var(--news-glass);
}

.page-news .recommend-panel__head {
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}

.page-news .recommend-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-news .recommend-item + .recommend-item {
  border-top: 1px solid var(--border-soft);
}

.page-news .recommend-item__link {
  display: block;
  padding: 16px 0;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.page-news .recommend-item__link:hover {
  transform: translateX(4px);
}

.page-news .recommend-item--featured .recommend-item__link {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
}

.page-news .recommend-item__thumb {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 2;
  background: var(--news-glass);
}

.page-news .recommend-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-news .recommend-item__body {
  min-width: 0;
}

.page-news .recommend-item__tag {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 106, 0, 0.4);
  color: var(--accent-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-news .recommend-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
}

.page-news .recommend-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ===== 响应式：平板 768px ===== */
@media (min-width: 768px) {
  .page-news {
    padding: 128px 32px 64px;
  }

  .page-news .news-categories__list {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .page-news .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .page-news .article-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .page-news .article-card--featured .article-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .page-news .article-card--data,
  .page-news .article-card--version {
    height: 100%;
  }

  .page-news .article-card--slim:nth-last-child(1) {
    grid-column: 1 / -1;
  }
}

/* ===== 响应式：桌面 1024px ===== */
@media (min-width: 1024px) {
  .page-news .news-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    align-items: end;
    gap: 48px;
  }

  .page-news .news-hero__stats {
    margin-top: 0;
  }

  .page-news .news-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
  }

  .page-news .recommend-panel {
    position: sticky;
    top: 100px;
  }

  .page-news .section-title__zh {
    font-size: 32px;
  }
}

/* ===== 减弱动效 ===== */
@media (prefers-reduced-motion: reduce) {
  .page-news .article-card,
  .page-news .article-card__link,
  .page-news .article-card__link::after,
  .page-news .recommend-item__link,
  .page-news .breadcrumbs__link,
  .page-news .cat-tag {
    transition: none;
  }

  .page-news .article-card:hover,
  .page-news .recommend-item__link:hover {
    transform: none;
  }
}
