/* index.css - 首页专用样式(叙事版式:方案→产品→案例→服务→实力) */

/* ========== Hero 轮播 ========== */
.hero{position:relative;height:640px;margin-top:var(--r-nav);overflow:hidden;background:#000}
.hero-swiper{width:100%;height:100%}
.hero-swiper .swiper-slide{position:relative;display:flex;align-items:center;justify-content:center}
.hero-swiper .slide-bg{position:absolute;inset:0;background-size:cover;background-position:center;z-index:1}
.hero-swiper .slide-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.28) 100%)}
.hero-swiper .slide-content{position:relative;z-index:2;text-align:left;color:#fff;max-width:var(--w-container);width:100%;padding:0 var(--w-pad)}
.hero-swiper .slide-eyebrow{
  font-family:var(--font-en);font-size:13px;font-weight:500;
  letter-spacing:var(--ls-eyebrow);text-transform:uppercase;
  color:rgba(255,255,255,.75);margin-bottom:18px;
  display:flex;align-items:center;gap:14px;
}
.hero-swiper .slide-eyebrow::before{content:"";width:40px;height:2px;background:var(--c-red)}
.hero-swiper .slide-title{font-size:var(--fz-hero);font-weight:700;line-height:1.18;margin-bottom:18px;letter-spacing:.04em}
.hero-swiper .slide-subtitle{font-size:18px;font-weight:300;letter-spacing:.32em;opacity:.92;margin-bottom:40px}
.hero-swiper .slide-cta{
  display:inline-flex;align-items:center;padding:15px 40px;
  background:var(--c-red);color:#fff;
  font-family:var(--font-heavy);font-size:19px;font-weight:700;letter-spacing:.2em;
  border-radius:12px;transition:background var(--tr),color var(--tr),padding-right var(--tr),border-color var(--tr);
}
.hero-swiper .slide-cta:hover{background:#fff;color:var(--c-red);padding-right:50px}
.hero-swiper .slide-cta .arrow{margin-left:10px;display:inline-block;transition:transform var(--tr)}
.hero-swiper .slide-cta:hover .arrow{transform:translateX(4px)}

/* 轮播分页器 */
.hero .swiper-pagination-bullet{width:10px;height:10px;background:rgba(255,255,255,.5);opacity:1;transition:all var(--tr)}
.hero .swiper-pagination-bullet-active{background:var(--c-red);width:30px;border-radius:5px}

/* ========== 01 场景方案 ========== */
.section-scenario{padding:96px 0;background:#fff}
.swiper-scenario{overflow:hidden;padding:0 var(--w-pad);max-width:calc(var(--w-container) + 48px);margin:0 auto}
.scenario-card{
  display:block;background:#fff;border-radius:var(--r-card);overflow:hidden;
  border:1px solid var(--c-gray-line);box-shadow:var(--shadow-card);
  transition:transform var(--tr),box-shadow var(--tr),border-color var(--tr);
  text-decoration:none;color:inherit;
}
.scenario-card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-6px);border-color:#dedee0;color:inherit}
.scenario-card .card-img{position:relative;padding-top:62%;background:#eee;overflow:hidden}
.scenario-card .card-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.scenario-card:hover .card-img img{transform:scale(1.06)}
.scenario-card .card-body{padding:24px 20px;text-align:center;position:relative}
.scenario-card .card-body::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:0;height:2px;background:var(--c-red);transition:width var(--tr);
}
.scenario-card:hover .card-body::before{width:44px}
.scenario-card .card-title{font-size:15px;font-weight:600;color:var(--c-text);margin-bottom:8px;letter-spacing:.02em}
.scenario-card .card-subtitle{font-size:12px;color:var(--c-gray-text);letter-spacing:.14em}

/* ========== 02 产品中心 ========== */
.section-product{padding:96px 0;background:var(--c-gray-bg)}
.swiper-product{overflow:hidden;padding:0 var(--w-pad);max-width:calc(var(--w-container) + 48px);margin:0 auto}
.swiper-product .swiper-wrapper{align-items:stretch}
.swiper-product .swiper-slide{height:auto}
.product-card{
  display:flex;flex-direction:column;height:100%;background:#fff;border-radius:var(--r-card);overflow:hidden;
  border:1px solid var(--c-gray-line);box-shadow:var(--shadow-card);
  transition:transform var(--tr),box-shadow var(--tr),border-color var(--tr);
  text-decoration:none;color:inherit;
}
.product-card:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-6px);border-color:#dedee0;color:inherit}
.product-card .card-img{position:relative;padding-top:100%;background:#fff;overflow:hidden}
.product-card .card-img img{position:absolute;inset:0;width:100%;height:100%;padding:22px;object-fit:contain;transition:transform .5s ease}
.product-card:hover .card-img img{transform:scale(1.06)}
.product-hover-panel{
  position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;
  padding:24px;background:rgba(200,16,46,.84);color:#fff;text-align:left;
  opacity:0;visibility:hidden;transform:translateX(-100%);pointer-events:none;
  transition:transform .46s cubic-bezier(.22,.61,.36,1),opacity .28s ease,visibility .46s;
}
.product-hover-label{font-size:11px;font-weight:600;line-height:1.4;letter-spacing:0;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.55)}
.product-hover-panel p{margin-top:15px;font-size:13px;line-height:1.75;letter-spacing:0;color:#fff}
.product-hover-link{display:inline-flex;align-items:center;gap:7px;margin-top:auto;font-size:12px;font-weight:600;line-height:1.4;letter-spacing:0;color:#fff}
.product-hover-link span{display:inline-block;transition:transform var(--tr)}
@media (hover:hover) and (pointer:fine){
  .product-card:hover .product-hover-panel,
  .product-card:focus-visible .product-hover-panel{opacity:1;visibility:visible;transform:translateX(0)}
  .product-card:hover .product-hover-link span,
  .product-card:focus-visible .product-hover-link span{transform:translateX(4px)}
}
@media (max-width:1024px){
  .product-hover-panel{padding:16px}
  .product-hover-label{font-size:10px;padding-bottom:7px}
  .product-hover-panel p{margin-top:9px;font-size:12px;line-height:1.6}
  .product-hover-link{font-size:11px}
}
@media (max-width:768px){
  .product-card.is-mobile-expanded .product-hover-panel{opacity:1;visibility:visible;transform:translateX(0)}
  .product-card.is-mobile-expanded .card-img img{transform:scale(1.06)}
  .product-card.is-mobile-expanded .product-hover-link span{transform:translateX(4px)}
  .product-hover-link{display:flex;justify-content:center}
}
.product-card .card-body{display:flex;flex:1;flex-direction:column;justify-content:center;padding:18px 16px 20px;text-align:center;border-top:1px solid #f1f1f2}
.product-card .card-title{font-size:14px;font-weight:600;color:var(--c-text);margin-bottom:5px;letter-spacing:.02em}
.product-card .card-subtitle{font-size:11px;font-family:var(--font-en);color:var(--c-gray-text);letter-spacing:.2em;text-transform:uppercase}

/* 通用轮播左右箭头(覆盖Swiper默认) */
.swiper-scenario .swiper-button-prev,
.swiper-product .swiper-button-prev,
.swiper-cases .swiper-button-prev{left:8px;color:#8a8a8f;width:38px;height:38px;background:#fff;border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.12);transition:all var(--tr)}
.swiper-scenario .swiper-button-next,
.swiper-product .swiper-button-next,
.swiper-cases .swiper-button-next{right:8px;color:#8a8a8f;width:38px;height:38px;background:#fff;border-radius:50%;box-shadow:0 2px 10px rgba(0,0,0,.12);transition:all var(--tr)}
.swiper-scenario .swiper-button-prev:hover,
.swiper-scenario .swiper-button-next:hover,
.swiper-product .swiper-button-prev:hover,
.swiper-product .swiper-button-next:hover{background:#fff;color:var(--c-red);width:52px}
.swiper-product .swiper-button-prev:hover{background:#fff;color:var(--c-red);width:52px}
.swiper-scenario .swiper-button-prev:hover,
.swiper-scenario .swiper-button-next:hover{width:52px;background:#fff;color:var(--c-red)}
.section-jump-wrap{text-align:center;margin-top:40px}
.section-jump{display:inline-flex;align-items:center;gap:10px;padding:12px 28px;border:1px solid var(--c-red);color:var(--c-red);font-size:17px;font-weight:600;letter-spacing:.18em;border-radius:12px}
.section-jump .arrow{display:inline-block;transition:transform var(--tr)}
.section-jump:hover{background:var(--c-red);color:#fff}
.section-jump:hover .arrow{transform:translateX(4px)}
.swiper-scenario .swiper-button-prev::after,
.swiper-scenario .swiper-button-next::after,
.swiper-product .swiper-button-prev::after,
.swiper-product .swiper-button-next::after,
.swiper-cases .swiper-button-prev::after,
.swiper-cases .swiper-button-next::after{font-size:14px;font-weight:700}

/* ========== 03 经典案例(横向滑动条) ========== */
.section-case{display:none}
.case-strip{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/3);gap:24px;
  max-width:var(--w-container);margin:0 auto;padding:4px var(--w-pad) 20px;
  overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;
}
.case-strip::-webkit-scrollbar{display:none}
.case-strip .case-item{
  scroll-snap-align:start;position:relative;min-height:280px;
  border-radius:var(--r-card);background:#222;overflow:hidden;color:#fff;
}
.case-strip .case-item img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:.72;transition:opacity var(--tr),transform .5s ease;
}
.case-strip .case-item:hover img{opacity:.55;transform:scale(1.04)}
.case-strip .case-copy{
  position:absolute;left:0;right:0;bottom:0;padding:56px 24px 22px;
  background:linear-gradient(transparent,rgba(0,0,0,.82));
}
.case-strip .case-copy::before{content:"";display:block;width:28px;height:3px;background:var(--c-red);margin-bottom:12px}
.case-strip .case-copy h3{font-size:17px;font-weight:600;letter-spacing:.02em}
.case-strip .case-copy p{font-size:12px;color:rgba(255,255,255,.78);margin-top:5px;letter-spacing:.08em}

/* ========== 04 服务体系(深色承诺条) ========== */
.section-service{padding:96px 0;background:var(--c-ink);color:#fff}
.title-on-dark h2{color:#fff}
.title-on-dark .st-lead{color:rgba(255,255,255,.6)}
.title-on-dark .st-en{color:rgba(255,255,255,.5)}
.service-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid #2c2c2f;border-left:1px solid #2c2c2f;
}
.service-cell{
  padding:34px 28px 38px;border-right:1px solid #2c2c2f;border-bottom:1px solid #2c2c2f;
  transition:background var(--tr);
}
.service-cell:hover{background:#1e1e21}
.service-index{
  font-family:var(--font-en);font-size:13px;font-weight:600;letter-spacing:.14em;
  color:var(--c-red);margin-bottom:18px;font-variant-numeric:tabular-nums;
}
.service-cell h3{font-size:18px;font-weight:600;letter-spacing:.06em;margin-bottom:10px}
.service-cell p{font-size:13px;line-height:1.8;color:rgba(255,255,255,.58)}
.service-cta{margin-top:44px;text-align:center}
.service-cta .btn-ghost{letter-spacing:.18em}
.service-cta .arrow{margin-left:8px;display:inline-block;transition:transform var(--tr)}
.service-cta .btn-ghost:hover .arrow{transform:translateX(4px)}

/* ========== 05 品牌简介(浮卡+大图) ========== */
.section-brand{padding:96px 0;background:#fff}
.brand-wrap{position:relative;max-width:var(--w-container);margin:0 auto;padding:0 calc(var(--w-pad))}
.brand-photo{position:relative;width:100%;padding-top:50%;border-radius:var(--r-card);overflow:hidden;background:#eee}
.brand-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.brand-card{
  position:absolute;left:calc(var(--w-pad));top:50%;transform:translateY(-50%);
  background:rgba(255,255,255,.97);backdrop-filter:blur(8px);
  width:420px;box-sizing:border-box;
  padding:26px 28px;box-shadow:0 16px 48px rgba(0,0,0,.14);
  border-radius:var(--r-card);
  display:flex;flex-direction:column;justify-content:center;
}
.brand-card .brand-card-title{
  display:inline-flex;align-items:center;align-self:flex-start;
  background:var(--c-ink);color:#fff;border-left:3px solid var(--c-red);
  padding:6px 14px;font-size:13px;font-weight:600;letter-spacing:.12em;
  margin-bottom:12px;
}
.brand-card .brand-card-logo{display:block;width:min(100%,230px);height:auto;margin:0;background:#45555f;position:relative;top:-8px}
.brand-card .brand-card-text{font-size:12px;line-height:1.75;color:#55555a}

/* 首页右侧在线留言入口：固定在视窗右侧，不跟随页脚排版。 */
.home-message-float{
  position:fixed !important;right:max(14px,env(safe-area-inset-right)) !important;top:50% !important;bottom:auto !important;z-index:850;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;
  width:48px;height:112px;padding:12px 6px;
  border:1px solid rgba(255,255,255,.14);border-radius:8px;
  background:linear-gradient(180deg,#2e2e33 0%,#141416 100%);
  color:#ff3b52;text-align:center;white-space:nowrap;
  font-size:14px;font-weight:700;line-height:1.3;letter-spacing:.16em;
  box-shadow:0 8px 22px rgba(10,10,14,.35);
  transform:translateY(-50%);transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease;
}
/* "在线"/"留言"两行:span 块级 + br 换行 + 加大行高,精确拉开两行间距 */
.home-message-float > span{display:block;line-height:2.3}
.home-message-float br{display:inline}
/* 短信气泡式小角:右侧朝外的三角尖,让按钮像弹出的留言气泡 */
.home-message-float::after{
  content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);
  width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:10px solid #1e1e22;
  pointer-events:none;
}
.home-message-float:hover{transform:translateY(-50%) translateX(-4px);background:linear-gradient(180deg,#3a3a40 0%,#1e1e22 100%);color:#ff4d62;box-shadow:0 12px 30px rgba(10,10,14,.45)}
.home-message-float:hover::after{border-left-color:#28282e}
.home-message-float:focus-visible{outline:3px solid rgba(20,20,26,.28);outline-offset:3px}

/* ========== 响应式 ========== */
/* 场景和产品区块仅在首次进入视口时，自下而上淡入。 */
.reveal-ready .section-scenario .section-title,
.reveal-ready .section-scenario .scenario-card,
.reveal-ready .section-product .section-title,
.reveal-ready .section-product .product-card{
  opacity:0;
  transform:translateY(48px);
  transition:opacity .8s ease,transform 1s cubic-bezier(.22,.61,.36,1);
}
.reveal-ready .section-scenario.is-revealed .section-title,
.reveal-ready .section-scenario.is-revealed .scenario-card,
.reveal-ready .section-product.is-revealed .section-title,
.reveal-ready .section-product.is-revealed .product-card{
  opacity:1;
  transform:translateY(0);
}
.reveal-ready .section-scenario.is-revealed .scenario-card:hover,
.reveal-ready .section-product.is-revealed .product-card:hover{
  transform:translateY(-6px);
}
.reveal-ready .section-service,
.reveal-ready .section-brand{opacity:0;transform:translateY(48px);transition:opacity .8s ease,transform 1s cubic-bezier(.22,.61,.36,1)}
.reveal-ready .section-service.is-revealed,
.reveal-ready .section-brand.is-revealed{opacity:1;transform:translateY(0)}

@media (prefers-reduced-motion:reduce){
  .reveal-ready .section-scenario .section-title,
  .reveal-ready .section-scenario .scenario-card,
  .reveal-ready .section-product .section-title,
  .reveal-ready .section-product .product-card{
    transform:none;
    opacity:1;
    transition:none;
  }
  .reveal-ready .section-service,.reveal-ready .section-brand{opacity:1;transform:none;transition:none}
  .product-hover-panel,.product-hover-link span{transition:none}
}

@media (max-width:1024px){
  :root{--fz-hero:40px;--fz-h1:36px;--fz-h2:30px}
  .hero{height:520px}
  .hero-swiper .slide-subtitle{font-size:15px;letter-spacing:.24em}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-strip{grid-auto-columns:calc((100% - 24px)/2)}
}
@media (max-width:768px){
  :root{--fz-hero:28px;--fz-h1:28px;--fz-h2:24px;--w-pad:16px}
  .hero{height:400px;margin-top:var(--r-nav)}
  .hero-swiper .slide-eyebrow{font-size:11px;margin-bottom:12px}
  .hero-swiper .slide-eyebrow::before{width:28px}
  .hero-swiper .slide-title{letter-spacing:.02em;margin-bottom:12px}
  .hero-swiper .slide-subtitle{font-size:12px;letter-spacing:.18em;margin-bottom:24px}
  .hero-swiper .slide-cta{padding:11px 26px;font-size:14px}
  .section-scenario,.section-product,.section-case,.section-service,.section-brand{padding:56px 0}
  .section-title{margin-bottom:36px}
  /* 移动端:每排2个(用户硬性要求) */
  .swiper-scenario .swiper-slide,
  .swiper-product .swiper-slide{width:50%;flex-shrink:0}
  .scenario-card .card-body,.product-card .card-body{padding:14px 8px}
  .scenario-card .card-title{font-size:13px}
  .product-card .card-title{font-size:12px}
  .swiper-scenario .swiper-button-prev:hover,
  .swiper-scenario .swiper-button-next:hover,
  .swiper-product .swiper-button-prev:hover,
  .swiper-product .swiper-button-next:hover{width:38px}
  /* 案例条:每排2个 */
  .case-strip{grid-auto-columns:46%;gap:12px;padding-bottom:14px}
  .case-strip .case-item{min-height:210px}
  .case-strip .case-copy{padding:40px 14px 14px}
  .case-strip .case-copy h3{font-size:13px}
  .case-strip .case-copy p{font-size:11px}
  /* 服务格:每排2个 */
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .service-cell{padding:22px 16px 26px}
  .service-cell h3{font-size:15px}
  .service-cell p{font-size:12px}
  .service-cta{margin-top:32px}
  /* 移动端:品牌简介卡片改为静态堆叠在图下方 */
  .brand-wrap{padding:0 var(--w-pad)}
  .brand-photo{padding-top:50%}
  .brand-card{position:static;transform:none;width:auto;height:auto;max-width:100%;margin:-60px 16px 0;padding:22px;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.1)}
  .brand-card .brand-card-title{font-size:13px;padding:6px 12px;margin-bottom:14px}
  .brand-card .brand-card-text{font-size:12px;line-height:1.8}
  .home-message-float{right:max(8px,env(safe-area-inset-right)) !important;top:58% !important;width:40px;height:84px;padding:10px 4px;gap:0;font-size:12px;letter-spacing:.12em;border-radius:7px}
  .home-message-float > span{line-height:2.1}
  .home-message-float::after{right:-5px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid #1e1e22}
}
@media (max-width:480px){
  .hero{height:340px}
  .hero-swiper .slide-title{font-size:24px}
  .service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
