* {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
  /* 避免變藍色 */
}

html,
body {
  font-family: 'LINE Seed Sans TW', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 12px;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* header */
.header {
  width: 100%;
  height: 72px;
  top: 0;
  left: 0;
  position: fixed;
  background-color: #2a3479;
  z-index: 500;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header .logo img {
  width: 100%;
}

.header-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  /* 去掉 ul 點點 */
  margin: 0;
  padding: 0;
}

.header-nav li {
  position: relative;
  /* 偽元素定位用 */
  padding-left: 10px;
  /* 給分隔線留空間 */
  display: flex;
  align-items: center;
}

.header-nav li::before {
  content: "";
  width: 1px;
  height: 18px;
  /* 可調整線長 */
  background-color: rgba(255, 255, 255, 1);
  margin-right: 25px;
  /* 線與文字間距 */
}

.header-nav li:first-child::before {
  content: none;
  /* 第一個不顯示線 */
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: 300;
}

.header-nav a:hover {
  color: #0ba7e6;
}

/* 手機版 header RWD */
@media screen and (max-width: 768px) {
  .header {
    height: auto;
  }

  .header .logo img {
    width: 140px;
    display: block;
  }

  .header-nav ul {
    gap: 3px;
    /* 連結間距縮小 */
  }

  .header-nav li::before {
    height: 14px;
    /* 分隔線縮短 */
    margin-right: 12px;
    /* 分隔線間距縮小 */
  }

  .header-nav a {
    letter-spacing: 1px;
    font-size: 1.3em;
    font-weight: 400;
  }
}

@media screen and (max-width: 375px) {
  .header {
    height: auto;
  }

  .header .logo img {
    width: 120px;
  }

  .header-nav li::before {
    height: 14px;
    /* 分隔線縮短 */
    margin-right: 12px;
    /* 分隔線間距縮小 */
  }

  .header-nav a {
    letter-spacing: 1px;
    font-size: 1.3em;
    font-weight: 400;
  }
}


.wrap {
  width: 100%;
  /* 小螢幕自適應 */
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  /* 清除浮動 */
  padding-top: 100px;
}

h1 {
  font-size: 3em;
  font-weight: bold;
  color: #2a3479;
  display: inline;
}

.time {
  font-size: 1.3em;
  margin-left: 10px;
}

.notice {
  position: relative;
  width: 100%;
  /* 小螢幕自適應 */
  max-width: 800px;
  background-color: #e5f5ff;
  height: 97px;
  border-radius: 10px;
  margin: 20px auto;
  padding: 10px;
}

.notice img {
  position: absolute;
  top: 50%;
  left: 35px;
  transform: translateY(-50%);
  /* 垂直置中 */
}

.notice-text {
  position: absolute;
  top: 50%;
  left: 55px;
  transform: translateY(-50%);
  padding: 30px;
  font-size: 1.3em;
  font-weight: 400;
  letter-spacing: 1px;
  color: #6a6a6a;
  line-height: 1.5em;
}

.blue-text {
  color: #1b78d8;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.queue-panel {
  position: relative;
  width: 100%;
  max-width: 335px;
  height: 150px;
  margin: 40px auto 30px;
  display: flex;
  justify-content: space-around;
  background-color: #ededed;
  border-radius: 20px;
  padding: 20px 0;
}

.queue-panel::after {
  content: "";
  position: absolute;
  height: 100px;
  /* 線高 */
  top: 50%;
  /* 垂直置中 */
  left: 50%;
  /* 水平置中 */
  width: 1px;
  /* 線寬 */
  background-color: #000;
  transform: translate(-50%, -50%);
  /* 精準水平+垂直置中 */
}

.queue-item {
  text-align: center;
}

.label {
  display: block;
  font-size: 1.6em;
  letter-spacing: 1px;
  color: #000;
  margin: 6px 0 0;
}

.value {
  font-size: 4.5em;
  font-weight: 700;
  color: #1b78d8;
  padding: 10px;
}

.text {
  font-size: 1.6em;
  color: #000;
  text-align: right;
}

.btn {
  width: 350px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding-bottom: 10px;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: #2a3479;
  color: white;
  gap: 8px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  /* 內陰影 */
  box-shadow: inset 0 -8px 0px rgba(49, 102, 182, 1);
  transform: translateY(0);
  /* 初始位置 */
  transition: all 0.2s ease;
  /* 加入動畫 */
}

.btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 3px 0 0;
}

