@media (max-width: 991px) {
  /* 隐藏手机端内页顶部横幅大图 */
  .inner-container .mobile-banner-container {
    display: none !important;
  }

  /* 手机端首页画布全屏铺满，消除上下黑边 */
  body.page-homepage > canvas {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-width: 100vw !important;
    min-height: 100dvh !important;
    max-width: none !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  .page-homepage .mainContainer {
    min-height: 100dvh;
    height: 100dvh;
  }
}

.page-development-path .content-container .panel-body .content-list-item .opening-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin: 24px auto 0;
  box-sizing: border-box;
}

.page-development-path .content-container .panel-body .content-list-item .opening-images img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

/* 隱林苑·淵源頁：標題與欄目選單改為橫排 */
.lang-tc.page-objective.template-1 .menu-group .subtitle,
.lang-sc.page-objective.template-1 .menu-group .subtitle,
.lang-tc.page-development-path.template-1 .menu-group .subtitle,
.lang-sc.page-development-path.template-1 .menu-group .subtitle,
.lang-tc.page-ven-yin-yeung.template-1 .menu-group .subtitle,
.lang-sc.page-ven-yin-yeung.template-1 .menu-group .subtitle,
.lang-tc.page-abbess-message.template-1 .menu-group .subtitle,
.lang-sc.page-abbess-message.template-1 .menu-group .subtitle,
.lang-tc.page-objective.template-1 .menu-group .menu-list,
.lang-sc.page-objective.template-1 .menu-group .menu-list,
.lang-tc.page-development-path.template-1 .menu-group .menu-list,
.lang-sc.page-development-path.template-1 .menu-group .menu-list,
.lang-tc.page-ven-yin-yeung.template-1 .menu-group .menu-list,
.lang-sc.page-ven-yin-yeung.template-1 .menu-group .menu-list,
.lang-tc.page-abbess-message.template-1 .menu-group .menu-list,
.lang-sc.page-abbess-message.template-1 .menu-group .menu-list {
  direction: ltr !important;
  -ms-writing-mode: lr-tb !important;
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  letter-spacing: 0 !important;
  text-align: center !important;
}

.lang-tc.page-objective.template-1 .menu-group .subtitle,
.lang-sc.page-objective.template-1 .menu-group .subtitle,
.lang-tc.page-development-path.template-1 .menu-group .subtitle,
.lang-sc.page-development-path.template-1 .menu-group .subtitle,
.lang-tc.page-ven-yin-yeung.template-1 .menu-group .subtitle,
.lang-sc.page-ven-yin-yeung.template-1 .menu-group .subtitle,
.lang-tc.page-abbess-message.template-1 .menu-group .subtitle,
.lang-sc.page-abbess-message.template-1 .menu-group .subtitle {
  display: block;
  margin: 0 auto;
}

.lang-tc.page-objective.template-1 .menu-group .subtitle a,
.lang-sc.page-objective.template-1 .menu-group .subtitle a,
.lang-tc.page-development-path.template-1 .menu-group .subtitle a,
.lang-sc.page-development-path.template-1 .menu-group .subtitle a,
.lang-tc.page-ven-yin-yeung.template-1 .menu-group .subtitle a,
.lang-sc.page-ven-yin-yeung.template-1 .menu-group .subtitle a,
.lang-tc.page-abbess-message.template-1 .menu-group .subtitle a,
.lang-sc.page-abbess-message.template-1 .menu-group .subtitle a,
.lang-tc.page-objective.template-1 .menu-group .menu-list a,
.lang-sc.page-objective.template-1 .menu-group .menu-list a,
.lang-tc.page-development-path.template-1 .menu-group .menu-list a,
.lang-sc.page-development-path.template-1 .menu-group .menu-list a,
.lang-tc.page-ven-yin-yeung.template-1 .menu-group .menu-list a,
.lang-sc.page-ven-yin-yeung.template-1 .menu-group .menu-list a,
.lang-tc.page-abbess-message.template-1 .menu-group .menu-list a,
.lang-sc.page-abbess-message.template-1 .menu-group .menu-list a {
  letter-spacing: 0 !important;
}

.page-objective.template-1 .menu-group .menu-list,
.page-development-path.template-1 .menu-group .menu-list,
.page-ven-yin-yeung.template-1 .menu-group .menu-list,
.page-abbess-message.template-1 .menu-group .menu-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  width: 100%;
  overflow: visible;
  padding-top: 42px;
}

.page-objective.template-1 .menu-group .menu-list li,
.page-development-path.template-1 .menu-group .menu-list li,
.page-ven-yin-yeung.template-1 .menu-group .menu-list li,
.page-abbess-message.template-1 .menu-group .menu-list li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.page-objective.template-1 .menu-group .menu-list li a,
.page-development-path.template-1 .menu-group .menu-list li a,
.page-ven-yin-yeung.template-1 .menu-group .menu-list li a,
.page-abbess-message.template-1 .menu-group .menu-list li a {
  padding: 12px 34px;
}

.page-objective.template-1 .menu-group .menu-list li:after,
.page-development-path.template-1 .menu-group .menu-list li:after,
.page-ven-yin-yeung.template-1 .menu-group .menu-list li:after,
.page-abbess-message.template-1 .menu-group .menu-list li:after {
  height: 52px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 991px) {
  .page-objective.template-1 .menu-group .menu-list,
  .page-development-path.template-1 .menu-group .menu-list,
  .page-ven-yin-yeung.template-1 .menu-group .menu-list,
  .page-abbess-message.template-1 .menu-group .menu-list {
    padding-top: 16px;
  }

  .page-objective.template-1 .menu-group .menu-list li a,
  .page-development-path.template-1 .menu-group .menu-list li a,
  .page-ven-yin-yeung.template-1 .menu-group .menu-list li a,
  .page-abbess-message.template-1 .menu-group .menu-list li a {
    padding: 10px 18px;
  }

  .page-objective.template-1 .menu-group .menu-list li:before,
  .page-objective.template-1 .menu-group .menu-list li:after,
  .page-development-path.template-1 .menu-group .menu-list li:before,
  .page-development-path.template-1 .menu-group .menu-list li:after,
  .page-ven-yin-yeung.template-1 .menu-group .menu-list li:before,
  .page-ven-yin-yeung.template-1 .menu-group .menu-list li:after,
  .page-abbess-message.template-1 .menu-group .menu-list li:before,
  .page-abbess-message.template-1 .menu-group .menu-list li:after {
    height: 36px;
  }
}
