body {
  font-family: "Segoe UI", sans-serif;
}

.font-logo {
  font-family: "Pacifico", cursive;
}

.hero-bg {
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
}

.destination-bg {
  background: linear-gradient(to bottom, #f9fafb 0%, #f3f4f6 100%);
}

.theme-bg {
  background: linear-gradient(to right, #f3f4f6 0%, #e5e7eb 100%);
}

.testimonial-bg {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.footer-bg {
  background: linear-gradient(135deg, #312e81 0%, #3730a3 100%);
}

.card-hover:hover img {
  transform: scale(1.03);
}

.card-hover img {
  transition: transform 0.3s ease;
}

/* 导航栏（顶部毛玻璃 / 滚动后白色毛玻璃） */
.nav-bg {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(10px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.nav-bg.small {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nav-bg.small .nav-logo {
  font-size: 1.5rem;
  transition: font-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg.small .nav-logo-subtitle {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg.small .nav-link {
  font-size: 0.875rem;
  padding: 6px 12px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg.small .login-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bg > div {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.nav-link.active {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  color: #6366f1;
}

.login-btn {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.3);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px -2px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.nav-icon-btn {
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-icon-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
  transform: translateY(-2px);
}

.nav-text-white .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-text-white .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.25);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-text-white .nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-text-white .nav-icon-btn {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-text-white .nav-icon-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.25);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.nav-text-white .nav-logo {
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-text-white .login-btn {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-text-white .login-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-text-white .nav-logo-icon > div:first-child {
  opacity: 0.3;
}

.nav-text-white .nav-logo-icon > div:last-child {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-text-white .nav-logo-icon .fas {
  color: rgba(255, 255, 255, 0.98);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-text-white .nav-logo-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .nav-link {
    padding: 12px 16px;
    width: 100%;
  }
  .nav-text-white .login-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
  }
}

/* 轮播图 */
.carousel-container {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  margin-top: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator.active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

/* 游客心声横向滚动样式 */
.testimonial-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  padding: 2rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-scroll-container::-webkit-scrollbar {
  display: none;
}

.testimonial-scroll-wrapper {
  display: flex;
  gap: 1.5rem;
  animation: scroll-horizontal 30s linear infinite;
}

.testimonial-scroll-wrapper:hover {
  animation-play-state: paused;
}

.testimonial-note {
  background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
  border-left: 4px solid #fbbf24;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
  min-width: 380px;
  flex-shrink: 0;
  position: relative;
  padding: 1.5rem;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .testimonial-scroll-container {
    padding: 1.5rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .testimonial-scroll-wrapper {
    gap: 1rem;
    animation: none;
  }
  .testimonial-note {
    min-width: calc(100vw - 3rem);
    max-width: calc(100vw - 3rem);
    padding: 1.25rem;
    transform: rotate(0deg);
    scroll-snap-align: start;
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  .testimonial-note {
    min-width: calc(50vw - 1.5rem);
    max-width: calc(50vw - 1.5rem);
  }
}

.testimonial-note:nth-child(even) {
  transform: rotate(1deg);
  background: linear-gradient(135deg, #e6f3ff 0%, #d6ebff 100%);
  border-left-color: #60a5fa;
}

.testimonial-note:nth-child(3n) {
  transform: rotate(-0.5deg);
  background: linear-gradient(135deg, #f0e6ff 0%, #e6d6ff 100%);
  border-left-color: #a78bfa;
}

.testimonial-note:hover {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.testimonial-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, transparent 100%);
  border-radius: 0 8px 0 40px;
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 区块滚动进入 / 离开动效 */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-36px);
}

.reveal-right {
  transform: translateX(36px);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}


