:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #17181b;
  background: #f4f6f8;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f4f6f8;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

.masthead {
  min-height: 104px;
  padding: 16px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #ffffff;
  background: #0c0d10;
  border-bottom: 4px solid #e31d32;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  width: 64px;
  height: 64px;
  border: 1px solid #34363d;
  border-radius: 8px;
}

.brand span {
  display: grid;
  gap: 3px;
}

.brand strong {
  font-size: 24px;
  line-height: 1;
}

.brand small {
  color: #aeb2bc;
  font-size: 11px;
  font-weight: 700;
}

.region-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  padding: 4px;
  border: 1px solid #34363d;
  border-radius: 8px;
  background: #181a1f;
}

.region-tabs button {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 5px;
  color: #bfc3cc;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.region-tabs button:hover {
  color: #ffffff;
  background: #262930;
}

.region-tabs button[aria-selected="true"] {
  color: #17181b;
  background: #ffffff;
}

main {
  width: min(1120px, calc(100% - 48px));
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  padding: 54px 0 64px;
}

.intro {
  max-width: 720px;
  margin-bottom: 38px;
}

.eyebrow,
.region-label {
  margin: 0 0 10px;
  color: #e31d32;
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
}

.lede {
  margin: 16px 0 0;
  color: #62666f;
  font-size: 18px;
  line-height: 1.65;
}

.region-panel[hidden] {
  display: none;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d9dde3;
}

.panel-heading h2 {
  margin: 0;
  font-size: 26px;
}

.panel-heading .region-label {
  margin-bottom: 6px;
}

.availability {
  color: #62666f;
  font-size: 13px;
  font-weight: 700;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.store-grid-cn {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-card {
  min-height: 112px;
  padding: 18px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #ffffff;
}

.store-card.featured {
  min-height: 138px;
  border-top: 4px solid #e31d32;
}

.store-card.global-android {
  border-top-color: #23a866;
}

.store-card.rustore {
  border-top-color: #0878ff;
}

.store-card.compact {
  min-height: 94px;
}

.store-image,
.store-mark {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.store-mark {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #212329;
  font-size: 17px;
  font-weight: 800;
}

.store-mark-android,
.store-mark.play {
  background: #23a866;
}

.store-mark.mi {
  background: #ff6900;
}

.store-mark.oppo {
  background: #168f5b;
}

.store-mark.vivo {
  background: #4476e8;
}

.store-mark.tencent {
  background: #169fe6;
}

.store-copy {
  min-width: 0;
}

.store-copy h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.store-copy p {
  margin: 0;
  color: #6a6e77;
  font-size: 13px;
  line-height: 1.45;
}

.store-action,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
}

.store-action {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid #c9cdd4;
  border-radius: 6px;
  color: #25272c;
  background: #ffffff;
  white-space: nowrap;
}

.store-action:hover {
  border-color: #777c86;
  background: #f3f4f6;
}

.store-action.primary {
  border-color: #17181b;
  color: #ffffff;
  background: #17181b;
}

.store-action.primary:hover {
  background: #34363c;
}

.icon-link {
  width: 42px;
  height: 42px;
  border: 1px solid #c9cdd4;
  border-radius: 50%;
  font-size: 22px;
}

.icon-link:hover {
  border-color: #17181b;
  background: #f3f4f6;
}

footer {
  min-height: 82px;
  padding: 24px max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 14px;
  color: #aeb2bc;
  background: #0c0d10;
  font-size: 13px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer-separator {
  width: 1px;
  height: 16px;
  background: #454851;
}

@media (max-width: 760px) {
  .masthead {
    padding: 16px 18px 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand strong {
    font-size: 21px;
  }

  .region-tabs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .region-tabs button {
    min-width: 0;
    padding: 8px 6px;
    font-size: 13px;
  }

  main {
    width: min(100% - 32px, 640px);
    padding: 38px 0 48px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 16px;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .store-grid,
  .store-grid-cn {
    grid-template-columns: 1fr;
  }

  .store-card,
  .store-card.featured {
    min-height: 108px;
    padding: 15px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .store-image,
  .store-mark {
    width: 44px;
    height: 44px;
  }

  .store-action {
    padding: 9px 11px;
    font-size: 13px;
  }

  footer {
    min-height: 74px;
    padding: 20px 18px;
    flex-wrap: wrap;
  }
}

@media (max-width: 440px) {
  .store-card,
  .store-card.featured {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .store-action,
  .icon-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .icon-link {
    height: 40px;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

