.productsPage {
  padding-top: 1.46rem;
  background: #111;
}

.productsHighlights {
  min-height: 8.81rem;
  padding: .58rem 0 .7rem;
  background: url(../images/proBanner.png);
}

.productBreadcrumb {
  color: #111;
}

.productsHighlights .productBreadcrumb a img {
  filter: brightness(0);
}

.pageSectionTitle {
  text-align: center;
}

.productsHighlights .pageSectionTitle {
  margin-top: .3rem;
}

.productsHighlights .pageSectionTitle h1 {
  color: #111;
}

.productsHighlights .pageSectionTitle p {
  color: rgba(0, 0, 0, .75);
}

.pageSectionTitle h1,
.pageSectionTitle h2 {
  color: #fff;
  font-size: clamp(24px, .58rem, 58px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.pageSectionTitle p {
  margin-top: .05rem;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(14px, .2rem, 20px);
  line-height: 1.5;
}

.featuredProductWrap {
  position: relative;
  margin: .43rem auto 0;
}

.productsArrivalsSwiper {
  width: 100%;
  padding-top: .1rem;
  padding-bottom: .63rem;
}

.productsHighlights .productCard {
  position: relative;
  /*height: 4.73rem;*/
  height: auto;
  min-height: 0;
  padding: .1rem 0.1rem 0.28rem;
}

.productsHighlights .productCard .badge{
    position: absolute;
    top: -0.07rem;
    right: -0.08rem;
    width: 0.7rem;
    height: 0.7rem;
}

.productsHighlights .productCardImage {
  height: 2.35rem;
}

.productsHighlights .productCardTitle {
  height: .54rem;
  min-height: 0;
  margin-top: .25rem;
  padding-right: .4rem;
}

.productsHighlights .productCardMeta {
  margin-top: .08rem;
  line-height: 1.35;
}

.productsHighlights .productFavorite {
  position: absolute;
  top: 3.33rem;
  right: .24rem;
  float: none;
  margin: 0;
  border: 0;
}

.productArrivalArrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: .5rem;
  height: .5rem;
  margin-top: -.25rem;
  border-radius: 50%;
  background: #111;
  color: #fff;
}

.productArrivalArrow::after {
  font-size: clamp(14px, .2rem, 20px);
  font-weight: 700;
}

.productArrivalPrev {
  left: -.79rem;
}

.productArrivalNext {
  right: -.79rem;
}

.productArrivalPagination {
  bottom: 0;
}

.productArrivalPagination .swiper-pagination-bullet {
  width: .15rem;
  height: .15rem;
  margin: 0;
  opacity: .38;
  background: #000;
}

.productArrivalPagination .swiper-pagination-bullet-active {
  opacity: 1;
  background: #F22B01;
}

.productsCatalog {
  padding: .77rem 0 1.04rem;
  background: url(../images/proBack.png);
}

.productFilter {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.65rem;
  gap: .32rem;
  margin-top: .77rem;
  padding: .4rem;
  border-radius: .12rem;
  background: #050505;
  position: relative;
  z-index: 2;
}

.keywordField,
.productFilter label:not(.keywordField) {
  display: block;
}

.keywordField {
  grid-column: span 3;
}

.productSearchButton {
  grid-column: 4;
}

.productSelectFields {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: .38rem;
}

.productFilter label:not(.keywordField) {
  position: relative;
}

.productFilter label:not(.keywordField)::after {
  position: absolute;
  top: .22rem;
  right: .2rem;
  width: .1rem;
  height: .1rem;
  border-right: .02rem solid #fff;
  border-bottom: .02rem solid #fff;
  content: '';
  pointer-events: none;
  transform: rotate(45deg);
}

.productFilter label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.productFilter input,
.productFilter select {
  width: 100%;
  height: .62rem;
  padding: 0 .2rem;
  border: .01rem solid #585858;
  border-radius: .04rem;
  outline: none;
  background: #262525;
  color: #fff;
  font-size: clamp(12px, .16rem, 16px);
}

.productFilter select {
  appearance: none;
  cursor: pointer;
}

.productFilter .customProductSelect::after {
  display: none;
}

.nativeProductSelect {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.productSelectTrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: .62rem;
  padding: 0 .2rem;
  border: .01rem solid #585858;
  border-radius: .04rem;
  background: #262525;
  color: #fff;
  font-size: clamp(12px, .16rem, 16px);
  text-align: left;
  cursor: pointer;
}

.productSelectTrigger::after {
  width: .1rem;
  height: .1rem;
  margin-left: .16rem;
  border-right: .02rem solid #fff;
  border-bottom: .02rem solid #fff;
  content: '';
  transform: translateY(-.03rem) rotate(45deg);
  transition: transform .2s ease;
}

.customProductSelect.is-open .productSelectTrigger {
  border-color: #585858;
  border-radius: .04rem .04rem 0 0;
}

.customProductSelect.is-open .productSelectTrigger::after {
  transform: translateY(.03rem) rotate(225deg);
}

.productSelectMenu {
  position: absolute;
  z-index: 8;
  top: calc(100% - .01rem);
  right: 0;
  left: 0;
  display: none;
  max-height: 3.52rem;
  overflow-y: auto;
  padding: .09rem 0;
  border: .01rem solid #585858;
  border-radius: 0 0 .04rem .04rem;
  background: #171717;
}

.customProductSelect.is-open .productSelectMenu {
  display: block;
}

.productSelectMenu::-webkit-scrollbar {
  width: .05rem;
}

.productSelectMenu::-webkit-scrollbar-track {
  margin: .12rem 0;
  border-radius: .1rem;
  background: #626262;
}

.productSelectMenu::-webkit-scrollbar-thumb {
  border-radius: .1rem;
  background: #9a9a9a;
}

.productSelectOption {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: .35rem;
  padding: 0 .23rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: clamp(12px, .16rem, 16px);
  line-height: .35rem;
  text-align: left;
  cursor: pointer;
}

.productSelectOption::before {
  width: .2rem;
  height: .2rem;
  margin-right: .08rem;
  border: .02rem solid #d0d0d0;
  border-radius: .02rem;
  content: '';
}

.productSelectOption.is-selected::before {
  border-color: var(--yellow);
  background: var(--yellow);
}

.productSelectOption.is-selected::after {
  position: absolute;
  top: 50%;
  left: .3rem;
  width: .06rem;
  height: .11rem;
  border-right: .02rem solid #111;
  border-bottom: .02rem solid #111;
  content: '';
  transform: translateY(-60%) rotate(45deg);
}

.customProductSelect--primary .productSelectOption::before {
  display: none;
}

.customProductSelect--primary .productSelectOption.is-selected::after {
  display: none;
}

.customProductSelect--primary .productSelectOption.is-selected {
  background: var(--yellow);
  color: #111;
}

.productSelectOption:hover,
.productSelectOption:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, .1);
}

