* {
  margin: 0;
  padding: 0;
}
.text-pink {
  color: #ea5857;
}
.text-red{
  color:red;
}
.text-sm-num {
  font-size: 18px;
}

/* 版頭 */
.EnTie-Redbar {
  background: #cc0001;
  height: 85px;
  width: 100%;
  z-index: 9;
  display: flex;
  justify-content: flex-end;
  align-content: center;
  position: fixed;
}

.EnTie-Redbar img {
  max-width: 100%;
  width: 212px;
  object-fit: contain;
  margin-right: 15px;
}

.logo-container {
  position: relative;
  display: inline-block;
  overflow-x: hidden;

  /* 
    logoIntroPulse: 動畫名稱
    4s: 整個動畫循環一次 4 秒（包含淡入、放大與亮光）
    ease-in-out: 平滑的呼吸曲線
    infinite: 無限循環播放
  */

  animation: logoIntroPulse 3s ease-in-out infinite;
  will-change: transform, opacity; /* 優化效能，防止模糊 */
}

.logo-shine {
  position: absolute;
  top: 0;
  left: -150%; /* 初始位置在左側外 */
  width: 50%;
  height: 100%;

  /* 製作微弱的漸層白光 */
  background: linear-gradient(
    to right,
    rgb(255 255 255 / 35%) 0%,
    rgb(255 255 255 / 12%) 50%,
    /* 0.3 代表亮光透明度，可調低 */ rgb(255 255 255 / 27%) 100%
  );

  transform: skewX(-25deg); /* 讓亮光傾斜，看起來更自然 */

  /* 綁定亮光閃爍動畫，時間與外層同步 */
  animation: shineSweep 4s ease-in-out infinite;
}

@keyframes logoIntroPulse {
  0% {
    opacity: 0.5; /* 網頁剛載入：完全透明 */
    transform: scale(1); /* 稍微縮小，準備放大 */
  }
  15% {
    opacity: 1; /* 快速淡入完成 */
  }
  50% {
    transform: scale(1.08); /* 動畫中段：溫柔放大 8% */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* 動畫結束：回到原大小，並準備下一次循環 */
  }
}

/* 亮光動畫：讓白光從左到右刷過去 */
@keyframes shineSweep {
  0%,
  10% {
    left: -150%; /* 前期等待淡入，亮光先不出現 */
  }
  40%,
  100% {
    left: 150%; /* 在放大期間，快速從左邊刷到右邊過後消失 */
  }
}

/* 背景Banner */
.friend-container {
  overflow-x: hidden;
  background-attachment: fixed;
  background-image: url("./image/friend-BG.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  max-width: 100%;
  width: 100%;
  font-family:
    "Microsoft JhengHei", "微軟正黑體", "Apple LiGothic", "PingFang TC",
    "Helvetica Neue", sans-serif;
  padding-bottom: 50px;
}
.friend-section-1 {
  padding-top: 85px;
}
.friend-date {
  position: relative;
  top: 90px;
  z-index: 2;
}
.friend-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.friend-banner .PIC-title-friend {
  max-width: 800px;
  margin: 0 auto;
}
.friend-sm-text {
  max-width: 600px;
  position: relative;
  top: -100px;
}
/* 檔案樣式文字 */
.friend-file-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 60px;
}
.friend-file-box:last-child {
  margin-bottom: 0px;
}
.friend-file {
  background: #fbe9d4;
  border: 2px #551218 solid;
  box-shadow: #da9a6f 5px 5px;
  max-width: 500px;
  width: 100%;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  margin: 0 10px;
}

.friend-file .friend-PIC-title-1 img {
  max-width: 400px;
}

.friend-file img {
  width: 350px;
}
.friend-PIC-title {
  display: flex;
  justify-content: center;
}
.friend-file-content-box {
  margin: 10px;
  padding: 20px 10px 15px 10px;
  background: #fff;
  border: #551218 2px solid;
  color: black;
}

.friend-text {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  border-bottom: 4px dashed #551218;
  padding-bottom: 10px;
}
.friend-text .text-pink {
  font-size: 28px;
  font-weight: bold;
}

