
/* custome CSS */
:root {
  --font-base: -apple-system, BlinkMacSystemFont, Noto Sans TC, "Segoe UI", Roboto, "Helvetica Neue", "PingFang TC", "SF Pro TC", Arial, sans-serif;
  --font-style: "Georgia", "Times New Roman", serif; /* 用來點綴的風格字體 */
  --font-hand: "Lucida Handwriting", cursive, "Avenir"; /* 用來點綴的風格字體 */
  --text-color: #171717;
  --secondary-color: #6e6e73;
  --line-height-base: 1.6;
  --letter-spacing-base: 0.012em;

  /* blue */
  --primary-blue: #0C2D48;       /* 深藍 – 導覽列、標題、主視覺 */
  --secondary-blue: #5CA9E9;     /* 天藍 – 點綴、強調文字 */

  /* green */
  --primary-green: #A2E1DB;      

  /* CTA 與亮點 */
  --accent-color: #FF6B35;        /* 橘紅 – 按鈕、行動引導 */
  --highlight-color: #FFD166;     /* 金黃 – 次要亮點、提醒區塊 */ 
}
  
 /* 漸層字 */
.gradient-blue-text {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-blue), var(--secondary-blue));
  background-size: 200%;
  background-position: left;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.3s ease;
  text-decoration: none;
}

