/* ============================================================
 * article.css · 8Manage 产品文章内容公共样式
 * 适用：结构化的产品介绍文章（如 SRM AI / CEOS 等长文页面）
 * 设计语言：沿用站点主色（#444258 文字 / #09d2ba 青绿 / #ff6d00 橙）
 * 命名空间：article-*（kebab-case），独立作用域，避免与现有 blockArea_* 冲突
 * 断点：1020px（平板）/ 640px（手机），与站点 newMedia.css 保持一致
 * ============================================================ */

/* ---------- 文档容器：所有局部 token 在此作用域，不污染全局 ---------- */
.article-doc {
  --art-text: #444258;
  /* 主文字色，沿用站点 */
  --art-text-2: #6b687d;
  /* 次要文字（描述、副标题）*/
  --art-text-3: #9a98a8;
  /* 更弱文字（标签、辅助）*/
  --art-accent: #09d2ba;
  /* 青绿强调，沿用页脚 CTA */
  --art-accent-2: #ff6d00;
  /* 橙强调，沿用站点用色 */
  --art-line: #e8e7ee;
  /* 分隔线 */
  --art-bg: #f7f8fa;
  /* 卡片浅底 */
  --art-bg-2: #eef0f5;
  /* 略深浅底 */
  --art-radius: 16px;
  /* 卡片圆角（比站点 25px 略小，更精致）*/
  --art-radius-sm: 10px;
  /* 小圆角（表格、按钮）*/

  color: var(--art-text);
  font-family: "Arial", "Helvetica", "sans-serif";
  font-size: 16px;
  line-height: 1.8;
  padding: 24px 0 0 0;
}

/* 文章模块统一 border-box：站点全局 box-sizing 非通配，
   避免移动端 width:100% 的按钮/流程步骤被 padding 撑破容器 */
.article-doc *,
.article-doc *::before,
.article-doc *::after {
  box-sizing: border-box;
}

/* H1 内副标题：语义并入 H1，视觉保留副标题层次（小字、淡色、换行）
   用法：<h1>主标题<span class="article-h1-sub">副标题</span></h1> */
.article-h1-sub {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #444258;
  line-height: 1.5;
  margin-top: 12px;
  font-family: "Arial", "Helvetica", "sans-serif";
}

/* ============================================================
 * 文章封面图入口（hero）：位于正文上方，预留的封面图位置
 * 用法：<figure class="article-hero"><img src="..." alt="..."></figure>
 *       <figcaption> 可选，作图注
 * 容器为空（未填图）时自动隐藏，填入 <img> 后按以下样式显示
 * ============================================================ */
.article-hero {
  margin: 16px 0 0;
  padding: 0;
  border-radius: var(--art-radius);
  overflow: hidden;
  background: var(--art-bg);
  border: 1px solid var(--art-line);
}

/* 未填图时空容器隐藏（HTML 注释不破坏 :empty）*/
.article-hero:empty {
  display: none;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article-hero figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--art-text-3);
  text-align: center;
  line-height: 1.5;
}

/* ============================================================
 * 章节：编号 eyebrow + 标题 + 副标题
 * 编号 01-06 编码文章真实顺序，承担信息，非纯装饰
 * ============================================================ */
.article-section {
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--art-line);
}

.article-section:first-child {
  border-top: none;
  margin-top: 0;
}

.article-section-head {
  margin-bottom: 28px;
}

.article-section-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--art-accent);
  letter-spacing: 2px;
  padding: 4px 0;
}

.article-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--art-text);
  margin: 4px 0 12px;
  line-height: 1.3;
}

.article-section-sub {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--art-text);
  margin: 0 0 8px;
  line-height: 1.5;
}

/* ---------- 正文段落 ---------- */
.article-text {
  margin: 0 0 18px;
  color: var(--art-text);
}

.article-lead {
  font-size: 1.06rem;
  color: var(--art-text);
}

/* 重点术语/数值内联强调 */
.article-text strong,
.article-desc strong,
.article-term {
  color: var(--art-text);
  font-weight: 700;
}

/* ============================================================
 * 特色组：子标题 + 列表（用于 Key Features 多组并列）
 * ============================================================ */
.article-feature {
  margin-top: 36px;
}

.article-feature:first-child {
  margin-top: 0;
}

.article-feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--art-text);
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--art-accent);
  line-height: 1.4;
}

/* ---------- 列表：term + desc 模式 ---------- */
.article-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.article-list-item {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed var(--art-line);
}

.article-list-item:last-child {
  border-bottom: none;
}

/* 自定义圆点标记 */
.article-list-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--art-accent);
}

/* 编号列表：用数字替代圆点 */
.article-list-numbered {
  counter-reset: article-step;
}

.article-list-numbered .article-list-item::before {
  content: counter(article-step);
  counter-increment: article-step;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--art-text);
  font-size: 0.85em;
  line-height: 1;
  top: 18px;
  transform: translateY(-50%);
}

