/* ==========================================================================
   识界科技 (SEEJAI) 新闻与深度洞察文章 统一高端双栏阅读排版规范 V2
   对标 IT张工 双栏响应式阅读架构，融合识界科技蓝深色品牌视觉体系
   ========================================================================== */

:root {
  --sj-primary: #006FF2;
  --sj-primary-hover: #0052B8;
  --sj-primary-light: #EAF2FD;
  --sj-primary-active: #EDF5FF;
  --sj-navy: #0A1D3F;
  --sj-ink: #17324D;
  --sj-body: #23384D;
  --sj-muted: #586F87;
  --sj-line: #D9E6F3;
  --sj-line-soft: #E5EDF5;
  --sj-paper: #F4F7FB;
  --sj-white: #FFFFFF;
}

/* 页面主体 */
.news-page {
  background: var(--sj-paper);
  color: var(--sj-ink);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.news-article {
  background: var(--sj-paper);
  color: var(--sj-ink);
  padding-bottom: 72px;
}

/* 顶部阅读进度条 (位于固顶导航栏正下方) */
.news-progress {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 50;
  pointer-events: none;
}
@media (min-width: 1280px) {
  .news-progress {
    top: 96px;
  }
}
@media (max-width: 768px) {
  .news-progress {
    top: 80px;
  }
}
.news-progress span {
  display: block;
  height: 100%;
  background: var(--sj-primary);
  box-shadow: 0 0 10px rgba(0, 111, 242, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.08s ease-out;
}

/* 整体内容容器 (最大 1120px) */
.news-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* 文章头部 Masthead (避开 fixed navbar) */
.news-masthead {
  padding-top: 110px;
}
@media (min-width: 1280px) {
  .news-masthead {
    padding-top: 126px;
  }
}

/* 面包屑导航 */
.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--sj-muted);
  font-size: 13px;
  line-height: 1.7;
}
.news-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color .15s ease;
}
.news-breadcrumb a:hover {
  color: var(--sj-primary);
  text-decoration: underline;
}
.news-breadcrumb [aria-current="page"] {
  color: var(--sj-ink);
  font-weight: 500;
}

/* 元信息栏 */
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  color: var(--sj-muted);
  font-size: 13px;
}
.news-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--sj-primary-hover);
  background: var(--sj-primary-light);
  border: 1px solid #BCD7F3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

/* 标题区 (分主标题与副标题) */
.news-title {
  max-width: 1040px;
  margin: 20px 0 22px;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.4;
  letter-spacing: -.025em;
  font-weight: 750;
  color: var(--sj-navy);
  text-wrap: pretty;
}
.news-title > span {
  display: block;
}
.news-title .news-title-chunk {
  display: inline;
}
.news-title-detail {
  display: block;
  margin-top: 8px;
  font-size: .78em;
  line-height: 1.55;
  font-weight: 650;
  letter-spacing: -.015em;
  color: #1a3857;
}

/* 导读摘要 */
.news-lead {
  max-width: 960px;
  margin: 0 0 20px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--sj-muted);
  border-left: 3px solid #BCD7F3;
  padding-left: 16px;
  background: rgba(234, 242, 253, 0.35);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
}

/* 操作工具栏 (复制链接 / 审核来源) */
.news-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--sj-muted);
}
.news-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--sj-line);
  border-radius: 6px;
  padding: 6px 13px;
  background: #FFFFFF;
  color: var(--sj-ink);
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .2s ease;
  box-shadow: 0 1px 3px rgba(10, 29, 63, 0.04);
}
.news-copy:hover {
  border-color: var(--sj-primary);
  color: var(--sj-primary);
  background: var(--sj-primary-light);
}
.news-copy-status {
  min-height: 18px;
  color: var(--sj-primary);
  font-weight: 600;
}

/* 封面大图 (16:9) */
.news-cover {
  margin: 32px 0 40px;
}
.news-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--sj-line);
  border-radius: 16px;
  background: #E8EEF5;
  box-shadow: 0 6px 24px rgba(10, 29, 63, 0.05);
}
.news-cover figcaption {
  margin-top: 11px;
  color: var(--sj-muted);
  font-size: 12.5px;
  line-height: 1.7;
  text-align: center;
}

/* 双栏阅读网格 (左侧正文，右侧侧边栏) */
.news-reading-grid {
  display: grid;
  grid-template-areas: "story contents";
  grid-template-columns: minmax(0, 1fr) 268px;
  align-items: start;
  gap: 36px;
}

/* 侧边栏 (目录与相关服务卡片) */
.news-aside {
  grid-area: contents;
  position: sticky;
  top: 106px;
  min-width: 0;
}
@media (min-width: 1280px) {
  .news-aside {
    top: 118px;
  }
}

