/* HardwareWallets 对比组件 */
.hwCompare,
.fiexdBtnBox {
  --hw-compare-max-width: 1200px;
  --hw-purple: #5D2DE2;
  --hw-purple-light: rgba(74, 33, 239, 0.1);
  --hw-green-light: rgba(121, 239, 189, 0.1);
  --hw-pill-active-green: #79EFBD;
  max-width: var(--hw-compare-max-width);
  margin-left: auto;
  margin-right: auto;
}
.fiexdBtnBox {
  background: #F5F7F9;
}
.hwCompare .hwExploreHeader {
  max-width: 1036px;
  margin: 0 auto 30px;
}
.hwCompare .hwExploreTitle {
  color: #000;
  font-weight: 700 !important;
  font-size: 48px !important;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: center;
  margin: 0;
}
.hwCompare .hwExploreDesc {
  color: #000;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -2%;
  text-align: center;
  margin: 20px 0 0;
}
.hwCompare .compareTable,
#fiexdBtn .compareTable {
  display: flex;
  flex-direction: column;
  border: 1px solid #E4E4E4;
  overflow: hidden;
}
.hwCompare .compareRow,
#fiexdBtn .compareRow {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, 1fr);
  border-bottom: 1px solid #E4E4E4;
}
.hwCompare .compareRow:last-child,
#fiexdBtn .compareRow:last-child {
  border-bottom: none;
}
.hwCompare .compareCell,
#fiexdBtn .compareCell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  border-right: 1px solid #E4E4E4;
  min-height: 72px;
}
.hwCompare .compareCell:last-child,
#fiexdBtn .compareCell:last-child {
  border-right: none;
}
.hwCompare .compareCell .comparePlatformIconBox {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.hwCompare .compareCell .comparePlatformIconBox.comparePlatformConnection {
  gap: 5px;
}
.hwCompare .compareLabelCell {
  color: #000;
  padding: 20px 20px 20px 30px;
}
.hwCompare .compareHeader .compareProductCell,
#fiexdBtn .compareHeader .compareProductCell {
  background: #fff;
  color: #000;
  padding: 0;
}
.hwCompare .compareHeader .compareProductCellContent {
  width: 100%;
  box-sizing: border-box;
  padding: 20px;
  text-align: left;
}
#fiexdBtn .compareHeader .compareProductCell {
  background: #F5F7F9 !important;
}
.hwCompare .compareGroup .compareRow:not(.compareGroupTitle) .compareProductCell {
  color: #000;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -2%;
  text-align: center;
  word-break: break-word;
}
.hwCompare .compareGroupTitle .compareLabelCell {
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  align-items: flex-start;
  justify-content: center;
}
.hwCompare .compareRowLabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.hwCompare .compareGroup .compareRowLabel img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.hwCompare .compareGroup .compareRowLabel span {
  display: block;
  width: 100%;
  color: #000;
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  letter-spacing: -2%;
  text-align: left;
  word-break: break-word;
}
.hwCompare .compareCellValue {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 220px;
}
.hwCompare .compareCheckIcon,
.hwCompare .comparePlatformIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.hwCompare .comparePlatformIcon {
  width: 40px;
  height: 40px;
}
.hwCompare .compareHeader .imgBox {
  height: 224px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
  background: #F5F7F9;
}
.hwCompare .compareHeader .imgBox img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
}
.hwCompare .compareHeader .x1ImgBox {
  padding: 0 40px;
}
.hwCompare .compareHeader .s1ImgBox img {
  max-width: 174px;
}
.hwCompare .compareHeader .x1ImgBox img {
  max-width: 104px;
}
.hwCompare .compareHeader .s1proImgBox img {
  max-width: 182px;
}
.hwCompare .compareHeader .title {
  color: #000;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}
.hwCompare .compareHeader .star {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #666;
  line-height: 120%;
  letter-spacing: -2%;
}
.hwCompare .compareHeader .compareProductCellContent .priceBox {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}
.hwCompare .compareHeader .price {
  color: #000;
  font-weight: 700;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0;
  text-align: center;
}
.hwCompare .compareHeader .tip {
  color: #CCC;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -2%;
}
.hwCompare .compareHeader .btnBox {
  width: 100%;
  max-width: 220px;
}
.hwCompare .compareHeader button,
#fiexdBtn .compareHeader button {
  background: #4A21EF;
  width: auto;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
  line-height: 160%;
  letter-spacing: -2%;
  text-align: center;
}
/* fiexdBtn 吸顶栏 */
#fiexdBtn {
  position: fixed;
  left: 0;
  right: 0;
  top: 122px;
  display: none;
  z-index: 100;
}
.fiexdBtnBox {
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
#fiexdBtn .compareHeader .compareProductCell {
  padding: 20px;
  text-align: left;
}
#fiexdBtn .compareHeader .title {
  width: 100%;
  color: #000;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 24px;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: left;
}
#fiexdBtn .compareHeader .priceBox {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 16px;
}
#fiexdBtn .compareHeader .price {
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: 0;
  text-align: left;
}
#fiexdBtn .compareHeader .tip {
  width: 100%;
  color: #CCC;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -2%;
  text-align: left;
}
#fiexdBtn .compareHeader .btnBox {
  width: 100%;
}

