/* ======================== Base ======================= */
/* ===================================================== */
* { box-sizing: border-box; scroll-behavior: smooth;}
html, body { margin: 0; padding: 0;overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }
/* 更穩：iOS 有時 hidden 仍會有捲動，用 clip 更強 */
@supports (overflow-x: clip){
  html, body{ overflow-x: clip; }
}
body{
  font-family: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #9ae2ff; /* 底色 */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
*:focus,input, button, select, textarea { /*去除藍框*/outline: none;}
ol,ul { list-style-type: none;
        padding-left: 0rem;}
a {
  z-index: 100;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #fff;
}
a:hover { cursor: pointer;}
a:focus, a:active { outline: none;}


/*--------------------------------------------------------------
(共用) 滾動條
# scrollbar
--------------------------------------------------------------*/
::-webkit-scrollbar { background: #9c9cb994; width: 10px;}

::-webkit-scrollbar-button { background: transparent; border-radius: 50px;}

::-webkit-scrollbar-track-piece { background: transparent;}

::-webkit-scrollbar-thumb { background-color: #7496a3; border-radius: 50px; border: 1px solid #7fbad1;}

::-webkit-scrollbar-thumb:hover { background-color: #7fbad1;}

::-webkit-scrollbar-track { box-shadow: transparent;}

/* 滾動條 X END */


.s{
  display: none;
}

:root{
  --wrap: 1200px;
  --g: 24px;

  --field-fill: #fff;
  --field-border: #d8c9b7;
  --field-text: #7c6a5c;
  --muted: #9b8878;
  --radius: 10px;
  --shadow: 0 0 0 1px rgba(216,201,183,.7), 0 10px 28px rgba(0,0,0,.10);
}


/* 羽毛飄落 效果 */
.feather-layer{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
/* 羽毛 1：最輕 */
#particles-feather-1{
  animation: featherDriftSoft 9s ease-in-out infinite;
}
/* 羽毛 2：最明顯 */
#particles-feather-2{
  animation: featherDriftMedium 6.5s ease-in-out infinite;
}
/* 羽毛 3：慢＋遠 */
#particles-feather-3{
  animation: featherDriftFar 12s ease-in-out infinite;
}
#particles-feather-1{ animation-delay: -2s; }
#particles-feather-2{ animation-delay: -4s; }
#particles-feather-3{ animation-delay: -6s; }




.wrap{
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}


/* ================== SEC X  register / 登記驗證 ================== */
/* ================================================================ */
.register{
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  /* padding: 4rem 0 24px 0; */
  padding: 4rem 0 5px 0;;
}

/* 背景圖：滿版 */
.register_bg{
  position: absolute;
  inset: 0;
  background: url("../img/sec1_bg.jpg") no-repeat top center;
  background-size: cover; 
  z-index: 0;
}

/* 右側 X 角色 */
.register_ch{
  position: absolute;
  inset: 0;
  background: url("../img/sec1_ch.png") no-repeat top right;
  background-size: min(1030px, 85vw) auto;
  background-position-x: 79%;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
}

.register_wrap{ position: relative; z-index: 2; }

.register_grid{
  display: grid;
  grid-template-columns: 1fr 560px; /* PC版：右側固定卡片寬 */
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

/* 右側 X 空白圖 */
.register_side_r{ min-height: 1px; }

/* 左側 X 卡片（外框組合） */
.register_card_l{
  width: 100%;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.25));
}

/* frame 三段 */
.frame{ position: relative; }
.frame-top .frame_img{ width: 100%; }
.frame-mid{
  background: url("../img/sec1_frame_m.png") repeat top center;
  background-size: 100% auto;
  padding: 18px 12%;
}


/* 上框 / Slogan 閃光特效  *//* 確保可疊特效 *//* 光暈超出 */

.frame-top .slogan-wrap{
  margin: 0 auto -6rem auto;
  position: relative;
  display: inline-block;
  z-index: 999;
}

.frame-top .frame_slogan{  /* 讓標語浮起來（上下微微浮動） */
  position: relative;
  z-index: 3;
  width: min(500px, 100%);
  /* margin: 0 auto -90px auto; */
  margin: 0 auto;
  display: block;
  animation: float 3.2s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

/* 亮點小星閃光 */
.frame-top::before{
  content:"";
  position:absolute;
  inset: -40px; /* 星光飄出一點 */
  pointer-events:none;
  z-index: 15;
  background:/* 用多個 radial-gradient 當作小光點 */
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.95) 0 2px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 38% 22%, rgba(255,255,255,.75) 0 1.5px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 58% 34%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,0) 3.5px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.70) 0 1.6px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 80% 46%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,0) 4px);
  opacity: 0;
  animation: sparkle-twinkle 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(.1px);
}

