/*
 Theme Name:   RayneTools Child
 Theme URI:    https://raynetools.com
 Description:  Blocksy 子主题 — 承载首页及全站 .hw- 组件样式，前后台单源维护。
 Template:     blocksy
 Author:       Leon
 Version:      1.0.0
 License:     GNU General Public License v2 or later
 Text Domain:  raynetools-child
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* =====================================================================
   全站附加 CSS（单一来源）。
   前台：WordPress 自动加载本文件（style.css）。
   后台：functions.php 的 add_editor_style('style.css') 已注入区块编辑器，前后台一致。
   变量统一 --hw-*（见下方 :root）；首页组件全部以 .hw- 前缀作用域，不污染全站。
   注意：本段对应 home-preview/wp/首页区块代码.html（粘进「代码编辑器」）。
   ===================================================================== */

:root{
  --hw-ink:#0B1A24;--hw-ink2:#102530;--hw-steel:#2E5A78;
  --hw-amber:#F5821F;--hw-amber-d:#d96c0c;
  --hw-paper:#F6F8FA;--hw-line:#E4E9ED;--hw-muted:#6B7C88;
  --hw-radius:20px;
}

html{overflow-x:clip}

/* ========== 0. 古腾堡默认间距清零 ========== */
.hw-hero,.hw-trust,.hw-products,.hw-stats,.hw-hot,.hw-about,.hw-capband,
.hw-process,.hw-lab,.hw-tour,.hw-equip,.hw-cert,.hw-quote,.hw-inquiry{
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--hw-ink);
  margin-top:0;
  margin-bottom:0;
}
.hw-hero .wp-block-cover__inner-container,
.hw-stats .wp-block-cover__inner-container,
.hw-capband .wp-block-cover__inner-container,
.hw-tour .wp-block-cover__inner-container{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  width:100%;
  color:#fff; /* 深色 cover 内文字默认白，避免黑底上隐形 */
}
.hw-products>*,.hw-hot>*,.hw-about>*,.hw-process>*,.hw-lab>*,
.hw-equip>*,.hw-cert>*,.hw-quote>*,.hw-inquiry>*,
.hw-hero .wp-block-cover__inner-container>*,
.hw-stats .wp-block-cover__inner-container>*,
.hw-capband .wp-block-cover__inner-container>*,
.hw-tour .wp-block-cover__inner-container>*{
  margin-top:0;
  margin-bottom:0;
}
.hw-hero .wp-block-columns,
.hw-stats .wp-block-columns,
.hw-cats,.hw-prods,.hw-caps,.hw-steps,.hw-eqs,.hw-feature,.hw-hero-meta{
  margin-top:0;
  margin-bottom:0;
  box-sizing:border-box;
}
.hw-cat,.hw-prod,.hw-cap,.hw-step,.hw-eq,.hw-stat,.hw-meta,
.hw-feat-img,.hw-feat-body{
  margin-top:0;
  margin-left:0;
  margin-right:0;
  margin-bottom:0;
  min-width:0;
}
.hw-products .wp-block-image,
.hw-hot .wp-block-image,
.hw-about .wp-block-image,
.hw-lab .wp-block-image,
.hw-equip .wp-block-image{
  margin:0;
}
.hw-hot .wp-block-buttons,.hw-products .wp-block-buttons{margin:0;gap:0}
.hw-hero .wp-block-buttons{margin:0}
.hw-hot .wp-block-button,.hw-hero .wp-block-button{margin:0}
.hw-hero .wp-block-button__link,
.hw-hot .wp-block-button__link{
  padding:0;
  border:0;
  color:inherit;
}
.hw-hero .wp-block-quote,.hw-quote .wp-block-quote{
  border-left:0;
  padding-left:0;
  margin:0;
}
.hw-flist{margin:0;padding:0;list-style:none}
.hw-flist li{list-style:none;margin:0}
.hw-hero .wp-block-heading,
.hw-products .wp-block-heading,
.hw-hot .wp-block-heading,
.hw-about .wp-block-heading,
.hw-capband .wp-block-heading,
.hw-process .wp-block-heading,
.hw-lab .wp-block-heading,
.hw-tour .wp-block-heading,
.hw-equip .wp-block-heading,
.hw-cert .wp-block-heading,
.hw-quote .wp-block-heading,
.hw-inquiry .wp-block-heading,
.hw-cat-cover .wp-block-heading,
.hw-stat .has-text-align-center{margin:0}

