/* 新闻资讯列表页 */
body.news-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f0f2f5;
}

body.news-page-body .news-page__shell,
body.news-page-body .tpm-prod-hero-parent {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.news-page-body .news-page__shell.view-control .header.page-header-parent,
body.news-page-body .news-page__shell .page-header-parent.header {
  z-index: 1200 !important;
}

body.news-page-body .main.dcim-page.inner-page.news-page {
  flex: 1 0 auto;
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 64px 0 0;
  background: transparent;
}

body.news-page-body .news-empty {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.news-page-body .news-hero__title,
body.news-page-body .news-page .news-card__title {
  margin-top: 0;
}

.news-hero {
  background: linear-gradient(105deg, #1a2238 0%, #232d45 55%, #1e2838 100%);
  padding: 48px 20px 56px;
  overflow: hidden;
}

.news-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.news-hero__text {
  flex: 1;
  min-width: 0;
  color: #fff;
}

.news-hero__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #fff;
}

.news-hero__subtitle {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.news-hero__art {
  flex-shrink: 0;
  width: 320px;
  height: 200px;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 200, 180, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(0, 120, 255, 0.4) 0%, transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  border-radius: 8px;
  position: relative;
}

.news-hero__art::before,
.news-hero__art::after {
  content: "";
  position: absolute;
  border-radius: 4px;
  background: linear-gradient(135deg, #2dd4bf 0%, #0ea5e9 100%);
  opacity: 0.85;
}

.news-hero__art::before {
  width: 72px;
  height: 88px;
  left: 48px;
  top: 56px;
  transform: skewY(-8deg);
  box-shadow: 12px 16px 32px rgba(0, 0, 0, 0.25);
}

.news-hero__art::after {
  width: 100px;
  height: 64px;
  right: 56px;
  top: 72px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  transform: skewY(6deg);
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.2);
}

.news-main {
  padding: 24px 0 56px;
}

.news-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.news-main__columns {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.news-sidebar-wrap {
  flex: 0 0 240px;
  width: 240px;
  position: sticky;
  top: 84px;
  align-self: flex-start;
}

.news-sidebar-wrap .news-sidebar {
  position: static;
  flex: none;
  width: 100%;
}

.news-sidebar-wrap .news-sidebar + .news-sidebar {
  margin-top: 16px;
}

.news-sidebar {
  flex: 0 0 240px;
  width: 240px;
  background: #fff;
  border: 1px solid #e4e8ee;
  box-sizing: border-box;
}

.news-sidebar__head {
  padding: 14px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #00b4c8 0%, #00a8c0 100%);
  letter-spacing: 0.08em;
}

.news-sidebar__nav {
  margin: 0;
  padding: 8px 0 12px;
  list-style: none;
}

.news-sidebar__item + .news-sidebar__item {
  border-top: 1px solid #f0f2f5;
}

.news-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.news-sidebar__link::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='10' rx='1' fill='none' stroke='%2399a3b3' stroke-width='1.2'/%3E%3Cpath d='M5 6h6M5 9h4' stroke='%2399a3b3' stroke-width='1.2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-sidebar__link:hover {
  color: #00a8c0;
  background: #f7fcfd;
}

.news-sidebar__link.is-active {
  color: #00a8c0;
  font-weight: 600;
  background: #f0fafb;
}

.news-sidebar__link.is-active::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='12' height='10' rx='1' fill='none' stroke='%2300a8c0' stroke-width='1.2'/%3E%3Cpath d='M5 6h6M5 9h4' stroke='%2300a8c0' stroke-width='1.2'/%3E%3C/svg%3E");
}

.news-sidebar--categories .news-sidebar__item:not(.is-child) .news-sidebar__link {
  font-size: 15px;
  font-weight: 600;
  color: #00b4c8;
}

.news-sidebar--categories .news-sidebar__item:not(.is-child) .news-sidebar__link.is-active,
.news-sidebar--categories .news-sidebar__parent-link.is-active {
  font-weight: 700;
}

.news-sidebar--categories .news-sidebar__parent-link {
  font-size: 15px;
  font-weight: 600;
  color: #00b4c8;
}

.news-sidebar__nav--tree {
  padding: 0;
}

.news-sidebar__group + .news-sidebar__group {
  border-top: 1px solid #f0f2f5;
}

.news-sidebar__parent {
  display: flex;
  align-items: stretch;
}

.news-sidebar__toggle {
  flex-shrink: 0;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.news-sidebar__toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -4px;
  border-right: 2px solid #99a3b3;
  border-bottom: 2px solid #99a3b3;
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-sidebar__group.is-collapsed .news-sidebar__toggle::before {
  transform: rotate(-45deg);
  margin-top: -2px;
}

.news-sidebar__parent-link {
  flex: 1;
  min-width: 0;
}

.news-sidebar__parent-link::before {
  display: none;
}

.news-sidebar__subnav {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.news-sidebar__group.is-collapsed .news-sidebar__subnav {
  display: none;
}

.news-sidebar__subnav .news-sidebar__item + .news-sidebar__item {
  border-top: 1px solid #f7f8fa;
}

.news-sidebar__item.is-child .news-sidebar__link {
  padding-left: 28px;
  font-size: 13px;
  font-weight: 400;
}

.news-content {
  flex: 1;
  min-width: 0;
}

.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 16px;
  padding: 0 2px;
  font-size: 13px;
  color: #8a93a6;
  line-height: 22px;
}

.news-breadcrumb a {
  color: #8a93a6;
  text-decoration: none;
}

.news-breadcrumb a:hover {
  color: #00a8c0;
}

.news-breadcrumb__home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-breadcrumb__home-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6.5L8 2l6 4.5V14H10v-5H6v5H2V6.5z' fill='%238a93a6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-breadcrumb__sep {
  margin: 0 4px;
  color: #c5cad3;
}

.news-breadcrumb__current {
  color: #4a5568;
}

.news-list {
  width: 100%;
  background: #fff;
  border: 1px solid #e4e8ee;
  box-sizing: border-box;
}

.news-page .news-card {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid #eef1f5;
  box-sizing: border-box;
}

.news-page .news-card:last-child {
  border-bottom: 0;
}

.news-page .news-card__thumb {
  flex: 0 0 200px;
  width: 200px;
  height: 120px;
  overflow: hidden;
  border-radius: 2px;
  background: #eef1f5;
}

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

.news-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-card__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.news-card__title a {
  color: #2d3748;
  text-decoration: none;
}

.news-card__title a:hover {
  color: #00a8c0;
}

.news-page .news-card__summary {
  margin: 0;
  flex: 1;
  font-size: 14px;
  color: #8a93a6;
  line-height: 1.85;
  word-break: break-word;
}

.news-card__detail {
  color: #f59a23;
  text-decoration: none;
  white-space: nowrap;
}

.news-card__detail:hover {
  color: #e08610;
  text-decoration: underline;
}

.news-card__meta {
  margin-top: 14px;
  font-size: 13px;
  color: #a1a7b3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card__meta-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.5' fill='none' stroke='%23a1a7b3' stroke-width='1.2'/%3E%3Cpath d='M8 4.5V8l2.5 1.5' stroke='%23a1a7b3' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-empty {
  padding: 48px 28px;
  text-align: center;
  font-size: 14px;
  color: #8a93a6;
  background: #fff;
  border: 1px solid #e4e8ee;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 24px;
  padding: 16px 0 8px;
}

.news-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dce1e8;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.news-pagination__btn:hover {
  color: #00a8c0;
  border-color: #00a8c0;
}

.news-pagination__btn.is-disabled {
  color: #c5cad3;
  background: #f7f8fa;
  border-color: #e8ebf0;
  cursor: not-allowed;
}

.news-pagination__pages {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-pagination__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  color: #4a5568;
  text-decoration: none;
  background: #fff;
  border: 1px solid #dce1e8;
  border-radius: 2px;
}

.news-pagination__num:hover {
  color: #00a8c0;
  border-color: #00a8c0;
}

.news-pagination__num.is-current {
  color: #fff;
  background: #00a8c0;
  border-color: #00a8c0;
  pointer-events: none;
}

.news-pagination__ellipsis {
  min-width: 24px;
  text-align: center;
  color: #a1a7b3;
  font-size: 14px;
  list-style: none;
}

/* 资讯分类页 server-news.html */
body.server-news-page-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f5f6f8;
}

body.server-news-page-body .server-news-page__shell,
body.server-news-page-body .tpm-prod-hero-parent {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}

body.server-news-page-body .main.dcim-page.inner-page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding-top: 64px;
  background: #f5f6f8;
}

.server-news-page {
  flex: 1 0 auto;
  padding: 28px 20px 56px;
  background: #f5f6f8;
  min-height: 480px;
  box-sizing: border-box;
}

.server-news-page__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.server-news-page__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.server-news-page__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #191919;
  line-height: 1.3;
}