.btn img,
.btn span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover img,
.btn:hover span {
  transform: translateY(4px);
  /* 文字與圖標往下移 */
}

.btn:hover {
  background-color: #467ccf;
  box-shadow: inset 0 0px 0px rgba(49, 102, 182, 1);
  transform: translateY(1px);
}

@media screen and (max-width: 768px) {
  .wrap {
    padding: 70px 20px 0;
  }

  h1,
  .time {
    display: block;
    /* 改成區塊元素，自動換行 */
    text-align: left;
    margin: 0 auto;
  }

  .time {
    margin-left: 10px;
    margin-top: 5px;
    font-size: 1.5em;
  }

  h1 {
    font-size: 3em;
  }

  .notice {
    height: 120px;
    margin: 20px auto;
    padding: 10px;
  }

  .notice img {
    width: 25px;
    left: 13px;
  }

  .notice-text {
    left: 35px;
    padding: 0 15px;
    font-size: 1.16em;
    letter-spacing: 2px;
    line-height: 1.3em;
  }

  .queue-panel {
    width: 100%;
    max-width: 100%;
    margin: 25px auto 30px;
  }

  .btn {
    width: 350px;
    height: 70px;
    font-size: 2.3em;
  }

  .btn img {
    width: 25px;
    height: 25px;
  }

}

@media screen and (max-width: 375px) {
  .btn {
    width: 320px;
    height: 60px;
    font-size: 2.1em;
  }

  .btn img {
    width: 23px;
    height: 23px;
  }

}

.priority {
  display: flex;
  /* 將 icon 與文字組合水平排列 */
  align-items: center;
  /* 垂直置中對齊 */
  gap: 5px;
  justify-content: center;
}

.priority h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px 10px 0;
  font-size: 1.5em;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0;
  /* 移除預設 margin */
}

.priority img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  /* 確保不變形 */
  margin: 12px 0 0;
}

h3 {
  font-size: 1.2em;
  font-weight: 400;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding-bottom: 30px;
}

.phone-item {
  display: flex;
  /* 將 icon 與文字組合水平排列 */
  align-items: center;
  /* 垂直置中對齊 */
  gap: 5px;
  justify-content: center;
}

.phone-item img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 3px 0 0;
}

.phone-item h4,
.phone-item .phone-number {
  margin: 0;
}

.phone-item h4 {
  font-size: 2em;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000;
  margin-right: 5px;
  /* h4 與 phone-number 間距 */
}

.phone-item .phone-number {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: 1px;
  color: #2a3479;
}

.other {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 15px;
}

.other p {
  padding: 20px 18px 10px 0;
  font-size: 1.5em;
  letter-spacing: 1px;
  font-weight: 400;
  color: #000;
  margin: 0;
  /* 移除預設 margin */
}

.other .red-text {
  font-size: 1.2em;
  letter-spacing: 1px;
  font-weight: 800;
  color: #e65398;
  margin: 0;
  /* 移除預設 margin */
}

.other .blue-text-1 {
  font-size: 1.2em;
  letter-spacing: 1px;
  font-weight: 800;
  color: #467ccf;
  margin: 0;
  /* 移除預設 margin */
}

.other img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  /* 確保不變形 */
  margin: 12px 0 0;
}

.button-row {
  display: flex;
  /* 水平排列子元素 */
  justify-content: center;
  /* 水平置中整個 row */
  gap: 16px;
  /* 按鈕之間的間距，可調整 */
  align-items: center;
  /* 垂直置中對齊（如果按鈕高度不一致） */
  margin: 10px 0;
  /* 可選，上下間距 */
}

.btn1,
.btn2 {
  display: flex;
  /* 水平排列圖片和文字 */
  align-items: center;
  /* 垂直置中 */
  justify-content: flex-start;
  /* 水平置中（可選） */
  padding: 2px 0 0 5px;
  gap: 5px;
  width: 155px;
  height: 56px;
  font-size: 1.5em;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: #ccdbf2;
  color: #2a3479;
  border: none;
  border-radius: 50px;
  cursor: pointer;
}

.btn1 img,
.btn2 img {
  width: 51px;
  /* 調整圖標大小 */
  height: 51px;
  object-fit: contain;
}

.btn1:hover,
.btn2:hover {
  background-color: #8db4ee;
  box-shadow: inset 0 0px 0px rgba(49, 102, 182, 1);
  transform: translateY(1px);
}

