/* ===== page-news 文章动态页面专属样式 ===== */
.page-news {
  --color-bg: #0B0D17;
  --color-surface: #1A1F2E;
  --color-border: #2D354A;
  --color-text-primary: #F0F4F8;
  --color-text-secondary: #9AA3B5;
  --color-text-muted: #8C9CAB;
  --color-accent: #00E5FF;
  --color-accent-hover: #0A66C2;
  --color-accent-bright: #00E5FF;
  --font-heading: 'Exo 2', 'Orbitron', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
  --page-max-width: 1200px;
  --page-padding: 1.25rem;
  --page-section-gap: 3.5rem;
  --page-card-radius: 16px;
  --page-timeline-node-size: 44px;
  --color-accent-glow: rgba(0, 229, 255, 0.25);

  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-bg);
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding) var(--page-section-gap);
  position: relative;
  isolation: isolate;
}

/* 面包屑 */
.page-news__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}
.page-news__breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.page-news__breadcrumb a:hover,
.page-news__breadcrumb a:focus-visible {
  color: var(--color-accent);
}
.page-news__breadcrumb-sep {
  color: var(--color-border);
  font-weight: 300;
}
.page-news__breadcrumb [aria-current="page"] {
  color: var(--color-accent);
  font-weight: 600;
}

/* 顶部横幅 */
.page-news__hero {
  position: relative;
  margin-bottom: var(--page-section-gap);
  border-radius: var(--page-card-radius);
  overflow: hidden;
  isolation: isolate;
  min-height: 240px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0A1A2F 0%, #0B0D17 60%, #1A2A3A 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
.page-news__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-news__hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0.55;
}
.page-news__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,13,23,0.88) 0%, rgba(11,13,23,0.55) 50%, rgba(11,13,23,0.7) 100%);
  z-index: 1;
}
.page-news__hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  width: 100%;
}
.page-news__hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 6.5vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  color: var(--color-text-primary);
  text-shadow: 0 2px 20px rgba(0, 229, 255, 0.2);
  line-height: 1.08;
}
.page-news__hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
  font-weight: 400;
}
.page-news__hero-deco {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 4px;
  box-shadow: 0 0 18px var(--color-accent-glow);
}

/* 通用section头 */
.page-news__section-header {
  margin-bottom: 2rem;
  position: relative;
}
.page-news__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.4rem;
  color: var(--color-text-primary);
  display: inline-block;
  position: relative;
}
.page-news__section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 3px;
  box-shadow: 0 0 14px var(--color-accent-glow);
}
.page-news__section-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 0;
  max-width: 640px;
  line-height: 1.5;
}

/* ===== 时间线区域 ===== */
.page-news__version-timeline {
  margin-bottom: var(--page-section-gap);
}

.page-news__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}
.page-news__timeline::before {
  content: '';
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 22px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-accent-hover), var(--color-border));
  opacity: 0.6;
  border-radius: 2px;
}

.page-news__timeline-item {
  display: flex;
  gap: 1.2rem;
  padding: 0.75rem 0 1.2rem;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.page-news__timeline-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 12px;
}
.page-news__timeline-item:hover .page-news__timeline-card {
  border-color: var(--color-accent);
  box-shadow: 0 0 24px var(--color-accent-glow);
  transform: translateX(4px);
}

.page-news__timeline-marker {
  flex-shrink: 0;
  width: var(--page-timeline-node-size);
  height: var(--page-timeline-node-size);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-news__tl-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--page-timeline-node-size);
  height: var(--page-timeline-node-size);
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2), inset 0 0 8px rgba(0, 229, 255, 0.05);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.page-news__timeline-item:hover .page-news__tl-node {
  background: var(--color-accent);
  color: #0B0D17;
  box-shadow: 0 0 24px var(--color-accent-glow);
  transform: scale(1.08);
}

.page-news__timeline-card {
  flex: 1;
  min-width: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.page-news__tl-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}
.page-news__tl-card-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ===== 行业观察 瀑布流 ===== */
.page-news__industry-insights {
  margin-bottom: var(--page-section-gap);
}

.page-news__insight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.page-news__insight-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--page-card-radius);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.page-news__insight-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.page-news__insight-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
}

.page-news__insight-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0F1522;
}
.page-news__insight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  opacity: 0.85;
}
.page-news__insight-card:hover .page-news__insight-img {
  transform: scale(1.05);
  opacity: 1;
}
.page-news__insight-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,13,23,0.6) 0%, transparent 55%);
  pointer-events: none;
}

.page-news__insight-body {
  padding: 1.2rem 1.25rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.page-news__insight-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.page-news__insight-text {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.6;
  flex: 1;
}
.page-news__insight-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 229, 255, 0.08);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 229, 255, 0.15);
  align-self: flex-start;
}

