/* Dream Taken · 与小程序同源的明亮 / 暗夜 */

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] {
  --dl-void: #fafaf8;
  --dl-cream: #1a1a1a;
  --dl-gold: #c9a962;
  --dl-gold-bright: #c9a962;
  --dl-violet: #6b5b95;
  --color-text-primary: rgba(26, 26, 26, 0.92);
  --color-text-secondary: rgba(26, 26, 26, 0.52);
  --color-text-tertiary: rgba(26, 26, 26, 0.36);
  --color-primary: #c9a962;
  --color-primary-deep: #c9a962;
  --color-accent: #6b5b95;
  --bg-page: #fafaf8;
  --mp-card: #ffffff;
  --mp-line: rgba(0, 0, 0, 0.07);
  --mp-line-strong: rgba(0, 0, 0, 0.12);
  --mp-btn: #1a1a1a;
  --mp-btn-text: #fafaf8;
}

html[data-theme="dark"] {
  --dl-void: #050505;
  --dl-cream: #f0e0bc;
  --dl-gold: #d4b87a;
  --dl-gold-bright: #e8d4a8;
  --dl-violet: #b8a0e8;
  --color-text-primary: rgba(240, 224, 188, 0.94);
  --color-text-secondary: rgba(232, 212, 168, 0.58);
  --color-text-tertiary: rgba(232, 212, 168, 0.32);
  --color-primary: #e8d4a8;
  --bg-page: #050505;
  --mp-card: rgba(255, 255, 255, 0.03);
  --mp-line: rgba(198, 167, 106, 0.14);
  --mp-line-strong: rgba(198, 167, 106, 0.28);
  --mp-btn: #e8d4a8;
  --mp-btn-text: #050505;
}

body {
  background: var(--bg-page, var(--dl-void));
  color: var(--color-text-primary);
  transition: background-color 0.28s ease, color 0.28s ease;
}

/* 主 banner：小程序夜航卡 — 纸面上的暗金舞台 */
.home-stage {
  margin: 0 auto;
  max-width: var(--max-w);
  padding: calc(var(--header-h) + 1.15rem) 1.5rem 0;
  position: relative;
  z-index: 2;
}

