:root {
  --main-color: white;
  --footer-color: #121111;
  --white-color: #ffffff;
  --primary-color: #aa0000;
  --p-color: #717275;
  --yellow-color: #fbc12f;

  --h5-font-size: 24px;
  --p-font-size: 20px;
  --copyright-text-font-size: 16px;
  --product-link-font-size: 14px;
  --custom-link-font-size: 12px;

  --font-weight-thin: 100;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;
}

html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--main-color);
  color: var(--main-color);
  position: relative;
  font-family: "Microsoft JhengHei", 微軟正黑體, sans-serif;
}

/*---------------------------------------
    TYPOGRAPHY               
  -----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: black;
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1,
h2 {
  font-weight: var(--font-weight-black);
}

h1 {
  font-size: 64px;
  line-height: normal;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 36px;
}

h4 {
  font-size: 32px;
}

h5 {
  font-size: 24px;
}

h6 {
  font-size: 20px;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

.text-primary {
  color: var(--primary-color) !important;
}

::selection {
  /* background: var(--primary-color); */
  /* color: var(--white-color); */
}

/*---------------------------------------
  NAVIGATION               
-----------------------------------------*/
.navbar {
  position: fixed;
  background-color: var(--main-color);
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
  top: 0px;
  right: 0;
  left: 0;
  padding: 5px 0;
  z-index: 98;
  border-bottom: 1px solid #acadae;
}

.navbar .container {
  display: flex;
  align-items: center;
}

.reflected-image {
  position: relative;
  display: block;
}

.navbar span,
h2 span,
h4 span {
  color: var(--primary-color);
}

.navbar-brand {
  font-size: 24px;
  font-weight: var(--font-weight-light);
  margin: 10px;
  padding: 0;
}

/* main-menu */
.main-menu {
  width: 60%;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  display: block;
}

.main-menu ul {
  width: 100%;
  margin: 0 auto;
  gap: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.main-menu li {
  position: relative;
  flex: 1;
  text-align: center;
  line-height: 1;
  transition: transform 0.3s ease;
  list-style: none;
}

.main-menu a {
  flex: 1;
  text-align: center;
  color: #585858;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: color 0.3s;
  line-height: 1;
}

.main-menu a::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #cbcbcb;
  position: absolute;
  left: 100%;
}

.main-menu li:last-child a::after {
  content: none;
}

.main-menu a:hover,
.main-menu li:hover a {
  color: #71a0b4;
}

.main-menu a:hover::after,
.main-menu li:hover a::after {
  background: #71a0b4;
}

.main-menu li:hover {
  transform: translateY(-5px);
}

/* dropdown menu 初始隱藏 */
.main-menu .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 1000;
}

.main-menu .dropdown-menu li {
  text-align: left;
  padding: 5px 20px;
}

.main-menu .dropdown:hover .dropdown-menu {
  display: block;
}

.main-menu .dropdown-menu a {
  color: #585858;
  text-decoration: none;
  font-size: 17px;
  font-weight: normal;
  display: block;
  transition: color 0.3s;
  border-bottom: 1px solid #717275;
}

.main-menu .dropdown-menu a:hover {
  color: #71a0b4;
}

