:root {
  font-family: 'Inter', 'Poppins', 'Jersey 20', system-ui, -apple-system,
    BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
  background: #f7f7f7;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f7f7f7;
  color: #0a0908;
}

.guide-shell {
  position: relative;
  /* 统一为与 GAFA2.0 相同的手机画布尺寸：375 × 812 */
  width: 375px;
  min-height: 812px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px 20px 100px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

/* 窄屏（如 iPhone 17 / 428 宽）下，保持满宽显示并自适应高度 */
@media (max-width: 428px) {
  .guide-shell {
    width: 100%;
    max-width: 375px;
    min-height: 100vh;
  }
}

.blob {
  position: absolute;
  filter: blur(50px);
  z-index: 0;
}

.blob-a {
  width: 257px;
  height: 294px;
  left: -88px;
  top: 20px;
  background: rgba(180, 242, 225, 0.81);
}

.blob-b {
  width: 200px;
  height: 548px;
  left: -150px;
  top: 260px;
  background: rgba(250, 145, 145, 0.6);
  transform: rotate(150deg);
}

.blob-c {
  width: 392px;
  height: 532px;
  left: 52px;
  top: 48px;
  background: rgba(255, 233, 197, 0.61);
  transform: rotate(28deg);
  filter: blur(45px);
}

.blob-d {
  width: 120px;
  height: 120px;
  right: 10px;
  top: 80px;
  background: #ffe9c5;
  filter: blur(40px);
}

.guide-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.back-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.back-button .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #0a0908;
  border-bottom: 2px solid #0a0908;
  transform: rotate(45deg);
}

.logo {
  font-family: 'Jersey 20', cursive;
  font-size: 26px;
  letter-spacing: 2px;
}

.current-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  animation: slide-down-fade 0.5s ease-out both;
}

.current-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.current-icon span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 6px solid #0a0908;
}

.current-copy .label-cn {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.current-copy .label-en {
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.floor-plan {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  border-radius: 16px;
  background: #e6e6e6;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.map-icon {
  width: 24px;
  height: 24px;
  display: grid;
  gap: 2px;
}

.bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #0a0908;
}

.floor-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.1;
}

.floor-text strong {
  font-size: 11px;
}

.map-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.map-card {
  position: relative;
  height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 38px rgba(0, 0, 0, 0.2);
  animation: float-in 0.6s ease-out 0.1s both;
}

.map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.route-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.route-svg path {
  fill: none;
  stroke: #000000;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
}

.node {
  fill: #ffffff;
  stroke-width: 3;
}

.node-start {
  stroke: #000000;
}

.node-end {
  stroke: #b2a000;
}

.node-shadow {
  fill: rgba(0, 0, 0, 0.08);
  stroke: none;
}

.route-sheet {
  position: relative;
  z-index: 1;
  background: #fafafa;
  border-radius: 40px;
  padding: 28px 24px 32px;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.18);
  animation: slide-up-fade 0.5s ease-out 0.15s both;
}

.route-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.route-head .time {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.route-head strong {
  font-size: 24px;
}

.route-head span {
  font-size: 14px;
  opacity: 0.7;
}

.route-head .hint {
  margin: 0;
  font-size: 13px;
  opacity: 0.6;
}

.route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.route-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.route-steps .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0a0908;
  margin-top: 4px;
}

.route-steps p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.route-steps small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6c6b6b;
}

.home-fab {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #0a0908;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-fab-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.home-fab-icon::before,
.home-fab-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-color: currentColor;
}

.home-fab-icon::before {
  width: 16px;
  height: 10px;
  bottom: 2px;
  border: 1.5px solid currentColor;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.home-fab-icon::after {
  width: 12px;
  height: 12px;
  top: 0;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

.home-fab:active {
  transform: translate(-50%, 1px) scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@keyframes slide-down-fade {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slide-up-fade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