/* 侧边栏目录 Table of Contents */
.news-toc {
  padding: 22px;
  border: 1px solid var(--sj-line);
  border-radius: 14px;
  background: var(--sj-white);
  box-shadow: 0 4px 18px rgba(10, 29, 63, 0.03);
}
.news-toc summary {
  font-size: 15px;
  font-weight: 700;
  color: var(--sj-navy);
  cursor: pointer;
  line-height: 1.6;
  outline: none;
  user-select: none;
}
.news-toc nav {
  margin-top: 15px;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.news-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.news-toc li + li {
  margin-top: 5px;
}
.news-toc a {
  display: block;
  padding: 8px 10px;
  border-left: 3px solid transparent;
  color: var(--sj-muted);
  font-size: 13px;
  line-height: 1.6;
  text-decoration: none;
  border-radius: 0 6px 6px 0;
  transition: all .15s ease;
}
.news-toc a:hover {
  color: var(--sj-primary);
  background: var(--sj-primary-light);
  border-left-color: #8BC6FF;
}
.news-toc a[aria-current="location"] {
  color: var(--sj-primary-hover);
  border-left-color: var(--sj-primary);
  background: var(--sj-primary-active);
  font-weight: 600;
}

/* 侧边栏相关服务卡片 */
.news-aside-service {
  margin-top: 20px;
  padding: 22px;
  background: var(--sj-primary-light);
  border: 1px solid #CFE0F2;
  border-radius: 14px;
}
.news-aside-service h2 {
  font-size: 15px;
  font-weight: 750;
  color: var(--sj-navy);
  margin: 0 0 10px;
}
.news-aside-service p {
  margin: 0 0 15px;
  color: var(--sj-muted);
  font-size: 13px;
  line-height: 1.85;
}
.news-aside-service a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--sj-primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s ease;
}
.news-aside-service a:hover {
  color: var(--sj-primary-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 文章正文 Prose */
.news-prose {
  grid-area: story;
  min-width: 0;
  padding: 38px 44px;
  border: 1px solid var(--sj-line);
  border-radius: 18px;
  background: var(--sj-white);
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--sj-body);
  overflow-wrap: break-word;
  box-shadow: 0 4px 20px rgba(10, 29, 63, 0.03);
}
.news-prose > p {
  margin: 0 0 1.25em;
  color: var(--sj-body);
}
.news-prose > h2 {
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid var(--sj-primary);
  font-size: 24px;
  line-height: 1.5;
  font-weight: 750;
  color: var(--sj-navy);
  scroll-margin-top: 110px;
}
@media (min-width: 1280px) {
  .news-prose > h2 {
    scroll-margin-top: 126px;
  }
}
.news-prose > h2:first-of-type {
  margin-top: 10px;
}
.news-prose > h3 {
  margin: 28px 0 12px;
  font-size: 18.5px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--sj-navy);
  scroll-margin-top: 110px;
}
@media (min-width: 1280px) {
  .news-prose > h3 {
    scroll-margin-top: 126px;
  }
}
.news-prose ul, .news-prose ol {
  padding-left: 1.6em;
  margin: 12px 0 24px;
}
.news-prose li {
  margin-block: 8px;
  padding-left: 3px;
  line-height: 1.85;
}
.news-prose li::marker {
  color: var(--sj-primary);
  font-weight: 650;
}
.news-prose strong {
  font-weight: 700;
  color: var(--sj-navy);
}
.news-prose a {
  color: var(--sj-primary);
  text-decoration: underline;
  text-decoration-color: #8BC6FF;
  text-underline-offset: 4px;
  transition: color .15s ease, text-decoration-color .15s ease;
}
.news-prose a:hover {
  color: var(--sj-primary-hover);
  text-decoration-color: var(--sj-primary-hover);
}
.news-prose pre {
  margin: 22px 0 26px;
  padding: 18px 22px;
  border-radius: 10px;
  background: #08152B;
  color: #D9E6F3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
}
.news-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--sj-primary-light);
  color: #004fb0;
}
.news-prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

/* 重点框 Highlights Card */
.news-highlights {
  padding: 22px 26px;
  margin-bottom: 34px;
  background: #F4F8FE;
  border: 1px solid #BCD7F3;
  border-left: 4px solid var(--sj-primary);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 111, 242, 0.03);
}
.news-highlights h2 {
  margin: 0 0 12px;
  color: var(--sj-navy);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.6;
  border-left: 0;
  padding-left: 0;
}
.news-highlights ul {
  padding-left: 1.3em;
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--sj-ink);
}
.news-highlights li {
  margin: 6px 0;
}

/* 表格包装器与样式 Table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 30px;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid var(--sj-line);
}
.news-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.7;
  text-align: left;
  background: var(--sj-white);
}
.news-table th, .news-table td {
  padding: 13px 18px;
  border: 1px solid var(--sj-line-soft);
}
.news-table th {
  background: #EDF3FA;
  font-weight: 700;
  color: var(--sj-navy);
  white-space: nowrap;
}
.news-table tr:nth-child(even) td {
  background: #F9FBFE;
}
.news-table tr:hover td {
  background: var(--sj-primary-light);
}

/* 标签行 */
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sj-line-soft);
}
.news-tags span {
  padding: 4px 10px;
  border-radius: 5px;
  color: var(--sj-muted);
  background: var(--sj-primary-light);
  font-size: 12px;
  font-weight: 500;
}

