/* JquanUI atomic-first residual CSS: visual, responsive and interaction-only. Demo V3.58 */
:root {
  --chapter-rust: #b4763b;
  --chapter-azurite: #4e96ac;
  --chapter-ink: #020505;
}

html {
  background: var(--chapter-ink);
}

.chapter-page {
  background: var(--chapter-ink);
  font-family: var(--sans);
}

.chapter-page .global-nav {
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 5, 5, .78), transparent);
}

.chapter-page .global-nav.scrolled {
  background: rgba(2, 5, 5, .92);
}



.chapter-top-progress {
  background: rgba(255, 255, 255, .13);
}

.chapter-top-progress i {
  background: var(--chapter-azurite);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}



.chapter-stage::-webkit-scrollbar {
  display: none;
}

.chapter-stage.is-wheel-scrolling,
.chapter-stage.is-dragging {
  scroll-snap-type: none;
}

.chapter-stage.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.chapter-preface {
  border: 1px solid rgba(184, 152, 101, .38);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(184, 152, 101, .16), rgba(78, 150, 172, .1)),
    rgba(2, 5, 5, .58);
  color: rgba(255, 255, 255, .9);
  font: 600 14px/1 var(--sans);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px) saturate(1.35);
  transition: transform .28s var(--ease), border-color .28s var(--ease), background .28s var(--ease), color .28s var(--ease), box-shadow .28s var(--ease);
}

.chapter-preface i {
  color: var(--chapter-rust);
}

.chapter-preface:hover,
.chapter-preface:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(78, 150, 172, .78);
  background:
    linear-gradient(135deg, rgba(184, 152, 101, .22), rgba(78, 150, 172, .18)),
    rgba(2, 5, 5, .82);
  color: #fff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 0 1px rgba(78, 150, 172, .2) inset;
}




.chapter-stage .chapter-panel {
  background: var(--chapter-ink);
  contain: layout paint style;
}

.chapter-panel--chapter::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: linear-gradient(180deg, transparent, rgba(78, 150, 172, .42), transparent);
  pointer-events: none;
}

.chapter-media {
  background: #07100f;
  pointer-events: none;
}

.chapter-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .42), rgba(0, 0, 0, .24) 46%, rgba(0, 0, 0, .30));
  pointer-events: none;
}

.chapter-media img,
.chapter-media video {
  filter: saturate(.92) contrast(1.08) brightness(1.08);
  animation: chapter-image-drift 48s linear infinite alternate;
  animation-play-state: paused;
  will-change: transform;
}

.chapter-panel--client .chapter-client-visual {
  object-position: center center;
  filter: saturate(.98) contrast(1.08) brightness(1.12);
}

.chapter-panel[aria-current="true"] .chapter-media img,
.chapter-panel[aria-current="true"] .chapter-media video {
  animation-play-state: running;
}

.chapter-panel--chapter:nth-of-type(even) .chapter-media img,
.chapter-panel--chapter:nth-of-type(even) .chapter-media video {
  animation-direction: alternate-reverse;
}

/* Keep the decorative wordmark composited only for the visible chapter. */
.chapter-panel:not([aria-current="true"]) .chapter-art-signature {
  visibility: hidden;
}

@keyframes chapter-image-drift {
  from { transform: translate3d(-.8%, 0, 0) scale(1.015); }
  to { transform: translate3d(.8%, -.6%, 0) scale(1.035); }
}



.chapter-number,
.chapter-guide-number {
  color: var(--chapter-rust);
  font: 600 14px/1 var(--sans);
  letter-spacing: .22em;
}

.chapter-main-copy h2 {
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  line-height: 1.05;
}

.chapter-main-copy h3 {
  color: rgba(255, 255, 255, .7);
  font: 600 14px/1.4 var(--sans);
}

.chapter-main-copy > p {
  color: rgba(255, 255, 255, .82);
  font-family: var(--serif);
  font-weight: 300;
}

