* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: #1d2341;
  background: #fff;
  font-family: Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
button { font: inherit; color: inherit; }
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #fff;
  border-bottom: 1px solid rgba(142, 152, 180, 0.25);
}
.logo {
  display: block;
  width: 246px;
  height: 32px;
}
.page {
  flex: 1;
  min-height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  background: #f4f9ff url("bg.png") center / cover no-repeat;
}
h1 {
  margin: 116px 0 32px;
  font-size: 36px;
  line-height: 42px;
  font-weight: 600;
  text-align: center;
}
.lead {
  margin: 0;
  max-width: 920px;
  padding: 0 16px;
  text-align: center;
}
.lead p {
  margin: 0;
  font-size: 14px;
  line-height: 21px;
}
.cards {
  width: 1300px;
  max-width: calc(100% - 16px);
  margin: 120px auto 0;
  display: flex;
  justify-content: space-between;
}
.card {
  position: relative;
  width: 224px;
  height: 224px;
  margin: 0 18px;
  padding: 56px 0 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-align: center;
  cursor: pointer;
}
.card-win { background-image: url("win.png"); }
.card-mac { background-image: url("mac.png"); }
.card-android { background-image: url("android.png"); }
.card-ios { background-image: url("ios.png"); }
.card-harmony { background-image: url("harmony.png"); }
.card-android:hover { background-image: url("android-hover.png"); }
.card-ios:hover { background-image: url("ios-hover.png"); }
.card-harmony:hover { background-image: url("harmony-hover.png"); }
.icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
}
.icon svg { display: block; width: 72px; height: 72px; }
.label {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 24px;
  line-height: 36px;
}
.qr-float {
  position: absolute;
  top: 44px;
  left: 62px;
  width: 100px;
  height: 100px;
  opacity: 0;
}
.card-desk:hover .icon,
.card-desk:hover .qr-float {
  transition: 0.3s ease-in-out;
  transform: scale(0.7);
}
.card-desk:hover .icon { opacity: 0; }
.card-desk:hover .qr-float { opacity: 1; }
.qr-mask {
  position: absolute;
  top: 0;
  left: 27px;
  width: 171px;
  height: 171px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(29, 35, 65, 0.5);
  opacity: 0;
}
.qr-mask img { width: 160px; height: 160px; display: block; }
.scan {
  display: block;
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  opacity: 0;
}
.card-scan:hover .icon {
  opacity: 0;
  transform: scale(0.7);
  transition: 0.3s ease-in-out;
}
.card-scan:hover .label { opacity: 0; }
.card-scan:hover .qr-mask,
.card-scan:hover .scan {
  opacity: 1;
  transform: scale(0.7);
  transition: 0.3s ease-in-out;
}
.hotline {
  margin: auto auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8e98b4;
  font-size: 12px;
  line-height: 18px;
}
.hotline p { margin: 12px 0; padding-left: 8px; }
@media (max-width: 1200px) {
  h1 { margin: 48px 16px 20px; font-size: 28px; line-height: 36px; }
  .cards {
    width: 100%;
    max-width: 760px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .card { margin: 0; }
  .hotline { margin-top: 40px; }
}
@media (max-width: 520px) {
  .logo { width: 196px; height: auto; }
  h1 { font-size: 24px; line-height: 32px; }
  .card { width: 148px; height: 148px; flex: 0 0 148px; padding-top: 32px; }
  .icon, .icon svg { width: 48px; height: 48px; }
  .label { margin-top: 6px; font-size: 16px; line-height: 24px; }
  .scan { font-size: 18px; line-height: 28px; }
  .qr-float { top: 28px; left: 34px; width: 72px; height: 72px; }
  .qr-mask { left: 14px; width: 120px; height: 120px; margin-top: 14px; }
  .qr-mask img { width: 108px; height: 108px; }
}
