/* ============================================================
   basic-style token 已由 base.html 載入的 basic-style.css 提供
   此檔只包含本頁專屬樣式，請勿在此重複定義全站共用規則
   中英文樣式已合併，英文版特殊規則使用 html[lang="en"] 覆寫
   ============================================================ */
/* ── 標題與內容區塊 ─────────────────────────────────────────── */
.set-h1 {
  padding-top: 60px;
  margin-bottom: 1.5rem;
}

.set-cover {
  -o-object-fit: cover;
     object-fit: cover;
}

.set-contact-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

.set-contact-group .set-contactinfo {
  max-width: 30%;
  margin: 1rem;
  cursor: pointer;
  position: relative;
}

.set-contact-group .set-contactinfo img {
  width: 350px;
  height: 250px;
  border-radius: 10px;
  -webkit-filter: brightness(0.3);
          filter: brightness(0.3);
}

.set-contact-group .set-contactinfo p {
  text-align: center;
  position: absolute;
  top: 45%;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  margin: 0;
}

.set-contact-group .set-contactinfo p::after {
  position: absolute;
  content: "";
  top: 100%;
  left: 0;
  width: 100%;
  height: 3px;
  background: #eacd4e;
  -webkit-transform: scaleX(0);
          transform: scaleX(0);
  -webkit-transform-origin: center;
          transform-origin: center;
  -webkit-transition: -webkit-transform 0.5s;
  transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
  transition: transform 0.5s, -webkit-transform 0.5s;
}

.set-contact-group .set-contactinfo:hover img {
  -webkit-filter: brightness(0.4);
          filter: brightness(0.4);
}

.set-contact-group .set-contactinfo:hover p::after {
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
  -webkit-transform-origin: inherit;
          transform-origin: inherit;
}

.set-contact-detail {
  background-color: #fafafa;
  border-radius: 10px;
  margin: 1rem;
  padding: 2rem;
  display: none;
}

.set-contact-detail p {
  color: #000000;
  margin: 0;
  text-align: center;
}

.mobile-thumbnail {
  display: none;
  position: relative;
  margin-bottom: 1rem;
}

.mobile-ver {
  position: absolute;
  z-index: 2;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

.mobile-title {
  padding: 0 1rem 1rem 1rem;
  color: #eacd4e;
  font-size: 1rem;
  text-decoration: underline;
  margin: 0;
  line-height: 1.5;
}

.mobile-word-font {
  font-size: 14px;
  padding: 0 1rem;
  margin: 0;
  line-height: 1.8;
}

.mobile-thumbnail-img {
  -webkit-filter: brightness(0.2);
          filter: brightness(0.2);
  min-height: 230px;
  border-radius: 5px;
}

.mobile-touch {
  display: none;
  font-weight: bold;
  color: var(--color-accent-dark, #0d6fbb);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

/* ── 英文版覆寫 (html[lang="en"]) ─────────────────────────── */
html[lang="en"] .set-contact-group .set-contactinfo p {
  top: 35%;
}

html[lang="en"] .mobile-word-font {
  font-size: 12px;
}

html[lang="en"] .mobile-thumbnail-img {
  min-height: 320px;
}

@media (max-width: 1200px) {
  .set-contact-group {
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
  }
  .set-contact-group .set-contactinfo img {
    height: 180px;
  }
}

@media (max-width: 600px) {
  .set-h1 {
    padding-top: 35px;
    margin-bottom: 1rem;
  }
  .desktop-ver {
    display: none;
  }
  .mobile-thumbnail {
    display: block;
  }
  .mobile-touch {
    display: block;
  }
  .mobile-wrapper {
    overflow-x: auto;
  }
  .mobile-table-width {
    width: 1024px;
  }
  html[lang="en"] .set-contact-group .set-contactinfo img {
    height: 300px;
  }
}