:root {
  --primary-color: #3b76f6;
  --primary-gradient: linear-gradient(135deg, #4484f9, #286dee);
  --primary-light: #eef5fe;
  --bubble-user: #5496fc;
  --text-main: #263238;
  --text-secondary: #5a6a7e;
  --text-muted: #8c9ba8;
  --badge-red-bg: #ffeceb;
  --badge-red-text: #f53f3f;
  --badge-blue-bg: #eaf3ff;
  --badge-blue-text: #2b7af7;
  --badge-yellow-bg: #fef4e5;
  --badge-yellow-text: #f28a16;
  --card-shadow: 0 4px 20px rgba(0, 60, 150, 0.07);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html,
body,
div,
main,
section {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(180deg, #cce3fc 0%, #e2effe 30%, #eef5ff 60%, #f6faff 100%);
  color: var(--text-main);
}

.mobile-wrapper {
  width: 100%;
  max-width: 440px;
  height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.top-header {
  height: 56px;
  padding: 12px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 20;
}

.location-capsule {
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 7px 16px 7px 12px;
  border-radius: 22px;
  cursor: pointer;
}

.location-capsule:active {
  transform: scale(0.96);
}

.location-capsule .pin-icon {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  object-fit: contain;
}

.location-capsule .city-name {
  font-size: 15px;
  font-weight: 500;
  color: #273444;
  letter-spacing: 0.3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 45, 110, 0.06);
  transition: transform 0.15s ease, background-color 0.2s;
  border: none;
  outline: none;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.chat-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0 95px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.chat-scroll-container::-webkit-scrollbar {
  display: none;
}

.hero-card {
  margin: 62px 16px 20px;
  background: #ffffff;
  border-radius: 24px;
  padding: 58px 14px 22px;
  position: relative;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 60, 150, 0.06);
}

.hero-avatar-wrapper {
  position: absolute;
  top: -55px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(28, 70, 140, 0.12);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  isolation: isolate;
}

.hero-avatar-wrapper img,
.hero-avatar-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  background: #ffffff;
}

.hero-avatar-wrapper video::-webkit-media-controls,
.hero-avatar-wrapper video::-webkit-media-controls-enclosure {
  display: none !important;
}

/* 右侧播报数字人浮窗模块 - 与hero-avatar-wrapper一致质感 */
.side-avatar-module {
  position: absolute;
  top: 76px;
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 8px 24px rgba(20, 60, 140, 0.16));
  animation: sideAvatarSlideIn 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  user-select: none;
}

.side-avatar-module.closing {
  animation: sideAvatarSlideOut 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
  pointer-events: none;
}

.side-avatar-close {
  position: absolute;
  top: -4px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(0, 40, 120, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  outline: none;
  padding: 0;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.side-avatar-close:hover {
  background: #ff4d4f;
  color: #ffffff;
  border-color: #ff4d4f;
  transform: scale(1.1);
}

.side-avatar-close:active {
  transform: scale(0.92);
}

.side-avatar-wrapper {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 6px 22px rgba(28, 70, 140, 0.12);
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  isolation: isolate;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.side-avatar-wrapper img,
.side-avatar-wrapper video {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  display: block;
  background: #ffffff;
}

.side-avatar-wrapper video::-webkit-media-controls,
.side-avatar-wrapper video::-webkit-media-controls-enclosure {
  display: none !important;
}

.side-avatar-module.speaking .side-avatar-wrapper {
  box-shadow: 0 0 0 3px rgba(67, 140, 247, 0.45), 0 8px 24px rgba(28, 70, 140, 0.2);
  animation: avatarSpeakingPulse 2s infinite ease-in-out;
}

.side-avatar-badge {
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(28, 70, 140, 0.12);
  border: 1px solid rgba(60, 120, 240, 0.15);
}

.side-avatar-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: statusDotPulse 1.2s infinite;
}

.side-avatar-badge .badge-text {
  font-size: 11px;
  font-weight: 600;
  color: #2b356d;
  letter-spacing: 0.3px;
}

.side-avatar-module.paused .side-avatar-badge .badge-dot {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

.side-avatar-module.paused .side-avatar-badge .badge-text {
  color: #64748b;
}

@keyframes sideAvatarSlideIn {
  0% {
    opacity: 0;
    transform: translate3d(50px, 0, 0) scale(0.85);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes sideAvatarSlideOut {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate3d(50px, 0, 0) scale(0.85);
  }
}

@keyframes avatarSpeakingPulse {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(67, 140, 247, 0.3), 0 8px 22px rgba(28, 70, 140, 0.18);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(67, 140, 247, 0.6), 0 8px 26px rgba(28, 70, 140, 0.26);
  }
}

@keyframes statusDotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

.hero-title {
  font-size: 21px;
  font-weight: 700;
  color: #2b356d;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.hero-title .title-accent {
  color: #4b52e6;
  background: linear-gradient(135deg, #3d58f3, #6b40f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 13.5px;
  color: #556579;
  margin: 10px 0 22px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.status-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.status-card {
  flex: 1;
  min-width: 0;
  background: #f4f8fe;
  border-radius: 18px;
  padding: 16px 6px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.2s;
  box-shadow: 0 2px 8px rgba(0, 40, 100, 0.03);
}

.status-card:active {
  transform: scale(0.96);
  background: #ebf3fe;
}

.status-card .status-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 8px;
}

.status-card .status-name {
  font-size: 13px;
  font-weight: 600;
  color: #2a3443;
  margin-bottom: 8px;
  white-space: nowrap;
}

.status-card .status-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-card.red .status-badge {
  background: #ffeceb;
  color: #f53f3f;
}

.status-card.blue .status-badge {
  background: #eaf3ff;
  color: #2b7af7;
}

.status-card.yellow .status-badge {
  background: #fef4e5;
  color: #f28a16;
}

.status-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

.status-card.red .status-badge .dot {
  background: #f53f3f;
}

.status-card.blue .status-badge .dot {
  background: #2b7af7;
}

.status-card.yellow .status-badge .dot {
  background: #f28a16;
}

.suggestions-section {
  padding: 6px 16px 18px;
}

.section-label {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
  padding-left: 2px;
}

.suggestion-item {
  background: #ffffff;
  border-radius: 28px;
  padding: 14px 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 14px rgba(0, 40, 100, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s, box-shadow 0.2s;
}

.suggestion-item:active {
  transform: scale(0.98);
  background: #f8fbff;
}

.suggestion-item .s-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.suggestion-item .s-text {
  flex: 1;
  margin: 0 14px;
  font-size: 14.5px;
  color: #283445;
  font-weight: 500;
  line-height: 1.4;
}

.suggestion-item .s-arrow {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.5;
  flex-shrink: 0;
}

.chat-messages-flow {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
}

.timestamp {
  text-align: center;
  font-size: 13px;
  color: #8c9ba8;
  margin: 16px 0 14px;
  letter-spacing: 0.5px;
}

.user-msg-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.user-bubble {
  max-width: 84%;
  background: var(--bubble-user);
  background: linear-gradient(135deg, #5ba0fc, #438cf7);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  padding: 13px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  box-shadow: 0 4px 14px rgba(67, 140, 247, 0.25);
  word-break: break-word;
}

.ai-msg-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.traffic-report-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 18px 16px;
  box-shadow: 0 6px 24px rgba(0, 40, 120, 0.06);
  position: relative;
}

.report-title {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.report-summary {
  font-size: 13.5px;
  color: #333333;
  line-height: 1.65;
  margin-bottom: 16px;
  text-align: justify;
}

.report-subtitle {
  font-size: 14.5px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
}

.report-details-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px !important;
  word-break: break-all;      
  overflow-wrap: anywhere;   
  white-space: normal; 
  font-size: 14px !important;  
  
}


.report-details-list pre,
.report-details-list code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  font-size: 16px !important;
  font-weight:bold;
  font-family: inherit !important;

}




.report-detail-item {
  font-size: 13px;
  color: #333333;
  line-height: 1.65;
  text-align: justify;
}

.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #f0f4f9;
}

.action-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.2s, background-color 0.2s;
  padding: 8px 14px;
  flex: 1;
}

.action-pill-btn:active {
  transform: scale(0.96);
}

.action-pill-btn img,
.action-pill-btn svg {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.action-pill-btn.btn-voice {
  background: #eef5fe;
  color: #506173;
  fill: #506173;
}

.action-pill-btn.btn-voice.speaking {
  background: #e1edfe;
  color: #1a5be0;
  fill: #1a5be0;
  animation: pulseVoice 1.2s infinite;
}

.action-pill-btn.btn-nav {
  background: #3678f6;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 8px 16px;
  box-shadow: 0 4px 12px rgba(40, 109, 238, 0.32);
}

.action-pill-btn.btn-share {
  background: #eef5fe;
  color: #506173;
  fill: #506173;
}

.typing-bubble {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  box-shadow: 0 3px 12px rgba(0, 40, 100, 0.05);
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #3b76f6;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.bottom-bar-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px calc(14px + var(--safe-bottom));
  z-index: 30;
  background: linear-gradient(180deg, rgba(246, 250, 255, 0) 0%, rgba(246, 250, 255, 0.85) 30%, rgba(246, 250, 255, 0.98) 100%);
  pointer-events: none;
}

.bottom-input-capsule {
  pointer-events: auto;
  background: #ffffff;
  border-radius: 28px;
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 12px;
  box-shadow: 0 6px 24px rgba(0, 50, 140, 0.09);
  border: 1px solid rgba(220, 235, 255, 0.6);
  transition: box-shadow 0.2s;
}

.bottom-input-capsule:focus-within {
  box-shadow: 0 6px 24px rgba(40, 110, 240, 0.16);
}

.mode-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
  flex-shrink: 0;
}

.mode-toggle-btn:active {
  transform: scale(0.92);
}

.mode-toggle-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.voice-trigger-zone {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-right: 38px;
  cursor: pointer;
  color: #7a889b;
  font-size: 15px;
  letter-spacing: 0.3px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.voice-trigger-zone:active {
  color: #3b76f6;
}

.text-input-zone {
  flex: 1;
  display: none;
  align-items: center;
  height: 100%;
}

.text-input-zone.active {
  display: flex;
}

.chat-input-field {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14.5px;
  color: #222c38;
  padding: 0 8px;
  background: transparent;
}

.chat-input-field::placeholder {
  color: #8c9ba8;
}

.send-text-btn {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  outline: none;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-text-btn:not(:disabled):active {
  transform: scale(0.94);
}

.send-text-btn:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.voice-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 70, 115, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: calc(22px + var(--safe-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  touch-action: none;
  -webkit-touch-callout: none;
}

.voice-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.voice-card {
  width: calc(100% - 32px);
  max-width: 400px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 20, 60, 0.16);
  margin-bottom: 24px;
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.voice-modal-overlay.active .voice-card {
  transform: translateY(0);
}

.voice-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.sound-waves-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
}

.sound-wave-bar {
  width: 4.5px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #6c54ee, #428cf7);
  animation: soundWaveBounce 1.2s infinite ease-in-out alternate;
}

.sound-wave-bar:nth-child(1) {
  height: 6px;
  animation-duration: 0.7s;
  animation-delay: 0.1s;
}

.sound-wave-bar:nth-child(2) {
  height: 14px;
  animation-duration: 0.85s;
  animation-delay: 0.2s;
}

.sound-wave-bar:nth-child(3) {
  height: 22px;
  animation-duration: 0.65s;
  animation-delay: 0.35s;
}

.sound-wave-bar:nth-child(4) {
  height: 36px;
  animation-duration: 0.9s;
  animation-delay: 0.15s;
}

.sound-wave-bar:nth-child(5) {
  height: 46px;
  animation-duration: 0.75s;
  animation-delay: 0.25s;
}

.sound-wave-bar:nth-child(6) {
  height: 44px;
  animation-duration: 0.8s;
  animation-delay: 0.05s;
}

.sound-wave-bar:nth-child(7) {
  height: 32px;
  animation-duration: 0.95s;
  animation-delay: 0.3s;
}

.sound-wave-bar:nth-child(8) {
  height: 18px;
  animation-duration: 0.7s;
  animation-delay: 0.4s;
}

.sound-wave-bar:nth-child(9) {
  height: 8px;
  animation-duration: 0.8s;
  animation-delay: 0.1s;
}

.voice-card-hint {
  font-size: 14px;
  color: #8c9ba8;
  margin-top: 28px;
}

.voice-card-hint.cancel-warning {
  color: #f53f3f;
  font-weight: 600;
}

.release-send-btn {
  width: calc(100% - 32px);
  max-width: 400px;
  height: 54px;
  border-radius: 27px;
  background: #d8ecfe;
  background: linear-gradient(180deg, #e3f0fe, #d7e8fe);
  color: #1d72f5;
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(30, 113, 245, 0.14);
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.15s, background-color 0.2s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.release-send-btn:active,
.release-send-btn.active {
  transform: scale(0.97);
  background: #cbe0fc;
}

.common-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 40, 70, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.common-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: #ffffff;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + var(--safe-bottom));
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1);
}

.common-modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f4f8;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
}

.modal-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #64748b;
  border: none;
  outline: none;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.city-chip {
  background: #f4f8ff;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.city-chip.selected {
  background: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}

.detail-item-card {
  background: #f8fbff;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--primary-color);
}

.detail-item-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.detail-item-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
}

.nav-preview-box {
  background: #f4f8ff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.nav-route-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
}

.nav-meta-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.nav-tag {
  background: #e1edfe;
  color: #2b70f5;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 10px;
}

.nav-start-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(40, 100, 240, 0.3);
}

.toast-notice {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 41, 59, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 20px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes soundWaveBounce {
  0% {
    transform: scaleY(0.3);
  }

  50% {
    transform: scaleY(1.4);
  }

  100% {
    transform: scaleY(0.4);
  }
}

@keyframes pulseVoice {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes typingBounce {

  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}