.customProductSelect--primary .productSelectOption.is-selected:hover,
.customProductSelect--primary .productSelectOption.is-selected:focus-visible {
  background: var(--yellow);
}

.productFilter input:focus,
.productFilter select:focus {
  border-color: var(--yellow);
}

.productSearchButton {
  height: .62rem;
  border: 0;
  border-radius: .04rem;
  background: var(--yellow);
  color: #111;
  font-size: clamp(14px, .18rem, 18px);
  font-weight: 700;
  cursor: pointer;
}

.productSearchButton img {
  width: .2rem;
  height: .2rem;
  margin-right: .08rem;
  vertical-align: -.03rem;
}

.productSearchButton:hover {
  background: #fff;
}

.filterCriteria {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .12rem;
  min-height: .42rem;
  margin-top: .08rem;
}
.filterCriteria:not(:has(*)),
.filterCriteria:empty {
  display: none;
}

.filterCriteriaLabel,
.filterCriteriaReset {
  color: #fff;
  font-size: clamp(14px, .18rem, 18px);
  line-height: .3rem;
}

.filterCriteriaReset {
  display: inline-flex;
  align-items: center;
  gap: .08rem;
  margin-left: .18rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.filterCriteriaReset::before {
  content: '';
  width: .2rem;
  height: .2rem;
  background: url(../images/reset.png) center center/contain no-repeat;
}

.filterCriteriaReset:hover {
  color: var(--yellow);
}

.filterChip {
  display: inline-flex;
  align-items: center;
  gap: .12rem;
  min-height: .34rem;
  padding: .05rem .15rem;
  border: 0;
  border-radius: 1rem;
  background: var(--yellow);
  color: #111;
  font-size: clamp(12px, .16rem, 16px);
  line-height: .24rem;
  cursor: pointer;
}

.filterChipClose {
  display: inline-block;
  font-size: clamp(14px, .2rem, 20px);
  font-weight: 400;
  line-height: .12rem;
}

.filterChip:hover {
  background: #e6d900;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: .3rem .25rem;
  margin-top: .5rem;
}

.productCard {
  min-width: 0;
  /*min-height: 4.73rem;*/
  height: auto;
  padding: .1rem 0.1rem 0.28rem;
  border: .01rem solid #252525;
  border-radius: .08rem;
  background: rgba(0, 0, 0, .95);
  color: #fff;
  transition: transform .25s ease, border-color .25s ease;
}
.productGrid .productCard .badge{
    position: absolute;
    top: -0.07rem;
    right: -0.08rem;
    width: 0.7rem;
    height: 0.7rem;
}
.productCard:hover {
  border-color: rgba(255, 241, 0, .6);
  transform: translateY(-.08rem);
}

.productCardImage {
  display: flex;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: .08rem;
  background: #404040;
}

.productCardImage img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  transition: transform .3s ease;
}

