
@layer legacy {
/* ==========================================================================
   Ricodisk Enterprise Theme — 06-news.css
   由 main.css 自动拆分(保序连续段 6/30,作用域: news)
   ========================================================================== */
body.steady-news-list-page .page-hero,
body.steady-news-detail-page .page-hero {
  background: linear-gradient(180deg, #f7f8fb 0%, #eef1f6 100%);
  border-bottom: 1px solid rgba(37, 43, 66, 0.08);
  min-height: 0;
  padding: 64px 0 58px;
}

/* 后台上传 Hero 背景图时（模板输出 --news-hero-bg + has-custom-bg），
   图片上叠浅色蒙层，保持深色文字可读 */
body.steady-news-list-page .page-hero.has-custom-bg {
  background:
    linear-gradient(180deg, rgba(247, 248, 251, .86) 0%, rgba(238, 241, 246, .84) 100%),
    var(--news-hero-bg) center center / cover no-repeat;
}

body.steady-news-list-page .content-area,
body.steady-news-detail-page .content-area {
  background:
    radial-gradient(circle at 14% 6%, rgba(227, 6, 19, 0.055), transparent 32%),
    linear-gradient(180deg, #f6f7fa 0%, #ffffff 54%, #f7f8fb 100%);
}

body.steady-news-list-page .content-area > .container {
  width: min(calc(100% - 96px), 1180px);
  max-width: 1180px;
}

body.steady-news-list-page .entry-content,
body.steady-news-list-page .page-hero .eyebrow,
body.steady-news-detail-page .page-hero .eyebrow {
  display: none;
}

body.steady-news-list-page .news-list {
  display: grid;
  gap: 18px;
}

body.steady-news-list-page .news-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 43, 66, 0.08);
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(37, 43, 66, 0.07);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

body.steady-news-list-page .news-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #e30613;
  transform: scaleY(0.28);
  transform-origin: top;
  opacity: 0.75;
  transition: transform 0.26s ease, opacity 0.26s ease;
}

body.steady-news-list-page .news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(227, 6, 19, 0.2);
  box-shadow: 0 26px 64px rgba(37, 43, 66, 0.12);
}

body.steady-news-list-page .news-card:hover::before {
  transform: scaleY(1);
  opacity: 1;
}

