/* ============================================================================
   douli-cms-pages.css  ——  内容型页面统一样式
   用于：Technical Guides / Custom & Special Motors / Motor Replacement /
        Industries 总览 + 详情 / Request a Quote / About 等
   设计基准沿用站点主色 #0d2760（深蓝）/ #0d6efd（链接蓝）/ #41506a（正文）
   ============================================================================ */

/* ---------- 页头 hero ---------- */
.cms-hero { padding: 46px 0 34px; }
.cms-hero__h1 { font-size: 34px; line-height: 1.2; color: #0d2760; margin: 0 0 16px; font-weight: 700; }
.cms-hero__h1 .cms-sec-no { margin-right: 12px; vertical-align: 3px; }
.cms-hero__desc { font-size: 17px; line-height: 1.7; color: #2e3a50; max-width: 900px; }
.cms-hero__btns { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 按钮 ---------- */
.cms-btn { display: inline-block; padding: 12px 26px; border-radius: 4px; font-weight: 600; font-size: 15px; text-decoration: none; transition: .2s; }
.cms-btn--primary { background: #0d2760; color: #fff; }
.cms-btn--primary:hover { background: #16356f; color: #fff; text-decoration: none; }
.cms-btn--ghost { background: transparent; border: 1px solid #0d2760; color: #0d2760; }
.cms-btn--ghost:hover { background: #0d2760; color: #fff; text-decoration: none; }
.cms-email { margin-top: 14px; font-size: 15px; color: #2e3a50; }
/* 客户要求：prefer email 的邮箱更醒目 —— 放大 + 加粗 + 橙色 */
.cms-email a { color: #e2751f; font-size: 19px; font-weight: 800; letter-spacing: .3px; padding: 2px 6px; border-radius: 3px; transition: background .2s ease; }
.cms-email a:hover { background: #fff3e8; text-decoration: none; }

/* ---------- 区块 ---------- */
.cms-sec { padding: 46px 0; }
.cms-sec--alt { background: #f5f8fc; }
.cms-sec-head { margin-bottom: 26px; }
.cms-sec-head h2 { font-size: 26px; color: #0d2760; margin: 0; display: flex; align-items: baseline; gap: 12px; }
.cms-sec-no { font-size: 14px; color: #0d6efd; font-weight: 700; background: #eaf2ff; padding: 3px 11px; border-radius: 20px; }
.cms-intro { font-size: 16px; line-height: 1.75; color: #2e3a50; max-width: 920px; }

/* ---------- 横向锚点导航（与主体容器同宽、居中） ----------
   2026.10.15 客户反馈：滚动时导航保持不动（sticky），且吸顶时停在固定 header 下方；
   菜单项去掉 Selection 后其余项整体居中。top 值 = 固定 header 实际高度（90px）。 */
.cms-anchor { position: sticky; top: 90px; z-index: 50; background: #0d2760; box-shadow: 0 2px 8px rgba(0,0,0,.08); max-width: 1170px; margin: 0 auto; }
@media (min-width:992px) and (max-width:1199px) { .cms-anchor { max-width: 970px; } }
@media (min-width:768px) and (max-width:991px) { .cms-anchor { max-width: 750px; } }
@media (max-width:767px) { .cms-anchor { max-width: 100%; top: 60px; } }
.cms-anchor ul { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; justify-content: center; }
/* 客户要求：锚点导航字体大一些、各项之间分开大一些 */
.cms-anchor li { margin-right: 10px; }
.cms-anchor li:last-child { margin-right: 0; }
/* 2026.10.15：全站 body overflow-x:hidden 会使 position:sticky 失效，
   由模板内 JS 在滚动时切换为本类的 fixed 吸顶（占位 div 防跳动）。 */
.cms-anchor--fixed { position: fixed; top: 90px; left: 0; right: 0; margin: 0 auto; }
@media (max-width:767px) { .cms-anchor--fixed { top: 60px; } }
.cms-anchor li a { display: block; color: #fff; padding: 15px 26px; font-size: 17px; font-weight: 700; letter-spacing: .2px; text-decoration: none; white-space: nowrap; }
.cms-anchor li a:hover { background: rgba(255,255,255,.12); text-decoration: none; }

/* ---------- 2x2 图文卡片 ---------- */
.cms-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cms-card { background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.cms-card__img { width: 100%; height: 200px; object-fit: cover; background: #eef2f8; }
.cms-card__body { padding: 18px 20px; }
.cms-card__title { font-size: 18px; font-weight: 700; color: #0d2760; margin: 0 0 8px; }
.cms-card__desc { font-size: 14px; line-height: 1.6; color: #2e3a50; margin: 0; }

/* ---------- 流程步骤 ---------- */
.cms-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cms-step { background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; padding: 22px; }
.cms-step__no { width: 38px; height: 38px; border-radius: 50%; background: #0d2760; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.cms-step__title { font-size: 16px; font-weight: 700; color: #0d2760; margin: 0 0 8px; }
.cms-step__desc { font-size: 14px; line-height: 1.6; color: #2e3a50; margin: 0; }

/* ---------- 表格（能力 / 信息） ---------- */
.cms-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.cms-table th, .cms-table td { border: 1px solid #d8dee8; padding: 11px 14px; text-align: left; vertical-align: top; }
.cms-table thead th { background: #0d2760; color: #fff; }
.cms-table tbody tr:nth-child(even) { background: #f7f9fc; }

/* ---------- 可定制电机类型链接（Motor Types Available，编辑器内容） ---------- */
.cms-types { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid #e3e9f2; border-radius: 8px; padding: 20px 24px; }
.cms-types__row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cms-types__label { font-size: 15px; font-weight: 700; color: #0d2760; margin: 0; min-width: 240px; }
.cms-types__links { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; }
.cms-types__links a { color: #0d6efd; font-size: 15px; font-weight: 500; text-decoration: none; }
.cms-types__links a:hover { text-decoration: underline; }

/* ---------- 编辑器整块内容防御样式（后台直贴的表格/段落，未带类名也能正常显示） ---------- */
.cms-editor { font-size: 14px; line-height: 1.7; color: #2e3a50; }
.cms-editor p { margin: 0 0 10px; }
.cms-editor p:last-child { margin-bottom: 0; }
.cms-editor table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; margin-top: 6px; }
.cms-editor table + table { margin-top: 20px; }
.cms-editor th, .cms-editor td { border: 1px solid #d8dee8; padding: 11px 14px; text-align: left; vertical-align: top; }
.cms-editor thead th { background: #0d2760; color: #fff; }
.cms-editor tbody tr:nth-child(even) { background: #f7f9fc; }
.cms-editor img { max-width: 100%; height: auto; }
.cms-editor .cms-types__row p, .cms-editor p:has(> strong:first-child) { margin: 0; }

/* ---------- FAQ ---------- */
.cms-faq__item { border: 1px solid #e3e9f2; border-radius: 6px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.cms-faq__item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: #0d2760; font-size: 15px; list-style: none; }
.cms-faq__item summary::-webkit-details-marker { display: none; }
.cms-faq__item[open] summary { background: #f5f8fc; }
.cms-faq__a { padding: 0 20px 18px; color: #2e3a50; line-height: 1.7; font-size: 14px; }
.cms-faq__a p { margin: 0 0 10px; }
.cms-faq__foot { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cms-faq-cta { margin-top: 26px; padding: 22px 24px; background: #f5f8fc; border-left: 4px solid #0d2760; border-radius: 4px; }
.cms-faq-cta h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #0d2760; text-transform: none; }
.cms-faq-cta p { margin: 0; font-size: 14px; line-height: 1.7; color: #2e3a50; }

/* ---------- 相关电机 / 通用卡片网格 ---------- */
.cms-related, .cms-ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cms-related__title { font-size: 16px; font-weight: 700; color: #0d2760; margin: 0 0 8px; }
.cms-related__card { display: block; border: 1px solid #e3e9f2; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; }
.cms-related__card img { width: 100%; aspect-ratio: 1/1; height: auto; object-fit: contain; background: #fff; padding: 6px; }
.cms-related__card span { display: block; padding: 12px 14px; font-weight: 600; color: #0d2760; font-size: 15px; }

/* ---------- 行业总览卡片 ---------- */
.cms-ind-card { display: block; border: 1px solid #e3e9f2; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; }
.cms-ind-card__img { width: 100%; height: 170px; object-fit: cover; background: #eef2f8; }
.cms-ind-card__title { padding: 14px 16px; font-weight: 700; color: #0d2760; font-size: 16px; }
.cms-ind-card:hover { box-shadow: 0 6px 18px rgba(13,39,96,.12); text-decoration: none; }

/* ---------- Guides 区块 ---------- */
.cms-guide-sec { padding: 40px 0; border-bottom: 1px solid #eef2f8; }
.cms-guide-sec:last-child { border-bottom: none; }
.cms-guide-q { font-size: 19px; font-weight: 700; color: #0d2760; margin: 0 0 12px; }
.cms-guide-a { font-size: 15px; line-height: 1.75; color: #2e3a50; }
.cms-guide-a p { margin: 0 0 10px; }
.cms-guide-a a { color: #0d6efd; }

/* ---------- Guides 图文并茂（每区块一张图，文字+图片交替） ---------- */
.cms-sec-media { display: flex; gap: 30px; align-items: center; background: #fff; border: 1px solid #eef2f8; border-radius: 12px; padding: 22px; margin: 0 0 30px; box-shadow: 0 6px 20px rgba(13,39,96,.06); }
.cms-sec-media--right { flex-direction: row-reverse; }
.cms-sec-media__img { flex: 0 0 44%; display: block; }
.cms-sec-media__img img { width: 100%; height: 260px; object-fit: cover; border-radius: 8px; display: block; background: #eef2f8; transition: transform .3s; }
.cms-sec-media__img:hover img { transform: scale(1.02); }
.cms-sec-media__body { flex: 1; }
.cms-sec-media__cap { font-size: 15px; line-height: 1.8; color: #2e3a50; margin: 0 0 14px; }
.cms-sec-media__cap strong { color: #0d2760; }
.cms-sec-media__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #0d6efd; text-decoration: none; }
.cms-sec-media__more:hover { text-decoration: underline; }

/* ---------- 报价/替换表单（Request a Quote / Motor Replacement） ---------- */
.cms-form .form-label { font-weight: 600; color: #0d2760; font-size: 14px; margin-bottom: 5px; display: block; }
.cms-form .form-control { border-radius: 4px; border: 1px solid #cfd8e6; }
.cms-form .cms-form__side { background: #f5f9fc; padding: 22px; border-radius: 8px; margin-bottom: 18px; }
.cms-form__side h5 { color: #0d2760; margin-top: 0; }
.cms-form__side ul, .cms-form__side ol { font-size: 14px; line-height: 2; padding-left: 18px; color: #2e3a50; }

/* ---------- 响应式 ---------- */
@media (max-width: 991px) {
  .cms-cards, .cms-process, .cms-related, .cms-ind-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .cms-sec-media, .cms-sec-media--right { flex-direction: column; }
  .cms-sec-media__img { flex: 0 0 100%; width: 100%; }
  .cms-sec-media__img img { height: 200px; }
}
@media (max-width: 600px) {
  .cms-cards, .cms-process, .cms-related, .cms-ind-grid { grid-template-columns: 1fr; }
  .cms-hero__h1 { font-size: 27px; }
  .cms-anchor li { margin-right: 6px; }
  .cms-anchor li a { padding: 11px 14px; font-size: 14px; }
  .cms-sec-head h2 { font-size: 21px; }
}

/* --- 列表分页（PbootCMS {page:bar} 输出）--- */
.page-status, .page-index, .page-pre, .page-numbar, .page-next, .page-last {
    display: inline-block;
    margin: 0 3px;
}
.page-status {
    color: #6b7a8a;
    font-size: 13px;
    margin-right: 12px;
}
.page-index a, .page-pre a, .page-next a, .page-last a {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 3px;
    background: #fff;
    color: #2e3a50;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s ease;
}
.page-index a:hover, .page-pre a:hover, .page-next a:hover, .page-last a:hover {
    border-color: #e2751f;
    color: #e2751f;
}
.page-numbar a {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid #dbe2ea;
    border-radius: 3px;
    background: #fff;
    color: #2e3a50;
    font-size: 13px;
    text-decoration: none;
}
.page-numbar a:hover { border-color: #e2751f; color: #e2751f; }
/* 当前页 */
.page-numbar span.page-current,
.page-numbar a.page-current {
    background: #e2751f;
    border-color: #e2751f;
    color: #fff;
}
/* 禁用态（首页/尾页在首末页时） */
.page-index span, .page-first span, .page-last span,
.page-pre span, .page-next span {
    display: inline-block;
    min-width: 34px;
    padding: 6px 12px;
    border: 1px solid #eef2f6;
    border-radius: 3px;
    background: #f7f9fb;
    color: #b8c2cd;
    font-size: 13px;
}
/* 深色页脚里的分页（xtt-inverse） */
.xtt-inverse .page-status { color: rgba(255,255,255,.75); }
.xtt-inverse .page-index a, .xtt-inverse .page-pre a,
.xtt-inverse .page-next a, .xtt-inverse .page-last a,
.xtt-inverse .page-numbar a { background: transparent; border-color: rgba(255,255,255,.3); color: #fff; }
.xtt-inverse .page-index a:hover, .xtt-inverse .page-pre a:hover,
.xtt-inverse .page-next a:hover, .xtt-inverse .page-last a:hover,
.xtt-inverse .page-numbar a:hover { border-color: #fff; color: #fff; }
.page-none { color: #8a98a6; font-size: 13px; }

/* ---------- 2026.10.15 行业内页（7 行业文档重制） ---------- */
/* 02 应用方案四列表格：窄屏横向滚动 */
.cms-tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cms-tblwrap .cms-table { min-width: 760px; }
/* 02 应用图（webp）+ 说明文字 */
.cms-appfig { margin: 26px 0 22px; }
.cms-appfig img { width: 100%; height: auto; display: block; border: 1px solid #e3e8ee; border-radius: 8px; background: #fff; }
.cms-appfig figcaption { font-size: 13px; color: #5d6a78; margin-top: 8px; text-align: center; }
/* 段落引导文字 */
.cms-sec-lead { font-size: 17px; line-height: 1.75; color: #2e3a50; margin: 0 0 18px; }
/* 首屏快捷入口（浅色 hero 上） */
.cms-hero__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cms-hero__links a { display: inline-block; padding: 8px 16px; border: 1px solid #c9d6e8; border-radius: 999px; color: #00579c; background: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.cms-hero__links a:hover { background: #00579c; border-color: #00579c; color: #fff; text-decoration: none; }
/* 水泥工艺流程链 + 各工段设备表 */
.cms-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.cms-flow span { background: #00579c; color: #fff; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.cms-flow i { color: #8a98a6; font-style: normal; font-size: 12px; }
.cms-stage-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
@media (max-width: 767px) { .cms-stage-grid { grid-template-columns: 1fr; } }
.cms-stage h4 { font-size: 15px; font-weight: 700; color: #00579c; margin: 0 0 8px; }
.cms-stage h4 .cn { font-weight: 500; color: #6b7a90; font-size: 13px; margin-left: 6px; }
.cms-stage table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cms-stage th, .cms-stage td { border: 1px solid #e3e8ee; padding: 6px 10px; text-align: left; vertical-align: middle; }
.cms-stage th { background: #f0f6fa; color: #00579c; font-weight: 600; white-space: nowrap; }

/* ---------- 2026.10.16 行业页优化：首屏01编号 / 应用图上移 / 选型卡片图标 ---------- */
.cms-hero__h1 .cms-sec-no { font-size: 15px; padding: 4px 14px; vertical-align: 8px; }
.cms-card--icon .cms-card__body { text-align: center; padding: 10px 22px 24px; }
.cms-card--icon .cms-card__icon { width: 110px; height: 110px; object-fit: contain; display: block; margin: 8px auto 14px; }
.cms-card--icon .cms-card__title { font-size: 17px; }

/* ---------- 2026.11.19 Guides 页重制：图文卡片 / 折叠展开 / VHS-VSS ---------- */
/* 02 Replacement 图文卡片（左图右文 + 整卡折叠展开） */
.guide-card { background:#fff; border:1px solid #e3e9f2; border-radius:10px; overflow:hidden; margin:0 0 20px; box-shadow:0 4px 16px rgba(13,39,96,.05); }
.guide-card > summary { cursor:pointer; list-style:none; display:block; }
.guide-card > summary::-webkit-details-marker { display:none; }
.guide-card__grid { display:flex; gap:0; align-items:stretch; }
.guide-card__media { flex:0 0 34%; min-width:0; }
.guide-card__media img { width:100%; height:100%; min-height:230px; object-fit:cover; display:block; background:#eef2f8; }
.guide-card__body { flex:1; padding:22px 26px; }
.guide-card__kicker { color:#0d6efd; font-size:13px; font-weight:700; letter-spacing:.6px; }
.guide-card__title { font-size:20px; font-weight:700; color:#0d2760; margin:6px 0 10px; line-height:1.4; }
.guide-card__desc { font-size:15px; color:#2e3a50; line-height:1.7; margin:0 0 12px; }
.guide-card__tags { font-size:13px; color:#6b7a90; margin:0 0 16px; }
.guide-card__read { display:inline-flex; align-items:center; gap:6px; color:#0d6efd; font-weight:600; font-size:14px; }
.guide-card__read::after { content:"\25BC"; font-size:10px; transition:transform .2s; }
.guide-card[open] .guide-card__read::after { transform:rotate(180deg); }
.guide-card__detail { padding:22px 26px 26px; border-top:1px solid #eef2f8; font-size:15px; line-height:1.75; color:#2e3a50; }
.guide-card__detail h4 { font-size:16px; font-weight:700; color:#0d2760; margin:18px 0 6px; }
.guide-card__detail h4:first-child { margin-top:0; }
.guide-card__detail p { margin:0 0 10px; }
.guide-card__detail ul { margin:0 0 12px; padding-left:20px; }
.guide-card__detail li { margin-bottom:4px; }
.guide-card__detail a { color:#0d6efd; }
.guide-card__note { background:#f5f9fc; border-left:4px solid #0d6efd; border-radius:4px; padding:12px 16px; margin:14px 0; }
@media (max-width:767px){
  .guide-card__grid { flex-direction:column; }
  .guide-card__media { flex:0 0 auto; }
  .guide-card__media img { height:200px; min-height:0; }
  .guide-card__body, .guide-card__detail { padding:18px; }
}

/* 03 Engineering 四入口卡片（2-2） */
.guide-eng-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:0 0 24px; }
.guide-eng-card { background:#fff; border:1px solid #e3e9f2; border-radius:10px; overflow:hidden; box-shadow:0 4px 16px rgba(13,39,96,.05); }
.guide-eng-card__media img { width:100%; height:210px; object-fit:cover; display:block; background:#eef2f8; }
.guide-eng-card__body { padding:18px 22px 20px; }
.guide-eng-card__no { color:#0d6efd; font-size:13px; font-weight:700; }
.guide-eng-card__title { font-size:19px; font-weight:700; color:#0d2760; margin:4px 0 8px; }
.guide-eng-card__kw { display:inline-block; font-size:12.5px; color:#0d6efd; background:#eef6ff; padding:4px 9px; border-radius:4px; margin:0 0 10px; }
.guide-eng-card__desc { font-size:14px; color:#2e3a50; line-height:1.65; margin:0; }
.guide-eng-note { background:#f5f9fc; border-left:4px solid #0d6efd; border-radius:4px; padding:14px 18px; color:#2e3a50; font-size:15px; line-height:1.7; margin:0 0 30px; }
@media (max-width:767px){ .guide-eng-grid { grid-template-columns:1fr; } }

/* 01 Q4 VHS vs VSS 插图与双栏 */
.guide-vhs-fig { margin:14px 0; text-align:center; }
.guide-vhs-fig img { max-width:100%; height:auto; border:1px solid #e3e9f2; border-radius:8px; }
.guide-vhs-2col { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:14px 0; }
.guide-vhs-2col div { background:#f5f9fc; border-radius:6px; padding:12px 16px; font-size:14px; color:#2e3a50; line-height:1.6; }
.guide-vhs-2col strong { color:#0d2760; }
@media (max-width:767px){ .guide-vhs-2col { grid-template-columns:1fr; } }

/* 2026.11.24 客户反馈：正文内带链接的文字颜色加深 + 字体加粗，更醒目 */
.cms-guide-a a, .cms-faq__a a, .cms-sec-lead a,
.cms-wrap a, .case-body a, .case-rich a, .case-doc a,
.guide-card__detail a, .guide-eng-note a, .cms-sec-media a {
    color: #0a3d80 !important;
    font-weight: 700 !important;
}
.cms-guide-a a:hover, .cms-faq__a a:hover, .cms-wrap a:hover,
.case-body a:hover, .case-rich a:hover, .case-doc a:hover {
    color: #e2751f !important;
    text-decoration: underline;
}