.gradient-cheer-text {
  background: linear-gradient(to right, var(--secondary-blue), var(--primary-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-orange-text {
  background: linear-gradient(to right, var(--accent-color), var(--highlight-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

 /* 連結 hover */
.gradient-blue-text:hover {
  background-position: right;
  text-decoration: underline;
}


/* 全站預設字體 */
body {
  font-family: var(--font-base);
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: var(--letter-spacing-base);
  line-height: var(--line-height-base);
  word-break: break-word;
  font-display: swap;
}

/* 正文與列表 */
p, ol, ul {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.7rem;
  color: var(--secondary-color);
}

/* 所有標題使用無襯線系統字體 */
h1, h2, h3, h4, h5, h6, .title-font {
  font-family: var(--font-base);
  margin-bottom: 1em;
  font-weight: 700;
}

/* 強化指定常見區塊的字體一致性，bootstrap員生社訂有可能覆蓋掉 */
p, ol, ul,
.navbar-nav,
.custom-menu .nav-link,
.scroll-card,
.scroll-card .caption,
.scroll-card .emoji,
.formkit-form input,
.formkit-form textarea,
.formkit-form button,
.formkit-form label {
  font-family: var(--font-base) !important;
}


/* 點綴字體風格，例如名言、特色段落等 */
.font-style {
  font-family: var(--font-style);
}
.font-style-hand {
  font-family: var(--font-hand);
}

/* 畫重點，黃色螢光筆質感 */
.high-light {
  background: linear-gradient(transparent 76%, #fff3a0 76%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  border-radius: 3px;
  font-weight: 500;
  color: var(--bs-emphasis-color);
}

.lead {
  font-weight: 600;
}

/** article.php 頁面 複製網址出現badge提示 **/
.copy-wrapper {
  position: relative;
  display: inline-block;
}

.copy-badge {
  top: 100%; /* 緊貼在下方 */
  left: 50%; /* 向左 50% */
  margin-left: -50px; /* 假設 badge 寬度為 100px，可微調 */
  font-size: 0.75rem;
  pointer-events: none;
  white-space: nowrap;
  margin-top: 0rem;
  display:none; 
  z-index: 10;
  pointer-events: none; /* 防止誤點 */
}
a.fx-share-link {
  display: inline-block !important;
}

.transition {
  transition: all 0.8s ease;
}

.opacity-0 {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.opacity-1 {
  opacity: 1 !important;
  visibility: visible;
  height: auto;
}

.article-main ol, .article-main p,.article-main ul{
  color: var(--text-color);
  font-weight: normal;
}

.article-main p:first-of-type::first-letter { /* 第一段第一字母放大顯示 */
  font-size: 3.3rem;
  float: left;
  margin-top: 0.25rem;
  margin-right: 0.32rem;
  line-height: 0.9;
  font-weight: 700;
}

article hr{
  margin: 1.8rem 0  2.5rem 0;
}

.article-main h1, .article-main h2, .article-main h3, .article-main h4, .article-main h5{
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
}

.article-main h2{
  font-size: 1.75rem;
}

.article-main h3{
  font-size: 1.5rem;
}

.article-main ol li, .article-main ul li{
  margin-bottom: 1.2rem;
}

.article-main .over-width {
  width: calc(100% + 20rem);   /* 稍微比文章寬一點 */
  max-width: 100vw;           /* 絕不超過螢幕寬度 */
  margin-left: -10rem;         /* 左邊推出一點距離 */
  display: block;
  box-sizing: border-box;
  position: relative;
}

.article-main img.over-width {
  margin-top: 2.8rem;
}
.article-main .figure-caption {
  margin-bottom: 2.8rem;
}

@media (max-width: 992px) {
  .article-main .over-width {
    width: 100% !important;
    margin-left: 0 !important;
  }
}



/********************************************************/


.bg-cover-img {
	position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .05);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

/* 設定 Google 原生按鈕外觀 */
.qxCTlb {
  padding: 6px 16px !important;
  font-size: 1rem !important;
  border-radius: 10px !important;
  background-color: #198754 !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  border: none !important;
  transition: all 0.3s ease-in-out;
}


/* 加上你想要的 icon（用 background image 或 ::before） */
.qxCTlb::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url('/assets/img/google_meet.png');
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
}


.qxCTlb:hover {
  background: #157347 !important;
}


/* 初始狀態：按鈕隱藏時的位置 */
.google-meet-wrapper {
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s ease;

}

/* 顯示狀態：滑入並出現 */
.google-meet-wrapper.show {
  opacity: 1;
  pointer-events: auto;
  animation: bounceIn;
  animation-duration: 1.5s;
  animation-delay: 0s;
}


/* footer css */
.site-footer {
  font-family: var(--font-base);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--secondary-color);
}

.site-footer a.footer-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.site-footer a.footer-link:hover {
  text-decoration: underline;
}

.site-footer .btn {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-nav .nav-item {
  font-size: 0.95rem;
  position: relative;
}

.footer-nav .nav-item::after {
  content: "|";
  color: #bbb;
  display: inline-flex;
  align-items: center;
  margin: 0.5rem;
  font-size: 1rem;
  transform: translateY(-2px); /* 微調對齊 */
}

.footer-nav .nav-item:last-child::after {
  content: "";
}




/* kit */
.formkit-form {
  margin: 0 auto;
}
.formkit-form[data-uid="02dbeb4fb7"][min-width~="700"] [data-style="clean"], 
.formkit-form[data-uid="02dbeb4fb7"][min-width~="800"] [data-style="clean"] {
  padding-top: 0 !important;
}
.formkit-powered-by-convertkit-container {
  display: none !important;
}

/* nav */
.navbar {
  backdrop-filter: saturate(180%) blur(20px);
  background-color: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

@media (max-width: 992px) {
  .navbar-nav {
    font-size: 1.5rem;
  }
}

/* 透過變數來控制navbar collapse時隱藏畫面 */
body::after {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(0px);
  transition: opacity 0.15s ease-in-out, backdrop-filter 0.15s ease-in-out;
}
body.hide-after::after {
  opacity: 1;
  backdrop-filter: blur(20px);
}

/* 以下是學員推薦的css */
.scroll-container {
  position: relative;
}
.scrolling-wrapper {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 20px 40px;
}
.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}
.scroll-card {
  flex: 0 0 auto;
  width: 420px;
  height: auto;
  border-radius: 16px;
  scroll-snap-align: start;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.5s ease;
  padding: 2rem 2.5rem;
}
.scroll-card:hover {
  
  cursor:default;
}
.scroll-card.active {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12), inset 0 0 0 1px;
  transform: scale(1.03);
  transition: box-shadow 0s ease;
}
.caption {
  font-weight: normal;
  font-size: 1.1rem;
  line-height: 1.7;
}
.caption p {
  margin-bottom: 1rem;
  word-break: break-word;
  hyphens: auto;
}
.emoji {
  font-size: 2rem;
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}
.arrow-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 8px;
}
.scroll-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(210, 210, 215, 0.84);
  color: #333;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease;
}
.scroll-button svg {
  width: 23px;
  height: 23px;
  stroke: rgba(0, 0, 0, 0.56);
  transition: stroke 0.5s ease;
}
.scroll-button:hover {
  background: rgba(223, 223, 227, 0.8);
}
.scroll-button:active {
  background: rgba(210, 210, 215, 0.84);
}
.scroll-button:hover svg {
  stroke: rgba(0, 0, 0, 0.8);
}

.scroll-button.disabled {
  background: #f5f5f7;
  cursor: default;
}
.scroll-button.disabled svg{
  stroke: rgba(210, 210, 215, 0.84);
}
#paginationDots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
#paginationDots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(180, 180, 180, 0.9);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 0 1px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  transform: scale(1);
  opacity: 0.9;
  cursor: pointer;
}
#paginationDots .dot:hover {
  opacity: 1;
}
#paginationDots .dot.active {
  background: rgba(120, 120, 120, 0.9);
  box-shadow: inset 0 -1px 1px rgba(0, 0, 0, 0.8);
  opacity: 1;
}
@media (max-width: 768px) {
  .scroll-card {
    width: 100%;
    padding: 1rem;
  }
  .caption {
    font-size: 1.05rem;
    line-height: 1.75;
  }
  .scroll-button {
    width: 40px;
    height: 40px;
  }
  .scroll-button svg {
    width: 16px;
    height: 16px;
  }
  .emoji {
    font-size: 1.8rem;
  }
  h1.display-4 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }
}

