/* 颜色流转 */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
/* 呼吸感 */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 14px #00000026;
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 6px 20px #00000040;
  }
}
@keyframes shine {
  0% {
    left: -100%;
  }
  20%,
  100% {
    left: 150%;
  }
}
.pure-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 256px;
  height: 44px;
  border-radius: 6px;
  gap: 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  position: relative;
  overflow: hidden;
  animation: pulse 2.5s ease-in-out infinite;
}
.pure-button.bg-primary {
  box-shadow: 0 4px 14px #2958a366;
}
.pure-button.bg-whatsapp {
  box-shadow: 0 4px 14px #33ab3866;
}
.pure-button:hover {
  animation: none;
  transform: scale(1.05);
  box-shadow: 0 8px 25px #0000004d;
}
.pure-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-15deg);
  animation: shine 3.5s ease-in-out infinite;
}
.tear-button {
  border-radius: 28px;
  background-image: linear-gradient(90deg, #fdc182 0%, #faa87f 25%, #ef2e74 50%, #ee2673 75%, #fdc182 100%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 48px 6px 20px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background-size: 200% 100%;
  animation:
    gradient-flow 4s linear infinite,
    breathe 2.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}
.tear-button:hover {
  transform: scale(1.03);
}
.tear-button .tear-button-icon {
  margin-right: 4px;
  width: 36px;
  height: 36px;
}
.tear-button .tear-button-text {
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.tear-button .tear-button-right {
  background: linear-gradient(88deg, #faa87f 43.96%, #ee2673 107.22%);
  height: 106%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: -16px;
  top: -3%;
}
.tear-button .tear-button-right svg {
  width: 24px;
}
.title-normal {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--color-text-info);
  font-size: 18px;
  line-height: 1.2;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.title-normal::before,
.title-normal::after {
  content: "";
  position: absolute;
  background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NSIgaGVpZ2h0PSIyIiB2aWV3Qm94PSIwIDAgNjUgMiIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTAgLjg2NiA2NC41IDB2MS43MzJ6IiBmaWxsPSIjZDlhODYwIi8+PC9zdmc+")
    no-repeat center / cover;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 86px;
}
.title-normal::before {
  left: -92px;
}
.title-normal::after {
  right: -92px;
  transform: translateY(-50%) scale(-1);
}
.warnbar {
  border: 1px solid var(--color-clinic);
  padding: 12px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  max-width: 1120px;
}
.warnbar img {
  width: 52px;
}
.warnbar p {
  color: var(--color-clinic);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.banner .banner-nav {
  background-color: var(--color-clinic);
  color: #fff;
  font-size: 20px;
  line-height: 52px;
  letter-spacing: 0.1em;
}
.banner .banner-nav-item:not(:last-child) {
  position: relative;
}
.banner .banner-nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  height: 72%;
  width: 1px;
  background-color: #fff;
  top: 14%;
  right: -32px;
}
.risk .risk-main {
  display: flex;
  align-items: center;
  gap: 8px;
}
.risk .risk-icon {
  height: 44px;
  width: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.risk .risk-icon img {
  max-height: 100%;
}
.risk .risk-title {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
.risk .risk-title small {
  font-size: 10px;
}
.brand {
  background: url("https://statichk.cmermedical.com/newopd/services/retinal/video-bg-mb-v1.webp") no-repeat center /
    cover;
}
.brand .brand-main {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
}
.develop .develop-item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  box-shadow: 0 0.606px 2.424px 0 #00000040;
  display: flex;
  align-items: center;
  width: 252px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 20px;
  gap: 8%;
}
.develop .develop-item:nth-child(3) {
  box-shadow: 0 0.606px 6.06px 0 #f00;
}
.develop .develop-main {
  min-width: 84px;
  display: flex;
  flex-direction: column;
}
.develop .develop-img {
  width: 60px;
  height: 60px;
  margin: 0 auto;
}
.develop .develop-desc {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.develop .develop-item:nth-child(1) strong {
  color: #f98e1c;
  font-weight: 300;
}
.develop .develop-item:nth-child(3) strong {
  color: #c10202;
  font-weight: 500;
}
.develop .develop-connect {
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.treatment .treatment-main {
  color: var(--color-text-info);
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
  position: relative;
}
.treatment .treatment-main::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 24px;
  width: 0.6px;
  height: calc(100% - 48px);
  background-color: var(--color-clinic);
}
.treatment .treatment-main h3 {
  color: var(--color-clinic);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5em;
  position: relative;
}
.treatment .treatment-main h3::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background-color: var(--color-clinic);
  width: 12px;
  height: 12px;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
}
.treatment .treatment-main h4 {
  font-size: clamp(12px, 4.44vw, 24px);
  font-weight: 700;
  letter-spacing: 0.2em;
}
.treatment .treatment-img {
  flex-shrink: 0;
  width: clamp(40px, 14.44vw, 80px);
  height: clamp(40px, 14.44vw, 80px);
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 15px #00000061;
}
.treatment .treatment-name {
  align-self: center;
}
.treatment .treatment-desc {
  grid-column: span 2 / span 2;
}
.treatment .advantage-list li {
  position: relative;
}
.treatment .advantage-list li:not(:last-child)::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 90%;
  top: 0;
  right: 0;
  background-color: #333;
}
@media screen and (max-width: 767px) {
  .banner .banner-text {
    background: url("https://statichk.cmermedical.com/newopd/services/retinal/tear-banner-mb-v1.webp") no-repeat
      center / cover;
    min-height: 200px;
    padding: 40px 0 40px 6%;
  }
  .risk .risk-item {
    position: relative;
    padding: 12px 0;
  }
  .risk .risk-item:not(:last-child)::after {
    content: "";
    position: absolute;
    height: 0.5px;
    width: 90%;
    bottom: 0;
    left: 5%;
    background-color: var(--color-clinic);
  }
  .concealed .concealed-main {
    background: url("https://statichk.cmermedical.com/newopd/services/retinal/tear-concealed-bg-mb-v1.webp") no-repeat
      center / cover;
  }
}
@media screen and (min-width: 768px) {
  .pure-button {
    width: 356px;
    height: 60px;
    border-radius: 10px;
    gap: 10px;
    font-size: 30px;
  }
  .tear-button {
    border-radius: 52px;
    padding: 12px 92px 12px 36px;
  }
  .tear-button .tear-button-icon {
    width: 68px;
    height: 68px;
    margin-right: 28px;
  }
  .tear-button .tear-button-text {
    font-size: 30px;
  }
  .tear-button .tear-button-right svg {
    width: 44px;
  }
  .title-normal {
    flex-direction: row;
    font-size: 30px;
    font-weight: 500;
  }
  .title-normal::before,
  .title-normal::after {
    height: 4px;
    width: 128px;
  }
  .title-normal::before {
    left: -140px;
  }
  .title-normal::after {
    right: -140px;
  }
  .warnbar {
    padding: 12px 20px;
    gap: 20px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  .warnbar img {
    width: 60px;
  }
  .warnbar p {
    font-size: 24px;
  }
  .banner .banner-main {
    background: url("https://statichk.cmermedical.com/newopd/services/retinal/tear-banner-pc-v1.webp") no-repeat
      center / cover;
    min-height: 328px;
    padding: 16px 0 24px 7%;
  }
  .banner .banner-text {
    padding: 0;
  }
  .risk .risk-item {
    border-radius: 16px;
    background-color: #fff;
    box-shadow: 0 3.254px 10.576px 0 #d9a8606b;
    padding: 16px 16px 24px 16px;
  }
  .risk .risk-icon {
    height: 80px;
    width: 72px;
  }
  .risk .risk-title {
    font-size: 20px;
    flex: 1;
    text-align: center;
  }
  .risk .risk-title small {
    font-size: 14px;
  }
  .concealed {
    background: url("https://statichk.cmermedical.com/newopd/services/retinal/tear-concealed-bg-pc-v1.webp") no-repeat
      center / cover;
    padding: 40px 12px 40px clamp(200px, 20%, 400px);
  }
  .concealed .concealed-main {
    max-width: 768px;
  }
}
@media screen and (max-width: 1023px) {
  .develop .develop-arrow {
    rotate: 90deg;
    width: 32px;
  }
  .treatment .treatment-main h4 span {
    font-size: clamp(8px, 2.778vw, 20px);
    white-space: nowrap;
  }
}
@media screen and (min-width: 1024px) {
  .brand {
    background-image: url("https://statichk.cmermedical.com/newopd/services/retinal/video-bg-pc-v1.webp");
  }
  .develop .develop-item {
    flex-direction: column;
    padding-top: 8px;
    padding-bottom: 20px;
    gap: 16px;
    border-radius: 16px;
    box-shadow: 0 1px 4px 0 #00000040;
  }
  .develop .develop-item:nth-child(3) {
    box-shadow: 0 1px 10px 0 #f00;
  }
  .develop .develop-item:nth-child(5) {
    justify-content: center;
  }
  .develop .develop-main {
    gap: 12px;
  }
  .develop .develop-img {
    width: 132px;
    height: 132px;
  }
  .develop .develop-connect {
    flex-direction: column;
    height: auto;
    padding: 0 20px;
    width: 184px;
    gap: 28px;
  }
  .treatment .treatment-main {
    font-size: 24px;
    line-height: 1.5;
  }
  .treatment .treatment-main::before {
    left: 32px;
    top: 44px;
    width: 1px;
    height: calc(100% - 80px);
  }
  .treatment .treatment-main h3 {
    font-size: 36px;
  }
  .treatment .treatment-main h3::before {
    width: 20px;
    height: 20px;
    left: -50px;
  }
  .treatment .treatment-main h4 {
    font-size: 24px;
  }
  .treatment .treatment-img {
    grid-row: span 2 / span 2;
    width: 172px;
    height: 172px;
  }
  .treatment .treatment-name {
    align-self: flex-start;
  }
  .treatment .treatment-desc {
    grid-column: span 1 / span 1;
  }
}
@media screen and (min-width: 1280px) {
  .title-normal {
    font-size: 40px;
  }
  .title-normal::before,
  .title-normal::after {
    height: 7px;
    width: 248px;
  }
  .title-normal::before {
    left: -276px;
  }
  .title-normal::after {
    right: -276px;
  }
  .risk .risk-title {
    font-size: 24px;
  }
}
