.jwd {
  --jwd-ink: #f4f7ff;
  --jwd-muted: #c2d0ed;
  position: relative;
  isolation: isolate;
  inline-size: 100%;
  overflow: hidden;
  padding: clamp(64px, 8vw, 124px) 0 clamp(48px, 6vw, 90px);
  scroll-margin-block-start: 72px;
  color: var(--jwd-ink);
  background:
    radial-gradient(ellipse at 46% -88%, #306cea 0%, transparent 73%),
    radial-gradient(ellipse at 91% 106%, #292365 0%, transparent 53%),
    radial-gradient(ellipse at 3% 97%, #092b72 0%, transparent 53%),
    linear-gradient(137deg, #0a163c 0%, #040a22 55%, #080c2d 100%);
}

.jwd::before,
.jwd::after {
  position: absolute;
  z-index: -1;
  width: 136%;
  height: 58%;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  content: "";
}

.jwd::before {
  top: -26%;
  left: -23%;
  transform: rotate(-13deg);
  border-bottom-color: #73c9ffb0;
  box-shadow: 0 6px 9px -5px #36b7ff, 0 19px 42px -29px #468aff;
}

.jwd::after {
  right: -40%;
  bottom: -37%;
  transform: rotate(-18deg);
  border-top-color: #a58effa6;
  box-shadow: 0 -5px 17px -8px #9f7eff, 0 -26px 55px -38px #755aff;
}

.jwd [hidden] {
  display: none !important;
}

.jwd-content {
  width: min(1250px, calc(100% - clamp(32px, 10vw, 152px)));
  margin-inline: auto;
}

.jw-demo-scene .jwd {
  overflow: visible;
  padding: 0;
  background: transparent;
}

.jw-demo-scene .jwd::before,
.jw-demo-scene .jwd::after {
  display: none;
}

.jw-demo-scene .jwd-content {
  width: 100%;
}

.jwd-heading {
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}

.jwd-en {
  display: block;
  margin-bottom: 13px;
  color: #d6e8ff;
  font: 720 11px/1.4 Inter, Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jwd .jwd-heading h2 {
  margin: 0;
  color: var(--jwd-ink);
  font-size: clamp(31px, 4.3vw, 64px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.055em;
}

.jwd .jwd-heading p {
  margin: 14px 0 0;
  color: var(--jwd-muted);
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.65;
}

.jwd-window {
  padding: clamp(16px, 2.25vw, 31px);
  border: 1px solid #a5c2ffb0;
  border-radius: clamp(19px, 2.4vw, 33px);
  background:
    linear-gradient(140deg, #4473db34 0%, #091335c9 40%, #111333df 100%),
    #0a1741;
  box-shadow: inset 0 1px 2px #a1d7ff97, inset 0 -2px 5px #9484ff61, 0 0 29px #568cff43, 0 21px 61px #00061d85;
}

.jwd-window-head {
  display: flex;
  gap: 17px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(16px, 2vw, 26px);
}

.jwd-window-head > :first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--jwd-ink);
  font-weight: 670;
  font-size: clamp(14px, 1.4vw, 19px);
}

.jwd-window-head > :last-child {
  color: var(--jwd-muted);
  font-size: 12px;
}

.jwd-film-icon {
  position: relative;
  width: 23px;
  height: 15px;
  border: 1.5px solid #abcbff;
  border-radius: 4px;
}

.jwd-film-icon::before {
  position: absolute;
  top: 3px;
  left: 8px;
  border-block: 3px solid transparent;
  border-left: 5px solid #d3e5ff;
  content: "";
}

.jwd-slash {
  color: #7cb3ff;
}

.jwd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(235px, .97fr);
  gap: clamp(10px, 1.45vw, 20px);
  align-items: stretch;
}

.jwd .jwd-clip {
  position: relative;
  align-self: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  border: 1px solid #82baffc9;
  border-radius: clamp(12px, 1.25vw, 18px);
  background: #08112d;
}

.jwd .jwd-clip-b {
  border-color: #b4a0ffdc;
}

.jwd-clip video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.jwd-clip figcaption {
  position: absolute;
  top: 10px;
  left: 11px;
  margin: 0;
  border: 1px solid #bbd8ff7d;
  border-radius: 20px;
  padding: 3px 9px;
  color: #fff;
  background: #124390ec;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: .04em;
  line-height: 1.4;
  pointer-events: none;
}

.jwd-clip-b figcaption {
  background: #5034a6ec;
}

.jwd .jwd-video-error {
  position: absolute;
  inset: 35% 5% auto;
  margin: 0;
  background: #08112deb;
  color: #fff;
  text-align: center;
}

.jwd-focus {
  position: absolute;
  top: 36%;
  left: 30%;
  width: 9%;
  height: 16%;
  border: 2px solid #abecff;
  border-radius: 3px;
  box-shadow: 0 0 12px #59cfff, 0 0 1px #04152b;
  pointer-events: none;
}

.jwd-feedback {
  min-width: 0;
  border: 1px solid #a8bfff46;
  border-radius: clamp(12px, 1.25vw, 18px);
  padding: clamp(13px, 1.55vw, 22px);
  color: var(--jwd-ink);
  background: linear-gradient(156deg, #37559a47 0%, #0a1538df 74%);
  box-shadow: inset 0 1px 0 #b5ccff20;
}

.jwd .jwd-feedback h3 {
  margin: 0 0 12px;
  color: var(--jwd-ink);
  font-size: 20px;
  font-weight: 720;
  line-height: 1.2;
}

.jwd-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.jwd-form legend {
  margin: 0 0 9px;
  padding: 0;
  color: var(--jwd-muted);
  font-size: 13px;
}

.jwd-choices,
.jwd-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jwd-choices label {
  flex: 1 0 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 39px;
  padding: 6px 9px;
  border: 1px solid #acbdf75c;
  border-radius: 11px;
  color: var(--jwd-ink);
  cursor: pointer;
  font-size: 13px;
}

.jwd-choices label:hover,
.jwd-choices label:has(input:checked) {
  border-color: #a1caff;
  background: #6594f044;
}

.jwd .jwd-choices input[type="radio"] {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  accent-color: #67a9ff;
}

.jwd .jwd-form button.jwd-primary,
.jwd .jwd-result button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  border: 1px solid #c2ceff42;
  border-radius: 11px;
  padding: 7px 11px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.jwd .jwd-form button.jwd-primary {
  width: 100%;
  margin-top: 10px;
  background: linear-gradient(100deg, #075abd, #563ab9);
  font-weight: 670;
}

.jwd .jwd-result button {
  min-height: 36px;
  color: #d6edff;
  background: #25478b6b;
  text-align: left;
  font-size: 12px;
}

.jwd .jwd-form button.jwd-primary:hover,
.jwd .jwd-result button:hover {
  filter: brightness(1.2);
}

.jwd button:focus-visible,
.jwd a:focus-visible,
.jwd-clip video:focus-visible,
.jwd .jwd-source summary:focus-visible {
  outline: 2px solid #a6dbff;
  outline-offset: 4px;
}

.jwd .jwd-result p {
  margin: 0 0 8px;
  color: var(--jwd-muted);
  font-size: 12px;
  line-height: 1.62;
}

.jwd .jwd-result p.jwd-verdict {
  color: #a9dcff;
  font-size: 14px;
  font-weight: 720;
}

.jwd .jwd-result-actions {
  margin-top: 10px;
}

.jwd-end {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: start;
  margin-top: 22px;
}

.jwd .jwd-source {
  max-width: 590px;
  color: var(--jwd-muted);
  font-size: 12px;
}

.jwd .jwd-source summary {
  width: fit-content;
  color: var(--jwd-muted);
  cursor: pointer;
  padding-block: 6px;
}

.jwd .jwd-source p {
  color: var(--jwd-muted);
  margin: 4px 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.jwd .jwd-source a {
  color: #d6e7ff;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.jwd .jwd-continue {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 5px 0;
  color: #dceeff;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  text-decoration: none;
}

.jwd .jwd-continue:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: .25em;
}

@media (max-width: 980px) {
  .jwd-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jwd-feedback {
    grid-column: 1 / -1;
  }

  .jwd .jwd-form button.jwd-primary {
    width: auto;
    min-width: 145px;
  }
}

@media (max-width: 540px) {
  .jwd {
    padding-block: 48px;
  }

  .jwd-content {
    width: calc(100% - 28px);
  }

  .jwd-window {
    padding: 13px;
  }

  .jwd-window-head {
    align-items: start;
    gap: 8px;
  }

  .jwd-window-head > :first-child {
    gap: 5px;
  }

  .jwd-window-head > :last-child {
    font-size: 10px;
  }

  .jwd-film-icon {
    display: none;
  }
}

@media (max-width: 400px) {
  .jwd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .jwd-end {
    flex-wrap: wrap;
  }
}

.jw-demo-scene .jw-transition-ribbon {
  inset: -52px -4% -16px;
  background:
    linear-gradient(180deg,#0a183f26,transparent 24%,transparent 77%,#080e2bc7),
    url('/jianwei-ui/20261129-r45/jianwei-dark-atmosphere.webp') center 56% / cover no-repeat;
  opacity: calc(.63 + var(--jw-demo-light) * .35);
}

.jw-demo-scene .jw-transition-ribbon::before,
.jw-demo-scene .jw-transition-ribbon::after { display: none; }

.jw-demo-scene .jwd-heading {
  margin-bottom: clamp(24px, 3vw, 42px);
}

.jw-demo-scene .jwd-heading h2 {
  font-size: clamp(30px, 4.2vw, 62px);
  color: #f6faff;
  background: linear-gradient(112deg,#fff 26%,#dbeaff 67%,#a09aef);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.jwd-scene-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 21px; }
.jwd-scene-actions > :is(a, button) {
  min-height: 44px;
  min-width: 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  border: 1px solid #bfe0ff8c;
  border-radius: 99px;
  color: #f1f6ff;
  background: #0816339e;
  font-family: inherit; font-size: 14px; font-weight: 690; line-height: 1.25;
  cursor: pointer;
  transition: background .23s, transform .23s;
}
.jwd-scene-actions > :is(a, button):hover { transform: translateY(-2px); background: #152855; }
.zt .jw-home .jwd-scene-actions > a { color: #f1f6ff; }
.jwd-scene-actions .jwd-play-pair {
  border-color: #96b5ffe0;
  background: linear-gradient(120deg,#078eec,#3e57f0 65%,#7755ed);
  box-shadow: inset 0 1px 5px #d0dfff8c, 0 7px 24px #3e61ff5c;
}
.jwd-scene-actions .jwd-play-pair:hover { background: linear-gradient(120deg,#259eef,#5267f8 65%,#8a72f6); }

.jw-demo-scene .jwd-window {
  position: relative;
  border: 1px solid #b6cbffed;
  box-shadow: inset 0 1px 6px #9cdfffab, inset 0 -4px 14px #7473ee7a, 0 0 29px #466bff77, 0 26px 67px #000723a7;
  transform: translate3d(0, calc((1 - var(--jw-demo-light)) * 23px), 0);
}

@media (max-width: 640px) {
  .jw-demo-scene .jw-transition-ribbon { background-position: 53% 45%; }
  .jwd-scene-actions > :is(a, button) { min-width: 0; padding-inline: 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .jw-demo-scene .jwd-window { transform: none; }
}
.zt-reduced-motion .jw-demo-scene .jwd-window { transform: none; }