.chapter-main-copy > p .zh {
  font-family: "Noto Serif SC", serif;
  letter-spacing: .035em;
}

.chapter-main-copy > * {
  opacity: .35;
  transform: translate3d(-18px, 0, 0);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.chapter-panel[aria-current="true"] .chapter-main-copy > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.chapter-panel[aria-current="true"] .chapter-main-copy > :nth-child(2) { transition-delay: .05s; }
.chapter-panel[aria-current="true"] .chapter-main-copy > :nth-child(3) { transition-delay: .1s; }
.chapter-panel[aria-current="true"] .chapter-main-copy > :nth-child(4) { transition-delay: .15s; }
.chapter-panel[aria-current="true"] .chapter-main-copy > :nth-child(5) { transition-delay: .2s; }



.chapter-read {
  border-color: rgba(255, 255, 255, .22);
  background:
    linear-gradient(180deg, var(--chapter-rust), var(--chapter-azurite)) left top / 0% 100% no-repeat,
    rgba(2, 5, 5, .36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), background-size .42s var(--ease);
}

.chapter-read i {
  color: var(--chapter-azurite);
  transition: transform .32s var(--ease), color .32s var(--ease);
}

.chapter-read:hover,
.chapter-read:focus-visible {
  background-size: 100% 100%, auto;
}

.chapter-read:hover i,
.chapter-read:focus-visible i {
  color: #fff;
  transform: translateX(4px);
}

.chapter-eyebrow {
  color: #82b7c1;
  font: 500 14px/1 var(--sans);
}

.chapter-closing-copy h2 {
  color: #fff;
  font-family: var(--title);
  font-weight: 300;
}

.chapter-closing-copy h2 .zh {
  font-family: "Noto Serif SC", serif;
  letter-spacing: .1em;
}

.chapter-closing .chapter-media::after {
  background: linear-gradient(90deg, rgba(2, 5, 5, .72), rgba(2, 5, 5, .5) 55%, rgba(2, 5, 5, .34));
}





.chapter-closing-copy > div {
  color: rgba(255, 255, 255, .72);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.9;
}

.chapter-closing-copy > div.zh {
  font-family: "Noto Serif SC", serif;
}





.chapter-exit {
  border-color: rgba(255, 255, 255, .28);
  background:
    linear-gradient(180deg, var(--chapter-rust), var(--chapter-azurite)) left top / 0% 100% no-repeat,
    rgba(2, 5, 5, .36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
  transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), background-size .42s var(--ease);
}

.chapter-exit i {
  color: var(--chapter-azurite);
  transition: transform .32s var(--ease), color .32s var(--ease);
}

.chapter-exit:hover,
.chapter-exit:focus-visible {
  background-size: 100% 100%, auto;
}

.chapter-exit:hover i,
.chapter-exit:focus-visible i {
  color: #fff;
  transform: translateX(4px);
}

.chapter-dots {
  background: rgba(2, 5, 5, .42);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}

.chapter-dots button {
  border: 0;
  background: transparent;
}

.chapter-dots button i {
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  transition: width .3s var(--ease), border-radius .3s var(--ease), background .3s var(--ease);
}

.chapter-dots button[aria-current="step"] i {
  width: var(--active-dot-width, 22px);
  border-radius: 4px;
  background: var(--chapter-azurite);
}

.chapter-dot-status {
  color: rgba(255, 255, 255, .42);
  font: 600 14px/1 var(--sans);
}

.chapter-dot-status b {
  color: #fff;
  font: inherit;
}

.chapter-guide {
  transition: visibility .45s, opacity .45s;
}



.chapter-guide-backdrop {
  border: 0;
  background: rgba(0, 0, 0, .72);
  /* backdrop-filter: blur(5px); */
}

.chapter-guide-sheet {
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: #07100f;
  box-shadow: -25px 0 80px rgba(0, 0, 0, .4);
  transform: translateX(100%);
  transition: transform .65s var(--ease);
}

.chapter-guide.is-open .chapter-guide-sheet {
  transform: translateX(0);
}

.chapter-guide-close {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(7, 16, 15, .86);
  color: #fff;
}

.chapter-guide-scroll {
  scrollbar-color: var(--chapter-azurite) transparent;
}

.chapter-guide-scroll h2 {
  color: #fff;
  font-weight: 300;
  line-height: 1.07;
}

.chapter-guide-scroll h2 .zh {
  font-family: "Noto Serif SC", serif;
  letter-spacing: .1em;
}

.chapter-guide-scroll h2 .en {
  font-family: var(--title);
  letter-spacing: .035em;
}

.chapter-guide-scroll h2 small {
  color: #86afb6;
  font: 500 14px/1.4 var(--sans);
  letter-spacing: .16em;
}

/* 唱丝内部分组手风琴（参考 demo .acc） */
.chapter-guide-accordion {
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.chapter-guide-acc {
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.chapter-guide-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: rgba(255, 255, 255, .82);
  transition: padding-left .3s ease;
}

.chapter-guide-acc-head:hover {
  padding-left: 12px;
}

.chapter-guide-acc-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 2px 0;
}

.chapter-guide-acc-en {
  flex: 0 0 auto;
  font: normal 600 12px/1.2 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--chapter-rust);
}

