:root {
  --bg: #0b0715;
  --bg2: #1a0c32;
  --card: rgba(255, 255, 255, 0.08);
  --card2: rgba(255, 255, 255, 0.12);
  --text: #f8f7ff;
  --muted: rgba(248, 247, 255, 0.7);
  --muted2: rgba(248, 247, 255, 0.52);
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffbf2f;
  --gold2: #ff8a00;
  --pink: #ff4aa2;
  --green: #19d26c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(184, 64, 255, 0.28), transparent 34%),
    radial-gradient(circle at 75% 18%, rgba(255, 178, 56, 0.18), transparent 20%),
    linear-gradient(180deg, #12071e 0%, #0b0715 45%, #07060f 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.install {
  width: min(100%, 430px);
  margin: 0 auto;
  padding: 0 14px 36px;
}

.top-placeholder {
  height: env(safe-area-inset-top, 10px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 -14px 18px;
  padding: 10px 14px;
  background: rgba(7, 6, 15, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.topbar__left {
  width: 112px;
  height: auto;
}

.topbar__right {
  width: 54px;
  height: auto;
}

.topwrap {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0 20px;
}

.header-icon {
  position: relative;
  flex: 0 0 auto;
}

.toplogo {
  width: 74px;
  height: 74px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.loading-circle {
  display: none;
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.right {
  min-width: 0;
  flex: 1;
}

.header__info-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.header__info-title-tag {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.author {
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.info {
  margin: 0;
  color: var(--muted2);
  font-size: 0.78rem;
  line-height: 1.4;
}

.header__info-play {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
}

.ic_dun {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.installinfo {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.item {
  padding: 14px 10px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
}

.item .info {
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--muted2);
}

.xingsvg {
  width: 14px;
  height: 14px;
}

.installbtn,
.back__btn {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  margin-top: 14px;
  font-weight: 900;
  font-size: 1rem;
  color: #1d0e00;
  background: linear-gradient(135deg, #ffd34a 0%, #ff9f1a 55%, #ff7a00 100%);
  box-shadow: 0 14px 30px rgba(255, 145, 0, 0.22);
  cursor: pointer;
}

.installbtn:active,
.back__btn:active,
.share-row__item:active,
.otherlink:active,
.govbtn:active {
  transform: translateY(1px) scale(0.99);
}

.installbtn[style*="display: none"] {
  display: none !important;
}

.share-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.share-row__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.85rem;
}

.share-row__item img,
.iconimg,
.arrowsvg,
.tipsvg {
  flex: 0 0 auto;
}

.img-scroll {
  margin-top: 18px;
  overflow: hidden;
}

.img-scroll__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.img-scroll__list::-webkit-scrollbar {
  display: none;
}

.img-scroll__view {
  flex: 0 0 auto;
  width: 100%;
}

.img-scroll__view img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.aboutapp,
.vratings,
.scorewrap {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.aboutapp > div:first-child {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.aboutapp .title,
.vratings .title,
.scorewrap .num,
.back__info__title,
.back_title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.aboutapp .title,
.vratings .title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.intro,
.back__info__description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.btngroup {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.govbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}

.scorewrap {
  display: grid;
  gap: 10px;
}

.scorewrap .left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.scorewrap .num {
  font-size: 1rem;
}

.comments__list-stars {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.star {
  width: 14px !important;
  height: 14px !important;
}

.comment {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feedback {
  display: flex;
  gap: 10px;
  align-items: center;
}

.headimg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.evaluate {
  display: flex;
  align-items: center;
  gap: 8px;
}

.grade {
  color: #ffd34a;
  font-weight: 800;
}

.other {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.otherli {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.otherdt {
  font-size: 0.95rem;
  font-weight: 800;
}

.otherlink {
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
}

.popup,
.layer__mask,
.rb-loading {
  display: none;
}

.layer__mask,
.popup {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.layer__mask {
  background: rgba(4, 2, 10, 0.72);
  backdrop-filter: blur(8px);
}

.popup {
  padding: 24px 16px;
  overflow-y: auto;
}

.popup-content,
.back__content {
  width: min(100%, 430px);
  margin: 0 auto;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(30, 13, 53, 0.98), rgba(12, 8, 23, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.back__icon,
.back_logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
}

.back__content {
  padding: 18px;
}

.back__info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.back__info__play {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.back__detail,
.back__detail__introduction {
  margin-top: 12px;
}

.back__detail__introduction {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.back__btn {
  margin-top: 16px;
}

.rb-loading {
  position: fixed;
  inset: 0;
  z-index: 60;
  align-items: center;
  justify-content: center;
  background: rgba(6, 4, 12, 0.62);
}

.web {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #05050a;
  color: #fff;
}

.loader {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .install {
    width: min(100%, 480px);
    padding: 0 18px 44px;
  }

  .topwrap {
    gap: 16px;
  }

  .toplogo {
    width: 84px;
    height: 84px;
  }
}
