/* ===== css/home.css
   模块组成：site-review.css + home-about.css + home-product.css
   ===== */
/* --- 客户评审改稿：首页品牌区（原 site-review） --- */
.homepage .about-screen .about-heading h2{font-weight:400}
.homepage .about-screen .home-about-name{display:block}
.homepage .about-screen .home-about-name{font-weight:600}
.homepage .about-screen .about-mission{font-weight:400;max-width:15em}
.homepage .about-screen .about-mission .accent{display:block;font-weight:400;white-space:nowrap}
@media(min-width:1024px){
 .homepage .about-screen{background:#080b10}
 .homepage .about-screen .backdrop{inset:auto;left:14%;top:7%;width:86%;height:86%;max-width:none;object-fit:contain;object-position:right center;mask-image:linear-gradient(90deg,transparent,#000 12%,#000 96%,transparent),linear-gradient(transparent,#000 10%,#000 90%,transparent);mask-composite:intersect}
}

/* Homepage about copy, matched to Figma 2103:1970. */
.homepage .about-screen .about-copy{width:100%;max-width:650px}
.homepage .about-screen .about-heading h2{margin:0;line-height:1.4;font-weight:700}
.homepage .about-screen .home-about-expertise{margin-top:20px;font-family:"Microsoft YaHei",Arial,sans-serif;line-height:1.4;font-weight:400}
.homepage .about-screen .home-about-expertise p{margin:0;font:inherit}
.homepage .about-screen .about-mission{margin:10px 0 0;max-width:none;font-family:"Microsoft YaHei",Arial,sans-serif;line-height:1.4;font-weight:400}
.homepage .about-screen .about-mission .accent{display:inline;font-weight:400;white-space:nowrap}
.homepage .about-screen .about-cta{margin-top:40px}
@media(min-width:768px){
 .homepage .about-screen .about-cta{margin-top:56px}
}

html.paged .homepage .about-screen>.about-inner{display:flex;align-items:center;padding-block:0}

/* Align the homepage brand scene with the desktop navigation visual region. */
@media(min-width:1200px){
 .homepage .about-screen .backdrop{left:calc(14% - clamp(0px,calc(20vw - 280px),104px));top:calc(7% - 24px)}
}

/* Homepage product scene: brightness only. */
.homepage #screen-2>.backdrop{filter:brightness(1.2)}
.homepage #screen-2::after{background:none}

/* 首屏文案沿用既有布局与入场。 */
.hero-copies{display:grid;grid-template-columns:minmax(0,1fr)}
.hero-copy{grid-area:1/1;min-width:0;opacity:0;visibility:hidden;translate:0 24px;transition:opacity 640ms var(--ease-out),translate 640ms var(--ease-out),visibility 0s linear 640ms}
.hero-copy.is-current{opacity:1;visibility:visible;translate:none;transition-delay:0s,0s,0s}
/* 文案逐项入场：.is-entering 只负责把元素瞬间压回起点，移除后由过渡带回可见态，
   终态写在样式表里，动画被任何脚本打断都不会把某一行卡在 opacity 0。 */
.hero-copy [data-reveal]{opacity:1;transform:none;clip-path:inset(0);transition:opacity 640ms var(--ease-out),transform 640ms var(--ease-out),clip-path 640ms var(--ease-out);transition-delay:calc(800ms + var(--reveal-order,0) * 90ms)}
.hero-copy.is-entering [data-reveal]{opacity:0;transform:translateY(24px);clip-path:inset(0 0 100% 0);transition:none}
@media(prefers-reduced-motion:reduce){.hero-copy [data-reveal]{transition:none}}

/* 背景独立裁切；前景排版不参与横向切换。 */
.hero-carousel{position:absolute;inset:0;z-index:-2;overflow:hidden;touch-action:pan-y pinch-zoom;cursor:default}
.hero-carousel .swiper-wrapper{position:relative;display:flex;width:100%;height:100%;z-index:1;box-sizing:content-box;transition-property:transform;transition-timing-function:ease;transform:translate3d(0,0,0)}
.hero-carousel .swiper-slide{position:relative;flex-shrink:0;width:100%;height:100%;overflow:hidden;transition-property:transform}
.hero-carousel .slide-inner{position:absolute;inset:0;width:100%;height:100%;transform-origin:center;transition-property:transform;transition-timing-function:ease}
.hero-carousel .backdrop{z-index:0}
.hero-carousel .hero-video{z-index:1}
.screen.is-visible .hero-carousel .hero-backdrop:not(video){animation:none;scale:1}
.hero-carousel .swiper-slide:not(:first-child) .hero-backdrop{object-position:center}
.hero-screen .hero-inner{pointer-events:none}
.hero-screen .hero-inner :is(a,button){pointer-events:auto}
.hero-play{display:none}

@media(prefers-reduced-motion:reduce){
 .hero-carousel .swiper-wrapper,.hero-carousel .swiper-slide,.hero-carousel .slide-inner{transition:none!important}
}

/* ===== 首屏轮播分页器 + 切换箭头（对齐参考站 demo.68team.com/rl 首屏） =====
   左下：01 / 05 计数；右下：两个 56px 方形箭头。拖拽已禁用，只能点箭头切换。 */
.hero-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;min-width:0}
/* 分屏时与底部"方案咨询"条同排（48px），改一个值即可整体上移/下移 */
/* In paged mode .hero-bar and .consult are both pinned to the container's bottom-right
   (bottom:48px). hero-bar uses justify-content:space-between, so the two 56px arrows
   (132px including the 20px gap) land flush right, straight on top of the 200px wide
   consult button, and hero-bar's z-index:3 paints over it. Reserve the button's width
   plus a 32px gap on the right so the arrows stop to its left; button size, colours and
   hover treatment are untouched. */
html.paged .hero-bar{position:absolute;left:0;right:calc(min(200px,100%) + 32px);bottom:48px;margin:0;pointer-events:none;z-index:3}
html.paged .hero-bar>*{pointer-events:auto}

.hero-count{display:flex;align-items:baseline;gap:7px;font-family:var(--font-body);font-weight:400;line-height:1;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:var(--color-paper);text-shadow:0 1px 4px rgba(0,0,0,.55)}
.hero-count-sep{opacity:.72}

.hero-nav{display:flex;gap:20px}
.hero-arrow{width:56px;height:56px;flex:none;border-radius:4px;background:var(--color-paper);color:var(--color-ink);display:grid;place-items:center;transition:background 300ms var(--ease-out)}
.hero-arrow img{display:block;width:22px;height:22px}
.hero-arrow:first-child img{rotate:180deg}
.hero-arrow:hover,.hero-arrow:focus-visible{background:var(--color-brand)}
.hero-arrow[disabled]{background:rgba(255,255,255,.26);pointer-events:none;cursor:default}
.hero-arrow[disabled] img{opacity:.5}

@media(max-width:767px){
 .hero-bar{gap:16px}
 .hero-nav{gap:12px}
 .hero-arrow{width:48px;height:48px}
 .hero-arrow img{width:17px;height:17px}
 
 .hero-inner{padding-top:var(--hero-copy-top,143px)}
 .hero-screen .hero-copies{position:static;margin-bottom:auto}
 
 .homepage .about-screen .about-heading h2 {
        line-height: 1.2;
    }
    .homepage .about-screen .home-about-expertise {
        line-height: 1.2;
        margin-top: 15px;
    }
    .homepage .about-screen .about-mission {
        line-height: 1.2;
    }
    .homepage .about-screen .about-cta {
        margin-top: 20px;
    }
    
   .hero-play{display:grid;position:absolute;left:50%;top:calc(var(--hero-copy-top,143px) + 122px);translate:-50% -50%;z-index:2;place-items:center;width:60px;height:60px;padding:0;border:none;background:none;cursor:pointer;transition:opacity .35s var(--ease-out),scale .35s var(--ease-out),background .2s}
.hero-play img{display:block;width:100%;height:100%;translate:2px 0}
.hero-play:focus-visible{outline:2px solid var(--color-brand);outline-offset:3px}
.hero-play.is-hidden{opacity:0;scale:.88;pointer-events:none}
/* Before the play tap the hero must show the mobile still image (.mimg), not the video's
   first frame; the video only fades in once it is actually playing. */
.hero-screen .hero-video{opacity:0}
.hero-screen .hero-video.is-playing{opacity:1}


.hero-inner{padding-top:calc(var(--hero-copy-top,143px) + 264px);padding-bottom:28px;min-height:calc(100svh - 1px - 200px)}   /* 首屏高度对齐中文站：英文副标题比中文多占一行（+24），故 padding 由 +288 减到 +264；min-height 同步减 200，避免被 100svh 撑满一屏 */

}
@media print{.hero-bar{display:none!important}}