.article-term {
  display: inline;
  /* 兼容 h4：覆盖 heading 默认字号与外边距，使 h4 与 span 视觉一致 */
  font-size: inherit;
  margin: 0;
}

.article-desc {
  color: var(--art-text);
}

/* 子列表（嵌套能力项，如 Agent 的 Capabilities）*/
.article-sub-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.article-sub-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: var(--art-text-2);
  font-size: 0.96rem;
}

.article-sub-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--art-accent);
  font-weight: 700;
}

/* ============================================================
 * 表格：Measurable Enterprise Benefits
 * 关键数值（8%-18% / 0% / weeks→hours / 100%）用强调色高亮
 * ============================================================ */
.article-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-sm);
  margin: 8px 0 0;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
  min-width: 640px;
}

.article-table thead th {
  background: var(--art-text);
  color: #fff;
  text-align: left;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
}

.article-table tbody td {
  padding: 16px 18px;
  border-top: 1px solid var(--art-line);
  vertical-align: top;
  color: var(--art-text);
}

.article-table tbody tr:nth-child(even) {
  background: var(--art-bg);
}

.article-table tbody td:last-child {
  color: var(--art-text);
  font-weight: 600;
}

/* 表格内数值强调 */
.article-table strong {
  color: var(--art-accent-2);
}

/* ============================================================
 * 架构图：Neural(青) → Symbolic(橙) 层叠 + ODOS 治理标记 + 4 分支
 * signature 元素：用色条与胶囊连接器表达"神经-符号"治理关系
 * ============================================================ */
.article-arch {
  margin-top: 32px;
  padding: 8px 0;
}

.article-arch-layer {
  position: relative;
  background: var(--art-bg);
  border: 1px solid var(--art-line);
  border-left: 5px solid var(--art-accent);
  border-radius: var(--art-radius-sm);
  padding: 18px 22px;
}

.article-arch-layer--neural {
  border-left-color: var(--art-accent);
  background: #ecfaf8;
}

.article-arch-layer--symbolic {
  border-left-color: var(--art-accent-2);
  background: #fff4ea;
}

.article-arch-layer-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--art-text);
}

.article-arch-layer--neural .article-arch-layer-tag {
  color: var(--art-accent);
}

.article-arch-layer--symbolic .article-arch-layer-tag {
  color: var(--art-accent-2);
}

.article-arch-layer-sub {
  font-size: 0.9rem;
  color: var(--art-text-3);
  margin-left: 8px;
}

.article-arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.article-arch-layer-items span {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.86rem;
  color: var(--art-text);
}

/* 层与层之间的治理连接器 */
.article-arch-governed {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  color: var(--art-text-2);
}

.article-arch-governed::before,
.article-arch-governed::after {
  content: "";
  width: 2px;
  height: 14px;
  background: var(--art-line);
}

.article-arch-governed-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--art-text-2);
  background: var(--art-bg-2);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 4px 0;
  letter-spacing: 0.5px;
}

/* 顶层与 Agent 之间的向下箭头行 */
.article-arch-arrows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.article-arch-arrow-down {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 0;
  color: var(--art-accent);
  font-size: 1.1rem;
}

/* 下方 4 个 Agent 分支 */
.article-arch-agents {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 0;
}

/* 5 个 Agent 分支变体（如 PPM AI 的 5 个守护 Agent）
   响应式由下方 1020px / 640px 媒体查询统一回退为 2 列，此处只覆盖桌面 */
.article-arch-agents--cols5 {
  grid-template-columns: repeat(5, 1fr);
}

/* 3 个 Agent 分支变体（如 ITSM AI 的 6 个 Agent，桌面 3×2 整齐排列）
   响应式由下方 1020px / 640px 媒体查询统一回退为 2 列，此处只覆盖桌面 */
.article-arch-agents--cols3 {
  grid-template-columns: repeat(3, 1fr);
}

.article-arch-agent {
  background: #fff;
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: box-shadow 0.25s ease;
}

.article-arch-agent:hover {
  box-shadow: 0 6px 18px rgba(68, 66, 88, 0.08);
}

.article-arch-agent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--art-bg);
  color: var(--art-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.article-arch-agent-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--art-text);
  line-height: 1.35;
}

.article-arch-agent-desc {
  font-size: 0.8rem;
  color: var(--art-text-3);
  margin-top: 4px;
  line-height: 1.4;
}

/* ============================================================
 * 流程图：6 步执行场景，横向步骤条 + 箭头
 * ============================================================ */
.article-flow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 32px;
}

.article-flow-step {
  flex: 1 1 0;
  min-width: 150px;
  background: var(--art-bg);
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius-sm);
  padding: 16px 14px;
  position: relative;
}

.article-flow-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--art-accent);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.article-flow-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--art-text);
  line-height: 1.4;
}

