body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}



a {
    text-decoration: none;
    color:dimgray;
}










/* 大圖 */
.slides {
  position: relative;
  width: 100%;
  height: calc(100vh - 4cm); /* 減掉 header 高度 */
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* 桌機：完整顯示圖片（保留比例） */
  object-position: center; /* 圖片置中 */
  display: relative;
}

/* 手機版本 (<=768px) */
@media (max-width: 768px) {
  .slide img {
    object-fit: cover;       /* 手機：鋪滿螢幕 */
    object-position: center; /* 中心裁切 */
  }
}


/* 新增服務特色區塊 */
.service-highlights {
    text-align: center;
    padding: 4rem 1rem;             /* 整體高度再大一點 */
    background: #f5f7fb;            /* 淡色底 */
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.service-highlights .service-logo {
    max-width: 240px;               /* Logo 放大 */
    margin-bottom: 1.5rem;
}

.service-highlights h2 {
    font-size: clamp(22px, 4vw, 30px);  /* 標題放大 */
    margin-bottom: 1.5rem;
    color: #6a0b74;
    font-weight: 400;
}

.service-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;               /* 文字置中，避免太寬 */
}

.service-highlights li {
    font-size: 2.0rem;              /* 文字加大 */
    margin: 0.8rem 0;
    color: #222;
    font-weight: 400;
    line-height: 1.6;
}

/* --- 7個功能區塊 --- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 10px;
}

.feature {
    text-align: center;
    background: #fafafa;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.3s;
}

/* 固定一個 400x400 的框 */
.feature .img-box {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;   /* 垂直置中 */
    justify-content: center; /* 水平置中 */
    overflow: hidden;
}

.feature img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* 保持比例完整顯示 */
}
.feature:hover {
    transform: translateY(-5px);
}

.feature p {
    margin-top: 10px;
    font-size: 18px;
    color: #333;
}

/* 手機版一行一個 */
@media (max-width: 767px) {
    .features {
        grid-template-columns: 1fr;
    }
}