/* 全局样式 */
:root {
  --primary-color: #F8BBD0; /* 淡粉色主题色 */
  --primary-color-rgb: 248, 187, 208; /* 淡粉色RGB值 */
  --primary-dark: #F48FB1;
  --primary-light: #FCE4EC;
  --primary-text: #212121;
  --secondary-text: #757575;
  --divider-color: #EEEEEE;
  --accent-color: #FF4081;
  --background-color: #FFFFFF;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition-speed: 0.3s;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --sidebar-width: 320px; /* 侧边栏宽度，方便其他地方引用 */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--primary-text);
  background-color: var(--background-color);
}

.container-fluid {
  height: 100vh;
  overflow: hidden;
}

.row {
  height: 100%;
}

/* 毛玻璃效果 - 增强版 */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.5s ease-out;
}

.glass-effect:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.glass-input {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border) !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* 侧边栏样式 - 现代化版本 */
.sidebar {
  height: 100%;
  z-index: 1000;
  transition: transform var(--transition-speed) cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow var(--transition-speed) ease;
  animation: slideInLeft 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border-right: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  padding: 0;
  min-width: var(--sidebar-width); /* 使用CSS变量设置侧边栏宽度 */
  width: var(--sidebar-width); /* 确保宽度固定 */
}

.anime-list-container, .guide-list-container {
  height: 100%;
  transition: all var(--transition-speed) ease;
  flex: 1;
  width: 100%;
  /* 不设置独立滚动，避免双滚动条问题 */
  overflow: visible;
}

#anime-list, #guide-list {
  width: 100%;
  padding: 0;
  margin: 0;
}

.anime-item, .location-item, .guide-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--divider-color);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border-radius: 10px;
  margin-bottom: 8px;
  width: calc(100% - 5px); /* 确保列表项占满容器宽度但留出一点空间 */
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.anime-item:hover, .location-item:hover, .guide-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

.anime-item.active, .guide-item.active {
  background-color: var(--primary-light);
  border-left: 3px solid var(--primary-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 点击状态的指南项 */
.guide-item.clicked {
  transform: scale(0.98);
  opacity: 0.8;
  transition: transform 0.1s ease, opacity 0.1s ease;
}

.location-info, .guide-info {
  flex: 1;
  padding-left: 10px;
}

.location-name, .guide-name {
  font-weight: 500;
  margin: 0;
  color: var(--primary-text);
}

.location-address, .guide-description {
  font-size: 0.9em;
  color: var(--secondary-text);
  margin: 2px 0 0;
}

.anime-cover, .guide-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.anime-item:hover .anime-cover,
.guide-item:hover .guide-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.anime-info, .guide-info {
  flex: 1;
}

.anime-name, .guide-name {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--primary-text);
}

.anime-points, .guide-points {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
}

/* 加载指示器样式 */
.loading-indicator {
  display: flex;
  justify-content: center;
  padding: 15px 0;
  width: 100%;
}

.loading-indicator::after {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid var(--primary-light);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s ease-in-out infinite;
}

/* 侧边栏导航 - 垂直布局 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 60px;
  height: 100%;
  background-color: var(--primary-light);
  padding: 15px 0;
  border-right: 1px solid var(--glass-border);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  z-index: 2;
}

.sidebar-nav .nav-item {
  text-align: center;
  padding: 15px 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.sidebar-nav .nav-item i {
  font-size: 24px;
  margin-bottom: 4px;
}

.sidebar-nav .nav-item span {
  display: none; /* 隐藏文字，只显示图标 */
}

.sidebar-nav .nav-item:hover {
  background-color: rgba(255, 255, 255, 0.7);
}

.sidebar-nav .nav-item.active {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: var(--primary-dark);
  font-weight: 500;
  border-left: 3px solid var(--primary-dark);
}

/* 侧边栏内容区域 - 现代化设计 */
.sidebar-content {
  flex: 1;
  padding: 15px 12px 15px 15px; /* 增加内边距使内容更有呼吸感 */
  overflow-y: auto; /* 只保留一个滚动区域 */
  height: 100%;
  width: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) transparent;
  box-sizing: border-box;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.sidebar-content::-webkit-scrollbar {
  width: 5px;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 5px 0;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background-color: var(--primary-dark);
}

/* 侧边栏标题和搜索框现代化设计 */
.sidebar-header {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-dark);
  text-align: center;
  letter-spacing: 0.5px;
}

.search-container {
  margin-bottom: 10px;
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:hover,
.search-input-wrapper:focus-within {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: white;
  border-color: var(--primary-color);
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--primary-dark);
  font-size: 0.9rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.search-input {
  flex: 1;
  border: none;
  padding: 10px 10px 10px 35px;
  font-size: 0.9rem;
  background: transparent;
  color: var(--primary-text);
  width: 100%;
  outline: none;
}

.search-input::placeholder {
  color: var(--secondary-text);
  opacity: 0.7;
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
}

.search-button:hover {
  background-color: var(--primary-dark);
}

.search-button i {
  font-size: 0.9rem;
}

/* 动漫封面渐变效果 */
.anime-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  z-index: 2;
  pointer-events: none;
  opacity: 0; /* 完全透明 */
}

/* 内容面板 - 优化布局 */
.content-panels {
  position: relative;
  height: calc(100% - 110px); /* 为标题和搜索框留出空间 */
  margin-top: 0;
}

.content-panel {
  display: none;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

.content-panel.active {
  display: block;
}

.load-more-indicator {
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  color: var(--secondary-text);
  width: 100%;
}

.no-results {
  text-align: center;
  padding: 20px 0;
  color: var(--secondary-text);
  font-style: italic;
}

/* 地图样式 */
#map {
  height: 100%;
  width: 100%;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* 信息卡片样式 - 增强版带毛玻璃效果 */
.info-card {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 90%;
  max-width: 500px;
  z-index: 1000;
  box-shadow: var(--card-shadow);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.info-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
}

/* 巡礼点图片样式 */
#point-image {
  cursor: pointer;
  transition: transform 0.2s ease;
}

#point-image:hover {
  transform: scale(1.02);
}

.map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-links .btn {
  transition: all 0.2s ease;
  border-radius: 20px;
  font-size: 0.85rem;
}

.map-links .btn:hover {
  transform: translateY(-2px);
}

/* 地图控制按钮 - 桌面版 */
.map-controls {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px;
  border-radius: 25px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

/* 移动端模式切换按钮 */
.mobile-mode-controls {
  position: fixed; /* 改为fixed定位，防止位置偏移 */
  bottom: auto;
  top: 15px; /* 位于地图上方 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100; /* 增加z-index确保始终在最上层 */
  display: none; /* 默认隐藏，只在移动端显示 */
  gap: 4px; /* 减小间距 */
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5px; /* 减小内边距 */
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  width: auto; /* 确保宽度自适应 */
  max-width: 90%; /* 防止在小屏幕上溢出 */
}

/* 桌面版按钮样式 */
.map-controls .btn {
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* 移动端按钮样式 - 更小更紧凑 */
.mobile-mode-controls .btn {
  border-radius: 16px;
  padding: 4px 8px; /* 进一步减小内边距 */
  font-size: 11px; /* 减小字体 */
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 35px; /* 确保按钮有足够的点击区域，但不要太宽 */
  margin: 0 1px; /* 添加小的水平间距 */
  line-height: 1.2; /* 减小行高 */
}

.map-controls .btn-primary, .mobile-mode-controls .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
}

.map-controls .btn-primary:hover, .mobile-mode-controls .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.map-controls .btn-outline-primary, .mobile-mode-controls .btn-outline-primary {
  color: #333;
  border-color: var(--primary-color);
}

.map-controls .btn-outline-primary:hover, .mobile-mode-controls .btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: #333;
}

