/* 基础样式 */
:root {
  --primary-color: #ff80ab;
  --secondary-color: #1ba77e;
  --accent-color: #ffb74d;
  --text-color: #333;
  --light-color: #fff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #757575;
  --blue: #4285f4;
  --green: #34a853;
  --yellow: #fbbc05;
  --pink-light: #ffcdd2;
  --green-light: #a7ffeb;
  --yellow-light: #fff9c4;
  --border-radius: 10px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica", "Arial", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
  font-weight: 600;
}

h2 {
  font-size: 2.5em;
  margin-bottom: 0.8em;
}

h3 {
  font-size: 1.5em;
}

p {
  margin-bottom: 1em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: var(--light-color);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8em;
}

section {
  padding: 80px 0;
}

.underline {
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
  margin-bottom: 1.5em;
}

/* 形状装饰 */
.shape {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background-color: var(--pink-light);
  top: 20%;
  left: 10%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background-color: var(--green-light);
  bottom: 15%;
  right: 5%;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background-color: var(--yellow-light);
  top: 30%;
  right: 25%;
}

.shape-4 {
  width: 80px;
  height: 80px;
  background-color: var(--accent-color);
  opacity: 0.3;
  bottom: 20%;
  left: 30%;
}

.shape-5 {
  width: 120px;
  height: 120px;
  background-color: var(--primary-color);
  opacity: 0.2;
  bottom: -30px;
  right: -30px;
}

.shape-6 {
  width: 50px;
  height: 50px;
  background-color: var(--blue);
  opacity: 0.3;
  top: 20px;
  left: -20px;
}

.shape-7 {
  width: 80px;
  height: 80px;
  background-color: var(--yellow);
  opacity: 0.2;
  bottom: 50px;
  right: 30%;
}

/* 头部导航 */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo span {
  color: var(--primary-color);
}

.desktop-nav ul {
  display: flex;
  list-style: none;
}

.desktop-nav ul li {
  margin-left: 30px;
}

.desktop-nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
}

.desktop-nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.desktop-nav ul li a:hover:after,
.desktop-nav ul li a.active:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

/* 移动端导航 */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--light-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-150%);
  transition: transform 0.4s ease;
  z-index: 999;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
  padding: 20px;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

.mobile-nav ul li a {
  display: block;
  padding: 10px;
  color: var(--text-color);
  font-weight: 500;
}

/* 英雄区域 */
.hero {
  height: 100vh;
  background: url("../images/index/bg.webp") no-repeat center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  color: var(--light-color);
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content h2 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* 关于我们 */
.about-us {
  background-color: var(--light-color);
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.about-us-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.about-us-image {
  flex: 0 0 45%;
}

.about-us-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-us-info {
  flex: 0 0 55%;
}

.about-us-tabs {
  width: 100%;
}

.tab-buttons {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--medium-gray);
  overflow-x: auto;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-gray);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-content {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.tab-pane p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.tab-pane ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.tab-pane ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 15px;
  list-style: none;
}

.tab-pane ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--secondary-color);
}

@media screen and (max-width: 992px) {
  .about-us-content {
    flex-direction: column;
  }

  .about-us-image,
  .about-us-info {
    flex: 0 0 100%;
  }

  .about-us-image {
    margin-bottom: 30px;
  }

  .about-us-image img {
    max-height: 400px;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {
  .tab-btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .tab-content {
    padding: 20px;
  }
}

/* 特色服务 */
.services {
  background-color: var(--light-gray);
  text-align: center;
}

.service-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  flex: 1;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  font-size: 1.5em;
  color: var(--light-color);
}

.icon.blue {
  background-color: var(--blue);
}

.icon.green {
  background-color: var(--green);
}

.icon.yellow {
  background-color: var(--yellow);
}

/* 热门景点 */
.destinations {
  text-align: center;
}

/* 新轮播图样式 */
.carousel-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-color);
  text-align: left;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
}

.carousel-caption h3 {
  margin-bottom: 5px;
}

.carousel-caption p {
  margin-bottom: 15px;
  font-size: 0.9em;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-button:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--primary-color);
}

/* 旧版目的地卡片样式保持备用 */
.destination-slider {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 50px;
}

.destination-card {
  flex: 1;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  position: relative;
}