.server-news-page__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  color: #fff;
  line-height: 1;
  background: #ff4d4f;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.server-news-page__card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(15, 34, 67, 0.08);
  padding: 36px 40px 40px;
  box-sizing: border-box;
}

.server-news-page__empty {
  padding: 56px 0;
  text-align: center;
  font-size: 14px;
  color: #8a93a6;
}

.server-news-type-group {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #f0f2f5;
}

.server-news-type-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.server-news-type-group__title {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #191919;
  line-height: 1.35;
}

.server-news-type-group__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.8em;
  max-width: 72px;
  height: 4px;
  background: #00c8dc;
  border-radius: 2px;
}

.server-news-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 28px;
}

.server-news-type-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  transition: color 0.2s;
}

.server-news-type-item:hover .server-news-type-item__name {
  color: #00a8c0;
}

.server-news-type-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 9l7-3.5L19 9v6l-7 3.5L5 15V9z' stroke='%2345d0e8' stroke-width='1.6'/%3E%3Cpath d='M12 5.5V18.5M5 9l7 3.5L19 9' stroke='%2345d0e8' stroke-width='1.4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.server-news-type-item__name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 400;
  color: #888;
  line-height: 1.65;
  word-break: break-word;
}

@media (max-width: 992px) {
  .server-news-type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-news-page__card {
    padding: 28px 22px 32px;
  }
}

