/* ========== 品牌动态页面样式 ========== */

/* ---- Banner 轮播 ---- */
.news-banner-carousel {
  width: 100%;
  background: var(--muted);
  position: relative;
  overflow: hidden;
}
.carousel-track {
  position: relative;
  width: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.carousel-slide.active img {
  height: auto;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 44, 110, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.carousel-arrow:hover {
  background: rgba(10, 44, 110, 0.85);
}
.carousel-arrow-icon {
  font-size: 24px;
  line-height: 1;
  font-weight: 300;
}
.carousel-prev {
  left: 16px;
}
.carousel-next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}
.carousel-dots button.active {
  background: #fff;
}

/* ---- 页面标题 ---- */
.news-page-header {
  text-align: center;
  margin-bottom: 32px;
}
.news-page-header h1 {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.news-title-line {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto;
}

/* ---- Filter 筛选标签 ---- */
.filter-tabs.news-filter {
  justify-content: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.filter-tabs.news-filter .filter-tab {
  border-radius: var(--radius);
  padding: 8px 18px;
  font-size: 0.875rem;
}
.filter-tabs.news-filter .filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ---- 新闻卡片 ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.news-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.8125rem;
}
.news-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: rgba(10, 44, 110, 0.08);
  color: var(--primary);
}
.news-date {
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-card-body h3 {
  font-size: 1.0625rem;
  color: var(--primary);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-card-body p {
  font-size: 0.875rem;
  color: var(--secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  flex: 1;
}
.news-readmore {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-readmore span {
  transition: transform 0.25s ease;
}
.news-card:hover .news-readmore span {
  transform: translateX(4px);
}
.news-card-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 6px 0 10px;
  line-height: 1.4;
}

/* ---- 分页 ---- */
.news-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.news-page-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.news-page-prev {
  background: var(--accent);
  color: var(--white);
}
.news-page-prev:hover {
  background: var(--accent-light);
}
.news-page-next {
  background: var(--primary);
  color: var(--white);
}
.news-page-next:hover {
  background: var(--primary-light);
}
.news-page-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- 文章页标题块 ---- */
.article-title-block {
  margin-bottom: 20px;
}
.article-main-title {
  font-size: 1.875rem;
  color: var(--primary);
  margin: 0 0 10px;
  line-height: 1.3;
}
.article-subtitle {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* ---- 响应式 ---- */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-page-header h1 {
    font-size: 1.75rem;
  }
  .carousel-arrow {
    width: 32px;
    height: 32px;
  }
  .carousel-prev {
    left: 8px;
  }
  .carousel-next {
    right: 8px;
  }
  .carousel-dots {
    bottom: 10px;
  }
}
