/* ===== 江豚动态频道页 ===== */

.news-main {
  padding-top: 0;
  padding-bottom: 30px;
  padding-bottom: var(--space);
}

.news-hero {
  text-align: center;
}

/* ----- 子导航 ----- */
.news-subnav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-bottom: 30px;
  margin-bottom: var(--space);
}

.news-subnav__link {
  height: 36px;
  padding: 0 22px;
  margin: 0 6px 10px;
  border-radius: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #6b7a86;
  background: #fff;
  line-height: 36px;
  -webkit-box-shadow: 0 4px 16px rgba(30, 70, 100, 0.05);
  box-shadow: 0 4px 16px rgba(30, 70, 100, 0.05);
  box-shadow: var(--shadow);
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
  border-radius: 18px;
}

.news-subnav__link:hover,
.news-subnav__link:focus {
  color: #2f92b8;
}

.news-subnav__link.is-active {
  color: #fff;
  background: #01B2C4;
  background: -webkit-linear-gradient(left, #01B2C4, #01A2F8);
  background: linear-gradient(90deg, #01B2C4, #01A2F8);
}

.news-subnav__link.is-active:hover,
.news-subnav__link.is-active:focus {
  color: #fff;
}

/* ----- 全宽列表（白底容器 + 左侧缩略图） ----- */
.news-page .news-list {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  margin-bottom: var(--space);
  padding: 20px 24px;
  background: #fff;
  border-radius: 2px;
  -webkit-box-shadow: 0 4px 16px rgba(30, 70, 100, 0.05);
  box-shadow: 0 4px 16px rgba(30, 70, 100, 0.05);
  box-shadow: var(--shadow);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.news-page .news-item {
  -webkit-box-flex: 0;
  -ms-flex: none;
  flex: none;
  margin-bottom: 0;
  overflow: visible;
  /* border-bottom: 1px solid #eef2f5; */
}

.news-page .news-item:last-child {
  border-bottom: none;
}

.news-page .news-item__link {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 16px 0;
  background: transparent;
  box-shadow: none;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.news-page .news-item__media {
  width: 160px;
  min-width: 160px;
  height: 100px;
  margin-right: 18px;
  overflow: hidden;
  background: #d8e6ee;
  border-radius: 2px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

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

.news-page .news-item__body {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.news-page .news-item__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  line-height: 26px;
}

.news-page .news-item__summary {
  margin: 8px 0 0;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: clip;
  line-height: 20px;
}

.news-page .news-item .news-date {
  margin-top: auto;

}

/* ----- 翻页 ----- */
.pagination {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination__btn {
  display: inline-block;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  background: #fff;
  color: #606266;
  font-size: 14px;
  line-height: 34px;
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: color 0.2s, background 0.2s, border-color 0.2s;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.pagination__btn:hover,
.pagination__btn:focus {
  color: #00a5c4;
  border-color: #00a5c4;
}

.pagination__btn.is-active {
  background: #00a5c4;
  border-color: #00a5c4;
  color: #fff;
}

.pagination__btn.is-active:hover,
.pagination__btn.is-active:focus {
  color: #fff;
  background: #00a5c4;
  border-color: #00a5c4;
}

/* IE 无 gap 时用 margin */
html.is-ie .pagination__btn {
  margin: 0 4px 8px;
}

@media (max-width: 767px) {
  .news-subnav__link {
    height: 32px;
    padding: 0 14px;
    font-size: 14px;
    line-height: 32px;
    margin: 0 4px 8px;
  }

  .news-page .news-list {
    padding: 12px 14px;
  }

  .news-page .news-item__link {
    padding: 12px 0;
  }

  .news-page .news-item__media {
    width: 100px;
    min-width: 100px;
    height: 72px;
    margin-right: 12px;
  }

  .pagination__btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
    line-height: 30px;
  }
}

/* ===== 江豚动态正文页 ===== */
.news-article {
  width: 100%;
  margin: 0 auto;
  padding: 36px 40px 48px;
  background: #fff;
  border-radius: 2px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.news-article__title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  color: #222;
  text-align: center;
}

.news-article__meta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8eef2;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7a86;
}

.news-article__meta-item {
  margin: 0 14px 6px;
}

.news-article__body {
  font-size: 16px;
  line-height: 1.9;
  color: #333;
}

.news-article__body p {
  margin: 0 0 1.2em;
  text-indent: 2em;
}

.news-article__figure {
  margin: 24px 0;
  text-align: center;
}

.news-article__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

@media (max-width: 767px) {
  .news-article {
    padding: 24px 16px 32px;
    border-radius: 2px;
  }

  .news-article__title {
    font-size: 22px;
    text-align: left;
  }

  .news-article__meta {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .news-article__meta-item {
    margin: 0 12px 4px 0;
  }

  .news-article__body {
    font-size: 15px;
  }
}

/* ===== 首页江豚动态 ===== */
/* ===== 江城动态及以下底纹 ===== */
.page-lower {
  width: 100%;
  background-color: #fff;
  background-image: url("../images/bg2.jpg");
  background-size: 1920px auto;
  background-repeat: no-repeat;
  background-position: center top;

}

.news-section {
  width: 100%;
  /* 顶部大留白留给背景装饰；上下节奏底边用 --space */
  padding: 180px 0 30px;
  padding-bottom: var(--space);
}

.news-toolbar {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-bottom: 30px;
  margin-bottom: var(--space);
}

.news-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  
}

.news-tab {
  height: 32px;
  padding: 0 18px;
  margin-right: 10px;
  border-radius: 2px;
  font-size: 18px;
  color: #6b7a86;
  background: transparent;
  line-height: 32px;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
  font-weight: bold;
  border-radius: 15px;
}

.news-tab.is-active {
  color: #fff;
  background: #3aa2c8;
  background: -webkit-linear-gradient(left, #4bb0d4, #2f92b8);
  background: linear-gradient(90deg, #4bb0d4, #2f92b8);
  background: linear-gradient(90deg, #01B2C4, #01A2F8);
}

.news-tab:hover {
  color: #2f92b8;
}

.news-tab.is-active:hover {
  color: #fff;
}

.news-more {
  font-size: 16px;
  color: #8a96a0;
  white-space: nowrap;
}

.news-more:hover {
  color: #00a8c0;
  color: var(--brand);
}

.news-panels {
  position: relative;
  height: 460px;
  /* 允许 .row 负边距伸出，保证与下方 news-promos 栅格对齐 */
  overflow: visible;
}

.news-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 460px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.news-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.news-body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  height: 460px;
  overflow: visible;
}

/* flex 下隐藏 .row clearfix，避免伪元素占位 */
.news-body.row::before,
.news-body.row::after {
  display: none;
}

/* 栅格列：取消 float，交由 flex 等高；间距由全局 --grid-gutter（30→24→18→16）提供 */
.news-body > [class*="col-"] {
  float: none;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.news-feature {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* 首页布局：列表在右侧栅格列内（条目外观见 news-list.css） */
.news-body .news-list {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: 100%;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  overflow: hidden;
}

.news-body .news-item {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

/* 首页江豚动态右侧列表：从右往左滑入，起始位移逐条错开后对齐 */
.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(1) {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(2) {
  -webkit-transform: translateX(20px);
  transform: translateX(20px);
}

.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(3) {
  -webkit-transform: translateX(40px);
  transform: translateX(40px);
}

.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(4) {
  -webkit-transform: translateX(60px);
  transform: translateX(60px);
}

.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(5) {
  -webkit-transform: translateX(80px);
  transform: translateX(80px);
}

.news-body .news-list.js-reveal-list > .js-reveal--left:nth-child(6) {
  -webkit-transform: translateX(100px);
  transform: translateX(100px);
}

.news-feature__link {
  display: block;
  height: 100%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(30, 70, 100, 0.05);
  box-shadow: var(--shadow);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  min-height: 0;
}

.news-feature__media {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #d8e6ee;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

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

.news-feature__body {
  padding: 14px 18px 12px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0%;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
}

.news-feature__title {
  margin: 0 0 6px;
  color: #222;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.news-feature__summary {
  margin: 0 0 8px;
  color: #7a8792;
  font-size: 14px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.news-feature__foot {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  margin-top: auto;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.news-share {
  display: inline-block;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  color: #8a96a0;
  font-size: 14px;
}

.news-share svg {
  margin-right: 4px;
}

.news-promos {
  margin-top: 30px;
  margin-top: var(--space);
}

.news-promo {
  display: block;
  width: 100%;
  max-width: none;
  height: 100px;
  overflow: hidden;
  text-indent: -999em;
  white-space: nowrap;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.news-promo--edu {
  background-image: url("../images/banner-edu@2x.png");
}

.news-promo--science {
  background-image: url("../images/banner-science@2x.png");
}

html.is-ie .news-panels {
  display: block;
  position: relative;
  height: 460px;
}

html.is-ie .news-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 460px;
}

html.is-ie .news-panel.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.is-ie .news-feature__link,
html.is-ie .news-item__link,
html.is-ie .news-promo {
  border-radius: 0;
  box-shadow: none;
}

html.is-ie .news-body {
  display: block;
  *zoom: 1;
}

html.is-ie .news-body > [class*="col-"] {
  float: left;
  height: 460px;
  display: block;
}

html.is-ie .news-feature,
html.is-ie .news-body .news-list {
  float: none;
  width: 100%;
  max-width: none;
  height: 100%;
}

html.is-ie .news-promo {
  float: none;
  width: 100%;
  margin: 0;
}


/* object-fit 降级 */
.no-object-fit .news-feature__media {
  position: relative;
}

.no-object-fit .news-feature__media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  -o-object-fit: none;
  object-fit: none;
  font-family: "object-fit: cover;";
}


/* ===== 首页江豚动态：响应式 ===== */
@media (max-width: 1199px) {
  .news-panels,
  .news-panel,
  .news-body {
    height: 440px;
  }

  .news-feature__media {
    height: 260px;
  }
}

@media (max-width: 991px) {
  .news-section {
    padding: 30px 0;
    padding-top: var(--space);
    padding-bottom: var(--space);
  }

  /* 手机/平板：取消固定高度与绝对定位，完整展示列表 */
  .news-panels {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .news-panel {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: auto;
  }

  .news-panel.is-active {
    display: block;
  }

  .news-body {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .news-body > [class*="col-"] {
    float: none;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }

  .news-body > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .news-feature,
  .news-body .news-list {
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: visible;
  }

  .news-feature {
    margin-bottom: 0;
    -ms-flex: none;
    flex: none;
  }

  .news-feature__media {
    height: 220px;
  }

  .news-feature__body {
    height: auto;
  }

  .news-feature__link {
    height: auto;
  }

  .news-body .news-list {
    -ms-flex: none;
    flex: none;
  }

  .news-promos > [class*="col-"] {
    margin-bottom: 12px;
  }

  .news-promos > [class*="col-"]:last-child {
    margin-bottom: 0;
  }

  .news-promo {
    width: 100%;
    margin: 0;
  }

  html.is-ie .news-panels,
  html.is-ie .news-panel {
    height: auto;
  }

  html.is-ie .news-panel {
    display: none;
    position: relative;
  }

  html.is-ie .news-panel.is-active {
    display: block;
  }

  html.is-ie .news-body > [class*="col-"],
  html.is-ie .news-feature,
  html.is-ie .news-body .news-list,
  html.is-ie .news-promo {
    float: none;
    width: 100%;
    height: auto;
    margin: 0 0 12px;
  }
}

@media (max-width: 767px) {
  .page-lower {
    padding-top: 40px;
    background-size: 900px auto !important;
  }

  .news-section {
    padding: 30px 0;
    padding-top: var(--space);
    padding-bottom: var(--space);
  }

  .news-toolbar {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }

  .news-tabs {
    margin-bottom: 8px;
  }

  .news-tab {
    height: 30px;
    padding: 0 14px;
    font-size: 16px;
    line-height: 30px;
   
  }

  .news-feature__media {
    height: 180px;
  }

  .news-feature__body {
    padding: 14px;
  }

  .news-feature__title {
    font-size: 16px;
    line-height: 23px;
  }

  .news-promo {
    height: 96px;
  }
}

