/* ============================================
   page-news 品牌动态页面专属样式
   作用域限定: .page-news
   移动端优先 + 桌面增强
   ============================================ */
.page-news {
  --news-gold: var(--clr-primary-gold, #D4A843);
  --news-red: var(--clr-accent-red, #E63946);
  --news-dark: var(--clr-primary-deep-blue, #0B1D3A);
  --news-surface: var(--clr-surface-dark, #111D33);
  --news-border: var(--clr-border-subtle, #2A3B54);
  --news-text: var(--clr-text-light, #F0F4F8);
  --news-muted: var(--clr-text-muted, #9AA8B9);
  --news-bg: var(--clr-background-dark, #0A1424);
  --timeline-line-width: 2px;
  --timeline-dot-size: 14px;
  --card-radius: 0;
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: var(--font-body, 'PT Serif', Georgia, serif);
  color: var(--news-text);
  background-color: var(--news-bg);
}

/* ---- 容器复用 ---- */
.page-news .container {
  max-width: var(--max-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---- 面包屑 ---- */
.page-news .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-sm, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--news-muted);
}
.page-news .breadcrumb__item {
  color: var(--news-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.page-news .breadcrumb__item:hover,
.page-news .breadcrumb__item:focus-visible {
  color: var(--news-gold);
}
.page-news .breadcrumb__item[aria-current="page"] {
  color: var(--news-gold);
  pointer-events: none;
}
.page-news .breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--news-border);
}

/* ---- 页面标题区 ---- */
.page-news__header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--news-border);
}
.page-news__heading {
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--news-text);
  margin: 0 0 0.5rem;
  position: relative;
  display: inline-block;
}
.page-news__heading::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--news-gold);
}
.page-news__subtitle {
  font-family: var(--font-body, 'PT Serif', Georgia, serif);
  font-size: var(--size-lg, 1.125rem);
  color: var(--news-muted);
  margin: 1rem 0 0;
  max-width: 640px;
  line-height: 1.5;
}

/* ---- 横幅框景 ---- */
.page-news__banner {
  position: relative;
  margin: 1.5rem auto 0;
  max-width: var(--max-width, 1280px);
  width: calc(100% - 2rem);
  border: 2px solid var(--news-border);
  outline: 1px solid var(--news-gold);
  outline-offset: 4px;
  overflow: hidden;
  background: var(--news-dark);
}
.page-news__banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}
.frame-box__scale {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--news-gold) 0px,
    var(--news-gold) 4px,
    transparent 4px,
    transparent 12px
  );
  opacity: 0.6;
}
.frame-box__label {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--news-gold);
  background: rgba(11, 29, 58, 0.75);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--news-gold);
}

/* ---- Section 分割器 ---- */
.news-section {
  padding: 2.5rem 0 1.5rem;
  position: relative;
}
.news-section + .news-section {
  border-top: 1px solid var(--news-border);
  margin-top: 0;
}
.section-divider {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}
.section-number {
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-3xl, 2.75rem);
  font-weight: 700;
  color: var(--news-gold);
  line-height: 1;
  opacity: 0.5;
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-2xl, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--news-text);
  margin: 0;
  line-height: 1.2;
}
.section-title::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--news-gold);
  margin-bottom: 0.4rem;
}

/* ---- 时间线容器 ---- */
.timeline {
  position: relative;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: var(--timeline-line-width);
  background: var(--news-border);
  transform: translateX(-50%);
}
@media (min-width: 768px) {
  .timeline::before {
    left: 140px;
  }
}

/* ---- 时间线条目 ---- */
.timeline-item {
  position: relative;
  padding-left: 44px;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .timeline-item {
    padding-left: 164px;
    margin-bottom: 2.5rem;
  }
}

