/* 针对该页面特定样式的无序列表 */
.news-txts ul {
  list-style-type: square; /* 使用方块样式 */
  padding-left: 20px !important; /* 增加左侧间距 */
}

.news-txts ul li {
  margin-bottom: 10px; /* 每个列表项之间的间距 */
  list-style-type: square; /* 使用方块样式 */
}

/* 针对该页面特定样式的有序列表 */
.news-txts ol {
  list-style-type: decimal; /* 可选值：decimal, lower-alpha, upper-roman 等 */
  padding-left: 20px!important;/* 与内容左对齐 */
}

.news-txts ol li {
  margin-bottom: 10px;
  list-style-type: decimal; /* 可选值：decimal, lower-alpha, upper-roman 等 */
}

/* 嵌套 */
.news-txts ul ul li,
.news-txts ol ol li{
    margin-left: 1.2em;                     /* 嵌套缩进 */
    list-style-type: circle;                /* 二级列表空心圆 */
}

/* 针对产品的无序列表 */
.item1-txt ul {
  list-style-type: square; /* 使用方块样式 */
  padding-left: 20px; /* 增加左侧间距 */
}

.item1-txt ul li {
  margin-bottom: 10px; /* 每个列表项之间的间距 */
  list-style-type: square; /* 使用方块样式 */
}

/* 针对该页面特定样式的有序列表 */
.item1-txt ol {
  list-style-type: decimal; /* 可选值：decimal, lower-alpha, upper-roman 等 */
  padding-left: 20px!important;/* 与内容左对齐 */
}

.item1-txt ol li {
  margin-bottom: 10px;
  list-style-type: decimal; /* 可选值：decimal, lower-alpha, upper-roman 等 */
}

/* 嵌套 */
.item1-txt ul ul li,
.item1-txt ol ol li{
    margin-left: 1.2em;                     /* 嵌套缩进 */
    list-style-type: circle;                /* 二级列表空心圆 */
    color: rgb(74, 74, 74);                 /* 字体颜色 */
    font-size: 14px;
}

/* 文章页面的youtube视频适配问题，添加到custom-styles.css */
.news-txts iframe[src*="youtube.com"] {
  width: 100% !important;
  height: calc(100vw * 422/750) !important; /* 保持原始比例 */
  max-width: 750px; /* PC端最大宽度 */
  display: block;
  margin: 20px auto;
}

@media (min-width: 769px) {
  /* PC端精确高度控制 */
  .news-txts iframe[src*="youtube.com"] {
    height: 422px !important;
  }
}

@media (max-width: 768px) {
  /* 移动端全宽适配 */
  .news-txts iframe[src*="youtube.com"] {
    max-width: 100% !important;
    height: calc(100vw * 9/16) !important; /* 强制16:9比例 */
  }
}

/* 防止内容溢出 */
.news-txts {
  overflow-x: hidden;
  contain: layout;
}

/* 产品页面的youtube视频适配问题，添加到custom-styles.css */
.item1-txt iframe[src*="youtube.com"] {
  width: 100% !important;
  height: calc(100vw * 422/750) !important; /* 保持原始比例 */
  max-width: 750px; /* PC端最大宽度 */
  display: block;
  margin: 20px auto;
}

@media (min-width: 769px) {
  /* PC端精确高度控制 */
  .item1-txt iframe[src*="youtube.com"] {
    height: 422px !important;
  }
}

@media (max-width: 768px) {
  /* 移动端全宽适配 */
  .item1-txt iframe[src*="youtube.com"] {
    max-width: 100% !important;
    height: calc(100vw * 9/16) !important; /* 强制16:9比例 */
  }
}

/* 防止内容溢出 */
.item1-txt {
  overflow-x: hidden;
  contain: layout;
}



.copy-l p {
    font-size: 0 !important;
}
.copy-l p::after {
    font-size: 14px !important;
}

