:root {
  color-scheme: light;
  --blue: #087ff5;
  --blue-soft: #eaf4ff;
  --orange: #f59a00;
  --text: #050505;
  --muted: #8a8f98;
  --line: #ececec;
}

* { box-sizing: border-box; }
html { min-width: 320px; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  background: #f6f6f6;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.page-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 7px 7px calc(10px + env(safe-area-inset-bottom));
  background: #f6f6f6;
  overflow: visible;
}

.download-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 8%);
}

.app-overview {
  position: relative;
  padding: 17px 14px 0;
}

.language-toggle {
  position: fixed;
  z-index: 90;
  top: 10px;
  right: max(17px, calc((100vw - 430px) / 2 + 17px));
  display: grid;
  width: 52px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
  cursor: pointer;
  font-size: 18px;
}

.app-identity {
  position: relative;
  min-height: 177px;
  padding-left: 84px;
}

.app-icon {
  position: absolute;
  top: 43px;
  left: 0;
  width: 70px;
  height: 70px;
  border-radius: 17px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.app-copy h1 {
  margin: 0 62px 7px 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.app-copy > p:first-of-type {
  margin: 0 62px 8px 0;
  color: #8c9098;
  font-size: 15px;
  line-height: 22px;
}
.compact-rating {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #727780;
  font-size: 14px;
  white-space: nowrap;
}
.orange-stars {
  color: var(--orange);
  font-size: 18px;
  letter-spacing: -2px;
}
.compact-rating strong { font-weight: 400; }

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.install-button, .help-button {
  height: 41px;
  border-radius: 23px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}
.install-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 3px rgb(8 127 245 / 28%);
}
.help-button {
  border: 2px solid #bbd8fb;
  background: #f5f8fd;
  color: #0874e5;
}
.install-button:active, .help-button:active { transform: scale(.985); }
.purchase-note {
  margin: 9px 0 0;
  color: #858a92;
  font-size: 14px;
  line-height: 20px;
}

.store-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 15px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.metric:not(:last-child)::after {
  position: absolute;
  top: 7px;
  right: 0;
  width: 1px;
  height: 71px;
  background: #e7e7e7;
  content: "";
}
.metric span {
  color: #8c9199;
  font-size: 13px;
  line-height: 20px;
}
.metric strong {
  margin-top: 6px;
  color: #8b8f96;
  font-size: 21px;
  line-height: 25px;
}
.metric small {
  color: #8b8f96;
  font-size: 14px;
  line-height: 19px;
}
.gray-stars {
  margin-top: 3px;
  color: #8f939b;
  font-size: 18px;
  letter-spacing: -3px;
}

.rating-section, .info-section { padding: 22px 14px 0; }
.rating-section h2, .info-section h2 {
  margin: 0;
  font-family: Georgia, "SimSun", serif;
  font-size: 27px;
  line-height: 37px;
}
.rating-panel {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 15px;
  margin-top: 34px;
  align-items: start;
}
.big-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.big-score strong {
  font-size: 68px;
  line-height: 68px;
  letter-spacing: -3px;
}
.big-score span {
  margin-top: 14px;
  color: #999ea6;
  font-size: 13px;
}
.rating-breakdown { padding-top: 4px; }
.rating-line {
  display: grid;
  grid-template-columns: 77px 1fr;
  height: 20px;
  align-items: center;
  gap: 7px;
}
.rating-line span {
  overflow: hidden;
  font-size: 15px;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}
.rating-line i {
  position: relative;
  display: block;
  height: 2px;
  overflow: hidden;
  background: #e6e6e6;
}
.rating-line b {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  background: #111;
}
.rating-breakdown p {
  margin: 7px 0 0;
  color: #4d5157;
  font-size: 16px;
  text-align: right;
}

.info-section { padding-top: 35px; padding-bottom: 16px; }
.info-list { margin: 20px 0 0; }
.info-list > div {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.info-list dt {
  flex: 0 0 auto;
  color: #969ba3;
  font-size: 18px;
}
.info-list dd {
  margin: 0;
  color: #050505;
  font-size: 17px;
  text-align: right;
  overflow-wrap: anywhere;
}
.disclaimer {
  margin: 22px 10px 0;
  color: #93979e;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}

.language-menu {
  position: fixed;
  z-index: 80;
  top: 56px;
  right: max(12px, calc((100vw - 430px) / 2 + 12px));
  width: 157px;
  max-height: min(480px, calc(100vh - 75px));
  overflow: hidden;
  border-radius: 0 0 13px 13px;
  background: #fff;
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}
.language-menu[hidden] { display: none; }
.language-list {
  max-height: inherit;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.language-list::-webkit-scrollbar { display: none; }
.language-option {
  display: grid;
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 16px;
  grid-template-columns: 29px 1fr 18px;
  align-items: center;
  border: 0;
  background: #fff;
  color: #101010;
  cursor: pointer;
  font-size: 14px;
  text-align: left;
}
.language-option.selected {
  background: var(--blue-soft);
  color: #076be7;
}
.language-code { font-size: 13px; letter-spacing: .3px; }
.language-check { font-size: 20px; text-align: right; }

.modal-overlay {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  padding: 18px 14px;
  place-items: center;
  background: rgb(0 0 0 / 43%);
}
.modal-overlay[hidden] { display: none; }
.help-modal {
  width: min(100%, 384px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 45px rgb(0 0 0 / 22%);
  transform: translateY(-10px);
}
.help-modal header {
  display: flex;
  min-height: 99px;
  padding: 0 18px;
  align-items: center;
  justify-content: space-between;
}
.help-modal h2 {
  margin: 0;
  font-size: 23px;
  line-height: 30px;
}
.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  font-size: 24px;
}
.modal-content {
  padding: 18px 17px 14px;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
}
.modal-intro {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 23px;
}
.modal-content ul {
  margin: 19px 0 0;
  padding-left: 21px;
}
.modal-content li {
  padding-left: 2px;
  font-size: 16px;
  line-height: 25px;
}
.modal-content li + li { margin-top: 8px; }
.modal-content a { color: #087ff5; text-decoration: none; }
.settings-icon {
  width: 24px;
  height: 24px;
  margin-left: 4px;
  vertical-align: middle;
  fill: #777c83;
}
.help-modal footer {
  display: flex;
  min-height: 66px;
  padding: 10px 17px;
  align-items: center;
  justify-content: flex-end;
}
.understand-button {
  min-width: 90px;
  height: 40px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.modal-open { overflow: hidden; }

[dir="rtl"] .language-menu { right: auto; left: max(12px, calc((100vw - 430px) / 2 + 12px)); }
[dir="rtl"] .language-toggle { right: auto; left: max(17px, calc((100vw - 430px) / 2 + 17px)); }
[dir="rtl"] .app-identity { padding-right: 84px; padding-left: 0; }
[dir="rtl"] .app-icon { right: 0; left: auto; }
[dir="rtl"] .app-copy h1,
[dir="rtl"] .app-copy > p:first-of-type { margin-right: 0; margin-left: 62px; }
[dir="rtl"] .language-option { grid-template-columns: 18px 1fr 29px; text-align: right; }
[dir="rtl"] .language-code { grid-column: 3; }
[dir="rtl"] .language-check { grid-column: 1; }
[dir="rtl"] .info-list dd, [dir="rtl"] .rating-breakdown p { text-align: left; }
[dir="rtl"] .rating-line b { right: 0; left: auto; }

@media (max-width: 370px) {
  .page-shell { padding-right: 5px; padding-left: 5px; }
  .app-overview { padding-right: 12px; padding-left: 12px; }
  .app-identity { padding-left: 76px; }
  .app-icon { width: 64px; height: 64px; }
  .compact-rating { gap: 4px; font-size: 12px; }
  .orange-stars { font-size: 16px; }
  .action-row { gap: 7px; }
  .rating-panel { grid-template-columns: 115px 1fr; gap: 8px; }
  .big-score strong { font-size: 61px; }
  .rating-line { grid-template-columns: 68px 1fr; }
  [dir="rtl"] .app-identity { padding-right: 76px; padding-left: 0; }
}

@media (min-width: 700px) {
  body { padding: 20px 0; }
  .page-shell { border-radius: 20px; }
}




