:root {
  --primary: #0071e3;
  --primary-dark: #0059b9;
  --text: #1d1d1f;
  --text2: #86868b;
  --bg: #f5f5f7;
  --card: #ffffff;
  --border: #d2d2d7;
  --star: #ff9500;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 680px; margin: 0 auto; padding: 24px 20px 40px; }

/* ===== App Header Card ===== */
.app-header {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.app-top { display: flex; gap: 20px; align-items: flex-start; }
.app-icon {
  width: 140px; height: 140px; border-radius: 30px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-meta { flex: 1; min-width: 0; }
.app-name {
  font-size: 22px; font-weight: 700; margin-bottom: 4px;
  display: flex; align-items: center; gap: 8px;
}
.app-name .badge {
  font-size: 11px; font-weight: 500; color: var(--text2);
  border: 1px solid var(--border); border-radius: 6px; padding: 1px 8px;
}
.app-subtitle { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.btn-download {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0071e3 0%, #0059b9 100%);
  color: #fff; border: none;
  border-radius: 12px; padding: 0 36px; height: 42px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,113,227,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
  position: relative;
  letter-spacing: 0.5px;
}
.btn-download:active {
  transform: scale(0.96);
  box-shadow: 0 2px 10px rgba(0,113,227,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-download:hover {
  background: linear-gradient(135deg, #0077ed 0%, #0060c5 100%);
  box-shadow: 0 6px 28px rgba(0,113,227,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.btn-download::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-download:hover::before {
  left: 100%;
}

/* ===== Stats Row ===== */
.stats-row {
  display: flex; justify-content: space-around;
  padding: 20px 0 0; margin-top: 20px; border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
.stars { color: var(--star); font-size: 14px; letter-spacing: 1px; }
.star-img { height: 14px; vertical-align: middle; }

/* ===== Section Card ===== */
.section {
  background: var(--card); border-radius: var(--radius);
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }

/* ===== Rating Bars ===== */
.rating-wrap { display: flex; gap: 24px; }
.rating-big {
  text-align: center; padding-right: 24px;
  border-right: 1px solid var(--border);
}
.rating-big .num { font-size: 56px; font-weight: 700; line-height: 1; }
.rating-big .label { font-size: 13px; color: var(--text2); margin-top: 4px; }
.rating-bars {
  flex: 1; display: flex; flex-direction: column;
  gap: 6px; justify-content: center;
}
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: 12px; color: var(--text2); width: 8px; text-align: right; }
.bar-track { flex: 1; height: 6px; background: #e8e8ed; border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--text2); border-radius: 3px; }
.bar-row:nth-child(1) .bar-fill { width: 82%; }
.bar-row:nth-child(2) .bar-fill { width: 10%; }
.bar-row:nth-child(3) .bar-fill { width: 4%; }
.bar-row:nth-child(4) .bar-fill { width: 2%; }
.bar-row:nth-child(5) .bar-fill { width: 2%; }
.rating-count { font-size: 12px; color: var(--text2); margin-top: 8px; text-align: right; }

/* ===== Info List ===== */
.info-list { list-style: none; }
.info-list li {
  display: flex; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px;
}
.info-list .label { color: var(--text2); flex-shrink: 0; }
.info-list .value { color: var(--text); text-align: right; margin-left: 16px; }

/* ===== Footer ===== */
.footer {
  text-align: center; padding: 5px 5px;
  font-size: 12px; color: var(--text2); line-height: 1.8;
}

/* ===== QQ/WeChat Overlay ===== */
.overlay-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999; display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 0;
}
.overlay-mask.show { display: flex; }
.overlay-content {
  width: 100%; text-align: center; color: #fff;
  padding: 20px 24px 24px;
}
.overlay-arrow-img {
  width: 100%; max-width: 360px;
  margin-bottom: 16px;
}
.overlay-text {
  font-size: 17px; line-height: 1.8; margin-bottom: 24px;
}
.overlay-text strong { color: #ffd60a; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0071e3, #00c6fb);
  color: #fff; border: none; border-radius: 24px;
  padding: 12px 32px; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-copy:active { transform: scale(0.95); }
.overlay-close {
  position: absolute; top: 16px; right: 20px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.2); border: none;
  border-radius: 50%; color: #fff; font-size: 18px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.overlay-close img { width: 16px; height: 16px; }

/* ===== Browser Prompt Overlay (iPhone non-Safari) ===== */
.browser-prompt {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999; display: none;
  align-items: center; justify-content: center;
}
.browser-prompt.show { display: flex; }
.browser-prompt-box {
  background: #fff; border-radius: 20px;
  padding: 32px 24px; text-align: center;
  max-width: 340px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.browser-prompt-box img {
  width: 80px; height: 80px; margin-bottom: 16px;
}
.browser-prompt-box h3 {
  font-size: 18px; margin-bottom: 8px; color: #1d1d1f;
}
.browser-prompt-box p {
  font-size: 14px; color: #86868b; line-height: 1.6; margin-bottom: 20px;
}
.browser-prompt-box .btn-ok {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; border: none;
  border-radius: 24px; padding: 10px 36px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.browser-prompt-box .btn-ok:active { transform: scale(0.96); }

/* ===== Copy Toast ===== */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.75); color: #fff;
  padding: 10px 24px; border-radius: 20px;
  font-size: 14px; z-index: 99999;
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; }

/* ===== Install Steps ===== */
.install-steps { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.step-text {
  font-size: 14px; color: var(--text); line-height: 1.6;
}
.step-text strong { color: var(--primary); }
.step-img {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.step-img img {
	width: 100%;
	max-width: 320px;
	display: block;
	border-radius: 12px;
}

/* ===== Mobile Adaptation ===== */
@media (max-width: 480px) {
	.page { padding: 16px 12px 32px; }

	.app-header { padding: 20px 16px; }
	.app-top { gap: 14px; }
	.app-icon { width: 100px; height: 100px; border-radius: 22px; }
	.app-name { font-size: 18px; gap: 6px; }
	.app-subtitle { font-size: 13px; margin-bottom: 12px; }
	.btn-download { padding: 0 28px; height: 38px; font-size: 14px; border-radius: 10px; }

	.section { padding: 18px 16px; }
	.section-title { font-size: 17px; margin-bottom: 12px; }

	.rating-wrap { flex-direction: column; gap: 16px; }
	.rating-big { padding-right: 0; border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
	.rating-big .num { font-size: 42px; }
	.rating-bars { gap: 5px; }

	.info-list li { padding: 10px 0; font-size: 13px; }

	.step-item { gap: 10px; padding: 12px 0; }
	.step-num { width: 24px; height: 24px; font-size: 12px; }
	.step-text { font-size: 13px; }
	.step-img img { max-width: 100%; border-radius: 10px; }

	.footer { padding: 8px 4px; font-size: 11px; }

	.overlay-arrow-img { max-width: 280px; }
	.overlay-text { font-size: 15px; margin-bottom: 20px; }
	.btn-copy { padding: 10px 24px; font-size: 15px; }

	.browser-prompt-box { padding: 24px 20px; max-width: 300px; }
	.browser-prompt-box img { width: 64px; height: 64px; }
	.browser-prompt-box h3 { font-size: 16px; }
	.browser-prompt-box p { font-size: 13px; margin-bottom: 16px; }
	.browser-prompt-box .btn-ok { padding: 9px 28px; font-size: 14px; }
}