@media screen and (max-width: 768px) {
  .priority h2 {
    font-size: 1.75em;
  }

  .priority img {
    width: 20px;
    height: 20px;
  }

  h3 {
    font-size: 1.5em;
    letter-spacing: 1px;
    padding-bottom: 36px;
  }

  .phone-item h4 {
    font-size: 2.3em;
    letter-spacing: 0;
  }

  .phone-item .phone-number {
    font-size: 2.3em;
    letter-spacing: 0;
  }

  .phone-item img {
    width: 25px;
    height: 25px;
    margin: 5px 0 0;
  }

  .other {
    gap: 5px;
    padding: 20px 0 0 24px;
  }

  .other img {
    width: 25px;
    height: 25px;
    margin: 3px 3px 0 0;
  }

  .other p {
    font-size: 1.75em;
    letter-spacing: 2px;
  }

  .other .red-text,
  .other .blue-text-1 {
    font-size: 1.2em;
    letter-spacing: 1px;
  }

  .btn1,
  .btn2 {
    padding: 3px 0 0 7px;
    gap: 3px;
    width: 175px;
    height: 70px;
    font-size: 1.75em;
    letter-spacing: 1px;
  }

  .btn1 img,
  .btn2 img {
    width: 60px;
    height: 60px;
  }

}

@media screen and (max-width: 375px) {

  .phone-item h4 {
    font-size: 2.1em;
  }

  .phone-item img {
    width: 23px;
    height: 23px;
  }

  .phone-item .phone-number {
    font-size: 2.1em;
  }

  .other {
    gap: 5px;
    padding: 15px 0 0 15px;
  }

  .other p {
    font-size: 1.5em;
  }

  .other img {
    width: 23px;
    height: 23px;
  }

  .btn1,
  .btn2 {
    font-size: 1.5em;
  }

  .voice-phone {
    display: none;
  }
}

.phone-voice h4 {
  font-size: 2em;
  font-weight: 800;
  padding: 50px 0 0;
}

.list-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: auto;
  background-color: #e8e8e8;
  border-radius: 20px;
  padding: 15px 30px;
  margin-top: 20px;
}

.voice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 桌機三欄 */
  gap: 7px;
  list-style: none;
  /* 去掉 ul 點點 */
  margin: 0;
  padding-right: 80px;
}

.voice-list li:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

/* 0 */
.voice-list li:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

/* 1 */
.voice-list li:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}

/* 2 */
.voice-list li:nth-child(4) {
  grid-column: 1;
  grid-row: 4;
}

/* 3 */

.voice-list li:nth-child(5) {
  grid-column: 2;
  grid-row: 1;
}

/* 4 */
.voice-list li:nth-child(6) {
  grid-column: 2;
  grid-row: 2;
}

/* 5 */
.voice-list li:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
}

/* 6 */
.voice-list li:nth-child(8) {
  grid-column: 2;
  grid-row: 4;
}

/* 7 */

.voice-list li:nth-child(9) {
  grid-column: 3;
  grid-row: 1;
}

/* 8 */

