* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #1d1d1f;
  line-height: 1.5;
  font-size: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  width: 100%;
}

/* 应用头部样式 */
.app-header {
  display: flex;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
}

.app-icon-container {
  margin-right: 20px;
}

.app-icon {
  width: 140px;
  height: 140px;
  border-radius: 28px;
}

.app-info {
  flex: 1;
}

.app-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.app-subtitle {
  font-size: 16px;
  color: #86868b;
  margin-bottom: 16px;
}

.install-button {
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 20px;
  cursor: pointer;
}

/* 评分区域 */
.metrics-container {
  border-bottom: 1px solid #e5e5e5;
  overflow-x: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 对Webkit浏览器隐藏滚动条 */
.metrics-container::-webkit-scrollbar {
  display: none;
}

.app-rating {
  display: flex;
  padding: 10 15px;
  white-space: nowrap;
  overflow-x: auto;
  /* 隐藏滚动条但保持滚动功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 对Webkit浏览器隐藏滚动条 */
.app-rating::-webkit-scrollbar {
  display: none;
}

.rating-box {
  text-align: center;
  padding: 0 20px;
  position: relative;
  min-width: 120px;
}

/* 项目之间竖线分割线 */
.rating-box:not(:last-child):after {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  height: 60%;
  width: 1px;
  background-color: #e5e5e5;
}

.rating-score {
  font-size: 24px;
  font-weight: 500;
}

.rating-stars {
  color: #86868b;
  font-size: 18px;
  margin-top: 0px;
}

.rating-text {
  font-size: 14px;
  color: #86868b;
}

.category-icon {
  display: block;
  margin: 0 auto 5px;
}

/* 新功能区域 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0;
  padding: 0 20px;
}

.new-features {
  border-bottom: 1px solid #e5e5e5;
  padding: 0 20px 20px 20px;
}

.version-info {
  display: flex;
  justify-content: space-between;
  color: #86868b;
}

.changelog {
  margin-top: 16px;
}

/* 预览区域 - 水平滚动 */
.preview-section {
  margin: 20px 0;
  padding: 0 30px;
  overflow-x: auto;
  white-space: nowrap;
  scroll-behavior: smooth;
  /* 隐藏滚动条但保持功能 */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* 对Webkit浏览器隐藏滚动条 */
.preview-section::-webkit-scrollbar {
  display: none;
}

.preview-scroll-container {
  display: flex;
  gap: 20px;
  /* 增加底部空间 */
  padding-bottom: 20px;
}

.preview-card {
  background-color: #f5f5f7;
  border-radius: 15px;
  padding: 20px;
  margin: 0;
  display: inline-block;
  width: 250px; /* 调整宽度，使图片更加清晰突出 */
  min-width: 250px; /* 确保不会被压缩得太小 */
  white-space: normal; /* 恢复文本正常换行 */
  vertical-align: top;
  height: auto; /* 自适应高度 */
  transition: transform 0.3s ease;
}

.preview-card:hover {
  transform: translateY(-5px); /* 悬停时轻微上移，增加交互感 */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 添加阴影效果 */
}

.preview-image {
  width: 100%;
  max-height: 400px; /* 增加最大高度，确保图片有足够空间展示 */
  height: 380px; /* 统一高度，让所有预览图保持一致 */
  border-radius: 10px;
  object-fit: contain; /* 保持图片比例 */
  margin-bottom: 15px;
  background-color: white; /* 添加白色背景，使图片内容更清晰 */
  padding: 5px; /* 添加内边距，使图片与背景有一定间隔 */
  border: 1px solid #e5e5e5; /* 添加边框，增强视觉效果 */
}

.preview-content {
  padding: 5px 0;
  text-align: center; /* 文本居中，更好看 */
}

.preview-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #0071e3;
}

.feature-list {
  font-size: 14px;
  list-style-type: none;
  text-align: left;
}

.feature-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}

.feature-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #86868b;
}

.developer-info {
  padding: 0px;
  color: #86868b;
  border-top: 1px solid #e5e5e5;
}

.developer-info .section-title {
  font-size: 22px;
  font-weight: 600;
  margin: 16px 0;
  padding: 0 20px;
}

.developer-info .new-features {
  border-bottom: none;
  padding: 0 20px 20px 20px;
}

.reviews-section {
  margin-top: 20px;
  padding: 0 20px;
}

.rating-large {
  font-size: 48px;
  font-weight: 600;
  margin-right: 20px;
}

.reviews-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.review-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}

.review-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.review-meta {
  display: flex;
  color: #86868b;
  font-size: 14px;
  margin-bottom: 12px;
}

.action-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-bottom: 30px;
}

.action-button {
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 10px 15px;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 8px;
}

.action-button:first-child {
  margin-left: 0;
}

.action-button:last-child {
  margin-right: 0;
}

/* 安装对话框 */
.install-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.dialog-content {
  background-color: white;
  padding: 25px;
  border-radius: 15px;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dialog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.dialog-message {
  margin-bottom: 15px;
}

.dialog-sub-message {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  font-style: italic;
}

.dialog-button {
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 25px;
  font-size: 16px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

/* 响应式布局 */
@media (max-width: 480px) {
  .app-header {
    padding: 15px;
  }

  .app-icon-container {
    margin-right: 15px;
  }

  .app-icon {
    width: 135px;
    height: 130px;
    border-radius: 18px;
  }

  .preview-card {
    width: 240px;
  }

  .preview-image {
    height: 320px; /* 移动设备上稍微减小高度 */
  }
}

@media (max-width: 370px) {
  .app-icon {
    width: 95px;
    height: 90px;
  }

  .app-icon-container {
    margin-right: 10px;
  }

  .preview-card {
    width: 220px;
  }
}
