.home-shell { isolation: isolate; }
.idle-screen, .intro-screen, .route-screen {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.idle-screen, .intro-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ambient-particles, .ambient-particles::before, .ambient-particles::after {
  position: absolute;
  inset: -10%;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 225, 162, .72) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, .35) 0 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px;
  animation: particleFlow 18s linear infinite;
  opacity: .46;
}
.ambient-particles::before { transform: rotate(12deg); animation-duration: 28s; opacity: .32; }
.ambient-particles::after { transform: rotate(-8deg); animation-duration: 36s; opacity: .24; }
@keyframes particleFlow { from { background-position: 0 0, 0 0; } to { background-position: 360px -520px, -300px 400px; } }
.idle-orbit {
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1px solid rgba(245, 212, 139, .22);
  box-shadow: 0 0 80px rgba(245, 212, 139, .08), inset 0 0 80px rgba(245, 212, 139, .05);
  animation: pulseOrbit 4.6s ease-in-out infinite;
}
@keyframes pulseOrbit { 50% { transform: scale(1.12); opacity: .48; } }
.idle-content {
  position: relative;
  z-index: 3;
  text-align: center;
  transform: translateY(-16px);
}
.eyebrow {
  font-size: 18px;
  letter-spacing: .6em;
  color: rgba(245, 212, 139, .78);
  margin-bottom: 28px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.brand-logo {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  padding: 5px;
  background: rgba(255,255,255,.9);
  object-fit: contain;
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}
.idle-content h1 {
  margin: 0;
  color: var(--cream);
  font-size: 76px;
  line-height: 1;
  letter-spacing: .18em;
  text-shadow: 0 0 34px rgba(245, 212, 139, .18);
}
.idle-content p {
  margin: 32px 0 0;
  font-size: 28px;
  letter-spacing: .28em;
  color: rgba(255, 244, 218, .82);
}
.start-btn {
  margin-top: 64px;
  height: 62px;
  padding: 0 40px;
  border-radius: 999px;
  border: 1px solid rgba(245, 212, 139, .28);
  background: linear-gradient(180deg, rgba(129, 48, 24, .46), rgba(63, 14, 10, .54));
  color: rgba(255, 239, 206, .92);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
}
.idle-mascot {
  position: absolute;
  right: 9vw;
  bottom: 7vh;
  width: min(260px, 16vw);
  filter: drop-shadow(0 28px 42px rgba(0,0,0,.28));
  animation: mascotFloat 3.2s ease-in-out infinite;
}
@keyframes mascotFloat { 50% { transform: translateY(-12px) rotate(1.5deg); } }
.intro-screen { background: radial-gradient(circle at center, rgba(125, 14, 24, .82), rgba(18,1,4,.98) 70%); }
.intro-bg-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(245,212,139,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,212,139,.08) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(900px) rotateX(62deg) translateY(170px) scale(1.3);
  transform-origin: center bottom;
  opacity: 0;
  animation: gridTunnel 9s ease-out 2.8s forwards;
}
@keyframes gridTunnel { 0% { opacity: 0; background-position: 0 0; } 25% { opacity: .5; } 100% { opacity: .16; background-position: 0 -600px; } }
.intro-time-line {
  position: absolute;
  left: 10vw;
  right: 10vw;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  animation: timeLineStart 3.1s ease-out forwards;
}
@keyframes timeLineStart { 15% { opacity: 1; } 100% { transform: scaleX(1.18); opacity: .75; } }
.intro-rings {
  position: absolute;
  width: 56vw;
  height: 56vh;
  border-radius: 50%;
  border: 1px solid rgba(245,212,139,.28);
  box-shadow: 0 0 90px rgba(245,212,139,.08), inset 0 0 90px rgba(245,212,139,.05);
  transform: scale(.1);
  opacity: 0;
  animation: rings 4.8s ease-out .4s forwards;
}
@keyframes rings { 40% { opacity: .58; } 100% { transform: scale(1.9); opacity: 0; } }
.intro-title {
  position: absolute;
  top: 16vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  animation: titleInOut 4.8s ease 1s forwards;
}
.intro-title div { margin-bottom: 18px; color: rgba(245,212,139,.76); letter-spacing: .62em; font-size: 16px; }
.intro-title strong { color: var(--cream); font-size: 60px; letter-spacing: .18em; }
@keyframes titleInOut { 18%, 72% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px); } }
.space-tunnel {
  position: absolute;
  left: 50%; top: 50%;
  width: 70vw; height: 62vh;
  transform: translate(-50%, -50%) perspective(900px) rotateX(62deg);
  opacity: 0;
  animation: tunnelIn 6s ease-out 3s forwards;
}
.space-tunnel i {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(100% - var(--i, 0) * 8%);
  height: calc(100% - var(--i, 0) * 8%);
  border: 1px solid rgba(245,212,139,.16);
  transform: translate(-50%, -50%);
}
.space-tunnel i:nth-child(1){--i:1}.space-tunnel i:nth-child(2){--i:2}.space-tunnel i:nth-child(3){--i:3}.space-tunnel i:nth-child(4){--i:4}.space-tunnel i:nth-child(5){--i:5}.space-tunnel i:nth-child(6){--i:6}.space-tunnel i:nth-child(7){--i:7}.space-tunnel i:nth-child(8){--i:8}
@keyframes tunnelIn { 0% { opacity: 0; transform: translate(-50%, -50%) perspective(900px) rotateX(70deg) scale(.35); } 30% { opacity: .65; } 100% { opacity: .18; transform: translate(-50%, -50%) perspective(900px) rotateX(52deg) scale(1.2); } }
.keyword-stream span {
  position: absolute;
  top: 64vh;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(245,212,139,.34);
  background: rgba(0,0,0,.22);
  color: var(--cream);
  font-size: 24px;
  letter-spacing: .2em;
  opacity: 0;
  animation: keywordFly 5.8s ease-in-out forwards;
}
.keyword-stream span:nth-child(1){left:14vw;animation-delay:3.4s}.keyword-stream span:nth-child(2){left:28vw;top:72vh;animation-delay:3.8s}.keyword-stream span:nth-child(3){left:44vw;animation-delay:4.2s}.keyword-stream span:nth-child(4){left:60vw;top:72vh;animation-delay:4.6s}.keyword-stream span:nth-child(5){left:72vw;animation-delay:5s}
@keyframes keywordFly { 15%,70% { opacity: 1; transform: translateY(-16px); } 100% { opacity: 0; transform: translateY(-88px) scale(.92); } }
.history-shards article {
  position: absolute;
  width: 230px;
  height: 136px;
  border-radius: 26px;
  padding: 26px;
  border: 1px solid rgba(245,212,139,.28);
  background: linear-gradient(135deg, rgba(255,255,255,.13), rgba(45,5,9,.5));
  box-shadow: 0 28px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: shardMerge 5s ease-in-out forwards;
}
.history-shards b { display: block; color: var(--gold); font-size: 38px; }
.history-shards em { display: block; margin-top: 12px; color: rgba(255,242,210,.8); font-style: normal; font-size: 20px; letter-spacing: .16em; }
.history-shards article:nth-child(1){left:18vw;top:22vh;animation-delay:6s}.history-shards article:nth-child(2){right:19vw;top:19vh;animation-delay:6.25s}.history-shards article:nth-child(3){left:16vw;bottom:18vh;animation-delay:6.5s}.history-shards article:nth-child(4){right:16vw;bottom:20vh;animation-delay:6.75s}.history-shards article:nth-child(5){left:45vw;bottom:12vh;animation-delay:7s}
@keyframes shardMerge { 15%,70% { opacity: .9; } 100% { opacity: 0; left: calc(50vw - 115px); top: calc(50vh - 68px); transform: scale(.25); } }
.longxiaobei-entrance {
  position: absolute;
  right: 7vw;
  bottom: 8vh;
  display: flex;
  align-items: flex-end;
  gap: 36px;
  opacity: 0;
  transform: translateX(140px);
  animation: guideEnter 1.4s ease-out 10.4s forwards;
}
@keyframes guideEnter { to { opacity: 1; transform: translateX(0); } }
.intro-guide-avatar {
  position: relative;
  width: 270px;
  flex: none;
  filter: drop-shadow(0 34px 56px rgba(0,0,0,.35));
}
.longxiaobei-entrance img {
  display: block;
  width: 100%;
  animation: mascotFloat 3s ease-in-out infinite;
}
.intro-guide-mouth {
  position: absolute;
  left: 52.2%;
  top: 53.7%;
  width: 23.5%;
  height: 10%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255,232,196,.98) 0%, rgba(255,224,184,.98) 58%, rgba(250,203,162,.62) 100%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  transition: opacity .18s ease;
}
.intro-guide-mouth::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 24%;
  transform: translate(-50%, -28%);
  border-radius: 0 0 999px 999px;
  background: #4d130f;
  box-shadow: inset 0 -7px 0 rgba(232, 92, 94, .74);
}
.longxiaobei-entrance.is-speaking .intro-guide-mouth {
  opacity: 1;
  animation: introGuideMouth 0.48s steps(1, end) infinite;
}
@keyframes introGuideMouth {
  0%, 100% {
    width: 23%;
    height: 9%;
  }
  25% {
    width: 24.5%;
    height: 12.2%;
  }
  50% {
    width: 26%;
    height: 14%;
  }
  75% {
    width: 24%;
    height: 10.6%;
  }
}
.longxiaobei-entrance.is-speaking .intro-guide-mouth::after {
  animation: introGuideMouthInner 0.48s steps(1, end) infinite;
}
@keyframes introGuideMouthInner {
  0%, 100% {
    width: 40%;
    height: 20%;
    border-radius: 0 0 999px 999px;
    transform: translate(-50%, -30%);
  }
  25% {
    width: 45%;
    height: 34%;
    border-radius: 46% 46% 56% 56%;
    transform: translate(-50%, -36%);
  }
  50% {
    width: 50%;
    height: 48%;
    border-radius: 46% 46% 58% 58%;
    transform: translate(-50%, -41%);
  }
  75% {
    width: 43%;
    height: 28%;
    border-radius: 46% 46% 55% 55%;
    transform: translate(-50%, -34%);
  }
}
.welcome-bubble {
  max-width: 680px;
  margin-bottom: 68px;
  padding: 32px 36px;
  border-radius: 32px;
  border: 1px solid rgba(245,212,139,.36);
  background: rgba(12,2,5,.5);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.speaker-label { margin-bottom: 12px; color: var(--gold); letter-spacing: .32em; font-size: 16px; }
.welcome-bubble p { margin: 0; color: var(--cream); font-size: 26px; line-height: 1.65; }
.skip-btn {
  position: absolute;
  top: 42px;
  right: 52px;
  z-index: 5;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(245,212,139,.3);
  background: rgba(0,0,0,.22);
  color: var(--cream);
}
.route-screen { padding: 64px 84px; }
.route-header { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 40px; align-items: flex-start; }
.route-header h2 { margin: 0; font-size: 56px; letter-spacing: .14em; color: var(--cream); }
.route-header p { margin: 20px 0 0; color: var(--muted); font-size: 24px; }
.outline-btn { height: 58px; padding: 0 30px; border-radius: 999px; font-size: 20px; }
.routes { position: relative; z-index: 2; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.route-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 36px;
  border: 1px solid rgba(245,212,139,.24);
  background: rgba(255,255,255,.06);
  color: var(--cream);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.route-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; transition: transform .35s ease; }
.route-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 18%, rgba(18,1,4,.88)); }
.route-card:hover img { transform: scale(1.05); }
.route-content { position: relative; z-index: 2; padding: 36px; }
.route-number { color: rgba(245,212,139,.34); font-size: 70px; font-weight: 900; line-height: 1; }
.route-content h3 { margin: 30px 0 16px; font-size: 38px; letter-spacing: .14em; }
.route-content p { margin: 0; min-height: 76px; color: rgba(255,242,210,.76); font-size: 21px; line-height: 1.55; }
.route-action { margin-top: 30px; height: 54px; border-radius: 999px; display:flex; align-items:center; justify-content:center; background: rgba(245,212,139,.14); border:1px solid rgba(245,212,139,.28); font-size: 20px; }
.route-card.route-disabled { opacity: .5; pointer-events: none; }
.routes-mascot { position: absolute; right: 44px; bottom: 18px; width: 150px; opacity: .65; filter: drop-shadow(0 24px 40px rgba(0,0,0,.3)); }

/* 龙小北欢迎页轻动效 */
.intro-longxiaobei-speaking {
  animation: introLongxiaobeiTalk 1.05s ease-in-out infinite;
}
@keyframes introLongxiaobeiTalk {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  40% { transform: translateY(-8px) rotate(-1deg) scale(1.018); }
  70% { transform: translateY(-3px) rotate(1deg) scale(1.012); }
}
