/* download card */
.container_dcard {
  max-width: 1200px;
  margin: 30px auto 30px auto;
  padding: 16px 20px 16px 20px;
  display: flex;
  flex-direction: column;
}


.contents.download {
  justify-content: center;
  flex-direction: column;
  width: 1300px;
}

.contents .dcard_wrap {
  display: flex;
  gap: 30px;
  justify-content: space-between;
}

.contents .dcard {
  width: 250px;
  height: 350px;
  position: relative;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.contents .dcard-image {
  max-width: 100%;
  transform: scale(1);
  transition: 0.2s all ease;
}

.contents .dcard-details {
  background: #fff;
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  bottom: 0;
  padding: 20px 0 0 0;
  transition: 0.2s all ease;
}

.contents .dcard-details h2 {
  margin: 0;
  color: #595959;
  font-size: 24px;
  font-weight: 700;
  margin-top: 8px;
  padding-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 57px;
}

.contents .dcard-details p {
  color: #666;
  font-size: 15px;
  line-height: 1.8em;
  opacity: 0;
  transition: 0.4s all ease;
}

.post-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 0;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.post-meta>.wrap {
  color: #595959;
  font-size: 10px;
  margin-bottom: 12px;
}

a.dcard-btn {
  min-width: 70px;
  background: #FABE00;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  transition: all 0.3s;
  padding-top: 9px;
}

a.dcard-btn:hover {
  background: #FABE30;
}

.post-meta span {
  margin-right: 1em;
}

.dcard:hover,
.dcard.hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.dcard:hover .dcard-image,
.dcard.hover .dcard-image {
  transform: scale(1.3);
  opacity: 0.6;
}

.dcard:hover .dcard-details,
.dcard.hover .dcard-details {
  top: 5%;
}

.dcard:hover .dcard-details p,
.dcard.hover .dcard-details p {
  opacity: 1;
}

.dcard-details .btn_wrap {
  margin-top: 30px;
  display: flex;
  flex-flow: column;
  gap: 10px;
}

.dcard:hover .dcard-details .btn_wrap {
  margin-top: 8px;
}

.dcard-details .btn {
  box-sizing: border-box;
  background: #FABE00;
  color: #fff;
  font-size: 16px !important;
  border-radius: 50px;
  padding: 8px;
  width: 80%;
  height: 38px;
}

.dcard-details .btn:hover {
  background: #1467c0;
}

.mtop {
  margin-top: 20px;
}

.first_section.product_wrap .contents video {
  border-radius: 5px;
  box-shadow: 0px 1px 2px #999;
  transition: all 0.3s;
}

.first_section.product_wrap:hover .contents video {
  box-shadow: 0px 5px 15px #999;
}

.btn_wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn_wrap .btn {
  background-color: #FABE00;
  color: #fff;
  padding: 10px 30px;
  border-radius: 30px;
  font-size: 20px;
  transition: all 0.3s;
}

.btn_wrap .btn:hover {
  background-color: #FABE00;
}

/* Card with icon overlay styles */
.contents .dcard-image-section {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.contents .dcard-image-section .dcard-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contents .dcard-icon-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #31B3F0;
}

.contents .dcard-icon-overlay i {
  margin: 0;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

/* Special styling for Android TV dcard with stacked icon and image */
.contents .dcard-icon-overlay.android-tv {
  flex-direction: column;
  gap: 0;
}

.contents .dcard-icon-overlay.android-tv i {
  margin: 0;
  padding: 0;
  line-height: 1;
  transform: translateY(4px);
  z-index: 1;
}

.contents .dcard-icon-overlay.android-tv img {
  width: 40px;
  height: auto;
  margin: 0;
  padding: 0;
  transform: translateY(-4px);
  z-index: 2;
  color: #31b3f0;
}

/* Special styling for Samsung Tizen dcard */
.contents .dcard-icon-overlay.samsung img {
  width: 40px;
  height: auto;
  margin: 0;
  padding: 0;
  fill: #31b3f0;
}

.contents .dcard-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.download_btn {
  display: flex;
  justify-content: space-evenly;
}

.download_btn img {
  border-radius: 50px;
  width: 22px;
  height: 22px;
  box-shadow: 0px 2px 2px #00000069;
  transform: translateY(-1px);
  transition: ease-in-out 0.3s;
}

.download_btn:hover img {
  transform: translateY(2px);
}

/* download dcard  end */
.dcard-icon-overlay i.fa-brands {
font-family: "Font Awesome 6 Brands" !important;
font-weight: 400 !important;
}
.dcard-icon-overlay .fa-2xl {
line-height: 1 !important; /* 避免被 css/font.css 的 0.03125em 裁切 */
}

@media only screen and (max-width: 1024px) {
  .tabletBackground {
    display: flex;
  }

  .contents .dcard_wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 80vw !important;
    margin: 0 auto 20px auto !important;
    max-width: calc(3 * 260px + 2 * 20px);
  }

  .contents .dcard {
    width: 100% !important;
    flex: none !important;
    max-width: 260px;
  }
}


@media only screen and (max-width: 1024px) {
  .contents.download {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4vw !important;
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
  }

  .contents .dcard_wrap {
    display: contents !important;
    margin: 0 !important;
  }

  .contents .dcard {
    width: 100% !important;
    flex: none !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    order: initial !important;
    grid-column: initial !important;
  }

  .card-icon-overlay.android-tv img[alt="Android TV"] {
    display: none !important;
  }

  .productHeader .contents {
    height: 350px;
  }
}