.destination-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.destination-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--light-color);
  text-align: left;
}

.destination-info h3 {
  margin-bottom: 5px;
}

.destination-info p {
  margin-bottom: 15px;
  font-size: 0.9em;
}

/* 旅游攻略 */
.guide {
  background-color: var(--light-gray);
}

.guide .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.guide-content {
  flex: 1;
}

.guide-image {
  flex: 1;
  position: relative;
}

.guide-image img {
  border-radius: 20px;
  box-shadow: var(--box-shadow);
}

/* 团队介绍 */
.team {
  text-align: center;
}

.team-carousel {
  position: relative;
  max-width: 100%;
  margin: 50px 0 30px;
  overflow: hidden;
}

.team-cards {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
}

.team-slide {
  flex: 0 0 25%;
  padding: 0 10px;
  box-sizing: border-box;
}

.team-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
  margin-bottom: 20px;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card .image-container {
  padding-top: 133%; /* 3:4 比例容器，可以根据实际图片比例调整 */
  position: relative;
  overflow: hidden;
  background-color: #f8f8f8;
}

.team-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 保持原比例 */
}

.team-card h3 {
  margin: 20px 0 5px;
}

.team-card p {
  color: var(--dark-gray);
  margin-bottom: 20px;
}

.team-carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.team-carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--medium-gray);
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.team-carousel-dot.active {
  background-color: var(--primary-color);
}

.team-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-color);
  font-size: 1.2em;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.team-carousel-button:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.team-carousel-button.prev {
  left: 20px;
}

.team-carousel-button.next {
  right: 20px;
}

@media screen and (max-width: 992px) {
  .team-slide {
    flex: 0 0 50%;
    padding: 0 10px;
  }
}

@media screen and (max-width: 768px) {
  .team-slide {
    flex: 0 0 100%;
    padding: 0 15px;
  }

  .team-carousel-button {
    width: 30px;
    height: 30px;
    font-size: 1em;
  }

  .team-carousel-button.prev {
    left: 5px;
  }

  .team-carousel-button.next {
    right: 5px;
  }
}

/* 游客反馈 */
.testimonials {
  background-color: var(--light-gray);
  text-align: center;
}

.testimonial-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 50px 0 30px;
}

.testimonial-card {
  flex: 1;
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  text-align: left;
  position: relative;
}

.quote {
  font-size: 5em;
  position: absolute;
  top: -20px;
  left: 20px;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: "Georgia", serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 0;
}

.author-info span {
  color: var(--dark-gray);
  font-size: 0.9em;
}

/* 联系我们 */
.contact .container {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: var(--light-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

.social-links {
  margin-top: 40px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background-color: var(--medium-gray);
  color: var(--dark-gray);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  color: var(--light-color);
}

.contact-form {
  flex: 1;
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: var(--border-radius);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1em;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

/* 页脚 */
footer {
  background-color: var(--text-color);
  color: var(--light-color);
  padding: 70px 0 30px;
}

.footer-logo h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--light-color);
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
}

.footer-column {
  flex: 1;
  margin-right: 30px;
}

.footer-column h3 {
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--medium-gray);
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--primary-color);
}

.footer-column p {
  color: var(--medium-gray);
  line-height: 1.8;
}

.copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--medium-gray);
  font-size: 0.9em;
}

/* 响应式设计 */
@media screen and (max-width: 992px) {
  h2 {
    font-size: 2em;
  }

  section {
    padding: 60px 0;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-content h2 {
    font-size: 2.5em;
  }

  .about .container,
  .guide .container,
  .contact .container {
    flex-direction: column;
  }

  .service-cards,
  .destination-slider,
  .team-carousel,
  .testimonial-cards {
    flex-wrap: wrap;
  }

  .service-card,
  .destination-card,
  .team-card,
  .testimonial-card {
    flex: 100%;
    margin-bottom: 30px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-column {
    flex: 100%;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .hero {
    height: auto;
    padding: 100px 0;
    background: url("../images/backgrounds/hero-bg.jpg") no-repeat center center;
    background-size: cover;
  }

  .hero-content {
    margin: 0 auto;
    text-align: center;
  }

  .underline {
    margin: 0 auto 1.5em;
  }

  .contact .container {
    gap: 30px;
  }
}