.voice-list li {
  font-size: 1.5em;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.voice-list .number {
  font-weight: 900;
  margin-right: 6px;
}

.voice-phone {
  position: absolute;
  top: 25%;
  right: 5px;
  transform: translateY(-50%);
}

.btn3 {
  min-width: 150px;
  height: auto;
  padding: 3px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.15em;
  font-weight: 400;
  letter-spacing: 1px;
  background-color: #2a3479;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  position: absolute;
  top: 32%;
  right: 23%;
}

.btn3:hover {
  background-color: #467ccf;
  box-shadow: inset 0 0px 0px rgba(49, 102, 182, 1);
  padding: 3px 12px;
}

.btn3-icon {
  width: 11px;
  height: 13px;
  object-fit: contain;
  margin: 2px 0 0;
}

@media screen and (max-width: 768px) {
  .voice-phone {
    width: 150px;
    top: 5%;
    right: 5px;
    transform: translateY(-50%);
  }

  .list-container {
    position: relative;
    height: auto;
    padding-bottom: 70px;
  }

  .voice-list {
    grid-template-columns: repeat(1, 1fr);
    gap: 7px;
    padding: 0;
  }

  .voice-list li {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .voice-list li {
    font-size: 1.75em;
  }

  .btn3 {
    position: absolute;
    bottom: 15px;
    /* 與底部距離 */
    left: 15px;
    /* 與左側距離 */
    min-width: 150px;
    padding: 4px 12px;
    gap: 3px;
    font-size: 1.5em;
    top: auto;
    right: auto;
  }

  .btn3-icon {
    width: 14px;
    height: 16px;
    margin: 2px 0 0;
  }

  /* 下面是兩欄的寫法 */
  .voice-list li:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  /* 0 */
  .voice-list li:nth-child(6) {
    grid-column: 2;
    grid-row: 1;
  }

  /* 5 */

  .voice-list li:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  /* 1 */
  .voice-list li:nth-child(7) {
    grid-column: 2;
    grid-row: 2;
  }

  /* 6 */

  .voice-list li:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  /* 2 */
  .voice-list li:nth-child(8) {
    grid-column: 2;
    grid-row: 3;
  }

  /* 7 */

  .voice-list li:nth-child(4) {
    grid-column: 1;
    grid-row: 4;
  }

  /* 3 */
  .voice-list li:nth-child(9) {
    grid-column: 2;
    grid-row: 4;
  }

  /* 8 */

  .voice-list li:nth-child(5) {
    grid-column: 1;
    grid-row: 5;
  }

  /* 4 */

}

.sos {
  padding-bottom: 50px;
}

.sos h4 {
  font-size: 2em;
  font-weight: 800;
  padding: 50px 0 0;
}

.sos-bg {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 90px;
  background-color: #e8e8e8;
  border-radius: 20px;
  padding: 15px 20px;
  margin-top: 20px;
}

.sos-row {
  display: flex;
  justify-content: space-between;
  /* 三點平均分佈 */
  align-items: flex-start;
  padding: 0 15px;
}

.sos-item {
  display: flex;
  flex-direction: column;
  /* 上下排列：標題+電話 */
  align-items: left;
  /* 水平置中對齊每個項目 */
}

.sos-item .title::before {
  content: "● ";
  color: #000;
  font-weight: bold;
  font-size: 0.3em;
  margin-right: 4px;
  vertical-align: middle;
}

.sos-item .title {
  font-size: 1.5em;
  font-weight: 400;
  letter-spacing: 1px;
  color: #000;
  margin: 0;
}

.sos-item .phone {
  font-size: 1.75em;
  font-weight: 700;
  margin: 4px 0 0 10px;
  color: #2a3479;
}

.blue-text-2 {
  font-size: 0.85em;
  font-weight: 700;
  margin: 4px 0 0 3px;
  color: #2a3479;
}

@media screen and (max-width: 768px) {
  .sos-bg {
    height: auto;
  }

  .sos-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .sos-item .phone {
    font-size: 2em;
    margin: 0 0 0 10px;
  }
}

@media screen and (max-width: 450px) {
  .sos-item .phone {
    font-size: 1.8em;
    margin: 0 0 0 10px;
  }

}

.footer-top {
  width: 100%;
  height: 80px;
  background-color: #eaf7ff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.footer-top a {
  display: flex;
  font-size: 1.66em;
  font-weight: 700;
  color: #2a3479;
  align-items: center;
  gap: 6px;
}

.footer-top img {
  width: 21px;
  height: 23px;
  object-fit: contain;
}

.footer-btm {
  width: 100%;
  margin: 0 auto;
  height: auto;
  background-color: #222c76;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.footer-nav {
  max-width: 1200px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  /* 去掉 ul 點點 */
  margin: 0;
  padding: 0;
}

.footer-nav li {
  position: relative;
  /* 偽元素定位用 */
  padding-left: 10px;
  /* 給分隔線留空間 */
  display: flex;
  align-items: center;
}

.footer-nav li::before {
  content: "";
  width: 1px;
  height: 15px;
  /* 可調整線長 */
  background-color: rgba(255, 255, 255, 1);
  margin-right: 15px;
  /* 線與文字間距 */
}

.footer-nav li:first-child::before {
  content: none;
  /* 第一個不顯示線 */
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 1.4em;
  font-weight: 500;
}

.footer-nav a:hover {
  color: #b9bdd8;
}

.footer-end {
  width: 100%;
  background-color: #222c76;
}

.footer-end-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px 30px;
  gap: 10px;
}

.footer-end .info {
  display: flex;
  gap: 30px;
}

.footer-end .info p {
  font-size: 1.3em;
  font-weight: 400;
  color: white;
}

.footer-end address {
  font-size: 1.2em;
  font-weight: 400;
  color: white;
  font-style: normal;
  /* 預設會斜體，這裡關掉 */
  margin: 0 0 5px 0;
}

address a {
  display: inline-flex;
  align-items: center;
  /* 垂直置中 */
  gap: 4px;
  /* 文字與 icon 間距 */
}

.map-icon {
  width: 20px;
  height: 20px;
}

.footer-end ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  /* 去掉 ul 點點 */
  margin: 0;
  padding: 0;
}

