/* Guide shares the account shell width but owns its full-screen presentation. */
.dh-welcome,
.dh-welcome * {
  box-sizing: border-box;
}

.dh-welcome {
  --guide-space: clamp(24px, 8vw, 40px);
  --guide-ink: #fff2d4;
  --guide-accent: #ffd686;
  position: fixed;
  inset: 0 0 auto;
  width: min(100%, var(--dh-page-width, 480px));
  max-width: none;
  height: var(--guide-viewport-height, 100vh);
  max-height: none;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  background: #a91f23;
  color: var(--guide-ink);
  font: 400 1rem/1.55 "DH Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.dh-welcome::backdrop {
  background: #531317;
}

@supports (height: 100dvh) {
  .dh-welcome { height: var(--guide-viewport-height, 100dvh); }
}

.dh-welcome-inner {
  display: grid;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  /* Artwork space, primary action, scrollable copy and step dots have separate rows. */
  grid-template-rows: auto minmax(0, 1fr) auto minmax(0, auto) auto;
  row-gap: clamp(8px, 2vh, 16px);
  height: 100%;
  touch-action: pan-y pinch-zoom;
  padding: 12px var(--guide-space);
  padding:
    max(12px, env(safe-area-inset-top, 0px))
    max(var(--guide-space), env(safe-area-inset-right, 0px))
    max(12px, env(safe-area-inset-bottom, 0px))
    max(var(--guide-space), env(safe-area-inset-left, 0px));
}

.dh-welcome-top {
  grid-row: 1;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dh-site .dh-welcome .dh-brand-row {
  color: #fff0cd;
}

.dh-welcome .dh-brand-row-logo {
  filter: drop-shadow(0 0 8px #ffbe624f);
}

.dh-welcome button {
  font: inherit;
  cursor: pointer;
}

.dh-welcome button:focus-visible {
  outline: 2px solid #ffdb91;
  outline-offset: 2px;
}

.dh-welcome .dh-welcome-skip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #ffe0a866;
  border-radius: 16px;
  background: #71151d66;
  color: #fff0cf;
  font-size: .875rem;
  font-weight: 500;
  white-space: nowrap;
}

.dh-welcome .dh-welcome-skip::before {
  display: none;
}

.dh-welcome-slides {
  grid-row: 4;
  min-height: 0;
  padding-top: clamp(16px, 4vh, 32px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y pinch-zoom;
}

.dh-welcome-slide:not([hidden]) {
  display: block;
  min-height: 0;
}

.dh-welcome-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
  isolation: isolate;
  overflow: clip;
}

.dh-welcome-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #8d191e40,
    transparent 18%,
    transparent 40%,
    #8d191e99 60%,
    #8b191ee0 80%,
    #8a181ef0 100%
  );
  content: "";
  pointer-events: none;
}

.dh-welcome-figure {
  position: absolute;
  inset: 0;
  isolation: isolate;
}

.dh-welcome-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.dh-welcome-effects {
  position: absolute;
  inset: 12% 0 auto;
  aspect-ratio: 1;
  max-height: 63%;
  pointer-events: none;
}

.dh-welcome-spark {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffdfa0;
  box-shadow: 0 0 7px 1px #ffb943c9;
  opacity: .58;
  pointer-events: none;
}

.dh-welcome-spark:nth-of-type(3n) { width: 6px; }

.dh-welcome-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: #ffe29b;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-dasharray: 19 81;
  filter: drop-shadow(0 0 5px #ff841d) drop-shadow(0 0 9px #fcb03b);
  opacity: .96;
  pointer-events: none;
}

.dh-welcome-slide--history .dh-welcome-trail { stroke-dasharray: 30 70; opacity: .92; }
.dh-welcome-slide--member .dh-welcome-trail { stroke-dasharray: 24 76; }

.dh-welcome-halo {
  position: absolute;
  inset: 52% 15% 11%;
  border: 1px solid #ffcc76;
  box-shadow: 0 0 13px #ef931d75, inset 0 0 8px #ef931d55;
  border-radius: 50%;
  opacity: .38;
  pointer-events: none;
}

