@charset "utf-8";
/* CSS Document */
body {
  font-family: 'Noto Sans TC', 'Roboto', sans-serif;
  margin: 0;
  background: linear-gradient(to right, #FF9A9E, #FAD0C4, #FBC2EB, #A18CD1);
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Bold.woff2') format('woff2'),
        
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/Roboto-Regular.woff2') format('woff2'),
        
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('fonts/NotoSansTC-Bold.woff2') format('woff2'),
       
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans TC';
    src: url('fonts/NotoSansTC-Regular.woff2') format('woff2'),
       
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.container {
  max-width: 960px;
  margin: 2rem auto;
  padding: .5rem 1rem;
  background-color: #fff; /* 加上白底 */
  border-radius: 12px;     /* 可選：讓白底有圓角更柔和 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 可選：浮起效果 */
}
@media (max-width: 768px) {
  .container {
    padding: 0;       /* ✅ 增加內距，讓內容不貼邊 */
    border-radius: 12px;       /* ✅ 圓角略小，更貼合小螢幕比例 */
    margin: 10px;
  }
}
.logo-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 20px;
}
.logo-group img {
  max-width: 100%;
  height: auto;
}
.hero {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.hero-visual {
  max-width: 1000px; /* ✅ 控制主視覺最大寬度 */
  width: 100%;
  margin: 0 auto;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
  .hero-visual {
    max-width: 90%;
  }
}
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.nav-btn {
  font-size: 1.5rem;
  font-weight: bold;
  width: 160px; /* 根據底圖寬度調整 */
  height: 50px;
  line-height: 50px;
  text-align: center;
  padding: 0; 
  background-color: #15b6be;
  background-image: linear-gradient(to bottom, #15B6BE 90%, #0D868C, #0D868C 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #FAFF09;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-btn.wide-btn {
  width: 250px; /* 或依實際字數微調，例如 220px */
}
@media (max-width: 600px) {
  .nav-btn.wide-btn {
    width: 220px;
  }
}
.nav-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ✅ 點擊後的選中狀態 */
.nav-btn.active {
  background-image: linear-gradient(to bottom, #ffb300 90%, #C08905, #C08905 100%);
  background-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
@media (max-width: 600px) {
  .nav-btn {
    font-size: 1.2rem;
    padding: 0.6rem 0rem;
  }
}
.content-section {
  padding: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
  word-break: break-word;
}
.section-title {
  display: inline-block;
  background-color: #ff6968; /* 主色，可改為你指定的貼紙底色 */
  color: #FFFFFF;            /* 字色，可依底色調整 */
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  margin-bottom: .5rem;
  text-align: center;
}
.main-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #333;
  text-align: justify;
  word-break: break-word;
  margin: 0 0 0 1rem;
}
        /* 新增：用於包裹響應式表格的容器 */
        .table-wrapper {
            overflow-x: auto; /* 當內容超出時，允許水平滾動 */
            -webkit-overflow-scrolling: touch; /* 改善 iOS 設備上的滾動流暢度 */
            margin-top: 20px; /* 在表格下方添加一些間距 */
            margin-bottom: 20px; /* 在表格下方添加一些間距 */
            margin-left: auto;
            margin-right: auto;
            width: fit-content; /* 或用 max-width: 100% 搭配 text-align */
            border-radius: 15px 15px 15px 15px; /* 從原始 table 移過來，讓外框圓角 */
            overflow: hidden; /* 從原始 table 移過來，讓內容在圓角內 */
            box-shadow: 0 5px 15px rgba(0,0,0,0.1); /* 從原始 table 移過來 */
        }

        /* 針對您要修改的表格，給它一個特定的 class 名稱 */
/* 表格本身不設圓角，讓 wrapper 控制外觀 */
table.activity-rewards-table {
    width: 95%;
    border-collapse: collapse;
    word-break: break-word;
    font-size: 1em;
    font-weight: 500;
}
        /* 移除原先 table 的 padding 和 overflow hidden */
        /* table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
            border-radius: 10px;
            overflow: hidden;
            font-size: 1.1em;
            font-weight: 500;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        } */
/* 表頭樣式 */
table.activity-rewards-table th {
    background-color: #ea6da4;
    border: 2px solid #ea6da4;
    padding: 5px 10px;
    font-size: 1.2em;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    color: #FFFFFF;
}

/* 表格內容樣式 */
table.activity-rewards-table td {
    border: 2px solid #ea6da4;
    padding: 5px 10px;
    font-size: 1em;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
    color: #333333; /* 字體加深 */
}

/* 偶數列穿插底色 */
table.activity-rewards-table tbody tr:nth-child(even) {
    background-color: #FFFAEE;
}
/* 額外指定第4列（獎項列）加底色 */
table.activity-rewards-table tbody tr:nth-child(6) {
    height: 40pt;
    background-image: linear-gradient(to bottom, #FFFAEE 90%, #FFFAEE, #ea6da4 100%);
    border-radius: 10px; /* 或你原本的圓角值 */
    box-shadow: inset 0 -5px 0 #ea6da4;
}

/* Media Queries */
@media screen and (max-width: 480px) {
/* What it does: Forces elements to resize to the full width of their container. Useful for resizing images beyond their max-width. */
html, body, section-title {
    font-size: 16px;
    margin: 20px;}
.main-text .content-section{
    font-size: 1.2rem;
    margin: 20px;}
table.activity-rewards-table {
        font-size: 1rem;
        margin: 20px;
    }
.custom-bullet {
  list-style: none;
  padding-bottom:2rem;
}

.custom-bullet li {
  position: relative;
  padding-left: 1em; /* 根據圖片大小微調 */
  text-align: justify;
  font-size: 1.3em;
  line-height: 3rem;
}

.custom-bullet li::before {
  content: "";
  position: absolute;
  left: -1em;
  top: .2em;
  width: 1.6em;
  height: 1.6em;
  background-image: url('img/purse.svg'); /* 換成你自己的貼紙圖 */
  background-size: contain;
  background-repeat: no-repeat;
}
.gift-note {
  background-color: #FFFFFF;
  border-radius: 40px;
  padding: 1rem 1.5rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
  word-break: break-word;
  max-width: 100%; /* ✅ 防止撐破容器 */
  box-sizing: border-box; /* ✅ 確保 padding 不影響寬度 */
  border: 3px solid #FFD700; /* ✨ 加上金黃色框線 */
}

.gift-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: #6927B0;
  line-height: 2.5rem;
  letter-spacing: 0.05em; /* ✅ 增加字距，讓文字更鬆 */
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* 或用 max-width: 100% 搭配 text-align */
  display: block;
  text-align: center;
}
.gift-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-bottom: -1rem;
  display: inline-block;
}
.gift-amount {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6927B0;
}

.gift-warning {
  font-size: 1.1rem;
  color: red;
  margin-top: 0.5rem;
}
.gift-example {
  font-size: 1.1rem;
  color: #666; /* 淺灰色，與主文區隔 */
  line-height: 1.6;
  margin-top: 0.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
  text-align: justify;
  word-break: break-word;
}
@media (max-width: 768px) {
  .gift-note {
    padding: 1rem;
    border-radius: 24px;
  }
.gift-amount{
    font-size: .8rem;
    line-height: 1;
    letter-spacing: 0.03em;
  }
  .gift-text {
    font-size: 1.2rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
    display: block;
  text-align: center;
  margin: 0 auto;
  }
.gift-img {
    max-width: 100%;
    margin-bottom: -0.5rem;
  }
}
  .gift-warning {
    font-size: 0.85rem;
  }

  .gift-example {
    font-size: 0.85rem;
    line-height: 1.5;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}


.btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 清除重填：淡紫色 */
.clear-btn {
  background-color: #A877CF;
  color: #FFFFFF;
  justify-content: center;   /* ✅ 水平置中 */
  align-items: center;
}
.clear-btn:hover {
  background-color: #8E5BB5;
}

/* 確認送出：深棕色 */
.submit-btn {
  background-color: #823C25;
  color: #FFFFFF;
}
.submit-btn:hover {
  background-color: #A14E34;
}

/* 排版容器 */

.special-btn {
  display: block;
  margin: 5 auto;
  padding: 0.6rem 3rem;
  background-color: #FFB74D;
  color: #4E342E;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  text-decoration: none;
   /* ✅ 新增以下 */
  margin: 1rem auto;        /* 置中用 auto */
  width: fit-content;       /* 根據內容自動寬度 */
  max-width: 90%;           /* 手機版不超過容器 */
}

.special-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .special-btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}
/* 第一層：主項編號 1. 2. 3. */
.note-list {
  list-style-type: decimal;
  padding-left: 3rem;
  margin-left: 0;
}

.note-list li {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
  word-break: break-word;
  margin-bottom: .5rem;
}

/* 第二層：子項編號 (1) (2) (3) */
.sub-note-list {
  counter-reset: sub-counter;
  list-style: none;
  margin-top: 0.5rem;
  padding-left: 0rem;
}

.sub-note-list li {
  counter-increment: sub-counter;
  position: relative;
  padding-left: 2.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: justify;
  word-break: break-word;
  margin-bottom: 0.5rem;
}

.sub-note-list li::before {
  content: "(" counter(sub-counter) ")";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: #444444;
}
@media (max-width: 768px) {
  .note-list li {
    font-size: 1rem;
    line-height: 1.6;
  }

  .sub-note-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 1.5rem;
  }

  .sub-note-list li::before {
    font-size: 0.95rem;
  }
}

.example-text {
  font-size: 1rem;
  color: #666;
}
.highlight {
  color: red;
  font-weight: bold;
}
.highlightp{
  color: #ea6da4;
  font-weight: bold;
}
.highlightg {
  color: #15B6BE;
  font-weight: bold;
}
.warning {
  text-align: center;           /* 置中 */
  font-size: 1.2rem;            /* 加大字體 */
  font-weight: bold;
  color: red;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  word-break: break-word;
}
@media (max-width: 768px) {
  .warning {
    font-size: 1rem;
    margin-top: 1rem;
  }
}
.checkbox-wrapper label {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 控制 checkbox 和文字間距 */
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.btn {
  font-size: 1.4rem;
  text-align: center;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  background-color: #A74DB6;
  color: white;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  background-color: #8E3FA0; /* 深一點的紫色 */
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.register-list + .btn-group {
  display: flex;
  justify-content: center;   /* ✅ 水平置中 */
  align-items: center;
  gap: 12px;                 /* ✅ 控制按鈕間距，可調整為 8px、10px */
  margin-top: 1.5rem;
  flex-wrap: wrap;           /* ✅ 手機版可換行 */
}
.personal + .btn-group {
  display: flex;
  justify-content: center;   /* ✅ 水平置中 */
  align-items: center;
  gap: 12px;                 /* ✅ 控制按鈕間距，可調整為 8px、10px */
  margin-top: 1.5rem;
  flex-wrap: wrap;           /* ✅ 手機版可換行 */
}
@media (max-width: 768px) {
  .personal .register-list + .btn-group .p {
    font-size: 1rem;
    gap: 8px;
  }
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.1rem;
    min-width: 100px;
    align-content: center;
  }
}
.floating-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: -2rem;
}

.floating-labels {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.label {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: float 3s ease-in-out infinite;
}
.label.pink { background-color: #F8BBD0; color: #880E4F; }
.label.yellow { background-color: #FFF176; color: #F57F17; }
.label.date { background-color: #CE93D8; color: #4A148C; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.register-list {
  list-style: none;
  padding: 0;
  margin: 2em auto;
  max-width: 600px;
}

.register-list li {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: justify;
  word-break: break-word;
}

.register-list input[type="text"] {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-top: 0.5rem;
}

.register-list a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #15B6BE;
  text-decoration: underline;
}
.register-list input[type="text"] {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background-color: #fffafc;
}
@media (max-width: 768px) {
  .register-list li {
    font-size: 1rem;
  }

  .register-list input[type="text"] {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
}
.btn-group {
    display: flex;
    justify-content: center; /* 水平置中 */
    flex-wrap: wrap;
    gap: 1.5rem;              /* 按鈕間距 */
    margin-top: 2rem;
}

.btn-group button {
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0.5rem 1.5rem;
  background-color: #A74DB6;
  color: white;
  border: none;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 讓所有按鈕 hover 都有動態效果 */
.btn-group button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* 第一顆按鈕（清除重填）改灰色 */
.btn-group button:first-child {
  background-color: #CCCCCC;
  color: #333333;
}

.btn-group button:first-child:hover {
  background-color: #AAAAAA;
}
.btn-group button:last-child {
  background-color: #A74DB6; /* 原始紫色 */
  color: white;
}

.btn-group button:last-child:hover {
  background-color: #8E3FA0; /* 更深的紫色 */
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
  .btn-group button {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
  }
}
#backToTop {
  position: fixed;
  z-index: 100;
  background-color:none;
  border: none;
  border-radius: 50%;
  width: 90px;
  height: 90px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(148,219,255,0.20);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  bottom: 40px;
  left: calc(50% + 500px);
  background-image: url('img/bac.png');
  display: none; /* 初始隱藏 */
}

@media (max-width: 768px) {
  #backToTop {
    right: 20px;
    left: auto;
    width: 60px;
    height: 60px;
    bottom: 20px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #backToTop {
    left: auto !important;
    right: 20px !important;
    bottom: 20px;
    width: 70px;
    height: 70px;
    font-size: 16px;
    display: none; /* 初始隱藏 */
  }
}
.error {
	margin: 0 50px;
	color: red;
}