.article-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  color: var(--art-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
 * 垂直工作流图：AI-Agent 事件解决流程（居中竖排 + 下行箭头）
 * 结构：绿色药丸起止节点 + 紫色编号步骤框（编号压在左上角边框）
 * ============================================================ */
.article-workflow {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 所有节点水平居中 */
  margin: 0 0 8px;
}

/* 工作流主标题 */
.article-workflow-heading {
  margin: 24px 0 12px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--art-text);
}

/* 单个节点行（容纳卡片/药丸，统一居中与宽度） */
.article-workflow-node {
  width: 100%;
  max-width: 580px;
  display: flex;
  justify-content: center;
}

/* 节点之间的下行箭头 */
.article-workflow-arrow {
  color: var(--art-text-3);
  font-size: 1.15rem;
  line-height: 1;
  padding: 7px 0;
  text-align: center;
}

/* 起止节点：青绿药丸 */
.article-workflow-cap {
  background: var(--art-accent);
  color: #fff;
  border-radius: 999px;
  padding: 11px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.4;
}

/* 编号步骤节点：紫色圆角框 */
.article-workflow-card {
  position: relative;
  background: #7c6ad8;
  color: #fff;
  border-radius: var(--art-radius-sm);
  padding: 14px 18px 14px 22px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  /* 节点文字居中 */
}

/* 编号徽章：压在卡片左上角边框上（半外半内） */
.article-workflow-badge {
  position: absolute;
  left: -15px;
  top: -15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7c6ad8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  border: 3px solid #fff;
  /* 白色描边，与紫色框分离 */
  box-sizing: border-box;
}

.article-workflow-title {
  font-weight: 700;
  font-size: 1.05rem;
  /* 标题加大加粗，与描述拉开层次 */
  line-height: 1.4;
}

.article-workflow-desc {
  margin-top: 4px;
  font-weight: 400;
  /* 描述常规字重 */
  font-size: 0.86rem;
  /* 描述字号更小 */
  line-height: 1.5;
  opacity: 0.88;
}

/* 底部补充说明 */
.article-workflow-note {
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--art-text-2);
  background: var(--art-bg-2);
  border-radius: var(--art-radius-sm);
  text-align: center;
}

.article-workflow-note strong {
  color: var(--art-text);
}

/* ============================================================
 * CTA：文章结尾行动号召
 * ============================================================ */
.article-cta {
  margin-top: 56px;
  padding: 40px 24px;
  text-align: center;
  background: linear-gradient(135deg, #f7f8fa 0%, #ecfaf8 100%);
  border: 1px solid var(--art-line);
  border-radius: var(--art-radius);
}

.article-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--art-text);
  margin: 0 0 8px;
}

.article-cta-sub {
  color: var(--art-text-2);
  margin: 0 0 24px;
}

.article-cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.article-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--art-radius-sm);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.article-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* 主按钮：实心青绿 */
.article-cta-btn--primary {
  background: var(--art-accent);
  color: #fff;
}

/* 次按钮：描边 */
.article-cta-btn--ghost {
  background: #fff;
  color: var(--art-text);
  border: 1px solid var(--art-line);
}

.article-cta-btn--ghost:hover {
  border-color: var(--art-accent);
  color: var(--art-accent);
}

/* ============================================================
 * 响应式：平板（≤1020px）
 * ============================================================ */
@media screen and (max-width: 1020px) {
  .article-arch-agents {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-arch-arrows {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 流程图：平板上步骤较窄，箭头自动换行 */
  .article-flow-step {
    min-width: 130px;
  }
}

/* ============================================================
 * 响应式：手机（≤640px）
 * ============================================================ */
@media screen and (max-width: 640px) {
  .article-doc {
    font-size: 15px;
    padding-top: 12px;
  }

  .article-section {
    padding-top: 40px;
    margin-top: 40px;
  }

  .article-section-title {
    font-size: 1.5rem;
  }

  .article-section-sub {
    font-size: 1rem;
  }

  /* 架构图分支：手机单列 */
  .article-arch-agents {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .article-arch-arrows {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .article-flow-step-desc {
    margin-top: 8px;
    color: var(--art-text-2);
    font-size: 0.8rem;
    line-height: 1.35;
  }

  /* 流程图：手机改为纵向，箭头变为向下 */
  .article-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .article-flow-step {
    min-width: 0;
    width: 100%;
  }

  .article-flow-arrow {
    width: 100%;
    height: 28px;
    transform: rotate(90deg);
  }

  .article-cta {
    padding: 28px 16px;
  }

  .article-cta-title {
    font-size: 1.3rem;
  }

  .article-cta-btns {
    flex-direction: column;
  }

  .article-cta-btn {
    width: 100%;
  }
}

/* 尊重用户的动效偏好 */
@media (prefers-reduced-motion: reduce) {

  .article-cta-btn,
  .article-arch-agent {
    transition: none;
  }
}