.productCard:hover .productCardImage img {
  transform: scale(1.06);
}

.productCardTitle {
  min-height: 0.54rem;
  margin-top: .27rem;
  padding: 0 0.14rem 0 0.2rem;
  /* padding-right: .2rem; */
  color: #fff;
  font-size: clamp(14px, .18rem, 18px);
  font-weight: 700;
  line-height: 1.25;
}

.productCardCode {
    height: 0.27rem;
  margin-top: .1rem;
  padding-left: 0.2rem;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(14px, .18rem, 18px);
  width: calc(100% - 0.5rem);
}

.productCardMeta {
    padding: 0 0.14rem 0 0.2rem;
  margin-top: .16rem;
  color: rgba(255, 255, 255, .6);
  font-size: clamp(12px, .16rem, 16px);
  line-height: 1.55;
}

.productFavorite {
  float: right;
  width: .3rem;
  height: .3rem;
  margin-top: -.35rem;
  margin-right: 0.14rem;
  border: .01rem solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.productFavorite img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.productFavorite.is-favorite {
  border-color: var(--yellow);
  background: var(--yellow);
}

.productFavorite.is-favorite img {
  filter: none;
}

.productFavorite.active {
  /* border-color: var(--yellow);
  background: var(--yellow); */
}

.productFavorite.active img {
  filter: none;
}

.catalogMore {
  width: fit-content;
  display: block;
  margin: .7rem auto 0;
  padding: .13rem .27rem;
  border: .01rem solid #fff;
  border-radius: .5rem;
  background: transparent;
  color: #fff;
  font-size: clamp(14px, .18rem, 18px);
  font-weight: 700;
  line-height: .24rem;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
  cursor: pointer;
}

.catalogMore:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}

.catalogMore img {
  display: inline-block;
  width: .18rem;
  height: .18rem;
  margin: 0 0 -.03rem .13rem;
  object-fit: contain;
  transition: filter .25s ease;
}

.catalogMore:hover img {
  filter: brightness(0);
}

.productDetailModal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .5rem;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(10.050000190734863px);
}

.productDetailModal[hidden] {
  display: none;
}

body.productDetailOpen {
  overflow: hidden;
}

.productDetailDialog {
  position: relative;
  width: min(10rem, 100%);
  height: calc(100vh - 1rem);
  /* overflow-y: auto; */
  padding: .26rem .2rem .45rem .5rem;
  border-radius: .2rem;
  background: #171717;
  color: #fff;
}

.productDetailDialog .scrollBox {
  height: calc(100% - .45rem);
  overflow-y: auto;
  padding-right: .4rem;
  margin-top: .27rem;
}

.productDetailDialog .scrollBox::-webkit-scrollbar {
  width: .05rem;
}

