/* ====== 根布局：完全模仿对方 10rem 居中窄屏效果 ====== */

/* 1rem 的基准，大部分 H5 项目用 37.5，这样 10rem ≈ 375px */
html {
  font-size: 37.5px;
}

body {
  margin: 0;
  height: 100vh;
  background: #e8f0fe; /* 两边淡蓝色背景 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* 中间那条“手机列”，所有内容都放在 #app 里面 */
#app {
  position: fixed;
  top: 0;
  left: 50%;
  width: 10rem;               /* 10rem ≈ 375px */
  height: 100%;
  transform: translate3d(-50%, 0, 0);
  background: #ffffff;
  overflow-y: auto;           /* 内部滚动 */
  overflow-x: hidden;
}

/* 页面内部容器 */
.page-container {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem 0.4rem 0.7rem;  /* 约 15 / 15 / 26 像素 */
}

/* ====== 顶部 APP 信息 ====== */

.top-section {
  display: flex;
  align-items: center;
}

.app-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.4rem;
  margin-right: 0.3rem;
}

.app-info {
  flex: 1;
}

.app-name {
  margin: 0 0 0.1rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.app-company {
  font-size: 0.35rem;
  color: #0f9d58;
}

.app-verify {
  font-size: 0.3rem;
  color: #757575;
  margin-top: 0.05rem;
}

/* ====== 评分区域 ====== */

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.4rem 0;
}

.stat-block {
  flex: 1;
  text-align: center;
}

.stat-main {
  font-size: 0.4rem;
  font-weight: 600;
}

.stat-sub {
  font-size: 0.3rem;
  color: #666;
}

.age-badge {
  display: inline-block;
  padding: 0.05rem 0.15rem;
  font-size: 0.25rem;
  background: #4caf50;
  color: #fff;
  border-radius: 0.1rem;
}

/* ====== 安装按钮 ====== */

.install-btn {
  width: 100%;
  padding: 0.25rem 0.3rem;
  border-radius: 0.35rem;
  border: none;
  background: #0f9d58;
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.install-btn .install-sub {
  font-size: 0.3rem;
  margin-top: 0.05rem;
}

/* ====== 上方简介 + Baixar 链接 ====== */

.about-block {
  display: flex;
  margin-top: 0.4rem;
}

.about-icon {
  font-size: 0.45rem;
  color: #0f9d58;
  margin-right: 0.2rem;
}

.about-text {
  font-size: 0.35rem;
  line-height: 1.35;
  margin: 0;
}

.about-link {
  display: inline-block;
  margin-top: 0.1rem;
  font-size: 0.4rem;
  text-decoration: none;
  color: #1a73e8;
}

/* ====== 截图横向滑动 ====== */

.screenshots {
  display: flex;
  margin: 0.5rem -0.4rem 0;
  padding: 0 0.4rem;
  overflow-x: auto;
  gap: 0.3rem;
}

.screenshots img {
  width: 2.2rem;
  height: 4.0rem;
  object-fit: cover;
  border-radius: 0.3rem;
}

/* ====== “Sobre este jogo” 标题 + 内容 ====== */

.section-title-row {
  margin-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-row h2 {
  margin: 0;
  font-size: 0.55rem;
  font-weight: 700;
}

.section-title-row .arrow {
  font-size: 0.6rem;
}

.desc-long {
  margin-top: 0.2rem;
  font-size: 0.4rem;
  line-height: 1.45;
}

/* ====== 弹窗：Rapid Instalar ====== */

.rapid-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.rapid-dialog {
  width: 7rem;
  background: #ffffff;
  border-radius: 0.4rem;
  padding: 0.8rem;
  box-sizing: border-box;
  text-align: center;
}

.rapid-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
}

.rapid-logo {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: conic-gradient(#ff8a00, #ff3c3c, #4caf50, #2196f3, #ff8a00);
}

.rapid-title {
  font-size: 0.6rem;
  font-weight: 600;
}

/* 加载中圆圈 */

.loading-area {
  margin-top: 0.6rem;
}

.circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.1rem solid #e0e0e0;
  margin: 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle-inner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border-top: 0.1rem solid #0db14b;
  border-right: 0.1rem solid #0db14b;
  border-bottom: 0.1rem solid transparent;
  border-left: 0.1rem solid transparent;
  position: absolute;
  animation: spin 1.1s linear infinite;
}

.percent {
  font-size: 0.45rem;
  font-weight: 700;
  color: #0db14b;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 加载完成状态 */

.success-area {
  display: none;
  margin-top: 0.5rem;
}

.success-chip {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: #c8fdd7;
  color: #15803d;
  font-size: 0.35rem;
  font-weight: 500;
}

.success-btn {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.35rem;
  border-radius: 999px;
  border: none;
  background: #0f9d58;
  color: #fff;
  font-size: 0.45rem;
  font-weight: 600;
  cursor: pointer;
}
