@font-face {
  font-family: "LiSu";
  src: url("/static/fonts/隸書.woff") format("woff");
}

/* 聯繫頁設計令牌 */
:root {
  --contact-red: #ff0000;
  --contact-red-dark: #c6000f;
  --contact-text: #333333;
  --contact-radius: 8px;
}

body{
  overflow-x: hidden;
}

.pageContain{
  background-color: #fff;
}

/* 留出固定導航高度 */
.contact-page {
  /* padding-top: 64px; */
  background-color: #F8F8F9;
}

/* 覆蓋 Header 為紅色主題（與首頁一致） */
.contact-page .site-header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.contact-page .site-header.scrolled {}

.contact-page .header-brand,
.contact-page .header-nav a,
.contact-page .lang-toggle,
.contact-page .header-hamburger span {}

.contact-page .header-nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.contact-page .lang-toggle {
  border-color: rgba(255, 255, 255, 0.5);
}

/* 加載占位 */
#appLoading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--contact-red);
  font-size: 1.25rem;
  z-index: 9999;
}

/* Hero 橫幅 */
.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  color: #ffffff;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.15) 100%);
}

.contact-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 24px;
}

.contact-hero__en {
  display: inline-block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.contact-hero p {
  margin-top: 16px;
  font-size: 1.1rem;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 280px;
  }

  .contact-hero h1 {
    font-size: 1.75rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }
}


@keyframes fadeIn {
  0%{opacity: 0;}
  100%{opacity: 1;}
}
.fade-in{
  animation: fadeIn 1.8s ease forwards;
}

.img-max {
  display: block;
  width: 100%;
  height: 100%;
  animation: fadeIn 2s ease forwards;
}

.img-center {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.img-inline {
  display: inline-block;
  vertical-align: middle;
  width: 100%;
  height: auto;
}

.globalImgPreview{
  box-shadow: none !important;
  background-color:transparent !important;
}

.LiSuFontFamily{
  font-family: "LiSu", serif;
}

.YaHeiFontFamily{
  font-family: "Microsoft YaHei";
}

.word-ellipsis3 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  word-break: break-word;
}

.word-ellipsis2 {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  word-break: break-word;
}
