:root {
  color: #1e1e1e;
  background: #eef1f5;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #eef1f5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

img {
  display: block;
}

.app-page {
  width: 100%;
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 26px rgb(25 45 80 / 8%);
}

.store-header {
  position: relative;
  height: 61px;
  border-bottom: 1px solid #f1f2f3;
  background: #fff;
}

.store-logo {
  position: absolute;
  top: 25px;
  left: 13px;
  width: 120px;
  height: 26.4px;
  overflow: hidden;
}

.store-logo img {
  width: 120px;
  height: auto;
  transform: translateY(-26.4px);
}

.app-summary {
  display: flex;
  gap: 13px;
  min-height: 114px;
  padding: 18px 16px 17px;
}

.app-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 12px;
  object-fit: cover;
}

.app-info {
  min-width: 0;
  padding-top: 1px;
}

.app-info h1,
.detail-section h2,
.introduction h2,
.app-features,
.description,
.record-info p,
.updated-at {
  margin: 0;
}

.app-info h1 {
  font-size: 18px;
  font-weight: 600;
  line-height: 26px;
  color: #000;
}

.app-features {
  display: flex;
  gap: 12px;
  color: #68696b;
  font-size: 13px;
  line-height: 19px;
  white-space: nowrap;
}

.tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0080ff;
  background: #e3f3fe;
  font-size: 12px;
  line-height: 20px;
  white-space: nowrap;
}

.stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 25px);
  height: 80px;
  margin: 0 auto;
  padding: 12px 25px 11px;
  border-radius: 8px;
  background: #f7f8fa;
}

.stat {
  display: flex;
  width: 56px;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.stat strong {
  color: #4d4e50;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.stat span {
  color: #68696b;
  font-size: 13px;
  line-height: 19px;
}

.detail-section h2,
.introduction h2 {
  color: #1e1e1e;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}

.detail-section h2 {
  padding: 4px 16px 3px;
}

.carousel {
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 0 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 16px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel:focus-visible {
  outline: 2px solid #027fff;
  outline-offset: -2px;
}

.carousel__image {
  width: 110px;
  height: 228px;
  flex: 0 0 110px;
  scroll-snap-align: start;
  object-fit: cover;
}

.introduction {
  width: calc(100% - 25px);
  min-height: 320px;
  margin: 0 auto;
  padding: 10px 7px 13px;
  border-radius: 8px;
  background: #f7f8fa;
}

.introduction h2 {
  margin-bottom: 7px;
}

.description {
  color: #000;
  font-size: 14px;
  line-height: 24px;
  text-align: justify;
}

.record-info {
  margin-top: 7px;
  color: #8c8d8f;
  font-size: 12px;
  line-height: 20px;
}

.security-list {
  display: grid;
  gap: 0;
  margin: 5px 0 0;
  padding: 0;
  color: #8c8d8f;
  font-size: 12px;
  line-height: 24px;
  list-style: none;
}

.security-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.security-list img {
  width: 14px;
  height: 14px;
  margin-right: 3px;
  flex: 0 0 14px;
}

.updated-at {
  margin-top: 4px;
  color: #8c8d8f;
  font-size: 12px;
  line-height: 20px;
}

.download-bar {
  position: sticky;
  z-index: 5;
  bottom: 0;
  padding: 0px 12px 15px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff 23px);
}

.download-actions {
  display: flex;
  gap: 10px;
}

#download-status {
  margin: 8px 0 0;
  color: #68696b;
  font-size: 12px;
  text-align: center;
}

.download-button {
  display: flex;
  width: 100%;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: #027fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 42px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.download-button[hidden] {
  display: none;
}

.download-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.download-button:active {
  background: #006fe5;
  transform: scale(.995);
}

.download-button:focus-visible {
  outline: 3px solid rgb(2 127 255 / 30%);
  outline-offset: 2px;
}

@media (max-width: 350px) {
  .app-features {
    gap: 7px;
    font-size: 12px;
  }

  .tags span {
    padding-inline: 8px;
  }

  .security-list {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .download-button:active {
    transform: none;
  }
}
