/* news.html · 新闻资讯 */

/* ── Banner ── */
.body .banner-news {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.body .banner-news--img {
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 150px 0 88px;
}

.body .banner-news__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.body .banner-news__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.body .banner-news__bg-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 10, 26, .92) 0%, rgba(12, 10, 26, .82) 42%, rgba(26, 21, 53, .5) 100%),
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(var(--brand-rgb), .18), transparent 55%);
}

.body .banner-news__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 820px;
}

.body .banner-news__head {
  margin-bottom: 36px;
  text-align: left;
}

.body .banner-news__eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.body .banner-news__head h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.body .banner-news__sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .68);
  max-width: 560px;
  margin: 0;
}

.body .news-search {
  max-width: none;
  margin: 0;
}

.news-search__bar {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .12);
}

.news-search__input {
  flex: 1;
  min-width: 0;
  height: 58px;
  padding: 0 22px;
  border: 0;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--text);
  background: transparent;
  outline: none;
}

.news-search__input::placeholder {
  color: var(--text-3)
}

.news-search__btn {
  flex: none;
  height: auto;
  padding: 0 28px;
  border: 0;
  background: var(--brand);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .2s;
}

.news-search__btn:hover,
.news-search__btn:focus {
  background: var(--brand-2);
  color: #fff !important;
  outline: none;
}

.body .banner-news__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.body .banner-news__tags-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  flex: none;
}

.body .banner-news__tags a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  transition: .2s;
}

.body .banner-news__tags a:hover {
  color: #fff;
  background: rgba(var(--brand-rgb), .35);
  border-color: rgba(var(--brand-rgb), .5);
}

/* ── 内容区 ── */
.news-page.page-wrapper {
  padding: 55px 0 20px !important;
  background: var(--surface) !important;
}

/* ── 侧栏布局 ── */
.news-page .container.sidebar-layout::before,
.news-page .container.sidebar-layout::after {
  display: none;
  content: none;
}

.news-page .sidebar-layout {
  display: flex;
  align-items: flex-start;
  
}

.news-page .sidebar {
  position: sticky;
  top: 96px;
  flex: none;
  width: 300px;
  padding: 12px 40px 0 0;
}

.news-page .sidebar__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 3.8vw, 44px);
  color: var(--text);
  margin: 0;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.news-page .sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}

.news-page .sidebar__nav a {
  display: block;
  padding: 14px 0 14px 20px;
  font-size: 15px;
  color: var(--text-2);
  border-left: 3px solid transparent;
  transition: color .15s, border-color .15s, padding-left .15s;
}

.news-page .sidebar__nav a:hover {
  color: var(--text);
  padding-left: 24px;
}

.news-page .sidebar__nav a.active {
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
  padding-left: 24px;
}

.body .news-main {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  overflow: hidden;
}

.news-main__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.news-main__header h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 2px;
}

.news-main__header p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.news-main__count {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

/* ── 文章列表 ── */
.body .news-list {
  display: flex;
  flex-direction: column;
}

.body .news-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background .18s, border-color .18s;
}

.body .news-item+.news-item {
  border-top: 1px solid var(--border);
  border-radius: 0;
}

.body .news-item:first-child {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0
}

.body .news-item:last-child {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm)
}

.body .news-item:only-child {
  border-radius: var(--radius-sm)
}

.body .news-item:hover {
  background: var(--surface-2);
  border-color: var(--border);
}

.body .news-item__txt {
  flex: 1;
  min-width: 0;
}

.body .news-item h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 5px;
  line-height: 1.45;
}

.body .news-item:hover h4 {
  color: var(--brand)
}

.body .news-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.body .news-item time {
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ── 分页 ── */
.news-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 18px 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

.news-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: .18s;
}

.news-pager__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--surface-2);
}

.news-pager__btn.is-disabled,
.news-pager__btn.is-disabled:hover {
  opacity: .45;
  pointer-events: none;
  border-color: var(--border);
  color: var(--text-3);
  background: var(--surface-2);
  cursor: default;
}

.news-pager__nums {
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-pager__nums a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: .18s;
}

.news-pager__nums a:hover {
  background: var(--surface-2);
  color: var(--brand);
}

.news-pager__nums a.is-active,
.news-pager__nums a.is-active:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

@media (max-width: 980px) {
  .news-page .sidebar-layout {
    flex-direction: column;
    gap: 24px;
  }

  .news-page .sidebar {
    position: static;
    width: auto;
    padding: 0 0 32px;
    border-bottom: 1px solid var(--border);
  }

  .news-page .sidebar__title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .news-page .sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-page .sidebar__nav a {
    padding: 8px 16px;
    border-left: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
  }

  .news-page .sidebar__nav a.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    padding-left: 16px;
  }
}

@media (max-width: 760px) {
  .body .banner-news--img {
    min-height: auto;
    padding: 120px 0 52px;
  }

  .body .banner-news__head {
    margin-bottom: 28px
  }

  .body .banner-news__head h1 {
    font-size: 32px
  }

  .body .banner-news__sub {
    font-size: 15px
  }

  .body .banner-news__bg-img {
    object-position: 70% center
  }

  .news-search__input {
    height: 50px;
    padding: 0 16px;
    font-size: 14px
  }

  .news-search__btn {
    padding: 0 20px;
    font-size: 14px
  }

  .body .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .body .news-item p {
    white-space: normal
  }

  .news-pager {
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 12px 10px
  }

  .news-pager__btn {
    min-width: 64px;
    height: 34px;
    font-size: 12px
  }

  .news-pager__nums a {
    min-width: 32px;
    height: 32px;
    font-size: 12px
  }
}