/* 移动端按钮活跃状态增强 */
.mobile-mode-controls .btn.active {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* 移动端屏幕上显示移动端模式切换按钮，隐藏桌面版模式切换按钮 */
@media (max-width: 768px) {
  .mobile-mode-controls {
    display: flex;
  }

  .map-controls {
    display: none;
  }

  /* 在指南和设置页面上隐藏移动端模式切换按钮 */
  body:has(.mobile-nav-item[data-target="guide-panel"].active) .mobile-mode-controls,
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .mobile-mode-controls {
    display: none;
  }
}

/* 地图源选择控件 - 新版弹窗样式 */
.map-source-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.map-source-button {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.map-source-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.map-source-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-source-modal.show {
  display: flex;
  opacity: 1;
}

.map-source-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-source-modal.show .map-source-content {
  transform: scale(1);
  opacity: 1;
}

.map-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.map-source-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0;
}

.map-source-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-source-close:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: rotate(90deg);
}

.map-source-category {
  margin: 16px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider-color);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.map-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.map-source-option {
  background-color: var(--background-color);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map-source-option:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.map-source-option.active {
  background-color: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--accent-color);
}

.map-source-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.map-source-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: var(--primary-text);
}

@media (max-width: 768px) {
  .map-source-content {
    width: 95%;
    padding: 16px;
  }

  .map-source-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
}

/* 自定义地图标记 */
.custom-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.custom-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.anime-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.2s ease;
}

.anime-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* 指南标记点样式 */
.guide-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
  transition: all 0.2s ease;
}

.guide-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* 指南连线样式 */
.guide-path {
  stroke-dasharray: 5, 5;
  animation: dash 20s linear infinite;
  transition: stroke 0.3s ease;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* 指南列表样式 */
.guide-item {
  border-left: 3px solid var(--primary-color);
}

.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 20px;
}

.guide-points-list {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.guide-point-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--divider-color);
  transition: all 0.2s ease;
}

.guide-point-item:hover {
  background-color: var(--primary-light);
}

.guide-point-item .point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-point-item .point-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.guide-point-item:hover .point-image {
  transform: scale(1.05);
}

.guide-point-item .point-info {
  flex: 1;
}

.guide-point-item .point-name {
  font-weight: 500;
  margin: 0;
}

.guide-point-item .point-anime {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
}

.guide-point-item .point-actions {
  display: flex;
  gap: 5px;
}

/* L2D站娘容器样式 - 修复显示问题 */
.l2d-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 移除d-none默认类，让机器人默认显示 */
.l2d-container:not(.d-none) {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.l2d-container.minimized {
  transform: translateY(calc(100% - 50px));
}

.l2d-canvas-container {
  flex: 1;
  width: 100%;
  background-color: rgba(252, 228, 236, 0.5); /* 淡粉色背景 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.l2d-chat {
  height: 150px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider-color);
}

.l2d-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

.l2d-message {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  word-break: break-word;
  animation: message-pop 0.3s ease;
}

@keyframes message-pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.l2d-message.user {
  background-color: var(--primary-light);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.l2d-message.assistant {
  background-color: #f4f4f4;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.l2d-input-container {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid var(--divider-color);
}

.l2d-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.l2d-toggle-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* 侧边栏导航 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: var(--primary-light);
  opacity: 0.7;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-nav .nav-item:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-nav .nav-item.active {
  background-color: var(--primary-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.sidebar-nav .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-dark);
  border-radius: 0 2px 2px 0;
  animation: slideInLeft 0.3s ease, pulse 2s infinite ease-in-out;
}

.sidebar-nav .nav-item i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: white;
}

.sidebar-nav .nav-item:hover i {
  transform: scale(1.2) rotate(5deg);
  color: white;
}

/* 内容面板 */
.content-panels {
  position: relative;
  margin-top: 10px;
}

.content-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 移动端底部导航栏 - 增强版 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px; /* 降低高度从65px变为50px */
  z-index: 1100;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  animation: slideInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08); /* 减小阴影 */
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.7;
  position: relative;
  overflow: hidden;
  padding: 4px 0; /* 减小上下内边距 */
}

.mobile-nav-item i {
  font-size: 1.2rem; /* 减小图标大小 */
  margin-bottom: 2px; /* 减小下边距 */
  transition: all 0.3s ease;
  color: var(--secondary-text);
}

.mobile-nav-item:hover i {
  transform: scale(1.15); /* 减小缩放比例 */
  color: var(--primary-dark);
}

.mobile-nav-item span {
  font-size: 0.7rem; /* 减小文字大小 */
  transition: all 0.3s ease;
  color: var(--secondary-text);
  line-height: 1; /* 减小行高 */
}

.mobile-nav-item.active {
  opacity: 1;
}

.mobile-nav-item.active i,
.mobile-nav-item.active span {
  color: var(--primary-dark);
  font-weight: 500;
}

/* Removed underline for mobile nav items
.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px 3px 0 0;
  animation: fadeIn 0.3s ease, pulse 2s infinite ease-in-out;
}
*/

.mobile-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: translateY(-2px); /* 减小上移距离 */
}

.mobile-nav-item:hover span {
  color: var(--primary-dark);
}

/* 移动端适配 */
.mobile-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
  box-shadow: var(--card-shadow);
  display: none; /* 默认隐藏 */
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none !important; /* 非移动设备强制不显示 */
  }

  .mobile-nav {
    display: none !important; /* 非移动设备不显示底部导航 */
  }
}

/* 移动端抽屉效果 - 苹果地图风格三级抽屉 */
.mobile-drawer {
  position: fixed;
  bottom: 50px; /* 底部导航栏高度从65px变为50px */
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95); /* 默认使用高不透明度背景，不依赖模糊效果 */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05); /* 进一步减小阴影复杂度 */
  z-index: 1050;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 使用苹果风格的弹性曲线 */
  transform: translateY(calc(100% - 60px)); /* 默认只显示搜索栏 */
  max-height: calc(95% - 50px); /* 增加最大高度，允许接近屏幕顶部 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform; /* 优化性能 */
  touch-action: pan-y; /* 允许垂直滑动 */
  margin: 0; /* 确保没有外边距 */
  padding: 0; /* 确保没有内边距 */
  transform-style: preserve-3d; /* 使用3D变换以提高动画性能 */
  -webkit-transform-style: preserve-3d;
}

