@font-face {
  font-family: "Noto Serif TC";
  src: url("../fonts/NotoSerifTC.ttf") format("truetype");
  font-style: normal;
}

:root {
  --color-primary: #2b4593;
  --color-secondary: #008b8b;
}

body {
  font-family: "Noto Serif TC";
  color: #000;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: justify;
  text-align-last: left;
  line-height: 2;
}

li {
  display: flex;
  align-items: center;
}

a {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.divider {
  width: 90vw;
  max-width: 1200px;
  height: 1px;
  background-color: #eee;
  border: none;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  width: 100vw;
  gap: 200px;
}

.container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90vw;
  max-width: 1200px;
}

/* ---------- rootpage header ---------- */
header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  position: fixed;
  z-index: 1000;
  font-size: 16px;
  padding: 20px 0 0 0;
  color: var(--color-primary);
  font-weight: 700;
}

.nav__desktop {
  width: 90%;
  max-width: 1200px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;

  border-radius: 5px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px #e2e2e2 solid;
  padding: 0 30px;
  border-radius: 5px;
}

.nav__desktop ul {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
}

.nav__desktop ul li {
  transition: 0.6s;
}

.nav__desktop ul li:hover {
}

.nav__desktop ul:first-of-type {
  width: 30%;
  justify-content: flex-start;
}

.nav__desktop ul:last-of-type {
  width: 30%;
  justify-content: flex-end;
}

.nav__desktop-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
  height: 100%;
}

.nav__desktop-logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav__desktop-logo img {
  height: 70px;
}

.nav__responsive {
  display: none;
}

@media (max-width: 1024px) {
  header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position: fixed;
    z-index: 1000;
    font-size: 16px;
    padding: 0 0 0 0;
    color: var(--color-primary);
    font-weight: 700;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav__desktop {
    display: none;
  }

  .nav__responsive {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 100%;
  }

  .nav__responsive-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 90%;
  }

  .nav__responsive-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .nav__responsive-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .nav__responsive-logo img {
    height: 50px;
  }

  .nav__responsive-dropmenu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    width: 80%;
    padding: 40px 0 60px 0;
    gap: 10px;
  }

  .nav__responsive-menutoggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }
}

#rootpage .banner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 700px;
  background-image: url(../images/banner_3.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

#rootpage .banner-product {
  background-image: url(../images/banner_3.png);
}

#rootpage .banner-contact {
  background-image: url(../images/banner_3.png);
}

#rootpage .banner-info {
  background-image: url(../images/banner_3.png);
}

#rootpage .banner__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90vw;
  max-width: 1200px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px #e2e2e2 solid;
  padding: 30px;
  gap: 50px;
}

#rootpage .banner__content img {
  min-width: 250px;
  max-width: 400px;
  width: 80vw;
  border-radius: 5px;
}

#rootpage .banner__content-text h1 {
  border-radius: 5px;
  color: #fff;
  font-weight: 900;
}

#rootpage .banner__content-text a {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  font-weight: 900;
  padding: 5px 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 10px;
}

#rootpage .banner__content-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 20px;
  width: 90vw;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  padding: 0 30px;
}

#rootpage .banner-info .banner__content-text {
  gap: 5px;
}

@media (max-width: 1024px) {
  #rootpage .banner {
    height: 1200px;
  }

  #rootpage .banner__content {
    display: flex;
    flex-direction: column;
  }
}

.card {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.card .card__text ul {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 30px;
}

.card .card__text ul li {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px #e2e2e2 solid;
  font-weight: 700;
  color: #333;
}

.card-row {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  flex-direction: row-reverse;
  gap: 50px;
}

.card-bg {
  width: 90vw;
  max-width: 1200px;
  display: flex;
  gap: 50px;
  overflow: hidden;
  border-radius: 5px;
  min-height: 700px;
  position: relative;
  padding: 30px;
}

.card-bg img {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
}

.card-bg .card__text {
  padding: 30px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px #e2e2e2 solid;
  color: var(--color-secondary);
}

.card-bg .card__text a {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  font-weight: 900;
  padding: 5px 30px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.card__image img {
  width: 90vw;
  max-width: 500px;
  min-width: 300px;
  border-radius: 5px;
}

.card__text {
  display: flex;
  flex-direction: column;
}

.card__text h2 {
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
  position: relative;
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 700;
  padding: 0 0 5px 0;
  margin: 0 0 30px 0;
}

.card__text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; /* 貼齊文字底部 */
  width: 100%;
  height: 3px; /* 下底線厚度可調 */
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(0, 139, 139, 1) 0%,
    rgba(0, 139, 139, 0.8) 40%,
    rgba(0, 139, 139, 0) 100%
  );
}

@media (max-width: 1024px) {
  .card {
    width: 90vw;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 70px;
  }

  .card-row {
    width: 90vw;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 70px;
  }
}

.image-wall-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  box-sizing: border-box;
  gap: 30px;
}

.image-wall-title {
  text-align: left;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.image-wall-text {
  width: 100%;
  background: #f9f9f6;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 30px;
  padding: 30px;
  border-radius: 5px;
  border: 1px #e2e2e2 solid;
  font-weight: 900;
  color: #333;
}

.image-wall {
  column-count: 3;
  column-gap: 1rem;
}

.image-wall img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  border-radius: 4px;
  break-inside: avoid;
}

@media (max-width: 900px) {
  .image-wall {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .image-wall {
    column-count: 1;
  }
}

#plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  width: 90vw;
  max-width: 1200px;
  padding: 50px 0;
}

.plan__container {
  flex: 1 1 300px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.plan__package {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.plan__package h2 {
  font-size: 24px;
  color: var(--color-secondary);
  margin: 0;
}

.plan__package h4 {
  font-size: 22px;
  color: var(--color-primary);
  margin: 8px 0 24px;
}

.plan__list {
  list-style-type: disc;
  list-style-position: inside;
  padding: 24px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #ffffff;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  background: #fbfbfb;
}

.plan__list li {
  display: list-item;
  margin: 12px 0;
  color: #444;
  font-size: 15px;
}

.plan__list li::marker {
  color: var(--color-primary);
}

.subtext {
  font-size: 12px;
  color: #999;
}

/* ✅ 手機 RWD：讓內容更緊湊 */
@media screen and (max-width: 600px) {
  .plan__list {
    padding: 16px;
  }

  .plan__list li {
    font-size: 15px;
    margin: 10px 0;
  }

  .plan__package h2,
  .plan__package h4 {
    font-size: 20px;
  }
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0 0 10px 0;
  font-size: 14px;
  width: 100%;
  margin: 100px 0 0 0;
  background: #f5f5f5;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  width: 90vw;
  max-width: 1200px;
  margin: 60px 0 0 0;
}

.footer__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1 1 calc(33% - 20px);
  min-width: 200px;
  gap: 10px;
  padding: 20px 0;
  border-radius: 4px;
  box-sizing: border-box;
}

.footer__box h4 {
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.footer__box h3 {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 700;
}

.footer__copyright {
  text-align: center;
  font-size: 12px;
  color: #333;
  margin-top: 20px;
}

.footer__icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin: 80px 0;
}

@media (max-width: 1024px) {
  .footer__box {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  .footer__box {
    flex: 1 1 100%;
  }
}
