/*==================================================
  自訂樣式
==================================================*/

/* 啟用硬體加速，改善捲動流暢度 */
body,
.vlt-fullpage-slider {
  -webkit-overflow-scrolling: touch;
}

/* 確保 Advantages 區塊的左右欄位高度一致 */
.vlt-section[data-anchor="Advantages"] .row {
  display: flex;
  align-items: stretch;
}

/* 修正計數器左上角圖標的間距 */
.vlt-section[data-anchor="Advantages"] .vlt-animated-block .has-accent-color {
  padding-top: 50px;
}

/* 計數器容器樣式 */
.counter-box {
  text-align: center;
  margin: 60px;
  padding: 50px 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
  height: 100%;
}

/* 計數器數字樣式 */
.counter-number {
  font-size: 65px;
  font-weight: bold;
  color: inherit;
  line-height: 1.5;
}

/* 計數器文字說明樣式 */
.counter-text {
  font-size: initial;
  color: inherit;
  line-height: 1.2;
}

/* 自訂計數器文字比例 */
.vlt-counter-title {
  font-size: 56px;
  font-weight: bold;
}

.vlt-counter-subtitle {
  font-size: 22px;
  line-height: 1;
}

/* 確保 About 區塊的分頁內容在桌面尺寸時高度一致 */
@media (min-width: 992px) {
  .vlt-section[data-anchor="About"] .swiper-slide .row {
    display: flex;
    align-items: stretch;
  }
}

/* 調整 About 頁面的照片寬度，並確保響應式效果 */
.vlt-about-image {
  width: 100%;
  max-width: 80%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 移除 Swiper 容器右側的陰影 */
.swiper-container-3d .swiper-slide-shadow-right {
  display: none !important;
}

/* 自訂邊框樣式 */
.vlt-project-excerpt {
  padding: 20px 20px 20px 30px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  margin: 20px 0;
}

/* 添加自定义CSS来调整行高 */
.vlt-timeline-item.compact {
  min-height: 30px;
  margin-top: 30px;
  margin-bottom: 10px;
  padding: 15px 0;
}

.vlt-timeline-item.compact .row {
  align-items: center;
}

.vlt-timeline-item.compact img {
  max-height: 80px;
  width: auto;
  margin: 0 auto;
  padding: 10px 0;
}

.vlt-timeline-item.compact .vlt-timeline-item__title {
  font-size: 22px;
  line-height: 1.5;
  margin: 0;
}

/* 移除空白行 */
.vlt-timeline-item.compact .vlt-timeline-item__date {
  display: none;
}

/* 修改所有swiper箭頭顏色 */
.vlt-swiper-button-prev svg path,
.vlt-swiper-button-next svg path {
  fill: #5CC4F1 !important;
  stroke: #5CC4F1 !important;
  stroke-width: 6px !important;
}

/* 文字標籤指示器 - 淺藍光縮小版 */
.vlt-swiper-pagination {
  display: flex;
  gap: 6px;
  padding: 1px 0;
  background: transparent !important;
  border-radius: 0;
  backdrop-filter: none;
  margin-top: 2px;
}

.vlt-swiper-pagination .swiper-pagination-bullet {
  width: auto;
  height: auto;
  padding: 5px 15px;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  border-radius: 15px;
  opacity: 1;
  border: 1px solid rgba(100, 200, 255, 0.4);
  transition: all 0.3s ease;
}

/* 更強烈的藍光版本 */
.vlt-swiper-pagination .swiper-pagination-bullet-active {
  background: linear-gradient(145deg, rgba(80, 180, 255, 0.3), rgba(100, 200, 255, 0.1));
  color: #ffffff;
  font-weight: bold;
  border-color: #50b4ff;
  box-shadow: 0 0 15px rgba(80, 180, 255, 0.8), 0 0 30px rgba(80, 180, 255, 0.4);
  transform: scale(1.05);
}

.vlt-swiper-pagination .swiper-pagination-bullet-active:hover {
  box-shadow: 0 0 20px rgba(80, 180, 255, 1), 0 0 40px rgba(80, 180, 255, 0.6);
}

/* 確保在所有分頁都生效 */
.vlt-projects-anchor .vlt-swiper-pagination,
.vlt-about-anchor .vlt-swiper-pagination,
.vlt-education-anchor .vlt-swiper-pagination {
  display: flex;
  gap: 6px;
  padding: 1px 0;
  margin-top: 2px;
}

/* 針對Layout Excellence的最終修正 */
.vlt-section[data-anchor="About"] .swiper-slide {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.vlt-section[data-anchor="About"] .swiper-wrapper {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* 響應式優化：手機裝置的精確調整 */
@media (max-width: 768px) {
  /* 統一調整根字體大小，實現整體縮小效果 */
  html {
    font-size: 12px; /* 這裡可以調整大小，例如 12px 或 13px */
  }
  
  .counter-box {
    margin: 20px;
    padding: 30px;
    gap: 10px;
  }
  .counter-text {
    font-size: 16px;
  }
}