/* ═══════════════════════════════════════════════════════════════
   HOME DYNAMIC V1 — 首页动效 + 排版现代化（独立文件，可整体回滚）
   ═══════════════════════════════════════════════════════════════ */

/* ────────── 1. HERO：交错入场（叠加在既有 ken-burns / char 之上） ────────── */
#page-home .hero h1             { animation: dynHeroFade .8s cubic-bezier(.2,.7,.3,1) .22s both; }
#page-home .hero .hero-tag       { animation: dynHeroFade .7s ease .08s both; }
#page-home .hero .hero-sub       { animation: dynHeroFade .8s ease .40s both; }
#page-home .hero .hero-actions   { animation: dynHeroFade .9s ease .60s both; }
/* 入场 + 浮动双动画并行：main.css 的 .hero-scroll-hint 用 translateX(-50%) 居中，
   而 dynHeroFade 的 to{transform:translateY(0)} 且 fill-mode:both 会永久吃掉居中位移。
   故改用保留 -50% 的专用关键帧，并把 hintFloat 一并排入动画列表
   （animation 是覆盖而非叠加，不写就再也播不出浮动）。 */
#page-home .hero .hero-scroll-hint {
  animation:
    dynHeroFadeCentered 1s ease 1.0s both,
    hintFloat 2s ease-in-out 2s infinite;
}

@keyframes dynHeroFadeCentered {
  from { opacity: 0; transform: translate(-50%, 24px); filter: blur(4px); }
  to   { opacity: 1; transform: translate(-50%, 0);    filter: blur(0); }
}

@keyframes dynHeroFade {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

/* 背景呼吸光晕，强化"守护生命"氛围 */
#page-home .hero .hero-overlay {
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.66) 100%);
}

/* ────────── 2. STATS：独立浮卡（位于轮播图下方，不与其重叠） ────────── */
/* 2026-09-22 改：原 stats-bar 用 margin-top:-58px 上浮压住 Hero 底部（"一半在
   hero 上"）。按用户要求移出重叠 —— 同步收窄 hero 的 padding-bottom（原本
   84px 是为浮卡预留的叠放空间，脱离后若不收窄会出现大片留白）。 */
#page-home .hero { height: auto; min-height: 100vh; padding-bottom: 40px; }

#page-home .stats-bar {
  position: relative;
  z-index: 5;
  margin-top: 0;
  width: calc(100% - clamp(48px, 8vw, 150px));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(20, 30, 50, .08);
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(15, 23, 42, .18);
  gap: clamp(18px, 4vw, 56px);
}

#page-home .stat-item .num {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  background: linear-gradient(115deg, var(--brand) 0%, var(--brand-200) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ────────── 3. CLIENT LOGO WALL：无缝跑马灯 ────────── */
#page-home .logo-wall-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  max-width: none;
  width: 100%;
  overflow: hidden;
  padding: 4px 0 8px;
}
#page-home .logo-wall-grid .marquee-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  min-width: 100%;
  width: max-content;
  animation: dynLogoMarquee 44s linear infinite;
  will-change: transform;
}
#page-home .logo-wall-grid:hover .marquee-track { animation-play-state: paused; }
#page-home .logo-wall-grid .marquee-track .logo-wall-item { flex: 0 0 auto; width: 170px; }

@keyframes dynLogoMarquee { to { transform: translateX(-50%); } }

/* ────────── 4. CARD 3D TILT + 光晕跟随 ────────── */
#page-home .prod-card,
#page-home .sector-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .16s ease-out, box-shadow .35s ease, border-color .35s ease;
}
#page-home .prod-card:hover,
#page-home .sector-card:hover {
  transform: perspective(920px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  box-shadow: 0 26px 52px -18px rgba(15, 23, 42, .28);
}
/* 光晕跟随指针 */
#page-home .prod-card, #page-home .sector-card { position: relative; }
#page-home .prod-card::after, #page-home .sector-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx,50%) var(--my,50%), rgba(30,90,200,.16), transparent 65%);
  transition: opacity .3s ease;
  z-index: 2;
}
#page-home .prod-card:hover::after, #page-home .sector-card:hover::after { opacity: 1; }

/* ────────── 5. FLOW STEP：序号点亮 + 依次流光 ────────── */
#page-home .flow-step { overflow: hidden; }
#page-home .flow-step .flow-num {
  display: inline-block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  opacity: .9;
  transition: transform .35s var(--ease), color .35s ease;
  margin-bottom: 8px;
}
#page-home .flow-step:hover .flow-num {
  transform: translateY(-3px) scale(1.06);
  color: var(--brand-hover, var(--brand));
}
#page-home .home-flow { gap: 22px; }
#page-home .flow-step:not(:last-child)::after { right: -15px; }

