/* v5 — 参考 Google Play / App Store 商店详情式布局；主题色 #ff3b30 不变 */

:root {
  --blue: #007aff;
  --accent: #ff3b30;
  --accent-dark: #e6352b;
  --accent-soft: rgba(255, 59, 48, 0.12);
  --text: #202124;
  --text-secondary: #5f6368;
  --bg: #ffffff;
  --bg-page: #f1f3f4;
  --border: #dadce0;
  --star: #f9ab00;
  --pad: 0.427rem;
  --sticky-h: 1.76rem;
  --layout-max: var(--layout-max-px, 540px);
  --radius-sm: 0.16rem;
  --radius-md: 0.32rem;
  --radius-lg: 0.427rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Roboto', sans-serif;
  background: var(--bg-page);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0));
}
.page {
  max-width: var(--layout-max);
  margin: 0 auto;
  background: var(--bg);
}

/* —— 顶栏（Play 风格极简） —— */
.store-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.213rem;
  padding: calc(0.24rem + env(safe-area-inset-top, 0)) var(--pad) 0.24rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.store-nav-icon { width: 0.64rem; height: 0.64rem; border-radius: 0.133rem; }
.store-nav-title { font-size: 0.4rem; font-weight: 500; flex: 1; min-width: 0; }
.store-nav-tag {
  font-size: 0.293rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.053rem 0.2rem;
  border-radius: 0.107rem;
}

/* —— 商店首屏 listing —— */
.listing {
  padding: 0.427rem var(--pad) 0.373rem;
  border-bottom: 8px solid var(--bg-page);
}
.listing-main {
  display: flex;
  gap: 0.373rem;
  align-items: flex-start;
  margin-bottom: 0.32rem;
}
.listing-icon {
  width: 1.493rem;
  height: 1.493rem;
  border-radius: 0.32rem;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.listing-name {
  font-size: 0.533rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.053rem;
}
.listing-dev {
  font-size: 0.373rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.16rem;
}
.listing-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.107rem;
  font-size: 0.347rem;
  color: var(--text-secondary);
  margin-bottom: 0.16rem;
}
.listing-stars { color: var(--star); letter-spacing: -0.027rem; }
.listing-score { font-weight: 500; color: var(--text); }
.listing-dot { color: var(--border); }
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.16rem;
  font-size: 0.32rem;
  color: var(--text-secondary);
}
#metaSize:empty { display: none; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.267rem;
  margin-bottom: 0.373rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.107rem;
  font-size: 0.32rem;
  color: var(--text-secondary);
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* —— 安装按钮（Play Install 形态，红色主题） —— */
.btn-install {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1.173rem;
  padding: 0.2rem 0.427rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 1px 3px rgba(255, 59, 48, 0.35);
}
.btn-install:active:not(:disabled) { background: var(--accent-dark); }
.btn-install:disabled { background: #dadce0; color: #80868b; box-shadow: none; }
.btn-install-label {
  font-size: 0.427rem;
  font-weight: 600;
  line-height: 1.2;
}
.btn-install-sub {
  font-size: 0.293rem;
  opacity: 0.9;
  font-weight: 400;
}
.btn-install--mid { min-height: 1.067rem; }
.btn-install--sm {
  min-height: 0.96rem;
  width: auto;
  min-width: 1.6rem;
  padding: 0 0.48rem;
  flex-shrink: 0;
}
.btn-install--sm .btn-install-sub { display: none; }

/* —— 通用区块 —— */
.gallery-block,
.about-block,
.benefits-block,
.reviews-block,
.install-block,
.channels-block,
.faq-block {
  padding: 0.48rem var(--pad);
  border-bottom: 8px solid var(--bg-page);
}
.block-title {
  font-size: 0.453rem;
  font-weight: 500;
  margin-bottom: 0.32rem;
  color: var(--text);
}

/* —— 截图画廊 —— */
.gallery-wrap { position: relative; }
.gallery-track {
  display: flex;
  gap: 0.32rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad) 0.427rem;
  scroll-padding-left: var(--pad);
}
.gallery-slide {
  flex: 0 0 78%;
  max-width: 4.8rem;
  margin: 0;
  scroll-snap-align: start;
  text-align: center;
}
.device-frame {
  background: #1a1a1a;
  border-radius: 0.48rem;
  padding: 0.32rem 0.24rem 0.24rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.device-frame::before {
  content: '';
  display: block;
  width: 0.853rem;
  height: 0.08rem;
  margin: 0 auto 0.24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}
.screenshot {
  display: block;
  width: 100%;
  border-radius: 0.24rem;
  cursor: pointer;
  background: #2c2c2e;
}
.gallery-slide figcaption {
  font-size: 0.32rem;
  color: var(--text-secondary);
  margin-top: 0.213rem;
}
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.16rem;
}
.gallery-dot {
  width: 0.16rem;
  height: 0.16rem;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.gallery-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.about-text {
  font-size: 0.373rem;
  color: var(--text-secondary);
  line-height: 0.56rem;
}

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 0.373rem; }
.benefit-list li {
  display: flex;
  gap: 0.32rem;
  align-items: flex-start;
}
.benefit-icon {
  font-size: 0.48rem;
  line-height: 1;
  flex-shrink: 0;
  width: 0.853rem;
  text-align: center;
}
.benefit-list strong {
  display: block;
  font-size: 0.373rem;
  font-weight: 500;
  margin-bottom: 0.053rem;
}
.benefit-list p {
  font-size: 0.347rem;
  color: var(--text-secondary);
  line-height: 0.48rem;
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 0.427rem;
  margin-bottom: 0.373rem;
}
.reviews-big {
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
}
.reviews-stars { color: var(--star); font-size: 0.4rem; letter-spacing: -0.027rem; }
.reviews-side p {
  font-size: 0.347rem;
  color: var(--text-secondary);
}
.reviews-note { font-size: 0.32rem !important; margin-top: 0.053rem; }
.review-cards { display: flex; flex-direction: column; gap: 0.267rem; }
.review-card {
  padding: 0.32rem 0.373rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
  border: none;
}
.review-card p {
  font-size: 0.373rem;
  line-height: 0.507rem;
  margin-bottom: 0.16rem;
}
.review-card cite {
  font-size: 0.32rem;
  color: var(--text-secondary);
  font-style: normal;
}