/* 白光掃過：由右往左 */
.frame-top .slogan-wrap::after{
  content:"";
  position:absolute;
  inset:15%;                 /* img 範圍內 */
  pointer-events:none;
  z-index:10;
  
  background: /* 一條斜斜的白光帶 */
  linear-gradient( 120deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 42%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 58%,rgba(255,255,255,0) 100% );
  transform: translateY(-6%) translateX(0%) skewX(-7deg);
  opacity:1;
  mix-blend-mode: screen;
  animation:float 3.2s ease-in-out infinite, shine-sweep 4.8s ease-in-out infinite ;

  /* 關鍵：用同一張標語圖當遮罩，透明區不顯示白光 */
  /* -webkit-mask-image: url("../img/sec1_slogan_zh.png");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: 83% auto;

  mask-image: url("../img/sec1_slogan_zh.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: 83% auto; */
}



/* ========= FORM x 欄位 ========= */
.form{ display: grid; gap: 14px; margin-top: 8px; }

.form_row{
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.form_icon{
  width: 30px;
  height: 30px;
  margin-top: 6px;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,.08));
}

.form_field{ width: 100%; }

/* split：input + button 同列（桌機） */
.form_field--split{
  display: grid;
  grid-template-columns: 1fr 140px;
  /* gap: 10px; */
  gap: 5px;

}

.ui-input, .ui-select{
  width: 100%;
  height: 50px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--field-border);
  background: var(--field-fill);
  box-shadow: var(--shadow);
  color: var(--field-text);
}

.ui-select{ cursor: pointer; }

.ui-select--wrap{
  white-space: normal;        /* 允許換行 */
  line-height: 1.4;
  height: auto;               /* 不鎖高度 */
  min-height: 50px;           /* 保留按鈕高度感 */
  padding-top: 8px;
  padding-bottom: 8px;
  word-break: break-word;     /* 避免手機版不要撐爆 */
}

/* iOS / Android 對 select 限制 */
.ui-select--wrap option{
  white-space: normal;
}



.form_hint{
  grid-column: 1 / -1;
  /* margin: 6px 0 0 0; */
  margin: 0;
  font-size: 12px;
  color: #742911;
  line-height: 1.5;
  padding-left: 4px;
}

/* 特殊調整 */
#feedback_register_index{
  display: grid;
  grid-template-columns:34px 1fr;
  gap: 10px;


}


/* 按鈕圖 X 整體 */
.ui-btn{
  color: #fff;
  height: 50px;
  border: 0;
  cursor: pointer;
  filter: drop-shadow(0 3px 5px rgba(49, 16, 1, 0.5));
}

/* 按鈕圖 X 內部文字 */
.ui-btn span{ 
  font-weight: 700;
  padding: 5px 9px; 
}

/* 按鈕圖 X 按鈕色 */
.ui-btn--blue{  background: url("../img/sec1_btn-1.png") no-repeat center/100% 100%;}
.ui-btn--azure{ background: url("../img/sec1_btn-2.png") no-repeat center/100% 100%;}
.ui-btn--orange{ background: url("../img/sec1_btn-3.png") no-repeat center/100% 100%;}

/* 按鈕圖 X 文字色 */
.ui-btn--blue span{
  text-shadow:
    /* 像素感描邊（四周硬邊）*/ -2px 0 0 rgb(67 75 170), 2px 0 0 rgb(67 75 170), 0  -2px 0 rgb(67 75 170), 0 2px 0 rgb(67 75 170),
    /* 角落補強（更像一圈外框）*/ -2px -2px 0 rgb(67 75 170), 2px -2px 0 rgb(67 75 170), -2px  2px 0 rgb(67 75 170), 2px  2px 0 rgb(67 75 170),
    /* 右下陰影（偏紫藍）*/ 2.5px  2.5px 0 rgb(67 75 170);
    /* 讓字更銳利一點 */-webkit-font-smoothing: antialiased;  
}