.dh-welcome-copy {
  position: relative;
  padding-block: 8px;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 9px #5d0d15b0;
}

.dh-welcome-copy :is(p, h2) {
  margin: 0;
}

.dh-welcome-copy .dh-welcome-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--guide-accent);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .12em;
}

.dh-welcome-kicker::before {
  width: 9px;
  aspect-ratio: 1;
  background: #f9ce83;
  clip-path: polygon(50% 0, 65% 35%, 100% 50%, 65% 65%, 50% 100%, 35% 65%, 0 50%, 35% 35%);
  content: "";
}

.dh-welcome-copy h2 {
  margin-top: 9px;
  font-size: clamp(1.65rem, 7.4vw, 2.2rem);
  line-height: 1.18;
  font-weight: 780;
  text-shadow: 0 2px 11px #961c2557;
  text-wrap: balance;
}

.dh-welcome-copy h2:focus {
  outline: none;
}

.dh-welcome-copy .dh-welcome-description {
  max-inline-size: 29ch;
  margin-top: 11px;
  color: #fff0dc;
  font-size: clamp(.875rem, 3.6vw, .975rem);
  line-height: 1.65;
}

.dh-welcome-navigation {
  grid-row: 3;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  width: max-content;
  min-width: 112px;
  gap: 8px;
  margin-right: calc(12px - var(--guide-space));
  margin-inline-end: calc(max(12px, env(safe-area-inset-right, 0px)) - max(var(--guide-space), env(safe-area-inset-right, 0px)));
}

