/* ===== 仿 Google Play 应用详情页样式 ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.Z1Dz7b { color: #01875f; fill: #01875f; stop-color: #01875f; }
.Wi7KIe { fill: #f1f3f4; stop-color: #f1f3f4; }

.google-play-mobile {
  font-family: Roboto, "Google Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #fff;
  min-height: 100vh;
  padding-bottom: 60px;
  color: #202124;
  max-width: 100%;
}

/* ===== 顶部 Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: box-shadow .3s ease, border-color .3s ease;
  will-change: box-shadow;
  flex-wrap: nowrap;
}
.header-scrolled {
  box-shadow: 0 2px 8px #00000026;
  border-bottom-color: #e0e0e0;
}
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.play-logo { width: 32px; height: 32px; }
.logo-text { font-size: 22px; font-weight: 500; color: #5f6368; letter-spacing: .25px; }
.header-right { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.header-right-image { height: 32px; width: auto; display: block; object-fit: contain; }

.main-content { padding: 57px 0 0; }

/* ===== 应用头部 ===== */
.app-header-section { padding: 20px 16px; }
.app-main-info { display: flex; gap: 16px; margin-bottom: 20px; }
.app-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px #00000026;
  object-fit: contain;
}
.app-text-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.app-title {
  font-size: 20px;
  font-weight: 400;
  color: #202124;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified-icon { flex-shrink: 0; vertical-align: middle; }
.app-developer-link { font-size: 14px; color: #01875f; font-weight: 500; }
.app-badges { margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #5f6368; }
.shield-icon { width: 14px; height: 14px; object-fit: contain; }

.app-stats-row { display: flex; align-items: center; margin-bottom: 16px; gap: 0; }
.stat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
}
.stat-main {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.star { color: #01875f; font-size: 11px; }
.stat-sub { font-size: 10px; color: #5f6368; line-height: 1.3; }
.stat-divider { width: 1px; height: 32px; background-color: #dadce0; }
.age-rating-icon { width: 24px; height: 24px; object-fit: contain; margin-bottom: 4px; }

.install-button {
  width: 100%;
  background: #01875f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 8px;
  letter-spacing: .25px;
  transition: background-color .2s;
}
.install-button:active { background: #017a54; }

.action-row { display: flex; gap: 16px; margin-bottom: 16px; }
.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #dadce0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #01875f;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s;
}
.action-btn:active { background-color: #01875f0a; }

/* ===== 截图区 ===== */
.screenshots-section { padding: 16px; border-bottom: 8px solid #f8f9fa; }
.screenshots-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-card { flex-shrink: 0; width: 180px; scroll-snap-align: start; }
.screenshot-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 3px #0000001f;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.screenshot-card video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 3px #0000001f;
  object-fit: cover;
  aspect-ratio: 9 / 16;
  background: #000;
}

/* ===== 关于应用 ===== */
.about-section { padding: 20px 16px; border-bottom: 8px solid #f8f9fa; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-header h2 { font-size: 16px; font-weight: 500; color: #202124; }
.arrow-btn { background: none; border: none; padding: 4px; color: #5f6368; cursor: pointer; }
.app-description {
  font-size: 14px;
  line-height: 1.5;
  color: #3c4043;
  white-space: pre-line;
  max-height: 70px;
  overflow: hidden;
  transition: max-height .3s ease;
}
.app-description.expanded { max-height: 1000px; }
.expand-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #01875f;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  margin-top: 8px;
}
.expand-btn svg { transition: transform .3s; }
.expand-btn svg.rotated { transform: rotate(180deg); }
.update-date-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.update-label { font-size: 14px; color: #5f6368; }
.update-value { font-size: 14px; color: #3c4043; }

/* ===== 数据安全 ===== */
.data-safety-section { padding: 20px 16px; border-bottom: 8px solid #f8f9fa; }
.safety-description { font-size: 14px; line-height: 1.5; color: #5f6368; margin-bottom: 16px; }
.safety-info-card { background: transparent; border: 1px solid #dadce0; border-radius: 8px; padding: 16px; }
.safety-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e0e0e0; }
.safety-item:last-of-type { border-bottom: none; }
.safety-icon { color: #5f6368; flex-shrink: 0; }
.safety-text { flex: 1; }
.safety-title { font-size: 14px; color: #202124; margin-bottom: 2px; }
.safety-subtitle { font-size: 13px; color: #5f6368; }
.see-details-btn {
  background: none;
  border: none;
  color: #01875f;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

/* ===== 评分与评价 ===== */
.ratings-section { padding: 20px 16px; border-bottom: 8px solid #f8f9fa; }
.ratings-verified { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5f6368; margin-bottom: 16px; }
.device-filter-tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.device-filter-tabs::-webkit-scrollbar { display: none; }
.device-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #dadce0;
  border-radius: 20px;
  background: transparent;
  font-size: 13px;
  color: #3c4043;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
}
.device-tab.active { background: #e8f5e9; border-color: #01875f; color: #01875f; }
.device-tab svg { color: currentColor; }
.rating-overview { display: flex; gap: 24px; margin-bottom: 24px; }
.rating-score-box { display: flex; flex-direction: column; align-items: center; min-width: 80px; }
.large-rating { font-size: 48px; font-weight: 400; color: #202124; line-height: 1; }
.rating-stars { display: flex; align-items: center; gap: 2px; margin: 4px 0; }
.rating-stars svg { width: 16px; height: 16px; }
.rating-stars svg:not(.xdPrrd) { fill: #01875f; }
.rating-stars .xdPrrd { width: 16px; height: 16px; }
.rating-count-text { font-size: 12px; color: #5f6368; text-align: center; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; }
.bar-label { font-size: 12px; color: #5f6368; width: 8px; }
.bar-bg { flex: 1; height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #01875f; transition: width .5s ease; }

.reviews-list { display: flex; flex-direction: column; gap: 24px; }
.review-item { padding-bottom: 24px; border-bottom: 1px solid #e0e0e0; }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.reviewer-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.reviewer-name { font-size: 14px; font-weight: 400; color: #202124; }
.review-menu-btn { background: none; border: none; padding: 4px; cursor: pointer; color: #5f6368; }
.review-stars { color: #01875f; font-size: 12px; margin-bottom: 4px; }
.star-filled { margin-right: 1px; }
.review-date { font-size: 12px; color: #5f6368; margin-bottom: 8px; }
.review-text { font-size: 14px; line-height: 1.5; color: #3c4043; margin-bottom: 8px; }
.review-helpful-count { font-size: 12px; color: #5f6368; margin-bottom: 12px; }
.review-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.helpful-question { font-size: 12px; color: #5f6368; }
.helpful-buttons { display: flex; gap: 8px; }
.helpful-btn {
  padding: 6px 16px;
  border: 1px solid #dadce0;
  border-radius: 16px;
  background: transparent;
  font-size: 13px;
  color: #3c4043;
  cursor: pointer;
  transition: background-color .2s;
}
.helpful-btn:active { background-color: #f1f3f4; }

/* ===== 页脚 ===== */
.footer-section { padding: 24px 16px 40px; background: #f8f9fa; }
.footer-group { margin-bottom: 24px; }
.footer-heading { font-size: 14px; font-weight: 500; color: #5f6368; margin-bottom: 12px; }
.footer-link { display: block; font-size: 14px; color: #5f6368; text-decoration: none; padding: 8px 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.footer-bottom-link { font-size: 12px; color: #5f6368; text-decoration: none; }

/* ===== 底部导航 ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  transform: translate(-50%);
  background: #fff;
  border-top: 1px solid #dadce0;
  display: flex;
  justify-content: space-around;
  padding: 6px 0 8px;
  z-index: 100;
  box-shadow: 0 -1px 3px #0000000d;
}
.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  cursor: pointer;
  color: #5f6368;
  font-size: 11px;
  transition: color .2s;
  flex: 1;
  max-width: 80px;
  min-width: 0;
}
.nav-item.active { color: #01875f; }
.nav-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; text-align: center; }

/* ===== Return Flow 弹窗 ===== */
html.pwa-return-flow-lock,
html.pwa-return-flow-lock body { overflow: hidden !important; overscroll-behavior: none; }
.pwa-return-flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 18px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 179, 70, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(20, 8, 3, 0.94), rgba(25, 15, 12, 0.96));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.pwa-return-flow-shell {
  width: min(88vw, 520px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: pwa-return-flow-enter 360ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.pwa-return-flow-card {
  --pwa-return-flow-media-area: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  height: min(72vh, calc(100vh - 172px), 620px);
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 24px 30px;
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 62%);
  color: #202124;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}
.pwa-return-flow-media {
  width: 100%;
  flex: 0 0 var(--pwa-return-flow-media-area);
  min-height: 160px;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
  background: #21140e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.pwa-return-flow-media img,
.pwa-return-flow-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.pwa-return-flow-content {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}
.pwa-return-flow-content > * { flex-shrink: 0; }
.pwa-return-flow-card--media-cover { padding: 0; background: #140e0a; }
.pwa-return-flow-card--media-cover .pwa-return-flow-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: 0;
}
.pwa-return-flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-size: 15px;
  font-weight: 600;
  color: #202124;
  margin-top: auto;
  margin-bottom: 14px;
}
.pwa-return-flow-badge img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.pwa-return-flow-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #202124;
  margin-bottom: 10px;
}
.pwa-return-flow-description {
  font-size: 16px;
  line-height: 1.55;
  color: #5f6368;
  margin-bottom: 22px;
}
.pwa-return-flow-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 16px 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(180deg, #34a853, #188038);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(24, 128, 56, 0.35);
}
.pwa-return-flow-action:active { opacity: 0.92; }
.pwa-return-flow-dismiss {
  display: inline-block;
  margin-top: 14px;
  margin-bottom: auto;
  background: none;
  border: none;
  color: #5f6368;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}
@keyframes pwa-return-flow-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
  .pwa-return-flow-overlay { padding: 16px; }
  .pwa-return-flow-card { padding: 22px 16px 16px; border-radius: 20px; }
  .pwa-return-flow-title { font-size: 24px; }
}
@media (min-width: 768px) {
  .google-play-mobile { max-width: 480px; margin: 0 auto; box-shadow: 0 0 20px #0000001a; }
  .header { max-width: 480px; left: 50%; transform: translate(-50%); }
}