.ui-btn--azure span{
  text-shadow:
    -2px 0 0 rgb(61 139 166), 2px 0 0 rgb(61 139 166), 0  -2px 0 rgb(61 139 166), 0 2px 0 rgb(61 139 166),
    -2px -2px 0 rgb(61 139 166), 2px -2px 0 rgb(61 139 166), -2px  2px 0 rgb(61 139 166), 2px 2px 0 rgb(61 139 166),
    2.5px 2.5px 0 rgb(61 139 166);
  -webkit-font-smoothing: antialiased;  
}


.ui-btn--orange span{
  text-shadow:
    -2px 0 0 #865928, 2px 0 0 #865928, 0  -2px 0 #865928, 0 2px 0 #865928,
    -2px -2px 0 #865928, 2px -2px 0 #865928, -2px  2px 0 #865928, 2px  2px 0 #865928,
    2.5px 2.5px 0 #865928;
    -webkit-font-smoothing: antialiased;  
}


/*  登記獎勵 in card */
.register_rewardImg{
  width: 82%;
  margin: 10px auto 0;
  filter: drop-shadow(0 0 2px rgba(73,28,2,.45));
}



/* ================== SEC X REWARDS / 獎勵區 ================== */
/* =========================================================== */
.rewards{
  position: relative;
  padding: 6.5rem 3rem;
}
.rewards_bg{
  position: absolute;
  inset: 0;
  background: url("../img/sec2_bg.jpg") no-repeat top center; 
  background-size: cover;
  z-index: 0;
}
.rewards_wrap{ position: relative; z-index: 1; }

.rewards_title{
  position: relative;
  margin: 0 0 4rem;
}
.rewards_title img{
  position: relative;
  margin: 0 auto;
  width:  min(75%, calc(500px - 32px));
}

.rewards_gp{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
} 


.rewardCard{
  position: relative;
  aspect-ratio: 503/355;
  width: 100%;
  max-width: min(85%, calc(400px - 32px));
  backdrop-filter: blur(2px);
  text-align: center;
}



/* ================== 右側 / 浮動 ================== */
/* =========================================================== */

.float_icon{
  position:fixed;
  top: 35%;
  right: .5%;
  z-index: 999;
  filter: drop-shadow(0 3px 5px rgba(49, 16, 1, 0.8));
  width: 200px;
}

.float_icon_wrap{
  margin: 0 auto -6rem auto;
  position: relative;
  display: inline-block;
  z-index: 999;
}

.float_icon_wrap img{
  position: relative;
  z-index: 3;
  width: min(500px, 100%);
  margin: 0 auto;
  display: block;
  animation: float 3.2s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, filter;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}

/* 亮點小星閃光 */
.float_icon_wrap::before{
  content:"";
  position:absolute;
  inset: -40px; /* 星光飄出一點 */
  pointer-events:none;
  z-index: 15;
  background:/* 用多個 radial-gradient 當作小光點 */
    radial-gradient(circle at 22% 40%, rgba(255,255,255,.95) 0 2px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 38% 22%, rgba(255,255,255,.75) 0 1.5px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 58% 34%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,0) 3.5px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.70) 0 1.6px, rgba(255,255,255,0) 3px),
    radial-gradient(circle at 80% 46%, rgba(255,255,255,.85) 0 2px, rgba(255,255,255,0) 4px);
  opacity: 0;
  animation: sparkle-twinkle 2.6s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(.1px);
}

/* 白光掃過：由右往左 */
.float_icon_wrap::after{
  content:"";
  position:absolute;
  inset:0%;                 /* img 範圍內 */
  pointer-events:none;
  z-index:10;
  background: /* 一條斜斜的白光帶 */
  linear-gradient( 120deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0) 42%,rgba(255,255,255,.55) 50%,rgba(255,255,255,0) 58%,rgba(255,255,255,0) 100% );
  transform: translateY(-6%) translateX(0%) skewX(-7deg);
  opacity:1;
  mix-blend-mode: screen;
  animation:slogan-float 3.2s ease-in-out infinite, shine-sweep 4.8s ease-in-out infinite ;
}

.btn_top{
  position:fixed;
  bottom: 2%;
  right: 2%;
  z-index: 999;
  width: 40px;
  opacity: .8;
}
.btn_top button{
  background: transparent;
  filter: drop-shadow(0 3px 5px rgba(49, 16, 1, 0.8));

}




/* ================== RWD ================== */
/* =========================================================== */