/* 效果级别样式应用 - 使用效果级别类而不是媒体查询 */
.effects-high .mobile-drawer {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.effects-medium .mobile-drawer {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.effects-low .mobile-drawer {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* Android设备特殊处理 */
.android-device .mobile-drawer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.2s ease; /* 加快过渡速度 */
}

/* 滚动锁定状态 - 防止误关闭 */
.mobile-drawer.scroll-lock {
  /* 视觉指示器，表明抽屉处于滚动锁定状态 */
  border-top: 2px solid var(--primary-color);
}

/* 抽屉三种状态样式 */
.mobile-drawer.expanded {
  transform: translateY(0);
  /* 展开状态下不需要过渡高度，减少计算 */
  height: auto !important;
}

/* 半开状态 - 苹果地图风格 */
.mobile-drawer.half-open {
  transform: translateY(50%);
  height: auto !important;
}

/* 收起状态 - 保持原有行为 */
.mobile-drawer.collapsed {
  transform: translateY(calc(100% - 60px));
  height: auto !important;
}

.mobile-drawer-handle {
  width: 50px;
  height: 2px; /* 降低高度从3px变为2px */
  background-color: var(--divider-color);
  border-radius: 2px; /* 缩小圆角半径 */
  margin: 6px auto; /* 减少上下间距 */
  cursor: pointer; /* 改为普通指针，表示可点击 */
  position: relative;
  z-index: 2;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* 减小阴影 */
  /* 增加点击区域，但保持小把手本身的高度较矮 */
  padding: 6px 0;
  margin-top: 0;
  margin-bottom: 0;
}

/* 增强抽屉手柄的视觉效果 - 添加上下两条线增强拖拽指示 */
.mobile-drawer-handle::before,
.mobile-drawer-handle::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 1px; /* 减小高度 */
  background-color: var(--divider-color);
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px; /* 缩小圆角半径 */
  transition: all 0.3s ease;
}

.mobile-drawer-handle::before {
  top: -4px; /* 减小与中间线的距离 */
}

.mobile-drawer-handle::after {
  bottom: -4px; /* 减小与中间线的距离 */
}

/* 抽屉展开时增强手柄视觉效果 */
.mobile-drawer.expanded .mobile-drawer-handle {
  width: 55px; /* 稍微增加宽度，但不要太宽 */
  background-color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* 减小阴影 */
}

.mobile-drawer.expanded .mobile-drawer-handle::before,
.mobile-drawer.expanded .mobile-drawer-handle::after {
  background-color: var(--primary-color);
  width: 35px; /* 减小宽度 */
}

/* 滚动锁定状态下的手柄样式 */
.mobile-drawer.scroll-lock .mobile-drawer-handle {
  background-color: var(--primary-dark);
  box-shadow: 0 0 5px var(--primary-dark);
}

.mobile-drawer.scroll-lock .mobile-drawer-handle::before,
.mobile-drawer.scroll-lock .mobile-drawer-handle::after {
  background-color: var(--primary-dark);
}

.mobile-drawer-handle:hover {
  background-color: var(--primary-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* 减小阴影 */
  transform: scale(1.05); /* 减小缩放比例 */
}

.mobile-drawer-handle:active {
  background-color: var(--primary-dark);
  transform: scale(0.95);
  transition: all 0.1s ease;
}

.mobile-drawer-handle:hover::before,
.mobile-drawer-handle:hover::after {
  background-color: var(--primary-color);
  width: 32px; /* 减小宽度 */
}

.mobile-drawer-handle:active::before,
.mobile-drawer-handle:active::after {
  background-color: var(--primary-dark);
}

.mobile-drawer-content {
  padding: 0 5px 10px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch; /* 流畅滚动效果 */
  overscroll-behavior: contain; /* 防止滚动传播到父元素 */
  scroll-padding-top: 10px; /* 滚动时顶部留出空间 */
  background: transparent; /* 确保背景透明，避免颜色块问题 */
  width: 100%; /* 确保内容宽度一致 */
  will-change: scroll-position; /* 提示浏览器滚动位置将会变化，优化性能 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
  backface-visibility: hidden; /* 减少渲染问题 */
  -webkit-backface-visibility: hidden;
}

/* 添加滚动安全区域 */
.mobile-drawer-content::before {
  content: '';
  display: block;
  height: 10px;
  width: 100%;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* 自定义滚动条样式 */
.mobile-drawer-content::-webkit-scrollbar {
  width: 4px;
}

.mobile-drawer-content::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 4px;
}

.mobile-drawer-content::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-drawer-search {
  padding: 0 5px 10px;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
  width: calc(100% - 10px); /* 确保搜索框宽度一致，减去左右padding */
  margin: 0 auto; /* 居中显示 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
  will-change: transform; /* 提示浏览器这个属性将会变化，优化性能 */
}

/* Android设备特殊处理 */
.android-device .mobile-drawer-search {
  background-color: rgba(255, 255, 255, 0.98); /* 增加不透明度，减少渲染问题 */
}

/* 移动端搜索结果样式 */
#mobile-anime-list .search-section {
  margin-bottom: 15px;
}

/* 移动端番剧列表样式 - 优化版 */
#mobile-anime-list .anime-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* 加快过渡速度 */
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.9); /* 默认使用高不透明度背景 */
  position: relative; /* 确保定位正确 */
  z-index: 2; /* 确保列表项在毛玻璃效果之上 */
  width: calc(100% - 10px);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* 减轻阴影 */
  will-change: transform, box-shadow; /* 提示浏览器这些属性将会变化 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
}

/* 效果级别样式应用 - 使用效果级别类而不是媒体查询 */
.effects-high #mobile-anime-list .anime-item {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.effects-medium #mobile-anime-list .anime-item {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Android设备特殊处理 */
.android-device #mobile-anime-list .anime-item {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease; /* 进一步加快过渡速度 */
}

#mobile-anime-list .anime-item:hover,
#mobile-anime-list .anime-item:active {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#mobile-anime-list .anime-cover {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mobile-anime-list .anime-info {
  flex: 1;
}

#mobile-anime-list .anime-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-anime-list .anime-points {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-anime-list .search-category {
  font-size: 14px;
  color: var(--secondary-text);
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--divider-color);
  position: relative;
}

#mobile-anime-list .search-category::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

#mobile-anime-list .point-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* 加快过渡速度 */
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.9); /* 默认使用高不透明度背景 */
  position: relative; /* 确保定位正确 */
  z-index: 2; /* 确保列表项在毛玻璃效果之上 */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* 减轻阴影 */
  width: calc(100% - 10px);
  margin-left: auto;
  margin-right: auto;
  will-change: transform, box-shadow; /* 提示浏览器这些属性将会变化 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
}

/* 效果级别样式应用 - 使用效果级别类而不是媒体查询 */
.effects-high #mobile-anime-list .point-item {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.effects-medium #mobile-anime-list .point-item {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Android设备特殊处理 */
.android-device #mobile-anime-list .point-item {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease; /* 进一步加快过渡速度 */
}

#mobile-anime-list .point-item:hover,
#mobile-anime-list .point-item:active {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#mobile-anime-list .point-cover {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mobile-anime-list .point-info {
  flex: 1;
}

#mobile-anime-list .point-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-anime-list .anime-title,
#mobile-anime-list .point-episode {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-anime-list .location-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  cursor: pointer;
  border-radius: 12px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* 加快过渡速度 */
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.9); /* 默认使用高不透明度背景 */
  position: relative; /* 确保定位正确 */
  z-index: 2; /* 确保列表项在毛玻璃效果之上 */
  width: calc(100% - 10px);
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); /* 减轻阴影 */
  will-change: transform, box-shadow; /* 提示浏览器这些属性将会变化 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
}

/* 效果级别样式应用 - 使用效果级别类而不是媒体查询 */
.effects-high #mobile-anime-list .location-item {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.effects-medium #mobile-anime-list .location-item {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Android设备特殊处理 */
.android-device #mobile-anime-list .location-item {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease; /* 进一步加快过渡速度 */
}

#mobile-anime-list .location-item:hover,
#mobile-anime-list .location-item:active {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

#mobile-anime-list .location-info {
  flex: 1;
}

#mobile-anime-list .location-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-anime-list .location-address {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 移动端番剧地点列表样式 */
#mobile-anime-list .back-button {
  display: flex;
  align-items: center;
  padding: 10px 10px;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease; /* 简化过渡属性 */
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85); /* 增加不透明度，减少对模糊效果的依赖 */
  /* 移除移动端的模糊效果以提高性能 */
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 减轻阴影 */
  width: calc(100% - 10px); /* 确保宽度一致，减去左右padding */
  margin-left: auto;
  margin-right: auto;
}

/* 仅在高性能设备上启用模糊效果 */
@media (prefers-reduced-motion: no-preference) {
  .enable-effects #mobile-anime-list .back-button {
    backdrop-filter: blur(8px); /* 减少模糊半径 */
    -webkit-backdrop-filter: blur(8px);
  }
}

/* 移动端展开按钮样式 */
.expand-anime-btn {
  margin: 15px auto;
  display: block;
  width: 80%;
  padding: 8px;
  border-radius: 20px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 14px;
}

