.elementor-11825 .elementor-element.elementor-element-9f5a969{width:var( --container-widget-width, 100.533% );max-width:100.533%;--container-widget-width:100.533%;--container-widget-flex-grow:0;}/* Start custom CSS for html, class: .elementor-element-9f5a969 *//* ==========================================================================
   專屬自訂登陸頁樣式（加上範圍限制，避免污染 WordPress 全站）
   使用方法：請在該頁面的最外層 HTML 容器（或 Elementor 區段）加上 class "my-custom-landing"
   ========================================================================== */

.my-custom-landing {
  /* 轉移原本 root 的變數到此範圍內 */
  color-scheme: light;
  --ink: #18202a;
  --muted: #5e6a73;
  --paper: #fffaf1;
  --cream: #fff4d6;
  --gold: #f5b83d;
  --orange: #f26b35;
  --blue: #1f5bb8;
  --green: #136f63;
  --shadow: 0 24px 60px rgba(24, 32, 42, 0.18);

  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* 將原本 body 的背景移到這個容器上 */
  background: 
    radial-gradient(circle at top left, rgba(245, 184, 61, 0.28), transparent 32rem),
    linear-gradient(180deg, #fff7e2 0%, #f7fbf1 42%, #fffaf1 100%);
}

/* 僅在此區塊內維持特定的盒模型與平滑滾動 */
.my-custom-landing,
.my-custom-landing * {
  box-sizing: border-box;
}

/* 僅限制此區塊內的基礎標籤 */
.my-custom-landing img {
  display: block;
  max-width: 100%;
  height: auto;
}

.my-custom-landing a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   頁首與導覽列 (Site Header)
   ========================================================================== */
.my-custom-landing .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* 提高 z-index 確保在 WordPress 管理工具列下方或主題上方 */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 22, 35, 0.72), rgba(8, 22, 35, 0));
}

/* 修正 WordPress 管理員登入時，上方主選單會被擋住的問題 */
body.logged-in .my-custom-landing .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.logged-in .my-custom-landing .site-header {
    top: 46px;
  }
}

.my-custom-landing .brand,
.my-custom-landing .nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.my-custom-landing .brand {
  font-weight: 800;
}

.my-custom-landing .brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: #101820;
  background: var(--gold);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.my-custom-landing .nav-links a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

/* ==========================================================================
   大型主圖區 (Hero Section)
   ========================================================================== */
.my-custom-landing .hero {
  position: relative;
  min-height: 96vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 9rem clamp(1.25rem, 5vw, 5rem) 3rem;
  color: #fff;
  background: #102018;
}

