/* =======================
   Hero 區域
   ======================= */

.hp-hero {
  position: relative;
  background: linear-gradient(180deg, #fff, #fafafa);
  overflow: hidden;
  z-index: 0;
  min-height: 500px;
}

.hp-hero--soft {
  background: #fff7ed;
}

.hp-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 65%;
  height: 85%;
  background: var(--hero-bg) no-repeat bottom right;
  background-size: 100% auto;
  opacity: 0.25;
  transform: translateY(0) scale(1);
  transition: transform 1.2s ease, opacity .5s ease;
  pointer-events: none;
  z-index: -1;
}

/* 滑過 Hero 背景輕微上浮 */
.hp-hero:hover::after {
  transform: translateY(-10px) scale(1.05);
  opacity: 0.3;
}

.hp-hero__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 18px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  font-family: "Noto Sans SC";
  position: relative;
  z-index: 1;
}

.hp-hero__inner--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

@media (max-width: 992px) {
  .hp-hero__inner,
  .hp-hero__inner--split {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

/* 左側標題、文案 */

.brand-accent {
  color: #ff7a00;
}

.hp-hero__text h1 {
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 18px;
  font-size: clamp(25px, 4vw, 52px);
  font-family: "Noto Sans SC";
  padding: 22px 1px 10px;
}

.hp-hero__text .lead {
  color: #334155;
  font-size: 22px;
  margin-bottom: 22px;
  padding: 1px 4px;
}

/* Bullet 列表 */

.hero-bullets {
  list-style: none;
  margin: 50px 0 24px;
  padding: 10px 10px 5px;
  display: grid;
  gap: 18px;
  color: #1f2937;
  font-size: 22px;
  line-height: 1.9;
}

.hero-bullets li {
  position: relative;
  padding-left: 36px;
  display: flex;
  align-items: center;
}

.hero-bullets li::before {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 22px;
  color: #ff7a00;
}

.hero-bullets li:nth-child(1)::before { content: "\f0c0"; }
.hero-bullets li:nth-child(2)::before { content: "\f466"; }
.hero-bullets li:nth-child(3)::before { content: "\f590"; }

/* ===== Hero 右側：登入 CTA 區 ===== */

.hp-hero__cta--pro {
  max-width: 460px;
  margin-left: -10px;
}

.hp-hero__cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  margin-bottom: .6rem;
  letter-spacing: -0.5px;
}

.hp-hero__cta-sub {
  font-size: 1.1rem;
  color: #4b5563;
  margin: 16px 0 1.4rem;
  line-height: 1.6;
  display: flex;
  justify-content: center;
}

.hp-hero__cta-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 1rem;
}

.hp-hero__cta-btn-primary,
.hp-hero__cta-btn-secondary {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: 999px;
}

.hp-hero__cta-btn-primary {
  font-weight: 700;
}

.hp-hero__cta-btn-secondary {
  font-weight: 600;
}

.hp-hero__cta-note {
  font-size: .9rem;
  color: #6b7280;
  margin-top: 4px;
}

/* ===== 右側：未登入 Email 卡片 ===== */

.hp-authcard {
  max-width: 480px;
  min-height: 300px;
  padding: 20px 40px;
  background: #dfdede;
  border-radius: 30px;
  box-shadow: 0 25px 60px rgba(0,0,0,.15);
  align-self: stretch;
  margin-left: auto;
  transition: box-shadow .3s ease, transform .3s ease;
}

.hp-authcard__title {
  text-align: center;
  font-weight: 800;
  margin: 6px 0 4px;
}

.hp-authcard__sub {
  text-align: center;
  color: #6b7280;
  margin-bottom: 16px;
}

.hp-authcard .form-control {
  height: 56px;
  border-radius: 14px;
}

.hp-authcard .btn-brand {
  height: 56px;
  border-radius: 14px;
  font-weight: 800;
}

/* 分隔線 with “或” */

.hp-authcard__divline {
  position: relative;
  text-align: center;
  margin: 14px 0 10px;
  height: 18px;
}

.hp-authcard__divline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #e5e7eb;
}

.hp-authcard__divline > span {
  position: relative;
  padding: 2px 25px;
  color: #9aa3ae;
  font-weight: 600;
  background: #dfdede;
}

/* 三個社交按鈕 */

.hp-authcard__social {
  display: flex;
  justify-content: center;
  gap: 3px;
  margin-top: 30px;
}

.social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #cecdcd;
  transition: box-shadow .25s ease, transform .25s ease;
  margin: 0 10px;
}

.social-btn img {
  width: 42px;
  height: 42px;
}

.social-btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-3px);
}

