/* =========================================================
   淨界工藝｜服務項目 service.html
   僅包含 service.html 專用樣式與 RWD
========================================================= */

.servicePageIntro {
  padding: 90px 0 70px;
  text-align: center;
  background: #fff;
}

.servicePageIntro .container {
  max-width: 900px;
}

.servicePageIntroEn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #0789c8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.servicePageIntroEn::before,
.servicePageIntroEn::after {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.servicePageIntro h2 {
  margin: 14px 0 18px;
  color: #152b39;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.35;
  letter-spacing: -.04em;
}

.servicePageIntro p {
  margin: 0 auto;
  color: #586b76;
  font-size: 15px;
  line-height: 1.95;
}

.serviceListSection {
  padding: 20px 0 110px;
  background:
    linear-gradient(180deg, #fff 0%, #f6f9fb 100%);
}

.serviceListWrap {
  display: grid;
  gap: 70px;
}

.serviceListItem {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: stretch;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #e1eaee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(3, 31, 49, .08);
}

.serviceListItemReverse {
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.03fr);
}


 .serviceListImage {
    height: 650px;
  }


.serviceListItemReverse .serviceListImage {
  order: 2;
}

.serviceListItemReverse .serviceListContent {
  order: 1;
}

.serviceListImage {
  position: relative;
  overflow: hidden;
  background: #dfe8ec;
}

.serviceListImage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(3, 31, 49, .18));
  pointer-events: none;
}

.serviceListImage a,
.serviceListImage img {
  width: 100%;
  height: 100%;
  display: block;
}

.serviceListImage img {
  object-fit: cover;
  transition: transform .55s ease;
}

.serviceListItem:hover .serviceListImage img {
  transform: scale(1.05);
}

.serviceListContent {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 62px;
  overflow: hidden;
}

.serviceListContent::after {
  content: attr(data-number);
  position: absolute;
  right: 28px;
  bottom: -22px;
  color: #f0f5f7;
  font-size: 130px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.serviceListNumber {
  display: block;
  margin-bottom: 8px;
  color: #0789c8;
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
}

.serviceListEnglish {
  display: block;
  color: #0ba2e6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}

.serviceListContent h2 {
  margin: 14px 0 18px;
  color: #152b39;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.serviceListContent > p {
  margin: 0;
  color: #586b76;
  font-size: 14px;
  line-height: 1.95;
}

.serviceListPoints {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.serviceListPoints li {
  position: relative;
  padding: 9px 0 9px 26px;
  border-bottom: 1px solid #e7eef1;
  color: #405762;
  font-size: 13px;
}

.serviceListPoints li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 9px;
  color: #0789c8;
  font-weight: 800;
}

.serviceListButton {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding: 0 22px;
  border: 1px solid #0789c8;
  border-radius: 7px;
  color: #0789c8;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  transition: .3s ease;
}

.serviceListButton svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s ease;
}

.serviceListButton:hover {
  color: #fff;
  background: #0789c8;
  transform: translateY(-2px);
}

.serviceListButton:hover svg {
  transform: translateX(4px);
}

/* 平板 */
@media (max-width: 1100px) {
  .serviceListWrap {
    gap: 50px;
  }

  .serviceListContent {
    padding: 46px 42px;
  }

  .serviceListItem {
    min-height: 460px;
  }
}

@media (max-width: 900px) {
  .servicePageIntro {
    padding: 80px 0 60px;
  }

  .serviceListSection {
    padding-bottom: 90px;
  }

  .serviceListItem,
  .serviceListItemReverse {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .serviceListItemReverse .serviceListImage,
  .serviceListItemReverse .serviceListContent {
    order: initial;
  }

  .serviceListImage {
    height: 420px;
  }

  .serviceListContent {
    padding: 42px 38px 46px;
  }

  .serviceListContent::after {
    font-size: 105px;
  }
}

/* 手機 */
@media (max-width: 767px) {
  .servicePageIntro {
    padding: 68px 0 48px;
  }

  .servicePageIntroEn {
    font-size: 10px;
  }

  .servicePageIntroEn::before,
  .servicePageIntroEn::after {
    width: 20px;
  }

  .servicePageIntro h2 {
    margin-top: 12px;
    font-size: 30px;
  }

  .servicePageIntro p {
    font-size: 14px;
    line-height: 1.85;
  }

  .serviceListSection {
    padding: 10px 0 76px;
  }

  .serviceListWrap {
    gap: 30px;
  }

  .serviceListItem {
    border-radius: 14px;
  }

  .serviceListImage {
    height: 280px;
  }

  .serviceListContent {
    padding: 30px 24px 34px;
  }

  .serviceListNumber {
    font-size: 40px;
  }

  .serviceListEnglish {
    font-size: 9px;
    letter-spacing: .14em;
  }

  .serviceListContent h2 {
    margin: 12px 0 15px;
    font-size: 26px;
  }

  .serviceListContent > p {
    font-size: 13px;
    line-height: 1.85;
  }

  .serviceListPoints {
    margin-top: 20px;
  }

  .serviceListPoints li {
    padding: 8px 0 8px 24px;
    font-size: 12px;
  }

  .serviceListPoints li::before {
    top: 8px;
  }

  .serviceListButton {
    min-height: 44px;
    margin-top: 24px;
    padding: 0 18px;
    font-size: 11px;
  }

  .serviceListContent::after {
    right: 12px;
    bottom: -12px;
    font-size: 82px;
  }
}

@media (max-width: 420px) {
  .serviceListImage {
    height: 235px;
  }

  .serviceListContent {
    padding: 26px 20px 30px;
  }

  .serviceListNumber {
    font-size: 36px;
  }

  .serviceListContent h2 {
    font-size: 24px;
  }
}
