/* page-news 品牌日志专用样式 */
.page-news {
  --page-news-bg: #F5F0EB;
  --page-news-accent: #6B8E23;
  --page-news-accent-dark: #556B2F;
  --page-news-terracotta: #D2691E;
  --page-news-terracotta-light: #E8A87C;
  --page-news-line: #B8A99A;
  --page-news-text: #1C1C1E;
  --page-news-text-secondary: #636366;
  --page-news-border: #C7C7CC;
  --page-news-card-bg: #FFFFFF;
  --page-news-card-hover: #EDE8E1;
  --page-news-number-size: clamp(2rem, 5vw, 3.5rem);

  display: block;
  width: 100%;
  background-color: var(--page-news-bg);
  padding-bottom: 4rem;
}

/* 面包屑 */
.page-news .breadcrumb {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-news .breadcrumb a {
  color: var(--page-news-text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.page-news .breadcrumb a:hover {
  border-color: var(--page-news-accent);
}

/* 页面头部 */
.page-news-header {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--page-news-border);
  margin-bottom: 2.5rem;
}

.page-news-title {
  font-family: var(--font-heading, 'SF Pro Display', 'PingFang SC', sans-serif);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--page-news-text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.page-news-subtitle {
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  margin: 0;
  max-width: 540px;
  line-height: 1.6;
}

/* 时间线区域 */
.page-news-timeline-section {
  position: relative;
  padding-top: 0.5rem;
  margin-bottom: 4rem;
}

.page-news-timeline-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1440px;
  height: 100%;
  pointer-events: none;
  opacity: 0.06;
  z-index: 0;
  overflow: hidden;
}

.page-news-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news-section-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading, 'SF Pro Display', 'PingFang SC', sans-serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--page-news-text);
  margin: 0 0 2rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--page-news-accent);
}

/* 时间线容器 */
.page-news-timeline {
  position: relative;
  z-index: 1;
  padding-left: 0;
  margin-left: 0;
}

/* 时间线竖线 */
.page-news-timeline-line {
  position: absolute;
  left: 2.2rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background-color: var(--page-news-line);
  opacity: 0.5;
  z-index: 0;
}

/* 单条动态 */
.page-news-entry {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1.5rem 1.5rem 0;
  border-radius: 8px;
  transition: background-color 0.25s ease;
  cursor: default;
  margin-bottom: 0.25rem;
}

.page-news-entry:hover {
  background-color: var(--page-news-card-hover);
}

/* 编号圆形 */
.page-news-entry-number {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, 'SF Mono', 'Menlo', monospace);
  font-size: var(--page-news-number-size);
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--page-news-terracotta);
  border-radius: 50%;
  line-height: 1;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(210, 105, 30, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-news-entry:hover .page-news-entry-number {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(210, 105, 30, 0.3);
}

/* 动态内容 */
.page-news-entry-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

.page-news-entry-title {
  font-family: var(--font-heading, 'SF Pro Display', 'PingFang SC', sans-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--page-news-text);
  margin: 0 0 0.4rem 0;
  line-height: 1.4;
}

.page-news-entry-desc {
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--page-news-text-secondary);
  line-height: 1.7;
  margin: 0 0 0.8rem 0;
  max-width: 580px;
}

/* 动态内图片 */
.page-news-entry-img {
  margin-top: 0.6rem;
  border-radius: 6px;
  overflow: hidden;
  max-width: 400px;
  border: 1px solid var(--page-news-border);
  background-color: #EDE8E1;
}

.page-news-entry-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news-entry-img-app {
  max-width: 180px;
}

.page-news-entry-img-app img {
  max-height: 500px;
  object-fit: contain;
}

/* 赛事分类索引区 */
.page-news-categories-section {
  position: relative;
  z-index: 1;
  margin-bottom: 3rem;
}

.page-news-categories-intro {
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  margin: -1rem 0 2rem 0;
  line-height: 1.6;
}

/* 分类网格 */
.page-news-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.page-news-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0.8rem;
  background-color: var(--page-news-card-bg);
  border: 1px solid var(--page-news-border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: default;
  text-align: center;
}

.page-news-category-card:hover {
  border-color: var(--page-news-accent);
  box-shadow: 0 2px 12px rgba(107, 142, 35, 0.12);
  background-color: #F9F7F4;
}

.page-news-category-number {
  font-family: var(--font-mono, 'SF Mono', 'Menlo', monospace);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--page-news-accent);
  margin-bottom: 0.3rem;
  opacity: 0.7;
}

.page-news-category-label {
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--page-news-text);
}

/* 分类更多 */
.page-news-categories-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  padding-top: 0.5rem;
}

.page-news-categories-more p {
  margin: 0;
  font-size: 0.95rem;
  flex: 1;
  min-width: 200px;
}

.page-news-categories-img {
  max-width: 400px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--page-news-border);
  background-color: #EDE8E1;
}

.page-news-categories-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* 相关链接区 */
.page-news-links-section {
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--page-news-border);
}

.page-news-links-intro {
  font-family: var(--font-body, 'SF Pro Text', 'PingFang SC', sans-serif);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  margin: 0;
  line-height: 1.8;
}

.page-news-link {
  color: var(--page-news-accent-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.page-news-link:hover {
  border-color: var(--page-news-accent-dark);
  color: var(--page-news-terracotta);
}

/* ===== 移动端优先 ===== */
@media (max-width: 639px) {
  .page-news-header {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

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

  .page-news-timeline-line {
    left: 1.6rem;
  }

  .page-news-entry {
    flex-direction: row;
    gap: 1rem;
    padding: 1.2rem 0.5rem 1.2rem 0;
  }

  .page-news-entry-number {
    width: 3.2rem;
    height: 3.2rem;
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
  }

  .page-news-entry-content {
    padding-top: 0;
  }

  .page-news-entry-title {
    font-size: 1rem;
  }

  .page-news-entry-desc {
    font-size: 0.88rem;
  }

  .page-news-entry-img {
    max-width: 100%;
  }

  .page-news-entry-img-app {
    max-width: 140px;
  }

  .page-news-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.7rem;
  }

  .page-news-category-card {
    padding: 1rem 0.5rem;
  }

  .page-news-categories-more {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-news-categories-img {
    max-width: 100%;
  }

  .page-news-links-section {
    padding-top: 1.2rem;
  }
}

/* 桌面端精细调节 */
@media (min-width: 640px) {
  .page-news-entry {
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 12px;
  }

  .page-news-entry-number {
    width: 4.5rem;
    height: 4.5rem;
    font-size: 2.4rem;
  }

  .page-news-timeline-line {
    left: 3rem;
  }

  .page-news-categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.2rem;
  }

  .page-news-category-card {
    padding: 1.5rem 1rem;
  }
}

/* 大桌面 */
@media (min-width: 1024px) {
  .page-news-entry {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .page-news-entry-number {
    width: 5rem;
    height: 5rem;
    font-size: 2.8rem;
  }

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

  .page-news-categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 确保内容不横向溢出 */
.page-news img {
  max-width: 100%;
  height: auto;
}

/* 确保所有文字颜色正确 */
.page-news .text-secondary {
  color: var(--page-news-text-secondary);
}