/* 结尾落款品牌卡片 Endnote */
.news-endnote {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--sj-line);
  display: flex;
  gap: 22px;
  align-items: center;
}
.news-endnote img {
  display: block;
  width: 148px;
  height: auto;
  flex-shrink: 0;
}
.news-endnote p {
  margin: 0;
  color: var(--sj-muted);
  font-size: 13px;
  line-height: 1.85;
}
.news-endnote strong {
  display: block;
  font-size: 14px;
  color: var(--sj-navy);
  margin-bottom: 3px;
}

/* 方案咨询卡片 (深蓝高端科技风) */
.news-consult {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 38px;
  border: 1px solid #17355F;
  border-radius: 18px;
  background: linear-gradient(135deg, #0A1D3F 0%, #0F264E 60%, #15376B 100%);
  color: #FFFFFF;
  box-shadow: 0 12px 36px rgba(10, 29, 63, 0.12);
}
.news-consult h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 750;
  color: #FFFFFF;
}
.news-consult p {
  max-width: 640px;
  margin: 0;
  color: #BCD7F3;
  font-size: 14px;
  line-height: 1.9;
}
.news-consult-actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--sj-primary);
  border-radius: 8px;
  background: var(--sj-primary);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none !important;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0, 111, 242, 0.35);
}
.news-button:hover {
  background: var(--sj-primary-hover);
  border-color: var(--sj-primary-hover);
  box-shadow: 0 6px 18px rgba(0, 111, 242, 0.45);
}
.news-button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
  box-shadow: none;
}
.news-button-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 推荐阅读 Related Articles */
.news-related {
  margin-top: 50px;
}
.news-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.news-section-head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 750;
  color: var(--sj-navy);
  line-height: 1.4;
}
.news-section-head p {
  margin: 8px 0 0;
  color: var(--sj-muted);
  font-size: 14px;
  line-height: 1.8;
}
.news-section-head > a {
  flex: 0 0 auto;
  color: var(--sj-primary);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease;
}
.news-section-head > a:hover {
  color: var(--sj-primary-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.news-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--sj-line);
  border-radius: 14px;
  background: var(--sj-white);
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 10px rgba(10, 29, 63, 0.02);
}
.news-card:hover {
  color: inherit;
  border-color: #8BC6FF;
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 111, 242, 0.08);
}
.news-card-category {
  color: var(--sj-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}
.news-card h3 {
  margin: 11px 0;
  font-size: 17.5px;
  line-height: 1.65;
  font-weight: 700;
  color: var(--sj-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: var(--sj-muted);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-more {
  margin-top: auto;
  color: var(--sj-primary);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.news-card:hover .news-card-more {
  color: var(--sj-primary-hover);
}

/* 响应式断点控制 */
@media (max-width: 1000px) {
  .news-reading-grid {
    grid-template-areas: "contents" "story";
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .news-aside {
    position: static;
  }
  .news-toc {
    padding: 18px 20px;
  }
  .news-toc nav {
    max-height: 280px;
  }
  .news-aside-service {
    display: none;
  }
  .news-prose {
    padding: 30px;
  }
  .news-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-wrap {
    width: calc(100% - 32px);
  }
  .news-article {
    padding-bottom: 42px;
  }
  .news-masthead {
    padding-top: 96px;
  }
  .news-breadcrumb {
    font-size: 12px;
    margin-bottom: 20px;
  }
  .news-meta {
    font-size: 12px;
    gap: 8px 12px;
  }
  .news-title {
    font-size: 26px;
    line-height: 1.45;
    margin: 16px 0;
  }
  .news-lead {
    font-size: 15px;
    line-height: 1.9;
    padding: 12px 14px;
  }
  .news-tools {
    margin-top: 14px;
  }
  .news-cover {
    margin: 22px 0 26px;
  }
  .news-cover img {
    border-radius: 12px;
  }
  .news-cover figcaption {
    font-size: 11.5px;
  }
  .news-prose {
    padding: 22px 18px;
    border-radius: 14px;
    font-size: 15.5px;
    line-height: 1.95;
  }
  .news-prose > h2 {
    font-size: 21px;
    margin: 34px 0 15px;
    padding-left: 10px;
  }
  .news-prose > h3 {
    font-size: 17px;
  }
  .news-highlights {
    padding: 16px 18px;
    margin-bottom: 24px;
  }
  .news-highlights ul {
    font-size: 14px;
  }
  .news-endnote {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .news-endnote img {
    width: 140px;
  }
  .news-consult {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
  }
  .news-consult h2 {
    font-size: 21px;
  }
  .news-consult-actions {
    width: 100%;
  }
  .news-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .news-section-head h2 {
    font-size: 23px;
  }
  .news-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card {
    transition: none;
  }
  .news-card:hover {
    transform: none;
  }
}

@media print {
  header, footer, .news-progress, .news-aside, .news-tools, .news-consult, .news-related {
    display: none !important;
  }
  .news-article {
    background: #fff;
    padding: 0;
  }
  .news-wrap {
    width: 100%;
  }
  .news-reading-grid {
    display: block;
  }
  .news-prose {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
