@charset "UTF-8";
@import url("reset.css");

/* -----------------------------------------
    共用
------------------------------------------*/
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html, body {
  width: 100%;
  letter-spacing: 1px;
}
figure{
	margin: 0;
}
em{
    font-style: normal;
}

/* ==========================================
   1. 全局變數與基礎設定
   ========================================== */
:root {
  --color-text-main: #2F2F2F;
  --color-primary-green: #00a19b;
  --color-highlight-red: #f8524c;
  --color-bg-step: #f4f8fa;
  --color-white: #ffffff;
  --max-content-width: 1000px;
}

/* 輔助類別：SEO 隱藏標題 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 重置與基本樣式 */
.main-container {
  width: 100%;
  color: var(--color-text-main);
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif; */
  line-height: 1.6;
  background-color: #fff;
}

/* 文字色彩與連結 */
.highlight-red { color: var(--color-highlight-red); font-weight: bold; }
.highlight-green { color: var(--color-primary-green); font-weight: bold; }

.text-link {
  color: var(--color-primary-green);
  text-decoration: underline;
  transition: opacity 0.2s;
}
.text-link:hover {
  opacity: 0.8;
}

/* ==========================================
   2. 主視覺區塊 (Hero Section)
   ========================================== */
.hero-section {
  width: 100%;
  overflow: hidden;
}

.hero-section picture {
  width: 100%;
  display: block;
  margin-top: 68px;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 800px){
  .hero-section picture {
  margin-top: 62px;
}
}

/* ==========================================
   3. 活動內容區塊 (1000px Container)
   ========================================== */
.activity-container {
  max-width: var(--max-content-width);
  margin: 80px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.activity-card {
  margin-bottom: 70px;
}

/* 左圖右文 Layout */
.activity-main {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.activity-img-wrap {
  flex-shrink: 0;
  width: 340px;
  height: 240px;
}

.activity-img {
  width: 340px;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.activity-content {
  flex-grow: 1;
}

.activity-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-primary-green);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.activity-date {
  font-size: 16px;
  color: var(--color-text-main);
  margin-bottom: 20px;
  font-weight: 500;
}

.activity-text {
  font-size: 18px;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: justify;
}

.activity-text p {
  margin: 0 0 10px 0;
}

.btn-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.break1{
  display: block;
}

@media (max-width: 600px){
  .activity-title {
    font-size: 24px;
  }
  .btn-group {
    justify-content: center;
  }
  .break1{
    display: none;
  }
}

/* ==========================================
   4. 步驟與流程區塊 (#f4f8fa)
   ========================================== */
.step-container {
  background-color: var(--color-bg-step);
  border-radius: 8px;
  padding: 24px 30px;
  margin-top: 20px;
}

/* 步驟卡片 3 欄排列 */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
}

.step-item {
  background-color: var(--color-white);
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.step-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 4px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon img {
  max-width: 100%;
  max-height: 100%;
}

.step-date {
  font-size: 14px;
  color: var(--color-primary-green);
  font-weight: bold;
  margin-bottom: 4px;
}

.step-name {
  font-size: 14px;
  color: var(--color-text-main);
  font-weight: 500;
}

/* 步驟下方注意事項說明 */
.step-notes {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-main);
  line-height: 1.6;
  list-style: disc;
}

.step-notes li {
  margin-bottom: 4px;
}

/* ==========================================
   5. 公司規範按鈕 (直接嵌入規範)
   ========================================== */
/* 主要按鈕 */
.btn {
  font-size: 16px;
  max-width: 12.5rem;
  width: 100%;
  height: 4.0625rem;
  border-radius: 0.25rem;
  color: #ffffff;
  background-color: #00a19b;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  -ms-flex-pack: center;
  text-decoration: none !important;
  border: none;
  margin: 8px 0;
  text-align: center;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  box-sizing: border-box;
}

.btn:hover {
  opacity: 0.85;
}

/* 次要按鈕 */
.btnLine {
  width: 100%;
  max-width: 12.5rem;
  height: 4.0625rem;
  border-radius: 4px;
  text-align: center;
  border: solid 1px #00a19b;
  color: #00a19b;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none !important;
  box-sizing: border-box;
}

.btnLine:hover {
  opacity: 0.7;
}

.btnLine:disabled {
  background: #acacac;
  color: #ffffff;
  border: none;
  cursor: not-allowed;
}

/* ==========================================
   6. RWD 斷點調整 (768px 以下)
   ========================================== */
@media (max-width: 768px) {
  /* 按鈕寬度規範 */
  .btn, .btnLine {
    max-width: 8.75rem;
  }

  /* 左圖右文轉為單欄 */
  .activity-main {
    flex-direction: column;
  }

  .activity-img-wrap,
  .activity-img {
    width: 100%;
    height: auto;
    aspect-ratio: 340 / 240;
  }

  /* 步驟卡片改為垂直單欄 */
  .step-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-container {
    padding: 16px;
  }
}




/* ==========================================
   7. 注意事項區塊 (Rules Section)
   ========================================== */
.rules-section {
  background-color: #f8f9fa;
  padding: 40px 20px;
  border-top: 1px solid #e9ecef;
}

.rules-container {
  max-width: var(--max-content-width);
  margin: 0 auto;
}

.rules-main-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.rules-block {
  margin-bottom: 24px;
}

.rules-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary-green);
  margin-bottom: 12px;
}