/* fire btn */
.loan {
  animation-name: loanEffect;
  animation-duration: 0.3s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.loan p {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 7px 30px;
  background: #71a0b4;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}

.loan:hover {
  transform: translateY(-2px);
}

.loan:hover p {
  color: #ffe683;
}

.loan img {
  width: 1.5em;
  height: 1.5em;
}

.menu-toggle {
  display: none;
}

@keyframes loanEffect {
  100% {
    transform: scale(1.1);
  }
}

@media (max-width: 515px) {
  .navbar-brand {
    padding: 10px;
    margin: auto;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 32px;
    color: #333;
    cursor: pointer;
    margin: 0 10px;
  }

  .menu-toggle i {
    color: #5aae9f;
  }

  .navbar-brand {
    padding: 10px;
    margin: auto;
  }

  .main-menu {
    width: 100%;
    margin: 0;
    background: #fff;
    padding: 0 10px;
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease;
    position: relative;
    overflow: hidden;
  }

  .main-menu.show {
    max-height: 500px;
  }

  .main-menu ul {
    display: block;
    padding: 0;
    margin: 0;
  }

  .main-menu li {
    flex: none;
    text-align: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
  }

  .main-menu li:last-child {
    border-bottom: none;
  }

  .main-menu a::after {
    content: none;
  }

  .main-menu.dropdown-open {
    overflow: visible;
  }

  .main-menu .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .main-menu .dropdown-menu a {
    border-bottom: none;
  }

  .main-menu .dropdown.active .dropdown-menu {
    display: block;
  }

  .main-menu .dropdown.active {
    overflow: visible;
  }

  .main-menu .dropdown-menu li {
    border-bottom: 1px solid #ddd;
    text-align: center;
    padding: 10px 0;
  }
}

/*---------------------------------------
  banner              
-----------------------------------------*/

.banner-section {
  position: relative;
  width: 90%;
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
  margin-top: 5px;
}

.banner-section.banner-phone {
  display: none !important;
}

.banner-section.banner-computer {
  display: block !important;
}

.banner-section .swiper-wrapper {
  border-radius: 20px;
}

.swiper-slide img {
  width: 100%;
  /* max-height: 500px; */
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

.swiper-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  color: white;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: hsla(0, 0%, 100%, 0.5);
  transition: color 0.3s ease;
}

.mySwiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: hsla(0, 0%, 100%, 0.5);
  opacity: 1;
  margin: 0 6px;
  border-radius: 50%;
}

.mySwiper .swiper-pagination-bullet-active {
  background: #f44336;
}

@media (max-width: 486px) {
  .banner-section {
    width: 92%;
  }
}

@media (max-width: 486px) {
  .banner-section.banner-phone {
    display: block !important;
  }

  .banner-section.banner-computer {
    display: none !important;
  }
}

/*---------------------------------------
  why-section       
-----------------------------------------*/
.why-section {
  max-width: 900px;
  margin: auto;
}

.why-section h2 {
  color: #71a0b4;
  font-size: 30px;
  display: block;
  vertical-align: middle;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 20px auto;
  letter-spacing: 0.15em;
}

.why-section h2 i {
  color: #aaaaaa;
  font-size: 16px;
  display: block;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

/* fourth-wrap */
.why-section .fourth-wrap {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  text-align: center;
  margin: auto;
  justify-content: space-between;
  margin-bottom: 40px;
}

.why-section .fourth-wrap .box-col {
  position: relative;
  width: 190px;
  height: 220px;
  margin: 5px;
  border: 1px solid #aaa;
  background: #fff;
  transition: all 0.3s ease;
  text-align: right;
  top: 0px;
  transition: all 0.3s ease;
}

.why-section .fourth-wrap .box-col .box_pic {
  position: relative;
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: flex-end;
  justify-content: flex-end;
  line-height: 1.4;
}

.why-section .fourth-wrap .box-col span {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  line-height: 44px;
  font-size: 30px;
  z-index: 1;
  font-weight: bold;
  color: #666;
  font-size: 30px;
}

.why-section .fourth-wrap .box-col .box_pic h3 {
  font-size: 21px;
  letter-spacing: 0.1em;
  color: #333333;
  text-align: right;
  margin: 14px 0px;
  padding-right: 29px;
  margin: 17px 0px;
  padding-right: 23px;
  padding-top: 70px;
}

.why-section .fourth-wrap .box-col h3 b {
  display: block;
  font-weight: normal;
  color: #525252;
  font-size: 13px;
  letter-spacing: 0em normal;
}

.btn-help {
  margin: 0 auto;
  margin-top: auto;
  text-align: center;
}

.btn-help a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: bold;
  color: #71a0b4;
  border: 2px solid #71a0b4;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-help a:hover {
  background-color: #71a0b4;
  color: white !important;
  text-decoration: none;
}

.why-section .fourth-wrap .box-col:hover {
  top: -23px;
}

@media (max-width: 1100px) {
  .why-section .fourth-wrap {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0px;
  }

  .why-section .fourth-wrap .box-col {
    margin: 20px;
    width: 30%;
  }
}

@media (max-width: 600px) {
  .why-section .fourth-wrap .box-col {
    margin: 10px;
    width: 44%;
  }

  /* .why-section .fourth-wrap {
    width: 80%;
  } */
}

/*---------------------------------------
  product-grid         
-----------------------------------------*/
#searchBtn:hover {
  background-color: #6e6d6d;
}

.section-title {
  color: #71a0b4;
  font-size: 30px;
  display: block;
  vertical-align: middle;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 20px auto;
  letter-spacing: 0.15em;
}

