/* 品牌日志页面专属样式 */
.page-news {
  --timeline-line-color: var(--color-border);
  --timeline-node-size: 14px;
  --entry-gap: 2rem;
  --filter-gap: 0.5rem;
  --banner-height: 300px;
  --banner-overlay-bg: rgba(11, 29, 58, 0.6);
  --card-radius: 8px;
  --card-border-color: var(--color-border);
  --card-bg: var(--color-card);
  --tag-bg: var(--color-red);
  --tag-text: var(--color-white);
  --filter-label-bg: var(--color-primary);
  --filter-label-active-bg: var(--color-accent);
  --filter-label-active-text: var(--color-dark);
  --filter-text: var(--color-white);
  --breadcrumb-color: var(--color-gray);
  --breadcrumb-hover: var(--color-accent);
}

/* 移动端优先 */
.page-news {
  padding: 0 1rem 2rem;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--breadcrumb-color);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}
.breadcrumb a {
  color: var(--breadcrumb-color);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--breadcrumb-hover);
}
.breadcrumb-sep {
  margin: 0 0.4em;
  color: var(--color-border);
}
.breadcrumb-current {
  color: var(--color-white);
}

/* 顶部横幅 */
.hero-banner {
  position: relative;
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
  border-radius: var(--card-radius);
  margin-bottom: 1.5rem;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--banner-overlay-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  font-style: italic;
  color: var(--color-white);
  margin: 0 0 0.3rem;
  line-height: var(--line-height-heading);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-desc {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray);
  max-width: 600px;
  margin: 0;
}

/* 筛选标签 (纯CSS实现) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--filter-gap);
  margin-bottom: 1.5rem;
  justify-content: center;
}
.filter-label {
  display: inline-block;
  padding: 0.4rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--filter-text);
  background: var(--filter-label-bg);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
}
.filter-label:hover {
  border-color: var(--color-accent);
}
input[value="all"]:checked ~ .filter-label[for="filter-all"],
input[value="update"]:checked ~ .filter-label[for="filter-update"],
input[value="feature"]:checked ~ .filter-label[for="feature"],
input[value="industry"]:checked ~ .filter-label[for="industry"],
input[value="notice"]:checked ~ .filter-label[for="notice"] {
  background: var(--filter-label-active-bg);
  color: var(--filter-label-active-text);
  border-color: var(--filter-label-active-bg);
  font-weight: 700;
}

/* 隐藏radio */
.filter-bar input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* 时间轴条目默认全部显示，筛选时隐藏不符合的 */
.timeline-entry {
  display: block;
}
/* 筛选逻辑：未选中全部时，隐藏不匹配的类别 */
input[value="update"]:checked ~ .timeline .timeline-entry:not([data-category="update"]),
input[value="feature"]:checked ~ .timeline .timeline-entry:not([data-category="feature"]),
input[value="industry"]:checked ~ .timeline .timeline-entry:not([data-category="industry"]),
input[value="notice"]:checked ~ .timeline .timeline-entry:not([data-category="notice"]) {
  display: none;
}

/* 时间轴布局 */
.timeline {
  position: relative;
  padding-left: calc(var(--timeline-node-size) + 1.5rem);
  margin-bottom: 2rem;
}
/* 时间轴线 */
.timeline::before {
  content: '';
  position: absolute;
  left: calc(var(--timeline-node-size) / 2);
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line-color);
}

.timeline-entry {
  position: relative;
  margin-bottom: var(--entry-gap);
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.timeline-entry:nth-child(1) { animation-delay: 0.1s; }
.timeline-entry:nth-child(2) { animation-delay: 0.2s; }
.timeline-entry:nth-child(3) { animation-delay: 0.3s; }
.timeline-entry:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-node {
  position: absolute;
  left: calc(var(--timeline-node-size) / 2 * -1 - 1.5rem + 1px);
  top: 1.2rem;
  width: var(--timeline-node-size);
  height: var(--timeline-node-size);
  background: var(--color-accent);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border-color);
  border-radius: var(--card-radius);
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
.timeline-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.entry-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: var(--color-primary);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--tag-text);
  background: var(--tag-bg);
  border-radius: 4px;
  letter-spacing: 0.03em;
}
.tag--live {
  background: var(--color-red);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-style: italic;
  color: var(--color-white);
  margin: 0 0 0.3rem;
  line-height: var(--line-height-heading);
}
.card-summary {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-gray);
  line-height: var(--line-height-body);
  margin: 0 0 0.5rem;
}

.card-details {
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 0.5rem;
}
.card-details summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-accent);
  font-weight: 700;
  transition: opacity 0.2s;
}
.card-details summary:hover {
  opacity: 0.8;
}
.card-details[open] summary {
  margin-bottom: 0.5rem;
}
.details-body {
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-gray);
  line-height: var(--line-height-body);
}
.details-body p {
  margin: 0 0 0.5rem;
}
.details-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.industry-image {
  margin: 1rem 0;
}
.industry-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: var(--card-radius);
  display: block;
}

.bottom-decor {
  text-align: center;
  margin: 2rem 0;
}
.bottom-decor img {
  max-width: 100%;
  height: auto;
  border-radius: var(--card-radius);
  opacity: 0.7;
}

/* 桌面端媒体查询 */
@media (min-width: 768px) {
  .page-news {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
  }
  .timeline {
    padding-left: calc(var(--timeline-node-size) + 2.5rem);
  }
  .timeline-node {
    left: calc(var(--timeline-node-size) / 2 * -1 - 2.5rem + 1px);
  }
  .hero-banner {
    height: 350px;
  }
  .hero-title {
    font-size: calc(var(--text-h1) * 1.2);
  }
  .filter-bar {
    gap: 1rem;
    justify-content: flex-start;
  }
}
