/* 基本樣式設定 */
:root {
  --primary-color: #0f1a3d;
  --white-color: #ffffff;
  --gray-color: #f5f5f5;
  --accent-color: #4a90e2;
  --transition: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif;
  color: var(--primary-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Source Han Sans TC", "思源黑體", sans-serif;
  font-weight: 600;
}

/* 頁面加載進度條 */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--white-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: var(--transition);
}

.loader-content {
  text-align: center;
}

.progress-bar {
  width: 200px;
  height: 3px;
  background-color: var(--gray-color);
  margin: 20px auto;
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background-color: var(--primary-color);
  animation: progress 1.5s infinite ease-in-out;
}

@keyframes progress {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

/* 導航欄樣式 */
.navbar {
  background-color: transparent;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(15, 26, 61, 0.95);
  padding: 10px 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-cn {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--white-color);
}

.logo-en {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.navbar-nav .nav-link {
  color: var(--gray-color);
  margin: 0 15px;
  position: relative;
  padding: 5px 0;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Banner 區塊樣式 */
.section-banner {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 26, 61, 0.7);
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-content {
  text-align: center;
  color: var(--white-color);
  z-index: 1;
  padding: 0 20px;
}

.main-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.5s;
}

.sub-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards 0.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
}

.arrow-down {
  display: block;
  width: 30px;
  height: 30px;
  border-right: 3px solid var(--white-color);
  border-bottom: 3px solid var(--white-color);
  transform: rotate(45deg);
  margin: 0 auto;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(10px);
  }
  60% {
    transform: rotate(45deg) translateY(5px);
  }
}

/* 共用區塊樣式 */
section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

/* 特色服務區塊樣式 */
.section-services {
  background-color: var(--white-color);
}

.service-card {
  text-align: center;
  padding: 40px 30px;
  background-color: var(--white-color);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
  margin-bottom: 30px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--gray-color);
  border-radius: 50%;
  transition: var(--transition);
}

.service-card:hover .icon-container {
  background-color: var(--primary-color);
}

.icon-container i {
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover .icon-container i {
  color: var(--white-color);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.stats-container {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
  margin: 0 40px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-title {
  font-size: 1.2rem;
  color: #666;
}

/* 推薦行程區塊樣式 */
.section-trips {
  background-color: var(--gray-color);
  overflow: hidden;
}

.trips-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.trips-slider::-webkit-scrollbar {
  height: 8px;
}

.trips-slider::-webkit-scrollbar-track {
  background: #ddd;
  border-radius: 4px;
}

.trips-slider::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.trip-card {
  flex: 0 0 350px;
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.trip-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trip-image {
  height: 200px;
  overflow: hidden;
}

.trip-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.trip-card:hover .trip-image img {
  transform: scale(1.1);
}

.trip-content {
  padding: 20px;
}

.trip-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.trip-description {
  color: #666;
  margin-bottom: 15px;
  min-height: 40px;
}

.price-bar {
  height: 6px;
  background-color: #eee;
  border-radius: 3px;
  margin-bottom: 20px;
  position: relative;
}

.price-marker {
  position: absolute;
  top: -25px;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.price-marker::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--primary-color) transparent transparent transparent;
}

.btn-details {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-details:hover {
  background-color: var(--accent-color);
}

/* 關於我們區塊樣式 */
.section-about {
  background-color: var(--white-color);
}

.about-info {
  padding: 20px;
  margin-bottom: 30px;
}

.about-info h3 {
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.about-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.map-container {
  height: 300px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.address-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.address-info p {
  margin: 0;
  font-size: 0.9rem;
}

.address-info i {
  color: var(--primary-color);
  margin-right: 5px;
}

.team-container {
  margin-top: 50px;
  text-align: center;
}

.team-container h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.team-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-10px);
}

.member-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.member-avatar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 61, 0.5),
    rgba(74, 144, 226, 0.5)
  );
  opacity: 0;
  transition: var(--transition);
}

.team-member:hover .member-avatar::before {
  opacity: 1;
}

.team-member h4 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.team-member p {
  color: #666;
  font-size: 0.9rem;
}

/* 聯絡區塊樣式 */
.section-contact {
  background-color: var(--gray-color);
}

.contact-form {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 26, 61, 0.1);
}

.btn-submit {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background-color: var(--accent-color);
}

.globe-container {
  height: 400px;
  background-color: var(--primary-color);
  border-radius: 10px;
  overflow: hidden;
}

/* 頁腳樣式 */
footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 60px 0 30px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.company-info p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #ccc;
}

.phone-number a {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.phone-number a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white-color);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--white-color);
  color: var(--primary-color);
}

.certification {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.certification img {
  max-width: 120px;
  filter: brightness(0) invert(1);
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* 回到頂部按鈕 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent-color);
}

/* 行程詳情彈窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
  overflow: auto;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  margin: 5% auto;
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: modalOpen 0.4s;
}

@keyframes modalOpen {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: #999;
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--primary-color);
}

/* 行程詳情彈窗內容 */
.modal-trip {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.modal-trip-image {
  flex: 0 0 300px;
}

.modal-trip-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.modal-trip-details {
  flex: 1;
  min-width: 300px;
}

.modal-trip-details h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.trip-detail-item {
  margin-bottom: 20px;
}

.trip-detail-item .label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.trip-detail-item ul {
  padding-left: 20px;
}

.trip-detail-item ul li {
  margin-bottom: 8px;
}

.trip-detail-item .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-book {
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-book:hover {
  background-color: var(--accent-color);
}

/* 響應式樣式 */
@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .sub-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .trips-slider {
    padding-bottom: 30px;
  }

  .trip-card {
    flex: 0 0 300px;
  }

  .stats-container {
    flex-wrap: wrap;
  }

  .stat-item {
    margin: 20px;
  }

  .team-members {
    gap: 20px;
  }

  .modal-content {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .main-title {
    font-size: 2rem;
  }

  .sub-title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .trip-card {
    flex: 0 0 250px;
  }

  .address-info {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    border-radius: 0 0 10px 10px;
  }

  .team-members {
    flex-direction: column;
    align-items: center;
  }

  .social-links {
    justify-content: flex-start;
  }

  .certification {
    justify-content: flex-start;
    margin-top: 20px;
  }
}