body.steady-news-list-page .news-card__date strong {
  color: #252b42;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

body.steady-news-list-page .news-card:hover .news-card__title {
  color: #e30613;
}

body.steady-news-list-page .news-card__action {
  justify-self: end;
}

body.steady-news-list-page .news-card__action::after {
  content: "→";
  color: #e30613;
  font-size: 18px;
  line-height: 1;
}

body.steady-news-list-page .news-card:hover .news-card__action {
  color: #e30613;
  transform: translateX(4px);
}

body.steady-news-list-page .pagination {
  margin-top: 38px;
}

body.steady-news-detail-page .content-area > .container.single-layout {
  display: block !important;
}

body.steady-news-detail-page .entry-content {
  position: relative;
  display: grid;
  width: 100%;
  padding: 0;
  overflow: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.steady-news-detail-page .article-meta-panel {
  position: sticky !important;
  top: 132px;
  left: auto !important;
  grid-column: 1;
  align-self: start;
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(37, 43, 66, 0.08);
  border-top: 4px solid #e30613;
  box-shadow: 0 18px 46px rgba(37, 43, 66, 0.08);
  color: #7a8395;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

body.steady-news-detail-page .article-meta-panel strong {
  color: #e30613;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

body.steady-news-detail-page .entry-content > :not(.article-meta-panel) {
  grid-column: 2;
  max-width: none !important;
}

body.steady-news-detail-page .entry-content > p,
body.steady-news-detail-page .entry-content > ul,
body.steady-news-detail-page .entry-content > ol,
body.steady-news-detail-page .entry-content > blockquote,
body.steady-news-detail-page .entry-content > h2,
body.steady-news-detail-page .entry-content > h3,
body.steady-news-detail-page .entry-content > h4,
body.steady-news-detail-page .entry-content > .wp-block-image,
body.steady-news-detail-page .entry-content > figure,
body.steady-news-detail-page .entry-content > table,
body.steady-news-detail-page .entry-content > .wp-block-table {
  padding-left: 56px;
  padding-right: 56px;
}

@media (max-width: 980px) {
  body.steady-news-list-page .content-area > .container,
  body.steady-news-detail-page .content-area > .container.single-layout {
    width: min(calc(100% - 48px), 1180px) !important;
  }

  body.steady-news-list-page .news-card__action {
    grid-column: 2;
    justify-self: start;
  }

  body.steady-news-list-page .news-card__date {
    padding-left: 16px;
  }

  body.steady-news-detail-page .entry-content {
    grid-template-columns: 1fr !important;
  }

  body.steady-news-detail-page .article-meta-panel {
    position: static !important;
    grid-column: 1;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
  }

  body.steady-news-detail-page .entry-content > p,
  body.steady-news-detail-page .entry-content > ul,
  body.steady-news-detail-page .entry-content > ol,
  body.steady-news-detail-page .entry-content > blockquote,
  body.steady-news-detail-page .entry-content > h2,
  body.steady-news-detail-page .entry-content > h3,
  body.steady-news-detail-page .entry-content > h4,
  body.steady-news-detail-page .entry-content > .wp-block-image,
  body.steady-news-detail-page .entry-content > figure,
  body.steady-news-detail-page .entry-content > table,
  body.steady-news-detail-page .entry-content > .wp-block-table {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  body.steady-news-list-page .page-hero,
  body.steady-news-detail-page .page-hero {
    padding: 46px 0 42px;
  }

  body.steady-news-list-page .news-card__main {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.steady-news-list-page .news-card__date {
    min-height: 0;
    padding: 0 0 0 14px;
  }
}

body.steady-news-list-page.page .entry-content,
body.steady-news-detail-page .single-sidebar {
  display: none !important;
}

body.steady-news-detail-page .news-article-body {
  grid-column: 2;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(37, 43, 66, 0.08);
  box-shadow: 0 24px 64px rgba(37, 43, 66, 0.1);
}

body.steady-news-detail-page .news-article-body > *:first-child {
  margin-top: 0 !important;
}

body.steady-news-detail-page .news-article-body > *:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 980px) {
  body.steady-news-detail-page .news-article-body {
    grid-column: 1;
    padding: 34px 28px 44px;
  }

  body.steady-news-detail-page .entry-content > .pagination,
body.steady-news-detail-page .entry-content > :not(.article-meta-panel) {
    grid-column: 1;
  }
}

body.steady-news-list-page .news-card__date {
  display: grid;
  align-content: center;
  justify-items: start;
  border-left: 1px solid rgba(37, 43, 66, 0.12);
  padding: 12px 0 12px 18px;
}

body.steady-news-list-page .news-card__date em {
  color: #8b93a4;
  font-style: normal;
  font-weight: 800;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
}

body.steady-news-list-page .news-card__content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

body.steady-news-list-page .news-card__meta {
  color: #e30613;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
}

body.steady-news-list-page .news-card__title {
  color: #252b42;
  font-weight: 800;
  transition: color 0.24s ease;
  letter-spacing: -0.02em;
}

body.steady-news-list-page .news-card__action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #252b42;
  font-weight: 800;
  white-space: nowrap;
  transition: color 0.24s ease, transform 0.24s ease;
  font-size: 14px;
}

body.steady-news-detail-page .article-meta-panel {
  padding: 22px 18px;
}

body.steady-news-detail-page .article-meta-panel span {
  color: #252b42;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 20px;
}

body.steady-news-detail-page .news-article-body > p:first-of-type {
  color: #252b42 !important;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.85 !important;
}

body.steady-news-detail-page .news-article-body p + p {
  margin-top: 18px;
}

@media (max-width: 980px) {
  body.steady-news-list-page .news-card__main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 22px 24px 28px;
  }

  body.steady-news-list-page .news-card__date strong {
    font-size: 30px;
  }
}

@media (max-width: 640px) {
  body.steady-news-list-page .news-card__main {
    padding: 22px;
  }

  body.steady-news-list-page .news-card__title {
    font-size: 19px;
  }

  body.steady-news-list-page .news-card__excerpt {
    font-size: 14px;
  }

  body.steady-news-detail-page .news-article-body {
    padding: 30px 24px 38px;
  }
}

body.steady-news-list-page .news-card__main {
  display: grid;
  align-items: center;
  color: inherit;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  gap: 22px;
  padding: 22px 28px 22px 32px;
}

body.steady-news-list-page .news-card__excerpt {
  overflow: hidden;
  font-weight: 500;
  display: -webkit-box;
  color: var(--color-muted);
  -webkit-box-orient: vertical;
}

body.steady-news-list-page .news-card__date em,
body.steady-news-list-page .news-card__meta,
body.steady-news-list-page .news-card__action {
  font-size: 12px;
}
}
