/* ===== 页面专属：品牌日志 (page-news) ===== */
.page-news {
  --color-primary: #1B3A2D;
  --color-secondary: #CDA434;
  --color-accent: #0D0D0D;
  --color-light-bg: #F5F0E6;
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B8A88A;
  --color-border: #5A7A4E;
  --color-success: #2ECC71;
  --font-headline: 'Arial Black', 'Impact', sans-serif;
  --font-body: 'Georgia', 'Playfair Display', serif;
  --font-mono: 'Courier New', monospace;
  --size-h1: clamp(2.4rem, 4vw, 3.2rem);
  --size-h2: clamp(1.8rem, 3vw, 2.4rem);
  --size-h3: clamp(1.6rem, 2.5vw, 1.8rem);
  --size-body: clamp(1.4rem, 2vw, 1.6rem);
  --size-small: clamp(1.2rem, 1.5vw, 1.4rem);
  --max-width: 1200px;
  --glass-bg: rgba(13,13,13,0.6);
  --glass-blur: 12px;
  --timeline-dot-size: 1.6rem;
  --timeline-line-width: 2px;
  --card-radius: 0.8rem;
  --filter-gap: 1.2rem;
  --section-spacing: 5.6rem;
  --content-padding: 1.6rem;
}

/* 面包屑 */
.page-news .breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: var(--content-padding) 0 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--size-small);
  color: var(--color-text-secondary);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

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

.page-news .breadcrumb a:hover,
.page-news .breadcrumb a:focus-visible {
  opacity: 0.75;
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

.page-news .breadcrumb-sep {
  color: var(--color-border);
  font-size: var(--size-small);
}

.page-news .breadcrumb [aria-current="page"] {
  color: var(--color-text-primary);
  font-weight: 700;
}

/* 页面头部 */
.page-news .page-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.4rem var(--content-padding) 1.6rem;
  border-bottom: var(--timeline-line-width) solid var(--color-border);
}

.page-news .page-title {
  font-family: var(--font-headline);
  font-size: var(--size-h1);
  color: var(--color-text-primary);
  margin: 0 0 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-secondary), var(--color-text-primary) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-news .page-subtitle {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  margin: 0;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* 筛选栏 */
.page-news .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--filter-gap);
  padding: 2rem var(--content-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  justify-content: flex-start;
}

.page-news .filter-btn {
  font-family: var(--font-mono);
  font-size: var(--size-small);
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--color-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  color: var(--color-text-secondary);
  cursor: pointer;
  border-radius: 2rem;
  transition: all 0.25s ease;
  letter-spacing: 0.06em;
}

.page-news .filter-btn:hover,
.page-news .filter-btn:focus-visible {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(205, 164, 52, 0.3);
}

.page-news .filter-btn[aria-selected="true"] {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-accent);
  font-weight: 700;
}

/* 日志板块通用 */
.page-news .log-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-spacing) var(--content-padding) 0;
  scroll-margin-top: 80px;
}

.page-news .section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: 0.8rem;
}

.page-news .section-num {
  font-family: var(--font-mono);
  font-size: var(--size-h3);
  color: var(--color-secondary);
  font-weight: 900;
  opacity: 0.6;
  line-height: 1;
}

.page-news .section-title {
  font-family: var(--font-headline);
  font-size: var(--size-h2);
  color: var(--color-text-primary);
  margin: 0;
  letter-spacing: 0.03em;
}

.page-news .section-line {
  flex: 1;
  height: var(--timeline-line-width);
  background: linear-gradient(90deg, var(--color-border), transparent);
  min-width: 2rem;
}

.page-news .section-desc {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  margin: 0 0 2.8rem;
  padding-left: 0.2rem;
  font-style: italic;
  border-left: 2px solid var(--color-secondary);
  padding-left: 1.2rem;
}

/* 时间轴 */
.page-news .timeline {
  position: relative;
  padding-left: 2.8rem;
}

/* 时间轴竖线 */
.page-news .timeline::before {
  content: '';
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: var(--timeline-line-width);
  background: linear-gradient(180deg, var(--color-secondary), var(--color-border) 60%, transparent);
  border-radius: 1px;
}

