/* 全局樣式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft JhengHei", "微軟正黑體", "SimHei", "黑體", sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
}

a:hover {
  color: #e67e22;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* 導航欄樣式 */
.header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 45px;
  z-index: 1000;
}

@media (max-width: 768px) {
  .header {
    top: 0;
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
}

.logo h1 {
  margin-left: 10px;
  font-size: 1.5rem;
  color: #333;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
  padding: 5px 0;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #e67e22;
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

/* 輪播圖樣式 */
.slider {
  margin-top: 68px;
  position: relative;
  overflow: hidden;
}

.slider-home {
  height: 600px;
}

.slider-page {
  height: 300px;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 1;
}

.slider-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slider-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.slider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* 服務內容樣式 */
.services {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #333;
}

.section-title p {
  color: #777;
  max-width: 700px;
  margin: 0 auto;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.service-item {
  flex-basis: calc(33.333% - 30px);
  margin-bottom: 40px;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-10px);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-item:hover .service-img img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-content p {
  color: #777;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background-color: #e67e22;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #d35400;
  color: white;
}

/* 優勢部分樣式 */
.advantages {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.advantages-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.advantage-item {
  flex-basis: calc(25% - 30px);
  text-align: center;
  margin-bottom: 30px;
}

.advantage-icon {
  font-size: 3rem;
  color: #e67e22;
  margin-bottom: 20px;
}

.advantage-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.advantage-item p {
  color: #777;
}

/* 特色路線樣式 */
.featured-routes {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.route-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.route-card {
  flex: 0 0 calc(33.333% - 30px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.route-card:hover {
  transform: translateY(-10px);
}

.route-img {
  height: 200px;
  overflow: hidden;
}

.route-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.route-card:hover .route-img img {
  transform: scale(1.1);
}

.route-info {
  padding: 20px;
}

.route-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.route-info p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.route-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.route-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e67e22;
}

.route-duration {
  color: #777;
  font-size: 0.9rem;
}

/* 客戶評價樣式 */
.testimonials {
  padding: 80px 0;
  background-color: #fff;
}

.testimonial-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.testimonial-item {
  text-align: center;
  padding: 20px;
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
  position: relative;
}

.testimonial-text:before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: #e67e22;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.testimonial-role {
  color: #777;
  font-size: 0.9rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid #e67e22;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 新聞動態樣式 */
.news {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.news-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.news-item {
  flex: 0 0 calc(50% - 15px);
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.news-img {
  flex: 0 0 30%;
  overflow: hidden;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  flex: 0 0 70%;
  padding: 20px;
}

.news-date {
  font-size: 0.8rem;
  color: #e67e22;
  margin-bottom: 10px;
}

.news-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.news-link {
  color: #e67e22;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.news-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.news-link:hover i {
  transform: translateX(5px);
}

/* 訂閱區域樣式 */
.subscribe {
  padding: 60px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../images/14.avif") center/cover no-repeat;
  text-align: center;
  color: white;
}

.subscribe h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.subscribe p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.subscribe-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
}

.subscribe-input {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.subscribe-btn {
  background-color: #e67e22;
  color: white;
  border: none;
  padding: 0 25px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #d35400;
}

/* 關於我們頁面樣式 */
.about-content {
  padding: 80px 0;
  background-color: white;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.about-text {
  flex-basis: 60%;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.about-image {
  flex-basis: 35%;
}

.about-image img {
  width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 聯繫我們頁面樣式 */
.contact-content {
  padding: 80px 0;
  background-color: white;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.contact-info {
  flex-basis: 48%;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-details p {
  margin-bottom: 10px;
  color: #555;
}

.contact-details i {
  color: #e67e22;
  margin-right: 10px;
}

.contact-map {
  flex-basis: 48%;
  height: 400px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 隱私政策頁面樣式 */
.privacy-content {
  padding: 80px 0;
  background-color: white;
}

.privacy-container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-container h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

.privacy-container p {
  margin-bottom: 20px;
  color: #555;
}

.privacy-container ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.privacy-container li {
  margin-bottom: 10px;
  color: #555;
}

/* 頁腳樣式 */
.footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer p {
  margin-bottom: 10px;
}

.footer a {
  color: #e67e22;
}

.footer a:hover {
  text-decoration: underline;
}

/* 響應式設計 */
@media (max-width: 992px) {
  .service-item {
    flex-basis: calc(50% - 20px);
  }

  .advantage-item {
    flex-basis: calc(50% - 20px);
  }

  .about-text,
  .about-image {
    flex-basis: 100%;
  }

  .about-image {
    margin-top: 30px;
  }

  .contact-info,
  .contact-map {
    flex-basis: 100%;
  }

  .contact-map {
    margin-top: 30px;
  }

  .route-card {
    flex: 0 0 calc(50% - 15px);
  }

  .news-item {
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
  }

  .nav-links {
    margin-top: 20px;
  }

  .nav-links li {
    margin: 0 10px;
  }

  .slider-home {
    height: 400px;
  }

  .slider-page {
    height: 200px;
  }

  .slider-content h2 {
    font-size: 2rem;
  }

  .service-item {
    flex-basis: 100%;
  }

  .advantage-item {
    flex-basis: 100%;
  }

  .route-card {
    flex: 0 0 100%;
  }

  .news-item {
    flex-direction: column;
  }

  .news-img {
    flex: 0 0 200px;
  }

  .news-content {
    flex: 1;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-input {
    border-radius: 5px;
    margin-bottom: 10px;
  }

  .subscribe-btn {
    border-radius: 5px;
    padding: 15px;
  }
}
