/* 旅游网站主题色 */
:root {
  --primary-color: #1E40AF; /* 主蓝色 - 代表天空、海洋 */
  --secondary-color: #10B981; /* 辅助绿色 - 代表自然、森林 */
  --accent-color: #F59E0B; /* 强调橙色 - 代表活力、阳光 */
  --danger-color: #EF4444; /* 危险红色 */
  --dark-color: #1F2937; /* 深色文本 */
  --light-color: #F3F4F6; /* 浅色背景 */
  --white-color: #FFFFFF; /* 白色 */
  --gray-color: #6B7280; /* 灰色 */
  --hover-transition: all 0.3s ease;
}

/* 全局样式 */
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark-color);
  background-color: var(--white-color);
  line-height: 1.6;
}

/* 导航样式 */
.navbar {
  background-color: var(--white-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
}

.navbar.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-link {
  color: var(--dark-color);
  font-weight: 500;
  transition: var(--hover-transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--hover-transition);
}

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

/* 下拉菜单样式 */
.dropdown-menu {
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 200px;
}

.dropdown-item {
  color: var(--dark-color);
  padding: 0.75rem 1.5rem;
  transition: var(--hover-transition);
  font-weight: 400;
}

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

/* 按钮样式 */
.btn {
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: var(--hover-transition);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: #1D4ED8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white-color);
}

.btn-accent:hover {
  background-color: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* 卡片样式 */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
  background-color: var(--white-color);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--hover-transition);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--gray-color);
  margin-bottom: 1rem;
}

/* 表单样式 */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--hover-transition);
  background-color: var(--white-color);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

/* 英雄区域样式 */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(30, 64, 175, 0.8), rgba(16, 185, 129, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* 目的地卡片样式 */
.destination-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 300px;
  transition: var(--hover-transition);
}

.destination-card:hover {
  transform: scale(1.02);
}

.destination-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
  z-index: 1;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  color: var(--white-color);
  z-index: 2;
}

/* 统计数字样式 */
.stat-item {
  text-align: center;
  padding: 2rem;
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--hover-transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  color: var(--gray-color);
  font-weight: 500;
}

/* 页脚样式 */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer h3 {
  color: var(--white-color);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer a {
  color: #9CA3AF;
  transition: var(--hover-transition);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer a:hover {
  color: var(--white-color);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #9CA3AF;
}

/* 移动端菜单样式 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--white-color);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  transition: var(--hover-transition);
  overflow-y: auto;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--hover-transition);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 汉堡菜单动画 */
.hamburger {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--dark-color);
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transition: var(--hover-transition);
}

.hamburger span:nth-child(1) {
  top: 0px;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* 动画效果 */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

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

.slide-up {
  animation: slideUp 0.6s ease-out;
}

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

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--hover-transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #1D4ED8;
  transform: translateY(-4px);
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(30, 64, 175, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 1023px) {
  /* 平板设备样式 */
  .navbar {
    padding: 1rem 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .destination-card {
    height: 250px;
  }
}

@media (max-width: 767px) {
  /* 移动设备样式 */
  .hero-content {
    text-align: center;
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .stat-item {
    padding: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .destination-card {
    height: 200px;
  }
  
  .destination-card-content {
    padding: 1.5rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .footer h3 {
    margin-top: 2rem;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #1D4ED8;
}