.productDetailDialog .scrollBox::-webkit-scrollbar-track {
  /* margin: .97rem 0; */
  border-radius: .1rem;
  background: #626262;
}

.productDetailDialog .scrollBox::-webkit-scrollbar-thumb {
  border-radius: .1rem;
  background: #9a9a9a;
}

.productDetailDialog h2 {
  padding-right: .35rem;
  color: #fff;
  font-size: clamp(16px, .24rem, 24px);
  font-weight: 700;
  line-height: .36rem;
}

.productDetailClose {
  position: absolute;
  top: .25rem;
  right: .25rem;
  width: .22rem;
  height: .22rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.productDetailClose::before,
.productDetailClose::after {
  position: absolute;
  top: .1rem;
  left: 0;
  width: .22rem;
  height: .02rem;
  background: #fff;
  content: '';
}

.productDetailClose::before {
  transform: rotate(45deg);
}

.productDetailClose::after {
  transform: rotate(-45deg);
}

.productDetailClose:hover::before,
.productDetailClose:hover::after {
  background: var(--yellow);
}

.productDetailMedia {
  position: relative;
  display: grid;
  height: 7.75rem;
  /* margin-top: .21rem; */
  place-items: center;
  overflow: hidden;
  border-radius: .1rem;
  background: #404040;
}

.productDetailMedia img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.productDetailFavorite {
  position: absolute;
  z-index: 1;
  bottom: .2rem;
  right: .2rem;
  width: .3rem;
  height: .3rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.productDetailFavorite img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .2s ease;
}

.productDetailFavorite:hover img,
.productDetailFavorite.is-favorite img {
  filter: none;
}

.productDetailSpecs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem .5rem;
  margin-top: .25rem;
  padding: .32rem .56rem;
  border-radius: .1rem;
  background: #2b2b2b;
}

.productDetailSpecs dl {
  min-width: 0;
}

.productDetailSpecs dt {
  color: #fff;
  font-size: clamp(12px, .16rem, 16px);
  line-height: .24rem;
}

.productDetailSpecs dd {
  margin-top: .09rem;
  color: #fff;
  font-size: clamp(14px, .18rem, 18px);
  font-weight: 700;
  line-height: .27rem;
  overflow-wrap: anywhere;
}

.productDetailSupporting {
  margin-top: .26rem;
  height: 5.06rem;
  border-radius: .1rem;
}

.productDetailSupporting video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productTableWrap {
  width: 100%;
  overflow-x: auto;
  margin-top: .32rem;
}

.productTable {
  width: 100%;
  min-width: 8.8rem;
  table-layout: fixed;
  border-collapse: collapse;
  background: transparent;
  color: #fff;
}

.productTable th,
.productTable td {
  padding: .16rem .18rem;
  border-bottom: 1px solid #585858;
  text-align: left;
  vertical-align: middle;
  font-size: clamp(12px, .16rem, 16px);
  line-height: .24rem;
}

.productTable th {
  background: rgba(0, 0, 0, .9);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.productTable tbody tr {
  background: rgba(0, 0, 0, .9);
}

.productTable tbody tr:hover {
  background: rgba(0, 0, 0, .78);
}

.productTable th:nth-child(1),
.productTable td:nth-child(1) {
  width: 14%;
  white-space: nowrap;
}

.productTable th:nth-child(2),
.productTable td:nth-child(2) {
  width: 36.5%;
}

.productTable th:nth-child(3),
.productTable td:nth-child(3) {
  width: 17.5%;
  white-space: nowrap;
}

.productTable th:nth-child(4),
.productTable td:nth-child(4) {
  width: 19.5%;
  white-space: nowrap;
}

.productTable th:last-child,
.productTable td:last-child {
  width: 12.5%;
  white-space: nowrap;
}

.productTableEmpty {
  padding: .35rem .18rem !important;
  color: rgba(255, 255, 255, .72);
  text-align: center !important;
}

.productTableVideo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .06rem;
  min-width: .86rem;
  padding: .04rem .13rem;
  border: 1px solid var(--yellow);
  border-radius: .4rem;
  background: transparent;
  color: var(--yellow);
  font: inherit;
  cursor: pointer;
}