.expand-anime-btn:hover,
.expand-anime-btn:active {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#mobile-anime-list .back-button i {
  margin-right: 5px;
}

#mobile-anime-list .back-button:hover,
#mobile-anime-list .back-button:active {
  color: var(--accent-color);
  transform: translateX(-3px);
}

#mobile-anime-list .anime-title-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider-color);
  color: var(--primary-text);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

#mobile-anime-list .points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95); /* 默认使用高不透明度背景 */
  border-radius: 12px;
  padding: 10px 5px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 减轻阴影 */
  position: relative;
  z-index: 2;
  width: calc(100% - 5px);
  will-change: transform; /* 提示浏览器这个属性将会变化 */
  transform: translateZ(0); /* 启用GPU加速 */
  -webkit-transform: translateZ(0);
}

/* 效果级别样式应用 - 使用效果级别类而不是媒体查询 */
.effects-high #mobile-anime-list .points-list {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.effects-medium #mobile-anime-list .points-list {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Android设备特殊处理 */
.android-device #mobile-anime-list .points-list {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 地点列表容器样式 */
#mobile-anime-list .points-container {
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
}

/* 移动端抽屉中的无结果提示样式 */
#mobile-anime-list .no-results {
  text-align: center;
  padding: 20px 0;
  color: var(--secondary-text);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.85); /* 增加不透明度，减少对模糊效果的依赖 */
  /* 移除移动端的模糊效果以提高性能 */
  border-radius: 16px;
  margin: 0 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 减轻阴影 */
}

/* 仅在高性能设备上启用模糊效果 */
@media (prefers-reduced-motion: no-preference) {
  .enable-effects #mobile-anime-list .no-results {
    backdrop-filter: blur(8px); /* 减少模糊半径 */
    -webkit-backdrop-filter: blur(8px);
  }
}

/* 加载指示器样式 */
#mobile-anime-list .loading-indicator {
  text-align: center;
  padding: 20px 0;
  color: var(--secondary-text);
  font-size: 14px;
  animation: pulse 1.5s infinite;
  background: rgba(255, 255, 255, 0.85); /* 增加不透明度，减少对模糊效果的依赖 */
  /* 移除移动端的模糊效果以提高性能 */
  border-radius: 16px;
  margin: 0 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06); /* 减轻阴影 */
}

/* 仅在高性能设备上启用模糊效果 */
@media (prefers-reduced-motion: no-preference) {
  .enable-effects #mobile-anime-list .loading-indicator {
    backdrop-filter: blur(8px); /* 减少模糊半径 */
    -webkit-backdrop-filter: blur(8px);
  }
}

/* 番剧封面和毛玻璃效果 */
.anime-cover-header {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 40px 0; /* 增加底部内边距，为渐变效果留出空间 */
  margin-bottom: 0; /* 移除底部外边距，与列表无缝连接 */
  overflow: visible; /* 允许内容溢出，以便渐变效果可以溢出到列表区域 */
  border-radius: 12px 12px 0 0; /* 只保留上部圆角 */
  min-height: 280px; /* 确保有足够的高度显示封面图和文字 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* 添加微妙的阴影增强立体感 */
}

.anime-cover-image {
  width: 120px;
  height: 170px;
  object-fit: cover;
  border-radius: 10px; /* 增大圆角半径 */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); /* 增强阴影效果 */
  margin-bottom: 15px;
  z-index: 2;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* 添加过渡效果 */
  border: 2px solid rgba(255, 255, 255, 0.7); /* 添加白色边框增强立体感 */
}

.anime-cover-image:hover {
  transform: translateY(-5px) scale(1.02); /* 悬停时微小的上浮和放大效果 */
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3); /* 悬停时增强阴影 */
}

.anime-cover-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(20px); /* 增大模糊半径，使效果更柔和 */
  opacity: 0.8; /* 增强不透明度，使颜色更鲜明 */
  z-index: 0;
  transform: scale(1.2); /* 增大缩放比例，避免边缘问题 */
}

/* 移动端抽屉中的背景图特殊调整 */
.mobile-drawer .anime-cover-bg {
  left: -10px; /* 向左扩展，确保覆盖到边缘 */
  width: calc(100% + 20px); /* 增加宽度，确保覆盖到两侧边缘 */
  transform: scale(1.3); /* 增大缩放比例，避免边缘问题 */
  opacity: 0.7; /* 降低不透明度，使背景图更柔和 */
  filter: blur(10px); /* 增加模糊效果，使背景更柔和 */
}

/* 添加背景图的渐变过渡效果 */
.anime-cover-bg::after {
  content: '';
  position: absolute;
  bottom: -120px; /* 与毛玻璃效果的过渡区域保持一致 */
  left: 0;
  width: 100%;
  height: 120px; /* 增加高度使过渡更自然 */
  background: linear-gradient(to bottom,
              rgba(var(--theme-color-rgb), 0.4), /* 增强颜色饱和度 */
              rgba(var(--theme-color-rgb), 0));
  filter: blur(20px); /* 增大模糊半径与背景保持一致 */
  z-index: 0;
  pointer-events: none; /* 允许点击穿透到底层元素 */
}

.anime-cover-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: transparent; /* 完全透明 */
  z-index: 1;
}

/* 移动端抽屉中的渐变层特殊调整 */
.mobile-drawer .anime-cover-gradient {
  background: transparent; /* 完全透明 */
  left: -10px; /* 向左扩展，确保覆盖到边缘 */
  width: calc(100% + 20px); /* 增加宽度，确保覆盖到两侧边缘 */
  height: 70%; /* 增加高度，使渐变效果更自然 */
}

.anime-cover-glass {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25); /* 降低不透明度，使效果更自然 */
  backdrop-filter: blur(12px); /* 增大模糊半径 */
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  border-radius: 16px; /* 与容器保持一致的圆角 */
}

/* 移动端抽屉中的毛玻璃效果特殊调整 - 完全移除以提高性能 */
.mobile-drawer .anime-cover-glass,
.mobile-drawer .anime-cover-glass::after {
  display: none; /* 完全隐藏所有毛玻璃效果层，提高性能 */
}

/* 添加渐变过渡效果，使毛玻璃效果延伸到列表区域 - 桌面版保留 */
@media (min-width: 769px) {
  .anime-cover-glass::after {
    content: '';
    position: absolute;
    bottom: -120px; /* 增加延伸距离 */
    left: 0;
    width: 100%;
    height: 120px; /* 增加高度使过渡更自然 */
    background: linear-gradient(to bottom,
                rgba(255, 255, 255, 0.25),
                rgba(255, 255, 255, 0));
    backdrop-filter: blur(12px); /* 与上面的模糊半径保持一致 */
    -webkit-backdrop-filter: blur(12px);
    z-index: 1;
    pointer-events: none; /* 允许点击穿透到底层元素 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03); /* 添加微妙的阴影增强立体感 */
  }
}

.anime-cover-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0 0 5px 0;
  text-align: center;
  z-index: 2;
  position: relative;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
}

/* 移动端抽屉中的标题文字增强阴影 */
.mobile-drawer .anime-cover-name {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5), 0 0 2px rgba(255, 255, 255, 0.8);
}

.anime-cover-count {
  font-size: 14px;
  color: var(--secondary-text);
  margin: 0;
  text-align: center;
  z-index: 2;
  position: relative;
}

/* 移动端抽屉中的地点数量文字增强阴影 */
.mobile-drawer .anime-cover-count {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 2px rgba(255, 255, 255, 0.7);
}

