.text-page-primary {
  color: var(--color-cataract);
}
.bg-page-light {
  background-color: var(--color-cataract-light);
}
/* 白内障标题特别款 */
.title-cataract {
  position: relative;
  color: var(--color-cataract);
  font-weight: 700;
  text-align: center;
  font-size: 22px;
}
.title-cataract span {
  background-color: #fff;
  z-index: 1;
  position: relative;
}
.title-cataract::before {
  content: "";
  position: absolute;
  border: 1.5px solid var(--color-cataract-third);
  z-index: 0;
  border-radius: 20%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 160%;
}
.title-normal {
  color: var(--color-cataract);
  font-weight: 700;
  text-align: center;
  font-size: 20px;
}
/* 带圆角边框包裹 */
.text-wrap {
  border: 2px solid var(--color-cataract-third);
  border-radius: 50px 10px;
}
@property --_f {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.lens-vision .range-slider::-webkit-slider-runnable-track {
  border: none;
}
.lens-table th,
.lens-table td {
  padding: 4px;
}
/* 人工晶體對比互動 */
.lens-contrast {
  --progress: 50%; /* 初始 50% */
  position: relative;
  width: 302px;
  height: 248px;
  overflow: hidden;
}

.lens-contrast::before,
.lens-contrast::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.lens-contrast::before {
  background-image: url("https://statichk.cmermedical.com/newopd/services/cataract/cataract-lens-swiper-02.avif");
}

.lens-contrast::after {
  background-image: url("https://statichk.cmermedical.com/newopd/services/cataract/cataract-lens-swiper-01.avif");
  clip-path: inset(0 0 0 var(--progress));
}

.lens-contrast .handler {
  position: absolute;
  top: 0;
  left: 0;
  /* left: var(--progress); */
  width: 52px;
  height: 100%;
  /* transform: translateX(-50%); */
  cursor: ew-resize;
  z-index: 10;
  user-select: none;
}

.lens-contrast .divider-line {
  position: absolute;
  height: 100%;
  left: 50%;
  top: 0;
  width: 4px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.lens-contrast .mascot {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
}
.lens-contrast .labels {
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-around;
  font-weight: bold;
  font-size: 16px;
  z-index: 11;
  text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff,
    1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}
.precautions .num {
  font-size: 24px;
  color: #fff;
  -webkit-text-stroke-width: 0.43px;
  -webkit-text-stroke-color: var(--color-cataract);
  position: absolute;
}
@media screen and (max-width: 1023px) {
  .lens-table thead th,
  .lens-table tbody tr:not(:last-child) th,
  .lens-table tbody tr:not(:last-child) td {
    border-bottom: 2px solid #bcd7f7;
  }
}
@media screen and (min-width: 1024px) {
  .title-normal {
    font-size: 30px;
  }
  .title-cataract {
    font-size: 30px;
  }
  .title-cataract::before {
    border-width: 2px;
  }
  .text-wrap {
    border-radius: 80px 20px;
  }
  .cataract-vision .range-slider::-webkit-slider-runnable-track,
  .cataract-vision .range-slider::-moz-range-track {
    height: 9px;
  }
  .cataract-vision .range-slider::-webkit-slider-thumb,
  .cataract-vision .range-slider::-moz-range-thumb {
    margin-top: -10px;
  }
  .cataract-vision .range-slider::-moz-range-progress {
    height: 9px;
  }
  .lens-table th,
  .lens-table td:not(:last-child) {
    border-bottom: 1px solid #cbc6c6;
  }
  .lens-contrast {
    width: 672px;
    height: 552px;
  }
  .lens-contrast .labels {
    font-size: 30px;
    bottom: 8px;
  }
  .lens-contrast .handler {
    width: 120px;
  }
  .lens-contrast .mascot {
    width: 120px;
    bottom: 28px;
  }
  .lens-table th,
  .lens-table td {
    padding: 12px;
  }
  .precautions .num {
    -webkit-text-stroke-width: 2px;
    font-size: 120px;
    top: -20px;
    left: -20px;
    -webkit-text-stroke-color: var(--color-cataract-third);
  }
}
