/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

:root {
  --primary-color: #f60;
}

.text-primary {
  color: var(--primary-color);
}

.text-4xl {
  font-size: 2.25rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

/* 顶部导航 */
.header {
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 60px;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav ul li {
  margin-left: 30px;
}

.nav ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
  color: #f60;
}

/* 轮播图 */
.banner-swiper {
  margin-top: 80px;
  height: 600px;
}

.banner-swiper .swiper-slide {
  background-size: cover;
  background-position: center;
  position: relative;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.banner-content p {
  font-size: 24px;
}

/* 公司优势 */
.advantages {
  padding: 80px 0;
  background: #fff;
}

.advantages .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item i {
  transition: transform 0.3s;
  display: inline-block;
}

.advantage-item:hover i {
  transform: scale(1.1);
}

.advantage-item h3 {
  margin-bottom: 10px;
  color: #333;
}

.advantage-item p {
  color: #666;
  font-size: 14px;
}

/* 热门景点和攻略分享公共样式 */
.hot-spots,
.travel-guides {
  padding: 80px 0;
}

/* 攻略分享特有样式 */
.travel-guides {
  background-color: #fff;
}

.hot-spots h2,
.travel-guides h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
  color: #333;
}

.spots-filter,
.guides-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.spots-cities,
.guides-cities {
  display: flex;
  gap: 20px;
}

.spots-cities a,
.guides-cities a {
  color: #666;
  text-decoration: none;
  padding: 5px 15px;
  border-radius: 20px;
  transition: all 0.3s;
}

.spots-cities a.active,
.guides-cities a.active {
  color: #fff;
  background-color: var(--primary-color);
}

.spots-cities a:hover,
.guides-cities a:hover {
  color: var(--primary-color);
  background: rgba(255, 102, 0, 0.1);
}

.spots-cities a.active:hover,
.guides-cities a.active:hover {
  color: #fff;
}

.spots-filter .view-all,
.guides-filter .view-all {
  color: #333;
  border: 1px solid #ddd;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
}

.spots-filter .view-all:hover,
.guides-filter .view-all:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* 热门景点 */
.hot-spots {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.spots-container {
  width: 100%;
}

.city-spots {
  display: none;
  width: 100%;
}

.city-spots.active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.spot-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.spot-item:hover {
  transform: translateY(-5px);
}

.spot-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.spot-item h3 {
  padding: 15px;
  margin: 0;
  color: #333;
}

.spot-item p {
  padding: 0 15px 15px;
  color: #666;
  margin: 0;
}

/* 攻略分享 */
.travel-guides {
  padding: 80px 0;
  background-color: #fff;
}

.guides-container {
  width: 100%;
}

.guide-list {
  display: none;
}

.guide-list.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.guide-item {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.guide-item:hover {
  transform: translateY(-5px);
}

.guide-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.guide-item h3 {
  margin: 10px 0;
  padding: 0 15px;
  font-size: 18px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-item p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  padding: 0 15px 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 游记列表项样式 */
.travel-note-item {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.travel-note-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* 服务团队 */
.team {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.team h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.team .swiper {
  padding: 20px 0;
}

.team .swiper-slide {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}

.team .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.team .swiper-slide h3 {
  margin-bottom: 5px;
  color: #333;
}

.team .swiper-slide p {
  color: #666;
}

/* 关于我们 */
.about-us {
  padding: 80px 0;
  background-color: #fff;
}

.about-us h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.tabs {
  max-width: 800px;
  margin: 0 auto;
}

.tabs .tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.tabs .tab-btn {
  padding: 10px 20px;
  border: none;
  background: none;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: color 0.3s;
}

.tabs .tab-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.tabs .tab-btn:hover,
.tabs .tab-btn.active {
  color: var(--primary-color);
}

.tabs .tab-btn.active::after {
  transform: scaleX(1);
}

.about-content {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}

.about-images {
  flex: 1;
  position: relative;
}

.about-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.about-img.active {
  display: block;
  opacity: 1;
}

.about-text {
  flex: 1;
}

.tab-content .tab-pane {
  display: none;
}

.tab-content .tab-pane.active {
  display: block;
}

.tab-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #666;
}

.tab-content p:last-child {
  margin-bottom: 0;
}

/* 旅游风采 */
.travel-photos {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.travel-photos h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.travel-photos .swiper {
  padding: 20px 0;
}

.travel-photos .swiper-slide {
  border-radius: 10px;
  overflow: hidden;
  height: 250px;
}

.travel-photos .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 回到顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.back-to-top i {
  line-height: 40px;
}

.back-to-top:hover {
  transform: translateY(-3px);
  background-color: #ff7417;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  display: flex;
}

/* 底部导航 */
.footer {
  background: #333;
  color: #fff;
  padding: 60px 0 0;
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer h3 {
  margin-bottom: 20px;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav ul li a:hover {
  color: #f60;
}

.contact-info p {
  margin-bottom: 10px;
}

.message-form form {
  display: flex;
  flex-direction: column;
}

.message-form input,
.message-form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.message-form textarea {
  height: 100px;
  resize: none;
}

.message-form button {
  padding: 10px 20px;
  background: #f60;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.message-form button:hover {
  background: #ff8533;
}

.message-form button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.message-form #phone {
  width: 100%;
  color: #333;
}

.iti__selected-dial-code {
  color: #333;
}

/* 电话号码输入框样式 */
.iti {
  width: 100%;
  margin-bottom: 15px;
}

.iti__flag-container {
  z-index: 100;
}

.iti__country-list {
  max-width: 300px;
}

.error {
  border: 1px solid red !important;
}

.iti__country-name {
  color: #333;
}

/* 成功提交弹窗样式 */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.success-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 30px 20px;
  text-align: center;
  position: relative;
}

.success-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

.success-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 165, 66, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-modal-icon svg {
  width: 30px;
  height: 30px;
}

.success-modal-title {
  color: #00a542;
  font-size: 20px;
  margin: 0 0 20px;
  font-weight: 500;
}

.success-modal-body {
  margin: 0;
}

.success-modal-body p {
  margin: 0;
  line-height: 1.6;
  color: #333;
  font-size: 15px;
}

.success-modal-phone {
  color: #333;
  font-weight: bold;
  font-size: 16px !important;
  margin: 3px 0 !important;
}

.success-modal-footer {
  margin-top: 25px;
}

.success-modal-btn {
  width: 100%;
  background-color: #f60;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 8px 45px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.success-modal-btn:hover {
  background-color: #ff8533;
}

.success-modal-btn:focus {
  outline: none;
}

.copyright {
  text-align: center;
  padding: 20px 0;
  background: #222;
  margin-top: 30px;
}

.copyright p {
  font-size: 14px;
  color: #999;
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  /* 导航栏适配 */
  .nav ul {
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fff;
    padding: 60px 20px;
    transition: 0.3s;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .nav ul.active {
    right: 0;
  }

  .nav ul li {
    margin: 15px 0;
  }

  /* Banner内容适配 */
  .banner-content {
    width: 80%;
  }

  /* 公司优势适配 */
  .advantages .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advantage-item {
    text-align: center;
    padding: 20px;
  }

  .advantage-item i {
    font-size: 36px;
    margin-bottom: 15px;
  }

  /* 热门景点适配 */
  .city-spots.active,
  .guide-list.active {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .spots-filter,
  .guides-filter {
    flex-direction: column;
    gap: 15px;
  }

  .spots-cities,
  .guides-cities {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* 服务团队适配 */
  .team .container {
    width: calc(100% - 40px);
  }

  /* 关于我们适配 */
  .about-content {
    flex-direction: column;
  }

  .about-img,
  .about-text {
    width: 100%;
  }

  .about-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  /* 底部导航适配 */
  .footer .container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .message-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  /* 页面通用间距调整 */
  section {
    padding: 40px 0;
  }

  h2 {
    margin-bottom: 30px;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 480px) {
  .team-container {
    grid-template-columns: 1fr;
  }

  .spots-cities a,
  .guides-cities a {
    padding: 4px 12px;
    font-size: 14px;
  }

  .banner-content h2 {
    font-size: 24px;
  }

  .banner-content p {
    font-size: 14px;
  }
}

/* 移动端菜单按钮样式 */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  position: relative;
}

.menu-toggle .menu-icon,
.menu-toggle .close-icon {
  transition: opacity 0.3s, transform 0.3s;
}

.menu-toggle .close-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.menu-toggle.active .menu-icon {
  transform: scale(0);
  opacity: 0;
}

.menu-toggle.active .close-icon {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }

  .nav ul.show {
    display: flex;
  }

  .nav ul li {
    margin: 0;
    text-align: center;
  }

  .nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid #eee;
  }

  .nav ul li:last-child a {
    border-bottom: none;
  }
}
