/* ============================================
   斯坦福资讯列表页面样式
   ============================================ */

/* Hero Banner */
.news-hero {
  position: relative;
  width: 100%;
  height: 267px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.news-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #D0021B 0%, #8B0000 100%);
}

.news-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.news-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-hero__title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  letter-spacing: 0.1em;
}

/* 面包屑导航 */
.breadcrumb {
  background-color: #f8f8f8;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb__link {
  color: #666666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: #999999;
}

.breadcrumb__current {
  color: #333333;
  font-weight: 500;
}

/* 资讯主体区域 */
.news-main {
  padding: 60px 0 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f8f8 100%);
}

.news-main__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 栏目Tab切换 */
.news-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 50px;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.news-tabs__item {
  position: relative;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 500;
  color: #666666;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.news-tabs__item i {
  font-size: 18px;
}

.news-tabs__item:hover {
  color: var(--color-primary);
  background-color: rgba(208, 2, 27, 0.05);
}

.news-tabs__item--active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  box-shadow: 0 4px 15px rgba(208, 2, 27, 0.3);
}

.news-tabs__item--active:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
}

.news-tabs__item--active i {
  color: #ffffff;
}

/* 新闻列表区域 */
.news-content {
  position: relative;
  min-height: 400px;
}

.news-list {
  display: none;
}

.news-list--active {
  display: block;
}

/* 新闻卡片网格 */
.news-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* 新闻卡片 */
.news-item {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.news-item__image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-item__image img {
  transform: scale(1.08);
}

.news-item__category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
}

.news-item__content {
  padding: 24px;
}

.news-item__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999999;
  margin-bottom: 12px;
}

.news-item__date i {
  font-size: 14px;
  color: var(--color-primary);
}

.news-item__title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-item:hover .news-item__title {
  color: var(--color-primary);
}

.news-item__desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.7;
  margin: 0 0 20px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-item__link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.news-item__link:hover {
  gap: 12px;
}

.news-item__link:hover i {
  transform: translateX(4px);
}

/* 特色大卡片 - 第一条新闻 */
.news-list__featured {
  display: flex;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  transition: all 0.4s ease;
}

.news-list__featured:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.news-featured__image {
  flex: 0 0 50%;
  position: relative;
  height: 360px;
  overflow: hidden;
}

.news-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-list__featured:hover .news-featured__image img {
  transform: scale(1.05);
}

.news-featured__category {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 2;
}

.news-featured__content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-featured__date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #999999;
  margin-bottom: 20px;
}

.news-featured__date i {
  font-size: 16px;
  color: var(--color-primary);
}

.news-featured__title {
  font-size: 26px;
  font-weight: 700;
  color: #333333;
  line-height: 1.4;
  margin: 0 0 16px 0;
  transition: color 0.3s ease;
}

.news-list__featured:hover .news-featured__title {
  color: var(--color-primary);
}

.news-featured__desc {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin: 0 0 30px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  width: fit-content;
  transition: all 0.3s ease;
}

.news-featured__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(208, 2, 27, 0.35);
}

.news-featured__link i {
  font-size: 14px;
}

/* 空状态 */
.news-empty {
  text-align: center;
  padding: 80px 20px;
}

.news-empty__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
}

.news-empty__icon i {
  font-size: 40px;
  color: #cccccc;
}

.news-empty__title {
  font-size: 20px;
  color: #333333;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.news-empty__desc {
  font-size: 14px;
  color: #999999;
  margin: 0;
}

/* 分页 */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.news-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-pagination__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.news-pagination__btn--active {
  background: linear-gradient(135deg, var(--color-primary) 0%, #b8000e 100%);
  border-color: var(--color-primary);
  color: #ffffff;
}

.news-pagination__btn--active:hover {
  color: #ffffff;
}

.news-pagination__btn--prev,
.news-pagination__btn--next {
  width: auto;
  padding: 0 18px;
  gap: 6px;
}

.news-pagination__btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.news-pagination__btn--disabled:hover {
  border-color: #e5e5e5;
  color: #666666;
}

/* 响应式设计 */
@media (max-width: 960px) {
  .news-hero {
    height: 220px;
    padding-top: 60px;
  }

  .news-hero__title {
    font-size: 32px;
  }

  .news-main {
    padding: 40px 0 60px;
  }

  .news-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }

  .news-tabs__item {
    padding: 12px 24px;
    font-size: 14px;
  }

  .news-list__featured {
    flex-direction: column;
  }

  .news-featured__image {
    flex: auto;
    height: 240px;
  }

  .news-featured__content {
    padding: 30px;
  }

  .news-featured__title {
    font-size: 22px;
  }

  .news-list__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .news-hero {
    height: 180px;
  }

  .news-hero__title {
    font-size: 26px;
  }

  .news-hero__subtitle {
    font-size: 14px;
  }

  .news-tabs {
    flex-direction: column;
  }

  .news-tabs__item {
    width: 100%;
    justify-content: center;
  }

  .news-featured__content {
    padding: 24px;
  }

  .news-featured__title {
    font-size: 18px;
  }

  .news-featured__desc {
    font-size: 14px;
    -webkit-line-clamp: 2;
  }

  .news-list__grid {
    grid-template-columns: 1fr;
  }

  .news-item__image {
    height: 180px;
  }

  .news-item__title {
    font-size: 16px;
  }

  .news-pagination__btn {
    width: 38px;
    height: 38px;
  }
}
