:root {
  --bg: #efefef;
  --text: #2f3338;
  --blue: #3d79e5;
  --blue-light: #c9d7f4;
  --line: #dadada;
  --star: #ebcd3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
}

.page-wrap {
  width: 100%;
  max-width: 576px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

.app-card {
  padding: 22px 18px 32px;
}

.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.app-icon {
  width: 96px;
  height: 76px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #f2f4f8;
  padding: 6px;
}

.hero-meta h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
}

.rating-line {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 21px;
  line-height: 1;
}

.score {
  font-size: 28px;
}

.download-panel {
  margin: 16px 0 18px;
  padding: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef3ff 100%);
}

.install-btn {
  width: 100%;
  height: 44px;
  border: 0;
  margin: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 18px rgba(61, 121, 229, 0.18);
}

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

.backup-btn {
  width: 100%;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(61, 121, 229, 0.18);
}

.backup-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.stat-num {
  font-size: 16px;
  font-weight: 500;
}

.stat-label {
  color: #5d8fe6;
  font-size: 11px;
}

.desc {
  font-size: 14px;
  margin: 24px 0 16px;
}

.tags {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.tag {
  background: var(--blue-light);
  color: #3e79e5;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 11px;
}

h2 {
  font-size: 24px;
  margin: 30px 0 16px;
}

.big-score-row {
  display: flex;
  align-items: end;
  gap: 22px;
}

.big-score {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
}

.stars.big {
  font-size: 24px;
}

.score-count {
  color: #4b80e3;
  font-size: 12px;
  margin-top: 2px;
}

.bars {
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin: 6px 0;
}

.bar-row span {
  color: #8f9095;
  font-size: 13px;
  letter-spacing: 1px;
}

.bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: #74a0eb;
}

.review-card {
  background: #e8e8e8;
  border-radius: 22px;
  padding: 20px;
}

.review-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3f76e5 26%, transparent 28%),
    radial-gradient(ellipse at 50% 80%, #3f76e5 38%, transparent 40%), #d7cef3;
}

.review-head h3 {
  margin: 0;
  font-size: 18px;
}

.name {
  margin: 2px 0 0;
  color: #5e8fe8;
  font-size: 14px;
}

.review-content {
  font-size: 14px;
  line-height: 1.45;
  color: #373a3f;
  margin: 16px 0 18px;
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-foot .stars {
  font-size: 18px;
}

.review-foot time {
  color: #668ee5;
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  row-gap: 16px;
  column-gap: 18px;
  margin: 8px 0 20px;
}

dt {
  color: #709ced;
  font-size: 13px;
}

dd {
  margin: 0;
  font-size: 13px;
  color: #34393f;
}

.disclaimer {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.5;
  color: #232629;
}

.float-lang {
  position: fixed;
  right: max(8px, calc((100vw - min(576px, 100vw)) / 2 + 8px));
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #df9eb6;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

@media (max-width: 360px) {
  .stats-row {
    gap: 6px;
  }

  .stat-item {
    gap: 8px;
  }

  .stat-num {
    font-size: 14px;
  }

  .stat-label {
    font-size: 10px;
  }
}

@media (min-width: 577px) {
  .page-wrap {
    border: 1px solid #d6d6d6;
  }

  .app-card {
    padding: 28px 28px 40px;
  }

  .hero {
    gap: 20px;
    margin-top: 14px;
  }

  .app-icon {
    width: 150px;
    height: 120px;
    border-radius: 18px;
    padding: 8px;
  }

  .hero-meta h1 {
    font-size: 48px;
  }

  .stars,
  .score,
  .stars.big {
    font-size: 36px;
  }

  .install-btn {
    height: 60px;
    font-size: 26px;
  }

  .download-panel {
    margin: 24px 0;
    padding: 16px;
  }

  .backup-actions {
    gap: 12px;
    margin-top: 14px;
  }

  .backup-btn {
    min-height: 52px;
    padding: 10px 16px;
  }

  .desc {
    font-size: 28px;
    margin: 22px 0;
  }

  h2 {
    font-size: 40px;
    margin: 26px 0 16px;
  }

  .review-head h3 {
    font-size: 28px;
  }

  .name {
    font-size: 26px;
  }

  .review-content,
  dt,
  dd,
  .disclaimer {
    font-size: 18px;
  }

  .review-foot time,
  .score-count {
    font-size: 20px;
  }
}
