:root {
  --main-color: #78784F;
  --sub-color: #91A194;
  --notice-color: #6E3F22;
  --bg-color: #F1F2D9;
}

body {
  background: #ffffff;
  font-family: Arial, "文泉驛正黑", "WenQuanYi Zen Hei", "儷黑 Pro", "LiHei Pro", "微軟正黑體", "Microsoft JhengHei", "標楷體", sans-serif;
  color: #000;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 73px;
}


/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

h1 {
  letter-spacing: 3px;
}

h2 {
  color: #545454;
  font-size: 24px;
  margin: 18px 0px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  h2 {
    font-size: 36px;
  }
}

h3 {
  color: #444;
  /* font-size: 2rem; */
  letter-spacing: 1px;
}

p {
  font-size: 1rem;
  letter-spacing: 0.8px;
  line-height: 1.6;
  margin: 0;
}

a {
  display: block;
  text-decoration: none !important;
}

a:focus {
  outline: 5px auto -webkit-focus-ring-color !important;
  outline-offset: -1px;
}

button:focus {
  outline: 5px auto -webkit-focus-ring-color !important;
  outline-offset: -1px;
}

img {
  display: block;
  width: 100%;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* MENU */
nav.navbar {
  background-color: #fff;
  border: 0px;
  box-shadow: 4px 4px 12px -2px rgba(51, 51, 102, .2);
  max-height: 100vh;
  overflow: scroll;
}

nav.navbar::-webkit-scrollbar {
  display: none;
}

@media screen and (min-width: 992px) {
  nav.navbar {
    overflow: initial;
  }

  /* 確保 logo + #navbarSupportedContent 總寬不超出 .container */
  nav.navbar .container {
    flex-wrap: nowrap;
  }

  /* #navbarSupportedContent 允許縮小，不能無限擴展 */
  #navbarSupportedContent {
    flex: 1 1 auto;
    min-width: 0;
    /* 允許 flex item 縮到比內容窄，不溢出容器 */
    display: flex;
    align-items: center;
  }

  /* #navbar-anchor 佔據中間可用空間，同樣允許縮小 */
  #navbar-anchor {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 15px;
  }

  /* 語言選單固定在右側，不縮小 */
  #navbarSupportedContent>ul.navbar-nav.nav-item.dropdown {
    flex: 0 0 auto;
  }
}

.navbar-nav .nav-link {
  color: #2e3741;
  padding: 10px 0;
  font-size: 15px;
  word-break: keep-all;
  white-space: nowrap;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: #2e3741;
}

.navbar-toggler {
  color: #2e3741;
  background-color: transparent;
  border: var(--bs-border-width) solid #2e3741;
  width: 50px;
}

.navbar-toggler-icon {
  background-image: none;
  width: auto;
  margin: 2px 0;
}

.navbar-toggler-icon i {
  margin-top: 5px;
}

.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, .1);
}

.dropdown-item {
  padding: 10px 0 !important;
  font-size: 15px;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: 100px;
}

.nav-au {
  color: #2e3741;
  margin-left: 10px;
  padding: 16px;
  font-size: 1rem;
}

.nav-link.dropdown-toggle.language {
  margin: 0 auto;
  width: 100%;
}

/* 浮動購買按鈕 */
.buy-btn-top {
  position: fixed;
  right: 15px;
  top: 80%;
  z-index: 99;
  width: 80px;
}

.buy-btn-top:hover {
  bottom: 22%;
  transition: 0.2s;
}


/* All Section styles */
.color-block {
  background-color: var(--bg-color);
}

.color-block h2 {
  color: var(--notice-color);
}

.sub-color-block {
  background-color: var(--sub-color);
}

