* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", "Helvetica", Arial, sans-serif;
  background: #fff;
  color: #202124;
}

.topbar {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  position: relative;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}

.topbar .brand .logo {
  width: 45px;
  height: 45px;
}

.topbar nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: #5f6368;
  margin-left: 40px;
  flex: 1;
}

.topbar nav span {
  cursor: default;
  padding: 6px 8px;
  border-radius: 16px;
  cursor: pointer;
}

.topbar nav span.active {
  background: rgba(60, 64, 67, 0.1);
  color: #202124;
}

.topbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar .actions .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(60, 64, 67, 0.08);
  color: #202124;
  font-size: 18px;
}

.container {
  margin: 0 auto;
  padding: 60px;
  position: relative;
  z-index: 1;
}

.card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.app-header {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: radial-gradient(circle at right, #2a2a2a 0%, #1c1c1c 60%);
  color: #fff;
  padding: 80px 0 60px;
  overflow: hidden;
}

.app-header-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}
.app-header-left {
  z-index: 9999;
}

.app-title h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 520px;
}

.app-subtitle {
  margin: 20px 0;
  font-size: 16px;
  color: #3ddc84; /* Google Play 绿色 */
  font-weight: 500;
}

.app-header-meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.app-icon {
  width: 100%;
  height: 100%;
}

.app-stats {
  display: flex;
  align-items: center;
}

.stat {
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.install-btn {
  height: 48px;
  width: 200px;
  padding: 0 28px;
  border-radius: 10px;
  border: none;
  background: #35a072;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.install-btn:hover {
  background: #2f9a4a;
  color: #fff;
}

.app-actions .secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8ab4f8;
  cursor: pointer;
  font-size: 14px;
}
.secondary span {
  color: #35a072;
}

.app-footer-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.app-header-right {
  position: absolute;
  right: 0;
  top: -100px;
  opacity: 0.4;
}

.app-header-right img {
  width: 1000px;
  height: 700px;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-top: 30px;
}

.footer {
  background: #fff;
  border-top: 1px solid rgba(60, 64, 67, 0.12);
  padding: 40px 60px;
  font-size: 13px;
  color: #5f6368;
}

.footer .columns {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer .column {
  min-width: 160px;
}

.footer .footer-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #202124;
}

.footer .footer-item {
  margin-bottom: 10px;
}

