html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh; /* 保证占满视窗高度 */
  background-color: #f2f2f2;
  font-family: "PingFang SC","Microsoft YaHei",sans-serif;
  color: #333;
}

/* 手机端正常全屏，PC端依然固定宽度 */
body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  overflow-x: hidden;
}

.app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.08);
  border-radius: 0;
  overflow: hidden;
}

/* banner */
.banner {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.banner img {width:100%;height:100%;object-fit:cover;}
.banner-overlay {
  position:absolute;left:0;top:0;right:0;bottom:0;
  background:linear-gradient(to bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.2));
  display:flex;align-items:center;justify-content:center;text-align:center;
}
.banner-text {color:#fff;font-size:20px;font-weight:600;line-height:1.5;}

/* 信息 */
.app-info {padding:16px;border-bottom:1px solid #eee;background-color:#fff;}
.logo-row {display:flex;align-items:center;}
.logo-box {width:60px;height:60px;border-radius:12px;overflow:hidden;margin-right:12px;flex-shrink:0;border:1px solid #ddd;}
.app-logo {width:100%;height:100%;object-fit:cover;}
.app-title {font-size:16px;font-weight:600;margin-bottom:6px;}
.meta-inline {display:flex;align-items:center;font-size:12px;color:#666;}
.meta-sep{margin:0 6px;color:#999;}

/* stats */
.stats-row{display:flex;justify-content:space-between;margin-top:16px;text-align:center;font-size:12px;color:#666;}
.stats-col{flex:1;}
.stats-left{text-align:left;}
.score-line{display:flex;align-items:center;}
.score-num{font-size:16px;font-weight:600;margin-right:6px;}
.stars{color:#999;}
.stats-mid{border-left:1px solid #eee;border-right:1px solid #eee;}
.rank-main,.age-main{font-size:16px;font-weight:600;color:#000;}
.rank-sub,.age-sub{font-size:12px;color:#999;margin-top:4px;}

/* desc */
.desc{padding:15px;font-size:13px;line-height:1.6;color:#555;}

/* 按钮 */
.buttons{padding:16px;display:flex;flex-direction:column;gap:10px;background-color:#fff;border-top:1px solid #eee;margin-bottom:30px;}
.btn-install{background:linear-gradient(90deg,#4e9af1,#277ef2);color:#fff;border:none;border-radius:8px;height:44px;font-size:16px;cursor:pointer;}
.btn-guide{border:1px solid #277ef2;color:#277ef2;border-radius:8px;height:44px;background-color:#fff;font-size:15px;cursor:pointer;}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  /*background-color: #fff; */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  max-height: 60%;
  overflow-y: auto;
  padding: 20px;
  position: relative;
}

.modal-content h3 {
  text-align: center;
  margin: 0 0 10px 0;
  font-size: 18px;
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.steps img {
  width: 100%;
  margin: 10px 0;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}


/* PC模式下强制固定手机窗口尺寸 */
.pc-mode .app-container {
  width: 390px !important;
  height: 844px !important;
  overflow-y: auto;
  border-radius: 12px;
}

/* ✅ 限定 PC 模式下：模态框与容器对齐 */
.pc-mode .modal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 390px;
  height: 780px;
  transform: translate(-50%, -50%);
  /*background-color: #fff;*/
  display: none;
  justify-content: center;
  align-items: center;
}

.pc-mode .modal-content {
  max-height: 80%;
  width: 90%;
  border-radius: 10px;
  overflow-y: auto;
  background-color: #fff;
}