/* 移动端抽屉中的封面样式调整 */
.mobile-drawer .anime-cover-header {
  padding: 15px 5px 20px 5px; /* 减少底部内边距，增加左右内边距 */
  margin-bottom: 0; /* 移除底部外边距，与列表无缝连接 */
  min-height: 190px; /* 减小移动端的封面区域高度 */
  border-radius: 12px; /* 与其他元素保持一致的圆角 */
  width: calc(100% - 5px); /* 确保宽度占满整个抽屉，留出少量空间 */
  margin-left: auto; /* 居中显示 */
  margin-right: auto; /* 居中显示 */
  background: rgba(255, 255, 255, 0.7); /* 与列表背景一致 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.mobile-drawer .anime-cover-image {
  width: 100px;
  height: 140px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2; /* 确保封面图在最上层 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
}

/* 移动端抽屉中的列表样式调整 */
.mobile-drawer .points-list {
  padding-top: 100px; /* 增加内边距以适应新的渐变高度 */
  margin-top: -100px; /* 向上偏移对应的距离 */
  position: relative; /* 确保定位正确 */
  z-index: 3; /* 确保列表容器在渐变效果之上 */
}

/* 移动端抽屉中的番剧列表样式调整 */
#mobile-anime-list {
  padding: 0 15px; /* 添加左右内边距，使列表内容与抽屉边缘保持适当距离 */
  margin: 0;
  list-style: none;
  position: relative; /* 确保定位正确 */
  z-index: 2; /* 确保列表在毛玻璃效果之上 */
  background: transparent; /* 确保背景透明，让毛玻璃效果可见 */
}

/* 电脑版侧边栏封面区域特殊调整 */
.sidebar .anime-cover-header {
  margin-bottom: 8px; /* 增加底部外边距，与列表保持间距 */
  padding: 20px 0px 30px 0px; /* 减少内边距，增加内容区域 */
  min-height: 280px; /* 减少高度，使布局更紧凑 */
  max-height: 300px; /* 限制最大高度 */
  width: 100%; /* 完全占满容器宽度 */
  margin-left: 0px; /* 居中显示 */
  border-radius: 8px; /* 全圆角，与其他元素保持一致 */
  background: rgba(255, 255, 255, 0.7); /* 与列表背景一致 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.sidebar .anime-cover-image {
  width: 140px;
  height: 190px;
  margin-top: 15px; /* 减少上边距 */
}

.sidebar .anime-cover-name {
  font-size: 18px;
  padding: 0 0px;
  text-align: center;
  line-height: 1.4;
  margin-top: 12px; /* 减少与封面图的间距 */
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
  width: 100%;
}

.sidebar .anime-cover-count {
  margin-top: 5px;
  font-size: 15px;
  color: var(--primary-dark);
  font-weight: 500;
}

/* 电脑版侧边栏返回按钮样式 */
#anime-list .back-button {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  margin: 0 auto 15px auto;
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  z-index: 5; /* 确保按钮在最上层，可以点击 */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  width: calc(100% - 20px); /* 确保宽度一致，留出左右边距 */
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

#anime-list .back-button i {
  margin-right: 8px;
  transition: transform 0.2s ease;
}

#anime-list .back-button:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

#anime-list .back-button:hover i {
  transform: translateX(-3px);
}

#anime-list .back-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 电脑版侧边栏巡礼点列表样式调整 */
.sidebar .points-list {
  padding: 8px 0px;
  margin: 0 auto;
  position: relative; /* 确保定位正确 */
  z-index: 3; /* 确保列表容器在渐变效果之上 */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  margin-left: 0px;
  /* 移除内部滚动和高度限制，使用外部容器的滚动 */
  overflow-y: visible;
}

.sidebar .point-item {
  display: flex;
  align-items: center;
  padding: 12px 5px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 6px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0.5);
  position: relative; /* 确保定位正确 */
  z-index: 2; /* 确保列表项在毛玻璃效果之上 */
  backdrop-filter: blur(5px); /* 添加微妙的模糊效果增强可读性 */
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: calc(100% - 0px);
  margin-left: 0px;
  margin-right: 0px;
}

/* 侧边栏列表项图片样式 */
.sidebar .point-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 侧边栏列表项信息样式 */
.sidebar .point-item .point-info {
  flex: 1;
  width: calc(100% - 88px); /* 图片宽度 + 右边距 */
  overflow: hidden;
}

/* 侧边栏列表项标题和副标题样式 */
.sidebar .point-item .point-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sidebar .point-item .anime-title {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.sidebar .point-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .sidebar {
    display: none; /* 移动端隐藏侧边栏 */
  }

  .mobile-toggle {
    display: none !important; /* 不再使用侧边栏切换按钮 */
  }

  .mobile-nav {
    display: flex; /* 移动设备显示底部导航 */
  }

  .info-card {
    width: 94%;
    max-width: none;
    left: 3%;
    right: 3%;
    bottom: 55px; /* 避免被底部导航栏遮挡，从70px调整为55px */
    max-height: 65vh; /* 限制最大高度为视口高度的65% */
    overflow-y: auto; /* 允许垂直滚动 */
    display: flex;
    flex-direction: column;
    /* 自定义滚动条 */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
  }

  .info-card::-webkit-scrollbar {
    width: 4px;
  }

  .info-card::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
  }

  .info-card::-webkit-scrollbar-track {
    background: transparent;
  }

  /* 优化移动端卡片内部布局 */
  .info-card .card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-card .row {
    flex-direction: column;
    margin: 0;
    gap: 0.25rem;
  }

  .info-card .col-md-6 {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  /* 图片容器高度限制 */
  .info-card .col-md-6:first-child {
    max-height: 180px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    border-radius: 8px;
  }

  /* 优化标题和文本元素 */
  .info-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
  }

  .info-card .card-text {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  /* 优化番剧名称链接 */
  .info-card .anime-link {
    font-size: 0.9rem;
  }

  /* 确保按钮区域有足够的点击空间但更紧凑 */
  .map-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0.25rem;
  }

  /* 只在移动端应用分组布局 */
  @media (max-width: 768px) {
    .map-links {
      flex-direction: column;
    }

    .map-links .primary-buttons,
    .map-links .secondary-buttons {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
  }

  .map-links .btn {
    margin: 0;
    padding: 0.25rem 0.5rem;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .map-links .btn i {
    margin-right: 4px;
  }

  /* 展开按钮样式 */
  #expand-buttons-btn {
    display: none;
  }

  /* 移动端按钮展开/收起效果 */
  @media (max-width: 768px) {
    .map-links .secondary-buttons {
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
      margin-top: 0;
    }

    .map-links .secondary-buttons.expanded {
      max-height: 200px;
      opacity: 1;
      margin-top: 6px;
    }

    #expand-buttons-btn {
      display: flex;
      margin-left: auto;
      transition: transform 0.3s ease;
    }

    #expand-buttons-btn.expanded {
      transform: rotate(180deg);
      background-color: var(--primary-light);
    }
  }

  /* 桌面端按钮显示 */
  @media (min-width: 769px) {
    /* 桌面端不需要分组和展开按钮 */
    .map-links .primary-buttons,
    .map-links .secondary-buttons {
      display: contents; /* 使子元素直接在父元素中显示，忽略分组容器 */
    }

    /* 在桌面端上强制隐藏展开按钮 */
    #expand-buttons-btn {
      display: none !important;
    }
  }

  .map-controls {
    bottom: 70px; /* 避免被底部导航栏遮挡 */
  }

  .l2d-container {
    width: 250px;
    height: 350px;
    bottom: 70px; /* 避免被底部导航栏遮挡 */
    right: 10px;
  }

  .l2d-container.minimized {
    transform: translateY(calc(100% - 40px));
  }
}