.hp-authcard__legal {
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
  margin-top: 40px;
}

.hp-authcard__legal a {
  color: #64748b;
  text-decoration: underline;
}

.hp-authcard__legal a:hover {
  color: #ff7a00;
}

/* =======================
   Hero 圖片輪播（登入後） Coverflow
   ======================= */

.hero-gallery {
  flex: 0 0 520px;
  max-width: 520px;
  margin: 36px 40px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-cover {
  position: relative;
  width: 100%;
  height: 260px;
  perspective: 1100px;
}

/* 每一張卡片共同樣式 */
.hero-cover__item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 390px;
  height: 260px;
  transform: translateX(-50%);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    transform .6s ease,
    box-shadow .6s ease,
    opacity .6s ease;
}

.hero-cover__item img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  object-position: center;  
}

/* 中間主卡片 */
.hero-cover__item--center {
  transform: translateX(-50%) scale(1) rotateY(0deg);
  z-index: 3;
  opacity: 1;
}

/* 左邊縮小、透視 + 一點透明 */
.hero-cover__item--left {
  transform: translateX(-72%) scale(.8) rotateY(20deg);
  opacity: 0.6;
  z-index: 2;
}

/* 右邊縮小、反方向透視 */
.hero-cover__item--right {
  transform: translateX(-28%) scale(.8) rotateY(-20deg);
  opacity: 0.6;
  z-index: 2;
}

/* 整塊 hover 時，中間卡片微微上浮 */
.hero-cover:hover .hero-cover__item--center {
  transform: translateX(-50%) scale(1.03);
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.35);
}

/* RWD：平板 / 手機，Hero 圖片放中間並縮小 */
@media (max-width: 992px) {
  .hp-hero__inner--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-gallery {
    margin: 24px auto 0;
    max-width: 350px;
  }
}

/* =======================
   三張促銷圖 Grid
   ======================= */

.image-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
}

.image-item {
  flex: 1 1 310px;
  max-width: 360px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease;
}

.image-item img {
  width: 100%;
  height: 180px;
  display: block;
  transition: transform .4s ease;
}

.image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
}

.image-item:hover img {
  transform: scale(1.05);
}

/* =======================
   三大服務卡片
   ======================= */

.hp-services {
  padding: 60px;
  background: #f8e8fa;
}

.sec-title {
  text-align: center;
  margin-bottom: 20px;
  color: #0b101a;
}

.sec-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 6px;
}

.sec-title p {
  color: #6b7280;
  margin: 0;
}

.grid-3 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.svc-card {
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0,0,0,.14);
  padding: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-25deg);
  animation: svcShimmer 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes svcShimmer {
  0%   { left: -150%; }
  35%  { left: 150%; }
  100% { left: 150%; }
}

.grid-3 .svc-card:nth-child(1)::after { animation-delay: 0s; }
.grid-3 .svc-card:nth-child(2)::after { animation-delay: 1.1s; }
.grid-3 .svc-card:nth-child(3)::after { animation-delay: 2.2s; }

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 66px rgba(0,0,0,.22);
}

.svc-card__icon {
  font-size: 28px;
  margin-bottom: 12px;
  color: #ff7a00;
}

.svc-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.svc-card p {
  margin: 0 0 12px;
  color: #374151;
}

.svc-card__link {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}

.svc-card__link:hover {
  text-decoration: underline;
}

/* =======================
   關鍵數據 & Stats
   ======================= */

.hp-stats {
  background: #FFF3E0;
  padding: 80px 0;
  border-radius: 24px;
}

.grid-4 {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
}

.stat-item .num {
  font-size: 28px;
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
}

.stat-item .txt {
  margin-top: 6px;
  color: #6b7280;
}

/* =======================
   資費摘要
   ======================= */

.hp-pricing {
  padding: 120px 0;
}

.hp-pricing__panel {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hp-pricing__text h2 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 12px;
}

.bullets {
  margin: 0 0 16px 16px;
  color: #374151;
}

.bullets li {
  margin: 6px 0;
}

.hp-pricing__art img {
  width: 680px;
  display: block;
  margin-left: auto;
}

/* =======================
   集運 / 代購 4 步驟（未登入）
   ======================= */

.hp-steps--flows {
  background-color: #ffffff;
}