.icon a img {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.icon a:hover img {
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .footer-end .info {
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
  }

  .footer-end address {
    font-size: 1.5em;
    letter-spacing: 1px;
  }

  .footer-end .info p {
    font-size: 1.4em;
    letter-spacing: 1px;
  }

  .footer-end ul {
    margin: 10px;

  }

}

@media screen and (max-width: 375px) {
  .footer-end address {
    font-size: 1.3em;
    letter-spacing: 1px;
  }

  .footer-end .info p {
    font-size: 1.2em;
    letter-spacing: 1px;
  }

}

.step3 {
  width: 100%;
  min-height: 100vh;
  background-image: url(../images/step3_p_bg.png);
  background-color: #d6efff;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding-top: 110px;
  overflow: hidden;
}


.step3-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 0;
}

.step3-queue-panel {
  position: relative;
  width: 100%;
  max-width: 335px;
  height: 150px;
  margin: 15px auto 30px;
  display: flex;
  justify-content: space-around;
  background-color: #ededed;
  border-radius: 20px;
  padding: 20px 0;
  border: 2px solid #ffffff;
  box-shadow: 5px 4px 10px rgba(0, 0, 0, 0.15);
}

.step3-queue-panel::after {
  content: "";
  position: absolute;
  height: 100px;
  /* 線高 */
  top: 50%;
  /* 垂直置中 */
  left: 50%;
  /* 水平置中 */
  width: 1px;
  /* 線寬 */
  background-color: #000;
  transform: translate(-50%, -50%);
  /* 精準水平+垂直置中 */
}

h5 {
  font-size: 5em;
  font-weight: 900;
  color: #2a3479;
  letter-spacing: 6px;
  text-align: center;
}

.btn6 {
  width: 350px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px auto 0;
  padding-bottom: 10px;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: #2a3479;
  color: white;
  gap: 8px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  /* 內陰影 */
  box-shadow: inset 0 -8px 0px rgba(49, 102, 182, 1);
  transform: translateY(0);
  /* 初始位置 */
  transition: all 0.2s ease;
  /* 加入動畫 */
}

.btn6 img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  margin: 3px 0 0;
}

.btn6 img,
.btn6 span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn6:hover img,
.btn6:hover span {
  transform: translateY(4px);
  /* 文字與圖標往下移 */
}

.btn6:hover {
  background-color: #467ccf;
  box-shadow: inset 0 0px 0px rgba(49, 102, 182, 1);
  transform: translateY(1px);
}

.step3-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 635px;
  margin: 0 auto;
}

.QR-CODE {
  width: 67px;
  height: 67px;
}

.step3-box .QR-CODE-text {
  font-size: 1.5em;
  color: #0071bc;
}

.step3-pic {
  width: 100%;
  /* 或設定固定寬度 */
  max-width: 593px;
  /* RWD 自適應 */
  height: auto;
  display: block;
  /* 保證水平置中 */
}

.step3-other {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin-top: 15px;
}

.step3-other p {
  padding: 20px 18px 10px 0;
  font-size: 2em;
  letter-spacing: 1px;
  font-weight: 400;
  color: #000;
  margin: 0;
  /* 移除預設 margin */
}

.step3-other .red-text {
  font-size: 1.2em;
  letter-spacing: 1px;
  font-weight: 800;
  color: #e65398;
  margin: 0;
  /* 移除預設 margin */
}

.step3-other .blue-text-1 {
  font-size: 1.2em;
  letter-spacing: 1px;
  font-weight: 800;
  color: #2a3479;
  margin: 0;
  /* 移除預設 margin */
}

.step3-other img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  /* 確保不變形 */
  margin: 16px 0 0;
}

.step3-button-row {
  width: 100%;
  max-width: 950px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px auto 80px;
}

.step3-btn1,
.step3-btn2 {
  width: 100%;
  max-width: 460px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 1px;
  background-color: #7cbeea;
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  box-sizing: border-box;
}

