/**
 * 感謝頁面樣式
 * 包含首圖和感謝訊息內容
 */

/* ========== 頁面容器 ========== */
body.page-template-thankyou {
  background: #fffced;
}

.thankyou-page {
  width: 100%;
}

/* ========== 首圖區塊 ========== */
.thankyou-hero {
  width: 100%;
  margin: 0;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.thankyou-hero .hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-rwd-image {
  display: none;
}

/* ========== 主內容區 ========== */
.thankyou-main {
  padding: 174.73px 0 228px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thankyou-main .container {
  max-width: 1440px;
  width: 100%;
}

.thank-you-title {
  color: #fff;
  text-align: center;
  font-family: inherit;
  font-size: 250px;
  font-style: italic;
  font-weight: 700;
  line-height: 244px; /* 97.6% */
}

.thankyou-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  margin-top: 28px;
}

/* ========== 感謝訊息 ========== */
.thankyou-message {
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 81.071px; /* 225.198% */
}

/* ========== 按鈕區域 ========== */
.thankyou-actions {
}

.btn-home {
  padding: 0 24px;
  width: 324px;
  height: 66px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.75rem;
  background: var(
    --0001,
    linear-gradient(
      20deg,
      #0d1340 -4.11%,
      #131949 -2.09%,
      #1b2155 1.96%,
      #1f265c 7.02%,
      #21285e 21.19%,
      #262d62 30.29%,
      #363e6f 40.41%,
      #515a85 53.57%,
      #7681a3 66.73%,
      #a6b2ca 80.89%,
      #dfeef9 96.07%,
      #e3f2fc 97.09%
    )
  );
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  justify-content: space-between;
}

.btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(228, 228, 228, 0.571);
  color: #fff;
  text-decoration: none;
}

.btn-home .arrow-img {
  width: 40px;
  height: 24px;
  transition: transform var(--transition-base);
}

.btn-home:hover .arrow-img {
  transform: translateX(4px);
}

/* ========== 響應式：平板 (≤1024px) ========== */
@media (max-width: 1024px) {
  .thankyou-main {
    padding: 3rem 1rem 4rem;
  }

  .thankyou-content {
    padding: 2.5rem 1.5rem;
    gap: 1.75rem;
  }

  .thankyou-message {
    font-size: 1.25rem;
  }

  .btn-home {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
}

/* ========== 響應式：手機 (≤480px) ========== */
@media (max-width: 480px) {
  .thankyou-hero .hero-image {
    display: none;
  }

  .hero-rwd-image {
    display: block;
    width: 100%;
  }

  .thank-you-title {
    color: #fff;
    text-align: center;
    font-size: 64.061px;
    font-style: italic;
    font-weight: 700;
    line-height: 62.524px; /* 97.6% */
  }
  .thankyou-main {
    padding: 60px 0 94px;
  }

  .thank-you-text {
    width: 224px;
  }

  .thankyou-content {
    padding: 0;
    gap: 0;
    margin-top: 8px;
  }

  .thankyou-message {
    font-size: 1.125rem;
    line-height: 66.071px;
    margin-bottom: 16px;
  }

  .btn-home {
    width: 108px;
    height: 22px;
    font-size: 0.9375rem;
    gap: 0.5rem;
    padding: 0 8px;
    background: var(
      --0001,
      linear-gradient(
        5deg,
        #0d1340 -4.11%,
        #131949 -2.09%,
        #1b2155 1.96%,
        #1f265c 7.02%,
        #21285e 21.19%,
        #262d62 30.29%,
        #363e6f 40.41%,
        #515a85 53.57%,
        #7681a3 66.73%,
        #a6b2ca 80.89%,
        #dfeef9 96.07%,
        #e3f2fc 97.09%
      )
    );
  }

  .btn-home .arrow-img {
    width: 13.301px;
    height: 8px;
  }
}