/* 评论区域样式 - 增强版 */
.comments-container {
  margin-top: 1rem;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.comments-container.d-none {
  display: block !important;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.comments-container:not(.d-none) {
  max-height: 500px;
  opacity: 1;
  padding: 0.75rem;
  margin-top: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 移动端评论区域样式 */
@media (max-width: 768px) {
  .comments-container {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }

  .comments-container:not(.d-none) {
    max-height: 250px;
    overflow-y: auto;
  }

  /* 自定义滚动条样式 */
  .comments-container::-webkit-scrollbar {
    width: 4px;
  }

  .comments-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
  }

  .comments-container::-webkit-scrollbar-track {
    background: transparent;
  }

  /* 调整giscus评论区域在移动端的样式 */
  .giscus {
    font-size: 0.9rem;
  }

  .giscus-frame {
    padding: 0 !important;
  }
}

/* 加载动画 */
.load-more-indicator {
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  color: var(--secondary-text);
}

.load-more-indicator::after {
  content: "...";
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

.no-results {
  text-align: center;
  padding: 20px 0;
  color: var(--secondary-text);
  font-style: italic;
}

/* 动画效果 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* 搜索结果样式 - 增强版 */
.search-section {
  margin-bottom: 20px;
  animation: fadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-category {
  font-size: 14px;
  color: var(--secondary-text);
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--divider-color);
  position: relative;
}

.search-category::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.search-results-container {
  display: flex;
  flex-direction: column;
}

.search-results-group {
  margin-bottom: 15px;
  animation: fadeInUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-results-group-title {
  font-size: 13px;
  color: var(--secondary-text);
  padding: 8px 12px;
  background-color: var(--primary-light);
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-item,
.point-item {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
  position: relative;
  z-index: 5; /* 确保列表项始终在最上层，可以点击 */
}

.point-cover {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-item:hover .point-cover,
.point-item:hover .point-cover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.point-info {
  flex: 1;
}

.location-item:hover,
.point-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.location-name,
.point-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.location-item:hover .location-name,
.point-item:hover .point-name {
  color: var(--primary-dark);
}

.location-address,
.anime-title {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分享指南样式 */
#qrcode-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

#qrcode-container canvas {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导入指南样式 */
.import-guide-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.import-guide-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 24px;
  margin-right: 15px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.import-guide-title {
  font-weight: 500;
  margin: 0 0 5px 0;
}

.import-guide-meta {
  font-size: 12px;
  color: var(--secondary-text);
}

.import-guide-description {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--primary-text);
}

.import-guide-points {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.import-point-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider-color);
  transition: all 0.2s ease;
}

.import-point-item:hover {
  background-color: var(--primary-light);
  transform: translateX(2px);
}

.import-point-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.import-point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 10px;
  font-weight: bold;
  margin-right: 10px;
}

.import-point-name {
  font-weight: 500;
  margin: 0;
  font-size: 14px;
}

.import-point-anime {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
}

/* 动漫链接样式 */
.anime-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.anime-link:hover {
  color: var(--accent-color);
}

.anime-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.anime-link:hover::after {
  width: 100%;
}

/* 按钮样式全局美化 */
.btn {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: #333;
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: #333;
  transform: translateY(-2px);
}

/* 表单元素全局美化 */
.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(248, 187, 208, 0.25);
}

/* 页面切换淡入淡出动画 */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.95);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid var(--divider-color);
}

.modal-footer {
  border-top: 1px solid var(--divider-color);
}

/* 图片查看模态框样式 */
.image-viewer-modal .modal-dialog {
  max-width: 90%;
  margin: 1.75rem auto;
}

.image-viewer-modal .modal-content {
  background-color: rgba(0, 0, 0, 0.85);
  border: none;
}

.image-viewer-modal .modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-viewer-modal img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.image-viewer-modal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  opacity: 0.8;
  z-index: 1050;
  padding: 0.5rem;
  border-radius: 50%;
}

.image-viewer-modal .btn-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .image-viewer-modal .modal-dialog {
    max-width: 95%;
    margin: 0.5rem auto;
  }

  .image-viewer-modal img {
    max-height: 80vh;
  }
}

/* 地图缩放控件样式 */
.leaflet-control-zoom {
  position: fixed;
  bottom: 80px; /* 确保在移动端底部导航栏上方 */
  left: 15px;
  margin: 0;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1010; /* 提高z-index确保在抽屉上方 */
  background-color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 769px) {
  .leaflet-control-zoom {
    left: calc(var(--sidebar-width) + 20px); /* 使用侧边栏宽度变量，确保控件始终在侧边栏外侧 */
    bottom: 25px; /* 桌面版可以放得更低 */
  }
}

.leaflet-control-zoom a,
.leaflet-control-locate a,
.leaflet-control-random a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.2s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.leaflet-control-zoom a:hover,
.leaflet-control-locate a:hover,
.leaflet-control-random a:hover {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.leaflet-control-zoom-in {
  border-bottom: 1px solid var(--divider-color);
}

/* 定位和随机按钮样式 */
.leaflet-control-locate,
.leaflet-control-random {
  position: fixed;
  left: 15px;
  margin: 0;
  box-shadow: var(--card-shadow);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1010;
  background-color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.leaflet-control-locate {
  bottom: 170px; /* 放在缩放控件上方 */
}

.leaflet-control-random {
  bottom: 220px; /* 放在定位按钮上方 */
}

@media (min-width: 769px) {
  .leaflet-control-locate {
    left: calc(var(--sidebar-width) + 20px); /* 使用侧边栏宽度变量，确保控件始终在侧边栏外侧 */
    bottom: 115px; /* 桌面版可以放得更低 */
  }

  .leaflet-control-random {
    left: calc(var(--sidebar-width) + 20px); /* 使用侧边栏宽度变量，确保控件始终在侧边栏外侧 */
    bottom: 165px; /* 桌面版可以放得更低 */
  }
}

/* 定位按钮激活状态 */
.leaflet-control-locate a.active {
  background-color: var(--primary-color);
  color: white;
}

/* 用户位置标记样式 */
.user-location-marker {
  border-radius: 50%;
  background-color: #4285F4; /* 使用谷歌地图蓝色，更易识别 */
  border: 2px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  animation: pulse 1.5s infinite; /* 添加脉动动画使其更明显 */
}

.user-location-accuracy-circle {
  border-radius: 50%;
  background-color: rgba(66, 133, 244, 0.15); /* 使用相同的蓝色但透明度低 */
  border: 1px solid rgba(66, 133, 244, 0.3);
}

/* IP定位精度圆圈样式 - 使用橙色 */
.ip-location-accuracy-circle {
  border-radius: 50%;
  background-color: rgba(255, 152, 0, 0.1); /* 橙色透明度低 */
  border: 1px dashed rgba(255, 152, 0, 0.3); /* 虚线边框表示不精确 */
}

/* 脉动动画效果 */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

/* 为兼容性添加浏览器前缀 */
@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(0.95);
    -webkit-box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
  }

  70% {
    -webkit-transform: scale(1);
    -webkit-box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }

  100% {
    -webkit-transform: scale(0.95);
    -webkit-box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

@-moz-keyframes pulse {
  0% {
    -moz-transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
  }

  70% {
    -moz-transform: scale(1);
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }

  100% {
    -moz-transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

/* 位置信息弹窗样式 */
.location-popup h6 {
  margin-top: 0;
  margin-bottom: 8px;
  font-weight: bold;
  color: #4285F4;
}

.location-popup p {
  margin: 4px 0;
  font-size: 14px;
}

.map-controls .btn {
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.map-controls .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
}

.map-controls .btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.map-controls .btn-outline-primary {
  color: #333;
  border-color: var(--primary-color);
}

.map-controls .btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: #333;
}

/* 地图源选择控件 - 新版弹窗样式 */
.map-source-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.map-source-button {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.map-source-button:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.map-source-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-source-modal.show {
  display: flex;
  opacity: 1;
}

.map-source-content {
  background-color: white;
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 80vh;
  overflow-y: scroll; /* 改为scroll强制显示滚动条 */
  -webkit-overflow-scrolling: touch; /* 添加iOS流畅滚动支持 */
  overscroll-behavior: contain; /* 防止滚动传播 */
  padding: 24px;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y; /* 允许垂直触摸滚动 */
  z-index: 10000; /* 确保内容区域的z-index比模态框背景高 */
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); /* 增强阴影效果，提高视觉层次感 */
  pointer-events: auto; /* 确保可以接收触摸事件 */
}

.map-source-modal.show .map-source-content {
  transform: scale(1);
  opacity: 1;
}

.map-source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.map-source-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-text);
  margin: 0;
}

.map-source-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-source-close:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: rotate(90deg);
}

