/* AI 生意經：七秒影片定局首屏與四條閱讀路徑 */
.jing-video-hero {
  min-height: 100svh;
  isolation: isolate;
  background: #030507;
}

.jing-video-hero .jing-ink { display: none; }
.jing-video-hero .jing-scroll { display: none; }

.jing-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: brightness(.52) saturate(.72) contrast(1.1);
  transform: scale(1.018);
  pointer-events: none;
}

.jing-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(2, 4, 7, .46) 0 20%, rgba(2, 4, 7, .27) 46%, rgba(2, 3, 5, .64) 100%),
    linear-gradient(180deg, rgba(1, 3, 5, .48) 0%, rgba(2, 4, 7, .1) 38%, rgba(3, 4, 6, .36) 72%, rgba(6, 8, 12, .82) 100%),
    linear-gradient(90deg, rgba(1, 2, 4, .45), transparent 28%, transparent 72%, rgba(1, 2, 4, .45));
}

.jing-video-hero .jing-hero-inner {
  transition: opacity .61s ease, transform .61s cubic-bezier(.22, .61, .36, 1), filter .61s ease;
}

.jing-video-hero.is-timed .jing-kicker,
.jing-video-hero.is-timed .jing-sub,
.jing-video-hero.is-timed .jing-scroll,
.jing-video-hero.is-timed .jing-seal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .58s ease, transform .58s ease;
}

.jing-video-hero.is-timed .jing-lines .ch {
  opacity: 0;
  transform: translateY(.34em);
  filter: blur(6px);
  transition: opacity .59s ease, transform .59s ease, filter .59s ease;
}

.jing-video-hero.is-kicker-visible .jing-kicker,
.jing-video-hero.is-sub-visible .jing-sub,
.jing-video-hero.is-sub-visible .jing-scroll,
.jing-video-hero.is-sub-visible .jing-seal {
  opacity: 1;
  transform: none;
}

.jing-video-hero.is-line-one-visible .jing-lines .jl:nth-of-type(1) .ch,
.jing-video-hero.is-line-two-visible .jing-lines .jl:nth-of-type(2) .ch {
  opacity: 1;
  transform: none;
  filter: none;
}

.jing-video-hero.is-copy-retiring .jing-hero-inner {
  opacity: 0;
  transform: translateY(-18px) scale(.97);
  filter: blur(3px);
  pointer-events: none;
}