.chapter-guide-acc-cn {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 17px;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .1em;
}

.chapter-guide-acc-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, .55);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), color .25s ease;
}

.chapter-guide-acc-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chapter-guide-acc[data-open="true"] .chapter-guide-acc-arrow {
  transform: rotate(180deg);
  color: var(--chapter-rust);
}

.chapter-guide-acc[data-open="true"] .chapter-guide-acc-head {
  padding-left: 12px;
}

.chapter-guide-acc[data-open="true"] .chapter-guide-acc-cn {
  color: rgba(255, 255, 255, 1);
}

.chapter-guide-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .42s cubic-bezier(.2, .7, .2, 1);
}

.chapter-guide-acc[data-open="true"] .chapter-guide-acc-panel {
  grid-template-rows: 1fr;
}

.chapter-guide-acc-inner {
  overflow: hidden;
  min-height: 0;
}

.chapter-guide-acc-inner .chapter-guide-prose {
  padding: 0 4px 24px 12px;
}

.chapter-guide-prose em {
  font-style: italic;
  color: rgba(255, 255, 255, .88);
}

.chapter-guide-prose.zh em {
  font-style: normal;
  color: rgba(255, 255, 255, .88);
}

.chapter-guide-prose {
  color: rgba(255, 255, 255, .72);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.95;
}

.chapter-guide-prose.zh {
  font-family: "Noto Serif SC", serif;
  line-height: 2.08;
}



.chapter-watch {
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-left: 2px solid var(--chapter-rust);
}

.chapter-watch > span {
  color: var(--chapter-rust);
  font: 600 14px/1 var(--sans);
}

.chapter-watch p {
  color: rgba(255, 255, 255, .82);
  font: normal 300 17px/1.75 var(--serif);
}

.chapter-watch p.zh {
  font-family: "Noto Serif SC", serif;
}

@media (max-width: 760px) {
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .chapter-panel--client-01 .chapter-client-visual { object-position: 32% center; }
  .chapter-panel--client-02 .chapter-client-visual { object-position: 34% center; }
  .chapter-panel--client-03 .chapter-client-visual { object-position: 68% center; }
  .chapter-panel--client-04 .chapter-client-visual { object-position: 72% center; }
  .chapter-panel--client-05 .chapter-client-visual { object-position: 50% center; }
  .chapter-panel--client-06 .chapter-client-visual { object-position: 72% center; }
  .chapter-panel--client-07 .chapter-client-visual { object-position: 30% center; }

  .chapter-panel--chapter::before {
    top: auto;
    right: 20px;
    bottom: 0;
    width: calc(100% - 40px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(78, 150, 172, .42), transparent);
  }

}

