:root {
  color-scheme:light;
  --blue:#1877f2;
  --ink:#172331;
  --muted:#657384;
  --line:#e6ebf0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

* {
  box-sizing:border-box;
  margin:0;
  padding:0;
}

body {
  background:#f5f7fa;
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  font:inherit;
  cursor:pointer;
}

a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #1877f2;
  outline-offset:4px;
}

.topbar {
  background:#ffffffed;
  border-bottom:1px solid var(--line);
}

.topbar-inner {
  max-width:760px;
  margin:auto;
  height:66px;
  padding:0 20px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
}

.back {
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:24px;
}

.brand {
  text-align:center;
  font-size:20px;
  font-weight:750;
  letter-spacing:-.7px;
}

main {
  max-width:760px;
  margin:auto;
  padding:28px 20px 0;
}

.card {
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
}

.app-card {
  padding:30px;
  box-shadow:0 6px 24px #20385904;
}

.app-heading {
  display:flex;
  align-items:center;
  gap:22px;
}

.app-icon {
  width:88px;
  height:88px;
  flex-shrink:0;
  background:var(--blue);
  border-radius:23px;
  display:grid;
  place-items:center;
  box-shadow:0 6px 16px #1877f221;
}

.app-icon svg {
  width:60px;
  height:60px;
  fill:white;
}

h1 {
  font-size:30px;
  letter-spacing:-1px;
  line-height:1.25;
  margin-bottom:6px;
}

.publisher {
  color:var(--muted);
  font-size:14px;
}

.app-tag {
  display:inline-block;
  font-size:12px;
  color:#2565b8;
  background:#edf5ff;
  border-radius:6px;
  padding:2px 9px;
  margin-top:9px;
}

.downloads {
  margin-top:24px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.download {
  min-height:56px;
  border:1px solid var(--blue);
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:white;
  background:var(--blue);
  font-size:16px;
  font-weight:650;
  transition:background .2s,transform .2s;
}

.download.secondary {
  color:#1467d5;
  background:#f1f7ff;
  border-color:#d5e6fd;
}

.download svg {
  width:21px;
  height:21px;
  fill:currentColor;
}

.download:active {
  transform:scale(.98);
}

.download-note {
  font-size:12px;
  color:var(--muted);
  margin-top:12px;
  text-align:center;
}

.download-status {
  color:#875619;
  background:#fff6e7;
  border-radius:10px;
  font-size:13px;
  padding:12px 14px;
  margin-top:14px;
}

[hidden] {
  display:none!important;
}

.facts {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin-top:24px;
  padding-top:21px;
  border-top:1px solid var(--line);
  text-align:center;
}

.fact + .fact {
  border-left:1px solid var(--line);
}

.fact strong {
  display:block;
  font-size:15px;
  font-weight:650;
}

.fact span {
  color:var(--muted);
  font-size:12px;
}

section {
  margin-top:32px;
}

.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}

h2 {
  font-size:21px;
  font-weight:700;
  letter-spacing:-.4px;
}

.section-heading span {
  color:var(--muted);
  font-size:12px;
}

.gallery {
  display:flex;
  gap:14px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  padding:2px 1px 14px;
  scrollbar-width:thin;
  scrollbar-color:#cdd7e3 transparent;
}

.gallery img {
  width:200px;
  height:auto;
  aspect-ratio:460/995;
  flex-shrink:0;
  display:block;
  border-radius:20px;
  border:1px solid var(--line);
  scroll-snap-align:start;
  background:#eaf0f6;
}

.description {
  padding:24px;
}

.description p {
  font-size:14px;
  color:#526173;
  line-height:1.9;
}

.features {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--line);
}

.features strong {
  display:block;
  font-size:14px;
  font-weight:650;
}

.features p {
  font-size:12px;
  margin-top:5px;
}

.app-info {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 32px;
  padding:6px 24px;
}

.app-info dt {
  font-size:12px;
  color:var(--muted);
  margin-bottom:5px;
}

.app-info dd {
  font-size:14px;
  font-weight:550;
  overflow-wrap:anywhere;
}

