/*
Theme Name: 振通传动 官网主题
Theme URI: http://8.163.111.194/
Author: 广州振通机械有限公司
Description: 广州振通机械有限公司企业官网主题，含产品管理、技术参数、分类筛选。
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: zhengtong
*/

/* ---------- WordPress 补充样式 ---------- */

/* 通用两列 */
.g2{display:flex;flex-wrap:wrap;margin:0 -10px}
.g2>.cell{flex:0 0 50%;max-width:50%;padding:0 10px;margin-bottom:20px;box-sizing:border-box;display:flex}
.g2>.cell>*{width:100%}

/* 页面正文 */
.page-body{max-width:900px}
.page-body h2{font-size:24px;margin:38px 0 14px;letter-spacing:-.02em}
.page-body h3{font-size:18px;margin:28px 0 10px}
.page-body p{font-size:14.5px;line-height:1.95;color:#3f3f46;margin-bottom:16px}
.page-body ul{margin:0 0 18px 20px;list-style:disc}
.page-body li{font-size:14.5px;line-height:1.95;color:#3f3f46;margin-bottom:7px}
.page-body img{max-width:100%;height:auto;border-radius:8px}
.page-body table{width:100%;border-collapse:collapse;margin:20px 0}
.page-body th,.page-body td{border:1px solid #E6E6EA;padding:11px 14px;font-size:14px;text-align:left}
.page-body th{background:#F6F6F8;font-weight:600}
.page-body a{color:#C8392B}

/* 产品中心筛选 */
.filter{display:flex;flex-wrap:wrap;margin-bottom:28px}
.filter button{font-family:inherit;font-size:13.5px;padding:9px 18px;margin:0 9px 9px 0;border:1px solid #E6E6EA;background:#fff;border-radius:20px;color:#4a4a52;cursor:pointer;transition:.18s}
.filter button:hover{border-color:#C8392B;color:#C8392B}
.filter button.on{background:#C8392B;border-color:#C8392B;color:#fff;font-weight:600}

/* 分页 */
.pager{display:flex;flex-wrap:wrap;justify-content:center;margin-top:38px}
.pager .page-numbers{display:inline-block;min-width:38px;height:38px;line-height:36px;text-align:center;border:1px solid #E6E6EA;border-radius:6px;margin:0 5px 8px;padding:0 12px;font-size:13.5px;color:#4a4a52;text-decoration:none;transition:.18s}
.pager .page-numbers:hover{border-color:#C8392B;color:#C8392B}
.pager .page-numbers.current{background:#C8392B;border-color:#C8392B;color:#fff;font-weight:600}

/* 图片占位 */
.pcard-img .ph,.pd-img .ph{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#F8F8FA;color:#A8A8B2;text-align:center}
.pcard-img .ph svg{width:34px;height:34px;opacity:.45;margin-bottom:8px}
.pcard-img .ph span{font-size:11px}

/* 详情页场景标签 */
.scene-list{display:flex;flex-wrap:wrap}
.scene-list span{font-size:13px;border:1px solid #E6E6EA;border-radius:4px;padding:6px 13px;color:#4a4a52;margin:0 8px 8px 0}

/* 详情页特点列表 */
.feat{list-style:none;margin:0;padding:0}
.feat li{position:relative;padding-left:20px;font-size:14px;line-height:1.9;color:#3f3f46;margin-bottom:9px}
.feat li::before{content:"";position:absolute;left:0;top:11px;width:6px;height:6px;border-radius:50%;background:#C8392B}

/* 后台编辑器里也保持可读 */
.page-body .wp-block-image{margin-bottom:18px}

/* 移动端 */
@media(max-width:640px){
  .g2>.cell{flex:0 0 100%;max-width:100%}
  .filter button{font-size:12.5px;padding:8px 14px}
  .page-body h2{font-size:20px}
  .phead h1{font-size:26px}
}

/* ---------- 后台编辑器里能用的区块（新建页面时拖出来即可） ---------- */
.page-body h1,.page-body .wp-block-heading{font-size:28px;line-height:1.35;margin:0 0 16px;color:#16161A;font-weight:700}
.page-body h3{font-size:18px;margin:26px 0 10px;font-weight:700;color:#16161A}
.page-body p{font-size:15px;line-height:1.95;color:#3C3C44;margin:0 0 14px}
.page-body ul,.page-body ol{margin:0 0 16px;padding-left:22px}
.page-body li{font-size:15px;line-height:1.9;color:#3C3C44;margin-bottom:6px}
.page-body img{max-width:100%;height:auto;border-radius:8px}
.page-body .wp-block-image{margin:0 0 18px}
.page-body table{width:100%;border-collapse:collapse;margin:0 0 20px;font-size:14px}
.page-body th,.page-body td{border:1px solid #E6E6EA;padding:11px 14px;text-align:left;line-height:1.7}
.page-body th{background:#F6F6F8;font-weight:600;color:#16161A}
.page-body .wp-block-columns{display:flex;flex-wrap:wrap;margin:0 -12px 18px}
.page-body .wp-block-column{flex:1 1 0;min-width:0;padding:0 12px}
.page-body .wp-block-button__link{display:inline-block;background:#C8392B;color:#fff;padding:14px 30px;border-radius:8px;font-size:15px;font-weight:600;text-decoration:none}
.page-body .wp-block-separator{border:0;border-top:1px solid #E6E6EA;margin:30px 0}
.page-body blockquote{border-left:3px solid #C8392B;background:#FDF0EE;margin:0 0 18px;padding:14px 20px;color:#3C3C44}
@media(max-width:640px){
  .page-body .wp-block-columns{display:block;margin:0 0 18px}
  .page-body .wp-block-column{padding:0;margin-bottom:14px}
  .page-body h1,.page-body .wp-block-heading{font-size:23px}
}

/* ---------- 产品详情页 图片缩略条 ---------- */
.pd-thumbs{display:flex;flex-wrap:wrap;margin-top:14px}
.pd-thumb{display:block;cursor:pointer;width:74px;height:74px;border:2px solid #E6E6EA;border-radius:6px;overflow:hidden;margin:0 9px 9px 0;background:#fff;box-sizing:border-box;transition:.16s}
.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-thumb:hover{border-color:#C9C9D2}
.pd-thumb.on{border-color:#C8392B;box-shadow:0 0 0 1px #C8392B}
@media(max-width:640px){
  .pd-thumb{width:60px;height:60px;margin:0 7px 7px 0}
}

/* ---------- 产品详情正文 ---------- */
.pd-content{font-size:14px;line-height:1.9;color:#4A4A52}
.pd-content img,.pd-content .pd-fig{width:100%;max-width:100%;height:auto;display:block;margin:0 0 18px;border-radius:8px}
.pd-content p{margin-bottom:16px}
.pd-content h2{font-size:20px;margin:26px 0 12px}
.pd-content h3{font-size:16px;margin:20px 0 10px}
.pd-content table{width:100%;border-collapse:collapse;margin:18px 0;font-size:13px}
.pd-content th,.pd-content td{border:1px solid #E6E6EA;padding:8px 10px;text-align:left;line-height:1.6}
.pd-content th{background:#F6F6F8;font-weight:600}
.pd-content ul,.pd-content ol{margin:0 0 16px 20px;list-style:disc}
.pd-content li{margin-bottom:6px}

/* ---------- 联系页：信息卡 / 地图 / 团队 ---------- */
.ct-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:8px 0 20px}
.ct-card{border-radius:8px;padding:24px 16px;text-align:center;color:#fff;transition:.18s}
.ct-card b{display:block;font-size:17px;margin-bottom:9px;font-weight:700;letter-spacing:.03em}
.ct-card a,.ct-card span{display:block;font-size:13.5px;line-height:1.6;color:#fff;text-decoration:none;word-break:break-all;opacity:.96}
.ct-card a:hover{opacity:1;text-decoration:underline}
.ct-card.c1{background:#6C8AE4}
.ct-card.c2{background:#FF6F61}
.ct-card.c3{background:#F0B429}
.ct-card.c4{background:#4A9BE8}
.ct-map{border-radius:8px;overflow:hidden;border:1px solid #E6E6EA;margin:0 0 40px;line-height:0;background:#F6F6F8}
.ct-map iframe{display:block;width:100%;height:420px;border:0}
.ct-h2{font-size:22px;letter-spacing:-.02em;margin:0 0 8px}
.ct-sub{font-size:13.5px;color:#8A8A93;margin:0 0 20px}
.ct-team{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}
.ct-person{border:1px solid #E6E6EA;border-radius:8px;padding:16px 18px;background:#fff;transition:.16s}
.ct-person:hover{border-color:#C8392B;box-shadow:0 2px 10px rgba(200,57,43,.08)}
.ct-person i{display:block;font-style:normal;font-size:12px;color:#8A8A93;margin-bottom:6px;letter-spacing:.02em}
.ct-person b{display:block;font-size:15px;color:#16161A;margin-bottom:9px;font-weight:600}
.ct-person a{font-size:14.5px;color:#C8392B;font-weight:600;text-decoration:none;letter-spacing:.01em}
.ct-person a:hover{text-decoration:underline}
@media(max-width:900px){
  .ct-cards{grid-template-columns:repeat(2,1fr)}
  .ct-team{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .ct-cards{grid-template-columns:1fr;gap:10px}
  .ct-card{padding:18px 14px}
  .ct-team{grid-template-columns:1fr;gap:10px}
  .ct-map iframe{height:300px}
  .ct-map{margin-bottom:30px}
}

/* ---------- 首页三张大屏海报（通栏） ---------- */
.posters-sec{padding:28px 0}
.posters-full{width:100%;display:flex;flex-direction:column;overflow:hidden;gap:26px}

.bigposter{position:relative;display:block;height:640px;overflow:hidden;text-decoration:none;color:#fff;background:#14161C}
.bigposter{border-radius:0}

/* ① 自己上传的海报图：原图原样显示，不裁切、不加暗、不叠字 */
.bigposter.is-self{height:auto;background:#EFEFF4;display:block;line-height:0;aspect-ratio:16/9}
.bigposter.is-self .bigposter-pic{display:block;width:100%;max-width:100%;height:100%;object-fit:cover;margin:0 auto}

/* ② 没传海报图，用产品封面兜底：浅灰渐变 + 产品图居中偏右 */
.bigposter.is-prod{background:linear-gradient(135deg,#FAFAFC 0%,#EFEFF4 55%,#E3E3EA 100%)}
.bigposter.is-prod .bigposter-title{color:#16161A}
.bigposter.is-prod .bigposter-sub{color:#6E6E77}
.bigposter.is-prod .bigposter-more{color:#C8392B;border-bottom-color:rgba(200,57,43,.3)}

.bigposter-inner{position:relative;z-index:2;height:100%;max-width:1240px;margin:0 auto;padding:0 40px;display:flex;align-items:center;justify-content:space-between;gap:56px;box-sizing:border-box}
.bigposter-txt{flex:1 1 auto;max-width:620px}
.bigposter-fg{flex:0 0 auto;display:flex;align-items:center;justify-content:center;height:100%;padding:56px 0;box-sizing:border-box}
.bigposter-fg img{max-height:100%;max-width:540px;width:auto;height:auto;object-fit:contain;transition:transform .5s ease}
.bigposter:hover .bigposter-fg img{transform:translateY(-8px) scale(1.02)}

.bigposter-model{display:inline-block;font-size:12.5px;color:#C8392B;background:#FDF0EE;border-radius:4px;padding:4px 11px;font-weight:600;letter-spacing:.02em;margin-bottom:18px}
.bigposter-title{display:block;font-size:52px;font-weight:700;letter-spacing:-.034em;line-height:1.16;margin-bottom:22px}
.bigposter-sub{display:block;font-size:16.5px;line-height:1.85;max-width:530px;margin-bottom:38px;font-weight:400}
.bigposter-more{display:inline-flex;align-items:center;gap:8px;font-size:14.5px;font-weight:600;border-bottom:1px solid;padding-bottom:5px;transition:gap .22s}
.bigposter-more svg{width:16px;height:16px;transition:transform .22s}
.bigposter:hover .bigposter-more svg{transform:translateX(5px)}

@media(max-width:1080px){
  .bigposter{height:560px}
  .bigposter-title{font-size:42px}
  .bigposter-sub{font-size:15.5px}
  .bigposter-fg img{max-width:420px}
}
@media(max-width:900px){
  .bigposter{height:auto;min-height:0}
  .bigposter-inner{flex-direction:column;justify-content:center;align-items:flex-start;padding:64px 26px;gap:30px}
  .bigposter-txt{max-width:none}
  .bigposter-fg{padding:0;height:auto;width:100%;justify-content:center}
  .bigposter-fg img{max-height:270px;max-width:100%}
  .bigposter-title{font-size:31px;letter-spacing:-.026em;margin-bottom:14px}
  .bigposter-sub{font-size:14.5px;line-height:1.8;margin-bottom:26px}
  .bigposter-model{margin-bottom:14px}
  .bigposter.is-self{min-height:0}
}
