/*
 * 指南详情窗口重新设计
 * 更现代、美观的UI设计，优化布局和视觉体验
 */

/* 指南详情模态框基础样式 */
#guide-details-modal .modal-dialog {
  max-width: 800px;
  margin: 1.75rem auto;
}

#guide-details-modal .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 模态框标题区域 */
#guide-details-modal .modal-header {
  padding: 0;
  border-bottom: none;
  position: relative;
  height: 180px;
  overflow: hidden;
}

#guide-details-modal .modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

#guide-details-modal .guide-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

#guide-details-modal .modal-title-container {
  position: absolute;
  bottom: 20px;
  left: 25px;
  z-index: 2;
  width: calc(100% - 80px);
}

#guide-details-modal .modal-title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#guide-details-modal .guide-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-top: 5px;
  max-width: 80%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#guide-details-modal .btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 3;
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: all 0.2s ease;
}

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

/* 模态框内容区域 */
#guide-details-modal .modal-body {
  padding: 20px 25px;
  overflow-y: auto;
  max-height: calc(85vh - 180px);
}

/* 操作按钮区域 */
#guide-details-modal .guide-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

#guide-details-modal .guide-action-btn {
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  border: none;
  color: var(--primary-color);
}

#guide-details-modal .guide-action-btn:hover {
  background-color: rgba(var(--primary-color-rgb), 0.2);
  transform: translateY(-2px);
}

#guide-details-modal .guide-action-btn i {
  font-size: 20px;
  margin-bottom: 5px;
}

#guide-details-modal .guide-action-btn span {
  font-size: 12px;
  font-weight: 500;
}

/* 巡礼点列表区域 */
#guide-details-modal .guide-points-section {
  margin-bottom: 20px;
}

#guide-details-modal .guide-points-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

#guide-details-modal .guide-points-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
}

#guide-details-modal .guide-points-count {
  background-color: var(--primary-color);
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  margin-left: 8px;
}

#guide-details-modal .guide-points-list {
  background-color: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 16px;
  padding: 5px;
  max-height: none;
  overflow: visible;
  border: none;
}

/* 巡礼点项目 */
#guide-details-modal .guide-point-item {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  margin-bottom: 8px;
  padding: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

#guide-details-modal .guide-point-item:last-child {
  margin-bottom: 0;
}

#guide-details-modal .guide-point-item:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

#guide-details-modal .point-number {
  width: 30px;
  height: 30px;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

#guide-details-modal .point-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

#guide-details-modal .point-info {
  padding-left: 5px;
}

#guide-details-modal .point-name {
  font-size: 15px;
  font-weight: 600;
}

#guide-details-modal .point-anime {
  font-size: 13px;
}

#guide-details-modal .point-actions .btn {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 功能按钮区域 */
#guide-details-modal .guide-functions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

#guide-details-modal .guide-function-btn {
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border: 1px solid rgba(var(--primary-color-rgb), 0.3);
  background-color: transparent;
  color: var(--primary-text);
}

#guide-details-modal .guide-function-btn:hover {
  background-color: rgba(var(--primary-color-rgb), 0.1);
  transform: translateY(-2px);
}

#guide-details-modal .guide-function-btn i {
  font-size: 18px;
  margin-right: 8px;
}

#guide-details-modal .guide-function-btn.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
}

#guide-details-modal .guide-function-btn.primary-btn:hover {
  background-color: var(--primary-dark);
}

/* 空状态提示 */
#guide-details-modal #guide-empty-message {
  background-color: rgba(var(--primary-color-rgb), 0.05);
  border-radius: 16px;
  padding: 30px 20px;
  margin: 10px 0;
}

#guide-details-modal #guide-empty-message i {
  font-size: 40px;
  color: var(--primary-color);
  opacity: 0.5;
  margin-bottom: 10px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  #guide-details-modal .modal-dialog {
    margin: 0.5rem auto;
    max-width: 95%;
  }

  #guide-details-modal .modal-header {
    height: 150px;
  }

  #guide-details-modal .modal-body {
    max-height: calc(85vh - 150px);
    padding: 15px;
  }

  #guide-details-modal .guide-functions {
    grid-template-columns: 1fr;
  }

  #guide-details-modal .guide-action-btn {
    flex-direction: column;
    justify-content: center;
    padding: 12px 8px;
    align-items: center;
    text-align: center;
  }

  #guide-details-modal .guide-action-btn i {
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 22px;
  }

  #guide-details-modal .guide-action-btn span {
    font-size: 12px;
  }
}

/* 深色模式适配 */
.dark-mode #guide-details-modal .modal-content {
  background-color: var(--background-color);
}

.dark-mode #guide-details-modal .guide-points-list {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode #guide-details-modal .guide-point-item {
  background-color: rgba(40, 40, 40, 0.8);
}

.dark-mode #guide-details-modal .guide-point-item:hover {
  background-color: rgba(50, 50, 50, 0.9);
}

.dark-mode #guide-details-modal .guide-action-btn,
.dark-mode #guide-details-modal .guide-function-btn {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.dark-mode #guide-details-modal .guide-action-btn:hover,
.dark-mode #guide-details-modal .guide-function-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode #guide-details-modal .guide-function-btn.primary-btn {
  background-color: var(--primary-color);
  color: white;
}

.dark-mode #guide-details-modal #guide-empty-message {
  background-color: rgba(255, 255, 255, 0.05);
}
