/* =========================================================================
   DOGO Energy — 产品目录样式
   仅在产品归档 / 产品详情 / 产品分类页加载（见 functions.php）
   与 style.css 互补：style.css 负责页头页脚与首页，本文件负责目录区
   ========================================================================= */

.page-head{padding:44px 0 28px;background:#f4f7fb;border-bottom:1px solid #e6ecf5}
.page-head h1{margin:0 0 6px;font-size:30px;color:#12314f}
.page-head p{margin:0;color:#5b7089;font-size:15px}
.cat-wrap{display:grid;grid-template-columns:240px 1fr;gap:26px;align-items:start;padding:30px 0 60px}
/* grid 子项的 min-width 默认是 auto，多列规格表的 min-width:570 会把整页撑宽 → 移动端横向溢出 */
.cats-main{min-width:0}
.cats{background:#fff;border:1px solid #e3eaf3;border-radius:12px;overflow:hidden;position:sticky;top:86px}
.cats h4{margin:0;padding:14px 18px;background:#16509b;color:#fff;font-size:15px;letter-spacing:.3px}
.cats a{display:block;padding:12px 18px;border-bottom:1px solid #eef2f8;color:#243b53;font-size:14.5px;text-decoration:none}
.cats a:last-child{border-bottom:none}
.cats a:hover{background:#f2f6fc;color:#16509b}
.cat-section{margin-bottom:30px;background:#fff;border:1px solid #e3eaf3;border-radius:12px;padding:24px 26px}
.cat-section h2{margin:0 0 6px;font-size:22px;color:#12314f}
.cat-section .lead{color:#5b7089;font-size:14.5px;margin:0 0 16px}
.prod{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:center}
.prod img{width:100%;border-radius:10px;display:block}
.prod h3{margin:0 0 8px;font-size:18px;color:#12314f}
.prod .pdesc{color:#51637a;font-size:14.5px;margin:0 0 10px}
.prod ul{margin:0 0 16px;padding-left:18px;color:#51637a;font-size:14px;line-height:1.9}
.pbtns{display:flex;gap:10px;flex-wrap:wrap}
.pbtns a{display:inline-block;padding:9px 16px;border-radius:8px;font-size:14px;text-decoration:none;font-weight:600}
.pbtns .b-blue{background:#16509b;color:#fff}
.pbtns .b-wa{background:#25d366;color:#fff}
@media(max-width:860px){.cat-wrap{grid-template-columns:1fr}.cats{position:static}.prod{grid-template-columns:1fr}}

/* ---- 两级分类侧栏与型号 chip ---- */
  /* catalog-nav: 两级分类栏 + 型号 chip */
  .cats nav{display:block}
  .cats .cat-link{font-weight:600}
  .cats .sub{background:#f7fafc;border-bottom:1px solid #eef2f8}
  .cats .sub a{padding:8px 18px 8px 30px;font-size:13px;color:#5b7089;border-bottom:none;border-left:3px solid transparent}
  .cats .sub a:hover{background:#eef4fb;color:#16509b;border-left-color:#16509b}
  .models{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 20px;padding:14px 0 2px;border-top:1px dashed #e3eaf3}
  .mgroup{display:flex;flex-wrap:wrap;gap:8px;align-items:center;width:100%;scroll-margin-top:110px}
  .models{scroll-margin-top:110px}
  .mgroup+.mgroup{margin-top:4px}
  .models-label{flex:0 0 100%;font-size:11.5px;letter-spacing:.8px;text-transform:uppercase;color:#8496ab}
  .chip{display:inline-block;padding:5px 12px;border:1px solid #d7e3f0;border-radius:999px;background:#f7fafc;color:#12314f;font-size:13px;line-height:1.4;scroll-margin-top:96px}
  .chip:target{border-color:#16509b;background:#16509b;color:#fff}

/* ---- 产品卡 ---- */
.pgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
  .pcard{border:1px solid #e6ecf1;border-radius:var(--radius);background:#fff;box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;transition:.25s}
  .js-anim .pcard.reveal{opacity:0;transform:translateY(18px)}
  .js-anim .pcard.reveal.on{opacity:1;transform:none}
  .pcard:hover{transform:translateY(-5px) !important;border-color:#bcd0e2}
  @media (prefers-reduced-motion:reduce){.js-anim .pcard.reveal{opacity:1;transform:none;transition:none}}
  .pimg{background:#edeef0;border-radius:10px;overflow:hidden;margin-bottom:14px}
  .pimg img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;padding:10px}
  /* 电池容量标签：同系列各容量共用一张主图，靠它区分型号。
     放在图片下方而不是压在图上，避免遮住机身自己的 logo（2026-11-18） */
  .card-kwh{display:inline-block;align-self:flex-start;margin:-4px 0 9px;padding:3px 10px;border-radius:999px;
    background:#eef3f8;color:#0d2b47;border:1px solid #dfe8f1;
    font-size:12.5px;font-weight:700;letter-spacing:.02em;line-height:1.5;white-space:nowrap}
  .pcard h3{font-size:15.5px;line-height:1.4;color:var(--green-dark);min-height:44px}
  .pkw{font-size:12.5px;color:var(--muted);margin:6px 0 14px;flex:1}
  .view{display:inline-block;text-align:center;background:var(--green);color:#fff;font-size:13.5px;font-weight:700;padding:9px 0;border-radius:8px;transition:.2s}
  .view:hover{background:var(--green-dark)}
.pcard h3 a{color:inherit;text-decoration:none}
.pcard h3 a:hover{color:var(--green)}
.pimg a{display:block}

/* ---- 档位卡（Solar Panel 父级：一档一张卡） ---- */
.band-range{display:inline-block;align-self:flex-start;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--green);background:#eef3f9;border:1px solid #dce8f4;border-radius:5px;padding:3px 8px;margin-bottom:9px}
.band-card h3{min-height:0}
.family-sub{margin-top:40px}
.band-empty{margin:16px 0 0;font-size:13px;line-height:1.7;color:var(--muted)}
.band-empty a{color:var(--green);text-decoration:underline;text-underline-offset:2px}

/* ---- 面包屑 ---- */
.crumbs{font-size:13.5px;color:#5b7089;margin-bottom:10px}
.crumbs a{color:#16509b;font-weight:600;text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs span{margin:0 7px;color:#b6c2cc}
.crumbs .current{color:#5b7089;font-weight:600}

/* ---- 产品详情页 ---- */
.prod-hero{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;padding:34px 0 20px}
.prod-hero-img{background:#edeef0;border:1px solid #e6ecf1;border-radius:14px;padding:14px;display:flex;align-items:center;justify-content:center}
.prod-hero-img img{width:100%;height:auto;max-height:520px;object-fit:contain;border-radius:8px;display:block}
.prod-hero-body .eyebrow{margin:0 0 8px;font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:#8496ab;font-weight:700}
.prod-hero-body h1{margin:0 0 14px;font-size:30px;line-height:1.25;color:#12314f}
.prod-hero-desc{color:#51637a;font-size:15.5px;line-height:1.75;margin-bottom:18px}
.prod-hero-desc p{margin:0 0 10px}
.prod-highlights{list-style:none;margin:0 0 22px;padding:0;border-top:1px solid #eef2f8}
.prod-highlights li{padding:9px 0;border-bottom:1px solid #eef2f8;font-size:14px;color:#51637a}
.prod-highlights strong{color:#12314f;font-weight:600}
.prod-body{max-width:820px;padding:10px 0 30px;color:#33475a;font-size:15.5px;line-height:1.85}
.prod-body h2{font-size:22px;color:#12314f;margin:28px 0 10px}
.prod-body h3{font-size:18px;color:#12314f;margin:22px 0 8px}
.prod-body ul,.prod-body ol{padding-left:22px;margin:0 0 16px}
.prod-body li{margin-bottom:6px}
.prod-body img{height:auto;border-radius:10px;margin:16px 0}

/* ---- 规格表 ---- */
.spec-block{padding:10px 0 40px}
.spec-block h2{font-size:22px;color:#12314f;margin:0 0 16px}
.spec-pending{max-width:780px;color:#51637a;font-size:15.5px;line-height:1.8;background:#f7fafc;border:1px solid #e3eaf3;border-left:4px solid #16509b;border-radius:0 10px 10px 0;padding:18px 22px;margin:0}
.spec-table{width:100%;border-collapse:collapse;border:1px solid #e3eaf3;border-radius:10px;overflow:hidden;font-size:14.5px}
.spec-table caption{caption-side:top;text-align:left;padding:0 0 10px;font-size:13px;letter-spacing:.02em;color:#8a97a8;font-weight:500}
.spec-table th{width:38%;text-align:left;padding:11px 16px;background:#f7fafc;color:#12314f;font-weight:600;border-bottom:1px solid #eef2f8;vertical-align:top}
.spec-table td{padding:11px 16px;color:#51637a;border-bottom:1px solid #eef2f8}
.spec-table tr:last-child th,.spec-table tr:last-child td{border-bottom:none}
/* 系列书合并页：多型号并排对比表 */
/* overflow 必须放开，否则 thead 的 sticky 会被裁掉（圆角改由首末行边框承担） */
.spec-table.spec-multi{font-size:14px;overflow:visible;border-radius:0;table-layout:fixed}
/* 固定布局：首列 25%，其余型号列等分，避免长文本把某一型号列挤成窄条 */
.spec-table.spec-multi thead th{position:sticky;top:68px;z-index:3;background:#eef4fb;color:#12314f;font-weight:600;font-size:13px;letter-spacing:.01em;white-space:nowrap;border-bottom:1px solid #dde7f3;padding:11px 14px;box-shadow:0 1px 0 #dde7f3}
.spec-table.spec-multi thead th:first-child{width:25%;color:#51637a;font-weight:500}
.spec-table.spec-multi th[scope=row]{width:25%;padding:11px 14px}
.spec-table.spec-multi td{padding:11px 14px}
.spec-note{margin:12px 0 0;font-size:13px;color:#8496ab}

/* ---- 相关产品 ---- */
.related-block{padding:10px 0 40px;border-top:1px solid #eef2f8;margin-top:10px}
.related-block h2{font-size:22px;color:#12314f;margin:24px 0 18px}

/* ---- 同系列档位 chips（详情页） ---- */
.prod-range{margin:0 0 22px;padding-top:16px;border-top:1px dashed #e3eaf3}
.prod-range-label{display:block;font-size:11.5px;letter-spacing:.8px;text-transform:uppercase;color:#8496ab;margin-bottom:9px}
.prod-range-chips{display:flex;flex-wrap:wrap;gap:7px}
.prod-range-chips .chip{text-decoration:none;transition:.18s}
.prod-range-chips .chip:hover{border-color:#16509b;color:#16509b;background:#f2f6fc}
.prod-range-chips .chip.on{background:#16509b;border-color:#16509b;color:#fff;font-weight:600}

/* ---- 详情页询盘 ---- */
.prod-quote{display:grid;grid-template-columns:1fr 1.15fr;gap:38px;align-items:start;padding:34px 0 44px;margin:10px 0 0;border-top:1px solid #eef2f8;scroll-margin-top:100px}
.prod-quote-info h2{font-size:24px;color:#12314f;margin:0 0 12px}
.prod-quote-info>p{color:#51637a;font-size:15px;line-height:1.75;margin:0 0 16px;max-width:460px}
.prod-quote-list{list-style:none;margin:0 0 20px;padding:0}
.prod-quote-list li{position:relative;padding:7px 0 7px 26px;font-size:14.5px;color:#33475a;border-bottom:1px dashed #e8eef6}
.prod-quote-list li:last-child{border-bottom:none}
.prod-quote-list li:before{content:"";position:absolute;left:4px;top:15px;width:7px;height:7px;border-radius:50%;background:#25d366}
.prod-quote-alt{font-size:14px;color:#5b7089}
.prod-quote-alt a{color:#16509b;font-weight:700;text-decoration:none}
.prod-quote-alt a:hover{text-decoration:underline}
.form-note{margin:10px 0 0;font-size:12.5px;color:#8496ab;text-align:center}

/* ---- 页尾询盘 ---- */
.dogo-cta{background:#f4f7fb;border-top:1px solid #e6ecf5;padding:48px 0;margin-top:20px}
.dogo-cta-box{display:flex;align-items:center;justify-content:space-between;gap:30px;flex-wrap:wrap}
.dogo-cta-box h2{margin:0 0 8px;font-size:24px;color:#12314f}
.dogo-cta-box p{margin:0;color:#5b7089;font-size:15px;max-width:520px}
.dogo-cta-btns{display:flex;gap:12px;flex-wrap:wrap}
.dogo-cta-btns a{display:inline-block;padding:13px 26px;border-radius:9px;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap}
.dogo-cta-btns .b-wa{background:#25d366;color:#fff}
.dogo-cta-btns .b-blue{background:#16509b;color:#fff}
.dogo-cta-btns a:hover{filter:brightness(1.07)}

/* ---- 分页 ---- */
.pagination{margin:26px 0 10px;text-align:center}
.pagination .nav-links{display:inline-flex;gap:6px}
.pagination .page-numbers{padding:8px 13px;border:1px solid #e3eaf3;border-radius:8px;color:#33475a;text-decoration:none;font-size:14px}
.pagination .page-numbers.current,.pagination .page-numbers:hover{background:#16509b;border-color:#16509b;color:#fff}

/* ---- 空分类兜底（built to order） ---- */
.cat-note{background:#fff;border:1px solid #e3eaf3;border-radius:12px;padding:26px 28px;margin-bottom:26px}
.cat-note h2{margin:0 0 12px;font-size:21px;color:#12314f;line-height:1.35}
.cat-note p{margin:0 0 12px;color:#51637a;font-size:15px;line-height:1.75;max-width:760px}
.cat-note-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0 !important}
.cat-note-actions a{display:inline-block;padding:11px 20px;border-radius:8px;font-size:14.5px;font-weight:700;text-decoration:none}
.cat-note-actions .b-wa{background:#25d366;color:#fff}
.cat-note-actions .b-blue{background:#16509b;color:#fff}
.cat-note-actions a:hover{filter:brightness(1.07)}
.block-sub{font-size:19px;color:#12314f;margin:4px 0 16px}
.cats .sub a.on{color:#16509b;font-weight:700;border-left-color:#16509b;background:#eef4fb}

/* ---- 响应式 ---- */
@media(max-width:960px){
  .pgrid{grid-template-columns:repeat(2,1fr)}
  .prod-hero{grid-template-columns:1fr;gap:26px}
  .prod-hero-body h1{font-size:25px}
  .prod-quote{grid-template-columns:1fr;gap:26px}
}
@media(max-width:600px){
  .pgrid{grid-template-columns:1fr}
  .spec-table th{width:44%}
  /* 多型号对比表：窄屏横向滚动，不然三列挤成一团 */
  .spec-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -2px;padding:0 2px}
  .spec-scroll .spec-table.spec-multi{min-width:570px;font-size:13px}
  /* caption 钉在左侧视口内，否则长产品名被右边界硬切 */
  .spec-scroll .spec-table.spec-multi caption{position:sticky;left:0;width:calc(100vw - 34px);white-space:normal}
  .spec-table.spec-multi thead th{position:static;white-space:nowrap;padding:9px 10px;font-size:12px}
  .spec-table.spec-multi th[scope=row],.spec-table.spec-multi thead th:first-child{width:30%}
  .spec-table.spec-multi th,.spec-table.spec-multi td{padding:9px 10px;vertical-align:top}
  .dogo-cta-box{flex-direction:column;align-items:flex-start}
  .prod-hero-img img{max-height:340px}
  .prod-quote{padding-top:26px}
  .prod-quote-info h2{font-size:21px}
}

/* ===== DOGO CATALOG MOBILE ===== */
@media(max-width:860px){
  .cat-wrap{grid-template-columns:1fr}
  .cats-main{order:1}
  .cats{order:2;position:static;margin-top:26px}
  .cats nav{max-height:none}
  .prod-hero{grid-template-columns:1fr}
}

/* ---- 三级分类：侧栏第三级 + 归档页分块 ---- */
  .cats .sub a.lvl3{padding:7px 18px 7px 42px;font-size:12.5px;color:#7b8ea4;position:relative}
  .cats .sub a.lvl3::before{content:"";position:absolute;left:30px;top:50%;width:5px;height:1px;background:#c3d2e2}
  .cats .sub a.lvl3.on{color:#16509b;font-weight:700;border-left-color:#16509b;background:#eef4fb}
  .subsec{margin:26px 0 0;scroll-margin-top:110px}
  .subsec+.subsec{margin-top:34px}
  .subsec-title{display:flex;align-items:baseline;gap:10px;margin:0 0 16px;padding-bottom:10px;border-bottom:1px solid #e6ecf1;font-size:17px;color:#12314f}
  .subsec-title a{color:inherit;text-decoration:none}
  .subsec-title a:hover{color:#16509b}
  .subsec-title .cnt{font-size:12px;font-weight:500;color:#8496ab;letter-spacing:.2px}

/* ---- 分类页：系列落地首屏（2026-11-16） ---- */
.series-hero{padding-top:26px}
.series-hero .prod-hero-body h2{margin:0 0 14px;font-size:28px;line-height:1.28;color:#12314f}
.series-hero .prod-hero-img img{max-height:470px}
.series-hero .prod-highlights li{font-size:14px}
@media(max-width:600px){
  .series-hero .prod-hero-body h2{font-size:22px}
}

/* 对比表：型号多时首列太窄，标签会被压成四行，改成自适应宽度 */
.spec-table.spec-compare{table-layout:auto}
.spec-table.spec-compare th[scope=row]{width:auto;min-width:150px;white-space:normal}
.spec-table.spec-compare thead th{white-space:nowrap;font-size:12.5px;padding:10px 10px;vertical-align:bottom}
.spec-table.spec-compare td{padding:10px;font-size:13.5px}
/* 5 个型号并排时，单元格被均分到 100px 出头，"10.24 kWh" 会被断成两行。
   给数值列一个下限，让表格横向滚动而不是把数字拆开。 */
.spec-table.spec-compare td{min-width:118px}
