/* 文章详情页 — 与静态 articles/*.html 正文区、侧栏一致（配合 home.css） */

.article-detail-page .breadcrumb {
  padding: 20px 0 10px;
  font-size: 13px;
  color: #666;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.article-detail-page .breadcrumb a {
  color: #0F4C81;
}
.article-detail-page .breadcrumb a:hover {
  text-decoration: underline;
}
.article-detail-page .breadcrumb span {
  margin: 0 8px;
}

.article-detail-columns {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.article-detail-main {
  flex: 3;
  min-width: 0;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.article-detail-sidebar {
  flex: 1;
  min-width: 260px;
  flex-shrink: 0;
}

/* 标题区（动态页顶栏） */
.article-detail-page .article-content > h1 {
  font-size: 28px;
  color: #0F4C81;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 700;
}
.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #999;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

/* 固定系列：正文末上下篇，与侧栏「系列文章」列表互为补充 */
.article-series-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 18px 20px;
  background: #f7fafc;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  font-size: 14px;
}
.article-series-nav-end {
  margin-top: 36px;
}
.article-series-nav-link {
  flex: 1 1 200px;
  max-width: 100%;
  color: #0f4c81;
  text-decoration: none;
  line-height: 1.45;
  font-weight: 500;
}
.article-series-nav-link:hover {
  text-decoration: underline;
}
.article-series-nav-link.next {
  text-align: right;
}
.article-series-nav-link.is-muted {
  color: #aaa;
  font-weight: 400;
  cursor: default;
}
.article-series-nav-dir {
  font-weight: 600;
  opacity: 0.85;
}

/* 正文根：与 articles/5why-analysis.html、带 main-content 的页一致 */
.article-detail-page .article-content {
  line-height: 1.8;
  font-size: 15px;
}

/* home.css 全局 ul { list-style:none } 会去掉列表符号，在此恢复 */
.article-detail-page .article-content ul {
  list-style: disc;
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 1.35em;
}
.article-detail-page .article-content ol {
  list-style: decimal;
  margin-left: 0;
  margin-bottom: 16px;
  padding-left: 1.35em;
}
.article-detail-page .article-content li {
  margin-bottom: 8px;
}

/* 无 .section 包裹时的标题（5Why 等）；.section 内 h2 由下方规则覆盖 */
.article-detail-page .article-content h2 {
  font-size: 22px;
  color: #0f4c81;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  position: relative;
}
.article-detail-page .article-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background-color: #0f4c81;
}
.article-detail-page .article-content .section h2::before {
  content: none;
}
.article-detail-page .article-content > h3:not(.catalog-title),
.article-detail-page .article-content .article-content h3:not(.catalog-title) {
  font-size: 18px;
  color: #333;
  margin: 25px 0 12px;
  font-weight: 600;
  position: relative;
  padding-left: 10px;
}
.article-detail-page .article-content > h3:not(.catalog-title)::before,
.article-detail-page .article-content .article-content h3:not(.catalog-title)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: #ff7f24;
}
.article-detail-page .article-content > p,
.article-detail-page .article-content .article-content p {
  margin-bottom: 15px;
  color: #333;
}
.article-detail-page .article-content strong {
  color: #0f4c81;
}

/* 静态页整块导入时可能出现的重复标题区（模板已有 h1） */
.article-detail-page .article-content .article-header {
  display: none;
}

/* 文章目录、案例卡、高亮块（5Why 等） */
.article-detail-page .article-content .article-catalog {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}
.article-detail-page .article-content .catalog-title {
  font-size: 16px;
  color: #0f4c81;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article-detail-page .article-content .catalog-title::before {
  content: "📋";
  font-size: 18px;
}
.article-detail-page .article-content .catalog-list {
  padding-left: 1.25em;
  margin-bottom: 0;
  list-style: decimal;
}
.article-detail-page .article-content .catalog-list a {
  color: #666;
  transition: color 0.3s;
}
.article-detail-page .article-content .catalog-list a:hover {
  color: #0f4c81;
  text-decoration: underline;
}

.article-detail-page .article-content .case-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
}
.article-detail-page .article-content .case-title {
  font-size: 16px;
  color: #0f4c81;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}

.article-detail-page .article-content .highlight-box {
  background: #e8f4f8;
  border-left: 4px solid #0f4c81;
  padding: 15px;
  margin: 20px 0;
  border-radius: 4px;
}
.article-detail-page .article-content .tip-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f4c81;
}