@media (max-width: 992px) {
  .news-hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .news-hero__art {
    width: 100%;
    max-width: 360px;
    height: 160px;
  }

  .news-main__columns {
    flex-direction: column;
  }

  .news-sidebar-wrap,
  .news-sidebar {
    position: static;
    flex: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.news-page-body .main.dcim-page.inner-page.news-page,
  body.server-news-page-body .main.dcim-page.inner-page {
    padding-top: 52px;
  }

  .news-hero {
    padding: 36px 16px 40px;
  }

  .news-hero__title {
    font-size: 28px;
  }

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

  .news-page .news-card {
    flex-direction: column;
    padding: 20px 16px;
  }

  .news-page .news-card__thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .server-news-page {
    padding: 20px 16px 40px;
  }

  .server-news-page__head {
    margin-bottom: 16px;
  }

  .server-news-page__title {
    font-size: 20px;
  }

  .server-news-page__card {
    padding: 24px 18px 28px;
  }

  .server-news-type-group {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .server-news-type-group__title {
    font-size: 17px;
    margin-bottom: 18px;
  }

  .server-news-type-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* 标签索引页 news_tag.html */
body.news-tag-page-body .main.dcim-page.inner-page.news-tag-page {
  padding: 32px 0 56px;
}

.news-tag-main {
  padding: 0;
}

.news-tag-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  margin-top: 55px;
  padding: 10px 10px 10px 10px;
}

.news-tag-panel {
  margin-top: 20px;
  padding: 28px 0 8px;
  border-top: 1px solid #e4e8ee;
  background: #fff;
  min-height: 500px;
}

.news-tag-empty {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 15px;
}

.news-tag-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.news-tag-grid__link {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568;
  text-decoration: none;
  transition: color 0.2s;
}

.news-tag-grid__link:hover {
  color: #00a8c0;
}

@media (max-width: 1200px) {
  .news-tag-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .news-tag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .news-tag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 18px;
  }
}

@media (max-width: 480px) {
  .news-tag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 标签新闻列表页 news_tag_list.html */
body.news-tag-list-page-body .main.dcim-page.inner-page.news-tag-list-page {
  padding: 32px 0 56px;
}

.news-tag-list-main {
  padding: 0;
}

.news-tag-list-main__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  box-sizing: border-box;
  margin-top: 55px;
}

.news-tag-list-panel {
  margin-top: 20px;
  padding: 28px 35px 8px;
  border-top: 1px solid #e4e8ee;
  background: #fff;
  min-height: 500px;
}

.news-tag-list-empty {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #718096;
  font-size: 15px;
}

.news-tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-tag-list__item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px dashed #e4e8ee;
}

.news-tag-list__item:last-child {
  border-bottom: none;
}

.news-tag-list__date {
  flex-shrink: 0;
  width: 56px;
  text-align: center;
  border: 1px solid #00a8c0;
  border-radius: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.news-tag-list__date-month {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #00a8c0;
  line-height: 1;
}

.news-tag-list__date-day {
  display: block;
  padding: 8px 0;
  font-size: 22px;
  font-weight: 600;
  color: #00a8c0;
  background: #fff;
  line-height: 1;
}

.news-tag-list__body {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.news-tag-list__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.news-tag-list__title a {
  color: #2d3748;
  text-decoration: none;
  transition: color 0.2s;
}

.news-tag-list__title a:hover {
  color: #00a8c0;
}

.news-tag-list__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #718096;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 768px) {
  .news-tag-list__item {
    gap: 16px;
    padding: 22px 0;
  }

  .news-tag-list__date {
    width: 50px;
  }

  .news-tag-list__title {
    font-size: 17px;
  }
}