.map-source-category {
  margin: 16px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider-color);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-text);
  text-transform: uppercase;
}

.map-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.map-source-option {
  background-color: var(--background-color);
  border: 1px solid var(--divider-color);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map-source-option:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

.map-source-option.active {
  background-color: var(--primary-light);
  border-color: var(--primary-dark);
  color: var(--accent-color);
}

.map-source-icon {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.map-source-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: var(--primary-text);
}

@media (max-width: 768px) {
  .map-source-content {
    width: 95%;
    padding: 16px;
  }

  .map-source-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
}

/* 自定义地图标记 */
.custom-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.custom-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.anime-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: all 0.2s ease;
}

.anime-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* 指南标记点样式 */
.guide-marker {
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  font-size: 12px;
  transition: all 0.2s ease;
}

.guide-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

/* 指南连线样式 */
.guide-path {
  stroke-dasharray: 5, 5;
  animation: dash 20s linear infinite;
  transition: stroke 0.3s ease;
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* 指南列表样式 */
.guide-item {
  border-left: 3px solid var(--primary-color);
}

.guide-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  font-size: 20px;
}

.guide-points-list {
  max-height: 300px;
  overflow-y: auto;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.guide-point-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--divider-color);
  transition: all 0.2s ease;
}

.guide-point-item:hover {
  background-color: var(--primary-light);
}

.guide-point-item .point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 12px;
  font-weight: bold;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-point-item .point-image {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.guide-point-item:hover .point-image {
  transform: scale(1.05);
}

.guide-point-item .point-info {
  flex: 1;
}

.guide-point-item .point-name {
  font-weight: 500;
  margin: 0;
}

.guide-point-item .point-anime {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
}

.guide-point-item .point-note,
.custom-point-note .point-note {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 5px 0 0 0;
  padding: 5px;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border-left: 2px solid var(--primary-color);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

/* 信息卡中的自定义点备注样式 */
.custom-point-note {
  width: 100%;
  padding: 8px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  background-color: rgba(var(--primary-color-rgb), 0.05);
}

.custom-point-note .point-note {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.guide-point-item .point-actions {
  display: flex;
  gap: 5px;
}

/* L2D站娘容器样式 - 修复显示问题 */
.l2d-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  height: 400px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 移除d-none默认类，让机器人默认显示 */
.l2d-container:not(.d-none) {
  animation: slideIn 0.5s ease;
}

@keyframes slideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.l2d-container.minimized {
  transform: translateY(calc(100% - 50px));
}

.l2d-canvas-container {
  flex: 1;
  width: 100%;
  background-color: rgba(252, 228, 236, 0.5); /* 淡粉色背景 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.l2d-chat {
  height: 150px;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--divider-color);
}

.l2d-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

.l2d-message {
  margin-bottom: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  max-width: 80%;
  word-break: break-word;
  animation: message-pop 0.3s ease;
}

@keyframes message-pop {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.l2d-message.user {
  background-color: var(--primary-light);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.l2d-message.assistant {
  background-color: #f4f4f4;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.l2d-input-container {
  display: flex;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid var(--divider-color);
}

.l2d-toggle-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.l2d-toggle-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* 侧边栏导航 - 现代化设计 */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px 0;
  animation: fadeInUp 0.6s ease-out;
  background-color: var(--primary-light);
  width: 60px;
  height: 100%;
  align-items: center;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 0.8;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-nav .nav-item:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.sidebar-nav .nav-item.active {
  background-color: white;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

.sidebar-nav .nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: var(--primary-dark);
  border-radius: 0 2px 2px 0;
  animation: slideInLeft 0.3s ease, pulse 2s infinite ease-in-out;
}

.sidebar-nav .nav-item i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--primary-dark);
}

.sidebar-nav .nav-item:hover i {
  transform: scale(1.2);
  color: var(--primary-dark);
}

/* 内容面板 - 优化间距 */
.content-panels {
  position: relative;
  margin-top: 5px;
  width: 100%;
}

.content-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: opacity, transform;
}

.content-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 移动端底部导航栏 - 增强版 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  z-index: 1100;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid var(--glass-border);
  animation: slideInUp 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0.7;
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

.mobile-nav-item i {
  font-size: 1.4rem;
  margin-bottom: 4px;
  transition: all 0.3s ease;
  color: var(--secondary-text);
}

.mobile-nav-item:hover i {
  transform: scale(1.2);
  color: var(--primary-dark);
}

.mobile-nav-item span {
  font-size: 0.8rem;
  transition: all 0.3s ease;
  color: var(--secondary-text);
}

.mobile-nav-item.active {
  opacity: 1;
}

.mobile-nav-item.active i,
.mobile-nav-item.active span {
  color: var(--primary-dark);
  font-weight: 500;
}

/* 移除移动端底部导航栏选中项的下划线
.mobile-nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 3px;
  background-color: var(--primary-dark);
  border-radius: 3px 3px 0 0;
  animation: fadeIn 0.3s ease, pulse 2s infinite ease-in-out;
}
*/

.mobile-nav-item:hover {
  background-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: translateY(-3px);
}

.mobile-nav-item:hover span {
  color: var(--primary-dark);
}

/* 移动端适配 */
.mobile-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
  box-shadow: var(--card-shadow);
  display: none; /* 默认隐藏 */
}

@media (min-width: 769px) {
  .mobile-toggle {
    display: none !important; /* 非移动设备强制不显示 */
  }

  .mobile-nav {
    display: none !important; /* 非移动设备不显示底部导航 */
  }

  .mobile-drawer {
    display: none !important; /* 非移动设备强制不显示抽屉 */
  }
}