ul.friend-file-content {
  padding: 12px 0px 0px 0px;
  font-size: 22px;
  font-weight: 600;
}
.friend-file-content li {
  padding-bottom: 10px;
  list-style: none;
  display: flex;
}
.friend-file-content.icon-tick li::before {
  content: "";
  background: url("./image/icon-tick.png");
  display: inline-block;
  background-size: cover;
  margin-right: 5px;
  position: relative;
  top: 3px;
  max-width: 21px;
  width: 100%;
  height: 21px;
}

.circle-dialog .friend-file-content.icon-tick li:last-child:before {
  display: none;
}
.friend-file-content.icon-diamond p::before {
  content: "";
  background: url("./image/icon-diamond.png");
  display: inline-block;
  background-size: cover;
  margin-right: 5px;
  position: relative;
  max-width: 21px;
  width: 100%;
  height: 21px;
}

.friend-file-content.icon-diamond p {
  display: block;
  display: flex;
  width: 100%;
}
.friend-file-content.icon-diamond .icon-diamond-space {
  margin-right: 13px;
}

/* 情侶圖 */

img.friend-couple {
  height: 300px;
  width: 400px;
  position: relative;
  top: 50px;
}

/* 注意事項 */

.surfboad-box {
  display: flex;
}
.summer-notify {
  max-width: 1000px;
  margin: 20px auto 80px auto;
}
.summer-notify ul {
  display: none;
}
.surfboad {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}
.surfboad-title-h1 {
  position: relative;
}

.summer-notice-content {
  background: #fbe9d4;
  border: 2px solid #551218;
  box-shadow: #da9a6f 5px 5px;
  border-radius: 20px;
  padding: 50px 50px 50px 70px;
  margin-bottom: 50px;
  margin: 0 auto;
  text-align: justify;
}
.summer-notify ul li {
  list-style-type: decimal;
}

.summer-notify input {
  display: none;
} /* 隱藏 checkbox */

.surfboad-img {
  padding: 80px 0 40px 0;
  display: flex;
  position: relative;
  background: url("./image/friend-notify.png");
  width: 300px;
  margin: 30px auto 0 auto;
  background-size: contain;
  background-repeat: no-repeat;
}

.surfboad-img::after {
  content: "";
  display: inline-block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url("./image/caret-up.svg");
  width: 30px;
  height: 25px;
  position: absolute;
  top: 30px;
  right: 35px;
  transition: transform 0.3s ease;
}
.summer-notify label {
  cursor: pointer;
  color: #691212;
}

/* 隱藏子選單 */
/* 勾選 checkbox 時，相鄰的下一個兄弟元素 .NewHome-notice-content-2就顯示 */
.summer-notify input:checked ~ .summer-notice-content {
  display: block;
}

.summer-notify input:checked ~ .surfboad-title-h1 .surfboad-img::after {
  transform: rotate(180deg); /* 變為：展開狀態（朝下） */
}

/* 注意事項結束 */

/* 輪播切換按鈕 */
.money-btn {
  max-width: 900px;
  margin: 0 auto;
}
.money-btn li {
  background: #da9a6f;
  display: inline-block;
  border: 2px #551218 solid;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px;
  font-size: 25px;
  font-weight: bold;
  position: relative;
  top: 4px;
  cursor: pointer;
  color: #543333;
}

.money-btn li:nth-child(2) {
  right: -10px;
}
.money-btn li:last-child {
  right: -20px;
}
.friend-section-3 {
  margin-top: 180px;
}

.friend-section-3 .content {
  display: none; /* 預設全部隱藏 */
}

.content.active {
  display: block; /* 只有加上 active 的才顯示 */
}

.money-btn li.active {
  background: #fbe9d4;
  display: inline-block;
  border: 2px #551218 solid;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px 15px;
  font-size: 25px;
  font-weight: bold;
  border-bottom: none;
  position: relative;
  top: 4px;
  z-index: 2;
  color: black;
}

/* 輪播 */
.swiper-button-next,
.swiper-button-prev {
  background: #ffc3a2;
  padding: 10px;
}
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
  color: #551218;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.swiper .swiper-button-prev {
  left: 10px !important;
}
.swiper .swiper-button-next {
  right: 10px !important;
}
.swiper .swiper-pagination-bullet-active {
  background: #551218;
}
.swiper {
  max-width: 1000px;
  background: #fbe9d4;
  border: 2px #551218 solid;
  box-shadow: #da9a6f 5px 5px;
  border-radius: 20px;
  margin: 0 30px;
}

