/* 首页 Banner 轮播（2026-11-16，v2 增加分屏文案与左右切换按钮）— 仅首页加载
   三张背景图交叉淡入淡出 + 缓慢推近（Ken Burns），每屏配各自文案，切换时文案同步淡入。
   自动切换 6.5s；hover 暂停；页面切走暂停；prefers-reduced-motion 下不自动播放。 */
.hero-slides{position:absolute;inset:0}
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  opacity:0;transition:opacity 1.4s ease;will-change:opacity,transform}
.hero-img.is-active{opacity:1;animation:heroDrift 8s ease-out forwards}
@keyframes heroDrift{from{transform:scale(1.03)}to{transform:scale(1.1)}}

/* 文案层：三屏叠加在同一网格单元，容器高度取最高的一屏，切换时不会跳动 */
.hero-copies{display:grid}
.hero-copy{grid-area:1/1;opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(12px);
  transition:opacity .8s ease,transform .8s ease,visibility 0s linear .8s}
.hero-copy.is-active{opacity:1;visibility:visible;pointer-events:auto;transform:none;
  transition:opacity .8s ease,transform .8s ease,visibility 0s linear 0s}
/* 第 2、3 屏标题与 h1 同字号，但用 p 标签——保证全页只有一个 h1 */
.hero-copy .h1x{font-size:clamp(1.9rem,4vw,2.9rem);line-height:1.25;letter-spacing:-.01em;
  font-weight:700;color:#fff;max-width:18ch;margin:0 0 .5em}

/* 左右手动切换按钮 */
.harrow{position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  border:0;border-radius:50%;cursor:pointer;padding:0;color:#fff;
  background:rgba(12,40,28,.42);backdrop-filter:blur(2px);
  transition:background .25s,transform .25s,opacity .25s;opacity:.85}
.harrow:hover{background:rgba(12,40,28,.72);opacity:1}
.harrow-prev{left:16px}
.harrow-next{right:16px}
.harrow:hover.harrow-prev{transform:translateY(-50%) translateX(-2px)}
.harrow:hover.harrow-next{transform:translateY(-50%) translateX(2px)}
.harrow:focus-visible{outline:2px solid #fff;outline-offset:3px;opacity:1}

.hero-dots{position:absolute;left:50%;transform:translateX(-50%);bottom:60px;
  display:flex;gap:10px;z-index:3}
.hdot{width:26px;height:6px;border-radius:999px;border:0;cursor:pointer;padding:0;
  background:rgba(255,255,255,.45);transition:background .3s,width .3s}
.hdot:hover{background:rgba(255,255,255,.7)}
.hdot.is-active{background:var(--hi);width:40px}
.hdot:focus-visible{outline:2px solid #fff;outline-offset:3px}

@media(max-width:900px){
  .harrow{width:38px;height:38px}
  .harrow-prev{left:10px}
  .harrow-next{right:10px}
}
@media(max-width:760px){
  .hero-dots{bottom:50px;gap:8px}
  .hdot{width:20px;height:5px}
  .hdot.is-active{width:30px}
  /* 窄屏把左右按钮移到下方两角、与指示点同排，避开上浮的数据卡片 */
  .harrow{top:auto;bottom:46px;transform:none;width:34px;height:34px;opacity:.75}
  .harrow:hover.harrow-prev,.harrow:hover.harrow-next{transform:none}
  .harrow-prev{left:10px}
  .harrow-next{right:10px}
}
@media(prefers-reduced-motion:reduce){
  .hero-img{transition:none}
  .hero-img.is-active{animation:none}
  .hero-copy{transition:none;transform:none}
}
/* Hero 深色底上的幽灵按钮改为白描边（仅首页 hero 生效，不影响其他页） */
.hero .btn-ghost{border-color:#fff;color:#fff}
.hero .btn-ghost:hover{background:#fff;color:var(--deep)}
/* Hero 深色底上的幽灵按钮改为白描边（仅首页 hero 生效，不影响其他页） */
.hero .btn-ghost{border-color:#fff;color:#fff}
.hero .btn-ghost:hover{background:#fff;color:var(--deep)}