/* 中 / 小PC版以下 */
@media (max-width: 1441px){
  /* .register{
    padding: 5.5rem 0 24px 0;
  } */
  .register_ch{
    background: url("../img/sec1_ch.png") no-repeat bottom right;
    background-size: min(850px, 85vw) auto;
  }
  .register_grid{
    gap: clamp(16px, 3vw, 0px);
  }
  .frame-top .frame_slogan{
    width: min(450px, 100%);
  }
  .form{
    gap: 10px;
  }
  .frame-mid{
    padding:.5rem 12% 0px 12%;
  }
}

  @media (max-width: 1281px){
    .register_ch{ display: none; }
    .l{ display: none; }
    .s{ display: block; }

  }


/* PAD以下：register 改單欄 */
  @media (max-width: 1024px){
    /* ===== REGISTER / 登記區 =====*/
    .register_grid{
      grid-template-columns: 1fr;
    }
    .register_side_r{ display: none; }
    .register_card_l{ max-width: 720px; margin: 0 auto; }

  }




/* 小PAD */
  @media (max-width: 992px){
    .rewardCard{
      max-width:min(85%, calc(350px - 32px));
    }
  }



  @media (max-width: 768px){
    /* ===== REGISTER / 登記區 =====*/
    /* .register{
      padding-top: 6rem;
    }
    .frame-top::before{
      inset: unset;
    }
    .frame-top .slogan-wrap{
      margin: 0 auto -3.5rem auto;
    }
    .frame-mid{ padding: 16px 10%; }
    .register_rewardImg{
      width: 100%;
      margin: 0;
    } */

    /* ===== REWARDS / 獎勵區 =====*/
    /* .rewards_gp{
      gap: 10px;
    }

    .float_icon{
      top: unset;
      bottom: 25%;
      right: -2%;
    }
    .float_icon_wrap{
      display: block;
    }
    .float_icon_wrap::before{
      inset: unset;
    }
    .float_icon_wrap img{
      width: 150px;
    } */
}

@media (max-width: 768px){

  /* ===== REGISTER / 登記區 ===== */
  .register{
    padding-top: 6rem;
  }

  /* 防爆版：強制 register 單欄（避免 WebView 計算） */
  .register_grid{
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .frame-top::before{
    inset: unset;
  }
  .frame-top .slogan-wrap{
    margin: 0 auto -3.5rem auto;
  }

  .frame-mid{
    padding: 16px 10%;
  }

  .register_rewardImg{
    width: 100%;
    margin: 0;
  }

  /* 防爆版：避免 input/select/button 在 grid/flex 撐爆 */
  .ui-select,
  .ui-input,
  .ui-btn{
    max-width: 100%;
    min-width: 0;
  }

  /* ===== REWARDS / 獎勵區 ===== */
  .rewards_gp{
    gap: 10px;
  }

  /* ===== 右側浮動圖 ===== */
  .float_icon{
    top: unset;
    bottom: 25%;
    right: 0;
    transform: translateX(60%);
    max-width: 40vw;
    display: none;
  }

  .float_icon_wrap{
    display: block;
  }
  .float_icon_wrap::before{
    inset: unset;
  }
  .float_icon_wrap img{
    width: 150px;
  }
}





/* 大MB以下：input+btn 變上下 */
  @media (max-width: 540px){

    /* ===== REGISTER / 登記區 =====*/
    /* .register{
      padding-top: 4rem;
    } */
    .frame_slogan{ 
      width: min(350px, 100%);
      margin-bottom: -56px;
     }
    .frame-mid{
      padding: 14px 16px; /* 固定 padding */
    }

    .form_field--split{
      grid-template-columns: 1fr;
    }
    .ui-select{
      font-size: 14px;
      min-height: 60px;
    }
    .ui-btn--blue{ background:url("../img/sec1_btn-1-s.png") no-repeat center/100% 100%; }
    .ui-btn--azure{ background:url("../img/sec1_btn-3-s.png") no-repeat center/100% 100%; }
    .ui-btn--orange{ background:url("../img/sec1_btn-2-s.png") no-repeat center/100% 100%; }


    /* ===== REWARDS / 獎勵區 =====*/
    .rewards{ padding: 4rem 2rem;}
    .rewards_title{
      margin: 0 0 2rem;
    }

  }

  

/* MB版以下 */
  @media (max-width: 480px){
    .wrap{ width: min(var(--wrap), calc(100% - 20px)); }

    /* ===== REGISTER / 登記區 =====*/
    .frame-mid{ padding: 14px 12%; }
  }



  @media (max-width: 400px){
  
  }