.swiper-wrapper {
  padding: 20px 0px;
}
.phone-img {
  max-width: 350px;
}

.container-phone {
  display: flex;
  position: relative;
  justify-content: center;
}
.people-left-box {
  display: flex;
  flex-direction: column;
}
.phone-step-box {
  margin-left: 30px;
  margin-top: 30px;
}
.phone-step {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 10px;
}
.phone-step-title {
  font-size: 30px;
}
.phone-step span {
  font-size: 30px;
  border-radius: 30px;
  padding: 5px 15px;
  margin-bottom: 30px;
}

.friend-OnePeople {
  width: 305px;
  height: 350px;
  position: absolute;
  right: 40px;
  bottom: -45px;
}
.swiper-scrollbar {
  display: none;
}

/* 對話框 */

.circle-dialog {
  position: relative;
  top: 35px;
  left: 20px;
  max-width: 480px; /* 設置圓形直徑 */
  height: 220px;
  background-color: #ffc3a2;
  border-radius: 100px; /* 將區塊變為正圓形 */
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
  box-sizing: border-box;
  padding: 15px 30px;
  font-size: 23px;
  font-weight: 500;
  line-height: 30px;
  font-weight: 600;
}
.circle-dialog p:first-child {
  padding-bottom: 15px;
}
.circle-dialog p {
  letter-spacing: 1px;
}
.dialog-text-1 {
  padding-bottom: 5px;
}

/* 建立對話框的小尖角 */
.circle-dialog::after {
  content: "";
  position: absolute;
  bottom: -15px; /* 尖角位置（依需求調整） */
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #ffc3a2 transparent transparent; /* 尖角顏色需與背景同 */
  display: block;
  width: 0;
}
/* 對話框微調 */
.swiper-pag-2 .circle-dialog {
  max-width: 400px;
  height: 180px;
  justify-content: center;
  line-height: 35px;
}
.swiper-pag-2-M .circle-dialog {
  max-width: 450px;
  height: 180px;
  line-height: 35px;
}

.icon-PC::before {
  content: "";
  background: url("./image/icon-PC.png");
  display: inline-block;
  background-size: cover;
  position: absolute;
  left: 50px;
  width: 30px;
  height: 30px;
}

.icon-bank::before {
  content: "";
  background: url("./image/icon-bank.png");
  display: inline-block;
  background-size: cover;
  position: absolute;
  left: 50px;
  width: 30px;
  height: 30px;
}

/* 月曆 照片 */
.friend-calendar .swiper-wrapper {
  flex-direction: column;
}

.calendar-box img {
  max-width: 450px;
}

.swiper.calendar-box {
  margin-top: 20px;
}
.friend-calendar-text {
  font-weight: bold;
  font-size: 23px;
  padding-top: 20px;
  padding: 30px 30px 10px 60px;
}

/* 頁尾 */
.EnTie-CIS-container {
  padding: 0px 0 5px 0;
  background: #fff;
  height: 60px;
}
.EnTie-CIS-line-container {
  position: relative;
  width: 100%;
  height: 2px; /* 高度與線條相同 */
  top: 0;
}
.EnTie-grey-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ccc; /* 底線顏色 */
}
.EnTie-red-line {
  position: absolute;
  width: 100%; /* 疊加線的長度 */
  height: 2px;
  top: -2px;
  background-color: #ff0000; /* 疊加線顏色 */
  z-index: 10; /* 確保在上方 */
}
.EnTie-CIS-MidRedText {
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 10px 0;
  font-size: 28px;
  color: #cc000d;
  font-weight: 500;
}

/* Footer 頁尾底部*/
.EnTie-footer {
  background: rgb(204, 0, 13);
  height: 64px;
  padding: 0px 90px;
  font-weight: bold;
  color: white;
  display: flex;
  justify-content: space-between;
}
.EnTie-footer img {
  width: 250px;
}
.EnTie-footer-detail {
  width: 100%;
  margin-left: 30px;
  padding-top: 13px;
  font-weight: 400;
}
.EnTie-footer-detail span {
  padding-left: 10px;
}