/* ────────── 6. CTA：流光描边文字 ────────── */
#page-home .cta-link {
  background-image: linear-gradient(110deg,
    transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  background-size: 220% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: dynCtaShimmer 3.4s linear infinite;
}
@keyframes dynCtaShimmer { to { background-position: -220% 0; } }

/* ────────── 7. 排版现代化：left-aligned editorial sec-header ────────── */
#page-home .sec-header {
  text-align: left;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(24px, 5vw, 80px);
  padding-right: clamp(24px, 5vw, 80px);
}
#page-home .sec-header h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: .2px; line-height: 1.15; }
#page-home .sec-header .line { margin: 16px 0 18px; }
#page-home .sec-header .eyebrow { margin-bottom: 14px; }

/* ────────── 8. 产品栅格：5 卡 2+3 对称布局（上排 2 张 span6 / 下排 3 张 span4） ────────── */
#page-home .prod-grid { grid-template-columns: repeat(12, 1fr); }
#page-home .prod-grid .prod-card { grid-column: span 4; }
/* 前 2 张：上排大卡各占一半 */
#page-home .prod-grid .prod-card:nth-child(1),
#page-home .prod-grid .prod-card:nth-child(2) { grid-column: span 6; }
#page-home .prod-grid .prod-card .card-img { height: 236px; }
#page-home .prod-grid .prod-card:nth-child(1) .card-img,
#page-home .prod-grid .prod-card:nth-child(2) .card-img { height: 300px; }

/* ────────── 响应式 ────────── */
@media (max-width: 860px) {
  #page-home .stats-bar { margin-top: 0; width: calc(100% - 32px); flex-direction: row; flex-wrap: wrap; gap: 16px 28px; justify-content: space-around; }
  #page-home .hero { padding-bottom: 28px; }
  #page-home .prod-grid,
  #page-home .prod-grid .prod-card,
  #page-home .prod-grid .prod-card:nth-child(1),
  #page-home .prod-grid .prod-card:nth-child(2) { grid-template-columns: 1fr; grid-column: 1 / -1; }
  #page-home .prod-grid .prod-card .card-img,
  #page-home .prod-grid .prod-card:nth-child(1) .card-img,
  #page-home .prod-grid .prod-card:nth-child(2) .card-img { height: 200px; }
}

@media (max-width: 767px) {
  /* 移动端保留网格展示，跑马灯降级 */
  #page-home .logo-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); overflow: visible; }
  #page-home .logo-wall-grid .marquee-track { animation: none; flex-wrap: wrap; width: 100%; min-width: 0; }
  #page-home .logo-wall-grid .marquee-track .logo-wall-item { width: auto; flex: 1 1 calc(50% - 10px); }
}

/* ═══════════════════════════════════════════════════════════════
   HOME DYNAMIC V2 — 更大胆排版（深色大卡 / 错落节奏 / 头条横跨）
   标签：sectors 深色编号卡 · flow 锯齿流水线 · news 头条大卡
   ═══════════════════════════════════════════════════════════════ */

/* ────────── 9. SECTORS：深色大卡 + 巨型描边编号（4 卡单排） ────────── */
#page-home .home-sectors {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch; /* 4 卡等高，不再错落 */
}
#page-home .sector-card {
  background:
    radial-gradient(140% 170% at 90% -20%, rgba(216,120,48,.28) 0%, rgba(216,120,48,0) 55%),
    linear-gradient(155deg, #12253c 0%, #0e1c2f 55%, #0a1522 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  padding: 28px 22px 24px;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 巨型描边编号水印 */
#page-home .sector-card::before {
  content: "";
  position: absolute;
  right: 10px; top: 2px;
  font-size: clamp(54px, 5vw, 76px);
  font-weight: 900;
  line-height: 1;
  font-family: var(--font-sans);
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(255,255,255,.16);
  pointer-events: none;
  z-index: 0;
}
#page-home .sector-card:nth-child(1)::before { content: "01"; }
#page-home .sector-card:nth-child(2)::before { content: "02"; }
#page-home .sector-card:nth-child(3)::before { content: "03"; }
#page-home .sector-card:nth-child(4)::before { content: "04"; }

#page-home .sector-card > * { position: relative; z-index: 1; }
#page-home .sector-card h3 { color: #fff; font-size: clamp(17px, 1.35vw, 21px); letter-spacing: .2px; line-height: 1.3; }
#page-home .sector-card p  { color: rgba(255,255,255,.66); }