.jing-pathways {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.jing-pathway {
  --path-x: 50%;
  --path-y: 50%;
  position: absolute;
  left: var(--path-x);
  top: var(--path-y);
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  color: #f0e6cf;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  cursor: pointer;
  pointer-events: none;
  transition: opacity .4s ease var(--path-delay, 0s), transform .5s cubic-bezier(.2, .75, .25, 1.2) var(--path-delay, 0s);
}

.jing-video-hero.is-pathways-visible .jing-pathway {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.jing-pathway-dot {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #f3dfaf 0 8%, #b48a43 34%, #59401f 70%, #21170d 100%);
  border: 1px solid rgba(239, 211, 153, .82);
  box-shadow: 0 0 0 7px rgba(198, 155, 77, .1), 0 0 30px rgba(210, 166, 83, .36);
}

.jing-pathway-dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(222, 184, 111, .5);
  border-radius: 50%;
  transition: transform .35s ease, opacity .35s ease;
}

.jing-pathway-copy {
  position: absolute;
  left: 50px;
  top: 50%;
  min-width: 132px;
  padding: 8px 11px 9px;
  text-align: left;
  transform: translateY(-50%);
  border: 1px solid rgba(206, 165, 90, .35);
  background: rgba(4, 6, 9, .78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  backdrop-filter: blur(8px);
}

.jing-pathway.is-copy-left .jing-pathway-copy {
  left: auto;
  right: 50px;
  text-align: right;
}

.jing-pathway-copy b,
.jing-pathway-copy small { display: block; }
.jing-pathway-copy b {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .18em;
}
.jing-pathway-copy small {
  margin-top: 3px;
  color: rgba(240, 230, 207, .64);
  font-size: .68rem;
  letter-spacing: .08em;
  white-space: nowrap;
}

.jing-pathway:hover .jing-pathway-dot,
.jing-pathway:focus-visible .jing-pathway-dot {
  box-shadow: 0 0 0 9px rgba(198, 155, 77, .16), 0 0 42px rgba(225, 184, 99, .58);
}
.jing-pathway:hover .jing-pathway-dot::after,
.jing-pathway:focus-visible .jing-pathway-dot::after {
  opacity: .9;
  transform: scale(1.2);
}
.jing-pathway:focus-visible { outline: 0; }
.jing-pathway:focus-visible .jing-pathway-copy { border-color: rgba(240, 207, 139, .8); }

.jing-pathways-intro {
  position: absolute;
  left: 50%;
  bottom: clamp(68px, 8vh, 86px);
  margin: 0;
  color: rgba(240, 230, 207, .72);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 12px;
  letter-spacing: .38em;
  text-indent: .38em;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .47s ease .32s, transform .47s ease .32s;
}
.jing-video-hero.is-pathways-visible .jing-pathways-intro {
  opacity: 1;
  transform: translate(-50%, 0);
}

.jing-grid a.jing-recommended {
  z-index: 3;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(211, 170, 91, .9), 0 0 0 8px rgba(211, 170, 91, .08), 0 18px 54px rgba(126, 88, 24, .3);
  animation: jing-recommended-arrive .85s cubic-bezier(.2, .72, .25, 1);
}
.jing-grid a.jing-recommended:focus,
.jing-grid a.jing-recommended:focus-visible { outline: 0; }
.jing-grid a.jing-recommended::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(224, 184, 104, .88);
  box-shadow: inset 0 0 24px rgba(211, 170, 91, .08);
}
.jing-grid a.jing-recommended::after {
  content: "本路徑建議先讀";
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 7px 10px 6px;
  color: #f2e7cf;
  background: rgba(9, 10, 12, .88);
  border: 1px solid rgba(224, 184, 104, .62);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 11px;
  letter-spacing: .16em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

@keyframes jing-recommended-arrive {
  0% { box-shadow: 0 0 0 0 rgba(211, 170, 91, 0), 0 0 0 0 rgba(211, 170, 91, 0), 0 0 0 rgba(126, 88, 24, 0); }
  48% { box-shadow: 0 0 0 1px rgba(241, 207, 137, 1), 0 0 0 13px rgba(211, 170, 91, .13), 0 20px 66px rgba(156, 111, 30, .42); }
  100% { box-shadow: 0 0 0 1px rgba(211, 170, 91, .9), 0 0 0 8px rgba(211, 170, 91, .08), 0 18px 54px rgba(126, 88, 24, .3); }
}

@media (max-width: 700px) {
  .jing-hero-video {
    object-position: 50% center;
    filter: brightness(.47) saturate(.68) contrast(1.12);
  }
  .jing-video-shade {
    background:
      radial-gradient(circle at 50% 42%, rgba(2, 4, 7, .42) 0 16%, rgba(2, 4, 7, .36) 50%, rgba(2, 3, 5, .78) 100%),
      linear-gradient(180deg, rgba(1, 3, 5, .58), rgba(2, 4, 7, .14) 35%, rgba(6, 8, 12, .9) 100%);
  }
  .jing-pathways {
    display: block;
    padding: 0;
  }
  .jing-pathway,
  .jing-video-hero.is-pathways-visible .jing-pathway {
    position: absolute;
    left: var(--mobile-x);
    top: var(--mobile-y);
    width: 38px;
    min-height: 0;
    height: 38px;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    transform: translate(-50%, -50%) scale(.5);
  }
  .jing-video-hero.is-pathways-visible .jing-pathway { transform: translate(-50%, -50%) scale(1); }
  .jing-pathway-dot {
    position: absolute;
    inset: 6px;
    width: auto;
    height: auto;
  }
  .jing-pathway-copy,
  .jing-pathway.is-copy-left .jing-pathway-copy {
    position: absolute;
    left: 50%;
    right: auto;
    top: 42px;
    min-width: 132px;
    padding: 7px 9px 8px;
    text-align: center;
    transform: translateX(-50%);
    border: 1px solid rgba(206, 165, 90, .32);
    background: rgba(4, 6, 9, .72);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
    backdrop-filter: blur(7px);
  }
  .jing-pathway-copy b { font-size: .82rem; }
  .jing-pathway-copy small { font-size: .62rem; white-space: normal; }
  .jing-grid a.jing-recommended::after {
    content: "建議先讀";
    top: 8px;
    left: 8px;
    padding: 5px 7px 4px;
    font-size: 9px;
    letter-spacing: .12em;
  }
  .jing-pathways-intro {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translate(-50%, 8px);
    text-align: center;
  }
  .jing-video-hero.is-pathways-visible .jing-pathways-intro { transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .jing-video-hero.is-timed .jing-kicker,
  .jing-video-hero.is-timed .jing-sub,
  .jing-video-hero.is-timed .jing-scroll,
  .jing-video-hero.is-timed .jing-seal,
  .jing-video-hero.is-timed .jing-lines .ch,
  .jing-pathway,
  .jing-pathways-intro,
  .jing-grid a.jing-recommended {
    transition: none;
    animation: none;
  }
}
