/* ============================================
   page-news – 品牌更新页专属样式
   作用域限定：.page-news
   移动端优先 + 桌面媒体查询 (min-width: 768px)
   ============================================ */
.page-news {
  --n-accent: var(--accent-neon, #00D4AA);
  --n-gold: var(--primary-gold, #F0C040);
  --n-deep: var(--primary-deep-purple, #2B0F4C);
  --n-bg: var(--bg-dark, #1A0A2E);
  --n-text: var(--text-light, #FFFFFF);
  --n-mono: var(--font-mono, 'JetBrains Mono', monospace);
  --n-body: var(--font-body, 'Inter', system-ui, sans-serif);
  --n-heading: var(--font-heading, 'Playfair Display', serif);
  --n-radius: var(--radius, 16px);
  --n-shadow: var(--shadow, 0 8px 24px rgba(0,0,0,0.4));
  --n-trans: var(--transition, 0.3s cubic-bezier(0.25, 0.1, 0.25, 1));

  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 1.5rem 1rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- 面包屑 ---------- */
.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--n-mono);
  font-size: 0.8rem;
  color: var(--mineral-gray, #7A7A7A);
  margin-bottom: 0.5rem;
}
.page-news .breadcrumb a {
  color: var(--n-gold);
  text-decoration: none;
  transition: opacity var(--n-trans);
}
.page-news .breadcrumb a:hover {
  opacity: 0.75;
}
.page-news .breadcrumb__sep {
  color: var(--n-gold);
  opacity: 0.6;
}

/* ---------- 首屏 ---------- */
.page-news .news-hero {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-news .news-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-news .news-hero__text {
  flex: 1;
}
.page-news .news-hero__title {
  font-family: var(--n-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--n-gold);
  margin: 0 0 0.25rem;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(240, 192, 64, 0.25);
}
.page-news .news-hero__sub {
  font-family: var(--n-mono);
  font-size: 1rem;
  color: var(--mineral-cream, #F5F0E8);
  opacity: 0.8;
  margin: 0;
}
.page-news .news-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.page-news .news-hero__img {
  max-width: 100%;
  height: auto;
  border-radius: var(--n-radius);
  box-shadow: var(--n-shadow);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* 最新更新高亮卡片 */
.page-news .news-feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--n-deep) 0%, #3D1A6E 100%);
  border: 2px solid var(--n-gold);
  border-radius: calc(var(--n-radius) + 4px);
  box-shadow: 0 0 30px rgba(240, 192, 64, 0.15), var(--n-shadow);
  position: relative;
  overflow: hidden;
}
.page-news .news-feature::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(240,192,64,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-news .news-feature__badge {
  display: inline-block;
  background: var(--n-gold);
  color: var(--n-deep);
  font-family: var(--n-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: flex-start;
}
.page-news .news-feature__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-news .news-feature__version {
  font-family: var(--n-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--n-gold);
  margin: 0;
}
.page-news .news-feature__summary {
  font-family: var(--n-body);
  font-size: 1rem;
  color: var(--mineral-cream, #F5F0E8);
  line-height: 1.6;
  margin: 0;
}
.page-news .news-feature__meta {
  display: flex;
  gap: 1.2rem;
  font-family: var(--n-mono);
  font-size: 0.8rem;
  color: var(--mineral-gray, #7A7A7A);
}
.page-news .news-feature__action {
  align-self: flex-start;
  margin-top: 0.3rem;
}
.page-news .news-feature__icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  align-self: center;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ---------- 通用区块标题 ---------- */
.page-news .news-section-title {
  font-family: var(--n-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--n-gold);
  margin: 0 0 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
  display: inline-block;
}
.page-news .news-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--n-gold), transparent);
  border-radius: 2px;
}

/* ---------- 时间轴 ---------- */
.page-news .news-timeline {
  position: relative;
}
.page-news .timeline-track {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: relative;
  padding-left: 2rem;
}
/* 垂直时间线（移动端） */
.page-news .timeline-track::before {
  content: '';
  position: absolute;
  left: 0.65rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--n-gold), var(--n-deep));
  border-radius: 2px;
  opacity: 0.6;
}

.page-news .timeline-item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(43, 15, 76, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(240, 192, 64, 0.15);
  border-radius: var(--n-radius);
  position: relative;
  transition: transform var(--n-trans), box-shadow var(--n-trans);
}
.page-news .timeline-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 20px rgba(240,192,64,0.05);
}
.page-news .timeline-item__node {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-shrink: 0;
  width: 1.2rem;
  position: relative;
  z-index: 2;
}
.page-news .timeline-item__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--n-gold);
  box-shadow: 0 0 12px rgba(240, 192, 64, 0.5);
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.page-news .timeline-item__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.page-news .timeline-item__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.page-news .timeline-item__version {
  font-family: var(--n-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--n-gold);
  letter-spacing: 0.02em;
}
.page-news .timeline-item__tag {
  display: inline-block;
  background: var(--n-accent);
  color: var(--n-deep);
  font-family: var(--n-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.page-news .timeline-item__summary {
  font-family: var(--n-body);
  font-size: 0.95rem;
  color: var(--mineral-cream, #F5F0E8);
  line-height: 1.5;
  margin: 0;
}
.page-news .timeline-item__detail {
  font-family: var(--n-body);
  font-size: 0.85rem;
  color: var(--mineral-gray, #7A7A7A);
  margin-top: 0.3rem;
  cursor: pointer;
}
.page-news .timeline-item__detail summary {
  color: var(--n-gold);
  font-family: var(--n-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: opacity var(--n-trans);
}
.page-news .timeline-item__detail summary:hover {
  opacity: 0.7;
}
.page-news .timeline-item__detail[open] summary {
  margin-bottom: 0.4rem;
}
.page-news .timeline-item__list {
  padding-left: 1.2rem;
  margin: 0.3rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.page-news .timeline-item__list li {
  line-height: 1.5;
}
.page-news .timeline-item__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.6;
}
.page-news .timeline-cta {
  margin-top: 1.2rem;
  font-family: var(--n-body);
  font-size: 0.9rem;
  color: var(--mineral-gray, #7A7A7A);
  text-align: center;
}
.page-news .timeline-cta a {
  color: var(--n-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 深度解析 ---------- */
.page-news .news-insight {
  position: relative;
}
.page-news .insight-article {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(43, 15, 76, 0.5), rgba(26, 10, 46, 0.8));
  border: 1px solid rgba(240, 192, 64, 0.12);
  border-radius: var(--n-radius);
}
.page-news .insight-article__media {
  order: -1;
}
.page-news .insight-article__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 2 / 1;
  box-shadow: var(--n-shadow);
}
.page-news .insight-article__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-news .insight-article__title {
  font-family: var(--n-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--n-gold);
  margin: 0;
  line-height: 1.3;
}
.page-news .insight-article__meta {
  font-family: var(--n-mono);
  font-size: 0.75rem;
  color: var(--n-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.page-news .insight-article__text {
  font-family: var(--n-body);
  font-size: 0.95rem;
  color: var(--mineral-cream, #F5F0E8);
  line-height: 1.7;
  margin: 0;
}
.page-news .insight-article__action {
  align-self: flex-start;
  margin-top: 0.3rem;
}

/* ---------- 订阅提醒 ---------- */
.page-news .news-subscribe {
  position: relative;
}
.page-news .subscribe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(240, 192, 64, 0.08), rgba(43, 15, 76, 0.6));
  border: 1px solid rgba(240, 192, 64, 0.2);
  border-radius: var(--n-radius);
  text-align: center;
}
.page-news .subscribe-card__icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.8;
}
.page-news .subscribe-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
  max-width: 480px;
}
.page-news .subscribe-card__prompt {
  font-family: var(--n-body);
  font-size: 1rem;
  color: var(--mineral-cream, #F5F0E8);
  margin: 0;
  line-height: 1.5;
}
.page-news .subscribe-card__form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.page-news .subscribe-card__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.page-news .subscribe-card__input-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.page-news .subscribe-card__input {
  flex: 1 1 200px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--n-text);
  font-family: var(--n-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--n-trans), box-shadow var(--n-trans);
}
.page-news .subscribe-card__input::placeholder {
  color: var(--mineral-gray, #7A7A7A);
  opacity: 0.6;
}
.page-news .subscribe-card__input:focus {
  border-color: var(--n-gold);
  box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.15);
}
.page-news .subscribe-card__btn {
  flex-shrink: 0;
}
.page-news .subscribe-card__note {
  font-family: var(--n-mono);
  font-size: 0.75rem;
  color: var(--mineral-gray, #7A7A7A);
  margin: 0;
}

/* ============================================
   桌面端 (min-width: 768px)
   ============================================ */
@media (min-width: 768px) {
  .page-news {
    padding: 2rem 2.5rem 4rem;
    gap: 3.5rem;
  }

  /* 首屏：横向排列 */
  .page-news .news-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .page-news .news-hero__title {
    font-size: 3.2rem;
  }
  .page-news .news-hero__img {
    width: 300px;
    height: 200px;
  }

  /* 高亮卡片：横向 */
  .page-news .news-feature {
    flex-direction: row;
    align-items: center;
    padding: 2rem 2.5rem;
  }
  .page-news .news-feature__icon {
    width: 140px;
    height: 140px;
  }
  .page-news .news-feature__version {
    font-size: 2rem;
  }

  /* 时间轴：水平方向交错 */
  .page-news .timeline-track {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 1.5rem;
    padding-left: 0;
    position: relative;
  }
  /* 移除垂直时间线 */
  .page-news .timeline-track::before {
    display: none;
  }
  /* 添加水平时间线 */
  .page-news .timeline-track::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    top: 2rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--n-gold), var(--n-accent), transparent);
    border-radius: 2px;
    opacity: 0.5;
    pointer-events: none;
  }

  .page-news .timeline-item {
    flex-direction: column;
    width: calc(50% - 1.5rem);
    padding: 1.5rem;
    gap: 0.8rem;
    position: relative;
    z-index: 2;
  }
  /* 奇偶上下交错 */
  .page-news .timeline-item:nth-child(odd) {
    margin-top: 0;
    margin-bottom: 3rem;
  }
  .page-news .timeline-item:nth-child(even) {
    margin-top: 3rem;
    margin-bottom: 0;
  }

  .page-news .timeline-item__node {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -1.2rem;
    width: auto;
  }
  .page-news .timeline-item:nth-child(even) .timeline-item__node {
    top: auto;
    bottom: -1.2rem;
  }
  .page-news .timeline-item__dot {
    width: 16px;
    height: 16px;
    margin-top: 0;
  }
  .page-news .timeline-item__img {
    width: 80px;
    height: 80px;
    align-self: flex-end;
  }

  /* 深度解析：横向布局 */
  .page-news .insight-article {
    flex-direction: row;
    align-items: flex-start;
    padding: 2rem;
    gap: 2rem;
  }
  .page-news .insight-article__media {
    order: 0;
    flex: 0 0 45%;
    max-width: 480px;
  }
  .page-news .insight-article__img {
    aspect-ratio: 2 / 1;
    width: 100%;
    height: auto;
  }
  .page-news .insight-article__body {
    flex: 1;
  }
  .page-news .insight-article__title {
    font-size: 1.6rem;
  }

  /* 订阅卡片横向 */
  .page-news .subscribe-card {
    flex-direction: row;
    text-align: left;
    padding: 2rem 2.5rem;
  }
  .page-news .subscribe-card__body {
    max-width: 500px;
  }
}

/* ============================================
   大桌面端 (min-width: 1024px)
   ============================================ */
@media (min-width: 1024px) {
  .page-news {
    padding: 2.5rem 3rem 5rem;
    gap: 4rem;
  }
  .page-news .timeline-item {
    width: calc(33.333% - 1.5rem);
  }
  .page-news .timeline-item:nth-child(odd) {
    margin-bottom: 4rem;
  }
  .page-news .timeline-item:nth-child(even) {
    margin-top: 4rem;
  }
  .page-news .news-hero__title {
    font-size: 4rem;
  }
  .page-news .news-section-title {
    font-size: 2.2rem;
  }
}

/* ============================================
   reduced-motion 兼容
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .page-news *,
  .page-news *::before,
  .page-news *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .page-news .timeline-item:hover {
    transform: none;
  }
}