/* 逐条要点：窄卡内用小字号 + 品牌色圆点 */
#page-home .sector-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
#page-home .sector-list li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.5; color: rgba(255,255,255,.62); }
#page-home .sector-list li::before { content: ""; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: rgba(216,120,48,.85); }

#page-home .sector-card .sector-more {
  color: var(--brand-200);
  display: inline-flex; align-items: center; gap: 6px;
}
#page-home .sector-card .sector-more::before { content: "→"; transition: transform .3s var(--ease); }
#page-home .sector-card:hover .sector-more::before { transform: translateX(5px); }

/* 图标：4 卡收窄后略缩，保持呼吸感 */
#page-home .sector-card .sector-ic {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(216,120,48,.16);
  border: 1px solid rgba(216,120,48,.42);
  color: var(--brand-200);
  box-shadow: inset 0 0 26px rgba(216,120,48,.28), 0 0 24px rgba(216,120,48,.16);
  margin-bottom: 18px;
}
#page-home .sector-card .sector-ic svg { width: 26px; height: 26px; }

/* ────────── 10. FLOW：锯齿错落流水线 + 渐变拆线 ────────── */
#page-home .home-flow {
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start; /* 允许锯齿 */
}
#page-home .flow-step:nth-child(even) { margin-top: 48px; } /* 交替下沉 */
#page-home .flow-step {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 22px 26px;
  min-height: 188px;
}
#page-home .flow-step .flow-num {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 20px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-300) 100%);
  box-shadow: 0 10px 22px -6px rgba(216,120,48,.5);
  margin-bottom: 18px;
}
#page-home .flow-step h3 { font-size: clamp(19px, 1.8vw, 24px); }
#page-home .flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -17px; top: 84px;
  width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(216,120,48,.15) 100%);
  border: none; transform: none; margin-top: 0; z-index: 1;
}

/* ────────── 11. NEWS：头条大卡横跨 + 双列 ────────── */
#page-home .home-news {
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2vw, 24px);
}
#page-home .news-card { grid-column: span 3; border-radius: 16px; border-left: 3px solid var(--brand); }
#page-home .news-card:nth-child(1) {
  grid-column: 1 / span 6;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(216,120,48,.22), transparent 60%),
    linear-gradient(135deg, #101f33 0%, #0b1626 100%);
  border: none; border-left: 4px solid var(--brand);
  color: #fff;
  padding: 36px 34px;
  justify-content: center;
}
#page-home .news-card:nth-child(1) h3 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; }
#page-home .news-card:nth-child(1) .news-tag { background: var(--brand); color: #fff; }

/* V2 标题张力：更大 + 渐变短线 */
#page-home .sec-header h2 { font-size: clamp(32px, 4vw, 52px); }
#page-home .sec-header .line {
  width: 76px; height: 3px; margin: 18px 0 20px;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(216,120,48,0) 120%);
  border-radius: 3px;
}

/* V2 响应式 */
@media (max-width: 860px) {
  #page-home .home-sectors { grid-template-columns: 1fr; }
  #page-home .sector-card:nth-child(2),
  #page-home .sector-card:nth-child(3) { margin-top: 0; }
  #page-home .home-flow { grid-template-columns: 1fr 1fr; }
  #page-home .flow-step:nth-child(even) { margin-top: 0; }
  #page-home .flow-step:not(:last-child)::after { display: none; }
  #page-home .home-news { grid-template-columns: 1fr; }
  #page-home .news-card,
  #page-home .news-card:nth-child(1) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  #page-home .sector-card .sector-more::before { transition: none; }
}

/* ────────── reduced-motion：全部关闭 ────────── */
@media (prefers-reduced-motion: reduce) {
  #page-home .hero h1,
  #page-home .hero .hero-tag,
  #page-home .hero .hero-sub,
  #page-home .hero .hero-actions,
  #page-home .hero .hero-scroll-hint,
  #page-home .logo-wall-grid .marquee-track,
  #page-home .cta-link {
    animation: none !important;
  }
  #page-home .prod-card, #page-home .sector-card { transition: none !important; }
  /* 动画被移除后，居中位移必须显式声明（不能依赖动画的 transform） */
  #page-home .hero .hero-scroll-hint { transform: translate(-50%, 0) !important; }
}

