/**
 * CN/news/*.html 文章页：二级导航 + 右侧推荐/咨询栏
 */
@import url('../../styles/micount-biz-cta.css');
@import url('../../styles/article-mobile.css?v=20260812e');
@import url('news-typography.css?v=20260613');
@import url('../../styles/traffic-hub.css?v=20260619');

:root {
  --micount-nav-h: 55px;
  --news-subnav-h: 44px;
}

body.news-article-page {
  /* 覆盖 common.css body{padding-top:80px}，并为 fixed 二级导航留位 */
  padding-top: calc(var(--micount-nav-h) + var(--news-subnav-h)) !important;
  background: #f4f6f8;
  overflow-x: hidden;
}

/* 无顶栏的简单文章页 */
body.news-article-page:not(:has(#navbar)) {
  padding-top: var(--news-subnav-h) !important;
}

body.news-article-page:not(:has(#navbar)) .news-subnav {
  top: 0;
}

body.news-article-page:not(:has(#navbar)) .news-sidebar {
  top: calc(var(--news-subnav-h) + 8px);
}

/* 二级导航 — fixed 贴顶栏，消除与一级导航之间的空白 */
.news-subnav {
  position: fixed;
  top: var(--micount-nav-h);
  left: 0;
  right: 0;
  z-index: 40;
  min-height: var(--news-subnav-h);
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-subnav__inner {
  max-width: var(--shell-max-rem, 90rem);
  margin: 0 auto;
  padding: 0.625rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .news-subnav__inner {
    padding: 0.625rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .news-subnav__inner {
    padding: 0.625rem 2rem;
  }
}

.news-subnav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #047857;
  font-weight: 700;
  text-decoration: none;
}

.news-subnav__back:hover {
  color: #10b981;
}

.news-subnav__sep {
  color: #cbd5e1;
}

.news-subnav__link {
  color: #475569;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: color 0.15s, background 0.15s;
}

.news-subnav__link:hover {
  color: #047857;
  background: #ecfdf5;
}

/* 主布局（内层 grid 容器）— mobile-first padding */
div.news-article-page {
  max-width: var(--shell-max-rem, 90rem);
  margin: 0 auto;
  padding: 12px 12px 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  div.news-article-page {
    padding: 1.25rem 1rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  div.news-article-page {
    padding: 1.75rem 2rem 3.5rem;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
  }
}

.news-article-main {
  min-width: 0;
}

.news-article-main .container.max-w-4xl,
.news-article-main > main {
  max-width: none !important;
  width: 100%;
}

.news-article-main .article-header {
  margin-top: 0 !important;
  overflow: hidden;
  margin-bottom: 1rem;
}

.news-article-main > main {
  background: #fff;
  border-radius: 0.875rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
}

@media (min-width: 768px) {
  .news-article-main > main {
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .news-article-main > main {
    padding: 1.5rem 1.75rem;
  }
}

/* 侧边栏 */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 1024px) {
  .news-sidebar {
    position: sticky;
    top: calc(var(--micount-nav-h) + var(--news-subnav-h) + 8px);
  }
}

.news-side-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.125rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.news-side-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.news-side-card__title i {
  color: #10b981;
}

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

.news-side-list li {
  margin: 0;
  padding: 0;
  border-top: 1px solid #f1f5f9;
}

.news-side-list li:first-child {
  border-top: none;
}

.news-side-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #334155;
  text-decoration: none;
}

.news-side-list a:hover {
  color: #10b981;
}

.news-side-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  margin-right: 0.25rem;
  vertical-align: middle;
}

.news-side-tag--news {
  background: #ecfdf5;
  color: #047857;
}

.news-side-tag--blog {
  background: #eff6ff;
  color: #1d4ed8;
}

/* 移动端：咨询栏置于文末 */
@media (max-width: 1023px) {
  .news-sidebar {
    order: 2;
  }

  .news-article-main {
    order: 1;
  }
}
/* 文末继续阅读路径 */
.news-stay-path {
  margin: 2rem 0 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border: 1px solid #a7f3d0;
  border-radius: 12px;
}
.news-stay-path h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #047857;
  margin: 0 0 0.75rem;
}
.news-stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.news-stay-card {
  display: block;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.news-stay-card:hover {
  border-color: #10B981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}
.news-stay-card strong {
  display: block;
  font-size: 0.875rem;
  color: #1D2129;
  margin-bottom: 0.25rem;
}
.news-stay-card span {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.4;
}

/* 侧栏 · 读后选型三链 */
.news-side-read-path {
  border: 2px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5, #fff);
}
.news-side-read-path__lead {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.45;
}
.news-side-read-path__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.news-side-read-path__actions a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
}
.news-side-read-path__primary {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}
.news-side-read-path__coo {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}
.news-side-read-path__actions a:hover {
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

/* 文中选型快捷条（高跳出入口页） */
.news-mid-cta {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px dashed #6ee7b7;
  background: #f0fdf4;
}
.news-mid-cta__lead {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #047857;
}
.news-mid-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.news-mid-cta__actions a {
  flex: 1 1 130px;
  text-align: center;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
}
.news-mid-cta__primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.news-mid-cta__actions a:hover {
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.12);
}
@media (max-width: 640px) {
  .news-mid-cta__actions a {
    flex: 1 1 100%;
  }
}

/* 文末固定三按钮条 */
.news-read-path-bar {
  margin: 2rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 2px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
}
.news-read-path-bar__lead {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #047857;
}
.news-read-path-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.news-read-path-bar__actions a {
  flex: 1 1 140px;
  text-align: center;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: #047857;
  background: #fff;
  border: 1px solid #a7f3d0;
  transition: transform 0.15s, box-shadow 0.15s;
}
.news-read-path-bar__primary {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.news-read-path-bar__coo {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}
.news-read-path-bar__actions a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
@media (max-width: 640px) {
  .news-read-path-bar__actions a {
    flex: 1 1 100%;
  }
}

/* 流量枢纽（页脚上方）— 新闻页全宽对齐 */
body.news-article-page > .container.mx-auto {
  max-width: var(--shell-max-rem, 90rem);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  body.news-article-page > .container.mx-auto {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 2rem;
  }
}

body.news-article-page .site-traffic-hub {
  margin-top: 0.25rem;
}

body.news-article-page .site-traffic-hub-biz {
  margin-bottom: 0.25rem;
}

/* E-E-A-T 作者信息 */
.article-author-eeat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.article-author-eeat__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-author-eeat__name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0f172a;
}

.article-author-eeat__cred {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
}

/* 防止 TLDR / 容器误入 grid 顶层，主栏被挤进 300px 侧栏列 */
.news-article-page > :not(.news-article-main):not(.news-sidebar) {
  grid-column: 1 / -1;
}