.dl-hero--harbor,
html[data-theme="light"] .dl-hero--harbor,
html[data-theme="dark"] .dl-hero--harbor {
  --dl-cream: #f0e0bc;
  --dl-gold: #d4b87a;
  --dl-gold-bright: #e8d4a8;
  --dl-void: #08070b;
  --dl-violet: #b8a0e8;
  --color-text-primary: rgba(240, 224, 188, 0.96);
  --color-text-secondary: rgba(232, 212, 168, 0.62);
  --color-text-tertiary: rgba(232, 212, 168, 0.38);
  --color-primary: #e8d4a8;
  background: #08070b;
  border: 1px solid rgba(201, 169, 98, 0.2);
  border-radius: 1.75rem;
  box-shadow:
    0 24px 64px rgba(8, 6, 4, 0.22),
    inset 0 1px 0 rgba(232, 212, 168, 0.18);
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: min(38.5rem, calc(100svh - var(--header-h) - 4.2rem));
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.dl-hero--harbor::before {
  display: none;
}

html[data-theme="light"] .dl-hero--harbor {
  border-color: rgba(201, 169, 98, 0.28);
  box-shadow:
    0 28px 80px rgba(40, 28, 8, 0.16),
    inset 0 1px 0 rgba(232, 212, 168, 0.2);
}

html[data-theme="dark"] .dl-hero--harbor {
  border-color: rgba(201, 169, 98, 0.16);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(232, 212, 168, 0.12);
}

.dl-hero--harbor .dl-hero__sea,
.dl-hero--harbor .dl-hero__shaft,
.dl-hero--harbor .dl-hero__vignette,
.dl-hero--harbor .dl-hero__aura {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.dl-hero--harbor .dl-hero__sea { overflow: hidden; z-index: 1; }
.dl-hero--harbor .dl-hero__shaft { z-index: 1; }
.dl-hero--harbor .dl-hero__aura { opacity: 0; overflow: hidden; transition: opacity 0.9s ease; z-index: 0; }
.dl-hero--harbor .dl-hero__aura.is-on { opacity: 0.34; }
.dl-hero--harbor .dl-hero__vignette { z-index: 1; }

.dl-hero--harbor .dl-hero__aura img {
  animation: dl-aura-drift 28s ease-in-out infinite alternate;
  filter: brightness(0.42) saturate(0.62) contrast(1.12);
  height: 118%;
  left: -9%;
  object-fit: cover;
  position: absolute;
  top: -9%;
  transform-origin: center;
  width: 118%;
}

@keyframes dl-aura-drift {
  from { transform: scale(1.05) translate3d(-2%, 1%, 0); }
  to { transform: scale(1.18) translate3d(3%, -2%, 0); }
}

.dl-hero--harbor .dl-hero__route {
  border: 1px solid transparent;
  border-radius: 50%;
  position: absolute;
}

.dl-hero--harbor .dl-hero__route--1 {
  border-top-color: rgba(201, 169, 98, 0.28);
  height: 140%;
  left: -28%;
  top: 6%;
  transform: rotate(-26deg);
  width: 148%;
}

.dl-hero--harbor .dl-hero__route--2 {
  border-bottom-color: rgba(232, 212, 168, 0.16);
  height: 118%;
  right: -32%;
  top: 18%;
  transform: rotate(18deg);
  width: 132%;
}

.dl-hero--harbor .dl-hero__port {
  background: #e8d4a8;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(201, 169, 98, 0.7);
  height: 6px;
  position: absolute;
  width: 6px;
}

.dl-hero--harbor .dl-hero__port--a { left: 14%; top: 22%; }
.dl-hero--harbor .dl-hero__port--b { bottom: 18%; right: 16%; }

.dl-hero--harbor .dl-hero__shaft {
  background: radial-gradient(ellipse 58% 46% at 50% -8%, rgba(232, 212, 168, 0.22) 0%, transparent 72%);
}

.dl-hero--harbor .dl-hero__vignette {
  background:
    radial-gradient(ellipse 70% 58% at 50% 36%, transparent 28%, rgba(8, 7, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 7, 11, 0.2) 0%, transparent 28%, transparent 62%, rgba(8, 7, 11, 0.45) 100%);
}

.dl-hero--harbor .dl-orbit {
  --orbit-r: 15.5rem;
  left: 50%;
  top: 38%;
  z-index: 2;
}

.dl-hero--harbor .dl-orbit__name {
  display: none;
}

.dl-hero--harbor .dl-orbit__icon {
  border-radius: 0.55rem;
  height: 2.35rem;
  width: 2.35rem;
}

.dl-hero--harbor .dl-orbit--go .dl-orbit__icon-wrap {
  opacity: 0.5;
}

.dl-hero--harbor .dl-orbit__icon-wrap.is-live {
  opacity: 1 !important;
}

.dl-hero--harbor .dl-orbit__icon-wrap.is-live .dl-orbit__icon {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(212, 184, 122, 0.75), 0 0 16px rgba(212, 184, 122, 0.3);
  transform: scale(1.08);
}

.dl-hero--harbor .dl-hero__stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  position: relative;
  width: 100%;
  z-index: 4;
}

.dl-hero--harbor .dl-hero__copy {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem 1.5rem 0.6rem;
  position: relative;
  text-align: center;
}

.dl-hero--harbor .dl-hero__copy-veil {
  background: radial-gradient(ellipse 64% 50% at 50% 50%, rgba(7, 6, 10, 0.28) 0%, transparent 72%);
  inset: -3rem -1.5rem;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.dl-hero--harbor .dl-hero__h1 {
  align-items: center;
  display: flex;
  flex-direction: column;
  font-size: inherit;
  font-weight: 800;
  margin: 0;
  width: 100%;
}

.dl-hero--harbor .dl-hero__line1 {
  color: #faf6ef;
  display: block;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.08;
  text-indent: 0.08em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.dl-hero--harbor .dl-hero__line2 {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
  min-height: 2rem;
}

.dl-hero--harbor .dl-hero__typing {
  animation: dl-gradient-shift 6s ease-in-out infinite;
  background: linear-gradient(90deg, #f5ecd4, #d4b87a, #e8d4a8, #c9a962);
  background-clip: text;
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dl-hero--harbor .dl-hero__cursor {
  color: #e8d4a8;
  font-size: 1.35rem;
  font-weight: 300;
  width: 0.5em;
}

.dl-hero--harbor .dl-hero__cursor--ghost {
  animation: none;
  opacity: 0;
}

.dl-hero--harbor .dl-hero__plats-lock {
  display: flex;
  justify-content: center;
  margin-top: 1.05rem;
  min-height: 2.7rem;
  width: 100%;
}

.dl-hero--harbor .dl-hero__plats {
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(16, 14, 20, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
}

.dl-hero--harbor .dl-hero__plat {
  align-items: center;
  animation: dl-plat-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 99rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  display: flex;
  height: 2.15rem;
  justify-content: center;
  overflow: hidden;
  width: 2.15rem;
}

.dl-hero--harbor .dl-hero__plat:nth-child(2) { animation-delay: 0.07s; }
.dl-hero--harbor .dl-hero__plat:nth-child(3) { animation-delay: 0.14s; }

.dl-hero--harbor .dl-hero__plat img {
  display: block;
  height: 1.22rem;
  object-fit: contain;
  width: 1.22rem;
}

.dl-hero--harbor .dl-hero__plat.is-ink img {
  filter: none;
}

@keyframes dl-plat-in {
  from { opacity: 0; transform: translateY(8px) scale(0.78); }
  to { opacity: 1; transform: none; }
}

.dl-hero--harbor .dl-hero__dock {
  padding: 0.4rem 1.6rem 1.35rem;
  position: relative;
  width: 100%;
  z-index: 4;
}

.dl-hero--harbor .dl-hero__dock-row {
  align-items: center;
  display: flex;
  gap: 1.1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 46rem;
}

.dl-hero--harbor .dl-hero__spot {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  min-width: 0;
  text-align: left;
}

.dl-hero--harbor .dl-hero__spot-thumb {
  border-radius: 0.55rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  height: 2.35rem;
  overflow: hidden;
  width: 2.35rem;
}

.dl-hero--harbor .dl-hero__spot-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dl-hero--harbor .dl-hero__spot-body {
  min-width: 0;
}

.dl-hero--harbor .dl-hero__spot-row {
  align-items: baseline;
  display: flex;
  gap: 0.45rem;
}

.dl-hero--harbor .dl-hero__spot-kicker {
  color: rgba(250, 246, 239, 0.55);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.dl-hero--harbor .dl-hero__spot-name {
  color: #faf6ef;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-hero--harbor .dl-hero__spot-desc {
  color: rgba(240, 224, 188, 0.55);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.1rem 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-hero--harbor .dl-hero__spot-cursor {
  color: #c9a962;
}

.dl-hero--harbor .dl-hero__cta {
  display: flex;
  flex-shrink: 0;
  gap: 0.55rem;
  justify-content: flex-end;
  margin: 0;
}

.dl-hero--harbor .dl-cta-main,
.dl-hero--harbor .dl-cta-sub {
  font-size: 0.88rem;
  min-height: 2.7rem;
  padding: 0.55rem 1.25rem;
}

.dl-hero--harbor .dl-cta-main {
  color: #1a1408;
}

.dl-hero--harbor .dl-cta-sub {
  background: rgba(232, 212, 168, 0.06);
  border-color: rgba(232, 212, 168, 0.22);
  color: #f0e0bc;
}

.dl-hero--harbor .dl-cta-sub:hover {
  background: rgba(212, 184, 122, 0.1);
  border-color: rgba(212, 184, 122, 0.4);
  color: #e8d4a8;
}

.dl-hero--harbor .dl-hero__partners {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  margin: 0.9rem -1.6rem 0;
  overflow: hidden;
  width: calc(100% + 3.2rem);
}

.dl-hero--harbor .dl-hero__partners-runner {
  animation: dl-partners-scroll 22s linear infinite;
  display: flex;
  width: max-content;
}

.dl-hero--harbor .dl-hero__partners-track {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.45rem;
  padding-right: 0.45rem;
}

.dl-hero--harbor .dl-hero__partner {
  align-items: center;
  border-radius: 0;
  display: flex;
  flex-shrink: 0;
  height: 1.55rem;
  justify-content: center;
  overflow: visible;
  width: 4.2rem;
}

.dl-hero--harbor .dl-hero__partner img {
  display: block;
  height: 1.15rem;
  object-fit: contain;
  opacity: 0.88;
  width: 3.9rem;
}

.dl-hero--harbor .dl-hero__partner.is-dark img {
  filter: invert(1);
}

@keyframes dl-partners-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

html[data-theme="light"] .dl-bg__flow,
html[data-theme="light"] .dl-bg__orb,
html[data-theme="light"] .dl-bg__grid,
html[data-theme="light"] .dl-bg__particles {
  display: none;
}

html[data-theme="light"] .dl-bg {
  background: #fafaf8;
}

html[data-theme="dark"] .dl-bg {
  background: #050505;
}

@media (max-width: 56rem) {
  .home-stage {
    padding: calc(var(--header-h) + 0.85rem) 1rem 0;
  }

  .dl-hero--harbor {
    border-radius: 1.35rem;
    min-height: 32rem;
  }

  .dl-hero--harbor .dl-orbit {
    --orbit-r: 12.25rem;
    top: 34%;
  }

  .dl-hero--harbor .dl-hero__dock-row {
    align-items: stretch;
    flex-direction: column;
    gap: 0.85rem;
  }

  .dl-hero--harbor .dl-hero__cta {
    justify-content: flex-start;
  }
}

@media (max-width: 48rem) {
  .dl-hero--harbor .dl-orbit {
    --orbit-r: 10.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-hero--harbor .dl-hero__partners-runner,
  .dl-hero--harbor .dl-hero__aura img,
  .dl-hero--harbor .dl-hero__plat {
    animation: none;
  }
}

@media (max-width: 40rem) {
  .dl-hero--harbor .dl-orbit {
    --orbit-r: 8.75rem;
  }

  .dl-hero--harbor .dl-hero__cta {
    width: 100%;
  }

  .dl-hero--harbor .dl-cta-main,
  .dl-hero--harbor .dl-cta-sub {
    flex: 1;
    justify-content: center;
  }
}

/* Header */
html[data-theme="light"] .dl-header {
  background: rgba(250, 250, 248, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: none;
}

html[data-theme="light"] .dl-brand__cn {
  color: #1a1a1a;
}

html[data-theme="light"] .dl-brand__en {
  color: rgba(26, 26, 26, 0.48);
}

html[data-theme="light"] .dl-brand__sep {
  color: rgba(26, 26, 26, 0.22);
}

html[data-theme="light"] .dl-nav__link {
  color: rgba(26, 26, 26, 0.72);
}

html[data-theme="light"] .dl-nav__link:hover,
html[data-theme="light"] .dl-nav__link.is-active {
  color: #1a1a1a;
}

html[data-theme="light"] .dl-nav__cta {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fafaf8;
}

html[data-theme="light"] .dl-nav__cta:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #fff;
}

html[data-theme="light"] .dl-nav__toggle {
  border-color: rgba(26, 26, 26, 0.14);
  color: #1a1a1a;
}

html[data-theme="light"] .dl-mnav {
  background: rgba(250, 250, 248, 0.98);
  border-top-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .dl-mnav__link {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

html[data-theme="light"] .dl-mnav__link span {
  color: rgba(26, 26, 26, 0.42);
}

html[data-theme="light"] .dl-lang__track {
  background: rgba(26, 26, 26, 0.05);
  border-color: rgba(26, 26, 26, 0.1);
}

html[data-theme="light"] .dl-lang__opt {
  color: rgba(26, 26, 26, 0.38);
}

html[data-theme="light"] .dl-lang__opt.is-active {
  color: #1a1a1a;
  text-shadow: none;
}

html[data-theme="light"] .dl-lang__indicator {
  background: rgba(201, 169, 98, 0.22);
  border-color: rgba(201, 169, 98, 0.35);
}

html[data-theme="light"] .dl-grad {
  background: none;
  -webkit-text-fill-color: unset;
  color: #1a1a1a;
}

/* Footer / CTA / buttons below hero */
html[data-theme="light"] .dl-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .dl-cta-band {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .dl-cta-band .dl-cta-main,
html[data-theme="light"] .st-cta .dl-cta-main,
html[data-theme="light"] .st-page .dl-cta-main {
  background: #1a1a1a;
  color: #fafaf8;
}

html[data-theme="light"] .dl-cta-band .dl-cta-sub,
html[data-theme="light"] .st-page .dl-cta-sub {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}

html[data-theme="light"] .dl-btn--gold {
  background: #1a1a1a;
  box-shadow: none;
  color: #fafaf8;
}

html[data-theme="light"] .dl-btn--outline {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}

html[data-theme="light"] .dl-modal {
  background: #fff;
  color: #1a1a1a;
}

html[data-theme="light"] .dl-modal-backdrop {
  background: rgba(26, 26, 26, 0.45);
}

/* Studio pages */
html[data-theme="light"] .st-sku,
html[data-theme="light"] .st-plan,
html[data-theme="light"] .st-step,
html[data-theme="light"] .st-faq details,
html[data-theme="light"] .st-vis-card {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .st-sku--hot,
html[data-theme="light"] .st-plan--hot {
  background: linear-gradient(165deg, #fffaf0, #fff);
  border-color: rgba(201, 169, 98, 0.35);
}

html[data-theme="light"] .st-table {
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .st-table th {
  background: rgba(201, 169, 98, 0.08);
  color: #8a7340;
}

html[data-theme="light"] .st-hair {
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

html[data-theme="light"] .st-chapter__wm {
  color: rgba(0, 0, 0, 0.04);
}

/* Theme toggle — 对齐小程序 */
.mp-toggle {
  align-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0;
}

.mp-toggle__track {
  background: var(--toggle-track, rgba(26, 26, 26, 0.06));
  border: 1px solid var(--mp-line, rgba(0, 0, 0, 0.07));
  border-radius: 99rem;
  height: 1.5rem;
  position: relative;
  width: 2.75rem;
}

html[data-theme="dark"] .mp-toggle__track {
  background: rgba(255, 255, 255, 0.06);
}

.mp-toggle__thumb {
  background: #c9a962;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  height: 1.1rem;
  left: 0.18rem;
  position: absolute;
  top: 0.16rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  width: 1.1rem;
}

html[data-theme="light"] .mp-toggle__thumb {
  transform: translateX(1.22rem);
}

html[data-theme="dark"] .mp-toggle__thumb {
  background: #e8d4a8;
  transform: none;
}

.mp-toggle__label {
  color: var(--color-text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@media (max-width: 56rem) {
  .mp-toggle__label {
    display: none;
  }
}

.dl-mnav .mp-toggle {
  margin: 0.4rem 0 1rem;
  padding: 0.35rem 0;
}

.dl-mnav .mp-toggle__label {
  display: inline;
}

/* Locale toast must not inherit light-theme ink tokens */
html[data-theme="light"] .dl-locale-toast,
html[data-theme="light"] .dl-locale-toast__icon,
html[data-theme="light"] .dl-locale-toast__text {
  color: #f6eedc;
}

html[data-theme="light"] .dl-locale-toast {
  background: #161412;
  border-color: rgba(201, 169, 98, 0.42);
}

html[data-theme="light"] .dl-locale-toast__close {
  background: rgba(255, 255, 255, 0.1);
  color: #f0e6d0;
}