.productTableVideo span {
  position: relative;
  display: inline-block;
  width: .17rem;
  height: .17rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.productTableVideo span::after {
  position: absolute;
  top: .04rem;
  left: .06rem;
  border-top: .04rem solid transparent;
  border-bottom: .04rem solid transparent;
  border-left: .055rem solid currentColor;
  content: '';
}

.productTableVideo:hover {
  background: var(--yellow);
  color: #111;
}

.productVideoDialog {
  height: auto;
  max-height: calc(100vh - 1rem);
}

.productVideoMeta {
  display: flex;
  flex-wrap: wrap;
  gap: .12rem .35rem;
  margin-top: .22rem;
  color: #fff;
  font-size: clamp(12px, .16rem, 16px);
  line-height: .24rem;
}

.productVideoMeta b {
  font-weight: 700;
}

.productVideoFrame {
  height: min(5.2rem, calc(100vh - 2.5rem));
  margin-top: .22rem;
}

.productVideoFrame video {
  border-radius: .1rem;
  background: #000;
}

@media (max-width: 768px) {
   .productsHighlights .productCard .badge{
       width: 1.4rem;
       height: 1.4rem;
   }    

  .productsPage {
    padding-top: 1.08rem;
  }

  .productsHighlights {
    min-height: auto;
  }

  .productGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: .16rem;
  }

  .featuredProductWrap,
  .productsArrivalsSwiper{
    width: 100%;
  }
  .productSelectOption{
      min-height: auto;
      padding: 6px 10px;
  }
  .productFilter {
    grid-template-columns: 1fr;
    gap: .15rem;
    padding: .2rem;
  }

  .productSelectFields {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: .15rem;
  }

  .filterCriteria {
    grid-column: auto;
  }

  .keywordField,
  .productSearchButton {
    grid-column: auto;
  }

  .productSearchButton {
    width: 100%;
  }

  .productCard {
    min-height: auto;
    padding: .08rem .15rem .2rem;
  }

  .productCardImage {
      height: auto;
      aspect-ratio: 7 / 6;
  }

  .productTable {
    min-width: 5.6rem;
  }

  .productTable th,
  .productTable td {
    padding: .1rem .1rem;
    font-size: clamp(11px, .14rem, 14px);
    line-height: .2rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .productTableVideo {
    white-space: nowrap;
  }

  /* 覆盖桌面端 nth-child 列宽/nowrap（需同优先级选择器才能生效） */
  .productTable th:nth-child(1),
  .productTable td:nth-child(1) {
    width: 23%;
    white-space: normal;
  }

  .productTable th:nth-child(2),
  .productTable td:nth-child(2) {
    width: 34%;
  }

  .productTable th:nth-child(3),
  .productTable td:nth-child(3) {
    width: 14%;
    white-space: normal;
  }

  .productTable th:nth-child(4),
  .productTable td:nth-child(4) {
    width: 13%;
    white-space: normal;
  }

  .productTable th:last-child,
  .productTable td:last-child {
    width: 16%;
  }
  .productArrivalNext{
    right: .12rem;
  }
  .productArrivalPrev{
    left: .12rem;
  }
  .productCardTitle {
    min-height: .65rem;
    margin-top: .14rem;
    display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: .2rem;
  }

  .productCardMeta {
    margin-top: .08rem;
  }

  .productsHighlights .productCard {
    height: auto;
    padding: .08rem .15rem .3rem;
  }

  .productsHighlights .productCardImage {
    height: auto;
      aspect-ratio: 7 / 6;
  }

  .productsHighlights .productCardTitle {
    height: auto;
    margin-top: .14rem;
    padding-right: .2rem;
  }

  .productsHighlights .productFavorite {
    top: 2.55rem;
    top: 4.3rem;
    right: .25rem;
  }

  .filterCriteria {
    gap: .18rem;
  }

  .filterCriteriaReset {
    margin-left: .08rem;
  }

  .productDetailModal {
    padding: .15rem;
  }

  .productDetailDialog {
    width: 100%;
    max-height: calc(80vh - .3rem);
    padding: .2rem;
    border-radius: .1rem;
  }

  .productDetailDialog h2 {
    line-height: .3rem;
  }

  .productDetailMedia {
        width: 100%;
        height: 5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        /* aspect-ratio: 7 / 6;*/
  }

  .productDetailSpecs {
    grid-template-columns: repeat(2, 1fr);
    gap: .2rem;
    padding: .26rem;
  }
  .productDetailSpecs dd{
      line-height: initial;
  }

  .productDetailSupporting {
    height: 2rem;
  }

  .productDetailFavorite {
    width: .4rem;
    height: .4rem;
    bottom: .24rem;
    right: .24rem;
  }
  .productDetailSupporting video{
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ===== 视频区域“网页全屏”(Web fullscreen) =====
   只把视频铺满浏览器窗口（CSS 实现），不调用浏览器原生 Fullscreen API，
   因此与 video 自带 controls 里的“普通全屏”互不影响。 */
.productDetailSupporting {
  position: relative;
}

.videoWebFullscreenBtn {
  position: absolute;
  top: .14rem;
  right: .14rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: .4rem;
  height: .4rem;
  padding: 0;
  border: 0;
  border-radius: .1rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.videoWebFullscreenBtn:hover,
.videoWebFullscreenBtn:focus-visible {
  background: rgba(0, 0, 0, .82);
  color: #fff000;
}

.videoWebFullscreenIcon {
  display: block;
  width: .2rem;
  height: .2rem;
  fill: currentColor;
  pointer-events: none;
}

.videoWebFullscreenIcon .videoWebFullscreenIconExit {
  display: none;
}

.videoWebFullscreenBtn[aria-pressed="true"] .videoWebFullscreenIconEnter {
  display: none;
}

.videoWebFullscreenBtn[aria-pressed="true"] .videoWebFullscreenIconExit {
  display: block;
}

.videoWebFullscreenTip {
  position: absolute;
  top: calc(100% + .08rem);
  right: 0;
  padding: .05rem .12rem;
  border-radius: .04rem;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: clamp(12px, .13rem, 14px);
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.videoWebFullscreenBtn:hover .videoWebFullscreenTip,
.videoWebFullscreenBtn:focus-visible .videoWebFullscreenTip {
  opacity: 1;
}

.videoWebFullscreenTip .videoWebFullscreenTipExit {
  display: none;
}

.videoWebFullscreenBtn[aria-pressed="true"] .videoWebFullscreenTipEnter {
  display: none;
}

.videoWebFullscreenBtn[aria-pressed="true"] .videoWebFullscreenTipExit {
  display: inline;
}

/* 网页全屏状态：弹窗本身就是全屏遮罩，这里让它整体铺满浏览器窗口 */
.productDetailModal.videoWebFullscreen {
  padding: 0;
}

.productDetailModal.videoWebFullscreen .productDetailDialog {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 0;
  border-radius: 0;
  background: #000;
}

.productDetailModal.videoWebFullscreen .productDetailDialog .scrollBox {
  height: 100%;
  margin-top: 0;
  padding-right: 0;
  overflow: hidden;
}

.productDetailModal.videoWebFullscreen .productDetailDialog h2,
.productDetailModal.videoWebFullscreen .productVideoMeta,
.productDetailModal.videoWebFullscreen .productDetailMedia,
.productDetailModal.videoWebFullscreen .productDetailSpecs {
  display: none;
}

.productDetailModal.videoWebFullscreen .productDetailSupporting {
  height: 100%;
  margin-top: 0;
  border-radius: 0;
}

.productDetailModal.videoWebFullscreen .productDetailSupporting video {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
  object-fit: contain;
}

/* 全屏时关闭按钮挪到左上角，避免与右上角的网页全屏按钮重叠 */
.productDetailModal.videoWebFullscreen .productDetailClose {
  top: .16rem;
  right: auto;
  left: .16rem;
  z-index: 5;
}

@media (max-width: 768px) {
  .videoWebFullscreenBtn {
    top: .1rem;
    right: .1rem;
    width: .6rem;
    height: .6rem;
    border-radius: .12rem;
  }

  .videoWebFullscreenIcon {
    width: .3rem;
    height: .3rem;
  }

  .videoWebFullscreenTip {
    display: none;
  }
}
