/* 旅游网站首页样式 - 基于截图设计 */

/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

#travel-wrapper {
  width: 100%;
  overflow: hidden;
}

/* ========== 导航栏样式 ========== */
#header {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 0;
}

#header .container-fluid {
  padding: 0 50px;
}

#header .logo {
  padding: 15px 0;
}

#header .logo img {
  max-height: 50px;
  filter: brightness(0) invert(1);
}

#header .nav_box {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 80px;
}

#header .yiji {
  display: inline-block;
  position: relative;
  margin: 0 20px;
}

#header .yiji > a {
  color: #ffffff;
  font-size: 16px;
  text-decoration: none;
  padding: 10px 0;
  display: block;
  transition: all 0.3s ease;
  font-weight: 400;
}

#header .yiji > a:hover,
#header .yiji.current > a {
  color: #ffffff;
  opacity: 1;
}

#header .yiji > a em {
  font-style: normal;
  position: relative;
}

#header .yiji > a:hover em::after,
#header .yiji.current > a em::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}

/* 下拉菜单 */
#header .yiji {
  position: relative;
}

#header .libox {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  min-width: 150px;
  padding: 10px 0;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  padding-top: 15px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#header .libox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

#header .libox a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

#header .libox a:hover {
  background: #f8f9fa;
  color: #ff6b6b;
}

#header .yiji:hover .libox {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

/* 搜索框隐藏 */
#header .search {
  display: none;
}

/* ========== 顶部联系栏 ========== */
.top-contact-bar {
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 101;
}

.top-contact-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 30px;
}

.contact-phone,
.contact-email {
  font-size: 14px;
  color: #666;
}

.contact-phone i,
.contact-email i {
  margin-right: 5px;
}

.btn-consult {
  background: #ff6b6b;
  color: #ffffff;
  padding: 8px 25px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-consult:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
  color: #ffffff;
}

