/* Shaver Technology Showcase Section */
.shaver-technology-showcase {
  background-color: var(--background-color, #000000);
  color: var(--text-color, #ffffff);
  padding: var(--section-spacing-mobile, 50px) 0;
}

@media (min-width: 768px) {
  .shaver-technology-showcase {
    padding: var(--section-spacing-desktop, 100px) 0;
  }
}

/* Main Content Area */
.shaver-technology-showcase__main {
  text-align: center;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__main {
    margin-bottom: 80px;
  }
}

.shaver-technology-showcase__main-image {
  margin-bottom: 40px;
}

.shaver-technology-showcase__main-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 24px;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__main-image {
    margin-bottom: 50px;
  }
}

.shaver-technology-showcase__heading {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #fff;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__heading {
    font-size: 2.5rem;
    margin-bottom: 30px;
  }
}

@media (min-width: 1068px) {
  .shaver-technology-showcase__heading {
    font-size: 3rem;
  }
}

.shaver-technology-showcase__description {
  font-size: clamp(0.603rem, 0.457rem + 0.619vw, 1.2rem);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Technology Features Grid */
.shaver-technology-showcase__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__grid {
    gap: 60px;
  }
  
  .shaver-technology-showcase__grid.grid-two-columns {
    grid-template-columns: 1fr 1fr;
  }
  
  .shaver-technology-showcase__grid.grid-three-columns {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1068px) {
  .shaver-technology-showcase__grid {
    gap: 80px;
  }
}

/* Technology Feature Item */
.shaver-technology-showcase__feature {
  text-align: center;
  transition: transform 0.3s ease;
}

.shaver-technology-showcase__feature:hover {
  transform: translateY(-5px);
}

.shaver-technology-showcase__feature-image {
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
}

.shaver-technology-showcase__feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.shaver-technology-showcase__feature:hover .shaver-technology-showcase__feature-image img {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .shaver-technology-showcase__feature-image {
    margin-bottom: 40px;
    border-radius: 16px;
  }
}

.shaver-technology-showcase__feature-content {
  padding: 0 15px;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__feature-content {
    padding: 0 20px;
  }
}

.shaver-technology-showcase__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #fff;
}

@media (min-width: 768px) {
  .shaver-technology-showcase__feature-title {
    font-size: 1.75rem;
    margin-bottom: 20px;
  }
}

@media (min-width: 1068px) {
  .shaver-technology-showcase__feature-title {
    font-size: 2rem;
  }
}

.shaver-technology-showcase__feature-description {
  font-size: clamp(0.603rem, 0.457rem + 0.619vw, 1.2rem);
  line-height: 1.6;
  opacity: 0.9;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .shaver-technology-showcase__grid.grid-three-columns {
    grid-template-columns: 1fr;
  }
  
  .shaver-technology-showcase__grid.grid-two-columns {
    grid-template-columns: 1fr;
  }
}

/* Mobile grid gap tuning */
@media (max-width: 767px) {
  .shaver-technology-showcase__grid {
    gap: 24px;
  }
}

/* Mobile/Desktop image toggle helpers (scoped to section) */
.shaver-technology-showcase .only-mobile {
  display: none;
}
.shaver-technology-showcase .only-desktop {
  display: block;
}
@media (max-width: 767px) {
  .shaver-technology-showcase .only-mobile {
    display: block;
  }
  .shaver-technology-showcase .only-desktop {
    display: none;
  }
}

/* Mobile main image overlay layout */
@media (max-width: 767px) {
  .shaver-technology-showcase__main {
    margin-bottom: 24px;
  }
  .shaver-technology-showcase__main-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    /* 修复移动端圆角边框不完整：显式添加细边框 */
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    /* 统一移动端主卡片与功能卡片的高度（固定纵横比容器） */
    aspect-ratio: var(--mobile-card-aspect, 4 / 3);
  }

  /* 让图片充满固定比例容器，避免高度不一致（仅移动端） */
  .shaver-technology-showcase__main-image img,
  .shaver-technology-showcase__feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .shaver-technology-showcase__main-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 35%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.88) 100%);
    pointer-events: none;
    z-index: 1;
    /* 让遮罩遵循容器圆角，避免遮住圆角导致不完整 */
    border-radius: inherit;
  }

  .shaver-technology-showcase__main-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2;
  }

  .shaver-technology-showcase__main-caption .shaver-technology-showcase__heading {
    margin: 0 0 6px;
    font-size: 1.5rem; /* 24px */
    line-height: 1.2;
    text-align: left;
  }

  .shaver-technology-showcase__main-caption .shaver-technology-showcase__description {
    margin: 0;
    max-width: none;
    line-height: 1.5;
    text-align: left;
    color: rgba(255, 255, 255, 0.9);
  }

  .shaver-technology-showcase__main-caption .rte p,
  .shaver-technology-showcase__feature-description.rte p {
    margin: 0;
  }
}

/* Mobile card overlay layout (design-spec) */
@media (max-width: 767px) {
  .shaver-technology-showcase__feature {
    position: relative;
    text-align: left;
    border-radius: 16px;
    overflow: hidden;
    /* 修复卡片边框显示不全：添加统一描边 */
    border: 1px solid rgba(255, 255, 255, 0.8);
  }

  .shaver-technology-showcase__feature-image {
    margin-bottom: 0; /* 文本覆盖到图内，无需外边距 */
    position: relative;
    border-radius: 16px;
    /* 与主卡片保持一致的纵横比 */
    aspect-ratio: var(--mobile-card-aspect, 4 / 3);
  }

  .shaver-technology-showcase__feature-image::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 40%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
    z-index: 1;
    /* 遵循圆角，避免右侧/底部圆角被遮挡 */
    border-radius: inherit;
  }

  .shaver-technology-showcase__feature-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 0;
    z-index: 2;
  }

  .shaver-technology-showcase__feature-title {
    margin: 0 0 6px;
    font-size: 1.375rem; /* 22px */
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
  }

  .shaver-technology-showcase__feature-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
  }
}

/* Loading and Animation States */
.shaver-technology-showcase__feature-image img.lazyload {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shaver-technology-showcase__feature-image img.lazyloaded {
  opacity: 1;
}

/* Accessibility */
.shaver-technology-showcase__feature:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Section Spacing Override */
.shaver-technology-showcase.section-spacing--disable-top {
  padding-top: 0;
}

.shaver-technology-showcase.section-spacing--disable-bottom {
  padding-bottom: 0;
}