/* 移动端抽屉效果 */
.mobile-drawer {
  position: fixed;
  bottom: 65px; /* 底部导航栏高度 */
  left: 0;
  width: 100%;
  background: transparent; /* 使背景透明，让毛玻璃效果完全显示 */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  z-index: 1050;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(calc(100% - 60px)); /* 默认只显示搜索栏 */
  max-height: calc(70% - 65px); /* 减小最大高度，留出更多空间给模式切换按钮 */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-drawer.expanded {
  transform: translateY(0);
}

.mobile-drawer-handle {
  width: 40px;
  height: 5px;
  background-color: var(--divider-color);
  border-radius: 3px;
  margin: 10px auto;
  cursor: pointer;
}

.mobile-drawer-content {
  padding: 0 0 15px; /* 移除左右内边距，确保内容能够延伸到抽屉的两侧 */
  overflow-y: auto;
  flex: 1;
  background: transparent; /* 确保背景透明，让毛玻璃效果可见 */
}

.mobile-drawer-search {
  padding: 0 15px 10px;
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
}

@media (max-width: 768px) {
  /* 确保缩放控件始终在抽屉和底部导航栏上方 */
  .leaflet-control-zoom {
    bottom: 140px; /* 调高位置，让控件更靠上 */
    left: 15px;
    z-index: 1060; /* 确保在抽屉上方 */
  }

  /* 确保定位和随机按钮在移动端也能正确显示 */
  .leaflet-control-locate {
    bottom: 230px; /* 调高位置，让控件更靠上 */
    left: 15px;
    z-index: 1060; /* 确保在抽屉上方 */
  }

  .leaflet-control-random {
    bottom: 280px; /* 调高位置，让控件更靠上 */
    left: 15px;
    z-index: 1060; /* 确保在抽屉上方 */
  }

  /* 移动端重置侧边栏变量，确保不影响布局 */
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    display: none; /* 移动端默认隐藏侧边栏 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 65px; /* 留出底部导航栏的空间 */
    width: 100%;
    z-index: 1050;
    overflow-y: auto;
    min-width: unset;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  /* 移动端上侧边栏导航样式调整 - 在设置页面中隐藏 */
  .sidebar-nav {
    flex-direction: row;
    width: 100%;
    height: auto;
    padding: 10px;
    justify-content: center;
    background-color: var(--primary-light);
  }

  /* 在设置页面和指南页面中隐藏侧边栏导航 */
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .sidebar-nav,
  body:has(.mobile-nav-item[data-target="guide-panel"].active) .sidebar-nav {
    display: none !important;
  }

  .sidebar-nav .nav-item {
    margin: 0 10px;
  }

  /* 移动端侧边栏关闭按钮 */
  .mobile-sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1060;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 18px;
  }

  /* 当指南或设置面板激活时显示侧边栏 */
  body:has(.mobile-nav-item[data-target="guide-panel"].active) .sidebar,
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .sidebar {
    display: block;
  }

  .mobile-toggle {
    display: none !important; /* 不再使用侧边栏切换按钮 */
  }

  .mobile-nav {
    display: flex; /* 移动设备显示底部导航 */
  }

  .info-card {
    width: 90%;
    max-width: none;
    left: 5%;
    right: 5%;
    bottom: 70px; /* 避免被底部导航栏遮挡 */
  }

  .map-controls {
    bottom: 70px; /* 避免被底部导航栏遮挡 */
  }

  /* 移动端不显示L2D巡礼助手 */
  .l2d-container {
    display: none !important;
  }

  /* 移动端侧边栏内容样式调整 */
  .sidebar-content {
    padding: 10px;
    margin-top: 10px;
    height: calc(100% - 70px);
    overflow-y: auto;
  }

  /* 设置页面在移动端的特殊样式 */
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .sidebar-content {
    padding-top: 0;
    margin-top: 0;
  }

  /* 设置页面标题在移动端的样式 */
  body:has(.mobile-nav-item[data-target="settings-panel"].active) #settings-panel h5 {
    margin-top: 0;
    padding-top: 10px;
  }

  /* 移动端上的标题样式 */
  .sidebar-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* 移动端上的搜索框样式 */
  .sidebar-content .search-container {
    margin-bottom: 15px;
  }

  /* 在移动端上隐藏指南和设置面板中的标题和搜索栏 */
  body:has(.mobile-nav-item[data-target="guide-panel"].active) .sidebar-content h3,
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .sidebar-content h3,
  body:has(.mobile-nav-item[data-target="guide-panel"].active) .sidebar-content .search-container,
  body:has(.mobile-nav-item[data-target="settings-panel"].active) .sidebar-content .search-container {
    display: none;
  }

  /* 确保内容面板在移动端上正确显示 */
  .content-panel.active {
    display: block !important;
  }

  /* 移动端上指南和设置面板的额外样式 */
  #guide-panel, #settings-panel {
    padding-top: 10px;
  }

  /* 移动端设置面板底部添加额外的空白，避免按钮被底部导航栏遮挡 */
  #settings-panel .d-grid.gap-2 {
    padding-bottom: 80px; /* 添加底部填充，确保按钮可见 */
  }

  /* 当标题和搜索栏隐藏时，给内容面板增加更多空间 */
  .sidebar-content h3[style*="display: none"] ~ .content-panels .content-panel,
  .sidebar-content .search-container[style*="display: none"] ~ .content-panels .content-panel {
    padding-top: 20px;
  }
}

/* 加载动画 */
.load-more-indicator {
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  color: var(--secondary-text);
}

/* 右上角加载提示 */
.loading-tip {
  position: fixed;
  top: 15px;
  right: 15px;
  background-color: rgba(var(--primary-color-rgb), 0.9);
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  display: flex;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.loading-tip i {
  margin-right: 5px;
  animation: spin 1s linear infinite;
}

/* 旋转动画 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.load-more-indicator::after {
  content: "...";
  animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

.no-results {
  text-align: center;
  padding: 20px 0;
  color: var(--secondary-text);
  font-style: italic;
}

/* 动画效果 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

/* 搜索结果样式 - 增强版 */
.search-section {
  margin-bottom: 20px;
  animation: fadeIn 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-category {
  font-size: 14px;
  color: var(--secondary-text);
  margin: 10px 0;
  padding: 5px 0;
  border-bottom: 1px solid var(--divider-color);
  position: relative;
}

.search-category::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.search-results-container {
  display: flex;
  flex-direction: column;
}

.search-results-group {
  margin-bottom: 15px;
  animation: fadeInUp 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.search-results-group-title {
  font-size: 13px;
  color: var(--secondary-text);
  padding: 8px 12px;
  background-color: var(--primary-light);
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.location-item,
.point-item {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid transparent;
}

.point-cover {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-item:hover .point-cover,
.point-item:hover .point-cover {
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.point-info {
  flex: 1;
}

.location-item:hover,
.point-item:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-light);
}

.location-name,
.point-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.location-item:hover .location-name,
.point-item:hover .point-name {
  color: var(--primary-dark);
}

.location-address,
.anime-title {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 分享指南样式 */
#qrcode-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

#qrcode-container canvas {
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 导入指南样式 */
.import-guide-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.import-guide-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 24px;
  margin-right: 15px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.import-guide-title {
  font-weight: 500;
  margin: 0 0 5px 0;
}

.import-guide-meta {
  font-size: 12px;
  color: var(--secondary-text);
}

.import-guide-description {
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--primary-text);
}

.import-guide-points {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

.import-point-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider-color);
  transition: all 0.2s ease;
}

.import-point-item:hover {
  background-color: var(--primary-light);
  transform: translateX(2px);
}

.import-point-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.import-point-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  font-size: 10px;
  font-weight: bold;
  margin-right: 10px;
}

.import-point-name {
  font-weight: 500;
  margin: 0;
  font-size: 14px;
}

.import-point-anime {
  font-size: 12px;
  color: var(--secondary-text);
  margin: 0;
}

/* 动漫链接样式 */
.anime-link {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.anime-link:hover {
  color: var(--accent-color);
}

.anime-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.anime-link:hover::after {
  width: 100%;
}

/* 按钮样式全局美化 */
.btn {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #333;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
  color: #333;
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-light);
  color: #333;
  transform: translateY(-2px);
}

/* 表单元素全局美化 */
.form-control {
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  padding: 10px 15px;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(248, 187, 208, 0.25);
}

/* 页面切换淡入淡出动画 */
.fade-enter {
  opacity: 0;
}

.fade-enter-active {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 模态框动画 */
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: scale(0.95);
}

.modal.show .modal-dialog {
  transform: none;
}

.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid var(--divider-color);
}

.modal-footer {
  border-top: 1px solid var(--divider-color);
}

/* 图片查看模态框样式 */
.image-viewer-modal .modal-dialog {
  max-width: 90%;
  margin: 1.75rem auto;
}

.image-viewer-modal .modal-content {
  background-color: rgba(0, 0, 0, 0.85);
  border: none;
}

.image-viewer-modal .modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-viewer-modal img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.image-viewer-modal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(255, 255, 255, 0.3);
  color: white;
  opacity: 0.8;
  z-index: 1050;
  padding: 0.5rem;
  border-radius: 50%;
}

.image-viewer-modal .btn-close:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .image-viewer-modal .modal-dialog {
    max-width: 95%;
    margin: 0.5rem auto;
  }

  .image-viewer-modal img {
    max-height: 80vh;
  }
}