.EnTie-number {
  text-align: end;
  font-size: 12px;
  margin-top: 70px;
  margin-bottom: 70px;
}

/* 版頭 */
@media screen and (max-width: 768px) {
  .EnTie-Redbar {
    height: 30px;
  }
  .EnTie-Redbar img {
    margin-right: 5px;
    width: 80px;
  }
}

/* 版尾 */
@media screen and (max-width: 768px) {
  .EnTie-CIS-container {
    height: 45px;
  }
  .EnTie-CIS-MidRedText {
    padding: 5px 0;
    font-size: 23px;
  }

  .EnTie-footer {
    flex-direction: row;
    align-items: center;
    line-height: 30px;
    height: 45px;
    padding: 0 5px;
  }
  .EnTie-footer-detail {
    margin-left: 0;
    text-align: center;
    padding-top: 5px;
  }
  .EnTie-footer-detail span {
    display: block;
  }
  .EnTie-footer img {
    max-width: 180px;
  }
}

@media screen and (max-width: 768px) {
  .text-sm-num {
    font-size: 16px;
  }
  .friend-date {
    top: 0px;
    max-width: 200px;
  }
  .friend-file .friend-PIC-title-1 img {
    max-width: 420px;
  }
  /* 標題 */
  .friend-sm-text {
    width: 300px;
    position: relative;
    top: 0px;
  }
  .friend-banner .PIC-title-friend {
    max-width: 100%;
  }
  .money-btn li,
  .money-btn li.active {
    font-size: 30px;
    top: 5px;
  }
  .money-btn li:last-child,
  .money-btn li:nth-child(2) {
    right: 0px;
  }
  .friend-file {
    max-width: 400px;
  }
  .friend-file-box {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .phone-step-box {
    margin-left: 5px;
    margin-top: 5px;
  }
  .circle-dialog {
    position: relative;
    top: 5px;
    left: 0px;
    max-width: 480px;
    height: 230px;
    background-color: #ffc3a2;
    border-radius: 100px;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    box-sizing: border-box;
    padding: 15px 5px;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px;
    font-weight: 600;
    margin: 0 10px;
  }
  .swiper {
    padding: 0 10px;
    border-top-left-radius: 0px;
  }

  .swiper-pag-2 .circle-dialog {
    max-width: 100%;
  }

  .phone-img {
    max-width: 100%;
  }

  .container-phone {
    flex-direction: column-reverse;
  }

  .phone-step img {
    max-width: 100%;
  }
  .friend-OnePeople {
    width: 180px;
    height: 200px;
    display: none;
  }
  .friend-couple-display-none {
    display: none;
  }

  img.friend-couple {
    height: 230px;
    width: 300px;
    top: 10px;
  }

  .friend-file-content-box {
    padding: 10px 8px 0px 8px;
  }

  .surfboad-title-h1::after {
    right: 25%;
  }

  .friend-section-3 {
    margin: 50px 10px 0 10px;
  }
  .phone-step-title {
    font-size: 27px;
    padding-left: 3px;
    padding-bottom: 10px;
  }

  /* 月曆 */
  .calendar-box img {
    max-width: 350px;
  }

  .calendar-box.swiper {
    max-width: 350px;
  }

  .friend-calendar-text {
    font-weight: bold;
    font-size: 20px;
    padding-top: 20px;
    padding: 10px 20px 10px 20px;
  }
  /* 注意事項 */
  .summer-notice-content {
    padding: 50px 30px;
    margin: 0 10px;
  }

  .summer-notify {
    margin: 40px auto 80px auto;
  }
  /* 輪播 */
  .swiper .swiper-button-next,
  .swiper .swiper-button-prev {
    top: 60% !important;
  }
  ul.friend-file-content {
    font-size: 18px;
  }

  .icon-PC::before,
  .icon-bank::before {
    left: 30px;
  }
}

@media screen and (max-width: 390px) {
  .friend-file {
    max-width: 370px;
  }

  .swiper .swiper-button-next,
  .swiper .swiper-button-prev {
    top: 65% !important;
  }
}
