/* ===== 品牌日志页面专属样式 ===== */
.page-news {
  --news-red: var(--primary, #FF2D2D);
  --news-blue: var(--secondary, #007BFF);
  --news-dark: var(--bg-dark, #0A0A0A);
  --news-light: var(--bg-light, #FFFFFF);
  --news-surface: var(--surface-dark, #1A1A1A);
  --news-mid: var(--surface-mid, #F5F5F5);
  --news-border: var(--border-strong, #333333);
  --news-silver: var(--metal-silver, #C0C0C0);
  --news-font-head: var(--font-headline, Impact, 'Arial Black', sans-serif);
  --news-font-body: var(--font-body, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif);
  --timeline-line-width: 3px;
  --dot-size: 18px;
  background: var(--news-dark);
  color: var(--text-primary, #FFFFFF);
  position: relative;
  overflow-x: hidden;
}

/* ===== 隐藏 radio ===== */
.cat-radio {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ===== 英雄区 ===== */
.news-hero {
  padding: 40px 0 30px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--news-dark) 0%, #1A0A0A 60%, var(--news-dark) 100%);
  border-bottom: 3px solid var(--news-red);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, #CCCCCC);
  margin-bottom: 20px;
  font-family: var(--news-font-body);
}

.breadcrumb a {
  color: var(--news-silver);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--news-red);
}

.breadcrumb-sep {
  color: var(--news-border);
}

.news-hero-title {
  font-family: var(--news-font-head);
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.05;
  color: var(--news-light);
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 0 0 12px;
  position: relative;
  display: inline-block;
}

.news-hero-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--news-red);
  margin-top: 8px;
}

.news-hero-desc {
  font-family: var(--news-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary, #CCCCCC);
  max-width: 640px;
  margin: 0 0 28px;
}

/* ===== 分类标签 ===== */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-label {
  display: inline-block;
  padding: 8px 20px;
  font-family: var(--news-font-head);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--news-silver);
  background: transparent;
  border: 2px solid var(--news-border);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.cat-label:hover {
  border-color: var(--news-red);
  color: var(--news-light);
}

#cat-all:checked ~ .news-hero .cat-label[for="cat-all"],
#cat-update:checked ~ .news-hero .cat-label[for="cat-update"],
#cat-insight:checked ~ .news-hero .cat-label[for="cat-insight"],
#cat-guide:checked ~ .news-hero .cat-label[for="cat-guide"] {
  background: var(--news-red);
  color: var(--news-light);
  border-color: var(--news-red);
}

/* ===== 分类过滤逻辑 ===== */
#cat-all:checked ~ .timeline-section .timeline-entry {
  display: flex;
}

#cat-update:checked ~ .timeline-section .timeline-entry {
  display: none;
}

#cat-update:checked ~ .timeline-section .timeline-entry[data-category="update"] {
  display: flex;
}

#cat-insight:checked ~ .timeline-section .timeline-entry {
  display: none;
}

#cat-insight:checked ~ .timeline-section .timeline-entry[data-category="insight"] {
  display: flex;
}

#cat-guide:checked ~ .timeline-section .timeline-entry {
  display: none;
}

#cat-guide:checked ~ .timeline-section .timeline-entry[data-category="guide"] {
  display: flex;
}

/* ===== 章节通用 ===== */
.timeline-section {
  padding: 50px 0 40px;
  position: relative;
  z-index: 2;
}