/* ========== 主横幅区域 ========== */
.hero-banner-travel {
  position: relative;
  height: 750px;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-slide {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 10;
  text-align: center;
  padding: 0 20px;
}

.hero-text-center {
  color: #ffffff;
  margin-bottom: 60px;
}

.hero-slogan {
  font-size: 18px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 0.95;
  font-weight: 400;
}

.hero-main-title {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 2px;
}

.hero-description {
  font-size: 16px;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 搜索表单 */
.search-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.travel-search-form {
  background: rgba(255, 255, 255, 0.98);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.search-input-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-field {
  flex: 1;
  position: relative;
}

.field-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
}

.search-field .form-control {
  width: 100%;
  padding: 10px 15px 10px 45px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-field .form-control:focus {
  border-color: #ff6b6b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-search {
  padding: 10px 35px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

/* 轮播按钮 */
.hero-prev,
.hero-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.5);
}

.hero-prev::after,
.hero-next::after {
  font-size: 20px;
  color: #ffffff;
  font-weight: bold;
}

/* ========== 通用区块标题 ========== */
.section-header-travel {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 80px;
}

.section-title-cn {
  font-size: 36px;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 10px;
}

.section-title-en {
  font-size: 16px;
  color: #999;
  text-transform: capitalize;
  letter-spacing: 1px;
}

.section-header-travel.white .section-title-cn,
.section-header-travel.white .section-title-en {
  color: #ffffff;
}

/* ========== 热门景点区域 ========== */
.hot-destinations {
  padding: 0 0 80px;
  background: #ffffff;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.destination-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.destination-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.destination-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.dest-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.dest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .dest-image img {
  transform: scale(1.1);
}

.dest-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 20px;
}

.dest-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.dest-footer {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-view-dest {
  background: #28a745;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-view-dest:hover {
  background: #218838;
  transform: translateY(-2px);
  color: #ffffff;
}

.dest-rating {
  display: flex;
  gap: 3px;
}

.star {
  color: #ffc107;
  font-size: 16px;
}

/* ========== 为什么选择我们 ========== */
.why-choose-us {
  padding: 80px 0;
  position: relative;
  background-image: url('/skin/images/beach-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.why-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.why-choose-us .container {
  position: relative;
  z-index: 2;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.advantage-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: left;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.advantage-card.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.advantage-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantage-title {
  font-size: 18px;
  font-weight: 600;
  color: #ff6b6b;
  margin-bottom: 15px;
}

.advantage-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* ========== 推荐景点 ========== */
.recommended-spots {
  padding: 0 0 80px;
  background: #f8f9fa;
}

.spots-slider-wrapper {
  position: relative;
  padding: 0 60px;
}

.spots-swiper {
  overflow: hidden;
}

.spot-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.spot-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.spot-image {
  height: 180px;
  overflow: hidden;
}

.spot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spot-card:hover .spot-image img {
  transform: scale(1.1);
}

.spot-info {
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-icon {
  font-size: 16px;
  color: #ff6b6b;
}

.spot-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.spots-prev,
.spots-next {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.spots-prev::after,
.spots-next::after {
  font-size: 16px;
  color: #333;
}

/* ========== 新闻资讯 ========== */
.news-section-travel {
  padding: 0 0 80px;
  background: #ffffff;
}

.news-grid-travel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-item-travel {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.news-item-travel.animate-in {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease forwards;
}

.news-item-travel:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-img {
  height: 220px;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item-travel:hover .news-img img {
  transform: scale(1.1);
}

.news-item-travel > div:not(.news-img) {
  padding: 0 25px;
}

.news-meta {
  padding: 15px 25px 10px;
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
}

.news-date,
.news-views,
.news-comments {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title-travel {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 15px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-more {
  display: inline-block;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.news-more:hover {
  color: #ff5252;
  transform: translateX(5px);
}

/* ========== 合作伙伴 ========== */
.partners-section {
  padding: 0 0 80px;
  background: #f8f9fa;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: center;
}

.partner-logo {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
  max-width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.partner-logo:hover img {
  opacity: 1;
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 响应式设计 ========== */
@media (max-width: 1199px) {
  .destinations-grid,
  .advantages-grid,
  .news-grid-travel {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .hero-main-title {
    font-size: 42px;
  }
  
  .search-input-group {
    flex-wrap: wrap;
  }
  
  .search-field {
    flex: 1 1 calc(50% - 10px);
  }
  
  .btn-search {
    flex: 1 1 100%;
    margin-top: 10px;
  }
}

@media (max-width: 991px) {
  #header {
    position: relative;
    top: 0;
    background: #ffffff;
  }
  
  #header .logo img {
    filter: none;
  }
  
  .hero-banner-travel {
    margin-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .top-contact-bar .container {
    flex-direction: column;
    gap: 10px;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .hero-banner-travel {
    height: 500px;
  }
  
  .hero-main-title {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .section-header-travel {
    padding-top: 50px;
    margin-bottom: 30px;
  }
  
  .section-title-cn {
    font-size: 28px;
  }
  
  .destinations-grid,
  .advantages-grid,
  .news-grid-travel,
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .search-field {
    flex: 1 1 100%;
  }
  
  .spots-slider-wrapper {
    padding: 0 40px;
  }
  
  .col-md-2,
  .col-md-3,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  .footer-main {
    padding: 40px 0 30px;
  }
  
  .footer-form {
    max-width: 100%;
  }
}

/* ========== Footer样式 ========== */
.travel-footer {
  background: #2d3748;
  color: #ffffff;
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-col {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 25px;
}

.footer-logo img {
  max-height: 50px;
  filter: brightness(0) invert(1);
}

.footer-address {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 2;
}

.footer-address p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-address .icon {
  font-size: 16px;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6b6b;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ff6b6b;
  transform: translateX(5px);
}

.footer-news {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-news li {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-news li:last-child {
  border-bottom: none;
}

.footer-news a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-news a:hover {
  color: #ff6b6b;
}

.footer-news .news-date {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 5px;
}

.footer-news .news-title {
  font-size: 14px;
  line-height: 1.6;
}

.footer-form {
  max-width: 300px;
}

.footer-form .form-group {
  margin-bottom: 15px;
}

.footer-input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #ffffff;
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ff6b6b;
  outline: none;
}

.footer-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.footer-copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin: 0;
}

.footer-copyright a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: #ff6b6b;
}

/* ========== 辅助类 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-2,
.col-md-3,
.col-md-4 {
  padding: 0 15px;
}

.col-md-2 {
  flex: 0 0 16.666667%;
  max-width: 16.666667%;
}

.col-md-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}