.page-news .timeline-item {
  position: relative;
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-news .timeline-item:last-child {
  margin-bottom: 0;
}

/* 时间轴标记（圆点 + 标签） */
.page-news .timeline-marker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  z-index: 2;
}

.page-news .timeline-dot {
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--color-secondary);
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 0 3px rgba(205, 164, 52, 0.25), 0 0 12px rgba(205, 164, 52, 0.15);
  flex-shrink: 0;
  transition: box-shadow 0.3s ease;
}

.page-news .timeline-item:hover .timeline-dot,
.page-news .timeline-item:focus-within .timeline-dot {
  box-shadow: 0 0 0 4px rgba(205, 164, 52, 0.4), 0 0 20px rgba(205, 164, 52, 0.25);
}

.page-news .timeline-label {
  font-family: var(--font-mono);
  font-size: var(--size-small);
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(13,13,13,0.5);
  padding: 0.2rem 0.8rem;
  border-radius: 0.4rem;
  border: 1px solid var(--color-border);
}

/* 时间轴卡片 */
.page-news .timeline-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: 1.8rem 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  margin-left: 0;
}

.page-news .timeline-card:hover,
.page-news .timeline-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4), 0 0 0 1px var(--color-secondary);
}

.page-news .timeline-title {
  font-family: var(--font-headline);
  font-size: var(--size-h3);
  color: var(--color-text-primary);
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}

.page-news .timeline-meta {
  font-family: var(--font-mono);
  font-size: var(--size-small);
  color: var(--color-secondary);
  margin: 0 0 0.8rem;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.page-news .timeline-excerpt {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-primary);
  line-height: 1.7;
  margin: 0 0 0.6rem;
}

.page-news .timeline-full {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-primary);
  line-height: 1.7;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(90, 122, 78, 0.3);
}

.page-news .timeline-full p {
  margin: 0 0 0.8rem;
}

.page-news .timeline-full p:last-child {
  margin-bottom: 0;
}

.page-news .timeline-full a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.page-news .timeline-full a:hover,
.page-news .timeline-full a:focus-visible {
  color: var(--color-text-primary);
}

/* 展开按钮 */
.page-news .btn-small {
  font-family: var(--font-mono);
  font-size: var(--size-small);
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
  cursor: pointer;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  margin-top: 0.4rem;
}

.page-news .btn-small:hover,
.page-news .btn-small:focus-visible {
  background: var(--color-secondary);
  color: var(--color-accent);
  outline: none;
}

.page-news .expand-icon {
  font-size: 1.2em;
  font-weight: 700;
  transition: transform 0.2s ease;
}

/* 时间轴图片 */
.page-news .timeline-img {
  max-width: 100%;
  height: auto;
  border-radius: 0.6rem;
  margin: 1rem 0;
  border: 1px solid var(--color-border);
  object-fit: cover;
  display: block;
}

.page-news .timeline-img-square {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.page-news .timeline-img-small {
  max-width: 100%;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 1rem auto;
}

/* 公告板特色图 */
.page-news .notice-featured-img {
  margin: 0 0 2.4rem;
  border-radius: var(--card-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  max-width: 100%;
}

.page-news .notice-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
}

/* 日志页脚 */
.page-news .log-footer {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding: 2.4rem var(--content-padding) 4rem;
  border-top: 1px solid var(--color-border);
}

.page-news .log-footer-text {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--color-text-secondary);
  text-align: center;
  font-style: italic;
  margin: 0;
}

.page-news .log-footer-text a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== 筛选交互（CSS 渐进增强） ===== */
/* 默认全部显示 */
.page-news .log-section {
  display: block;
}

/* 当筛选按钮被点击后，通过 JS 切换 data-filter 属性来控制显示 */
/* 这里仅为 JS 提供钩子，纯 CSS 不进行隐藏操作，确保无 JS 时全部可见 */

