/* 今日运势 · Premium UI v3 */

.ts-scope.daily-home {
  --dp-gold: #fbbf24;
  --dp-violet: #a855f7;
  --dp-pink: #e879f9;
  --dp-glass: rgba(18, 10, 32, 0.72);
}

/* ── Hero 氛围层 ── */
.ts-scope.daily-home .lj-daily-hero-bg .lj-aurora {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(236, 72, 153, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 80%, rgba(59, 130, 246, 0.15), transparent 55%);
  animation: dp-aurora-shift 18s ease-in-out infinite alternate;
  filter: blur(40px);
}
@keyframes dp-aurora-shift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.06); }
}

.ts-scope.daily-home .lj-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(1px);
}
.ts-scope.daily-home .lj-orb--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  right: -4%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
  animation: dp-orb-float 12s ease-in-out infinite;
}
.ts-scope.daily-home .lj-orb--2 {
  width: 200px;
  height: 200px;
  bottom: 18%;
  left: -2%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
  animation: dp-orb-float 14s ease-in-out infinite reverse;
}
@keyframes dp-orb-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(12px, -18px, 0); }
}

.ts-scope.daily-home .lj-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 45%, transparent 30%, rgba(5, 3, 10, 0.55) 100%);
}

.ts-scope.daily-home h1.lj-mainline {
  background: linear-gradient(120deg, #fff 0%, #f5e8ff 35%, #fde68a 70%, #e9d5ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: dp-title-shine 8s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 2px 24px rgba(168, 85, 247, 0.35));
}
@keyframes dp-title-shine {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.ts-scope.daily-home .lj-subline {
  position: relative;
  display: inline-block;
}
.ts-scope.daily-home .lj-subline::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--dp-pink), var(--dp-gold), transparent);
  opacity: 0.6;
}

/* ── 卡牌舞台 ── */
.ts-scope.daily-home .lj-card-stage-wrap {
  position: relative;
  padding: 24px 0 8px;
}

.ts-scope.daily-home .lj-card-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(320px, 92vw);
  height: min(480px, 130vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.ts-scope.daily-home .lj-card-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(168, 85, 247, 0.22);
  animation: dp-orbit-spin 24s linear infinite;
}
.ts-scope.daily-home .lj-card-orbit-ring--inner {
  inset: 12%;
  border-style: solid;
  border-color: rgba(251, 191, 36, 0.12);
  animation-duration: 18s;
  animation-direction: reverse;
}
@keyframes dp-orbit-spin {
  to { transform: rotate(360deg); }
}

.ts-scope.daily-home .lj-orbit-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dp-gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.9);
}
.ts-scope.daily-home .lj-orbit-spark--1 { top: 0; left: 50%; transform: translateX(-50%); animation: dp-spark-pulse 2s ease-in-out infinite; }
.ts-scope.daily-home .lj-orbit-spark--2 { bottom: 8%; right: 12%; animation: dp-spark-pulse 2.4s ease-in-out infinite 0.5s; }
.ts-scope.daily-home .lj-orbit-spark--3 { bottom: 8%; left: 12%; animation: dp-spark-pulse 2.2s ease-in-out infinite 1s; }
@keyframes dp-spark-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ts-scope.daily-home .lj-card-stage {
  z-index: 2;
  animation: dp-card-idle 5s ease-in-out infinite;
}
.ts-scope.daily-home .lj-card-stage.is-ready {
  animation: dp-card-breathe 3.5s ease-in-out infinite;
  cursor: pointer;
}
.ts-scope.daily-home .lj-card-stage.is-revealed {
  animation: none;
}
@keyframes dp-card-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes dp-card-breathe {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 20px 40px rgba(124, 58, 237, 0.35)); }
  50% { transform: translateY(-10px) scale(1.02); filter: drop-shadow(0 28px 56px rgba(168, 85, 247, 0.55)); }
}

.ts-scope.daily-home .lj-card-stage.is-ready #df-back .lj-tilt-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.12) 48%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.1) 52%,
    transparent 65%
  );
  background-size: 250% 100%;
  animation: dp-card-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes dp-card-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -30% 0; }
}