/* 内层再包一层 .article-content 时与静态页一致 */
.article-detail-page .article-content .article-content {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.article-detail-page .article-content .article-detail {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Markdown（marked GFM）生成的裸 <table>：精华静态页 .article-content table 同款，否则看起来像「表格丢了」 */
.article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) {
  width: 100%;
  margin: 16px 0 20px;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) th {
  background: #e8f4f8;
  color: #0f4c81;
  font-weight: 600;
  text-align: left;
}
.article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) th,
.article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) td {
  padding: 12px 15px;
  border: 1px solid #eee;
  vertical-align: top;
}
.article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) tbody tr:nth-child(even) {
  background: #f9fbfd;
}

/* 导入正文内的版块（与静态 HTML 一致） */
.article-detail-page .article-content .section {
  margin-bottom: 40px;
}
.article-detail-page .article-content .section h2 {
  font-size: 22px;
  color: #0F4C81;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.article-detail-page .article-content .section h3 {
  font-size: 18px;
  color: #333;
  margin: 24px 0 12px;
}
.article-detail-page .article-content .section h4 {
  font-size: 16px;
  color: #0F4C81;
  margin: 18px 0 10px;
}
.article-detail-page .article-content .section p {
  margin-bottom: 15px;
  color: #333;
  line-height: 1.8;
}
.article-detail-page .article-content .section ul,
.article-detail-page .article-content .section ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
.article-detail-page .article-content .section li {
  margin-bottom: 8px;
}

.article-detail-page .article-content .tip-box,
.article-detail-page .article-content .warning-box {
  background: #e8f4f8;
  border-left: 4px solid #0F4C81;
  padding: 15px;
  margin: 20px 0;
  border-radius: 8px;
}
.article-detail-page .article-content .warning-box {
  background: #fff3e0;
  border-left-color: #FF7F24;
}
.article-detail-page .article-content .tip-box p,
.article-detail-page .article-content .warning-box p {
  margin-bottom: 0;
  color: inherit;
  line-height: 1.65;
}

/* 数字化质量白皮书等：封面预览（与 articles/digital-quality-whitepaper.html 一致） */
.article-detail-page .article-content .preview-box {
  text-align: center;
  margin: 24px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  background-color: #f8f9fa;
}
.article-detail-page .article-content .preview-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}
.article-detail-page .article-content .preview-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* 核心数据卡片栅格 */
.article-detail-page .article-content .data-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.article-detail-page .article-content .data-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-top: 3px solid #0f4c81;
  text-align: center;
}
.article-detail-page .article-content .data-card h4 {
  font-size: 14px;
  color: #666;
  margin: 0 0 8px;
  font-weight: 600;
}
.article-detail-page .article-content .data-card .data-value {
  font-size: 28px;
  font-weight: 700;
  color: #ff7f24;
  margin-bottom: 8px;
  line-height: 1.2;
}
.article-detail-page .article-content .data-card .data-desc {
  font-size: 12px;
  color: #999;
  margin: 0;
}

/* 文件清单：覆盖正文区 ul 默认 disc，与静态页 flex 行一致 */
.article-detail-page .article-content ul.file-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.article-detail-page .article-content ul.file-list > li {
  padding: 12px 16px;
  border: 1px solid #e8eef5;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, border-color 0.2s;
}
.article-detail-page .article-content ul.file-list > li:hover {
  background-color: #f8f9fa;
  border-color: #0f4c81;
}
.article-detail-page .article-content .file-list .file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}
.article-detail-page .article-content .file-list .file-desc {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  display: block;
}
.article-detail-page .article-content .download-link {
  display: inline-block;
  padding: 6px 16px;
  background-color: #ff7f24;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.article-detail-page .article-content .download-link:hover {
  background-color: #e67018;
  color: #fff !important;
}
.article-detail-page .article-content .total-download-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #0f4c81;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.article-detail-page .article-content .total-download-btn:hover {
  background-color: #0a3a7a;
  color: #fff !important;
}