.rules-list {
  font-size: 14px;
  color: var(--color-text-main);
  padding-left: 28px;
  margin: 0;
  line-height: 1.7;
  list-style: decimal;
  text-align: justify;
}

.rules-list li {
  margin-bottom: 8px;
}

/* 膳魔師 One 鈦鍋 規格表優化 */
.spec-box {
  background: var(--color-white);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 12px 0 20px 0;
}

.spec-title {
  font-size: 14px;
  font-weight: 500;
  color: #6a3424;
  margin: 0 0 12px 0;
}

.spec-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th, 
.spec-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 100px;
  background-color: #fafafa;
  color: var(--color-text-main);
  font-weight: 600;
  white-space: nowrap;
}

.spec-table td ul {
  margin: 0;
  padding-left: 16px;
}

.spec-table td li {
  margin-bottom: 4px;
}

/* 展開 / 收合與漸層遮罩效果 */
.rules-content-wrapper {
  position: relative;
  transition: max-height 0.4s ease;
  overflow: hidden;
}

/* 收合狀態：限制高度並加上漸隱遮罩 */
.rules-content-wrapper.collapsed {
  max-height: 260px;
}

.rules-content-wrapper.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(248, 249, 250, 0) 0%, rgba(248, 249, 250, 1) 100%);
  pointer-events: none;
}

/* 展開狀態 */
.rules-content-wrapper.expanded {
  max-height: 5000px; /* 足夠大的極限值供過渡 */
}

/* 收合/展開按鈕 */
.rules-toggle-wrap {
  text-align: center;
  margin-top: 16px;
}

.btn-toggle-rules {
  background: transparent;
  border: 1px solid var(--color-primary-green);
  color: var(--color-primary-green);
  padding: 8px 24px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-toggle-rules:hover {
  background-color: var(--color-primary-green);
  color: var(--color-white);
}

.arrow-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
  margin-bottom: 2px;
}

/* 展開時箭頭旋轉 */
.btn-toggle-rules.is-expanded .arrow-icon {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}


/* 錨點跳轉時，頂部預留 80px 空間（避免貼頂或被固定導覽列遮擋） */
#activity,
#rules {
  scroll-margin-top: 110px;
}

/* 手機版若 Header 高度不同，可彈性調整預留空間 */
@media (max-width: 768px) {
  #activity,
  #rules {
    scroll-margin-top: 90px;
  }
}




/* ==========================================================================
   微動畫
   ========================================================================== */

/* 確保父容器隱藏溢出 */
.activity-img-wrap {
  overflow: hidden;
  border-radius: 10px;
}

.activity-img {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.activity-img-wrap:hover .activity-img {
  transform: scale(1.05); /* 微放大 5% */
}


.step-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 161, 155, 0.12); /* 融入玉山綠的淡陰影 */
}




/* ==========================================================================
   分享彈出視窗樣式
   ========================================================================== */
