/* ============================================================
   首页 index.css —— 壹连版式复刻（正亚数据/图/文案），普通滚动
   板块：Banner / 行业解决方案 / 研发与制造 / 合作伙伴 / 可持续发展 / 新闻资讯
   动画(A档)：横滑 Banner / 错开入场 stagger / 装饰浮动形状 / 数字滚动 / 新闻轮播
   ============================================================ */
.zy-home-banner *, .zy-home-sol *, .zy-home-rd *, .zy-home-partner *, .zy-home-esg *, .zy-home-news * { box-sizing: border-box; }

/* 通用 */
/* 各板块内容全宽（不再居中限 1280），留响应式边距避免贴边 */
.zy-home-wal { max-width: none; margin: 0 auto; padding: 0 clamp(24px, 3vw, 64px); position: relative; z-index: 2; }
.zy-home-title {
    text-align: center; font-size: clamp(26px, 3.2vw, 40px); font-weight: 700;
    color: #1a1a1a; margin: 0; line-height: 1.3; position: relative; padding-bottom: 20px;
}
.zy-home-title::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 48px; height: 3px; background: #039CEA; border-radius: 2px;
}
.zy-home-title.light { color: #fff; }
.zy-home-sub { text-align: center; color: #8a8f99; font-size: 15px; margin: 16px 0 0; }
.zy-home-esg .zy-home-sub { color: rgba(255,255,255,.85); }
.zy-home-more {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 28px; border-radius: 999px; font-size: 14px; font-weight: 500;
    background: #039CEA; color: #fff; text-decoration: none;
    transition: background .25s, transform .25s, box-shadow .25s;
}
.zy-home-more:hover { background: #0286CC; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(3,156,234,.32); }
.zy-home-more.light { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.5); }
.zy-home-more.light:hover { background: #fff; color: #039CEA; border-color: #fff; }

/* 滚动入场（单元素）*/
.zy-reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.zy-reveal.in-view { opacity: 1; transform: translateY(0); }
/* 错开入场（容器内子元素依次浮现）*/
.zy-stagger > * { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.zy-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.zy-stagger.in-view > *:nth-child(1) { transition-delay: .06s; }
.zy-stagger.in-view > *:nth-child(2) { transition-delay: .14s; }
.zy-stagger.in-view > *:nth-child(3) { transition-delay: .22s; }
.zy-stagger.in-view > *:nth-child(4) { transition-delay: .30s; }
.zy-stagger.in-view > *:nth-child(5) { transition-delay: .36s; }
.zy-stagger.in-view > *:nth-child(6) { transition-delay: .42s; }
.zy-stagger.in-view > *:nth-child(n+7) { transition-delay: .48s; }

/* 装饰浮动形状（背景缓动几何块）*/
.zy-deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(6px); }
.zy-deco-a { width: 320px; height: 320px; top: -90px; left: -110px; background: radial-gradient(circle, rgba(3,156,234,.10), transparent 70%); animation: zy-float 18s ease-in-out infinite; }
.zy-deco-b { width: 240px; height: 240px; bottom: -70px; right: -60px; background: radial-gradient(circle, rgba(3,156,234,.08), transparent 70%); animation: zy-float 22s ease-in-out infinite reverse; }
.zy-deco-c { width: 360px; height: 360px; top: -120px; right: -120px; background: radial-gradient(circle, rgba(3,156,234,.10), transparent 70%); animation: zy-float 24s ease-in-out infinite; }
@keyframes zy-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,30px) scale(1.12); } }