.dh-welcome-actions {
  grid-row: 5;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dh-welcome-progress {
  display: flex;
}

.dh-welcome-progress button {
  display: grid;
  width: clamp(28px, 9vw, 44px);
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.dh-welcome-progress button::before {
  width: 7px;
  height: 4px;
  border-radius: 5px;
  background: #ffd49c83;
  transition: width 220ms linear, background-color 220ms linear;
  content: "";
}

.dh-welcome-progress button[aria-current="step"]::before {
  width: 23px;
  background: var(--guide-accent);
  box-shadow: 0 0 9px #ffd27c92;
}

.dh-welcome .dh-welcome-next {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 44px;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid #ffc7799f;
  border-radius: 16px;
  background: linear-gradient(115deg, #ffe19a, #f5b556);
  color: #6c1c20;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 15px #e57b3333, inset 0 1px #ffe19255;
}

.dh-welcome-next svg {
  flex: none;
}

@media (max-height: 420px) {
  .dh-welcome-slides { padding-top: 4px; }
  .dh-welcome-copy h2 { font-size: clamp(1.35rem, 5vw, 1.65rem); }
}

@media (max-height: 320px) {
  .dh-welcome-inner {
    row-gap: 4px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
  }
}

.dh-welcome[open] .dh-welcome-slide:not([hidden]) .dh-welcome-trail :is(circle, path, ellipse) {
  animation: dh-guide-flow 2.8s linear infinite;
}

.dh-welcome[open] .dh-welcome-slide--history:not([hidden]) .dh-welcome-trail path {
  animation-duration: 2.65s;
}

.dh-welcome[open] .dh-welcome-slide--history:not([hidden]) .dh-welcome-trail path + path {
  animation-delay: -1.325s;
}

.dh-welcome[open] .dh-welcome-slide--member:not([hidden]) .dh-welcome-trail ellipse {
  animation-duration: 2.9s;
  animation-direction: reverse;
}

.dh-welcome[open] .dh-welcome-slide:not([hidden]) .dh-welcome-halo {
  animation: dh-guide-ripple 2.8s linear infinite;
}

.dh-welcome[open] .dh-welcome-slide:not([hidden]) .dh-welcome-halo--echo { animation-delay: -1.4s; }

.dh-welcome[open] .dh-welcome-slide:not([hidden]) .dh-welcome-spark {
  animation: dh-guide-spark 3.2s calc(var(--phase) * -.31s) linear infinite;
}

.dh-welcome[open] .dh-welcome-slide:not([hidden]) .dh-welcome-art {
  animation: dh-guide-drift 3.3s linear infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .dh-welcome-progress button::before { transition: none; }
}

@keyframes dh-guide-flow {
  to { stroke-dashoffset: -100; }
}

@keyframes dh-guide-drift {
  from { transform: scale(1.025); }
  to { transform: translate(-2%, 3%) scale(1.14); }
}

@keyframes dh-guide-ripple {
  0% { opacity: 0; transform: scale(.66); }
  26% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.4); }
}

@keyframes dh-guide-spark {
  0% { opacity: 0; transform: translate(0, 10px); }
  30% { opacity: 1; }
  74% { opacity: .7; }
  100% { opacity: 0; transform: translate(16px, -88px); }
}

/* 2026-11-27 引导页长文案排版 */
.dh-welcome-subtitle {
  margin: 8px 0 0;
  color: #ffd89b;
  font-size: clamp(.82rem, 3.4vw, .95rem);
  font-weight: 600;
  letter-spacing: .04em;
}

.dh-welcome-body {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dh-welcome-body p {
  margin: 0;
  padding: 10px 12px 10px 14px;
  border-left: 2px solid #e8b566;
  border-radius: 0 10px 10px 0;
  background: #4f0a0f4d;
  color: #ffe9cf;
  font-size: clamp(.8rem, 3.35vw, .9rem);
  line-height: 1.72;
  text-align: justify;
  text-shadow: 0 1px 6px #4d0a10b3;
}

.dh-welcome-body--cta p:last-child {
  border-left-color: #ffe0a0;
  background: linear-gradient(100deg, #7a1218a6, #a5212699);
  color: #fff4dc;
  font-weight: 550;
}

.dh-welcome-slide--member .dh-welcome-copy h2 {
  font-size: clamp(1.4rem, 6.1vw, 1.85rem);
}

.dh-welcome-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
}

.dh-welcome-timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 39px;
  width: 1px;
  background: linear-gradient(180deg, #ffd79299, #ffd79222);
  content: "";
}

.dh-welcome-milestone {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.dh-welcome-year {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 8px;
  border: 1px solid #e9bd77a8;
  border-radius: 999px;
  background: #5f0d12cc;
  color: #ffdda2;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.dh-welcome-milestone-copy strong {
  display: block;
  color: #fff1d6;
  font-size: .86rem;
  font-weight: 680;
}

.dh-welcome-milestone-copy p {
  margin: 3px 0 0;
  color: #ffe4c2;
  font-size: clamp(.76rem, 3.2vw, .84rem);
  line-height: 1.62;
  text-align: justify;
}

/* 2026-11-27 引导页去卡片化：杂志式正文排版 */
.dh-welcome-copy {
  margin-inline: 0;
  padding-inline: 0;
  padding-bottom: 16px;
  background: none;
}

.dh-welcome-copy h2 {
  font-family: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 700;
  letter-spacing: .01em;
}

.dh-welcome-kicker {
  letter-spacing: .26em;
  font-size: .7rem;
}

.dh-welcome-subtitle {
  color: #ffe1ba;
  font-weight: 500;
  letter-spacing: .08em;
}

.dh-welcome-prose {
  margin-top: 12px;
}

.dh-welcome-prose p {
  margin: 0;
  color: #ffe9d1;
  font-size: clamp(.79rem, 3.3vw, .875rem);
  line-height: 1.95;
  text-align: justify;
  text-indent: 2em;
  text-shadow: 0 1px 3px #3d050ae0, 0 2px 10px #45080ec9;
}

.dh-welcome-prose p + p {
  margin-top: 0;
}

.dh-welcome-coda,
.dh-welcome-prose .dh-welcome-coda {
  color: #ffdca4;
  text-indent: 0;
  text-align: left;
}

.dh-welcome-pull,
.dh-welcome-prose .dh-welcome-pull {
  color: #ffe6b5;
  font-weight: 600;
}

.dh-welcome-divider {
  display: block;
  width: 44px;
  height: 1px;
  margin: 13px 0;
  background: linear-gradient(90deg, #e8b56600, #e8b566cc, #e8b56600);
}