.section-update {
  background: linear-gradient(180deg, #0D0505 0%, var(--news-dark) 100%);
  border-bottom: 2px solid #1A0A0A;
}

.section-insight {
  background: linear-gradient(180deg, #05070D 0%, var(--news-dark) 100%);
  border-bottom: 2px solid #0A0D1A;
}

.section-guide {
  background: var(--news-dark);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  position: relative;
}

.section-number {
  font-family: var(--news-font-head);
  font-size: 28px;
  color: var(--news-border);
  opacity: 0.4;
  line-height: 1;
}

.section-title {
  font-family: var(--news-font-head);
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
  color: var(--news-light);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-update .section-title {
  color: var(--news-red);
}

.section-insight .section-title {
  color: var(--news-blue);
}

.section-guide .section-title {
  color: var(--news-silver);
}

.section-line {
  flex: 1;
  height: 2px;
  background: var(--news-border);
  min-width: 40px;
}

.section-update .section-line {
  background: linear-gradient(90deg, var(--news-red) 0%, var(--news-border) 80%);
}

.section-insight .section-line {
  background: linear-gradient(90deg, var(--news-blue) 0%, var(--news-border) 80%);
}

.section-guide .section-line {
  background: linear-gradient(90deg, var(--news-silver) 0%, var(--news-border) 80%);
}

/* ===== 时间线 ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 0;
}

/* 时间线竖线（桌面端通过伪元素绘制在 .timeline 上） */
.timeline::before {
  content: '';
  position: absolute;
  left: 100px;
  top: 0;
  bottom: 0;
  width: var(--timeline-line-width);
  background: var(--news-border);
  transform: translateX(-50%);
  display: none;
}

/* ===== 时间条目 ===== */
.timeline-entry {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0 24px 0;
  position: relative;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.timeline-entry:last-child {
  border-bottom: none;
}

.entry-date {
  flex-shrink: 0;
  width: auto;
}

.date-badge {
  display: inline-block;
  font-family: var(--news-font-head);
  font-size: 15px;
  color: var(--news-silver);
  background: var(--news-surface);
  border: 2px solid var(--news-border);
  padding: 4px 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.entry-dot {
  display: none;
}

.entry-card {
  flex: 1;
  background: var(--news-surface);
  border: 2px solid var(--news-border);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 12px 12px 0 rgba(0,0,0,0.6);
}

.card-image {
  width: 100%;
  overflow: hidden;
  border-bottom: 2px solid var(--news-border);
}

.card-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.entry-card:hover .card-img {
  transform: scale(1.03);
}

.card-body {
  padding: 20px 24px 24px;
}

.card-title {
  font-family: var(--news-font-head);
  font-size: 20px;
  line-height: 1.2;
  color: var(--news-light);
  margin: 0 0 10px;
  letter-spacing: 0.3px;
}

.section-update .card-title {
  border-left: 4px solid var(--news-red);
  padding-left: 12px;
}

.section-insight .card-title {
  border-left: 4px solid var(--news-blue);
  padding-left: 12px;
}

.section-guide .card-title {
  border-left: 4px solid var(--news-silver);
  padding-left: 12px;
}

.card-summary {
  font-family: var(--news-font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary, #CCCCCC);
  margin: 0 0 16px;
}

/* ===== 展开交互 ===== */
.expand-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.expand-label {
  display: inline-block;
  font-family: var(--news-font-head);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--news-red);
  border: 2px solid var(--news-red);
  padding: 6px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.expand-label:hover {
  background: var(--news-red);
  color: var(--news-light);
}

.expand-toggle:checked + .expand-label {
  background: var(--news-red);
  color: var(--news-light);
}

.expand-toggle:checked + .expand-label::after {
  content: ' 收起';
  font-family: var(--news-font-body);
}

.entry-expanded {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.4s ease, margin 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.expand-toggle:checked ~ .entry-expanded {
  max-height: 340px;
  opacity: 1;
  margin-top: 16px;
}

.entry-expanded p {
  font-family: var(--news-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary, #CCCCCC);
  margin: 0 0 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid var(--news-border);
}

.entry-link {
  display: inline-block;
  font-family: var(--news-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--news-blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.entry-link:hover {
  border-bottom-color: var(--news-blue);
  color: var(--news-light);
}

/* ===== 背景装饰图 ===== */
.news-bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.04;
  filter: grayscale(0.8) contrast(1.2);
}

/* ===== 桌面端媒体查询 ===== */
@media (min-width: 768px) {
  .news-hero {
    padding: 50px 0 40px;
  }

  .news-hero-title {
    font-size: 56px;
  }

  .news-hero-desc {
    font-size: 18px;
  }

  .category-tags {
    gap: 14px;
  }

  .cat-label {
    padding: 10px 28px;
    font-size: 16px;
  }

  .timeline-section {
    padding: 70px 0 50px;
  }

  .section-header {
    gap: 24px;
    margin-bottom: 50px;
  }

  .section-number {
    font-size: 40px;
  }

  /* 时间线桌面布局：左侧日期 + 中间竖线 + 右侧卡片 */
  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: block;
    left: 180px;
  }

  .timeline-entry {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    padding: 32px 0;
  }

  .entry-date {
    width: 140px;
    padding-right: 40px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 6px;
  }

  .date-badge {
    font-size: 16px;
    padding: 6px 18px;
  }

  .entry-dot {
    display: block;
    position: absolute;
    left: 180px;
    width: var(--dot-size);
    height: var(--dot-size);
    background: var(--news-dark);
    border: 3px solid var(--news-silver);
    border-radius: 50%;
    transform: translateX(-50%);
    top: 38px;
    z-index: 3;
    transition: background 0.3s ease, border-color 0.3s ease;
  }

  .section-update .entry-dot {
    border-color: var(--news-red);
  }

  .section-insight .entry-dot {
    border-color: var(--news-blue);
  }

  .section-guide .entry-dot {
    border-color: var(--news-silver);
  }

  .timeline-entry:hover .entry-dot {
    background: var(--news-red);
    border-color: var(--news-red);
  }

  .entry-card {
    margin-left: 50px;
    flex: 1;
    max-width: 780px;
  }

  .card-body {
    padding: 24px 32px 28px;
  }

  .card-title {
    font-size: 22px;
  }

  .card-summary {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .news-hero {
    padding: 60px 0 50px;
  }

  .news-hero-title {
    font-size: 64px;
  }

  .timeline-section {
    padding: 90px 0 60px;
  }

  .entry-card {
    margin-left: 70px;
  }

  .card-body {
    padding: 28px 40px 32px;
  }

  .card-title {
    font-size: 24px;
  }
}

/* ===== 大幅减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  .timeline-entry,
  .entry-card,
  .card-img,
  .expand-label,
  .entry-expanded {
    transition: none !important;
    animation: none !important;
  }

  .entry-card:hover {
    transform: none;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
  }

  .entry-card:hover .card-img {
    transform: none;
  }

  .expand-toggle:checked ~ .entry-expanded {
    max-height: none;
  }
}