/* === 手機版：漢堡按鈕動畫 === */
.custom-toggler {
  position: relative;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1051;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-toggler .bar {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #6e6e73;
  transition: transform 0.3s ease, opacity 0s ease, top 0.3s ease, bottom 0.3s ease;
  transform-origin: center;
}

.top-bar {
  top: 0;
}

.middle-bar {
  top: 50%;
  transform: translateY(-50%);
}

.bottom-bar {
  bottom: 0;
}

.custom-toggler.open .top-bar {
  top: 50%;
  transform: rotate(45deg);
}

.custom-toggler.open .middle-bar {
  opacity: 0;
}

.custom-toggler.open .bottom-bar {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

/* === 手機選單 === */
.custom-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: right 0.4s ease;
  z-index: 1050;
}

.custom-menu.open {
  right: 0;
}

.custom-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 1rem 0;
  text-decoration: none;
}

/* === 手機選單黑色遮罩 === */
.custom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1049;
}

.custom-overlay.show {
  opacity: 1;
  pointer-events: auto;
}


/* === blog.php === */
.article-img {
  width: 100%;
  object-fit: cover;
}

@media (min-width: 1200px) {
  .article-img {
    height: 100%; /* 桌機圖片撐滿文字高度 */
  }
}

@media (max-width: 1200px) {
  .article-img {
    max-height: 220px; /* 手機版圖片不會過高 */
  }
}




/* === 物件從下方滑上的動畫 配合main.js === */
.scroll-animate-in {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

.scroll-animate-show {
  opacity: 1;
  transform: translateY(0);
}

.fade-left-init {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-left {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.fade-right-init {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-right {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.zoom-in-fade-init {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.zoom-in-fade {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* === Hover 放大亮度 + 陰影，適用圖片容器 === */
.hover-zoom-card, .hover-zoom-card img{
  transition: transform 0.5s ease, filter 0.5s;
  will-change: transform, filter;
}

/* hover 時放大、加亮 */
.topic-section:hover .hover-zoom-card {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.hover-zoom-card:hover img{
  transform: scale(1.03);
  filter: brightness(1.1);

}