/* ---- 时间线节点 ---- */
.timeline-node {
  position: absolute;
  left: 0;
  top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  z-index: 2;
}
@media (min-width: 768px) {
  .timeline-node {
    left: 0;
    width: 120px;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.75rem;
    top: 0.35rem;
  }
}
.timeline-date {
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-lg, 1.125rem);
  font-weight: 700;
  color: var(--news-gold);
  white-space: nowrap;
  line-height: 1.2;
  letter-spacing: 0.04em;
  background: var(--news-bg);
  padding: 0 0.2rem;
}
@media (min-width: 768px) {
  .timeline-date {
    font-size: var(--size-xl, 1.5rem);
  }
}
.timeline-dot {
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 50%;
  background: var(--news-gold);
  border: 2px solid var(--news-bg);
  box-shadow: 0 0 0 2px var(--news-gold);
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
@media (min-width: 768px) {
  .timeline-dot {
    margin-top: 0;
  }
}
.timeline-item:hover .timeline-dot,
.timeline-item:focus-within .timeline-dot {
  transform: scale(1.25);
  box-shadow: 0 0 0 4px var(--news-gold), 0 0 12px rgba(212, 168, 67, 0.4);
}

/* ---- 时间线卡片 ---- */
.timeline-card {
  display: block;
  background: var(--news-surface);
  border: 1px solid var(--news-border);
  border-radius: var(--card-radius);
  transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  cursor: pointer;
}
.timeline-card:hover,
.timeline-card:focus-within {
  border-color: var(--news-gold);
  background: rgba(17, 29, 51, 0.85);
  box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.2), 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ---- 卡片头部（摘要区） ---- */
.timeline-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  list-style: none;
  position: relative;
}
.timeline-card__header::-webkit-details-marker {
  display: none;
}
.timeline-card__icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--news-border);
  flex-shrink: 0;
  background: var(--news-dark);
  transition: border-color var(--transition-fast);
}
@media (min-width: 768px) {
  .timeline-card__icon {
    width: 64px;
    height: 64px;
  }
}
.timeline-card:hover .timeline-card__icon,
.timeline-card:focus-within .timeline-card__icon {
  border-color: var(--news-gold);
}
.timeline-card__titles {
  flex: 1;
  min-width: 0;
}
.timeline-card__title {
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-lg, 1.125rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--news-text);
  margin: 0 0 0.3rem;
  line-height: 1.3;
  transition: color var(--transition-fast);
}
@media (min-width: 768px) {
  .timeline-card__title {
    font-size: var(--size-xl, 1.5rem);
  }
}
.timeline-card:hover .timeline-card__title,
.timeline-card:focus-within .timeline-card__title {
  color: var(--news-gold);
}
.timeline-card__summary {
  font-family: var(--font-body, 'PT Serif', Georgia, serif);
  font-size: var(--size-sm, 0.875rem);
  color: var(--news-muted);
  margin: 0;
  line-height: 1.5;
  transition: color var(--transition-fast);
}
@media (min-width: 768px) {
  .timeline-card__summary {
    font-size: var(--size-base, 1rem);
  }
}
.timeline-card:hover .timeline-card__summary,
.timeline-card:focus-within .timeline-card__summary {
  color: var(--news-text);
}
.timeline-card__expand-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  margin-top: 0.25rem;
  transition: transform var(--transition-fast);
}
.timeline-card__expand-icon::before,
.timeline-card__expand-icon::after {
  content: "";
  position: absolute;
  background: var(--news-muted);
  transition: background var(--transition-fast);
}
.timeline-card__expand-icon::before {
  width: 2px;
  height: 14px;
  top: 3px;
  left: 9px;
}
.timeline-card__expand-icon::after {
  width: 14px;
  height: 2px;
  top: 9px;
  left: 3px;
}
.timeline-card:hover .timeline-card__expand-icon::before,
.timeline-card:hover .timeline-card__expand-icon::after,
.timeline-card:focus-within .timeline-card__expand-icon::before,
.timeline-card:focus-within .timeline-card__expand-icon::after {
  background: var(--news-gold);
}
.timeline-card[open] .timeline-card__expand-icon {
  transform: rotate(45deg);
}

/* ---- 卡片正文（全文区） ---- */
.timeline-card__body {
  padding: 0 0.75rem 1rem 0.75rem;
  border-top: 1px solid transparent;
  animation: timeline-fade-in 0.3s ease-out;
}
.timeline-card[open] .timeline-card__body {
  border-top-color: var(--news-border);
}
.timeline-card__body p {
  font-family: var(--font-body, 'PT Serif', Georgia, serif);
  font-size: var(--size-base, 1rem);
  color: var(--news-text);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.timeline-card__body p:last-child {
  margin-bottom: 0;
}
.timeline-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid var(--news-border);
  margin-top: 0.75rem;
}
.timeline-card__img--cover {
  max-width: 320px;
}
@keyframes timeline-fade-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- 内部链接导航 ---- */
.page-news__internal-nav {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--news-border);
  margin-top: 0.5rem;
}
.internal-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .internal-nav__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.internal-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading, Oswald, Impact, sans-serif);
  font-size: var(--size-sm, 0.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--news-muted);
  background: transparent;
  border: 1px solid var(--news-border);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.internal-nav__link:hover,
.internal-nav__link:focus-visible {
  color: var(--news-gold);
  border-color: var(--news-gold);
  background: rgba(212, 168, 67, 0.06);
}

/* ---- 移动端细节调整 ---- */
@media (max-width: 479px) {
  .page-news__header {
    padding: 1.25rem 0 0.75rem;
  }
  .page-news__heading::after {
    width: 40px;
  }
  .section-number {
    font-size: var(--size-2xl, 2rem);
  }
  .section-title {
    font-size: var(--size-xl, 1.5rem);
  }
  .timeline-card__header {
    padding: 0.5rem;
    gap: 0.5rem;
  }
  .timeline-card__body {
    padding: 0 0.5rem 0.75rem 0.5rem;
  }
  .timeline-card__icon {
    width: 40px;
    height: 40px;
  }
  .timeline-item {
    padding-left: 36px;
  }
  .timeline-node {
    width: 32px;
  }
  .timeline-date {
    font-size: var(--size-sm, 0.875rem);
  }
  .timeline-dot {
    width: 10px;
    height: 10px;
  }
  .timeline::before {
    left: 16px;
  }
}

/* ---- 桌面端增强 ---- */
@media (min-width: 1024px) {
  .news-section {
    padding: 3rem 0 2rem;
  }
  .timeline-item {
    margin-bottom: 3rem;
  }
  .timeline-card__header {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }
  .timeline-card__body {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }
  .timeline-card__img {
    max-width: 720px;
  }
  .page-news__banner {
    width: calc(100% - 3rem);
  }
}

/* ---- 打印优化 ---- */
@media print {
  .page-news {
    background: #fff;
    color: #111;
  }
  .page-news__banner,
  .timeline-card__icon,
  .timeline-card__img {
    border-color: #ccc;
  }
  .timeline-dot {
    box-shadow: none;
  }
  .timeline-card {
    break-inside: avoid;
    border-color: #ccc;
  }
  .timeline-card__body {
    display: block !important;
  }
  .timeline-card__expand-icon {
    display: none;
  }
}