.section-title i {
  color: #aaaaaa;
  font-size: 16px;
  display: block;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

.product-grid {
  width: 80%;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ccc;
  padding: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12),
    0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  box-shadow: 0 0 10px rgb(0, 0, 0, 0.4);
  transform: scale(0.95);
}

.image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #f8f8f8;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #ccc;
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: auto;
  justify-content: space-between;
}

.title {
  font-weight: bold;
  color: #71a0b4;
  text-align: left;
  font-size: 20px;
}

.description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* 限制顯示 2 行 */
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  max-height: 3em;
  color: #000;
  text-align: left;
  font-size: 14px;
}

.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  color: #ef5677;
  font-size: 14px;
  text-align: right;
  font-weight: bold;
}

.price .currency,
.price .amount {
  display: inline;
}

.more-button-wrapper {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 20px;
}

.more-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid #71a0b4;
  border-radius: 6px;
  text-decoration: none;
  color: #71a0b4;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
}

.more-button:before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  background: #71a0b4;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border-radius: 5px;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  z-index: -1;
}

.more-button:hover:before {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
}

.more-button:hover {
  letter-spacing: 5px;
  color: #fff;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 486px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*---------------------------------------
  article-section               
-----------------------------------------*/
.article-section {
  width: 80%;
  margin: 0 auto;
}

.article-section h2 {
  color: #71a0b4;
  font-size: 30px;
  display: block;
  vertical-align: middle;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 20px auto;
  letter-spacing: 0.15em;
}

.article-section h2 i {
  color: #aaaaaa;
  font-size: 16px;
  display: block;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

.article-section h1 {
  background-color: #f7f7f7;
  border-left: 8px solid #71a0b4;
  margin-bottom: 0px;
  margin-top: 30px;
  font-weight: 800;
  line-height: 1.2;
  padding: 16px 0 16px 24px;
  color: #444;
  font-size: 30px;
}

.context {
  background-color: #e3f2fb;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

.article-section p {
  color: #000;
  font-weight: 500;
}

@media (max-width: 767px) {
  .article-section h1 {
    font-size: 24px;
  }

  .article-section {
    width: 90%;
  }
}

/*---------------------------------------
  faq              
-----------------------------------------*/
.faq {
  width: 90%;
  margin: 20px auto;
}

.faq .faq-title {
  color: #71a0b4;
  font-size: 30px;
  display: block;
  vertical-align: middle;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 20px auto;
  letter-spacing: 0.15em;
}

.faq .faq-title i {
  color: #aaaaaa;
  font-size: 16px;
  display: block;
  position: relative;
  font-weight: normal;
  text-align: center;
  margin: 0;
}

.accordion {
  width: 90%;
  margin: 0 auto;
}

.accordion-item {
  background: var(--main-color) !important;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12),
    0 3px 1px -2px rgba(0, 0, 0, 0.2);
}

.accordion-header button {
  background: var(--main-color) !important;
  color: #f0464c;
  font-size: 18px;
  /* padding: 0 !important; */
}

.accordion-item + .accordion-item {
  border-top: 1px solid #ddd;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f0464c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  color: black;
  background-color: #f2f2f2;
}

.accordion-button:focus {
  color: #f0464c;
}

.accordion-button:focus::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f0464c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .faq-title {
    font-size: 25px;
  }
}

@media (max-width: 486px) {
  .faq {
    width: 100%;
  }
}

/*---------------------------------------
  SITE FOOTER               
-----------------------------------------*/
.site-footer {
  background: var(--footer-color);
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.contact-info a {
  font-size: 24px;
  color: #fff;
}

.footer-menu {
  margin: 0;
  padding: 0;
}

.community .text-white:hover {
  position: relative;
  top: 2px;
}

.site-footer .social-icon-link {
  margin-top: 4px;
}

.site-footer .social-icon-link:hover,
.footer-menu-link:hover {
  color: var(--white-color);
}

.copyright-text {
  font-size: var(--copyright-text-font-size);
}

/*---------------------------------------
  back-to-top              
-----------------------------------------*/

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 5%;
  z-index: 95;
  background: #212529;
  border: 1px solid #212529;
}

.back-to-top:hover {
  background: #6e6d6d;
}

.back-to-top i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-left: 3px solid white;
  border-bottom: 3px solid white;
  transform: rotate(135deg);
  margin-top: 3px;
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease-in-out;
}
