* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  background: #fff2de;
}

/* =========================
   Header
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 92px;
  background: #fff;
  z-index: 1000;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.08);

}

.header-inner {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 200px;
  display: block;
}

/* Desktop 選單 */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 92px;
  color: #000;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.desktop-nav a:hover {
  color: #f15a24;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 3px;
  background: #f15a24;
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.desktop-nav a.active {
  color: #f15a24;
}

.desktop-nav a.active::after {
  transform: scaleX(1);
}

/* Mobile 漢堡：Desktop 隱藏 */
.hamburger {
  display: none;
  width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 42px;
  height: 4px;
  margin: 6px 0;
  background: #f15a24;
  border-radius: 4px;
}

/* =========================
   Drawer
========================= */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  z-index: 1100;
  transition: 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100vh;
  padding: 80px 28px 28px;
  background: #fff;
  z-index: 1200;
  transition: left 0.3s ease;
}

.drawer.active {
  left: 0;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  font-size: 38px;
  cursor: pointer;
}

.drawer-nav a {
  display: block;
  padding: 18px 0;
  color: #000;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px solid #ddd;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  color: #f15a24;
}

/* =========================
   Layout
========================= */

main {
  padding-top: 92px;
}

.anchor-section {
  scroll-margin-top: 92px;
}

.hero {}

.pc1 {
  width: 100%;
}

.phone1 {
  width: 100%;
  display: none;
}

.section {
  max-width: 1360px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 34px;
  text-align: center;
  font-size: 45px;
}

/* =========================
   活動辦法
========================= */

.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 0 30px;
}

.task1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.task1 button {
  width: 130px;
  height: 50px;
  border: solid 2px #000;
  border-radius: 100px;
  background: #df5715;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
  margin-bottom: 16px;
}

.pcphone2,
.pcphone3 {
  width: 100%;
  padding: 20px 0;
}

.note {
  margin: 20px 0;
  font-size: 18px;
  line-height: 1.2;
  padding: 0 35px;
}

.note h3 {
  margin: 0 0 10px;
  font-size: 30px;
}

.note ol {
  padding-left: 28px;
  font-size: 16px;
}

/* =========================
   資格查詢
========================= */

.query-section {
  padding-top: 22px;
}

.query-box {
  width: 100%;
  min-height: 140px;
  margin-bottom: 42px;
  padding: 36px;
  background: #ffc400;
  border: 4px solid #000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.query-box label {
  font-size: 24px;
}

.query-box input {
  width: 280px;
  height: 54px;
  padding: 0 8px;
  border: 3px solid #000;
  font-size: 24px;
  border-radius: 6px;
}

.query-box button {
  width: 120px;
  height: 60px;
  border: 0;
  border-radius: 100px;
  background: #000;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 4px;
}

.result {
  margin: 0 10px;
}

.pcresult1,
.pcresult2 {
  width: 100%;
  display: block;

}

.phoneresult1,
.phoneresult2 {
  display: none;

}


/* =========================
   注意事項
========================= */

.notice-section {
  padding: 60px 35px;
}

.notice-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.08);
}

.notice-title {
  width: 100%;
  height: 72px;
  border: none;
  outline: none;
  cursor: pointer;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.25s ease;
}

.notice-title:hover,
.notice-title.active {
  background: #111;
}

.notice-arrow {
  width: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  line-height: 1;
}

.notice-content {
  display: none;
  padding: 32px 40px;
  background: #fff;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 500;
}

.notice-content.active {
  display: block;
}

.notice-content p {
  margin: 0 0 14px;
}

/* =========================
   Footer
========================= */

.footer {
  width: 100%;
  background: #f4bd96;
}

.footer-container {
  max-width: 1360px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
}

.footer-top {
  display: flex;
  flex-direction: column;
}