.flow-tabs {
  display: inline-flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.flow-tab {
  min-width: 160px;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: all 0.18s ease;
}

.flow-tab.is-active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.flow-step {
  text-align: center;
}

.flow-step__icon img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.flow-step__index {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  background: #ff7a00;
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.flow-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.flow-step__desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
}

.flow-pane {
  display: none;
}

.flow-pane.is-active {
  display: block;
}

/* =======================
   Benefit 三大區塊（已登入）
   ======================= */

.hp-benefits {
  background-color: #f9fafb;
}

.hp-benefits .sec-title {
  margin-bottom: 52px !important;
}

.hp-benefits .sec-title h2 {
  font-size: 2rem;
}

/* 外層列表 */

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 單一 Row */

.benefit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.benefit-row--reverse {
  flex-direction: row-reverse;
}

/* 文案區 */

.benefit-text {
  flex: 0 0 55%;
  font-size: 1.05rem;
}

.benefit-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.benefit-desc {
  font-size: 1.5rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 0.75rem;
}

.benefit-points {
  list-style: none;
  padding-left: 0 !important;
  margin-bottom: 1rem;
}

/* 勾勾列表 */

.benefit-points li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

.benefit-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  width: 24px;
  height: 24px;
  background: #ffaf03;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  line-height: 24px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

/* 圖片區 */

.benefit-image {
  flex: 0 0 45%;
}

.benefit-image img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
}

/* RWD */

@media (max-width: 992px) {
  .benefit-row,
  .benefit-row--reverse {
    flex-direction: column;
    align-items: flex-start;
  }

  .benefit-image {
    flex: none;
    width: 100%;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .flow-steps {
    grid-template-columns: 1fr;
  }
}

/* =======================
   Explore / 商品 Grid
   ======================= */

.hp-explore {
  background: #f7fafc;
  border-top: 1px solid #e5e7eb;
}

/* 左側固定欄 */

.hp-explore__sidebar {
  position: sticky;
  top: 96px;
  padding: 32px 32px 28px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15,23,42,0.12);
}

.hp-explore__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #111827;
}

.hp-explore__lead {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 1.1rem;
}

.hp-explore__buttons .btn {
  border-radius: 999px;
  font-weight: 600;
}

.hp-explore__bullets {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.hp-explore__bullets li + li {
  margin-top: 0.4rem;
}

/* 商品 grid：一行 3 個 */

.hp-explore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* 商品卡片 */

.hp-productcard {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .18s ease, box-shadow .18s ease;
}

.hp-productcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15,23,42,0.12);
}

.hp-productcard__imagewrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hp-productcard__image,
.hp-productcard__image--placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-productcard__image--placeholder {
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.hp-productcard__body {
  padding: 14px 16px 16px;
}

.hp-productcard__name {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
  font-weight: 600;
  color: #111827;
}

.hp-productcard__name a {
  color: inherit;
  text-decoration: none;
}

.hp-productcard__name a:hover {
  color: #ff7a00;
}

.hp-productcard__price {
  font-weight: 700;
  color: #059669;
  font-size: 15px;
}

/* Explore RWD */

@media (max-width: 991.98px) {
  .hp-explore__sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .hp-explore__grid {
    grid-template-columns: 1fr;
  }
}

/* =======================
   通用 CTA 區
   ======================= */

.hp-cta {
  text-align: center;
  padding: 34px 0 48px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-radius: 24px;
}

.hp-cta h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 8px;
}

.hp-cta p {
  color: #4b5563;
  margin: 0 0 16px;
}

/* 按鈕品牌色 */

.btn-primary {
  background-color: #ff7a00;
  border-color: #ff7a00;
}

.btn-primary:hover {
  background-color: #e96f00;
  border-color: #e96f00;
}

/* 全局 RWD 補充 */

@media (max-width: 992px) {
  .hp-pricing__panel { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hp-hero__text h1 {
    font-size: 28px;
  }
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 998;  /* 要在內容之上、登入 modal 之下，視你的層級可調整 */
}

body.hp-authfade-enter::before {
  opacity: .18;  /* 微微暗一點，看起來像淡出 */
}
.auth-modal {
  position: fixed;
  inset: 0;                       /* top:0; right:0; bottom:0; left:0; */
  display: none;                  /* 默认不显示 */
  align-items: center;
  justify-content: center;
  z-index: 1200;                  /* 要比 header / drawer 都大 */
}

/* JS 加上 is-open 后展示为 flex 居中 */
.auth-modal.is-open {
  display: flex;
}

/* 半透明背景 */
.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* 中间白色卡片 */
.auth-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  margin: 16px;
  padding: 24px 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.45);
  z-index: 1;
}

/* 右上角关闭按钮 */
.auth-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* 顶部 tab 区域 */
.auth-modal__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 8px 0;
  font-weight: 700;
  background: #f3f4f6;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #ff7a00;
  color: #fff;
}

/* 内容区：只显示 is-active 的 pane */
.auth-pane {
  display: none;
}

.auth-pane.is-active {
  display: block;
}
