/* 首页（2026-11-06 John 批准的设计稿）。结构在 template-parts/home-v2.php。品牌色：#333 #FFF #FAF8F5 #777 #980003 */
.hm{--h-head:"Sofia Pro","sofia pro M",Arial,sans-serif;--h-text:"Open Sans",Arial,sans-serif;--h-line:rgba(51,51,51,.14);--h-soft:#FAF8F5;}
.hm *{box-sizing:border-box;}
.hm .k4u-cover{display:block;width:100%;height:100%;object-fit:cover;}
.h3-sec{padding:56px 0;background:#fff;}
.h3-sec--soft{background:var(--h-soft);}
.h3-sec--tight{padding:0 0 56px;}
.h3-center{text-align:center;}
.h3-red{color:#980003;font-weight:600;}
.hm .h3-sub,.hm .h3-sub p{margin:8px 0 0;font-family:var(--h-text);font-size:16px;line-height:24px;color:#777;}
.hm .h3-sub--tight{margin-top:4px;}
.hm .h3-link{display:inline-block;font-family:var(--h-text);font-size:15px;line-height:22px;font-weight:600;color:#333 !important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;white-space:nowrap;}
.hm a.h3-pill{display:inline-flex;align-items:center;justify-content:center;height:48px;padding:0 24px;border:1px solid #333;border-radius:999px;background:#333;color:#fff !important;font-family:var(--h-text);font-size:15px;font-weight:600;text-decoration:none;white-space:nowrap;}
.hm a.h3-pill--line{background:transparent;color:#333 !important;}
.hm a.h3-pill--line:hover{background:rgba(51,51,51,.05);}
.h3-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 24px;margin-bottom:24px;}
.h3-head__r{display:flex;align-items:center;gap:10px;}
.h3-head__r .h3-link{margin-right:6px;}
.hm button.h3-arrow{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;-webkit-appearance:none;appearance:none;border:1px solid rgba(51,51,51,.25);border-radius:50%;background:#fff;color:#333;cursor:pointer;}
.hm button.h3-arrow:hover{border-color:#333;}
.hm .h3-card__t,.hm .h3-card__t a{margin:0;font-family:var(--h-head);font-size:18px;line-height:24px;font-weight:700;color:#333;text-decoration:none;}
.hm .h3-card__x,.hm .h3-card__x p{margin:4px 0 0;font-family:var(--h-text);font-size:14px;line-height:21px;color:#777;}

/* 首屏 */
.h3-hero{background:#fff;}
.h3-hero .k4u-hero__inner{position:relative;}
.h3-stage{position:relative;}
.h3-stage .k4u-hero__media-desktop img{min-height:520px;}
.h3-stage__con{position:absolute;inset:0;z-index:2;display:flex;align-items:center;}
.h3-stage__con .container{width:100%;}
.h3-panel{max-width:560px;padding:32px;border-radius:12px;background:rgba(255,255,255,.92);}
.hm p.h3-eyebrow{margin:0 0 10px;font-family:var(--h-text);font-size:12px;line-height:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#777;}
.hm .h3-h1{margin:0;font-family:var(--h-head);font-size:40px;line-height:46px;font-weight:700;letter-spacing:-.01em;color:#333;}
.hm p.h3-lead{margin:12px 0 0;font-family:var(--h-text);font-size:16px;line-height:24px;color:#333;}
.h3-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;}

/* 信任条 */
.h3-trust{background:#333;}
.h3-trust ul{display:grid;grid-template-columns:repeat(5,auto);justify-content:space-between;gap:12px 20px;margin:0;padding:16px 0;list-style:none;}
.h3-trust li{display:flex;align-items:center;gap:10px;margin:0;}
.h3-trust svg{flex:none;}
.hm .h3-trust li span{font-family:var(--h-text);font-size:14px;line-height:20px;font-weight:600;color:#fff;}

/* Explore */
.h3-tabs{display:flex;gap:8px;margin:18px 0 20px;}
.hm button.h3-tab{height:40px;padding:0 18px;-webkit-appearance:none;appearance:none;border:1px solid rgba(51,51,51,.25);border-radius:999px;background:#fff;color:#333;font-family:var(--h-text);font-size:14px;font-weight:600;cursor:pointer;}
.hm button.h3-tab.is-on{border-color:#333;background:#333;color:#fff;}
.h3-explore{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr);gap:16px;align-items:stretch;}
.h3-plan{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--h-line);border-radius:12px;background:var(--h-soft);}
.hm .h3-plan>img{flex:none;height:190px;}
.h3-plan__in{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;}
.h3-plan__in .h3-link{margin-top:8px;white-space:normal;}
.h3-panels{min-width:0;}
.h3-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 32px) / 3);gap:16px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
.h3-rail[hidden]{display:none;}
.h3-rail::-webkit-scrollbar{display:none;}
.h3-rail>*{scroll-snap-align:start;min-width:0;}
.h3-card{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--h-line);border-radius:12px;background:#fff;padding-bottom:16px;}
.h3-card__img{display:block;aspect-ratio:4/3;overflow:hidden;}
.h3-card .h3-card__t{padding:14px 16px 0;}
.h3-card .h3-card__x{padding:0 16px;}
.h3-card__f{margin-top:auto;padding:12px 16px 0;}
.hm p.h3-card__deal{margin:0;font-family:var(--h-text);font-size:12px;line-height:16px;font-weight:600;letter-spacing:.04em;color:#980003;}
.hm p.h3-card__p{margin:2px 0 8px;font-family:var(--h-text);font-size:14px;line-height:21px;color:#333;}
.hm .h3-card__p b{font-family:var(--h-head);font-size:18px;font-weight:700;}

/* 样门 */
.h3-sample{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;padding:20px 28px;border-radius:12px;background:var(--h-soft);}
.h3-sample__doors{flex:none;display:flex;gap:8px;}
.h3-sample__doors img{display:block;width:46px;height:66px;object-fit:cover;border:1px solid rgba(51,51,51,.18);border-radius:3px;background:#fff;}
.h3-sample__t{flex:1 1 320px;min-width:0;}
.hm .h3-h18{margin:0;font-family:var(--h-head);font-size:18px;line-height:24px;font-weight:700;color:#333;}
.hm .h3-sample__t p{margin:4px 0 0;font-family:var(--h-text);font-size:14px;line-height:21px;color:#777;}

/* 配件 */
.h3-rail--acc{grid-auto-columns:calc((100% - 80px) / 5.5);}
.hm a.h3-acc{display:block;text-decoration:none;}
.h3-acc img{aspect-ratio:1;height:auto !important;border-radius:12px;background:#fff;}
.hm .h3-acc span{display:block;margin-top:10px;font-family:var(--h-text);font-size:16px;line-height:22px;font-weight:600;text-align:center;color:#333;}

/* 真实案例 */
.h3-rail--proj{grid-auto-columns:calc((100% - 32px) / 3);}
.hm a.h3-proj{display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--h-line);border-radius:12px;background:#fff;text-decoration:none;}
.h3-proj__img{display:block;aspect-ratio:4/3;overflow:hidden;}
.h3-proj__b{display:flex;flex-direction:column;gap:8px;padding:14px 16px 16px;}
.h3-proj__m{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;}
.hm .h3-proj__m i{padding:3px 10px;border-radius:999px;background:rgba(51,51,51,.07);font-family:var(--h-text);font-size:13px;line-height:18px;font-style:normal;color:#333;}
.hm .h3-proj__m em{font-family:var(--h-text);font-size:13px;line-height:18px;font-style:normal;color:#777;}
.hm .h3-proj__b b{font-family:var(--h-head);font-size:18px;line-height:24px;font-weight:700;color:#333;}

/* Why */
.h3-why{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:center;}
.h3-why__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px;}
.h3-why__i{display:flex;gap:14px;align-items:flex-start;}
.h3-why__ico{flex:none;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--h-soft);}
.h3-why__ico svg,.h3-why__ico img{display:block;max-width:26px;max-height:26px;}
.h3-why__img{aspect-ratio:4/3;overflow:hidden;border-radius:12px;}

/* 承诺 */
.h3-promise{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px;}
.h3-promise__img{aspect-ratio:4/3;overflow:hidden;margin-bottom:12px;border-radius:12px;}
.hm .h3-promise a{color:#333 !important;text-decoration:underline;text-underline-offset:3px;}

/* 整体方案 */
.h3-steps{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:40px;align-items:start;}
.h3-steps__in a.h3-pill{margin-top:20px;}
.h3-steps__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.h3-step{padding:22px;background:var(--h-soft);border-radius:12px;clip-path:polygon(0 0,calc(100% - 28px) 0,100% 28px,100% 100%,0 100%);}
.hm .h3-step__n{display:block;margin-bottom:10px;font-family:var(--h-head);font-size:40px;line-height:44px;font-weight:700;color:transparent;-webkit-text-stroke:1px #333;}

/* FAQ */
.h3-faq{max-width:880px;margin:0 auto;}
.h3-faq h2{margin-bottom:16px !important;}
.h3-faq details{border-bottom:1px solid var(--h-line);}
.hm .h3-faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;list-style:none;font-family:var(--h-head);font-size:17px;line-height:24px;font-weight:600;color:#333;cursor:pointer;}
.h3-faq summary::-webkit-details-marker{display:none;}
.h3-faq summary i{position:relative;flex:none;width:14px;height:14px;}
.h3-faq summary i::before,.h3-faq summary i::after{content:"";position:absolute;left:0;top:6px;width:14px;height:1.5px;background:#333;}
.h3-faq summary i::after{transform:rotate(90deg);}
.h3-faq details[open] summary i::after{display:none;}
.h3-faq .h3-card__x{padding:0 0 16px;}

/* 展厅 */
.h3-show{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center;}
.h3-show__img{aspect-ratio:16/10;overflow:hidden;border-radius:12px;}
.h3-show a.h3-pill{margin-top:20px;}
.h3-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px;}
.h3-info article{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:12px;background:#fff;}
.h3-info__ico{flex:none;width:28px;}
.h3-info__ico svg,.h3-info__ico img{display:block;max-width:28px;height:auto;}
.hm .h3-info .h3-card__x,.hm .h3-info .h3-card__x a{color:#777;word-break:break-word;}
.h3-map{margin-top:16px;overflow:hidden;border-radius:12px;line-height:0;}
.hm .h3-map iframe{display:block;width:100% !important;max-width:100%;height:360px !important;border:0;}

@media (max-width:1100px){
  .h3-trust ul{grid-template-columns:repeat(3,auto);justify-content:start;}
  .h3-explore{grid-template-columns:minmax(0,1fr);}
  .h3-plan{flex-direction:row;}
  .hm .h3-plan>img{width:40%;height:auto;}
  .h3-promise,.h3-info{grid-template-columns:repeat(2,minmax(0,1fr));}
  .h3-steps{grid-template-columns:minmax(0,1fr);}
}
@media (max-width:767px){
  .h3-sec{padding:40px 0;}
  .h3-sec--tight{padding:0 0 40px;}
  .h3-stage .k4u-hero__media-desktop img{min-height:0;}
  .h3-stage__con{align-items:flex-start;padding-top:16px;}
  .h3-panel{max-width:none;padding:18px;}
  .hm .h3-h1{font-size:30px;line-height:36px;}
  .h3-btns a.h3-pill{flex:1 1 100%;}
  .h3-trust ul{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hm .h3-trust li span{font-size:13px;line-height:18px;}
  .h3-plan{flex-direction:column;}
  .hm .h3-plan>img{width:100%;height:170px;}
  .h3-rail,.h3-rail--proj{grid-auto-columns:78%;}
  .h3-rail--acc{grid-auto-columns:42%;}
  .hm button.h3-arrow{display:none;}
  .h3-sample{padding:18px;}
  .h3-sample a.h3-pill{width:100%;}
  .h3-why,.h3-show{grid-template-columns:minmax(0,1fr);gap:24px;}
  .h3-why__list,.h3-steps__grid,.h3-info{grid-template-columns:minmax(0,1fr);}
  .h3-promise{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .hm .h3-map iframe{height:280px !important;}
}

.h3-tabs{align-items:center;}
.h3-tabs__nav{display:flex;gap:10px;margin-left:auto;}
.h3-tabs__nav[hidden]{display:none;}

/* 2026-11-12 首页首屏宽屏错位（John 大显示器截图）：
   背景图（2560×676，圆形照片和门店都画在图里）总是铺满整宽、按宽度缩放，而白色文字卡片在最宽 1440px 的居中容器里，
   屏幕越宽两者越错开：2560px 卡片盖住中间圆形约 43px，3440px 约 100px，3816px 约 127px。
   改法（≥1280px）：卡片的右边按“中间圆形左边缘”定位（图里在 43.3% 处；图最矮 520px，宽度不到 1969px 时两边被裁），
   中间留 24px；卡片宽度和字号在宽屏上按比例放大一点，不再一大片空白。<1280px 维持原样。颜色不变。 */
@media (min-width:1280px){
  .h3-stage__con .container{max-width:none !important;padding-left:0 !important;padding-right:0 !important;}
  .h3-stage__con{
    --k4u-edge:calc(50% - 0.0668 * max(100%, 1969px));
    --k4u-pw:min(clamp(460px, 24%, 920px), calc(var(--k4u-edge) - 56px));
  }
  .h3-stage__con .h3-panel{box-sizing:border-box;width:var(--k4u-pw);max-width:none;margin-left:calc(var(--k4u-edge) - 24px - var(--k4u-pw));padding:clamp(32px, 1.5vw, 56px);}
}
@media (min-width:1969px){
  .hm .h3-stage__con .h3-h1{font-size:clamp(40px, 2.1vw, 60px);line-height:1.15;}
  .hm .h3-stage__con p.h3-lead{font-size:clamp(16px, .8vw, 22px);line-height:1.5;}
  .hm .h3-stage__con p.h3-eyebrow{font-size:clamp(12px, .5vw, 16px);line-height:1.4;}
}
/* 992–1279px（常见笔记本 / 平板横屏）：没有空间把卡片放在圆形左边，原来卡片会盖住圆形。
   把背景图整体往左挪 313px（只露出图的中段），中间圆形固定在离左边约 540px 处；卡片 460px 宽、左边 32px，中间留约 48px。 */
@media (min-width:992px) and (max-width:1279.98px){
  .h3-stage .k4u-hero__media-desktop img{object-position:-313px 50%;}
  .h3-stage__con .container{max-width:none !important;padding-left:0 !important;padding-right:0 !important;}
  .h3-stage__con .h3-panel{box-sizing:border-box;width:460px;max-width:none;margin-left:32px;}
}
/* 2026-11-12 笔记本反馈：
   ① 卡片在 992–1968px 变窄后，两个按钮换成两行。这个范围里按钮不换行、字号 14px、左右内边距 14px，一行放得下。
   ② 两张横幅高度不一样：首图最矮 520px（两边裁），€100 横幅按原比例（992–1440px 只有 258–376px 高）。
      两张原图比例相同（2560×676），让 €100 横幅也最矮 520px、两边裁；裁的时候保留右边（文字和按钮在图的 66%–94%），
      按钮热区按裁后的位置重新算（原来在图的 72.5% 处、宽 16%）。≥1969px 不裁，和原来一样。 */
@media (min-width:992px) and (max-width:1968.98px){
  .h3-stage__con .h3-btns{flex-wrap:nowrap;gap:8px;}
  .hm .h3-stage__con a.h3-pill{padding:0 14px;font-size:14px;white-space:nowrap;}
}
@media (min-width:992px){
  .k4u-promo-banner{overflow:hidden;--k4u-iw:max(100%, 1969px);}
  .k4u-promo-banner .k4u-promo-banner__img{height:auto;min-height:520px;object-fit:cover;object-position:100% 50%;}
  .k4u-promo-banner .k4u-promo-banner__cta{left:calc(100% - 0.275 * var(--k4u-iw));width:calc(0.16 * var(--k4u-iw));}
}
