/* ========================================
   Front Page – 迋斯生技 Figma 首頁
   ======================================== */

.fp-main {
  margin-top: var(--header-height);
}

/* ---------- Section 共用 ---------- */
.fp-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.fp-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.fp-section-title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-wants-dark);
  text-align: center;
}

.fp-section-title-bar {
  display: block;
  width: 40px;
  height: 5px;
  margin: 12px auto 0;
}

/* ========================================
   1. Hero Banner
   ======================================== */
.fp-hero {
  position: relative;
  width: 100%;
  height: 624px;
  overflow: hidden;
}

.fp-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.fp-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  gap: 32px;
}

.fp-hero__title {
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  line-height: 1.2;
  margin: 0;
}

.fp-hero__title-zh {
  font-family: 'Noto Serif TC', 'Georgia', serif;
  font-size: 60px;
  font-weight: 400;
}

.fp-hero__title-en {
  font-family: 'Racing Sans One', cursive;
  font-size: 60px;
  font-weight: 400;
}

.fp-hero__subtitle {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  margin: 0;
  max-width: 589px;
}

.fp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--color-wants-accent);
  border: none;
  border-radius: 100px;
  padding: 12px 68px;
  min-height: 50px;
  min-width: 200px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-decoration: none;
}

.fp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 63, 59, 0.35);
  background: #6f6858;
  opacity: 1;
}

@media (min-width: 769px) {
  #hero-cta {
    display: flex;
    width: 200px;
    height: 50px;
    padding: 12px 68px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: var(--0003, #847D6B);
  }
}

.fp-btn--oem {
  border-radius: 0;
  padding: 16px 76px;
}

/* ========================================
   2. 產品選購
   ======================================== */
.fp-top3 {
  background: var(--color-wants-cream);
  padding: 74px 0 80px;
}

.fp-top3__header {
  text-align: center;
  margin-bottom: 32px;
}

.fp-top3__grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.fp-top3__pagination {
  display: none;
}

.fp-product-card {
  position: relative;
  width: 283px;
  text-align: left;
  background: #fff;
  border-radius: 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.fp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.15);
}

.fp-product-card__image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f5f5f5;
}

.fp-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.fp-product-card:hover .fp-product-card__image {
  transform: scale(1.03);
}

.fp-product-card__badge {
  position: absolute;
  top: 10px;
  left: 9px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Georgia', serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.fp-product-card__badge--1 { background: var(--color-wants-dark); }
.fp-product-card__badge--2 { background: #6d6d6d; }
.fp-product-card__badge--3 { background: #939393; }

.fp-product-card__body {
  padding: 22px 20px 24px;
}

.fp-product-card__name {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-wants-dark);
  margin-bottom: 4px;
}

.fp-product-card__desc {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  color: var(--color-wants-accent);
  margin-bottom: 10px;
}

.fp-product-card__price {
  font-family: 'Georgia', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-wants-dark);
}

/* ========================================
   3. OEM / ODM 代工服務
   ======================================== */
.fp-oem {
  position: relative;
  background-color: var(--color-wants-dark);
  background-image: url('../images/oem-odm-section-bg.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 80px 20px;
  overflow: hidden;
}

.fp-oem::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 500px;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.fp-oem__inner {
  display: grid;
  grid-template-columns: 504px 1fr;
  align-items: center;
  gap: 94px;
  max-width: 945px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.fp-oem__image {
  width: 100%;
  max-width: 504px;
  height: 400px;
  object-fit: cover;
  display: block;
}

.fp-oem__label {
  font-family: 'Georgia', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-wants-gold);
  margin-bottom: 10px;
}

.fp-oem__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-wants-cream);
  margin-bottom: 30px;
  line-height: 1.3;
}

.fp-oem__text {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 347px;
}

/* ========================================
   4. 顧客好評推薦
   ======================================== */
.fp-testimonials {
  background: var(--color-wants-cream);
  padding: 96px 0 80px;
}

.fp-testimonials__header {
  text-align: center;
  margin-bottom: 28px;
}

.fp-testimonials__grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

.fp-testimonials__pagination {
  display: none;
}

.fp-review-card {
  background: #fff;
  border: 1px solid #eee;
  width: 300px;
  min-height: 200px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

.fp-review-card:hover {
  transform: translateY(-4px);
}

.fp-review-card__stars {
  width: 98px;
  height: 18px;
  margin-bottom: 14px;
}

.fp-review-card__quote {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-wants-dark);
  margin-bottom: 10px;
}

.fp-review-card__text {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 14px;
  color: var(--color-wants-dark);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

.fp-review-card__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 16px;
}

.fp-review-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-review-card__avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.fp-review-card__name {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 12px;
  color: #999;
}

/* ========================================
   5. 聯絡我們
   ======================================== */
.fp-contact {
  position: relative;
  min-height: 574px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
}