.mid-cta {
  padding: 0.48rem var(--pad);
  text-align: center;
  background: linear-gradient(180deg, #fff5f4 0%, #fff 100%);
  border-bottom: 8px solid var(--bg-page);
}
.mid-cta p {
  font-size: 0.373rem;
  font-weight: 500;
  margin-bottom: 0.32rem;
}
.btn-install--mid { max-width: 5.33rem; margin: 0 auto; }

.install-flow { list-style: none; display: flex; flex-direction: column; gap: 0.32rem; }
.install-flow li {
  display: flex;
  gap: 0.32rem;
  align-items: flex-start;
  padding: 0.32rem;
  background: var(--bg-page);
  border-radius: var(--radius-md);
}
.install-num {
  flex-shrink: 0;
  width: 0.64rem;
  height: 0.64rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.347rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.install-flow strong {
  display: block;
  font-size: 0.373rem;
  font-weight: 500;
  margin-bottom: 0.053rem;
}
.install-flow p {
  font-size: 0.347rem;
  color: var(--text-secondary);
  line-height: 0.453rem;
}
.install-hint {
  font-size: 0.32rem;
  color: var(--text-secondary);
  margin-top: 0.373rem;
  text-align: center;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.213rem;
}
.channel {
  padding: 0.24rem 0.373rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.347rem;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  background: var(--bg);
}

.faq { border-top: 1px solid var(--border); padding: 0.32rem 0; }
.faq:first-of-type { border-top: none; }
.faq summary {
  font-size: 0.373rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  padding-right: 0.533rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p {
  font-size: 0.347rem;
  color: var(--text-secondary);
  margin-top: 0.16rem;
  line-height: 0.48rem;
}

.page-footer {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.48rem var(--pad) 0.64rem;
  background: var(--bg-page);
}
.page-footer-icon { width: 0.96rem; height: 0.96rem; border-radius: 0.213rem; }
.page-footer-text { flex: 1; min-width: 0; }
.page-footer-text strong { display: block; font-size: 0.373rem; }
.page-footer-text span { font-size: 0.32rem; color: var(--text-secondary); }

/* —— 吸底 Install（Play 移动端标配） —— */
.sticky-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 100;
  width: 100%;
  max-width: var(--layout-max);
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem var(--pad);
  padding-bottom: calc(0.24rem + env(safe-area-inset-bottom, 0));
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}
.sticky-bar-app {
  display: flex;
  align-items: center;
  gap: 0.24rem;
  flex: 1;
  min-width: 0;
}
.sticky-bar-app img {
  width: 0.96rem;
  height: 0.96rem;
  border-radius: 0.213rem;
  flex-shrink: 0;
}
.sticky-bar-name {
  display: block;
  font-size: 0.373rem;
  font-weight: 500;
  line-height: 1.2;
}
.sticky-bar-meta {
  display: block;
  font-size: 0.293rem;
  color: var(--text-secondary);
}
.btn-get {
  flex-shrink: 0;
  min-width: 1.87rem;
  height: 1.067rem;
  padding: 0 0.533rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  font-size: 0.4rem;
  font-weight: 600;
}
.btn-get:disabled { background: #dadce0; color: #80868b; }

/* —— 灯箱 —— */
.preview-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.94);
  display: none;
  flex-direction: column;
}
.preview-lightbox.is-open { display: flex; }
body.preview-open { overflow: hidden; }
.preview-lightbox-close {
  position: absolute;
  top: calc(0.32rem + env(safe-area-inset-top, 0));
  right: var(--pad);
  width: 0.853rem;
  height: 0.853rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.587rem;
}
.preview-lightbox-stage { flex: 1; position: relative; overflow: hidden; }
.preview-lightbox-track { display: flex; height: 100%; transition: transform 0.28s ease-out; }
.preview-lightbox-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.28rem var(--pad) calc(var(--sticky-h) + 0.5rem);
}
.preview-lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.preview-lightbox-nav { position: absolute; inset: 0; pointer-events: none; }
.preview-lightbox-btn {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 1.067rem;
  height: 1.067rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.preview-lightbox-btn-prev { left: var(--pad); }
.preview-lightbox-btn-next { right: var(--pad); }
.preview-lightbox-pager {
  position: absolute;
  left: 50%;
  bottom: calc(0.8rem + env(safe-area-inset-bottom, 0));
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.373rem;
}

/* 截图 PNG 已含手机边框 — 关闭 CSS 假机壳/描边 */

.device-frame,
.tvlk-frame,
.mnt-frame,
.sky-frame,
.aur-frame,
.cor-frame,
.ind-frame,
.snd-frame,
.arc-frame,
.fus-frame,
.sh-frame,
.com-frame,
.urg-frame,
.drk-frame,
.frs-frame {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.device-frame::before {
  display: none !important;
}

.tvlk-phone-shell,
.mnt-phone-shell,
.sky-phone-shell,
.cor-phone-shell,
.aur-phone-shell {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
}

.gallery-track .screenshot,
.gallery-track .device-frame img,
.device-frame .screenshot,
.screenshots > .screenshot,
.tvlk-frame img,
.mnt-frame img,
.sky-frame img,
.tvlk-phone-shell img,
.mnt-phone-shell img,
.sky-phone-shell img,
.cor-phone-shell img {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.preview-lightbox-slide img {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