/* ========== 1. 通用零件 ========== */
.hw-eyebrow{
  color:var(--hw-amber);
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-size:13px;
}
.hw-products .wp-block-heading:not(.hw-eyebrow),
.hw-hot .wp-block-heading:not(.hw-eyebrow),
.hw-process .wp-block-heading:not(.hw-eyebrow),
.hw-equip .wp-block-heading:not(.hw-eyebrow),
.hw-cert .wp-block-heading:not(.hw-eyebrow),
.hw-inquiry .wp-block-heading:not(.hw-eyebrow),
.hw-capband .wp-block-heading:not(.hw-eyebrow){
  font-size:clamp(28px,3.6vw,44px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.12;
  margin-top:10px;
}
.hw-sec-sub{
  color:var(--hw-muted);
  font-size:17px;
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
  margin-top:16px;
}

/* ========== 1.5 板块标题字体/对齐加固（Blocksy 直接给 h1~h6 设样式，会盖过容器继承） ========== */
.hw-hero :is(h1,h2,h3,h4,h5,h6),
.hw-products :is(h1,h2,h3,h4,h5,h6),
.hw-hot :is(h1,h2,h3,h4,h5,h6),
.hw-about :is(h1,h2,h3,h4,h5,h6),
.hw-capband :is(h1,h2,h3,h4,h5,h6),
.hw-process :is(h1,h2,h3,h4,h5,h6),
.hw-lab :is(h1,h2,h3,h4,h5,h6),
.hw-tour :is(h1,h2,h3,h4,h5,h6),
.hw-galsec :is(h1,h2,h3,h4,h5,h6),
.hw-equip :is(h1,h2,h3,h4,h5,h6),
.hw-cert :is(h1,h2,h3,h4,h5,h6),
.hw-quote :is(h1,h2,h3,h4,h5,h6),
.hw-inquiry :is(h1,h2,h3,h4,h5,h6){
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
/* 设计为居中的板块标题，显式钉死居中（不依赖 WP 的 has-text-align-center） */
.hw-products>.wp-block-heading,
.hw-hot>.wp-block-heading,
.hw-capband .wp-block-cover__inner-container>.wp-block-heading,
.hw-process>.wp-block-heading,
.hw-galsec>.wp-block-heading,
.hw-equip>.wp-block-heading,
.hw-cert>.wp-block-heading,
.hw-inquiry>.wp-block-heading{
  text-align:center;
}
.hw-stats-grid .wp-block-heading,
.hw-lab .wp-block-columns .wp-block-heading{
  text-align:center;
}

/* ========== 2. Hero ========== */
.hw-hero{
  min-height:min(100vh,900px);
  display:flex;
  align-items:center;
}
.hw-hero .wp-block-cover__inner-container{
  padding-top:150px;
  padding-bottom:60px;
}
.hw-pill{
  display:inline-block;
  padding:8px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  color:rgba(255,255,255,.9);
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  background:rgba(255,255,255,.06);
  margin-bottom:26px;
}
.hw-hero-title{
  font-size:clamp(38px,6.2vw,78px);
  font-weight:900;
  letter-spacing:-.03em;
  line-height:1.04;
  color:#fff;
  margin-top:0;
}
.hw-hero-title span{color:var(--hw-amber)}
.hw-hero-sub{
  font-size:clamp(16px,1.9vw,20px);
  color:rgba(255,255,255,.86);
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
  margin-top:24px;
  line-height:1.6;
}
.hw-hero-btns{margin-top:38px;gap:16px}
.hw-btn-primary .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  padding:16px 32px;
  border-radius:999px;
  font-weight:800;
  font-size:15.5px;
  background:var(--hw-amber);
  color:#fff;
  box-shadow:0 14px 30px -10px rgba(245,130,31,.65);
  transition:.25s;
}
.hw-btn-primary .wp-block-button__link:hover{background:var(--hw-amber-d);transform:translateY(-2px)}
.hw-btn-ghost .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  padding:16px 32px;
  border-radius:999px;
  font-weight:700;
  font-size:15.5px;
  border:1.5px solid rgba(255,255,255,.45);
  color:#fff;
  transition:.25s;
}
.hw-btn-ghost .wp-block-button__link:hover{background:rgba(255,255,255,.12)}
.hw-hero-meta{
  margin-top:70px;
  gap:20px;
  flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.15);
  padding-top:34px;
}
.hw-hero-meta>.wp-block-column{flex:0 0 calc(25% - 15px)}
.hw-meta h4{font-size:32px;font-weight:900;color:#fff;line-height:1}
.hw-meta p{color:rgba(255,255,255,.7);font-size:13.5px;margin-top:6px}

/* ========== 3. 信任条 ========== */
.hw-trust{
  background:var(--hw-ink);
  padding-top:0;
  padding-bottom:0;
}
.hw-trust p{
  color:rgba(255,255,255,.85);
  font-size:15px;
  letter-spacing:.02em;
  padding-top:26px;
  padding-bottom:26px;
  line-height:1.8;
}
.hw-trust strong{color:#fff;font-weight:800}

/* ========== 4. 三大分类 ========== */
.hw-products{
  background:#fff;
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-cats{margin-top:56px;gap:26px}
.hw-cats>.wp-block-column{flex:0 0 calc(33.333% - 17.4px)}
.hw-cat-cover{
  min-height:470px;
  border-radius:var(--hw-radius);
  overflow:hidden;
  transition:.4s;
}
.hw-cat:hover .hw-cat-cover{transform:translateY(-8px)}
.hw-cat-cover .wp-block-cover__image-background{transition:.7s}
.hw-cat:hover .hw-cat-cover .wp-block-cover__image-background{transform:scale(1.08)}
.hw-cat-cover .wp-block-cover__inner-container{
  padding:34px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  height:100%;
}
.hw-cat-num{
  font-size:14px;
  font-weight:900;
  letter-spacing:.2em;
  color:var(--hw-amber);
  margin-bottom:8px;
}
.hw-cat-cover h3{font-size:26px;font-weight:900;color:#fff;margin-top:6px}
.hw-cat-desc{color:rgba(255,255,255,.82);font-size:14.5px;margin-top:12px;line-height:1.6}
.hw-cat-tags{color:rgba(255,255,255,.55);font-size:12.5px;margin-top:14px}
.hw-cat-link{margin-top:18px}
.hw-cat-link a{
  color:#fff;
  font-weight:800;
  font-size:14.5px;
  border-bottom:2px solid var(--hw-amber);
  padding-bottom:4px;
  transition:.25s;
}
.hw-cat-link a:hover{color:var(--hw-amber)}

/* ========== 5. 数据带 ========== */
.hw-stats{
  min-height:220px;
  display:flex;
  align-items:center;
}
.hw-stats .wp-block-cover__inner-container{padding-left:24px;padding-right:24px}
.hw-stats-grid{gap:24px}
.hw-stats-grid>.wp-block-column{flex:0 0 calc(25% - 18px)}
.hw-stat-n{
  font-size:clamp(38px,4.6vw,58px);
  font-weight:900;
  color:var(--hw-amber);
  letter-spacing:-.02em;
  line-height:1;
}
.hw-stat-l{color:rgba(255,255,255,.72);font-size:14px;margin-top:10px;letter-spacing:.04em}

/* ========== 6. 热销产品 ========== */
.hw-hot{
  background:var(--hw-paper);
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
/* 热销板块内容限宽 1400px 居中 */
.hw-hot>*{max-width:1400px;margin-left:auto;margin-right:auto}
/* 标题缩小，避免大屏下过大 */
.hw-hot .wp-block-heading:not(.hw-eyebrow){font-size:clamp(24px,2.6vw,32px);margin-top:8px}
.hw-prods{gap:26px;margin-top:56px}
.hw-prods + .hw-prods{margin-top:26px}
.hw-prods>.wp-block-column{flex:0 0 calc(33.333% - 17.4px)}
.hw-prod{
  background:#fff;
  border:1px solid var(--hw-line);
  border-radius:var(--hw-radius);
  overflow:hidden;
  padding-bottom:24px;
  transition:.35s;
}
.hw-prod:hover{transform:translateY(-6px);box-shadow:0 20px 50px -22px rgba(11,26,36,.32)}
.hw-prod .wp-block-image{margin:0;padding:18px 18px 0}
.hw-prod .wp-block-image img{
  width:100%;
  height:auto;
  aspect-ratio:1/1;
  object-fit:cover;
  background:#fff;
  border-radius:14px;
  border:1px solid var(--hw-line);
  transition:transform .4s ease, box-shadow .4s ease;
}
.hw-prod:hover .wp-block-image img{transform:scale(1.04);box-shadow:0 14px 30px -16px rgba(11,26,36,.3)}
.hw-prod h4{
  font-size:17.5px;
  font-weight:800;
  padding:22px 24px 0;
  line-height:1.3;
  min-height:62px;
}
.hw-prod-spec{color:var(--hw-muted);font-size:13.5px;padding:8px 24px 0;line-height:1.5}
.hw-prod .wp-block-buttons{padding:18px 24px 0}
.hw-prod-inq .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  padding:10px 22px;
  border-radius:999px;
  border:1.5px solid var(--hw-line);
  background:transparent;
  color:var(--hw-ink);
  font-weight:700;
  font-size:13.5px;
  transition:.25s;
}
.hw-prod-inq .wp-block-button__link:hover{
  background:var(--hw-amber);
  color:#fff;
  border-color:var(--hw-amber);
}

/* ========== 7. 工厂图文 + 实验室 ========== */
.hw-about{
  background:#fff;
  padding-top:110px;
  padding-bottom:40px;
  padding-left:24px;
  padding-right:24px;
}
.hw-lab{
  background:#fff;
  padding-top:60px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-feature{gap:70px;align-items:center}
.hw-feature>.wp-block-column{flex:0 0 calc(50% - 35px)}
.hw-feat-img .wp-block-image img{
  width:100%;
  height:auto;
  border-radius:var(--hw-radius);
  box-shadow:0 24px 60px -26px rgba(11,26,36,.4);
}
.hw-feat-body h2{
  font-size:clamp(26px,3.2vw,38px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.15;
  margin-top:10px;
}
.hw-feat-body>p{color:var(--hw-muted);font-size:16.5px;margin-top:18px;line-height:1.7}
.hw-flist{margin-top:28px}
.hw-flist li{
  display:flex;
  gap:14px;
  padding:15px 0;
  border-bottom:1px solid var(--hw-line);
  font-size:15.5px;
  color:var(--hw-ink2);
}
.hw-flist li:last-child{border-bottom:0}
.hw-flist li::before{
  content:"";
  flex:0 0 22px;
  height:22px;
  border-radius:50%;
  margin-top:2px;
  background:var(--hw-amber) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='20%206%209%2017%204%2012'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ========== 8. 工厂实力带 ========== */
.hw-capband{
  background:#0B1A24;
  min-height:0;
  padding-top:100px;
  padding-bottom:100px;
  padding-left:24px;
  padding-right:24px;
}
/* 实力带内容限宽 1400px（覆盖通用 1200） */
.hw-capband .wp-block-cover__inner-container{max-width:1400px}
.hw-caps{
  margin-top:52px;
  gap:18px;
}
.hw-caps>.wp-block-column{flex:0 0 calc(25% - 13.5px)}
.hw-cap{
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:36px 24px;
  position:relative;
  overflow:hidden;
  transition:.3s;
}
.hw-cap::before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--hw-amber),rgba(245,130,31,0));
  opacity:0;
  transition:.3s;
}
.hw-cap:hover{background:rgba(255,255,255,.09);transform:translateY(-5px)}
.hw-cap:hover::before{opacity:1}
.hw-cap-n{
  font-size:13px;
  font-weight:900;
  letter-spacing:.18em;
  color:var(--hw-amber);
  text-transform:uppercase;
}
.hw-cap h4{color:#fff;font-size:18px;font-weight:800;margin-top:12px}
.hw-cap-l{color:rgba(255,255,255,.65);font-size:13.5px;margin-top:10px;line-height:1.6}
.hw-capband .hw-sec-sub{color:rgba(255,255,255,.7)} /* 黑底副标题提亮 */

/* ========== 9. 生产流程 ========== */
.hw-process{
  background:var(--hw-paper);
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
/* 流程板块内容限宽 1400px 居中 */
.hw-process>*{max-width:1400px;margin-left:auto;margin-right:auto}
.hw-steps{gap:18px;margin-top:56px;flex-wrap:wrap}
.hw-steps>.wp-block-column{flex:0 0 calc(20% - 14.4px)}
.hw-step{
  background:#fff;
  border:1px solid var(--hw-line);
  border-radius:var(--hw-radius);
  padding:30px 24px;
  min-height:230px;
  transition:.3s;
  position:relative;
  overflow:hidden;
}
.hw-step:hover{transform:translateY(-6px);box-shadow:0 18px 46px -22px rgba(11,26,36,.28)}
.hw-step::before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;height:4px;
  background:linear-gradient(90deg,var(--hw-amber),var(--hw-amber-d));
  transform:scaleX(0);
  transform-origin:left;
  transition:.35s;
}
.hw-step:hover::before{transform:scaleX(1)}
.hw-step-ic{
  width:auto;
  height:auto;
  line-height:1;
  text-align:left;
  border-radius:0;
  background:linear-gradient(135deg,var(--hw-amber),var(--hw-amber-d));
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:var(--hw-amber);
  font-weight:900;
  font-size:38px;
  letter-spacing:.02em;
  margin-bottom:14px;
}
.hw-step h4{font-size:16.5px;font-weight:800;line-height:1.25;margin-top:2px}
.hw-step p{color:var(--hw-muted);font-size:13.5px;margin-top:10px;line-height:1.6}

/* ========== 10. 工厂 Tour ========== */
.hw-tour{
  min-height:480px;
  display:flex;
  align-items:center;
  padding-left:24px;
  padding-right:24px;
}
.hw-tour-title{
  font-size:clamp(30px,4.4vw,52px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.1;
  color:#fff;
  max-width:16ch;
  margin-top:10px;
}
.hw-tour-sub{color:rgba(255,255,255,.82);font-size:17.5px;max-width:560px;margin-top:18px;line-height:1.65}
.hw-tour .wp-block-buttons{margin-top:34px}
.hw-play-btn .wp-block-button__link{
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:10px 30px 10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
  font-weight:700;
  font-size:16px;
  transition:.25s;
}
.hw-play-btn .wp-block-button__link:hover{background:rgba(255,255,255,.12)}
.hw-play-btn .wp-block-button__link::before{
  content:"";
  flex:0 0 56px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--hw-amber) url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27white%27%3E%3Cpath%20d=%22M8%205v14l11-7z%22/%3E%3C/svg%3E") center/20px no-repeat;
  box-shadow:0 14px 30px -10px rgba(245,130,31,.7);
}

/* ========== 11. 设备 ========== */
.hw-equip{
  background:#fff;
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-eqs{gap:22px;margin-top:56px}
.hw-eqs>.wp-block-column{flex:0 0 calc(25% - 16.5px)}
.hw-eq{
  background:var(--hw-paper);
  border:1px solid var(--hw-line);
  border-radius:var(--hw-radius);
  overflow:hidden;
  transition:.3s;
}
.hw-eq:hover{transform:translateY(-6px);box-shadow:0 18px 46px -22px rgba(11,26,36,.28)}
.hw-eq .wp-block-image img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.hw-eq h4{font-size:16px;font-weight:800;padding:20px 22px 0}
.hw-eq-desc{color:var(--hw-muted);font-size:13.5px;padding:8px 22px 22px;line-height:1.6}

/* ========== 12. 认证 ========== */
.hw-cert{
  background:var(--hw-ink);
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-cert .hw-eyebrow{color:var(--hw-amber)}
.hw-cert .wp-block-heading:not(.hw-eyebrow){color:#fff}
.hw-cert .hw-sec-sub{color:rgba(255,255,255,.65)}
.hw-certs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
  margin-top:56px;
}
.hw-certcard{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
  border-radius:var(--hw-radius);
  padding:36px 24px;
  text-align:center;
  transition:.3s;
}
.hw-certcard:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(245,130,31,.5);
  transform:translateY(-4px);
}
.hw-seal{width:80px;height:80px;display:block;margin:0 auto 18px}
.hw-certcard h4{color:#fff;font-size:17px;font-weight:800}
.hw-certcard p{color:rgba(255,255,255,.6);font-size:13px;margin-top:6px}

/* ========== 13. 工厂实拍（马赛克图墙） ========== */
.hw-galsec{
  background:#fff;
  padding-top:110px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-galsec .wp-block-heading:not(.hw-eyebrow){
  font-size:clamp(28px,3.6vw,44px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.12;
  text-align:center;
  margin-top:10px;
  color:var(--hw-ink);
}
.hw-mosaic{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-auto-rows:230px;
  gap:14px;
  max-width:1400px;
  margin:56px auto 0;
}
.hw-mosaic figure{
  position:relative;
  margin:0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 30px -18px rgba(11,26,36,.35);
}
.hw-mosaic img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s;
}
.hw-mosaic figure:hover img{transform:scale(1.06)}
.hw-mosaic figcaption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:40px 18px 14px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.02em;
  color:#fff;
  background:linear-gradient(180deg,transparent,rgba(11,26,36,.85));
}
.hw-m1,.hw-m6{grid-column:span 2}
@media(max-width:900px){
  .hw-mosaic{grid-template-columns:repeat(2,1fr);grid-auto-rows:170px;gap:10px}
  .hw-m1,.hw-m6{grid-column:span 2}
}

/* ========== 14. 客户引言 ========== */
.hw-quote{
  background:var(--hw-paper);
  padding-top:100px;
  padding-bottom:100px;
  padding-left:24px;
  padding-right:24px;
}
.hw-big-quote{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.hw-big-quote p{
  font-size:clamp(21px,2.8vw,32px);
  font-weight:700;
  line-height:1.42;
  letter-spacing:-.01em;
  color:var(--hw-ink);
}
.hw-who{color:var(--hw-muted);font-size:15px;margin-top:28px}

/* ========== 15. 询盘 ========== */
.hw-inquiry{
  background:#fff;
  padding-top:100px;
  padding-bottom:110px;
  padding-left:24px;
  padding-right:24px;
}
.hw-inq-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:0;
  max-width:1100px;
  margin:56px auto 0;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 34px 80px -34px rgba(11,26,36,.42);
}
.hw-inq-form{background:#fff;padding:64px 56px}
.hw-inq-form h3{font-size:clamp(26px,3.2vw,38px);font-weight:900;letter-spacing:-.02em}
.hw-inq-form>p{color:var(--hw-muted);font-size:15.5px;margin-top:12px}
.hw-field-row{display:flex;gap:18px;margin-top:26px}
.hw-field-row .hw-field{flex:1}
.hw-field{margin-top:18px}
.hw-field label{display:block;font-weight:700;font-size:13.5px;margin-bottom:8px}
.hw-field input,.hw-field textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--hw-line);
  border-radius:12px;
  background:var(--hw-paper);
  font-family:inherit;
  font-size:15px;
  color:var(--hw-ink);
  outline:none;
  transition:.2s;
}
.hw-field input:focus,.hw-field textarea:focus{
  border-color:var(--hw-amber);
  background:#fff;
  box-shadow:0 0 0 3px rgba(245,130,31,.15);
}
.hw-field textarea{min-height:148px;resize:vertical}
.hw-submit{
  margin-top:26px;
  padding:16px 32px;
  border-radius:999px;
  border:0;
  background:var(--hw-amber);
  color:#fff;
  font-weight:800;
  font-size:15.5px;
  font-family:inherit;
  cursor:pointer;
  transition:.25s;
  box-shadow:0 14px 30px -10px rgba(245,130,31,.6);
}
.hw-submit:hover{background:var(--hw-amber-d);transform:translateY(-2px)}
.hw-inq-side{
  background:var(--hw-ink);
  color:#fff;
  padding:64px 56px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.hw-inq-side h4{
  color:rgba(255,255,255,.5);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
}
.hw-inq-side>div+.hw-inq-side>div,
.hw-inq-side div{margin-top:0}
.hw-inq-side div{margin-bottom:26px}
.hw-inq-side div:last-of-type{margin-bottom:0}
.hw-v{font-size:20px;font-weight:800;margin-top:6px}
.hw-wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:14px;
  background:var(--hw-amber);
  color:#fff;
  padding:17px 28px;
  border-radius:14px;
  font-weight:800;
  font-size:15.5px;
  transition:.25s;
  box-shadow:0 14px 30px -10px rgba(245,130,31,.6);
}
.hw-wa:hover{background:var(--hw-amber-d);transform:translateY(-2px)}

/* ========== 16. 响应式 ========== */
@media(max-width:1100px){
  .hw-steps>.wp-block-column{flex:0 0 calc(33.333% - 12px)}
  .hw-caps>.wp-block-column{flex:0 0 calc(50% - 9px)}
  .hw-eqs>.wp-block-column{flex:0 0 calc(50% - 11px)}
  .hw-certs{grid-template-columns:1fr 1fr}
}
@media(max-width:980px){
  .hw-cats>.wp-block-column,
  .hw-prods>.wp-block-column,
  .hw-stats-grid>.wp-block-column{flex:0 0 calc(50% - 13px)}
  .hw-feature>.wp-block-column{flex:0 0 100%}
  .hw-feature{gap:36px}
  .hw-inq-grid{grid-template-columns:1fr}
  .hw-inq-form,.hw-inq-side{padding:48px 28px}
  .hw-hero-meta>.wp-block-column{flex:0 0 calc(50% - 10px)}
  .hw-products,.hw-hot,.hw-about,.hw-lab,.hw-process,.hw-equip,.hw-cert,.hw-inquiry{
    padding-top:80px;
    padding-bottom:80px;
  }
}
@media(max-width:782px){
  .hw-hero .wp-block-columns>.wp-block-column,
  .hw-cats>.wp-block-column,
  .hw-prods>.wp-block-column,
  .hw-stats-grid>.wp-block-column,
  .hw-caps>.wp-block-column,
  .hw-steps>.wp-block-column,
  .hw-eqs>.wp-block-column{flex:0 0 100%}
  .hw-certs{grid-template-columns:1fr}
  .hw-field-row{flex-direction:column;gap:0}
  .hw-hero .wp-block-cover__inner-container{padding-top:130px;padding-bottom:50px}
  .hw-hero-meta{margin-top:48px}
}

/* ========== 17. 防御性容器（不依赖 WP 核心 nowrap/默认） ========== */
.wp-block-columns.hw-cats,
.wp-block-columns.hw-prods,
.wp-block-columns.hw-stats-grid,
.wp-block-columns.hw-caps,
.wp-block-columns.hw-steps,
.wp-block-columns.hw-eqs,
.wp-block-columns.hw-feature,
.wp-block-columns.hw-hero-meta{
  display:flex;
  flex-wrap:wrap;
}

/* ========== 18. 旧图库块接管（页面里若还是 wp:gallery，用此规则渲染成3列图墙） ========== */
.wp-block-gallery.hw-gallery{
  display:grid!important;
  grid-template-columns:repeat(3,1fr)!important;
  gap:14px!important;
  max-width:1400px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  margin-top:0!important;
  margin-bottom:0!important;
}
.wp-block-gallery.hw-gallery .wp-block-image{
  margin:0!important;
  width:100%!important;
  border-radius:16px!important;
  overflow:hidden!important;
  position:relative!important;
  flex:none!important;
}
.wp-block-gallery.hw-gallery img{
  width:100%!important;
  height:280px!important;
  max-height:280px!important;
  object-fit:cover!important;
  aspect-ratio:auto!important;
  display:block!important;
  transition:transform .5s;
}
.wp-block-gallery.hw-gallery .wp-block-image:hover img{transform:scale(1.06)}
.wp-block-gallery.hw-gallery figcaption,
.wp-block-gallery.hw-gallery .wp-element-caption{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  margin:0!important;
  padding:40px 16px 14px!important;
  font-size:13px!important;
  font-weight:700!important;
  color:#fff!important;
  background:linear-gradient(180deg,transparent,rgba(11,26,36,.85))!important;
  text-align:center;
}
@media(max-width:900px){
  .wp-block-gallery.hw-gallery{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}
  .wp-block-gallery.hw-gallery img{height:200px!important;max-height:200px!important}
}

/* ========== 19. 深色 cover 白边修复（主题块间距盖过 0 段 margin:0 → !important 加固） ========== */
.wp-block-cover[class*="hw-"]{
  margin-top:0!important;
  margin-bottom:0!important;
}
/* 编辑器残留的空段落不许在板块间露白 */
.entry-content > p:empty{display:none}

/* =====================================================================
   20. About 页专属（hw-ab- / hw-wide）—— 首页不含这些类，互不影响
   ===================================================================== */
/* 内容限宽 1400px：给 About 各板块加 hw-wide 类 */
.wp-block-group.hw-wide>*{max-width:1400px;margin-left:auto;margin-right:auto}
.wp-block-cover.hw-wide .wp-block-cover__inner-container{max-width:1400px}

/* —— 全屏分栏 Hero：左文右图（图全出血） —— */
.wp-block-group.hw-ab-hero{
  min-height:min(100vh,820px);
  margin-top:0!important;
  margin-bottom:0!important;
  padding:0;
  display:flex;
  align-items:stretch;
  overflow:hidden;
}
.hw-ab-hero .wp-block-columns.hw-ab-grid{
  display:flex;
  flex-wrap:wrap;
  gap:0;
  width:100%;
  max-width:1600px;
  margin:0 auto;
  align-items:stretch;
  box-sizing:border-box;
}
.hw-ab-grid>.wp-block-column{min-width:0;margin:0}
.hw-ab-grid>.hw-ab-text{
  flex:1 1 560px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-sizing:border-box;
  /* 顶部 padding 把内容压到透明页头下方；max(...) 让文字与 1400px 内容区左对齐 */
  padding:230px 56px 110px max(48px,calc((100vw - 1400px)/2))!important;
}
.hw-ab-grid>.hw-ab-img{
  flex:1 1 44%;
  position:relative;
  min-height:460px;
  padding:0;
}
.hw-ab-img .wp-block-image{margin:0;height:100%}
.hw-ab-img .wp-block-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
/* Blocksy 防御：.entry-content h1 会用衬线+黑字盖掉，全部显式钉死 */
.hw-ab-hero :is(h1,h2,h3,h4,h5,h6){
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif!important;
}
.hw-ab-hero .hw-hero-title{
  font-size:clamp(40px,4.6vw,64px)!important;
  line-height:1.06!important;
  letter-spacing:-.02em;
  color:#fff!important;
  margin:0 0 24px!important;
}
.hw-ab-hero .hw-hero-title span{color:var(--hw-amber)!important}
.hw-ab-crumb{
  font-size:13px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(255,255,255,.55)!important;
  margin:0 0 26px!important;
}
.hw-ab-crumb a{color:var(--hw-amber)!important;text-decoration:none!important}
.hw-ab-crumb .hw-ab-sep{margin:0 10px;color:rgba(255,255,255,.35)}
.hw-ab-hero .hw-hero-sub{
  margin-left:0;
  margin-right:0;
  max-width:560px!important;
  color:rgba(255,255,255,.78)!important;
  font-size:17px;
  line-height:1.7!important;
}

/* —— 左文右进度条板块 —— */
.hw-ab-bars{margin-top:8px}
.hw-ab-bar{padding:22px 0;border-bottom:1px solid var(--hw-line)}
.hw-ab-bar:last-child{border-bottom:0}
.hw-ab-bar h4{
  font-size:16.5px;
  font-weight:800;
  color:var(--hw-ink);
  margin:0;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
.hw-ab-bar p{color:var(--hw-muted);font-size:14px;line-height:1.6;margin:8px 0 14px}
.hw-ab-track{height:10px;border-radius:999px;background:var(--hw-line);overflow:hidden}
.hw-ab-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--hw-amber),var(--hw-amber-d))}
.hw-ab-why .hw-btn-ghost .wp-block-button__link{
  border-color:var(--hw-ink);
  color:var(--hw-ink);
}
.hw-ab-why .hw-btn-ghost .wp-block-button__link:hover{background:var(--hw-ink);color:#fff}

@media(max-width:980px){
  .hw-ab-grid>.hw-ab-text{flex:1 1 100%;padding:120px 28px 70px}
  .hw-ab-grid>.hw-ab-img{flex:1 1 100%;min-height:320px}
}

/* —— 深色 CTA 收尾横幅（hw-cta）—— */
.wp-block-group.hw-cta{
  padding:120px 24px 110px;
  text-align:center;
  margin-top:0!important;
  margin-bottom:0!important;
}
.hw-cta>.wp-block-heading{text-align:center}
.hw-cta :is(h1,h2,h3,h4,h5,h6){
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
.hw-cta .wp-block-heading:not(.hw-eyebrow){
  color:#fff;
  font-size:clamp(28px,3.6vw,44px);
  font-weight:900;
  letter-spacing:-.02em;
  line-height:1.12;
  margin-top:10px;
}
.hw-cta .hw-eyebrow{color:var(--hw-amber)}
.hw-cta-sub{
  color:rgba(255,255,255,.7);
  font-size:16.5px;
  max-width:620px;
  margin:18px auto 0;
  line-height:1.65;
}
.hw-cta .wp-block-buttons{
  margin:38px 0 0;
  gap:16px;
  justify-content:center;
}
.hw-cta .wp-block-button{margin:0;width:auto;flex:0 0 auto}
.hw-cta-points{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  max-width:1000px;
  margin:56px auto 0;
}
.hw-cta-points>.wp-block-column{flex:0 0 calc(33.333% - 12px);min-width:0}
.hw-cta-pt{
  color:rgba(255,255,255,.85);
  font-size:15px;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  line-height:1.5;
}
.hw-cta-pt::before{
  content:"";
  flex:0 0 18px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--hw-amber) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='white'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='20%206%209%2017%204%2012'/%3E%3C/svg%3E") center/10px no-repeat;
}
@media(max-width:980px){
  .hw-cta-points>.wp-block-column{flex:0 0 100%}
  .hw-cta-points{gap:12px}
}

.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img,
.ct-dynamic-data img,
.archive .products img,
.wp-block-woocommerce-product-template img,
.wp-block-woocommerce-all-products img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  object-fit:contain !important;
  background:#fff !important;
  padding:8px;
  box-sizing:border-box;
}

.woocommerce ul.products li.product,
.wp-block-woocommerce-product-template .wc-block-product,
.archive .product{
  background:#fff;
  border:1px solid var(--hw-line,#E4E9ED);
  border-radius:14px;
  overflow:hidden;
  transition:transform .18s ease,box-shadow .18s ease;
}
.woocommerce ul.products li.product:hover,
.wp-block-woocommerce-product-template .wc-block-product:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(11,26,36,.10);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wp-block-woocommerce-product-template .wc-block-components-product-name{
  font-weight:600;
  line-height:1.35;
  min-height:2.7em;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

@media(min-width:690px){
  .woocommerce ul.products{grid-template-columns:repeat(3,1fr) !important}
}
@media(max-width:689px){
  .woocommerce ul.products{grid-template-columns:repeat(2,1fr) !important}
}

.woocommerce-result-count,
.woocommerce-notices-wrapper .woocommerce-info{display:none!important}

.wp-block-woocommerce-product-template img[src*="placehold"],
.woocommerce ul.products li.product img[src*="placehold"]{
  background:#F2F5F7 !important;
}

body.single-product .woocommerce-product-gallery__wrapper img,
body.single-product .woocommerce-product-gallery__image img,
body.single-product .woocommerce div.product div.images img,
body.single-product .pdp-gal .wp-block-image img,
body.single-product .pdp-overview-img img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  object-fit:contain !important;
  background:#fff !important;
  border-radius:12px;
}

body.single-product .pdp-heroimg img{
  width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  object-fit:contain !important;
  background:#fff !important;
  border-radius:12px;
}

body:not(.single-product):not(.home) main .pdp-heroimg img,
body:not(.single-product):not(.home) main .pdp-overview-img img{
  aspect-ratio:auto !important;
  object-fit:cover !important;
  background:transparent !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li img,
body.single-product .flex-control-thumbs img{
  aspect-ratio:1/1 !important;
  object-fit:contain !important;
  background:#fff !important;
  border:1px solid var(--hw-line,#E4E9ED);
  border-radius:8px;
  padding:3px;
  box-sizing:border-box;
  opacity:1 !important;
}
.flex-control-thumbs .flex-active img{
  border-color:var(--hw-amber,#F5821F) !important;
}

.woocommerce div.product .product_meta{
  border-top:1px solid var(--hw-line,#E4E9ED);
  padding-top:10px;
  font-size:13px;
  color:var(--hw-muted,#6B7C88);
}

.hw-catbanner{background:var(--hw-ink,#0B1A24);overflow:hidden;margin:0 0 40px}
.hw-catbanner .hw-cb-wrap{max-width:1240px;margin:0 auto;padding:0 24px;min-height:300px;display:flex;align-items:center;gap:40px}
.hw-catbanner .hw-cb-txt{flex:1;color:#fff;padding:46px 0}
.hw-catbanner .hw-cb-eyebrow{font-size:12.5px;letter-spacing:.22em;color:var(--hw-amber,#F5821F);font-weight:700;margin:0 0 12px}
.hw-catbanner .hw-cb-title{font-size:clamp(28px,4vw,46px);font-weight:800;line-height:1.15;margin:0 0 14px;letter-spacing:-.02em;color:#fff!important}
.hw-catbanner .hw-cb-desc{color:rgba(255,255,255,.82);font-size:16px;margin:0 0 22px;max-width:520px}
.hw-catbanner .hw-cb-btns{display:flex;gap:14px;flex-wrap:wrap}
.hw-catbanner .hw-cb-b1{background:var(--hw-amber,#F5821F);color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:13px 26px;border-radius:10px;transition:.2s}
.hw-catbanner .hw-cb-b1:hover{background:var(--hw-amber-d,#d96d0c);transform:translateY(-2px)}
.hw-catbanner .hw-cb-b2{color:#fff;text-decoration:none;font-weight:700;font-size:14px;padding:13px 26px;border-radius:10px;border:1px solid rgba(255,255,255,.4);transition:.2s}
.hw-catbanner .hw-cb-b2:hover{background:rgba(255,255,255,.12)}
.hw-catbanner .hw-cb-img{flex:0 0 420px;align-self:stretch;display:flex;align-items:flex-end}
.hw-catbanner .hw-cb-img img{width:100%;aspect-ratio:1/1;object-fit:contain;filter:drop-shadow(0 24px 40px rgba(0,0,0,.45));margin-bottom:-8px}
@media(max-width:820px){.hw-catbanner .hw-cb-img{display:none}}
.woocommerce .term-description .hw-catbanner{display:block}

.ct-sidebar .widget-title{font-size:13px!important;letter-spacing:.14em;color:var(--hw-muted,#6B7C88);font-weight:700!important;margin:0 0 14px!important}
.ct-sidebar .widget{background:#F6F8FA;border:1px solid var(--hw-line,#E4E9ED);border-radius:14px;padding:22px 20px;margin-bottom:22px}
.ct-sidebar .widget a{text-decoration:none}
.ct-sidebar .widget_product_categories ul{list-style:none;margin:0;padding:0}
.ct-sidebar .widget_product_categories li{margin:0 0 4px}
.ct-sidebar .widget_product_categories li a{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;border-radius:8px;color:var(--hw-ink,#0B1A24);font-size:14.5px;font-weight:500;transition:.15s}
.ct-sidebar .widget_product_categories li a:hover{background:#fff;color:var(--hw-amber,#F5821F)}
.ct-sidebar .widget_product_categories .count{font-size:12px;color:var(--hw-muted,#6B7C88)}
.ct-sidebar .widget_product_categories .current-cat > a{background:var(--hw-ink,#0B1A24);color:#fff;font-weight:600}
.ct-sidebar .widget_product_categories .current-cat > a .count{color:rgba(255,255,255,.7)}
.ct-sidebar .widget_product_categories .children{margin-left:16px!important}
.ct-sidebar .widget_product_categories .children li a{position:relative;padding:7px 12px 7px 18px;font-size:13.5px;font-weight:400;color:#4a5a66}
.ct-sidebar .widget_product_categories .children li a::before{content:"";position:absolute;left:2px;top:50%;transform:translateY(-50%);width:5px;height:5px;border-radius:50%;background:#c3cdd5}
.ct-sidebar .widget_product_categories .children li a:hover::before{background:var(--hw-amber,#F5821F)}
.ct-sidebar .widget_text .hw-quote-card{background:var(--hw-ink,#0B1A24);color:#fff;border-radius:12px;padding:18px;font-size:13.5px;line-height:1.6}
.ct-sidebar .widget_text .hw-quote-card strong{color:var(--hw-amber,#F5821F)}
.ct-sidebar .widget_text .hw-quote-card a{display:inline-block;margin-top:10px;color:#fff;text-decoration:none;font-weight:700;border-bottom:2px solid var(--hw-amber,#F5821F);padding-bottom:2px;font-size:13px}