footer {
  max-width:720px;
  margin:32px auto 0;
  padding:24px 20px calc(30px + env(safe-area-inset-bottom));
  border-top:1px solid var(--line);
  text-align:center;
  font-size:12px;
  color:var(--muted);
}

footer a {
  display:inline-flex;
  min-height:44px;
  align-items:center;
  color:#2565b8;
}

@media(hover:hover) {
  .back:hover {
    background:#edf2f8;
  }

  .download:hover {
    background:#0966de;
  }

  .download.secondary:hover {
    background:#e3efff;
  }

}

@media(max-width:480px) {
  .topbar-inner {
    height:60px;
    padding:0 16px;
  }

  main {
    padding:20px 16px 0;
  }

  .app-card {
    padding:22px 20px;
    border-radius:22px;
  }

  .app-heading {
    gap:16px;
  }

  .app-icon {
    width:72px;
    height:72px;
    border-radius:19px;
  }

  .app-icon svg {
    width:50px;
    height:50px;
  }

  h1 {
    font-size:26px;
  }

  .publisher {
    font-size:13px;
  }

  .download {
    font-size:15px;
    gap:7px;
    min-height:54px;
  }

  .download svg {
    width:18px;
  }

  .facts {
    margin-top:22px;
  }

  .fact strong {
    font-size:13px;
  }

  .gallery img {
    width:185px;
  }

  .description {
    padding:20px;
  }

  .features {
    grid-template-columns:1fr;
    gap:16px;
  }

  .features p {
    font-size:13px;
  }

  .app-info {
    padding:4px 20px;
  }

  section {
    margin-top:28px;
  }

}

@media(max-width:340px) {
  .downloads {
    grid-template-columns:1fr;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
  }

}

.ios-modal {
  border:0;
  padding:0;
  color:var(--ink);
  background:white;
  width:min(360px,calc(100% - 32px));
  max-height:85svh;
  margin:auto;
  border-radius:20px;
  box-shadow:0 16px 60px #0003;
}

.ios-modal::backdrop {
  background:#0008;
}

html.modal-open {
  overflow:hidden;
}

.copy-content {
  text-align:center;
  padding:28px 24px;
}

.safari-icon {
  width:64px;
  height:64px;
  border-radius:16px;
  margin-bottom:16px;
}

.copy-content h2 {
  font-size:20px;
  margin-bottom:10px;
}

.copy-content p {
  color:var(--muted);
  font-size:14px;
  line-height:1.8;
}

.copy-actions {
  display:flex;
  border-top:1px solid var(--line);
}

.copy-actions button {
  flex:1;
  min-height:54px;
  background:white;
  color:var(--blue);
  border:0;
}

.copy-actions button + button {
  border-left:1px solid var(--line);
  font-weight:600;
}

.ios-guide {
  width:min(680px,calc(100% - 48px));
  max-width:none;
  height:min(82vh,760px);
  height:min(82svh,760px);
  overflow:hidden;
}

.ios-guide[open] {
  display:flex;
  flex-direction:column;
}

.guide-header {
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 18px;
  background:#fffffff5;
  border-bottom:1px solid var(--line);
}

.guide-header h2 {
  font-size:19px;
}

.guide-close {
  flex-shrink:0;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:#f1f4f7;
  color:var(--muted);
  font-size:26px;
}

.guide-body {
  flex:1;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  padding:20px 24px calc(24px + env(safe-area-inset-bottom));
}

.guide-body > * {
  width:100%;
  max-width:400px;
  margin-left:auto;
  margin-right:auto;
}

.guide-step {
  padding:22px 0;
  border-bottom:1px solid var(--line);
}

.guide-step:last-child {
  border-bottom:0;
}

.guide-step p {
  font-size:14px;
  line-height:1.8;
  overflow-wrap:anywhere;
  margin-bottom:14px;
}

.guide-step img {
  display:block;
  width:100%;
  max-width:400px;
  height:auto;
  object-fit:contain;
  margin:0 auto;
  border:1px solid var(--line);
  border-radius:10px;
}

.toast {
  position:fixed;
  bottom:calc(32px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 32px);
  padding:12px 20px;
  border-radius:14px;
  background:#172331f2;
  color:white;
  font-size:14px;
  text-align:center;
  z-index:20;
  pointer-events:none;
}