.fp-contact__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.fp-contact__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 914px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.fp-contact__title {
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fp-contact__panel {
  position: relative;
  width: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  backdrop-filter: blur(6.3px);
}

.fp-contact__panel-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.fp-contact__text {
  position: relative;
  z-index: 1;
  max-width: 512px;
  text-align: center;
  color: #fff;
  font-family: 'Georgia', 'Noto Sans TC', serif;
  font-size: 16px;
  line-height: 24px;
}

.fp-contact__lead {
  font-weight: 700;
  margin-bottom: 8px;
}

.fp-contact__text p {
  margin: 0 0 4px;
}

/* ========================================
   Responsive – Tablet (≤ 960px)
   ======================================== */
@media (max-width: 960px) {
  .fp-hero {
    height: 480px;
  }

  .fp-hero__title-zh,
  .fp-hero__title-en {
    font-size: 44px;
  }

  .fp-hero__subtitle {
    font-size: 17px;
  }

  .fp-oem__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 504px;
  }

  .fp-oem__image {
    margin: 0 auto;
  }

  .fp-oem__content {
    text-align: center;
  }

  .fp-oem__text {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ========================================
   Responsive – Mobile (≤ 768px)
   ======================================== */
@media (max-width: 768px) {
  .fp-hero {
    width: 100%;
    max-width: 100vw;
    height: 214px;
  }

  #hero-cta {
    display: flex;
    box-sizing: border-box;
    width: 100px;
    height: 28px;
    min-width: 0;
    min-height: 0;
    padding: 0 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    background: var(--0003, #847D6B);
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .fp-hero__title {
    align-self: stretch;
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  }

  .fp-hero__title-zh {
    color: #fff;
    font-family: 'MILONER', serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .fp-hero__title-en {
    color: #fff;
    font-family: 'Racing Sans One', cursive;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .fp-hero__subtitle {
    color: #fff;
    text-align: center;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px;
  }

  .fp-btn {
    padding: 10px 40px;
    font-size: 14px;
    min-height: 44px;
    min-width: 160px;
  }

  .fp-section-title {
    font-size: 22px;
  }

  .fp-top3 {
    padding: 48px 0 56px;
  }

  .fp-top3__grid {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 28px;
    margin: 0 -20px;
    padding: 0 calc((100vw - 260px) / 2) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - 260px) / 2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fp-top3__grid::-webkit-scrollbar {
    display: none;
  }

  .fp-product-card {
    flex: 0 0 260px;
    width: 260px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .fp-product-card__image-wrap {
    height: 180px;
  }

  .fp-top3__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 26px;
  }

  .fp-top3__dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #aaa99f;
    cursor: pointer;
  }

  .fp-top3__dot.is-active {
    background: var(--color-wants-dark);
  }

  .fp-testimonials {
    background: #3a3f3b;
    padding: 58px 0 54px;
  }

  .fp-testimonials__header {
    margin-bottom: 28px;
  }

  .fp-testimonials .fp-section-title {
    color: #fff;
  }

  .fp-testimonials__grid {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 40px;
    max-width: none;
    margin: 0 -20px;
    padding: 0 calc((100vw - 280px) / 2) 5px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - 280px) / 2);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .fp-testimonials__grid::-webkit-scrollbar {
    display: none;
  }

  .fp-review-card {
    box-sizing: border-box;
    flex: 0 0 280px;
    width: 280px;
    min-height: 252px;
    padding: 24px 22px;
    border: 1px solid #deded8;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .fp-review-card:hover {
    transform: none;
  }

  .fp-testimonials__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 25px;
  }

  .fp-testimonials__dot {
    width: 5px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(252, 250, 242, 0.5);
    cursor: pointer;
  }

  .fp-testimonials__dot.is-active {
    background: #fcfaf2;
  }

  .fp-oem__title {
    font-size: 26px;
  }

  .fp-oem {
    background-color: #fcfaf2;
    background-image: none;
    padding: 0;
  }

  .fp-oem::after {
    display: none;
  }

  .fp-oem__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
  }

  .fp-oem__image-col {
    width: 100%;
  }

  .fp-oem__image {
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 8 / 5;
    margin: 0;
    object-fit: cover;
  }

  .fp-oem__content {
    box-sizing: border-box;
    width: 64%;
    max-width: 408px;
    margin: 0 auto;
    padding: 26px 0 53px;
  }

  .fp-oem__label {
    color: #847d6b;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 8px;
  }

  .fp-oem__title {
    color: #3a3f3b;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 18px;
  }

  .fp-oem__text {
    color: #3a3f3b;
    text-align: left;
    font-size: 13px;
    line-height: 22px;
    margin-bottom: 24px;
  }

  #oem-cta {
    box-sizing: border-box;
    width: 66.6667%;
    height: 28px;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 0 20px;
    background: #847d6b;
    color: #fff;
    font-size: 13px;
    line-height: 1;
  }

  .fp-contact {
    min-height: 480px;
  }
}

/* ========================================
   Responsive – Small (≤ 480px)
   ======================================== */
@media (max-width: 480px) {
  .fp-hero {
    height: 214px;
  }

  .fp-contact {
    min-height: 400px;
    padding-bottom: 60px;
  }
}