.ts-scope.daily-home .lj-cta-wrap {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}
.ts-scope.daily-home .lj-cta-main {
  position: relative;
  z-index: 1;
  overflow: hidden;
  letter-spacing: 0.04em;
}
.ts-scope.daily-home .lj-cta-main.is-pulse:not(:disabled)::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(168, 85, 247, 0.5));
  z-index: -1;
  animation: dp-cta-ring 2.5s ease-out infinite;
  opacity: 0;
}
@keyframes dp-cta-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}
.ts-scope.daily-home .lj-cta-main:not(:disabled) {
  background: linear-gradient(135deg, #7c3aed 0%, #9333ea 40%, #c026d3 100%);
  box-shadow:
    0 0 32px rgba(168, 85, 247, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, filter 0.2s;
}
.ts-scope.daily-home .lj-cta-main:not(:disabled):hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 0 48px rgba(192, 132, 252, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.4);
}
.ts-scope.daily-home .lj-cta-main:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

.ts-scope.daily-home .lj-cta-hint {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: rgba(216, 180, 254, 0.75);
  letter-spacing: 0.08em;
  animation: dp-hint-fade 3s ease-in-out infinite;
}
@keyframes dp-hint-fade {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.ts-scope.daily-home .lj-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 32px auto 0;
  color: rgba(196, 181, 220, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  transition: color 0.2s, transform 0.2s;
}
.ts-scope.daily-home .lj-scroll-hint i {
  animation: dp-scroll-bounce 2s ease-in-out infinite;
  font-size: 1rem;
  color: var(--dp-gold);
}
@keyframes dp-scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.ts-scope.daily-home .lj-scroll-hint:hover {
  color: #fde68a;
  transform: translateY(2px);
}

/* ── 冷却倒计时环 ── */
.ts-scope.daily-home .lj-daily-cooldown {
  position: relative;
  overflow: hidden;
}
.ts-scope.daily-home .lj-cooldown-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}
.ts-scope.daily-home .lj-cooldown-ring svg {
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
  flex-shrink: 0;
}
.ts-scope.daily-home .lj-cooldown-ring circle {
  fill: none;
  stroke-width: 3;
}
.ts-scope.daily-home .lj-cooldown-ring .ring-bg {
  stroke: rgba(168, 85, 247, 0.2);
}
.ts-scope.daily-home .lj-cooldown-ring .ring-fg {
  stroke: url(#dpCooldownGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

/* ── 揭示仪式进度条 ── */
.daily-reveal-overlay .daily-reveal-progress {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  width: min(280px, 70vw);
  z-index: 20;
  opacity: 0;
  transition: opacity 0.4s;
}
.daily-reveal-overlay.show .daily-reveal-progress.is-active {
  opacity: 1;
}
.daily-reveal-progress-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.daily-reveal-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dp-violet), var(--dp-gold));
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
  transition: width 0.3s ease;
}

/* ── 三步引导 ── */
.ts-scope.daily-home #dailySteps .lj-step-visual-inner {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(168, 85, 247, 0.25),
    0 0 60px rgba(124, 58, 237, 0.15);
}
.ts-scope.daily-home #dailySteps .lj-step-visual-inner img {
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ts-scope.daily-home #dailySteps .lj-step-visual-inner img.show {
  transform: scale(1);
}
.ts-scope.daily-home #dailySteps .lj-step-visual-inner img:not(.show) {
  transform: scale(1.04);
}
.ts-scope.daily-home .lj-step-item {
  transition: opacity 0.35s, transform 0.35s;
}
.ts-scope.daily-home .lj-step-item:not(.on) {
  opacity: 0.45;
}
.ts-scope.daily-home .lj-step-item.on {
  opacity: 1;
  transform: translateX(4px);
}

/* ── 六维卡片 scroll reveal ── */
.ts-scope.daily-home .lj-analysis-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s,
    box-shadow 0.25s;
}
.ts-scope.daily-home .lj-analysis-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ts-scope.daily-home .lj-analysis-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), transparent 40%, rgba(251, 191, 36, 0.25));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.ts-scope.daily-home .lj-analysis-card:hover::before {
  opacity: 1;
}
.ts-scope.daily-home .lj-analysis-card {
  position: relative;
}

/* ── 解读弹窗维度增强 ── */
.daily-reading-dim {
  position: relative;
  padding-left: 14px;
  border-left: 3px solid rgba(168, 85, 247, 0.35);
  transition: border-color 0.3s, background 0.3s;
}
.daily-reading-dim:hover {
  border-left-color: rgba(251, 191, 36, 0.65);
  background: rgba(124, 58, 237, 0.06);
  border-radius: 0 12px 12px 0;
}
.daily-reading-dim-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-right: 8px;
  font-size: 0.9rem;
  vertical-align: middle;
  background: rgba(124, 58, 237, 0.25);
}
.daily-reading-star-meter {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 0 12px;
  overflow: hidden;
}
.daily-reading-star-meter-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c3aed, #fbbf24);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.45);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.daily-reading-mask.show .daily-reading-star-meter-fill {
  transform: scaleX(var(--meter, 0));
}

.daily-reading-modal.v2 .daily-reading-thumb-wrap.v2 {
  animation: dp-thumb-glow 4s ease-in-out infinite;
}
@keyframes dp-thumb-glow {
  0%, 100% { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(251, 191, 36, 0.25); }
  50% { box-shadow: 0 20px 48px rgba(124, 58, 237, 0.35), 0 0 24px rgba(251, 191, 36, 0.2); }
}

/* ── 底部导航 sticky ── */
@media (max-width: 768px) {
  .ts-scope.daily-home .lj-daily-bottom-nav {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    margin-bottom: 8px;
    padding: 10px 12px;
    border-radius: 20px;
    background: var(--dp-glass);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

/* ── 视差容器 ── */
.ts-scope.daily-home .lj-daily-hero-inner {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .ts-scope.daily-home .lj-card-stage,
  .ts-scope.daily-home .lj-aurora,
  .ts-scope.daily-home .lj-orb,
  .ts-scope.daily-home h1.lj-mainline,
  .ts-scope.daily-home .lj-cta-hint,
  .ts-scope.daily-home .lj-scroll-hint i {
    animation: none !important;
  }
  .ts-scope.daily-home .lj-daily-hero-inner {
    transform: none !important;
  }
}