.my-custom-landing .hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 22, 28, 0.82) 0%, rgba(10, 22, 28, 0.4) 48%, rgba(10, 22, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 22, 28, 0.74) 0%, rgba(10, 22, 28, 0) 46%),
    url("https://mis.nchu.edu.tw/wp-content/uploads/2026/06/040A7810.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.my-custom-landing .hero-content,
.my-custom-landing .hero-strip {
  position: relative;
  z-index: 1;
}

.my-custom-landing .hero-content {
  max-width: 58rem;
}

.my-custom-landing .eyebrow {
  margin: 0 0 0.8rem;
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.my-custom-landing .hero .eyebrow {
  color: #ffd36f;
}

.my-custom-landing h1,
.my-custom-landing h2,
.my-custom-landing h3,
.my-custom-landing p {
  overflow-wrap: anywhere;
}

.my-custom-landing h1 {
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  line-height: 1.03;
  font-weight: 950;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.my-custom-landing .subtitle {
  margin: 1.2rem 0 0;
  font-size: clamp(1.45rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: #fff3d1;
}

/* 按鈕樣式加強前綴避免衝突 */
.my-custom-landing .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.my-custom-landing .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.my-custom-landing .button:hover {
  transform: translateY(-2px);
}

.my-custom-landing .button.primary {
  color: #111820;
  background: var(--gold);
  box-shadow: 0 14px 30px rgba(245, 184, 61, 0.34);
}

.my-custom-landing .button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.my-custom-landing .hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 44rem;
  margin-top: 5rem;
}

.my-custom-landing .hero-strip span {
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

/* ==========================================================================
   主要內文與網格區塊 (Sections)
   ========================================================================== */
.my-custom-landing .section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.my-custom-landing .intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.my-custom-landing .section-heading h2,
.my-custom-landing .story-text h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.25rem);
  line-height: 1.08;
  font-weight: 950;
  text-wrap: balance;
}

.my-custom-landing .intro-copy,
.my-custom-landing .story-text p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.9;
}

.my-custom-landing .moment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.my-custom-landing .moment-card {
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.my-custom-landing .moment-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.my-custom-landing .moment-card div {
  padding: 1.25rem;
}

.my-custom-landing .moment-card span {
  color: var(--blue);
  font-weight: 950;
}

.my-custom-landing .moment-card h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: 1.3rem;
}

.my-custom-landing .moment-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   故事橫條與相片牆 (Story Band & Photos)
   ========================================================================== */
.my-custom-landing .story-band {
  display: grid;
  grid-template-columns: minmax(19rem, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 5rem);
  color: #fff;
  background: linear-gradient(135deg, #123f3a, #1e5c9f 56%, #f26b35);
}

.my-custom-landing .story-text p {
  color: rgba(255, 255, 255, 0.82);
  margin-top: 1.2rem;
}

.my-custom-landing .story-band .eyebrow {
  color: #ffd36f;
}

.my-custom-landing .story-photos {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 7.5rem;
  gap: 0.75rem;
}

.my-custom-landing .story-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.my-custom-landing .story-photos img:nth-child(1) { grid-column: 1 / 6; grid-row: 1 / 3; }
.my-custom-landing .story-photos img:nth-child(2) { grid-column: 5 / 9; grid-row: 2 / 4; }
.my-custom-landing .story-photos img:nth-child(3) { grid-column: 2 / 5; grid-row: 3 / 5; }

/* ==========================================================================
   畫廊區塊 (Gallery)
   ========================================================================== */
.my-custom-landing .gallery-section {
  padding-bottom: 5rem;
}

.my-custom-landing .gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 13rem;
  gap: 0.85rem;
  margin-top: 2rem;
}

.my-custom-landing .photo-tile {
  appearance: none;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: #dbe7d8;
  cursor: zoom-in;
  box-shadow: 0 12px 32px rgba(24, 32, 42, 0.14);
}

.my-custom-landing .photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.my-custom-landing .photo-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.12);
}

.my-custom-landing .photo-tile.wide { grid-column: span 2; }
.my-custom-landing .photo-tile.tall { grid-row: span 2; }

/* ==========================================================================
   頁尾與燈箱 (Footer & Lightbox)
   ========================================================================== */
.my-custom-landing .footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: #101820;
}

.my-custom-landing .footer p { margin: 0; }
.my-custom-landing .footer a { color: #ffd36f; font-weight: 900; }

.my-custom-landing .lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999; /* 確保燈箱在最上層 */
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 13, 18, 0.88);
}

.my-custom-landing .lightbox.is-open {
  display: grid;
}

.my-custom-landing .lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  border-radius: 0.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
}

.my-custom-landing .lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #101820;
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ==========================================================================
   響應式設計斷點修正 (Media Queries)
   ========================================================================== */
@media (max-width: 820px) {
  .my-custom-landing .site-header {
    align-items: flex-start;
  }

  .my-custom-landing .nav-links {
    display: none;
  }

  .my-custom-landing .hero {
    min-height: 92vh;
    padding-top: 7rem;
  }

  .my-custom-landing .hero-backdrop {
    background:
      linear-gradient(0deg, rgba(10, 22, 28, 0.86) 0%, rgba(10, 22, 28, 0.36) 72%),
      url("https://mis.nchu.edu.tw/wp-content/uploads/2026/06/040A7810.jpg") center / cover no-repeat;
  }

  .my-custom-landing .hero-strip,
  .my-custom-landing .intro,
  .my-custom-landing .moment-grid,
  .my-custom-landing .story-band {
    grid-template-columns: 1fr;
  }

  .my-custom-landing .story-photos {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .my-custom-landing .story-photos img,
  .my-custom-landing .story-photos img:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .my-custom-landing .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 10rem;
  }

  .my-custom-landing .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .my-custom-landing .brand span:last-child {
    display: none;
  }

  .my-custom-landing .hero-strip,
  .my-custom-landing .gallery {
    grid-template-columns: 1fr;
  }

  .my-custom-landing .photo-tile.wide,
  .my-custom-landing .photo-tile.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}/* End custom CSS */