*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #007aff;
  --text: #000;
  --muted: #8e8e93;
  --line: #e5e5ea;
  --bg: #fff;
  --max: 430px;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: #f2f2f7;
  color: var(--text);
  line-height: 1.4;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.store {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  padding: 0 0 24px;
  position: relative;
}

/* App 信息区 */
.app-hero {
  display: flex;
  gap: 14px;
  padding: 16px 16px 16px;
  align-items: flex-start;
}

.app-icon {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.app-meta {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.app-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.app-tip {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.app-actions {
  display: flex;
  gap: 8px;
}

.btn-install,
.btn-trust {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
}

.btn-install {
  background: var(--blue);
  color: #fff;
}

.btn-trust {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ico.outline {
  background: transparent;
}

/* 指标行 */
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 0 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  text-align: center;
  padding: 0 6px;
  position: relative;
}

.metric:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--line);
}

.m-top {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.m-mid {
  font-size: 22px;
  font-weight: 700;
  color: #3a3a3c;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.m-bot {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.m-stars {
  display: flex;
  justify-content: center;
  gap: 1px;
  margin-top: 3px;
}

.m-stars span {
  width: 9px;
  height: 9px;
  background: #c7c7cc;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* 安装提示 */
.hint-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: #eef5fc;
}

.hint-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hint-content {
  flex: 1;
  min-width: 0;
}

.hint-title {
  font-size: 14px;
  font-weight: 700;
  color: #1c1c1e;
  margin-bottom: 4px;
  line-height: 1.35;
}

.hint-text {
  font-size: 12px;
  color: #6e6e73;
  line-height: 1.5;
}

/* 区块 */
.block {
  padding: 18px 16px 4px;
}

.block-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.block-text {
  font-size: 14px;
  color: #1c1c1e;
  line-height: 1.55;
}

/* 评分汇总 */
.rating-summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.rs-left {
  width: 88px;
  flex-shrink: 0;
}

.rs-score {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: #3a3a3c;
  letter-spacing: -0.04em;
}

.rs-out {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.rs-right {
  flex: 1;
  padding-top: 6px;
}

.bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-row span {
  width: 10px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.bar-row i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #e5e5ea;
  position: relative;
  overflow: hidden;
}

.bar-row i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w);
  background: #8e8e93;
  border-radius: 999px;
}

.rs-count {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* 评论卡片 */
.review {
  background: #f2f2f7;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.rv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.rv-head strong {
  font-size: 14px;
  font-weight: 700;
}

.rv-date {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.rv-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.rv-stars {
  display: flex;
  gap: 1px;
}

.rv-stars span {
  width: 11px;
  height: 11px;
  background: #ff9f0a;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.rv-user {
  font-size: 12px;
  color: var(--muted);
}

.rv-body {
  font-size: 13px;
  color: #1c1c1e;
  line-height: 1.5;
}

@media (min-width: 480px) {
  body {
    background: #e5e5ea;
  }

  .store {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 20px 50px rgba(0, 0, 0, 0.12);
  }
}