.article-detail-page .article-content .table-container {
  overflow-x: auto;
  margin: 20px 0;
}
.article-detail-page .article-content .data-table {
  width: 100%;
  border-collapse: collapse;
}
.article-detail-page .article-content .data-table th,
.article-detail-page .article-content .data-table td {
  border: 1px solid #eee;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}
.article-detail-page .article-content .data-table th {
  background: #e8f4f8;
  color: #0F4C81;
  font-weight: 600;
}

/* quality-terms-cn-en 等：术语三列表 */
.article-detail-page .article-content .term-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.article-detail-page .article-content .term-table th,
.article-detail-page .article-content .term-table td {
  border: 1px solid #eee;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  width: 33%;
}
.article-detail-page .article-content .term-table th {
  background: #e8f4f8;
  color: #0f4c81;
  font-weight: 600;
}

/* 5S 等静态文使用的「定义表」类名（与 articles/5s-management.html 一致） */
.article-detail-page .article-content .definition-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
.article-detail-page .article-content .definition-table th,
.article-detail-page .article-content .definition-table td {
  border: 1px solid #eee;
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
}
.article-detail-page .article-content .definition-table th {
  background: #e8f4f8;
  color: #0f4c81;
  font-weight: 600;
  width: 20%;
}
.article-detail-page .article-content .definition-table td {
  width: 40%;
}

.article-detail-page .article-content .download-btn {
  display: inline-block;
  width: auto;
  min-width: 200px;
  padding: 12px 20px;
  background: #ff7f24;
  color: #fff !important;
  text-align: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  margin: 16px 0;
  text-decoration: none;
  transition: background 0.3s;
}
.article-detail-page .article-content .download-btn:hover {
  background: #e67018;
}

/* 侧栏 */
.article-detail-page .sidebar-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}
.article-detail-page .sidebar-card h3 {
  font-size: 16px;
  color: #0F4C81;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1bf18;
}
.article-detail-page .sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-detail-page .sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid #e8eef5;
}
.article-detail-page .sidebar-list li:last-child {
  border-bottom: none;
}
.article-detail-page .sidebar-list a {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  display: block;
  color: #333;
  text-decoration: none;
}
.article-detail-page .sidebar-list a:hover {
  color: #ff7f24;
}
.article-detail-page .sidebar-list li.empty-hint {
  border-bottom: none;
  color: #888;
  font-size: 14px;
}

/* audit.html 等：正文使用 content-section / section-heading（与静态页内联样式对齐） */
.article-detail-page .article-content .content-section {
  margin-bottom: 40px;
}
.article-detail-page .article-content h2.section-heading {
  font-size: 22px;
  color: #0f4c81;
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
}
.article-detail-page .article-content h2.section-heading::before {
  content: none;
}
.article-detail-page .article-content h3.section-subheading {
  font-size: 18px;
  color: #333;
  margin: 24px 0 12px;
  font-weight: 600;
  padding-left: 10px;
  position: relative;
}
.article-detail-page .article-content h3.section-subheading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background-color: #ff7f24;
}
.article-detail-page .article-content .content-paragraph {
  margin-bottom: 15px;
  color: #333;
  line-height: 1.8;
}
.article-detail-page .article-content .highlight-box .highlight-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f4c81;
}
.article-detail-page .article-content .list-item {
  margin: 10px 0;
  padding-left: 4px;
  line-height: 1.8;
  color: #333;
}
.article-detail-page .article-content .case-box {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
}
.article-detail-page .article-content .case-box .case-title {
  font-size: 16px;
  color: #0f4c81;
  margin-bottom: 10px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px dashed #eee;
}
.article-detail-page .article-content .form-example {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
}
.article-detail-page .article-content .form-title {
  font-weight: 600;
  color: #0f4c81;
  margin-bottom: 12px;
}
.article-detail-page .article-content .table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}
.article-detail-page .article-content .checklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.article-detail-page .article-content .checklist-table th,
.article-detail-page .article-content .checklist-table td {
  border: 1px solid #eee;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.article-detail-page .article-content .checklist-table th {
  background: #e8f4f8;
  color: #0f4c81;
  font-weight: 600;
}
/* 动态页已有面包屑与导航，隐藏静态页「返回列表」链到 articles.html */
.article-detail-page .article-content .back-to-list {
  display: none;
}

@media (max-width: 992px) {
  .article-detail-columns {
    flex-direction: column;
  }
  .article-detail-sidebar {
    width: 100%;
  }
  .article-detail-page .article-content .data-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .article-detail-page .article-content .data-cards {
    grid-template-columns: 1fr;
  }
  .article-detail-page .article-content ul.file-list > li {
    flex-direction: column;
    align-items: stretch;
  }
  .article-detail-page .article-content .download-link {
    width: 100%;
    text-align: center;
  }
  .article-detail-page .article-content .data-table th,
  .article-detail-page .article-content .data-table td {
    padding: 8px 10px;
    font-size: 13px;
  }
  .article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) th,
  .article-detail-page .article-content table:not(.data-table):not(.term-table):not(.definition-table):not(.checklist-table) td {
    padding: 8px 10px;
    font-size: 13px;
  }
}