.fixed-block {
  background-image: url(../images/bg_01.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.image-block {
  background-image: url(../images/bg_03.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.icon-block {
  background-image: url(../images/bg_02.png);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top right;
}

.text-highlight {
  color: var(--notice-color);
}

.section-block {
  padding: 50px 15px;
}

@media screen and (min-width: 768px) {
  .section-block {
    padding: 80px 15px;
  }
}

.section-title {
  margin-bottom: 30px;
  text-align: center;
}

@media screen and (min-width: 1200px) {
  .section-title {
    margin-bottom: 50px;
  }
}

.more-btn {
  margin: 0;
  margin-top: 30px;
  border: 1px solid var(--notice-color);
  color: var(--notice-color);
  height: 50px;
  line-height: 50px;
  border-radius: 25px;
  text-align: center;
  clear: both;
  transition: .3s;
}

.more-btn:hover {
  background-color: var(--notice-color);
  color: #fff;
}

@media screen and (min-width: 768px) {
  .more-btn {
    width: fit-content;
    padding: 0 40px;
    margin: 30px auto 0 auto;
  }
}

/* Qwl */
.owl-item {
  padding: 20px 30px;
}

.owl-prev,
.owl-next {
  position: absolute;
  top: 0;
  height: 30px;
  width: 30px;
  line-height: 30px;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.owl-prev.disabled,
.owl-next.disabled {
  opacity: .25;
}

.owl-prev i,
.owl-next i {
  font-size: 3.2rem !important;
  opacity: .65;
  transition: .3s;
  display: block;
  height: 44px;
  line-height: 2.6rem;
}

.owl-prevhover i,
.owl-nexthover i {
  color: #000 !important;
}

.owl-prev {
  left: -45px;
}

.owl-next {
  right: -45px;
}

.owl-theme .owl-nav [class*=owl-]:hover {
  background: transparent;
  color: #000;
  text-decoration: none;
}


@media screen and (max-width: 767px) {
  .owl-prev {
    left: -25px;
  }

  .owl-next {
    right: -25px;
  }
}

.owl-prev,
.owl-next {
  height: 44px;
  width: 44px;
}

/* Slogan */
.banner-wrap {
  position: relative;
  overflow: hidden;
  background-color: rgba(0, 0, 0, .2);
}

.banner-wrap>img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  z-index: -1;
}

h1 {
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .8);
  padding: 100px 15px;
  text-align: center;
  font-family: 'FontAwesome';
}

@media screen and (min-width: 768px) {
  h1 {
    font-size: 2rem;
    padding: 160px 15px;
  }
}

@media screen and (min-width: 992px) {
  h1 {
    font-size: 2.4rem;
    padding: 200px 15px;
  }
}

@media screen and (min-width: 1200px) {
  h1 {
    font-size: 2.6rem;
    padding: 260px 15px;
  }
}

/* Spot */

/* .spot-section {
  background-image: url(../images/bg_montain.png);
  background-position: 5% 98%;
  background-repeat: no-repeat;
}

@media screen and (max-width: 767px) {
  .spot-section {
    background-position: -50% 98%;
    background-size: 80%;
  }
} */
.spot-item {
  margin-bottom: 50px;
  padding: 15px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: flex-start !important;
}

.spot-item h3 {
  text-align: center;
  font-size: 1.3rem;
}

.spot-item .spot-img {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

@media screen and (min-width: 768px) {
  .spot-item h3 {
    font-size: 1.4rem;
  }

  .ja_JP .spot-item h3 {
    font-size: 1.3rem;
  }
}

/* Recommend */
.recommend-item {
  max-width: 500px;
  margin: 0 auto;
  margin-bottom: 50px;
}

.recommend-item .recommend-img {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.recommend-item .recommend-content {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--notice-color);
  background-color: #F1F2D9;
}

.recommend-item .recommend-content .recommend-content-title {
  background-color: var(--notice-color);
  border-radius: 6px;
  border: 2px solid var(--notice-color);
}

.recommend-item .recommend-content .recommend-content-title h3 {
  color: #fff;
  font-size: 1.1rem;
  padding: 10px 15px;
  margin: 0;
}

.recommend-item .recommend-content p {
  padding: 15px;
  font-size: 1rem;
}

.recommend-item .recommend-content p span {
  color: var(--notice-color);
  font-weight: bold;
}

@media screen and (min-width: 768px) {
  .recommend-item {
    max-width: none;
  }

  .recommend-item .recommend-img {
    margin-bottom: 0;
  }

  .recommend-item .recommend-content {
    margin: 0 30px;
  }
}

@media screen and (min-width: 1200px) {
  .recommend-item .recommend-content .recommend-content-title h3 {
    font-size: 1.3rem;
  }

  .recommend-item .recommend-content p {
    font-size: 1.2rem;
  }

  .ja_JP .recommend-item .recommend-content .recommend-content-title h3 {
    font-size: 1.2rem;
  }

  .ja_JP .recommend-item .recommend-content p {
    font-size: 1.1rem;
  }
}

.recommend-section {
  background-image: url(../images/bg_tree.png);
  background-position: 95% 5%;
  background-repeat: no-repeat;
}


/* Post */
.post-page {
  justify-content: center;
}

.post-item {
  margin-bottom: 15px;
}

.post-item a {
  transition: .3s;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, .2);
  padding: 5px;
}

.post-item a h3 {
  padding: 5px 0 5px 15px;
  font-size: 1rem;
  color: var(--notice-color);
  margin: 0;
  width: calc(100% - 100px);
  float: right;
}

.post-item a h3 span {
  display: block;
  height: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.post-item a img {
  transition: .5s ease-in-out;
  width: 100px;
  float: left;
  border-radius: 5px;
}

.post-item a:hover img {
  opacity: .8;
}

.post-section {
  background-image: url(../images/bg_leaf.png);
  background-position: 3% 95%;
  background-repeat: no-repeat;
}

@media screen and (min-width: 1024px) {
  .post-item {
    padding: 10px;
  }

  .post-item a {
    padding: 0;
  }

  .post-item a h3 {
    padding: 15px;
    width: 100%;
    float: inherit;
  }

  .post-item a h3 span {
    height: 76px;
    -webkit-line-clamp: 4;
  }

  .post-item a img {
    border-radius: 0;
    width: 100%;
    float: inherit;
  }
}

.owl-item .post-item {
  transform: scale(0.94);
}

.owl-item.active.center .post-item {
  transform: scale(1);
}

/* .owl-item.active.center .post-item a:hover{
  color: #fff;
  background-color: var(--notice-color);
} */
.owl-theme .owl-dots .owl-dot {
  width: 44px;
  height: 44px;
}

.owl-theme .owl-dots .owl-dot span {
  margin: 0 auto;
}

/* QA */
.qa-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--sub-color) !important;
  margin-bottom: 20px;
}

.qa-title {
  padding: 10px;
  margin: 0px;
  background-color: var(--main-color);
  color: #fff !important;
}

.qa-title p {
  font-size: 1rem;
}

.qa-content {
  background-color: #fff;
  padding: 10px;
}

.qa-content p {
  font-size: 1rem;
}

.qa-content ul {
  padding-left: 30px;
}

.qa-content ul li {
  list-style: decimal;
}

.qa-content ol {
  margin: 0;
}

.qa-steps {
  padding: 10px 0;
}

.qa-steps-title {
  color: var(--sub-color);
}

.qa-section {
  background-image: url(../images/bg_montain.png);
  background-position: 3% 98%;
  background-repeat: no-repeat;
}

@media screen and (max-width: 767px) {
  .qa-section {
    background-position: -50% 98%;
    background-size: 80%;
  }
}

.row {
  align-items: center;
}

.channel-section .channel-wrap {
  padding: 20px 0;
  margin: 16px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  flex-direction: row;
  flex-wrap: wrap;
}

.channel-section .channel-wrap>a {
  display: block;
  background-color: #fff;
  width: 40%;
  margin: 12px;
  padding: 0px 22px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

@media screen and (min-width: 768px) {
  .channel-section .channel-wrap>a {
    width: 25%;
  }
}

/* ========== 基礎版面樣式 ========== */
.banner {
  /* max-width: 1100px; */
  margin: 0 auto;
  position: relative;
  /* padding-bottom: 60px; */
  background-color: #000;
}

iframe {
  width: 100% !important;
}

/* Slick 輪播圖高度與樣式 */
.carousel-item {
  /* height: 500px; */
  justify-content: center;
  position: relative;
  background: #000;
}

.carousel-item iframe {
  object-fit: cover;
  border: none;
  display: block;
}

.carousel-item img {
  object-fit: cover;
  border: none;
  display: block;
  /* width: 150%; */
}

@media screen and (min-width: 992px) {
  .carousel-item img {
    width: 100%;
  }
}

.embed-responsive {
  position: relative;
  display: block;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.embed-responsive-16by9 {
  padding-bottom: 66.6666%;
}

@media screen and (min-width: 992px) {
  .embed-responsive-16by9 {
    padding-bottom: 40%;
  }
}

iframe {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  bottom: 0;
  left: 0;
  border: 0;
  /* height: auto; */
}

@media screen and (min-width: 992px) {
  iframe {
    width: 71% !important;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
}

/* ========== 切換按鈕樣式 (影片 / 圖片) ========== */
.mainbanner {
  background-color: #000;
}

.mainbanner-btns {
  position: absolute;
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 4px;
  border-radius: 24px;
  margin: 0;
  z-index: 10;
  background-color: rgba(0, 0, 0, .6);

  transform: translateX(0) scale(0.8);
  bottom: 0;
  right: -5px;
  
}

/* @media screen and (max-width: 768px) {
  .mainbanner-btns {
    transform: translateX(0) scale(0.8);
    left: inherit;
    bottom: 0;
    right: -5px;
  }
} */

.mainbanner-btns a {
  display: inline-block;
  width: 40px;
  height: 40px;
  text-align: center;
  line-height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  text-decoration: none;
  border-radius: 20px;
  transition: 0.3s;
}

.mainbanner-btns a:hover {
  background: rgba(0, 0, 0, 0.8);
}

.mainbanner-btns a.is-active {
  background: #f39c12;
  font-weight: bold;
}

/* 隱藏未啟用的 banner */
[data-mainbanner] {
  display: none;
}

/* 左右箭頭微調 */
.slick-prev {
  left: 10px;
  z-index: 10;
}

.slick-next {
  right: 10px;
  z-index: 10;
}

.carousel-item>a,
.carousel-item>iframe {
  width: 100vw;
}

.logo {
  width: 100px;
}

/* 地圖 */
.map-container {
  width: 100%;
  max-width: 960px;
  text-align: center;
  margin: 0 auto;
}

.map-container h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* --- 頁籤按鈕區域 --- */
.tabs-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

/* 按鈕基礎樣式 */
.tab-btn,
.tab-style {
  padding: 8px 20px;
  border: 2px solid #ccc;
  border-radius: 20px;
  background-color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  transition: 0.3s;
  white-space: nowrap;
}

@media screen and (min-width: 768px) {

  .tab-btn,
  .tab-style {
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 18px;
  }
}

.tab-btn-brown {
  background-color: #EA9817;
  border-color: #EA9817;
}

button.tab-btn-brown:focus {
  outline: #EA9817 1px solid !important;
}

.tab-btn-pink {
  background-color: #FFB087;
  border-color: #FFB087;
}

button.tab-btn-pink:focus {
  outline: #FFB087 1px solid !important;
}

.tab-btn-blue {
  background-color: #7bbfd4;
  border-color: #7bbfd4;
}

button.tab-btn-blue:focus {
  outline: #7bbfd4 1px solid !important;
}

.tab-btn-yellow {
  background-color: #e7bf56;
  border-color: #e7bf56;
}

button.tab-btn-yellow:focus {
  outline: #e7bf56 1px solid !important;
}

/* 活躍 (Active) 狀態的樣式 */
.tab-btn.is-active {
  background-color: #fff;
  color: #333;
}

/* 懸停效果 */
.tab-btn:hover {
  opacity: 0.8;
}

/* 【無障礙優化】鍵盤焦點樣式：讓使用 Tab 鍵導覽的使用者能清楚知道現在停在哪個按鈕 */
.tab-btn:focus-visible,
.map-pane:focus-visible {
  outline: 3px solid #0056b3;
  outline-offset: 3px;
}

/* --- 內容顯示區域 --- */
.map-content-box {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #999;
}

/* 隱藏所有內容區塊 (結合 hidden 屬性) */
.map-pane {
  display: none;
  width: 100%;
  height: 100%;
}

/* 顯示活躍的內容區塊 */
.map-pane.is-active {
  display: flex;
}

.placeholder-text {
  color: #cc0000;
  font-weight: bold;
  font-size: 32px;
}


.tutorial-section {
  padding: 50px 0px;


}

.tutorial-section img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}

.tutorial-section p {
  margin: auto 0;
}

.tutorial-section .step-item .step-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.tutorial-section img {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 200px;
}

.tutorial-section .step-item .step-content {
  font-size: 16px;
  text-align: center;
  height: 60px;
}

.tutorial-section .step-item {
  margin-bottom: 30px;
}

/* .tutorial-section .section-header {
  .section-title {
    text-align: center;
    color: #545454;
    font-size: 2.5rem;
    margin: 18px 0px;
  }
} */
.section-title p {
  text-align: center;
  color: #545454;
}

.download-section {
  padding: 50px 0px;
  background-color: #FDFBEF;
}

.download-section img {
  width: 100%;
}

/* .download-section .section-header {
  .section-title {
    text-align: center;
    color: #545454;
    font-size: 2.5rem;
    margin: 18px 0px;
  }
} */

.download-section .app-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border: 2px solid #545454;
  padding: 1rem;
  box-shadow: 3px 4px 0px #545454;
  border-radius: 10px;
  margin: 30px 0px;
}

.download-section .app-link .download-app-icon {
  width: 50%;
  padding: 1rem;
}

/* .download-section .app-link .download-app-icon>img {
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
} */

.download-section .app-link .app-link-btn {
  width: 50%;
  margin: 10px;
}

.download-section .app-link .app-link-btn>a {
  display: block;
  padding: 10px;
}

@media screen and (max-width: 768px) {
  .download-section .app-link .app-link-btn>a {
    display: block;
    padding: 5px;
  }
}

.download-section .app-qrcode {
  background-color: #ffffff;
  border: 2px solid #545454;
  border-radius: 10px;
  box-shadow: 3px 4px 0px #545454;
  margin: 30px 0px;
}

.download-section .app-qrcode>a {
  display: block;
  border-radius: 20px;
  margin: 10px;
}

.app-qrcode {
  display: none !important;
}

@media screen and (min-width: 768px) {
  .app-qrcode {
    display: block !important;
  }

  .download-section .app-link .download-app-icon {
    width: 40%;
    padding: 0 50px;
  }

  .download-section .app-link {
    max-width: 720px;
    margin: 0 auto;
    margin-bottom: 30px;
  }

  .download-section img {
    width: 100%;
    margin: 15px 0px;
  }

  .download-section .app-link .app-link-btn {
    width: 60%;
  }
}

.footer .contact-info {
  font-size: 1.6rem;
  border: 2px solid #545454;
  box-shadow: 3px 4px 0px #545454;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 0px;
  margin-top: 30px;
}

.contact-info a {
  display: inline;
}

.copy-right {
  padding: 10px 15px;
  background-color: #fff;
  text-align: center;
  margin: 0;
}

.copy-right a {
  display: inline;
  color: #23527c;
}

.product-special-section {
  background-color: #FDFBEF;
  padding: 50px 0px;
}

.product-special-section .product-special-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.product-special-section .product-special-box>div {
  margin: 0 15px;
  width: calc(50% - 30px);
}

@media screen and (min-width: 768px) {
  .product-special-section .product-special-box>div {
    margin: 0 15px;
    width: calc(33.3333% - 30px);
  }
  .footer .contact-info{
    margin-top: 50px;
  }
}

.product-special-btn {
  /* margin-bottom: 30px !important; */
}

.product-special-title {
  display: block;
  text-align: center;
  color: #F39801;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 10px;
}

.product-special-img {
  width: 100%;
  margin: auto;
  max-width: 200px;
  padding: 0 10px;

  >img {
    width: 100%;
    object-fit: cover;
  }
}

.product-special-content {
  text-align: center;
}

.product-special-content>p {
  margin-top: 10px;
  font-size: 18px;
}

@media screen and (min-width: 768px) {
  .product-special-title {
    /* margin-bottom: 30px; */
  }

  .product-special-content>p {
    margin: 30px 0;
  }

  .product-special-img {
    max-width: 300px;
  }
}

.dropdown-menu[data-bs-popper] {
  left: inherit;
  right: 0;
}

.rwd-d {
  display: none;
}

@media screen and (min-width: 768px) {
  .rwd-m {
    display: none;
  }

  .rwd-d {
    display: block;
  }
}

.col-xs-6 {
  width: 50%;
}

@media (min-width: 768px) {
  .col-sm-3 {
    width: 25%;
  }
}

@media screen and (min-width: 768px) {
  .tutorial-section {
    padding: 80px 0px;
  }
}

@media screen and (min-width: 768px) {
  .product-special-section {
    padding: 50px 0px;
  }
}

#teaching {
  background: #FDFBEF;
}

.dropdown-menu li {
  /* text-align: center; */
  padding: 0 15px;
}

.totop {
  position: fixed;
  border: none;
  height: 36px;
  width: 36px;
  border-radius: 5px;
  bottom: 110px;
  right: 10px;
  z-index: 810;
  display: none;
  opacity: .6;
  text-align: center;
}

.totop i {
  display: block;
  line-height: 34px;
  text-align: center;
  font-size: 20px;
  border-radius: 2px;
  color: #2e3741;
}

/* 首頁最新消息區塊 */
.home-news {
  padding: 50px 20px;
  background-color: #FDFBEF;
}

.home-news .home-news-wrap {
  background-color: rgba(256, 256, 256, 0.8);
  border-radius: 10px;
  padding: 15px 0;
}

.home-news .home-news-wrap h2 {
  text-align: center;
  color: #333;
  font-weight: bold;
  margin: 0;
  margin-bottom: 20px;
  font-size: 24px;
}

.home-news .home-news-wrap ul {
  padding: 0;
  margin: 0;
}

.home-news .home-news-wrap ul li {
  margin: 0;
  list-style: none;
}

.home-news .home-news-wrap ul li a.home-news-info {
  display: block;
  overflow: hidden;
  padding: 5px;
  background-color: #fff;
  transition: 0.3s;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-img {
  float: left;
  margin-right: 10px;
  border-radius: 5px;
  overflow: hidden;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-img img {
  display: block;
  width: 100px;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-content {
  float: right;
  width: calc(100% - 115px);
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-content h3 {
  font-weight: bold;
  font-size: 16px;
  margin: 0;
  color: #333;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-content .info-content-tag {
  display: inline-block;
  border-radius: 3px;
  padding: 0px 3px;
  background-color: #333;
  color: #fff;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-content .info-content-date {
  font-size: 12px;
  color: #666;
  vertical-align: top;
  display: inline-block;
  margin-right: 5px;
}

.home-news .home-news-wrap ul li a.home-news-info .news-info-content p {
  margin: 0;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 5px;
  color: #333;
}

.home-news .home-news-wrap ul li a.home-news-info:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.home-news .home-news-wrap .home-news-more-btn {
  text-align: center;
  display: block;
  border-radius: 4px;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 700;
  width: fit-content;
  color: #333;
  border: 1px solid #333;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 768px) {
  .home-news {
    padding: 50px 5.859375%;
    margin-left: auto;
    margin-right: auto;
  }

  .home-news .home-news-wrap ul li {
    margin-bottom: 5px;
  }

  .home-news .home-news-wrap ul li a.home-news-info {
    padding: 8px;
    transition: 0.3s;
  }

  .home-news .home-news-wrap ul li a.home-news-info .news-info-img {
    margin-right: 15px;
  }

  .home-news .home-news-wrap ul li a.home-news-info .news-info-content {
    float: right;
  }

  .home-news .home-news-wrap ul li a.home-news-info .news-info-content h3 {
    font-size: 18px;
  }

  .home-news .home-news-wrap ul li a.home-news-info .news-info-content h3 .info-content-tag {
    padding: 5px 5px;
    vertical-align: bottom;
  }

  .home-news .home-news-wrap ul li a.home-news-info .news-info-content p {
    font-size: 14px;
    width: 80%;
  }
}

@media screen and (min-width: 992px) {
  .home-news {
    padding: 50px 23%;
  }
}

@media screen and (min-width: 1601px) {
  .home-news .home-news-wrap {
    width: 840px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Skeleton loading：預留空間，防止 DOM 插入造成版面位移（CLS） */
@keyframes news-shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.home-news-wrap ul.is-loading {
  min-height: 220px;
  /* 預留約 2 則新聞的高度 */
  position: relative;
}

.home-news-wrap ul.is-loading::before {
  content: '';
  display: block;
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #ffffff 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: news-shimmer 1.4s ease-in-out infinite;
}

.map-section {
  background-image: url(../images/bg.jpg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  position: relative;
  z-index: 1;
}
.map-section.map-thsr {
  background-image: url(../images/bg_hsr.jpg);
}
.map-section.map-tra {
  background-image: url(../images/bg_tr.jpg);
}
.map-section.map-metro {
  background-image: url(../images/bg_mrt.jpg);
}
.map-section.map-shuttle {
  background-image: url(../images/bg_bus.jpg);
}
.map-section::before{
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0,0,0,.5);
  z-index: -1;
}

.map-section h2 {
  color: #fff;
}

/* 比較表外框容器 */
.ticket-compare-wrapper {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.ticket-row {
  padding: 5px;
}

/* 每一列的網格設定 (左邊攔 120px，右邊兩欄均分 1fr) */
.ticket-row-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 0;
  background-color: #FAF2E3;
  border-radius: 5px;
}

.ticket-row.header-row .ticket-row-wrap {
  background-color: #fff;
  padding: 0;
}

.ticket-row.border-bottom {
  border: none !important;
}

@media screen and (min-width: 768px) {

  /* 底部分隔線 */
  .ticket-row.border-bottom {
    border-bottom: 1px solid #f0f0f0 !important;
  }

  .ticket-row-wrap {
    background-color: #fff;
  }
}

/* 儲存格基本設定 */
.ticket-cell {
  padding: 0 10px;
}

.ticket-cell.text-center {
  text-align: center;
}

.ticket-cell p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  font-weight: 500;
}

/* 跨越兩欄的設定 (都會捷運、景區接駁) */
.ticket-cell.span-2 {
  grid-column: 2 / 4;
}

/* 左側邊欄設定 (Icon + 文字) */
.sidebar-cell {
  display: flex;
  justify-content: center;
}

.icon-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #DB8A27;
  /* 對應設計圖的橘黃色 */
  font-weight: bold;
  font-size: 14px;
}

.icon-group img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 4px;
}
@media screen and (min-width: 768px) {
  .icon-group {
    flex-direction: row;
    font-size: 16px;
  }

  .icon-group img {
    margin-right: 10px;
  }

  .sidebar-cell{
    justify-content: left;
  }
}

/* 錨點連結效果設定 */
a.anchor-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a.anchor-link:hover {
  opacity: 0.7;
}

/* 頂部標題與圖片設定 */
.header-row {
  padding-bottom: 20px;
}

.version-title {
  display: block;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 12px;
  transition: opacity 0.3s;
  color: #EF9B27;
}

.version-title:hover {
  opacity: 0.8;
}

/* .hsr-title {
    color: #DB5427;
}
.tr-title {
    color: #066BB3;
} */
.version-img-link img {
  width: 100%;
  max-width: 240px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

/* =========================================
   手機版 RWD 調整 (768px 以下)
   ========================================= */
@media (max-width: 768px) {
  .ticket-compare-wrapper {
    padding: 16px 12px;
  }

  /* 縮小左側邊欄寬度，讓文字區塊有更多空間 */
  .ticket-row-wrap {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 12px 0;
  }

  .version-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .icon-group {
    font-size: 12px;
  }

  .icon-group img {
    width: 24px;
    height: 24px;
  }

  .ticket-cell p {
    font-size: 13px;
    margin: 5px 0;
  }
}

.slick-dotted.slick-slider{
  margin: 0;
}

.slick-dots{
  bottom: 5px;
}
.slick-dots li{
  margin: 0;
}
.slick-dots li button:before{
  font-size: 8px;
}
.slick-dots li button:before{
  color: #fff;
}
.slick-dots li.slick-active button:before{
  color: #fff;
}
.slick-prev:before, .slick-next:before{
  color: #000;
  font-size: 24px;
  opacity: .5;
}
.slick-prev.slick-disabled:before, .slick-next.slick-disabled:before{
  opacity: .2;
}
@media (max-width: 768px) {
  .slick-prev:before, .slick-next:before{
    font-size: 28px;
  }
}
.slick-prev, .slick-next{
  height: 28px;
  width: 28px;
}