/* ────────── 12. 首页"查看全部新闻"按钮 · 大胆设计版（大号饱和渐变+外扩光晕） ────────── */
#page-home .home-news-more {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  margin: 34px 0 56px auto; /* 左 auto 右对齐，底部留白衔接尾栏 */
  padding: 15px 38px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #fff;
  background: linear-gradient(120deg, #F0874A 0%, var(--brand) 48%, #C25A1A 100%);
  border-radius: 16px;
  box-shadow:
    0 10px 30px rgba(216, 120, 48, .42),
    inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform var(--ease) var(--t), box-shadow var(--ease) var(--t), filter var(--ease) var(--t);
}
/* 外层柔光晕：悬停时扩散一圈品牌色虹晕 */
#page-home .home-news-more::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  background: radial-gradient(70% 130% at 30% 0%, rgba(216, 120, 48, .38), transparent 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--ease) var(--t);
}
/* 底部高亮渐变弧线，让按钮更跳 */
#page-home .home-news-more::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: -6px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(216,120,48,0), var(--brand), rgba(216,120,48,0));
  filter: blur(2px);
  opacity: .55;
  transition: opacity var(--ease) var(--t);
}
#page-home .home-news-more:hover {
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  filter: brightness(1.08);
  box-shadow:
    0 16px 42px rgba(216, 120, 48, .52),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
#page-home .home-news-more:hover::before { opacity: 1; }
#page-home .home-news-more:hover::after { opacity: 1; }
#page-home .home-news-more:active { transform: translateY(-1px) scale(.99); }
#page-home .home-news-more:focus-visible { outline: 3px solid rgba(216, 120, 48, .4); outline-offset: 4px; }

/* ══════════════════════════════════════════════════════════════
   13. 首页 Hero · 参考 WEGO 版式（只动轮播图区域）
   --------------------------------------------------------------
   目标：极简左对齐 · 纵向三层（中文标题两行 → 英文小字 → 按钮）
        · 去掉深色蒙版，改左侧轻渐变（保白字可读、右侧通透）
        · 导航栏等其他区域一律不动
   ══════════════════════════════════════════════════════════════ */

/* 去掉原 55%~66% 的重蒙版，改为左侧轻渐变 */
#page-home .hero .hero-overlay {
  background: linear-gradient(
    100deg,
    rgba(10, 18, 32, .58) 0%,
    rgba(10, 18, 32, .34) 32%,
    rgba(10, 18, 32, .10) 55%,
    rgba(10, 18, 32, 0) 78%
  );
}

/* Hero 不做额外下移（导航栏保持原浮层样式） */
#page-home .hero { padding-top: 0; }

#page-home .hero-content {
  text-align: left;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(24px, 7vw, 96px);
}

/* eyebrow（hero-tag）：参考图无此元素，隐藏 */
#page-home .hero .hero-tag { display: none; }

/* 中文标题：两行、粗体、纯白实心，中等偏大 */
#page-home .hero h1 {
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.32;
  margin: 0;
}
#page-home .hero h1 > span {
  display: block;
  font-weight: 700;
  font-size: 1em;
  color: #fff;
  -webkit-text-stroke: 0;
  margin: 0;
}
/* 次行「敬畏生命」用品牌橙强调，与首行纯白形成层级；并保留与首行一致的逐字入场动画。
   关键：不能用 background-clip:text 渐变——.char 入场动画(opacity/transform)的合成层
   会让渐变失效、文字纯透明（即此前刷新后“敬畏生命”消失的真凶）。改纯色后动画安全。 */
#page-home .hero h1 strong {
  display: block;
  font-weight: 700;
  font-size: 1em;
  color: var(--brand);
  -webkit-text-fill-color: var(--brand);
  -webkit-text-stroke: 0;
  margin: 0;
}

/* 英文小字：紧贴标题下方，细体白色 */
#page-home .hero .hero-sub {
  display: block;
  margin-top: 14px;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92);
  background: none;
  border: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 按钮：左对齐、间距克制 */
#page-home .hero .hero-actions {
  justify-content: flex-start;
  gap: 14px;
  margin-top: 30px;
}

/* ── 响应式 ── */
@media (max-width: 860px) {
  #page-home .hero-content { padding: 0 24px; }
  #page-home .hero h1 { font-size: clamp(26px, 6.4vw, 38px); }
  #page-home .hero .hero-sub { font-size: 13.5px; }
}
@media (max-width: 560px) {
  #page-home .hero-content { padding: 0 20px; }
  #page-home .hero h1 { font-size: clamp(22px, 7.4vw, 30px); line-height: 1.34; }
  #page-home .hero .hero-sub { font-size: 12.5px; }
  #page-home .hero .hero-actions { gap: 10px; }
}