.step3-btn1 img,
.step3-btn2 img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.step3-btn1:hover,
.step3-btn2:hover {
  background-color: rgb(108, 163, 214);
  box-shadow: inset 0 0px 0px rgba(49, 102, 182, 1);
  transform: translateY(1px);
}

.footer-step3 {
  width: 100%;
  padding: 20px;
  display: block;
  justify-content: center;
  /* 水平置中 */
  align-items: center;
  /* 垂直置中，如果需要 */
  background-color: #222c76;
}

.footer-step3 p {
  margin: 0;
  /* 清除預設 margin */
  font-size: 1.3em;
  font-weight: 400;
  color: white;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .step3 {
    padding-top: 70px;
  }

  .step3-container {
    padding: 0 20px;
    background-color: #e6f5ff;
  }

  .step3-queue-panel {
    width: 100%;
    max-width: 100%;
    margin: 25px auto 30px;
  }

  .step3-pic {
    max-width: 90%;
    margin-top: 20px;
  }

  .step3-box .QR-CODE-text {
    font-size: 1.6em;
  }

  .step3-btn1 img,
  .step3-btn2 img {
    width: 120px;
    /* 調整圖標大小 */
    height: 120px;
    object-fit: contain;
  }

}

@media screen and (max-width: 600px) {
  .step3-button-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .step3-btn1,
  .step3-btn2 {
    width: 100%;
    max-width: 600px;
    height: 300px;
  }
}

.step4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #d7efff;
  background-size: cover;
  padding: 110px 0 15px 0;
  min-height: 100vh;
}

.step4-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
}

.step4-item-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step4-item {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.speak {
  width: 19px;
  height: 16px;
}

.step4-box .step4-text {
  font-size: 1.5em;
  color: #000000;
}

.keyboard {
  width: 18px;
  height: 18px;
}

.step4-phone {
  margin: 50px auto;
  position: relative;
  width: 314px;
  /* 手機圖寬度 */
  height: 615px;
  /* 手機圖高度 */
  background-image: url('../images/step4-phone.png');
  background-size: cover;
  background-position: center;
}

.phone-screen {
  position: absolute;
  top: 13%;
  /* 改百分比 */
  left: 12%;
  width: 76%;
  height: 7%;
  background-color: #fff;
  border-radius: 5px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: normal;
  font-size: 1.75em;
  color: #000;
  overflow: hidden;
}

.phone-keys {
  position: absolute;
  bottom: 18%;
  /* 相對手機底部 */
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  /* 按鍵寬度用比例 */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4%;
}

.phone-keys button {
  border: none;
  background: none;
  padding: 0;
  width: 100%;
  display: flex;
  /* 置中圖片 */
  justify-content: center;
  align-items: center;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  /* 保持正方形 */
}


.phone-keys button img {
  max-width: 100%;
  max-height: 100%;
}

.phone-keys button[data-action="hangup"] {
  grid-column: span 3;
  /* 橫跨三欄 */
  justify-self: center;
  /* 在 grid 裡置中 */
  width: 30%;
}

.footer-step4 {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  /* 水平置中 */
  align-items: center;
  /* 垂直置中，如果需要 */
  background-color: #222c76;
}

.footer-step4 p {
  margin: 0;
  /* 清除預設 margin */
  font-size: 1.3em;
  font-weight: 400;
  color: white;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .step4 {
    padding: 110px 0 10px 0;
  }

  .step4-wrap {
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
  }

  .step4-box .step4-text {
    font-size: 1.6em;
  }

  .phone-screen {
    height: 60px;
    font-size: 1.9em;
  }

  .footer-step3 p,
  .footer-step4 p {
    font-size: 1.5em;
  }

}

@media screen and (max-width: 450px) {
  .step4-item {
    align-items: flex-start;
  }

  .step4-item img {
    margin: 6px 0;
  }

  .step4-phone {
    width: 95%;
    /* 讓它佔滿螢幕大部分 */
    max-width: 380px;
    height: auto;
    /* 自動依比例算高度 */
    aspect-ratio: 314 / 615;
  }

  .phone-screen {
    top: 13%;
    left: 12%;
    width: 76%;
    height: 7%;
  }

  .phone-keys {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;
    max-width: 320px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4%;
  }

}


.step3,
.footer-step3 {
  display: block;
  /* 初始隱藏 */
}