/* ============================================================
   首页 · 主标题重做（v7.3 补丁层）
   ------------------------------------------------------------
   去掉原 hero-title SVG（一念启盘 / AI术数开发平台 / 长副标题），
   改成：大字「一念启盘 / 万象归心」+ 小字「搭建算法与术数之间的桥梁」
   + 一枚带流光旋转边框 / 呼吸光晕 / 高光扫过的「开始探索」按钮。
   v7.3：移动端标题放大、按钮描边收细；圆盘缩放由首页 bundle 同步放大。
   只覆盖样式，不改压缩后的 Vue bundle。
   ============================================================ */

/* 原 SVG 标题：彻底隐藏 */
.hero-title-svg[data-v-1650cbd9],
.hero-copy[data-v-1650cbd9] > .hero-title-svg { display: none !important; }

/* v7.2：标题组位置（只移文字块，不动后面的圆盘 canvas）。
   26% 顶住导航、43% 偏低，取 38% —— 上移一点且仍留足顶部余量 */
.hero-copy[data-v-1650cbd9] { top: 38% !important; }

/* hero-copy 本身 pointer-events:none，给标题块让按钮可点 */
.bz-hero-wrap {
  position: relative;
  width: min(760px, 90%);
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
  animation: bzHeroRise .95s cubic-bezier(.2,.85,.25,1) both;
}

/* ---------- 大字标题 ---------- */
.bz-hero-title {
  margin: 0;
  font-family: var(--font-serif, "Noto Serif SC", "Songti SC", serif);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: .26em;
  text-indent: .26em;
  color: #f6f8ff;
  text-shadow: 0 0 26px rgba(127, 168, 255, .32), 0 2px 22px rgba(0, 0, 0, .65);
}
.bz-hero-title .bz-line { display: block; }
/* 两行大字都带金白流光；相位错开 3.4s，避免同步闪动、更有层次 */
.bz-hero-title .bz-line-1,
.bz-hero-title .bz-line-2 {
  background: linear-gradient(100deg, #ffffff 0%, #cfe0ff 32%, #f3d9a0 68%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: bzTitleShine 7s ease-in-out infinite;
}
.bz-hero-title .bz-line-1 { animation-delay: -3.4s; }

/* ---------- 小字副标题 ---------- */
.bz-hero-sub {
  margin: 20px 0 0;
  font-family: var(--font-sans, "PingFang SC", sans-serif);
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 300;
  letter-spacing: .34em;
  text-indent: .34em;
  color: rgba(214, 224, 246, .72);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  animation: bzHeroRise 1s .16s cubic-bezier(.2,.85,.25,1) both;
}
.bz-hero-sub::before,
.bz-hero-sub::after {
  content: "";
  display: inline-block;
  width: clamp(24px, 5vw, 56px);
  height: 1px;
  margin: 0 14px 4px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(243, 217, 160, .75));
}
.bz-hero-sub::after { transform: scaleX(-1); }

/* ---------- 开始探索按钮（v7.1：全程 GPU 合成，流光柔和连续） ----------
   要点：只动 transform / opacity，不用 left、box-shadow 做逐帧动画；
   旋转元素改用 inset:0 + transform-origin:center，杜绝 translate 位移 bug。 */
.bz-explore {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 16, 32, .9);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .42);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
  animation: bzHeroRise 1s .3s cubic-bezier(.2,.85,.25,1) both;
}
/* 外层柔光：独立伪元素，只做 opacity 呼吸（不重绘 box-shadow） */
.bz-explore::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 55%, rgba(47,107,255,.42), rgba(47,107,255,0) 68%);
  opacity: .45;
  z-index: 0;
  pointer-events: none;
  animation: bzBtnGlow 3.6s ease-in-out infinite;
}
/* 旋转流光边框：整圈铺满、中心旋转；渐变首尾同色，衔接无跳变 */
.bz-explore-ring {
  position: absolute;
  inset: -120%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(47,107,255,.35) 0deg, #4d82ff 55deg, #9fc4ff 110deg,
    #f3d9a0 175deg, #9fc4ff 235deg, #4d82ff 290deg, rgba(47,107,255,.35) 360deg);
  transform-origin: 50% 50%;
  animation: bzBtnSpin 6s linear infinite;
  z-index: 0;
  will-change: transform;
}
.bz-explore-core {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 22, 42, .97), rgba(6, 10, 22, .98));
  overflow: hidden;
}
.bz-explore-txt {
  position: relative;
  z-index: 2;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #eaf0ff;
  text-shadow: 0 0 14px rgba(127, 168, 255, .6);
}
.bz-explore-arrow {
  position: relative;
  z-index: 2;
  width: 17px; height: 17px;
  animation: bzArrowBob 2s ease-in-out infinite;
}
.bz-explore-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translate3d(-160%, 0, 0) skewX(-22deg);
  animation: bzBtnShine 4.4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.bz-explore::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 120%, rgba(127,168,255,.24), transparent 62%);
  opacity: .7;
  z-index: 0;
  pointer-events: none;
}
.bz-explore:hover { transform: translateY(-2px); }
.bz-explore:hover .bz-explore-core {
  background: linear-gradient(180deg, rgba(24, 40, 76, .98), rgba(10, 18, 38, .98));
}
.bz-explore:active { transform: translateY(0) scale(.98); }
.bz-explore:focus-visible { outline: 2px solid #7fa8ff; outline-offset: 4px; }

/* 点击涟漪 */
.bz-explore-ripple {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(220, 232, 255, .5);
  transform: scale(0);
  animation: bzRipple .7s ease-out forwards;
  pointer-events: none;
  z-index: 3;
}

/* ---------- 动画 ---------- */
@keyframes bzHeroRise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes bzTitleShine {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
/* 纯旋转：不再叠加 translate(-50%,-50%)，消除旋转轴漂移造成的卡顿观感 */
@keyframes bzBtnSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
/* 高光扫过用 transform（GPU），不再动 left 触发重排 */
@keyframes bzBtnShine {
  0%, 22%  { transform: translate3d(-160%, 0, 0) skewX(-22deg); }
  55%, 100%{ transform: translate3d(360%, 0, 0) skewX(-22deg); }
}
@keyframes bzBtnGlow {
  0%, 100% { opacity: .35; }
  50%      { opacity: .8; }
}
@keyframes bzArrowBob {
  0%, 100% { transform: translateY(-2px); opacity: .85; }
  50%      { transform: translateY(3px); opacity: 1; }
}
@keyframes bzRipple {
  to { transform: scale(26); opacity: 0; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 720px) {
  .bz-hero-wrap { width: 92%; }
  /* v7.3：移动端标题放大，字距略收，保证两行都完整 */
  .bz-hero-title { font-size: clamp(42px, 12.2vw, 58px); letter-spacing: .14em; text-indent: .14em; }
  .bz-hero-sub { margin-top: 16px; letter-spacing: .2em; text-indent: .2em; }
  .bz-hero-sub::before, .bz-hero-sub::after { width: 20px; margin: 0 8px 3px; }
  /* v7.3：按钮流光描边由 2px 收到 1px，更精致 */
  .bz-explore { margin-top: 26px; padding: 1px; }
  .bz-explore-core { padding: 12px 26px; }
  .bz-explore-txt { font-size: 14px; }
  .hero-static-img { transform: scale(1.14) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .bz-hero-wrap, .bz-hero-sub, .bz-explore { animation: none !important; }
  .bz-hero-title .bz-line-2,
  .bz-explore-ring, .bz-explore-shine, .bz-explore-arrow,
  .bz-explore::before { animation: none !important; }
}
