/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  background: #fcf1e8;
  padding: 0;
  overflow-x: hidden;
}

/* ===== Section ===== */
.section {
margin: 0 auto 3rem;
}

/* ===== Slider Header ===== */
.slider-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}

select {
  font-family: "Noto Serif TC", serif;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 28px 5px 10px;
  border: 1px solid #956823;
  border-radius: 0;
  background-color: rgba(255,255,255,0.55);
  color: #000;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='none' fill='%23956823' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

select:focus {
  outline: none;
  border-color: #956823;
}

.page_faq {
  display: block;
  position: relative;
  width: 1000px;
  margin: 0 auto;
  left: 50%;
  margin-left: -500px;
  z-index: 3000;
}



/* ===== Swiper 基本設定 ===== */
.achieveSwiper {
  overflow: visible;
  padding: 1rem 0;
}

/* ===== 卡片 ===== */
.swiper-slide {
  height: auto;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.8) !important;
  transform-origin: center center;
}

.swiper-slide-active {
  transform: scale(1) !important;
}

.slide-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 5px solid transparent;
  border-radius: 40px;
  height: 100%;
  background-image: 
    linear-gradient(#fff, #fff), 
    linear-gradient(45deg, #f7d59a, #9e7333);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  overflow: hidden;
}

.card-img img{
  width: 100%;
}

.card-title {
  font-size: 28px;
	font-size: 1.46vw;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .065em;
  color: #683f00;
  padding: 1rem 1.5rem 1.5rem;
}

/* ===== 輪播控制列 ===== */
.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.25rem;
}

.swiper-pagination {
  position: static;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.swiper-pagination-bullet {
  width: 24px;
  height: 24px;
  background: #fff;
  opacity: 1;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s;
  margin: 0 !important;
}

.swiper-pagination-bullet-active {
  background: #9a6f2d;
  transform: scale(1.5);
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  counter-reset: faq;
  max-width: 1280px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 3px dotted #a87f44;
  counter-increment: faq;
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.faq-q {
  font-size: 1.5rem;
  font-family: "Noto Serif TC", serif;
  font-weight: 700;
  color: #6e4505;
  line-height: 1.5;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}
/* 問題前面加數字 */
.faq-q::before {
  content: counter(faq);
  margin-right: 1rem;
  font-size: 2rem;
  color: #fff;
  font-weight: 600;
  width: 50px;
  height: 50px;
  display: inline-flex;
  background: linear-gradient( 135deg, rgb(149,104,35) 0%, rgb(172,127,58) 32%, rgb(195,150,80) 61%);
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  text-align: center;
}


.faq-a {
  font-size: 1.25rem;
  color: #333;
  background: #fff;
  border-radius: 20px;
  line-height: 1.7;
  letter-spacing: 1px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.6rem;
  font-weight: 500;
}

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='%23956823' stroke='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");

  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease, background 0.2s;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  display: none;
  padding-left: 3.5vw;
}



/* RWD 調整 */

@media (max-width: 1440px) {
  .faq-list {
    max-width: 90%;
  }
}

@media (max-width: 1024px) {
  .card-title {
    font-size: 18px;
    padding: 1rem;
  }
  .faq-q {
    font-size: 22px;
  }
  .faq-q::before {
    width: 60px; height: 60px;
    font-size: 28px;
    margin-right: 12px;
  }
  .faq-body {
    padding-left: 0;
  }
}
@media (max-width: 820px) {
	.section {
  margin: 0 3rem 3rem;
}
.page_faq {
  display: block;
  position: relative;
  width: 90vw;
  left: 50%;
  margin-left: -45vw;
}
}
@media (max-width: 768px) {
  /*body {
    padding: 1.5rem 0.5rem;
  }*/
  .slider-header {
    flex-direction: column;
    gap: 15px;
  }

  .swiper-slide {
    transform: scale(0.9) !important;
  }
  .slide-card {
    border-radius: 25px;
  }
  .card-title {
    font-size: 20px;
    padding: 1rem;
  }
  .faq-item {
    border-bottom-width: 2px;
  }
  .faq-btn {
    padding: 1.25rem 0;
  }
  .faq-q {
    font-size: 18px;
    letter-spacing: 0.05em;
  }
  .faq-q::before {
    width: 45px; height: 45px;
    font-size: 20px;
    margin-right: 10px;
    flex-shrink: 0;
  }
  .faq-a {
    font-size: 16px;
    padding: 1rem;
    line-height: 1.6;
  }
  .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
  }
  .swiper-pagination {
    gap: 12px;
  }
}

@media (max-width: 500px) {
  select {
    width: 100%;
    max-width: 300px;
    font-size: 15px;
    padding: 8px 30px 8px 12px;
  }
 .section {
    margin: 3rem 1rem;
  }
 .faq-list {
    max-width: 100%;
	margin: 0 auto 3rem;
  }
 .faq-q::before {
    width: 45px;
    height: 45px;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
  }
}