/* 全局遮罩外框 */
.share-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999; /* 確保疊在網頁最上層，包括導覽列 */
  display: flex;
  justify-content: center;
  align-items: flex-end; /* 手機版預設靠底 */
  visibility: hidden; /* 預設完全隱藏（不影響點擊） */
  transition: visibility 0.3s ease;
}

/* 黑色半透明背景襯底 */
.share-sheet-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0); /* 預設透明 */
  transition: background-color 0.3s ease;
}

/* 彈出面板本體 (電腦版預設樣式：優雅的置中彈窗) */
.share-sheet-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background-color: #ffffff;
  border-radius: 16px 16px 16px 16px;
  padding: 30px;
  box-sizing: border-box;
  margin-bottom: auto; /* 電報版垂直置中 */
  margin-top: auto;   /* 電報版垂直置中 */
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  
  /* 動態核心：電腦版預設用「縮放與淡入」登場 */
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* 當激活狀態時 (.active) 的轉場效果 */
.share-sheet-overlay.active {
  visibility: visible;
}
.share-sheet-overlay.active .share-sheet-bg {
  background-color: rgba(0, 0, 0, 0.5); /* 背景變半透明黑 */
}
.share-sheet-overlay.active .share-sheet-content {
  transform: scale(1);
  opacity: 1;
}

/* 裝飾線條與標題 */
.share-sheet-drag-handle {
  display: none; /* 電腦版不顯示 */
}

.share-sheet-title {
  font-size: 20px;
  color: #2F2F2F;
  font-weight: 500;
  text-align: center;
  margin: 0 0 25px 0;
}

/* 四個選項的 Grid 網格排版 */
.share-options-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.share-option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex: 1;
  outline: none;
}

/* 圖示外圈圓圈 */
.share-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.2s ease;
}
.share-option-item:hover .share-icon-wrap {
  transform: scale(1.08); /* 滑鼠懸庭微微放大 */
}

.share-icon-wrap img {
  width: 100%;
  height: auto;
}

.share-text {
  font-size: 14px;
  color: #5f6368;
  font-weight: 500;
}

/* 取消按鈕 */
.share-sheet-close {
  width: 100%;
  padding: 12px 0;
  background-color: #f1f3f4;
  color: #5f6368;
  font-size: 16px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.share-sheet-close:hover {
  background-color: #e8eaed;
}

/* ==========================================================================
   RWD 手機版斷點變形 (768px 以下)：100% 轉為從頁面底部滑出的面板
   ========================================================================== */
@media (max-width: 768px) {
  .share-sheet-overlay {
    align-items: flex-end; /* 強制靠螢幕最底端 */
  }
  
  .share-sheet-content {
    max-width: 100%;
    border-radius: 20px 20px 0 0; /* 只留上方圓角 */
    padding: 20px 20px 30px 20px;
    margin-bottom: 0; /* 緊貼底部 */
    margin-top: 0;
    
    /* 核心變形：手機版改為從螢幕下方 100% 的位置往上滑入 */
    transform: translateY(100%);
    opacity: 1; /* 手機版不需要淡入，靠滑動即可 */
    transition: transform 0.35s cubic-bezier(0.15, 1, 0.3, 1);
  }
  
  /* 激活狀態覆寫 */
  .share-sheet-overlay.active .share-sheet-content {
    transform: translateY(0); /* 回歸原位，即滑出畫面 */
  }
  
  /* 手機版上方的拉條裝飾 */
  .share-sheet-drag-handle {
    display: block;
    width: 40px;
    height: 4px;
    background-color: #e8eaed;
    border-radius: 2px;
    margin: 0 auto 15px auto;
  }
  
  .share-sheet-title {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .share-icon-wrap {
    width: 54px;
    height: 54px;
  }
}



.activity-detail-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 12px 0 16px 0;
}

.activity-detail-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.activity-detail-list li strong {
  color: var(--color-text-main);
}



/* 兌換路徑 1. 2. 列點排版 */
.activity-num-list {
  padding-left: 20px;
  margin: 8px 0 24px 0;
}

.activity-num-list li {
  list-style: disc;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

/* 確保雙按鈕在手機版也能優雅換行或並排 */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.arrow {
  color: #21b0a5; /* 淡灰色，柔和不搶戲 */
  margin: 0 4px;
}