/* ========================================
   学而升本官网 - 新闻资讯页面
   ======================================== */

/* Hero */
.news-hero {
  background: linear-gradient(135deg, #014DB2 0%, #001B4D 100%);
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
}
.news-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.news-hero__crumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.news-hero__crumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.news-hero__crumb a:hover { text-decoration: underline; }
.news-hero__title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.news-hero__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 分类 Tab */
.news-tabs {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #EEF1F6;
  padding: 14px 24px;
}
.news-tabs__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.news-tab {
  padding: 8px 22px;
  border-radius: 22px;
  border: 1px solid #E2E8F0;
  background: #F7F9FC;
  color: #5A6678;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.news-tab:hover { border-color: #014DB2; color: #014DB2; }
.news-tab--active {
  background: #014DB2;
  border-color: #014DB2;
  color: #fff;
}

/* 卡片网格 */
.news-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(1, 27, 77, 0.06);
  border: 1px solid #EEF1F6;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(1, 77, 178, 0.14);
}
/* 无封面图的新闻卡片：顶部品牌色条做视觉区分，高度仍与同行有图卡片一致（Grid 默认拉伸） */
.news-card--noco { border-top: 3px solid #014DB2; }
.news-card__cover {
  width: 100%;
  height: 180px;
  background: #E8EDF4;
  object-fit: cover;
  display: block;
}
.news-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-card__badge {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
.news-card__badge--blue { background: #E6F1FB; color: #185FA5; }
.news-card__badge--green { background: #EAF3DE; color: #3B6D11; }
.news-card__badge--amber { background: #FAEEDA; color: #854F0B; }
.news-card__title {
  font-size: 16px;
  font-weight: 700;
  color: #0A1628;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card__summary {
  font-size: 13px;
  color: #6B7585;
  line-height: 1.7;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.news-card__date {
  font-size: 12px;
  color: #AAB4C4;
  border-top: 1px solid #F0F2F6;
  padding-top: 12px;
}

/* 空状态 */
.news-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #9AA4B4;
  font-size: 15px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-hero__title { font-size: 30px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-tabs { top: 56px; }
}

/* CTA */
.news-cta {
  text-align: center;
  padding: 48px 24px 64px;
  background: #F9F9F9;
}
.news-cta__title {
  font-size: 26px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 10px;
}
.news-cta__sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 22px;
}
.news-cta__btn {
  display: inline-block;
  padding: 13px 36px;
  background: #014DB2;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.news-cta__btn:hover { background: #001B4D; }

/* ========================================
   新闻详情页
   ======================================== */
.news-detail {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}
.news-detail__crumb {
  font-size: 14px;
  color: #9AA4B4;
  margin-bottom: 18px;
}
.news-detail__crumb a { color: #6B7585; text-decoration: none; }
.news-detail__crumb a:hover { color: #014DB2; }
.news-detail__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.news-detail__badge {
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}
.news-detail__badge--blue { background: #E6F1FB; color: #185FA5; }
.news-detail__badge--green { background: #EAF3DE; color: #3B6D11; }
.news-detail__badge--amber { background: #FAEEDA; color: #854F0B; }
.news-detail__meta-info {
  font-size: 13px;
  color: #9AA4B4;
}
.news-detail__title {
  font-size: 30px;
  font-weight: 800;
  color: #0A1628;
  line-height: 1.4;
  margin-bottom: 22px;
}
.news-detail__cover {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 26px;
  display: block;
}
.news-detail__content {
  font-size: 16px;
  color: #2C3445;
  line-height: 1.9;
}
.news-detail__content p { margin: 0 0 18px; }
.news-detail__content h3 { font-size: 20px; color: #0A1628; margin: 28px 0 12px; }
.news-detail__content ul { margin: 0 0 18px; padding-left: 22px; }
.news-detail__content li { margin-bottom: 8px; }
.news-detail__content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.news-detail__content blockquote {
  margin: 0 0 18px;
  padding: 12px 18px;
  background: #F5F8FC;
  border-left: 4px solid #014DB2;
  color: #4A5468;
  border-radius: 0 8px 8px 0;
}
.news-detail__back {
  display: inline-block;
  margin-top: 30px;
  color: #014DB2;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.news-detail__back:hover { text-decoration: underline; }

/* 相关推荐 */
.news-related {
  max-width: 1200px;
  margin: 24px auto 0;
  padding: 32px 24px 56px;
}
.news-related__title {
  font-size: 20px;
  font-weight: 700;
  color: #0A1628;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #014DB2;
}
.news-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.news-related__card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(1, 27, 77, 0.06);
  border: 1px solid #EEF1F6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.news-related__card:hover { transform: translateY(-4px); }
.news-related__cover {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #E8EDF4;
  display: block;
}
.news-related__body { padding: 14px 16px; }
.news-related__cat {
  font-size: 12px;
  color: #185FA5;
  font-weight: 600;
  margin-bottom: 6px;
}
.news-related__t {
  font-size: 15px;
  font-weight: 700;
  color: #0A1628;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .news-related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .news-detail__title { font-size: 24px; }
  .news-related__grid { grid-template-columns: 1fr; }
}