.footer-bank {
  margin: 0 0 18px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.footer-links {
  display: flex;
  align-items: center;
}

.footer-link {
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;

  transition: color .25s ease;
}

.footer-link:hover {
  color: #f15a24;
}

.footer-divider {
  margin: 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.footer-service {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

/* =========================
   Mobile
========================= */



@media (max-width: 768px) {
  .header {
    height: 76px;
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.06),
      0 10px 24px rgba(0, 0, 0, 0.08);
  }

  .header-inner {
    padding: 0 30px;
  }

  .logo {
    width: 170px;
  }

  /* Mobile 隱藏 Desktop 選單 */
  .desktop-nav {
    display: none;
  }

  /* Mobile 才顯示漢堡 */
  .hamburger {
    display: block;
  }

  main {
    padding-top: 76px;

    .pcphone2,
    .pcphone3 {
      width: 100%;
      padding-bottom: 30px;
    }

  }

  .anchor-section {
    scroll-margin-top: 76px;
  }

  .hero {}

  .pc1 {
    width: 100%;
    display: none;
  }

  .phone1 {
    width: 100%;
    display: block;
  }

  .pcphone2,
  .pcphone3 {
    width: 100%;
    display: block;
  }


  .section {
    width: 100%;
  }

  h2 {
    padding-top: 30px;
    margin-bottom: 22px;
    font-size: 36px;
  }

  .rules-grid {
    display: block;
    margin: 0 30px;
  }

  .task1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .task1 button {
    width: 150px;
    height: 60px;
    border: solid 3px #000;
    border-radius: 100px;
    background: #df5715;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    margin-bottom: 16px;
  }


  .note {
    padding: 0 35px;
    font-size: 16px;
    line-height: 1.2;

  }

  .note h3 {
    font-size: 20px;
  }

  .query-box {
    width: calc(100% - 56px);
    min-height: 70px;
    margin: 0 auto 20px;
    padding: 26px;
    border-width: 3px;
    border-radius: 8px;
    gap: 10px;
  }

  .query-box label {
    font-size: 22px;
    white-space: nowrap;
  }

  .query-box input {
    width: 200px;
    height: 42px;
    font-size: 20px;
    border-width: 2px;
    border-radius: 6px;
  }

  .query-box button {
    width: 100px;
    height: 42px;
    font-size: 20px;
    padding: 0 4px;
  }

  .pcresult1,
  .pcresult2 {
    display: none;
  }

  .phoneresult1,
  .phoneresult2 {
    width: 100%;
    padding: 0 20px 20px;
    display: block;

  }

  .notice-section {
    padding: 30px 28px 46px;
  }

  .notice-title {
    height: 56px;
    font-size: 18px;
  }

  .notice-arrow {
    font-size: 13px;
  }

  .notice-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
  }

  .footer {
    padding: 0 20px;
  }

  .footer-container {
    height: 220px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .footer-bank {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .footer-links {
    justify-content: center;
    margin-bottom: 14px;
  }

  .footer-link,
  .footer-divider {
    font-size: 18px;
  }

  .footer-service {
    font-size: 16px;
    line-height: 1.5;
  }

}

@media (max-width: 550px) {

  .phoneresult1,
  .phoneresult2 {
    width: 100%;
    padding: 0 20px 20px;
    display: block;
  }

  .pcphone2,
  .pcphone3 {
    width: 100%;
    padding-bottom: 20px;
  }

  .query-box label {
    font-size: 16px;
    white-space: nowrap;
  }

  .query-box input {
    width: 130px;
    height: 54px;
    padding: 0 12px;
    border: 3px solid #000;
    font-size: 16px;
    border-radius: 6px;
  }

  .query-box button {
    width: 80px;
    height: 50px;
    border: 0;
    border-radius: 20px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
  }


}

@media (max-width: 486px) {


  .task1 {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .task1 button {
    width: 120px;
    height: 40px;
    border: solid 2px #000;
    border-radius: 100px;
    background: #df5715;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
    margin-bottom: 16px;
  }

  .query-box {
    width: calc(100% - 56px);
    min-height: 70px;
    margin: 0 auto 20px;
    padding: 26px;
    border-width: 3px;
    border-radius: 8px;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .phoneresult1,
  .phoneresult2 {
    width: 100%;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
  }

  .pcphone2,
  .pcphone3 {
    width: 100%;
    padding-bottom: 20px;
  }

  .query-box label {
    font-size: 16px;
    white-space: nowrap;
  }

  .query-box input {
    width: 100%;
    height: 54px;
    padding: 0 12px;
    border: 3px solid #000;
    font-size: 16px;
    border-radius: 6px;
  }

  .query-box button {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 20px;
    background: #000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
  }

}

@media (max-width: 320px) {

  .phoneresult1,
  .phoneresult2 {
    width: 100%;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
  }

  .pcphone2,
  .pcphone3 {
    width: 100%;
    padding-bottom: 20px;
  }

  .note {
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.2;
  }

  .note h3 {
    margin: 0 0 10px;
    font-size: 16px;
  }

  .note ol {
    font-size: 12px;
  }

  h2 {
    padding-top: 30px;
    margin-bottom: 16px;
    font-size: 28px;
  }

}