/* ===== 移动端优先：窄屏适配 ===== */
@media (max-width: 640px) {
  .page-news {
    --section-spacing: 3.6rem;
    --content-padding: 1.2rem;
  }

  .page-news .breadcrumb {
    font-size: 1.1rem;
    padding: 1rem 1.2rem 0.2rem;
    flex-wrap: wrap;
  }

  .page-news .page-header {
    padding: 1.6rem 1.2rem 1.2rem;
  }

  .page-news .page-subtitle {
    font-size: 1.4rem;
  }

  .page-news .filter-bar {
    padding: 1.2rem 1.2rem;
    gap: 0.8rem;
  }

  .page-news .filter-btn {
    font-size: 1.1rem;
    padding: 0.4rem 1.2rem;
  }

  .page-news .log-section {
    padding: var(--section-spacing) 1.2rem 0;
  }

  .page-news .section-head {
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .page-news .section-num {
    font-size: var(--size-body);
  }

  .page-news .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .page-news .section-desc {
    font-size: 1.3rem;
    padding-left: 0.8rem;
    margin-bottom: 2rem;
  }

  .page-news .timeline {
    padding-left: 2rem;
  }

  .page-news .timeline::before {
    left: 0.5rem;
  }

  .page-news .timeline-item {
    margin-bottom: 2rem;
  }

  .page-news .timeline-dot {
    width: 1.2rem;
    height: 1.2rem;
  }

  .page-news .timeline-label {
    font-size: 1rem;
    padding: 0.1rem 0.6rem;
  }

  .page-news .timeline-card {
    padding: 1.2rem 1.4rem;
    border-radius: 0.6rem;
  }

  .page-news .timeline-title {
    font-size: clamp(1.4rem, 4vw, 1.6rem);
  }

  .page-news .timeline-meta {
    font-size: 1.1rem;
  }

  .page-news .timeline-excerpt,
  .page-news .timeline-full {
    font-size: 1.3rem;
    line-height: 1.6;
  }

  .page-news .timeline-img {
    margin: 0.6rem 0;
    border-radius: 0.4rem;
  }

  .page-news .timeline-img-small {
    max-width: 200px;
  }

  .page-news .notice-featured-img {
    margin-bottom: 1.6rem;
  }

  .page-news .log-footer {
    padding: 1.6rem 1.2rem 3.2rem;
    margin-top: 2.4rem;
  }

  .page-news .log-footer-text {
    font-size: 1.3rem;
  }

  .page-news .btn-small {
    font-size: 1.1rem;
    padding: 0.3rem 1rem;
  }
}

/* ===== 桌面端：宽屏完善 ===== */
@media (min-width: 641px) {
  .page-news .timeline-item {
    flex-direction: row;
    gap: 2rem;
  }

  .page-news .timeline-marker {
    flex-direction: column;
    align-items: center;
    min-width: 8rem;
    padding-top: 1.6rem;
    gap: 0.4rem;
  }

  .page-news .timeline::before {
    left: 3.8rem;
  }

  .page-news .timeline {
    padding-left: 0;
  }

  .page-news .timeline-dot {
    width: 1.4rem;
    height: 1.4rem;
  }

  .page-news .timeline-label {
    writing-mode: horizontal-tb;
    font-size: 1.1rem;
  }

  .page-news .timeline-card {
    flex: 1;
    margin-left: 0;
  }

  .page-news .timeline-img {
    max-width: 70%;
  }

  .page-news .timeline-img-square {
    max-width: 400px;
    width: auto;
  }

  .page-news .timeline-img-small {
    max-width: 240px;
    margin: 1rem 0;
  }

  .page-news .notice-featured-img {
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== 大屏额外优化 ===== */
@media (min-width: 1024px) {
  .page-news .timeline-card {
    padding: 2.4rem 2.8rem;
  }

  .page-news .timeline-marker {
    min-width: 10rem;
  }

  .page-news .timeline::before {
    left: 4.6rem;
  }

  .page-news .notice-featured-img {
    max-width: 75%;
  }
}

/* ===== 打印样式 ===== */
@media print {
  .page-news .filter-bar,
  .page-news .btn-small {
    display: none !important;
  }

  .page-news .log-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .page-news .timeline-card {
    border: 1px solid #333;
    background: #fff;
    color: #111;
  }

  .page-news .timeline-full {
    display: block !important;
  }
}
