* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
::selection{
  color: white;
  background-color: green;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Helvetica Neue", sans-serif;
  background-color: #ffffff;
  color: #333;
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
  padding: 0;
  gap: 0;
}

/* 侧边栏样式 - 灰色风格 */
.sidebar {
  width: 280px;
  background-color: #f2f2f2;
  overflow-y: auto;
  height: 100vh;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  animation: sidebarEntrance 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  transform-origin: left center;
}

@keyframes sidebarEntrance {
  0% {
    opacity: 0;
    transform: translateX(-30px) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: translateX(5px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar h2 {
  padding: 20px 16px;
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  text-align: left;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: headerSlideIn 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes headerSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-10px);
    letter-spacing: -1px;
  }
  60% {
    letter-spacing: 1px;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

.category {
  margin-bottom: 16px;
  padding: 0 8px;
}

.category h3 {
  padding: 10px 16px;
  font-size: 25px;
  font-weight: 600;
  color: #1d1d1f;
  position: relative;
  opacity: 0;
  animation: categoryHeadingAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1)
    forwards;
  animation-delay: 0.3s;
}

.category h3::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 16px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #e0b417, rgba(253, 204, 30, 0.3));
  border-radius: 3px;
  animation: lineGrow 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.8s;
}

@keyframes categoryHeadingAppear {
  0% {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: translateY(3px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes lineGrow {
  0% {
    width: 0;
  }
  100% {
    width: 40px;
  }
}

/* 从右向左渐显动画 */
@keyframes fadeInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.category ul {
  list-style: none;
  margin-left: 8px;
}

.category li {
  padding: 8px 16px;
  margin: 4px 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 10px;
  font-size: 15px;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  transform-origin: center;
  opacity: 0;
  animation: menuItemAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: calc(var(--item-index, 0) * 0.08s);
}

@keyframes menuItemAppear {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 图标文字容器 */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
}

.menu-item span {
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
}

.category li:hover .menu-item span {
  transform: translateX(3px);
  background: linear-gradient(90deg, #d4ac18, #d79c12);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

.category li.active .menu-item span {
  transform: scale(1.05);
  -webkit-text-fill-color: white;
}

/* 图标固定宽度 */
.category li i {
  width: 28px;
  min-width: 28px;
  max-width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  position: relative;
  z-index: 2;
}

/* 为每个菜单项添加不同的延迟，创造交错动画效果 */
.category li:nth-child(1) {
  --item-index: 1;
}
.category li:nth-child(2) {
  --item-index: 2;
}
.category li:nth-child(3) {
  --item-index: 3;
}
.category li:nth-child(4) {
  --item-index: 4;
}
.category li:nth-child(5) {
  --item-index: 5;
}
.category li:nth-child(6) {
  --item-index: 6;
}
.category li:nth-child(7) {
  --item-index: 7;
}
.category li:nth-child(8) {
  --item-index: 8;
}
.category li:nth-child(9) {
  --item-index: 9;
}
.category li:nth-child(10) {
  --item-index: 10;
}

.category li:hover {
  background-color: rgba(253, 204, 30, 0.1);
  transform: translateX(5px) scale(1.03);
}

.category li:hover::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(
    circle,
    rgba(253, 204, 30, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  opacity: 0;
  animation: rippleEffect 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes rippleEffect {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.category li:hover i {
  transform: rotateY(360deg) scale(1.2);
  color: #fdcc1e;
  transition: transform 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 快速旋转，非线性刹车 */
}

.category li.active {
  background-color: #fdc600;
  color: #fff; /* 修改文字颜色为纯白 */
  font-weight: 500;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(253, 204, 30, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category li.active i {
  transform: scale(1.2);
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #fff; /* 确保图标颜色为白色 */
}

/* 确保选中状态下悬停时图标保持白色 */
.category li.active:hover i {
  color: #fff;
  transform: scale(1.2);
}

/* 移动端响应式设计同步更新 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .category li.active {
    color: #fff; /* 保持移动端相同样式 */
  }

  /* 移动端侧边栏动画优化 - 从底部滑入 */
  .sidebar.active {
    animation: mobileSidebarSlideUp 0.5s cubic-bezier(0.215, 0.61, 0.355, 1)
      forwards;
  }

  @keyframes mobileSidebarSlideUp {
    0% {
      opacity: 0.8;
      transform: translateY(100%);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 移除旧的入口动画应用，因为它现在通过 .active 类触发 */
  /* .sidebar {
    transform-origin: bottom center; 
  } */

  /* 移动端菜单项动画优化 */
  .category li {
    animation-duration: 0.4s;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
  }

  .category li:hover {
    transform: scale(1.02);
  }
}

/* 地图容器样式 - iPadOS风格 */
.map-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  animation: mapContainerEntrance 0.5s cubic-bezier(0.17, 0.84, 0.44, 1)
    forwards;
  animation-delay: 0.1s;
  transform-origin: center;
}

.map-container::-webkit-scrollbar {
  display: none;
}

@keyframes mapContainerEntrance {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-view {
  flex: 1;
  background-color: #ffffff;
  /* overflow-y: auto; */ /* Removed to prevent shadow clipping */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  opacity: 0;
  animation: mapViewEntrance 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.2s;
}

@keyframes mapViewEntrance {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-image {
  position: relative;
  /* overflow: hidden; */ /* Removed to prevent shadow clipping */
  padding: 0;
  margin-bottom: 0; /* 移除底部边距，消除图片和正文之间的白色区域 */
  opacity: 0;
  min-height: 280px;
  animation: mapImageFadeIn 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.3s;
}

@keyframes mapImageFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 15px;
  padding: 20px 0 20px 0; /* 保留垂直内边距，移除水平内边距 */
  margin-right: 0;
  position: relative; /* 添加相对定位以便伪元素定位 */
}

/* 定义全局变量 */
:root {
  --slider-item-width: 30%; /* 非移动设备下的图片宽度变量 */
}

.slider-container {
  padding-left: calc(
    (100% - var(--slider-item-width)) / 2
  ); /* 动态计算左侧填充以确保第一张图片有足够的左边距 */
}

.slider-container::-webkit-scrollbar {
  display: none;
}

.slider-item {
  flex: 0 0 30%; /* 设置固定宽度为容器宽度的30% */
  width: 30%;
  scroll-snap-align: start;
  border-radius: 20px;
  /* overflow: hidden; */ /* Removed to prevent shadow clipping */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-right: 10px; /* 保持原有间距 */
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* 移动设备竖屏模式下的图片尺寸优化 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .slider-item {
    flex: 0 0 75%; /* 竖屏模式下减小宽度 */
    width: 75%;
    margin-top: 15px; /* 保持间距 */
    margin-right: 15px; /* 保持间距 */
    background-color: transparent; /* 确保背景透明 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* 保持阴影效果 */
  }

  /* 第一张图片样式优化 */
  .slider-container .slider-item:first-child {
    /* 确保第一张图片有正确的样式 */
    scroll-snap-align: center; /* 滚动时对齐到中心 */
  }
}

/* 横屏模式下第一张图片左边距 - 优化滑动后的显示 */
@media (min-width: 769px) {
  .slider-container .slider-item:first-child {
    margin-left: 20px !important; /* 为第一张图片添加左边距并确保优先级 */
    scroll-snap-align: start; /* 确保滑动对齐方式正确 */
    scroll-margin-left: 20px; /* 添加滑动边距 */
  }

  /* 确保滑动容器不会覆盖第一张图片的边距 */
  .slider-container {
    scroll-padding-left: 10px; /* 添加滑动内边距 */
  }
}

.slider-item:hover {
  box-shadow: 0 8px 20px rgba(253, 204, 30, 0.15);
  position: relative;
}

.slider-item:hover::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(200, 200, 200, 0.3);
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 10px; /* 缩小间距 */
  padding: 10px 0;
  white-space: nowrap;
}

/* 移动设备竖屏模式下的滑动容器优化 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  :root {
    --slider-item-width: 75%; /* 定义图片宽度变量 */
  }

  .slider-container {
    padding: 0; /* 移除内边距 */
    padding-left: calc(
      (100% - var(--slider-item-width)) / 2
    ); /* 恢复动态计算的padding-left */
    gap: 15px; /* 保持间距 */
    background-color: transparent; /* 确保背景透明 */
    justify-content: flex-start; /* 确保从左侧开始排列 */
  }

  .map-image {
    padding: 0; /* 移除外部容器内边距 */
    margin-bottom: 0; /* 移除底部边距 */
    background-color: transparent; /* 确保背景透明 */
  }

  /* 优化图片项样式 */
  .slider-item {
    background-color: transparent; /* 确保背景透明 */
    margin-bottom: 0; /* 移除底部边距 */
  }
}

.slider-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  display: block; /* 消除图片下方的空隙 */
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

/* 移动设备竖屏模式下的图片高度优化 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .slider-item img {
    height: 260px; /* 竖屏模式下减小图片高度 */
    border-radius: 20px; /* 确保图片圆角与容器一致 */
    object-fit: cover; /* 确保图片填充整个容器 */
    background-color: transparent; /* 确保背景透明 */
  }
}

.slider-item:hover img {
  transform: none;
}

.slider-nav {
  display: none; /* 隐藏指示器 */
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(253, 204, 30, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.slider-dot.active {
  background-color: rgba(253, 204, 30, 1);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(253, 204, 30, 0.5);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* 非线性过渡效果 */
  opacity: 1; /* 默认可见 */
}

/* 移动设备竖屏模式下的滑动箭头优化 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
  }

  .slider-arrow.left {
    left: 10px; /* 调整左箭头位置 */
  }

  .slider-arrow.right {
    right: 5px; /* 调整右箭头位置更靠近边缘 */
  }
}

.slider-arrow.disabled {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 15px rgba(253, 204, 30, 0.2);
}

/* 按钮点击动画效果 */
.slider-arrow.btn-active {
  background-color: rgba(253, 204, 30, 0.1);
  transform: translateY(-50%) scale(0.9);
  box-shadow: 0 2px 8px rgba(253, 204, 30, 0.3);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-arrow.left {
  left: 25px;
  opacity: 0;
  animation: arrowLeftAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes arrowLeftAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.slider-arrow.right {
  right: 10px;
  opacity: 0;
  animation: arrowRightAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes arrowRightAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.location-info {
  padding: 0;
  margin: 20px 0 0 0;
  background-color: #ffffff;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  position: relative;
  animation: locationInfoSlideUp 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
  transform-origin: center;
}

@keyframes locationInfoSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-info::-webkit-scrollbar {
  display: none;
}

.location-info h2 {
  /* margin-bottom: 15px; */
  color: #1d1d1f;
  font-size: 25px;
  font-weight: 600;
  padding: 10px 16px 10px 16px;
  position: relative;
  opacity: 0;
  animation: categoryHeadingAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1)
    forwards;
  animation-delay: 0.5s !important;
}

.location-info h2::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 16px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fdcc1e, rgba(253, 204, 30, 0.3));
  border-radius: 3px;
  animation: lineGrow 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.8s !important;
}

.reset-animation::after {
  animation: none !important;
  width: 0 !important;
}

.location-info p {
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0;
  padding: 8px 16px 8px 16px;
  white-space: pre-line; /* 正确语法 */
  opacity: 0;
  animation: floorTitleAppear 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.5s !important;
  position: relative;
  transform-origin: center;
}

/* iPadOS风格提示框 */
.ipad-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: rgba(50, 50, 50, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 80%;
  text-align: center;
}

.ipad-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.action-btn.btn-active {
  transform: scale(0.95);
  background-color: rgba(253, 204, 30, 0.25);
}

/* 默认桌面样式 */
.menu-toggle {
  display: none; /* 桌面端默认隐藏菜单按钮 */
}

.sidebar {
  transform: translateX(0); /* 桌面端默认显示侧边栏 */
  transition: transform 0.3s ease;
}

/* 响应式设计 - 竖屏全屏侧边栏 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .container {
    flex-direction: column;
    padding: 0;
    gap: 0;
    position: relative;
    background-color: #ffffff;
  }

  .sidebar {
    width: 100%;
    height: 100vh; /* 全屏高度 */
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateY(0); /* 默认显示 */
    background-color: #f2f2f2;
    overflow-y: auto; /* 允许内容滚动 */
    transition: none; /* 移除过渡动画 */
    /* 移除底部弹出相关的样式 */
    /* box-shadow: none; */
    /* border-radius: 0; */
    /* max-height: none; */
  }

  /* 不再需要 active 类来控制显示 */
  /* .sidebar.active { ... } */

  /* 移除侧边栏顶部拖动条 */
  .sidebar-handle {
    display: none;
  }

  /* 隐藏悬浮菜单按钮 */
  .menu-toggle {
    display: none !important; /* 强制隐藏 */
  }

  /* 默认隐藏地图容器 */
  .map-container {
    display: none; /* 默认隐藏 */
    height: 100vh;
    width: 100%;
    padding: 0;
    background-color: #ffffff;
    /* 保留进入动画，但只在 JS 控制显示时触发 */
    animation: mobileMapContainerEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)
      forwards;
    transform-origin: top center;
    /* 移除为底部按钮留出的空间，让按钮悬浮 */
    /* padding-bottom: 80px; */
    /* box-sizing: border-box; */
  }

  /* 当地图容器通过 JS 设为 display: block 或 flex 时，动画会播放 */

  @keyframes mobileMapContainerEntrance {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .map-view {
    padding: 0;
    margin: 0;
    background-color: #ffffff;
  }

  .location-info {
    padding: 12px 0 12px 0;
    margin-top: 0;
    margin-right: 0;
    background-color: #ffffff;
  }

  /* 移动端动画优化 */
  .map-view,
  .map-image,
  .location-info {
    animation-duration: 0.5s;
  }

  .location-info h2 {
    padding: 10px 12px 10px 12px;
    margin-bottom: 5px;
    margin-right: 0;
    animation-delay: 0.6s;
  }

  .location-info p {
    padding: 8px 12px 8px 12px;
    margin-right: 0;
    animation-delay: 0.6s;
  }

  .slider-arrow.left,
  .slider-arrow.right {
    animation-duration: 0.5s;
    animation-delay: 0.7s;
  }

  /* 新增：返回侧边栏按钮样式 */
  #back-to-sidebar-btn {
    display: none; /* 默认隐藏 */
    position: fixed;
    bottom: 30px; /* 调整距离底部的距离 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(253, 204, 30, 0.9);
    color: white;
    border: none;
    border-radius: 50%; /* 圆形按钮 */
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    font-size: 20px; /* 图标大小 */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* 确保在地图之上 */
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  #back-to-sidebar-btn:hover {
    background-color: rgba(253, 204, 30, 0.95);
  }

  #back-to-sidebar-btn:active {
    transform: translateX(-50%) scale(0.95);
    background-color: rgba(253, 204, 30, 1);
  }
}

/* 简易地图全屏显示样式 */
.full-screen-image {
  position: cover !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 500% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 10 !important;
}

.full-screen-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@keyframes fadeInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 悬浮地图按钮样式 */
.floating-map-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s;
}

.floating-map-btn:hover {
  transform: scale(1.1);
}

.floating-map-btn i {
  font-size: 24px;
  color: #333;
}

.slider-arrow.disabled {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 15px rgba(253, 204, 30, 0.2);
}

/* 按钮点击动画效果 */
.slider-arrow.btn-active {
  background-color: rgba(253, 204, 30, 0.1);
  transform: translateY(-50%) scale(0.9);
  box-shadow: 0 2px 8px rgba(253, 204, 30, 0.3);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-arrow.left {
  left: 25px;
  opacity: 0;
  animation: arrowLeftAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes arrowLeftAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.slider-arrow.right {
  right: 10px;
  opacity: 0;
  animation: arrowRightAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
}

@keyframes arrowRightAppear {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateY(10px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.location-info {
  padding: 0;
  margin: 20px 0 0 0;
  background-color: #ffffff;
  height: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-top: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  position: relative;
  animation: locationInfoSlideUp 0.5s cubic-bezier(0.17, 0.84, 0.44, 1) forwards;
  animation-delay: 0.4s;
  transform-origin: center;
}

@keyframes locationInfoSlideUp {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.location-info::-webkit-scrollbar {
  display: none;
}

.location-info h2 {
  /* margin-bottom: 15px; */
  color: #1d1d1f;
  font-size: 25px;
  font-weight: 600;
  padding: 10px 16px 10px 16px;
  position: relative;
  opacity: 0;
  animation: categoryHeadingAppear 0.5s cubic-bezier(0.17, 0.84, 0.44, 1)
    forwards;
  animation-delay: 0.5s !important;
}

.location-info h2::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 16px;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fdcc1e, rgba(253, 204, 30, 0.3));
  border-radius: 3px;
  animation: lineGrow 0.6s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: 0.8s !important;
}

.reset-animation::after {
  animation: none !important;
  width: 0 !important;
}

.location-info p {
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.4;
  margin: 4px 0;
  padding: 8px 16px 8px 16px;
  white-space: pre-line; /* 正确语法 */
  opacity: 0;
  animation: floorTitleAppear 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.5s !important;
  position: relative;
  transform-origin: center;
}

/* iPadOS风格提示框 */
.ipad-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background-color: rgba(50, 50, 50, 0.8);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  max-width: 80%;
  text-align: center;
}

.ipad-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.action-btn.btn-active {
  transform: scale(0.95);
  background-color: rgba(253, 204, 30, 0.25);
}

/* 默认桌面样式 */
.menu-toggle {
  display: none; /* 桌面端默认隐藏菜单按钮 */
}

.sidebar {
  transform: translateX(0); /* 桌面端默认显示侧边栏 */
  transition: transform 0.3s ease;
}

/* 响应式设计 - 竖屏全屏侧边栏 */
@media (max-width: 768px) {
  .sidebar h2 {
    text-align: center; /* 在移动端居中标题 */
  }
  .container {
    flex-direction: column;
    padding: 0;
    gap: 0;
    position: relative;
    background-color: #ffffff;
  }

  .sidebar {
    width: 100%;
    height: 100vh; /* 全屏高度 */
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateY(0); /* 默认显示 */
    background-color: #f2f2f2;
    overflow-y: auto; /* 允许内容滚动 */
    transition: none; /* 移除过渡动画 */
    /* 移除底部弹出相关的样式 */
    /* box-shadow: none; */
    /* border-radius: 0; */
    /* max-height: none; */
  }

  /* 不再需要 active 类来控制显示 */
  /* .sidebar.active { ... } */

  /* 移除侧边栏顶部拖动条 */
  .sidebar-handle {
    display: none;
  }

  /* 隐藏悬浮菜单按钮 */
  .menu-toggle {
    display: none !important; /* 强制隐藏 */
  }

  /* 默认隐藏地图容器 */
  .map-container {
    display: none; /* 默认隐藏 */
    height: 100vh;
    width: 100%;
    padding: 0;
    background-color: #ffffff;
    /* 保留进入动画，但只在 JS 控制显示时触发 */
    animation: mobileMapContainerEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)
      forwards;
    transform-origin: top center;
    /* 移除为底部按钮留出的空间，让按钮悬浮 */
    /* padding-bottom: 80px; */
    /* box-sizing: border-box; */
  }

  /* 当地图容器通过 JS 设为 display: block 或 flex 时，动画会播放 */

  @keyframes mobileMapContainerEntrance {
    0% {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .map-view {
    padding: 0;
    margin: 0;
    background-color: #ffffff;
  }

  .location-info {
    padding: 12px 0 12px 0;
    margin-top: 0;
    margin-right: 0;
    background-color: #ffffff;
  }

  /* 移动端动画优化 */
  .map-view,
  .map-image,
  .location-info {
    animation-duration: 0.5s;
  }

  .location-info h2 {
    padding: 10px 12px 10px 12px;
    margin-bottom: 5px;
    margin-right: 0;
    animation-delay: 0.6s;
  }

  .location-info p {
    padding: 8px 12px 8px 12px;
    margin-right: 0;
    animation-delay: 0.6s;
  }

  .slider-arrow.left,
  .slider-arrow.right {
    animation-duration: 0.5s;
    animation-delay: 0.7s;
  }

  /* 新增：返回侧边栏按钮样式 */
  #back-to-sidebar-btn {
    display: none; /* 默认隐藏 */
    position: fixed;
    bottom: 30px; /* 调整距离底部的距离 */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(253, 204, 30, 0.9);
    color: white;
    border: none;
    border-radius: 50%; /* 圆形按钮 */
    width: 50px; /* 按钮宽度 */
    height: 50px; /* 按钮高度 */
    font-size: 20px; /* 图标大小 */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* 确保在地图之上 */
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
  }

  #back-to-sidebar-btn:hover {
    background-color: rgba(253, 204, 30, 0.95);
  }

  #back-to-sidebar-btn:active {
    transform: translateX(-50%) scale(0.95);
    background-color: rgba(253, 204, 30, 1);
  }
}

/* 简易地图全屏显示样式 */
.full-screen-image {
  position: cover !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 500% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 10 !important;
}

.full-screen-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