/* ============ 1. Banner（横向滑动）============ */
.zy-home-banner { position: relative; width: 100%; height: calc(100vh - 7.14rem - 72px); height: calc(100svh - 7.14rem - 72px); min-height: 420px; overflow: hidden; background: #0b1320; }
.zy-hb-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.4,0,.2,1); will-change: transform; }
.zy-hb-slide { position: relative; flex: 0 0 100%; height: 100%; }
.zy-hb-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zy-hb-dots { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; justify-content: center; gap: 12px; }
.zy-hb-dot { width: 36px; height: 4px; border: 0; padding: 0; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; transition: background .25s, width .25s; }
.zy-hb-dot.active { background: #fff; width: 48px; }
.zy-hb-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.28); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .25s;
}
.zy-hb-arrow:hover { background: #039CEA; }
.zy-hb-prev { left: 28px; }
.zy-hb-next { right: 28px; }

/* ============ 2. 行业解决方案 ============ */
.zy-home-sol { padding: 92px 0; background: #fff; position: relative; overflow: hidden; }
.zy-home-sol .zy-home-title { margin-bottom: 56px; }
.zy-sol-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.zy-sol-cards a { display: block; position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; text-decoration: none; }
.zy-sc-img { position: absolute; inset: 0; }
.zy-sc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.zy-sol-cards a:hover .zy-sc-img img { transform: scale(1.08); }
.zy-sc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,16,28,.08) 30%, rgba(8,16,28,.45) 62%, rgba(8,16,28,.86) 100%); }
.zy-sc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 24px 28px; color: #fff; }
.zy-sc-name { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.zy-sc-msg { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.88); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s ease, opacity .45s ease, margin .45s ease; }
.zy-sol-cards a:hover .zy-sc-msg { max-height: 80px; opacity: 1; margin-bottom: 14px; }
.zy-sc-more span { font-size: 13px; color: #fff; }
.zy-sc-more span::after { content: '\2192'; margin-left: 6px; transition: margin .25s; display: inline-block; }
.zy-sol-cards a:hover .zy-sc-more span::after { margin-left: 12px; }

/* ============ 3. 研发与制造 ============ */
.zy-home-rd { position: relative; padding: 96px 0 130px; overflow: hidden; background: #fff; }
.zy-rd-head { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-bottom: 64px; }
.zy-home-rd .zy-home-title { padding-bottom: 0; line-height: 1.35; }
.zy-home-rd .zy-home-title::after { display: none; }
.zy-rd-link { color: #039CEA; font-size: 15px; text-decoration: none; position: relative; padding-bottom: 6px; }
.zy-rd-link::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: #039CEA; transform: scaleX(.4); transform-origin: left; transition: transform .3s; }
.zy-rd-link:hover::after { transform: scaleX(1); }
.zy-rd-nums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 2; }
.zy-rd-nums li { text-align: center; color: #333; position: relative; }
.zy-rd-nums li + li::before { content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: #e6e9ee; }
.zy-rd-icon { display: block; color: #039CEA; margin-bottom: 16px; }
.zy-rn-num { font-size: clamp(34px, 4vw, 54px); font-weight: 800; line-height: 1; color: #039CEA; }
.zy-rn-num em { font-style: normal; }
.zy-rn-lbl { font-size: 15px; margin-top: 14px; color: #777; }
.zy-rd-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 240px; z-index: 1; pointer-events: none; }

/* ============ 4. 合作伙伴 ============ */
.zy-home-partner { min-height: 100vh; padding: 80px 0 0; background: #f5f7fa; position: relative; overflow: hidden; }
.zy-home-partner .zy-home-sub { margin-bottom: 48px; }
.zy-partner-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: #e6e9ee; border: 1px solid #e6e9ee; }
.zy-pg-tile { background: #fff; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 18px; transition: box-shadow .25s, transform .25s; }
.zy-pg-tile img { width: auto; height: 42px; max-width: 82%; object-fit: contain; filter: none; opacity: 1; }
.zy-pg-tile:hover { box-shadow: 0 12px 26px rgba(0,0,0,.10); transform: translateY(-2px); }
/* stagger 在 grid 上：子元素继承 grid 布局，opacity/transform 动画照常 */
.zy-partner-grid.zy-stagger > * { transition-duration: .55s; }
/* 浮动 logo 徽章（B档，桌面端）*/
/* 泡泡区：绝对定位铺满模块下半部（全屏宽 + 贴底 bottom:0 紧接 ESG，无空白）*/
.zy-partner-float { display: none; position: absolute; left: 0; right: 0; top: 220px; bottom: 0; overflow: hidden; }
.zy-pf-badge { position: absolute; top: 0; left: 0; width: 152px; height: 152px; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; will-change: transform; cursor: grab; user-select: none; -webkit-user-select: none; }
.zy-pf-badge.dragging { cursor: grabbing; box-shadow: 0 14px 34px rgba(3,156,234,.28); z-index: 5; }
.zy-pf-badge img { width: auto; height: 54px; max-width: 66%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: none; opacity: 1; }
@media (min-width: 769px) {
    .zy-home-partner .zy-partner-grid { display: none; }
    .zy-home-partner .zy-partner-float { display: block; }
}

/* ============ 5. 可持续发展（ESG）============ */
/* TODO: 背景图待换正亚 ESG 素材，现用品牌渐变占位 */
.zy-home-esg { padding: 110px 0; text-align: center; background: linear-gradient(135deg, #0b7a5e 0%, #0a8f6e 45%, #039CEA 120%); position: relative; overflow: hidden; }
.zy-home-esg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.12), transparent 55%); pointer-events: none; }
.zy-home-esg .zy-home-title { padding-bottom: 0; }
.zy-home-esg .zy-home-title::after { display: none; }
.zy-esg-msg { max-width: 760px; margin: 26px auto 36px; font-size: 16px; line-height: 1.9; color: rgba(255,255,255,.92); }

/* ============ 6. 新闻资讯（横向轮播）============ */
.zy-home-news { padding: 92px 0; background: #fff; }
.zy-home-news .zy-home-sub { margin-bottom: 48px; }
.zy-news-carousel { position: relative; }
.zy-news-viewport { overflow: hidden; }
.zy-news-track { display: flex; gap: 28px; transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.zy-news-arrow {
    position: absolute; top: 38%; transform: translateY(-50%); z-index: 4;
    width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #039CEA;
    font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.12);
    display: flex; align-items: center; justify-content: center; transition: background .25s, color .25s;
}
.zy-news-arrow:hover { background: #039CEA; color: #fff; }
.zy-news-prev { left: -20px; }
.zy-news-next { right: -20px; }
.zy-nc { flex: 0 0 calc((100% - 56px) / 3); display: flex; flex-direction: column; background: #fff; border: 1px solid #eef1f4; border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .3s, box-shadow .3s, border-color .3s; }
.zy-nc:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,.10); border-color: #cfe9fb; }
.zy-nc-img { aspect-ratio: 16 / 9; overflow: hidden; background: #f0f2f5; }
.zy-nc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zy-nc:hover .zy-nc-img img { transform: scale(1.06); }
.zy-nc-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.zy-nc-date { display: flex; align-items: baseline; gap: 8px; color: #039CEA; margin-bottom: 12px; }
.zy-nc-day { font-size: 26px; font-weight: 700; line-height: 1; }
.zy-nc-ym { font-size: 13px; color: #9aa0a8; }
.zy-nc-title { font-size: 17px; font-weight: 600; color: #1a1a1a; line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zy-nc-intro { font-size: 13px; color: #888; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; }
.zy-nc-more { margin-top: auto; font-size: 13px; color: #039CEA; font-weight: 500; }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
    .zy-sol-cards { grid-template-columns: repeat(2, 1fr); }
    .zy-partner-grid { grid-template-columns: repeat(4, 1fr); }
    .zy-nc { flex-basis: calc((100% - 28px) / 2); }
}
@media (max-width: 768px) {
    .zy-home-banner { height: 82svh; min-height: 360px; }
    .zy-hb-arrow { display: none; }
    .zy-home-sol, .zy-home-partner, .zy-home-news { padding: 60px 0; }
    .zy-home-rd, .zy-home-esg { padding: 70px 0; }
    .zy-sol-cards { gap: 14px; }
    .zy-rd-nums { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
    .zy-rd-nums li + li::before { display: none; }
    .zy-partner-grid { grid-template-columns: repeat(3, 1fr); }
    .zy-nc { flex-basis: 100%; }
    .zy-news-arrow { display: none; }
}
@media (max-width: 480px) {
    .zy-sol-cards { grid-template-columns: 1fr; }
    .zy-sol-cards a { aspect-ratio: 16 / 10; }
    .zy-sc-msg { max-height: 80px; opacity: 1; margin-bottom: 14px; }
    .zy-partner-grid { grid-template-columns: repeat(2, 1fr); }
}
