/* ============================================================================
 * LZD 首页粒子场 · hero-particles.css
 * ----------------------------------------------------------------------------
 * 只作用于首页 hero（#hero.lzd-el-hero）。作品区及以下版块零改动。
 * 层级：环境光(0) → 粒子画布(1) → 压暗遮罩(2) → 文案与按钮(3)
 * ========================================================================== */

/* 粒子就绪后撤掉原来的 A868 照片背景（未就绪时保留，避免白屏空档） */
html.lzd-has-particles body.home .lzd-el-hero {
  background-image: none !important;
  background-color: var(--lzd-black-000, #08080A) !important;
}

/* 环境光：在粒子后面垫一层极淡的冷色雾，避免纯黑底显得死 */
html.lzd-has-particles body.home .lzd-el-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(26% 34% at 23% 32%, rgba(120, 156, 214, .09) 0%, rgba(120, 156, 214, 0) 72%),
    radial-gradient(34% 34% at 72% 40%, rgba(120, 156, 214, .09) 0%, rgba(120, 156, 214, 0) 72%);
}

.lzd-hp-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 压暗遮罩：文字仍然要读得清，但不再需要原来那么重的手 */
/* 头像与 logo 各占一块，画面顶部保持干净；只在下方文案区压暗 */
html.lzd-has-particles body.home .lzd-el-hero::before {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0) 55%,
      rgba(8, 8, 10, .46) 72%, rgba(8, 8, 10, .92) 89%, rgba(8, 8, 10, .97) 100%),
    radial-gradient(38% 26% at 4% 79%, rgba(8, 8, 10, .48) 0%, rgba(8, 8, 10, 0) 100%);
}

html.lzd-has-particles body.home .lzd-el-hero > .elementor-widget,
html.lzd-has-particles body.home .lzd-el-hero > .e-con {
  position: relative;
  z-index: 3;
}

/* ------------------------------------------------------------------ HUD */

.lzd-hp-hud {
  position: absolute;
  right: max(var(--lzd-page-x, 24px), calc((100% - var(--lzd-container, 1440px)) / 2));
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--lzd-font-sans, sans-serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1;
  color: var(--lzd-text-tertiary, #7A7A84);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .9s ease .6s, transform .9s ease .6s;
}

.lzd-hp-ready .lzd-hp-hud {
  opacity: 1;
  transform: none;
}

.lzd-hp-chip {
  appearance: none;
  border: 0;
  background: none;
  padding: 2px 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  cursor: pointer;
  transition: color .35s ease;
  position: relative;
}

.lzd-hp-chip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.lzd-hp-chip:hover,
.lzd-hp-chip:focus-visible {
  color: var(--lzd-text-primary, #F2F2F4);
  outline: none;
}

.lzd-hp-chip[aria-pressed="true"] {
  color: var(--lzd-text-primary, #F2F2F4);
}

.lzd-hp-chip[aria-pressed="true"]::after {
  transform: scaleX(1);
}

.lzd-hp-count {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: .12em;
  color: var(--lzd-text-tertiary, #7A7A84);
}

.lzd-hp-idx {
  color: var(--lzd-text-secondary, #A8A8B0);
}

/* --------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .lzd-hp-hud {
    gap: 12px;
    font-size: 9px;
  }
  .lzd-hp-chip::after {
    bottom: -4px;
  }
}

@media (max-width: 519px) {
  .lzd-hp-canvas--left { display: none !important; }
  html.lzd-has-particles body.home .lzd-el-hero::after {
    background:
      radial-gradient(58% 26% at 50% 16%, rgba(120, 156, 214, .10) 0%, rgba(120, 156, 214, 0) 74%);
  }
  html.lzd-has-particles body.home .lzd-el-hero::before {
    background:
      linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, .10) 24%, rgba(8, 8, 10, .80) 42%, #08080A 56%);
  }
  .lzd-hp-hud {
    bottom: 16px;
    right: 20px;
    gap: 10px;
  }
  /* 手机屏太窄，只留计数，章节靠点击画面左侧/右侧切换 */
  .lzd-hp-chip {
    display: none;
  }
  .lzd-hp-count {
    font-size: 9px;
  }
}

/* 减少动态：静态呈现，不做形变 */
@media (prefers-reduced-motion: reduce) {
  .lzd-hp-hud {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .lzd-hp-chip::after {
    transition: none;
  }
}

/* Readable names are separate from the particle logo. */
.lzd-hp-brandnames{position:absolute;left:48.5%;top:42%;width:46%;display:flex;gap:0;z-index:4;pointer-events:none;color:#c8c8ce;font-size:18px;font-weight:400;letter-spacing:.12em;line-height:1.5;text-align:center;}
.lzd-hp-brandnames span{flex:1;min-width:0;padding:0 8px;}
@media(max-width:519px){.lzd-hp-brandnames{left:7%;width:86%;top:25%;font-size:13px;letter-spacing:.04em;}}

/* Keep all particle motion out of the copy and action area. */
.lzd-hp-canvas{clip-path:inset(0 0 48% 0);}
@media(max-width:519px){.lzd-hp-canvas{clip-path:inset(0 0 65% 0);}}