.footer .footer-meta {
  margin-top: 30px;
  border-top: 1px solid rgba(60, 64, 67, 0.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
}

.screenshot-wrapper {
  position: relative;
  overflow: hidden;
}

.screenshots {
  display: flex;
  gap: 14px;
  transition: transform 0.4s ease;
  max-width: 400px;
}

.screenshots img {
  height: 296px;
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 22px;
  display: grid;
  place-items: center;
  z-index: 9999;
}

.arrow.left {
  left: 3px;
}

.arrow.right {
  right: 10px;
}

h3 {
  margin-top: 0;
  margin-bottom: 0;
}
.data-security {
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid #cdcdcd;
}
.data-security img {
  margin-right: 10px;
}
.data-security-text {
  color: #35a072;
  margin-bottom: 20px;
  cursor: pointer;
}
.device-list {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.device-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #cdcdcd;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
}
.device-btn-color {
  background: #e7f3ef;
}

.icon {
  width: 16px;
  height: 16px;
  stroke: #333;
  fill: none;
  stroke-width: 1.8;
}
.rating {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.rating-score {
  font-size: 48px;
  font-weight: 700;
}

.bars {
  flex: 1;
}

.bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
}

.bar span {
  width: 20px;
  font-size: 13px;
  color: #3c4043;
}

.progress {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: rgba(60, 64, 67, 0.12);
  overflow: hidden;
}

.fill {
  height: 100%;
  background: #34a853;
  border-radius: 6px;
}

.review {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(60, 64, 67, 0.12);
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(60, 64, 67, 0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #202124;
  font-size: 16px;
}

.review-content {
  flex: 1;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-name {
  font-weight: 600;
  font-size: 14px;
}

.stars {
  color: #fbbc04;
  font-size: 14px;
}

.review-date {
  font-size: 12px;
  color: #5f6368;
}

.review-text {
  margin-top: 8px;
  font-size: 14px;
  color: #3c4043;
  line-height: 1.5;
}

.review-helpful {
  margin-top: 10px;
  font-size: 13px;
  color: #5f6368;
}

.review-actions {
  margin-top: 10px;
  font-size: 13px;
  color: #5f6368;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.review-actions button {
  border: 1px solid rgba(60, 64, 67, 0.2);
  border-radius: 16px;
  background: #fff;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
}

.reviewsAll {
  margin-top: 18px;
  color: #35a072;
  cursor: default;
  cursor: pointer;
}
.report-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.flag-icon {
  width: 22px;
  height: 22px;
}

.report-text {
  font-weight: 600;
}

.side-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.side-title {
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}
h3 {
  display: flex;
  align-items: center;
}
.up-arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.up-arrow:hover {
  background: #eee;
}

.support-item {
  font-size: 14px;
  margin-bottom: 10px;
  color: #3c4043;
  line-height: 1.5;
}

.similar-side-app {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  cursor: pointer;
}

.similar-side-app img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.similar-side-info {
  font-size: 13px;
  line-height: 1.3;
  color: #3c4043;
}
.similar-side-info span {
  display: inline-block;
  font-weight: 400;
  font-size: 14px;
}

.star {
  color: #fbbc04;
}

.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 弹窗主体 */
.modal {
  width: 420px;
  max-width: 92vw;
  padding: 28px 24px;
  background: #fff;
  border-radius: 18px;
  text-align: center;
  position: relative;
}

.text-icon {
  margin-bottom: 12px;
  width: 50px;
}

.text {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close {
  position: absolute;
  right: 14px;
  top: 12px;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

.close:hover {
  color: #000;
}

.button {
  padding: 10px 20px;
  border: none;
  border-radius: 24px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.button:hover {
  background-color: #0056b3;
}

@media (max-width: 920px) {
  .container {
    padding: 20px 20px 60px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 14px;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .screenshot-wrapper {
    padding: 0 16px;
  }
}
/* 只在手机宽度下生效 */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
    background: #fff;
  }

  .topbar {
    height: 56px;
    padding: 0 12px;
  }
  .topbar .actions {
    gap: 6px;
  }
  .topbar .brand .logo {
    width: 36px;
    height: 36px;
  }
  .topbar .brand span:last-child {
    font-size: 16px;
  }

  .topbar nav {
    margin-left: 1px !important;
    font-size: 10px !important;
    gap: 0px !important;
  }
  .topbar nav span {
    padding: 6px 4px;
  }

  .container {
    padding: 72px 12px 40px !important;
  }

  .app-header {
    padding: 24px 0 24px;
  }

  .app-header-inner {
    flex-direction: column;
    padding: 0 16px;
    gap: 16px;
  }

  .app-title h1 {
    font-size: 26px;
    max-width: 100%;
  }

  .app-subtitle {
    font-size: 13px;
  }

  .app-header-meta {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .app-icon-wrapper {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }

  .app-stats {
    flex-direction: row;
  }

  .stat {
    padding: 0 8px;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-label {
    font-size: 11px;
  }

  .app-actions {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .install-btn {
    width: 100%;
    height: 44px;
    font-size: 15px;
  }

  .app-actions .secondary {
    font-size: 13px;
  }

  /* 隐藏右侧大图，避免挤压内容 */
  .app-header-right {
    display: none;
  }

  .layout {
    display: block; /* 左右两栏改为单列 */
    margin-top: 16px;
  }

  .card,
  .side-card {
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
  }

  .screenshot-wrapper {
    padding: 0;
  }

  .screenshots {
    max-width: 100%;
  }

  .screenshots img {
    height: auto;
    width: 80%;
    border-radius: 12px;
  }

  .arrow {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .rating {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .bars {
    flex: none;
    width: 100%;
  }

  .bar {
    margin: 4px 0;
  }

  .progress {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .rating-score {
    font-size: 32px;
  }

  .device-btn {
    white-space: nowrap;
  }

  .review {
    padding: 12px 0;
  }

  .avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .review-text {
    font-size: 13px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer .columns {
    flex-direction: column;
    gap: 16px;
  }

  .footer .footer-meta {
    flex-direction: column;
    gap: 8px;
  }

  .modal {
    width: 92vw;
    padding: 24px 20px;
  }
}