html[lang="zh"] .copy-l p::after {
    content: "Copyright © 2002-2026 中瑞重工股份有限公司";
}

html[lang="en"] .copy-l p::after {
    content: "Copyright © 2002-2026 Zoomry Group Company Limited";
}

html[lang="ru"] .copy-l p::after {
    content: "Copyright © 2002-2026 Zoomry Group Company Limited";
}

html[lang="es"] .copy-l p::after {
    content: "Copyright © 2002-2026 Zoomry Group Company Limited";
}

/* ==================== Sidebar TOC ==================== */
.article-toc-sidebar {
  position: fixed;
  top: 200px;
  right: 24px;
  width: 260px;
  max-height: calc(100vh - 160px);
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(21, 153, 87, 0.08);
  padding: 18px 20px 14px;
  display: none;
  z-index: 999;
  overflow: hidden;
  transition: all 0.3s ease;
}

.article-toc-sidebar.active {
  display: block;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 10px;
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: #159957;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.toc-collapse-btn {
  background: none;
  border: none;
  color: #159957;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: transform 0.2s;
}

.toc-collapse-btn:hover {
  color: #0d7043;
}

.toc-nav {
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 4px;
}

.toc-nav::-webkit-scrollbar {
  width: 4px;
}

.toc-nav::-webkit-scrollbar-thumb {
  background: #d1d9e0;
  border-radius: 2px;
}

.toc-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc-counter;
}

.toc-nav li {
  counter-increment: toc-counter;
  margin: 2px 0;
  position: relative;
}

.toc-nav li.toc-h2::before {
  content: counter(toc-counter) ".";
  color: #b8c4ce;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
}

.toc-nav li.toc-h3 {
  padding-left: 18px;
}

.toc-nav li.toc-h3::before {
  content: "·";
  color: #d1d9e0;
  margin-right: 6px;
}

.toc-nav a {
  display: inline-block;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6b7c;
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
  word-break: break-word;
}

.toc-nav a:hover {
  color: #159957;
}

.toc-nav a.active {
  color: #159957;
  font-weight: 600;
}

.toc-nav a.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  width: 3px;
  height: 14px;
  background: #159957;
  border-radius: 2px;
}

.toc-progress {
  height: 2px;
  background: #eef2f7;
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.toc-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #159957, #2ecc71);
  transition: width 0.1s ease;
}

.article-toc-sidebar.collapsed .toc-nav,
.article-toc-sidebar.collapsed .toc-progress {
  display: none;
}

@media (max-width: 1400px) {
  .article-toc-sidebar {
    display: none !important;
  }
}

/* ==================== Product Page TOC ==================== */
.product-toc-sidebar {
  position: fixed;
  top: 200px;
  right: 24px;
  width: 260px;
  max-height: calc(100vh - 160px);
  background: #ffffff;
  border: 1px solid #e8edf4;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(21, 153, 87, 0.08);
  padding: 18px 20px 14px;
  display: none;
  z-index: 999;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-toc-sidebar.active {
  display: block;
}

@media (max-width: 1400px) {
  .product-toc-sidebar {
    display: none !important;
  }
}


/* ==================== TOC 去掉数字序号 ==================== */
.toc-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.toc-nav li {
  counter-increment: none;
  margin: 3px 0;
  position: relative;
  padding-left: 0;
}

/* 去掉所有 ::before 的数字 */
.toc-nav li.toc-h2::before,
.toc-nav li.toc-h3::before,
.toc-nav li.toc-h4::before {
  content: none;
  display: none;
}

/* H3 缩进，用左侧小竖线代替数字 */
.toc-nav li.toc-h3 {
  padding-left: 14px;
}

.toc-nav li.toc-h3::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 3px;
  height: 3px;
  background: #cbd5e1;
  border-radius: 50%;
}

/* 链接占满整行，方便换行缩进 */
.toc-nav a {
  display: block;
  padding-left: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
}

.toc-nav a:hover {
  border-left-color: #a8d5be;
  padding-left: 12px;
}