@media (prefers-reduced-motion: reduce) {
  .chapter-media img,
  .chapter-media video,
  .chapter-guide,
  .chapter-guide-sheet,
  .chapter-dots button i {
    animation: none !important;
    transition: none !important;
  }
}


/* Demo V3.60 task2 visual pass: lighten client imagery while retaining black-gold cinematic depth. */
.chapter-panel--client .chapter-main-copy {
  text-shadow: 0 18px 44px rgba(0, 0, 0, .72), 0 0 22px rgba(184, 152, 101, .12);
}
.chapter-panel--client .chapter-number,
.chapter-panel--client h3 {
  color: var(--chapter-rust);
}
.chapter-panel--client::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2, 5, 5, .58), transparent);
}
@media (min-width: 761px) {
  .chapter-panel--client .chapter-main-copy {
    bottom: clamp(76px, 8.5vh, 112px);
  }
}


/* Demo V3.60 final art/UI sweep: chapters guide and exit polish. */
.chapter-guide,
.chapter-guide-trigger,
.chapter-closing a {
  border-color: rgba(225, 201, 144, .32) !important;
  color: #fff8e4;
}
.chapter-guide-trigger:hover,
.chapter-guide-trigger:focus-visible,
.chapter-closing a:hover,
.chapter-closing a:focus-visible {
  background: linear-gradient(180deg, var(--chapter-rust), var(--chapter-azurite)) !important;
  color: #030303 !important;
  backdrop-filter: blur(12px) saturate(132%);
}
.chapter-guide-sheet {
  border-color: rgba(225, 201, 144, .28) !important;
  background: linear-gradient(180deg, rgba(8, 6, 4, .96), rgba(3, 3, 3, .96)) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.62), inset 0 0 0 1px rgba(255,248,228,.04);
}
.chapter-dots button[aria-current="true"] i { background: linear-gradient(90deg, var(--chapter-rust), var(--chapter-azurite)); }


/* Demo V3.60 chapters title i18n fit. */
html[lang=en] .chapter-main-copy .chapter-subtitle {
  color: rgba(255, 248, 228, .74);
  font-family: "Noto Serif SC", serif;
  letter-spacing: .18em;
}


/* Demo V3.60 final report polish: chapters cinematic legibility. */
.chapter-top-progress { background: rgba(225, 201, 144, .16); }
.chapter-top-progress i { background: linear-gradient(90deg, var(--chapter-rust), var(--chapter-azurite), #e1c990); }
.chapter-panel--client .chapter-main-copy::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(225, 201, 144, .70), rgba(78, 150, 172, .54), transparent);
  opacity: .76;
}
.chapter-panel--client .chapter-title .zh,
.chapter-panel--client .chapter-title .en {
  color: #fff8e4;
  text-shadow: 0 18px 48px rgba(0, 0, 0, .76), 0 0 20px rgba(225, 201, 144, .16);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chapter-panel--client .chapter-title .zh,
  .chapter-panel--client .chapter-title .en {
    background: linear-gradient(90deg, #fff8e4 0%, #e1c990 45%, var(--chapter-azurite) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.chapter-panel--client .chapter-subtitle {
  color: rgba(225, 201, 144, .84);
  text-shadow: 0 12px 32px rgba(0, 0, 0, .72);
}
.chapter-panel--client .chapter-text {
  color: rgba(255, 248, 228, .82);
}
.chapter-dots {
  border: 1px solid rgba(225, 201, 144, .16);
  border-radius: 999px;
  background: rgba(3, 3, 3, .35);
  backdrop-filter: blur(12px) saturate(130%);
}
@media (max-width: 760px) {
  .chapter-panel--client .chapter-main-copy::before { left: -12px; }
}

/* Signature glow is baked into the optimized WebP assets; avoid runtime image filters. */
.chapter-art-signature__img {
  display: block;
}
