html {
  image-rendering: -webkit-optimize-contrast;
  font-size: 0.95rem;
}

body {
  background-color: var(--bs-light);
  color: var(--bs-dark);
  font-family: "微軟正黑體", "Microsoft JhengHei", "FangSong", "DFKai-SB", sans-serif;
}

/* 背景漸層 */
.gradient-green-blue {
  background: linear-gradient(90deg, #16a34a 20%, #007bff 80%, #3b82f6 90%);
}

/* 平滑漸層（稍微柔和）*/
.gradient-soft {
  background: linear-gradient(90deg, #2ecc71 0%, #3398ff 55%, #8a63d9 100%);
}

/* 文字漸層（需要 -webkit- 前綴以支援較多瀏覽器）*/
.text-gradient-gbp {
  background: linear-gradient(90deg, #28a745, #007bff, #6f42c1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明黑色背景 */
    display: none; /* 預設隱藏 */
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 確保在最上層 */
}
.loader {
    border: 8px solid #e9ecef;
    border-top: 8px solid #0d6efd;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.navbar {
  background: linear-gradient(90deg, #2E7D32, #66BB6A);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.navbar .navbar-brand {
  font-weight: 600;
  color: #ffffff !important;
}

.navbar .nav-link {
  color: #E8F5E9 !important;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-link:hover {
  color: #4FC3F7 !important;  
  transform: translateY(-2px);
}

 footer {
  background: linear-gradient(180deg, #1B5E20, #0D2A15);

}

.footer {
  background: #1B5E20;
  color: #E8F5E9;
  padding: 2rem 0;
  position: relative;
  text-align: center;
}

.footer a {
  color: #A5D6A7;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer a:hover {
  color: #4FC3F7;
  opacity: 0.9;
} 

/* 上方漸層邊框，象徵綠色地球能量 */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #2E7D32, #81C784, #4FC3F7);
}