/* ===== 内容索引 ===== */
.page-news__content-index {
  margin-bottom: var(--page-section-gap);
}

.page-news__index-categories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-news__index-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.page-news__index-item:hover {
  border-color: var(--color-accent-hover);
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.12);
}

.page-news__index-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.1);
  color: var(--color-accent);
}
.page-news__index-icon--version { color: #00E5FF; }
.page-news__index-icon--platform { color: #0A66C2; }
.page-news__index-icon--launch { color: #00E5FF; background: rgba(0, 229, 255, 0.04); }
.page-news__index-icon--insight { color: #4BC0A0; border-color: rgba(75,192,160,0.15); background: rgba(75,192,160,0.05); }

.page-news__icon-svg {
  width: 44px;
  height: 44px;
}

.page-news__index-body {
  flex: 1;
  min-width: 0;
}
.page-news__index-cat-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--color-text-primary);
}
.page-news__index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}
.page-news__index-list li {
  margin: 0;
}
.page-news__index-link {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: 0.15rem 0;
  position: relative;
  transition: color 0.2s;
  display: inline-block;
}
.page-news__index-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.25s;
}
.page-news__index-link:hover,
.page-news__index-link:focus-visible {
  color: var(--color-accent);
}
.page-news__index-link:hover::after,
.page-news__index-link:focus-visible::after {
  width: 100%;
}
.page-news__index-link:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 信任声明 */
.page-news__trust {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.page-news__trust .trust-statement {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .page-news {
    --page-padding: 2.5rem;
    --page-section-gap: 5rem;
  }

  .page-news__hero {
    min-height: 320px;
    border-radius: 20px;
  }
  .page-news__hero-content {
    padding: 3.5rem 3rem;
  }
  .page-news__hero-title {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }
  .page-news__hero-deco {
    width: 120px;
    height: 5px;
  }

  /* 时间线 桌面交错 */
  .page-news__timeline {
    padding-left: 3rem;
  }
  .page-news__timeline::before {
    left: 28px;
  }
  .page-news__timeline-item {
    gap: 1.8rem;
    padding: 0.6rem 0 1.6rem;
  }
  .page-news__tl-node {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }
  .page-news__timeline-card {
    padding: 1.2rem 1.6rem;
  }
  .page-news__tl-card-title {
    font-size: 1.15rem;
  }
  .page-news__tl-card-text {
    font-size: 0.95rem;
  }

  /* 行业观察 两列网格 */
  .page-news__insight-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }
  .page-news__insight-card {
    border-radius: 18px;
  }
  .page-news__insight-body {
    padding: 1.4rem 1.5rem 1.6rem;
  }
  .page-news__insight-title {
    font-size: 1.2rem;
  }
  .page-news__insight-text {
    font-size: 0.92rem;
  }

  /* 内容索引 两列网格 */
  .page-news__index-categories {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .page-news__index-item {
    padding: 1.3rem 1.6rem;
  }
}

@media (min-width: 1024px) {
  .page-news {
    --page-padding: 3rem;
    --page-section-gap: 6rem;
  }

  .page-news__hero {
    min-height: 380px;
    border-radius: 24px;
  }
  .page-news__hero-content {
    padding: 4rem 3.5rem;
  }

  /* 时间线左侧数字更大 */
  .page-news__timeline {
    padding-left: 3.5rem;
  }
  .page-news__timeline::before {
    left: 32px;
  }
  .page-news__tl-node {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
  }
  .page-news__timeline-card {
    padding: 1.4rem 2rem;
  }

  /* 行业观察在宽屏下可展现为三列 */
  .page-news__insight-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .page-news__insight-card:nth-child(1) {
    grid-column: 1 / 2;
  }
  .page-news__insight-card:nth-child(4) {
    grid-column: 2 / 4;
  }
  .page-news__insight-card:nth-child(4) .page-news__insight-img-wrap {
    aspect-ratio: 5 / 2;
  }

  /* 内容索引也可考虑三列，但保持两列更清晰 */
  .page-news__index-categories {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .page-news__index-item {
    padding: 1.5rem 2rem;
    border-radius: 16px;
  }
}

/* 极宽屏 1440+ 保持居中 max-width 内聚 */
@media (min-width: 1280px) {
  .page-news__insight-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-news__insight-card:nth-child(4) {
    grid-column: span 1;
  }
  .page-news__insight-card:nth-child(4) .page-news__insight-img-wrap {
    aspect-ratio: 3 / 2;
  }
  /* 还原第四张卡片为普通尺寸，保持统一 */
  .page-news__insight-card:nth-child(4) .page-news__insight-img-wrap {
    aspect-ratio: 3 / 2;
  }
}
/* 确保第四张卡片在任何断点下图片比例合理 */
.page-news__insight-card:nth-child(4) .page-news__insight-img-wrap {
  aspect-ratio: 3 / 2;
}