@media(max-width:699px) {
  .ios-guide {
    width:100%;
    margin:auto 0 0;
    max-height:85svh;
    border-radius:20px 20px 0 0;
  }

  .guide-body {
    padding:16px 20px calc(24px + env(safe-area-inset-bottom));
  }

}

.about-lead {
  font-size:23px;
  line-height:1.4;
  letter-spacing:-.5px;
  margin-bottom:12px;
}

.feature-icon {
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border-radius:11px;
  background:#edf5ff;
  color:var(--blue);
  font-size:23px;
  margin-bottom:12px;
}

.app-info > div {
  min-width:0;
  padding:18px 0;
}

.app-info > div:nth-child(n+3) {
  border-top:1px solid var(--line);
}

.info-tag {
  display:inline-block;
  padding:3px 10px;
  background:#edf5ff;
  border-radius:6px;
  color:#2565b8;
  font-size:13px;
}

.info-footnote {
  font-size:12px;
  color:var(--muted);
  padding:12px 4px 0;
}

.rating-summary {
  padding:24px;
  display:grid;
  grid-template-columns:140px 1fr;
  align-items:center;
  gap:30px;
}

.score-block {
  text-align:center;
}

.score-block > strong {
  font-size:62px;
  line-height:1;
  letter-spacing:-3px;
  font-weight:750;
}

.rating-stars {
  color:#d58012;
  font-size:13px;
  letter-spacing:2px;
}

.score-block .rating-stars {
  margin-top:10px;
}

.score-block p {
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

.rating-distribution {
  min-width:0;
}

.rating-line {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:5px;
}

.rating-line > span {
  width:26px;
  font-size:11px;
  color:var(--muted);
}

.rating-track {
  flex:1;
  height:5px;
  border-radius:9px;
  background:#edf1f6;
  overflow:hidden;
}

.rating-track > div {
  height:100%;
  background:#8ca8ce;
  border-radius:9px;
}

.rating-total {
  text-align:right;
  font-size:12px;
  color:var(--muted);
  margin-top:10px;
}

.review-list {
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding:16px 1px 12px;
  scroll-snap-type:x mandatory;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  scrollbar-color:#cdd7e3 transparent;
}

.review {
  flex:0 0 310px;
  padding:20px;
  border-radius:18px;
  scroll-snap-align:start;
}

.review-heading,.review-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.review-heading h3 {
  font-size:14px;
  font-weight:650;
}

.review-heading > span {
  white-space:nowrap;
}

.review-heading > span,.review-meta > span:last-child {
  color:var(--muted);
  font-size:11px;
}

.review-meta {
  margin:8px 0 12px;
}

.review > p {
  color:#526173;
  font-size:13px;
  line-height:1.85;
}

@media(max-width:480px) {
  .about-lead {
    font-size:21px;
  }

  .features > div {
    display:grid;
    grid-template-columns:36px 1fr;
    column-gap:12px;
  }

  .feature-icon {
    grid-row:1/3;
    margin:0;
  }

  .features p {
    grid-column:2;
  }

  .rating-summary {
    padding:22px 18px;
    grid-template-columns:90px 1fr;
    gap:20px;
  }

  .score-block > strong {
    font-size:54px;
  }

  .review {
    flex-basis:min(290px,90%);
  }

}

@media(max-width:480px) {
  .app-info {
    grid-template-columns:minmax(0,1fr);
    gap:0;
  }

  .app-info > div {
    display:grid;
    grid-template-columns:76px minmax(0,1fr);
    gap:16px;
    align-items:center;
    padding:17px 0;
  }

  .app-info > div + div {
    border-top:1px solid var(--line);
  }

  .app-info dt {
    margin:0;
    font-size:13px;
  }

  .app-info dd {
    text-align:right;
    line-height:1.6;
  }

}

/* Rating distribution, shared by the corresponding page markup. */
.rating-width-88 {
  width: 88%;
}

.rating-width-8 {
  width: 8%;
}

.rating-width-2 {
  width: 2%;
}

.rating-width-1 {
  width: 1%;
}

.clipboard-helper {
  position:fixed;
  left:0;
  top:0;
  opacity:0;
  font-size:16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 24px;
}
