/* from src/views/news/NewsListView.vue */
@charset "UTF-8";
.news-page .hot{
  margin-bottom: 32px;
  /* 底部浅色细线：分隔热点轮播卡片区与下方新闻列表卡片区 */
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.news-page .hot__head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.news-page .hot__tag{
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

.news-page .hot__title{
  margin: 0;
  font-size: 20px;
  color: var(--navy);
  white-space: nowrap;
}

/* 标题条右侧延伸渐变线：划分热点区与下方列表的板块边界 */
.news-page .hot__rule{
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(217, 55, 81, 0.35) 32%, rgba(15, 52, 91, 0.12) 72%, transparent 100%);
}

.news-page .hot__viewport{
  overflow: hidden;
  border-radius: var(--radius);
}

.news-page .hot__track{
  display: flex;
  transition: transform 520ms ease;
}

.news-page .hot__page{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 0 0 100%;
  min-width: 100%;
}

.news-page .hot__card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-page .hot__card:hover{
  box-shadow: 0 8px 24px rgba(15, 52, 91, 0.12);
  transform: translateY(-3px);
}
.news-page .hot__card:hover .hot__more{
  color: var(--accent);
}

.news-page .hot__cover{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 132px;
  padding: 14px 16px;
  color: #fff;
  overflow: hidden;
}
.news-page .hot__cover > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.news-page .hot__cover::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 38, 64, 0) 45%, rgba(5, 38, 64, 0.45) 100%);
  pointer-events: none;
}

.news-page .hot__cat, .news-page .hot__date{
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.news-page .hot__cat{
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
}

.news-page .hot__body{
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 14px;
}
.news-page .hot__body h3{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}
.news-page .hot__body p{
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .hot__more{
  margin-top: auto;
  font-size: 13px;
  color: var(--navy);
  transition: color 0.2s ease;
}

.news-page .hot__dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.news-page .hot__dot{
  width: 36px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: var(--navy);
  opacity: 0.25;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.news-page .hot__dot:hover{
  opacity: 0.5;
}
.news-page .hot__dot.is-active{
  background: var(--accent);
  opacity: 1;
}

.news-page .toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.news-page .tabs{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-page .tabs__item{
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  color: var(--navy);
  text-decoration: none;
}
.news-page .tabs__item.is-active, .news-page .tabs__item:hover{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.news-page .major-switch{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border: 1px solid #e8c84a;
  border-radius: 999px;
  background: #fffdf5;
  color: #8a6d00;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.news-page .major-switch:hover{
  box-shadow: 0 2px 10px rgba(245, 197, 24, 0.25);
}
.news-page .major-switch.is-on{
  background: #fff3bf;
  border-color: #f5c518;
  color: #6b5400;
}

.news-page .major-switch__star{
  color: #f5c518;
  font-size: 16px;
  line-height: 1;
}

.news-page .major-switch__label{
  font-weight: 500;
  white-space: nowrap;
}

.news-page .major-switch__track{
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: #ddd6b8;
  transition: background 0.2s ease;
}

.news-page .major-switch.is-on .major-switch__track{
  background: #f5c518;
}

.news-page .major-switch__thumb{
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.news-page .major-switch.is-on .major-switch__thumb{
  transform: translateX(16px);
}

.news-page .list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-content: start;
}

.news-page .empty{
  margin: 40px 0 0;
  text-align: center;
  color: var(--text-secondary, #666);
  font-size: 14px;
}

.news-page .item{
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.news-page .item:hover{
  box-shadow: 0 8px 24px rgba(15, 52, 91, 0.1);
  transform: translateY(-2px);
}
.news-page .item:hover h2{
  color: var(--accent);
}
.news-page .item h2{
  font-size: 18px;
  margin: 10px 0 12px;
  color: var(--navy);
  line-height: 1.45;
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-page .item p{
  margin: 0;
  margin-top: auto;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page .major-star{
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 20px;
  line-height: 1;
  color: #f5c518;
  text-shadow: 0 1px 2px rgba(180, 130, 0, 0.25);
  cursor: help;
  z-index: 1;
}

.news-page .meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--accent);
  font-size: 13px;
}

.news-page .pager{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  min-height: 40px;
}

.news-page .pager__btn, .news-page .pager__num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #fff;
  color: #0f345b;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.news-page .pager__btn:hover:not([style*="not-allowed"]), .news-page .pager__num:hover{
  color: #d93751;
  border-color: #d93751;
  box-shadow: 0 2px 6px rgba(217, 55, 81, 0.12);
}

.news-page .pager__num.is-active{
  color: #fff;
  background: #d93751;
  border-color: #d93751;
  box-shadow: 0 2px 8px rgba(217, 55, 81, 0.25);
  font-weight: 600;
}

.news-page .pager__btn[style*="not-allowed"]{
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 960px) {
  .news-page .hot__page{
    grid-template-columns: repeat(2, 1fr);
  }
  .news-page .list{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .news-page .hot__page{
    grid-template-columns: 1fr;
  }
  .news-page .list{
    grid-template-columns: 1fr;
  }
}