/* 移动端吸顶栏内容 */
.fiexdBtnBox--mobile {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 16px;
  width: 100%;
  box-sizing: border-box;
}
.hwFixedMobileItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.hwFixedMobileItem .title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}
.hwFixedMobileItem .title span {
  display: block;
}
.hwFixedMobileItem .price {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}
.hwFixedMobileItem .addToCartBtn {
  background: #4A21EF;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  width: 100%;
  max-width: 140px;
  line-height: 1.3;
}

/* 双端切换 */
@media (min-width: 993px) {
  .hwCompare--mobile,
  .fiexdBtnBox--mobile {
    display: none !important;
  }
  .fiexdBtnBox--desktop {
    display: block;
  }
}
@media (max-width: 992px) {
  .hwCompare--desktop,
  .fiexdBtnBox--desktop {
    display: none !important;
  }
  .hwCompare--mobile {
    display: block;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .hwCompare--mobile .hwExploreTitle {
    font-size: 30px !important;
  }
  .hwCompare--mobile .hwExploreDesc {
    font-size: 18px;
  }
  #fiexdBtn {
    top: 60px;
  }
  .fiexdBtnBox--mobile {
    display: grid;
  }
}

/* 移动端对比 UI */
.hwCompareMobileSelector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.hwCompareMobileVs {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  padding: 0 2px;
}
.hwComparePill {
  border: 1px solid #E4E4E4;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  background: #fff;
  color: #000;
  cursor: pointer;
  line-height: 1;
}
.hwComparePill.is-active.hwComparePill--purple {
  background: var(--hw-purple);
  border-color: var(--hw-purple);
  color: #fff;
}
.hwComparePill.is-active.hwComparePill--green,
.hwComparePill.is-active.hwComparePill--neutral {
  background: var(--hw-pill-active-green);
  border-color: var(--hw-pill-active-green);
  color: #000;
}
.hwComparePill:not(.is-active) {
  background: #fff;
  border-color: #E4E4E4;
  color: #000;
}

.hwCompareMobileCards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 40px;
}
.hwCompareMobileCard {
  /* border-radius: 12px; */
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #E0E0E0
}
.hwCompareMobileCard--theme-purple {
  background: var(--hw-purple-light);
}
.hwCompareMobileCard--theme-green {
  background: var(--hw-green-light);
}
.hwCompareMobileCard--theme-neutral {
  background: rgba(121, 239, 189, 0.1);
}
.hwCompareMobileCardImg {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 100%;
}
.hwCompareMobileCardImg img {
  max-height: 100%;
  max-width: 80%;
  width: auto;
}
.hwCompareMobileCardTitle {
  display:flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hwCompareMobileCardTitle span {
  display: block;
}
.hwCompareMobileCardPrice {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}
.hwCompareMobileCardBtn {
  background: #4A21EF;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  width: 100%;
  max-width: 140px;
  line-height: 1.3;
}

.hwCompare--mobile .divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
  color: #E4E4E4;
}
.hwCompare--mobile .divider::before,
.hwCompare--mobile .divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E4E4E4;
}
.hwCompare--mobile .divider::before {
  margin-right: 6px;
}
.hwCompare--mobile .divider::after {
  margin-left: 6px;
}
.hwCompare--mobile .divider .content {
  font-size: 12px;
  line-height: 1;
}
.hwCompareMobileRowValues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.hwCompareMobileValue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
  font-size: 12px;
  color: #000;
  min-height: 32px;
}
.hwCompareMobileValue .hwCompareMobileRowLabel {
  width: 100%;
  text-align: left;
  color: #666666;
  font-weight: 400;
  font-size: 14px;
  line-height: 120%;
  letter-spacing: -2%;
  word-break: break-word;
}
.hwCompareMobileValue .hwCompareMobileValueContent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #000;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: -2%;
  text-align: left;
}
.hwCompareMobileValue .compareCheckIcon {
  width: 20px;
  height: 20px;
}
.hwCompareMobileValue .comparePlatformIcon {
  width: 20px;
  height: 20px;
}
.hwCompareMobileValue .comparePlatformIconBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}
.hwCompareMobileValue .comparePlatformIconBox.comparePlatformConnection {
  flex-direction: row;
  gap: 4px;
}
.hwCompareMobileValue .comparePlatformIconBox.comparePlatformConnection span {
  font-size: 15px;
  line-height: 1.2;
}
