﻿/* 全局样式 */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #f8a100;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --success-color: #198754;
}

body {
  font-family: "Microsoft YaHei", "STHeiti", sans-serif;
  color: #333;
}

/* 导航栏样式 */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
  top: 48px;
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
  }
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.navbar-brand:hover {
  color: var(--primary-color);
}

.nav-link {
  font-weight: 500;
  padding: 8px 15px !important;
  margin: 0 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 70%;
}

.nav-link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* 轮播图样式增强 */

.carousel {
  margin-top: 48px;
}

@media (max-width: 768px) {
  .carousel {
    margin-top: 0;
  }
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 30px;
  border-radius: 10px;
  max-width: 70%;
  margin: 0 auto;
  bottom: 50%;
  transform: translateY(50%);
}

.carousel-caption h2 {
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.carousel-caption .btn {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 轮播图高度调整 */
.carousel-item img {
  height: 70vh;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 992px) {
  .carousel-item img {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 50vh;
  }
}

/* 热门目的地样式 */
.popular-destinations {
  padding: 80px 0;
}

.section-title {
  position: relative;
  margin-bottom: 60px;
}

.section-title:after {
  content: "";
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
}

.destination-card {
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-10px);
}

.card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .card-image img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.7)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  transition: background 0.3s ease;
}

.destination-card:hover .overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.8)
  );
}

.overlay h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.8rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.overlay .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.destination-card:hover .overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* 服务模块样式 */
.service-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.service-card {
  padding: 30px 20px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* 旅游体验区域样式 */
.travel-experience {
  position: relative;
  background-color: #f5f5f5;
  padding: 80px 0;
}

.experience-image {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.experience-badge {
  position: absolute;
  right: -20px;
  bottom: 30px;
  width: 120px;
  height: 120px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.experience-badge span {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1;
}

.experience-badge small {
  font-size: 1rem;
}

/* 公司优势样式 */
.advantages-section {
  padding: 80px 0;
}

.advantage-item {
  padding: 30px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.advantage-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

/* 客户评价区域样式 */
.testimonials {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.testimonial-item {
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 5px solid var(--secondary-color);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  position: relative;
  padding: 0 20px;
}

.testimonial-text:before,
.testimonial-text:after {
  content: '"';
  font-size: 3rem;
  color: var(--secondary-color);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}

.testimonial-text:before {
  top: -20px;
  left: 0;
}

.testimonial-text:after {
  bottom: -40px;
  right: 0;
}

/* 订阅通讯区域样式 */
.newsletter {
  background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
  padding: 60px 0;
}

.newsletter h3 {
  font-weight: 700;
  color: white;
}

.newsletter-form .form-control {
  height: 50px;
  border-radius: 50px 0 0 50px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter-form .btn {
  border-radius: 0 50px 50px 0;
  height: 50px;
  font-weight: 600;
  background-color: var(--secondary-color);
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--secondary-color);
}

/* 关于我们页面样式 */
.about-page .about-section {
  padding: 80px 0;
}

.about-content {
  margin-bottom: 50px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 联系我们页面样式 */
.contact-page .contact-section {
  padding: 80px 0;
}

.contact-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  background-color: white;
  height: 100%;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.map-container {
  height: 450px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 隐私政策页面样式 */
.privacy-page .privacy-section {
  padding: 80px 0;
}

.privacy-content {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.privacy-content h2 {
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.privacy-content h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  transform: translateX(-50%);
}

.privacy-content h3 {
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .carousel-caption {
    max-width: 90%;
    padding: 20px;
  }

  .carousel-caption h2 {
    font-size: 2rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .carousel-caption {
    bottom: 10%;
    transform: none;
    padding: 15px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .destination-card {
    margin-bottom: 20px;
  }

  .card-image {
    height: 250px;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.fadeInUp {
  animation-name: fadeInUp;
}
