* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #333;
  -webkit-tap-highlight-color: transparent;
}

/* 微信遮罩 */
.wechat-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.wechat-mask-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
}

/* Safari 引导遮罩 */
.safari-mask-content {
  text-align: center;
  padding: 40px 20px;
}

.safari-tip {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.safari-subtip {
  color: #aaa;
  font-size: 14px;
}

/* 页面主体 */
.page {
  max-width: 500px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* 应用头部 */
.app-header {
  text-align: center;
  margin-bottom: 24px;
}

.app-icon-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  letter-spacing: 1px;
  transform: translateX(5px);
}

/* 下载按钮 */
.download-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.download-btn-android {
  background: linear-gradient(135deg, #3ddc84 0%, #2ab968 100%);
}

.download-btn-ios {
  background: linear-gradient(135deg, #5ac8fa 0%, #007aff 100%);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

/* 信任标识 */
.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 28px;
  padding: 0 4px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #666;
}

.badge .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3ddc84;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: bold;
}

.age-rating {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}

/* iOS 引导 */
.ios-guide {
  border-top: 1px solid #f0f0f0;
  padding-top: 20px;
}

.ios-guide-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.apple-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #000;
}

.ios-guide-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.ios-guide-tip {
  font-size: 13px;
  color: #e74c3c;
  line-height: 1.4;
}

.ios-guide-img-wrap {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  height: 0;
  padding-bottom: 130%;
}

.ios-guide-img {
  position: absolute;
  top: -32%;
  left: 0;
  width: 100%;
}