.toc-nav a.active {
  border-left-color: #159957;
  padding-left: 12px;
  color: #159957;
  font-weight: 600;
}

.toc-nav a.active::before {
  content: none;
}


/* ==================== TOC 移到左边 ==================== */
.article-toc-sidebar,
.product-toc-sidebar {
  left: 24px !important;
  right: auto !important;
}

/* 窗口较窄时隐藏（左侧空间不够） */
@media (max-width: 1400px) {
  .article-toc-sidebar,
  .product-toc-sidebar {
    display: none !important;
  }
}


/* ==================== TOC 折叠修复 ==================== */
.article-toc-sidebar.collapsed .toc-nav,
.article-toc-sidebar.collapsed .toc-progress,
.product-toc-sidebar.collapsed .toc-nav,
.product-toc-sidebar.collapsed .toc-progress {
  display: none !important;
}

.article-toc-sidebar.collapsed,
.product-toc-sidebar.collapsed {
  padding-bottom: 12px;
}

.toc-collapse-btn {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* ==================== tech-article 文章样式 ==================== */
.tech-article {
  width: 100%;
}

.tech-article p {
  margin: 14px 0;
  color: #3d4f5f;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

.tech-article h2 {
  font-size: 22px;
  color: #159957;
  border-bottom: 2px solid #e8edf4;
  padding-bottom: 8px;
  margin-top: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.tech-article h3 {
  font-size: 18px;
  color: #1a2a3a;
  margin-top: 24px;
  margin-bottom: 10px;
  font-weight: 600;
}

.tech-article ul,
.tech-article ol {
  color: #3d4f5f;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  padding-left: 26px;
  margin: 12px 0;
}

.tech-article li {
  margin: 6px 0;
}

.tech-article a {
  color: #159957;
  text-decoration: underline;
}

.tech-article a:hover {
  color: #0d7043;
}

.tech-article strong {
  color: #1a2a3a;
  font-weight: 600;
}

.tech-article hr.divider {
  margin: 32px 0;
  border: none;
  border-top: 1px dashed #d0d7e2;
}

.tech-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 18px 0;
}

.tech-article th {
  background: #e9edf4;
  border: 1px solid #d0d7e2;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
}

.tech-article td {
  border: 1px solid #d0d7e2;
  padding: 9px 14px;
  color: #3d4f5f;
}

.tech-article tr:nth-child(even) {
  background: #f8f8f8;
}

.tech-article .img-wrap {
  text-align: center;
  margin: 22px auto;
  max-width: 500px;
}

.tech-article .img-wrap img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tech-article .table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.tech-article .table-wrap table {
  min-width: 620px;
  margin: 0;
}

.tech-article .cta {
  background: #f8faff;
  border-radius: 20px;
  padding: 40px 30px 35px;
  border: 1px solid #e8edf4;
  text-align: center;
  margin-top: 40px;
}

.tech-article .cta h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0b2b3b;
  margin-bottom: 12px;
  border: none;
  padding: 0;
}

.tech-article .cta p {
  font-size: 17px;
  color: #3d5166;
  margin-bottom: 24px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.tech-article .cta a {
  display: inline-block;
  background: #1a6bc4;
  color: #ffffff;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.tech-article .cta a:hover {
  background: #1557a0;
  color: #ffffff;
}

@media (max-width: 768px) {
  .tech-article p {
    font-size: 14px;
  }
  .tech-article h2 {
    font-size: 19px;
  }
  .tech-article h3 {
    font-size: 16px;
  }
  .tech-article .cta {
    padding: 30px 20px 25px;
  }
  .tech-article .cta h2 {
    font-size: 20px;
  }
  .tech-article .cta p {
    font-size: 15px;
  }
}


/* ==================== TOC 位置微调 ==================== */
.article-toc-sidebar,
.product-toc-sidebar {
  left: 12px !important;
  right: auto !important;
  width: 240px !important;
}
