/* =====================
   Reset & Base
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #fff;
  color: #0a0a0a;
}

/* =====================
   Layout
   ===================== */
.container {
  max-width: 1239px;
  margin: 0 auto;
}

/* =====================
   Top Navigation Bar
   ===================== */
.top_block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1200px;
  padding: 16px;
  border-bottom: solid 1px #e5e5e5;
}

.top_block_icon {
  width: 36px;
  height: 36px;
}

/* =====================
   Main Block
   ===================== */
.main_block {
  max-width: 1239px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- App Header --- */
.main_block_top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  padding-top: 24px;
}

.main_block_top_img img {
  width: 132px;
  height: 132px;
  border-radius: 20px;
}

.main_block_top_desc h1 {
  font-weight: 700;
  font-size: 34px;
  line-height: 41px;
  letter-spacing: 0.4px;
  padding-bottom: 12px;
}

.main_block_top_desc h3 {
  font-weight: 590;
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.45px;
  color: #717182;
  padding-bottom: 4px;
}

.main_block_top_desc p {
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
  color: #717182;
  padding-bottom: 12px;
}

/* --- Action Buttons --- */
.main_block_top_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;          /* 上下用 0，高度由 min-height 控制，彻底居中 */
  min-width: 73px;
  min-height: 30px;
  border-radius: 40px;
  background: #007aff;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;            /* 防止 line-height 撑开导致偏移 */
  letter-spacing: -0.23px;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: none;
  vertical-align: middle;
  box-sizing: border-box;
  transition: background-color 0.2s, transform 0.1s;
}

.main_block_top_btn:hover {
  background-color: #006ae6;
  transform: scale(1.02);
}

.main_block_top_btn:active {
  transform: scale(0.97);
}

/* --- Spinner --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid transparent;
  border-top: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Loader Overlay --- */
.loader-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.loader-overlay.active {
  display: flex;
}

.loader {
  width: 40px;
  height: 40px;
  border: 4px solid transparent;
  border-top: 4px solid #007aff;
  border-right: 4px solid #007aff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =====================
   App Params Row
   ===================== */
.main_block_param {
  display: flex;
  padding: 24px 0;
  border-top: solid 1px #e5e5e5;
  border-bottom: solid 1px #e5e5e5;
  margin-bottom: 12px;
}

.main_block_param_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.main_block_param_item_title {
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  text-align: center;
  color: #999999;
  padding-bottom: 8px;
}

.main_block_param_item_value {
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.38px;
  text-align: center;
  padding-bottom: 8px;
}

.main_block_param_item_desc {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: #717182;
}

.vertical_line {
  width: 1px;
  height: 64px;
  background-color: #e5e5e5;
  align-self: center;
}

/* =====================
   What's New
   ===================== */
.main_block_whats_new {
  padding: 24px 9px;
  border-bottom: solid 1px #e5e5e5;
  margin-bottom: 12px;
}

.main_block_whats_new_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.main_block_whats_new_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main_block_whats_new_left_title {
  font-weight: 700;
  font-size: 34px;
  line-height: 41px;
  letter-spacing: 0.4px;
}

.main_block_whats_new_right_title {
  font-weight: 590;
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.45px;
  color: #2b7fff;
  cursor: pointer;
}

.main_block_whats_new_left_p1,
.main_block_whats_new_left_p2 {
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
}

.main_block_whats_new_left_p3 {
  margin-top: 8px;
  font-weight: 590;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
  color: #2b7fff;
  cursor: pointer;
}

.main_block_whats_new_right_p1,
.main_block_whats_new_right_p2 {
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  text-align: right;
  color: #717182;
}

.main_block_whats_new_right_p1 {
  margin-bottom: 8px;
}

/* =====================
   Preview Section
   ===================== */
.main_block_preview {
  border-bottom: solid 1px #e5e5e5;
}

.main_block_preview_title {
  padding-top: 24px;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.38px;
}

.main_block_preview_images {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
}

.main_block_preview_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-top: 12px;
}

.main_block_preview_bottom_left {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =====================
   Description Section
   ===================== */
.main_block_description {
  border-bottom: solid 1px #e5e5e5;
  margin-bottom: 12px;
}

.main_block_description_top {
  font-weight: 400;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
  padding-top: 33px;
  padding-bottom: 16px;
}

.main_block_description_mid {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #717182;
  padding-bottom: 16px;
}

.main_block_description_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.main_block_description_bottom_left {
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.15px;
  color: #2b7fff;
  cursor: pointer;
}

.main_block_description_bottom_right {
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  text-align: right;
  color: #717182;
}

.main_block_description_website,
.main_block_description_support {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* =====================
   Ratings & Reviews
   ===================== */
.main_block_raitings {
  border-bottom: solid 1px #e5e5e5;
}

.main_block_raitings_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 4px;
  margin-top: 24px;
}

.main_block_raitings_top_left {
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.26px;
}

.main_block_raitings_top_right {
  font-weight: 590;
  font-size: 16px;
  line-height: 21px;
  letter-spacing: -0.31px;
  color: #2b7fff;
  cursor: pointer;
}

.main_block_raitings_mid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
}

.main_block_raitings_mid_left {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.main_block_raitings_mid_left_p1 {
  font-weight: 600;
  font-size: 60px;
  line-height: 60px;
  letter-spacing: 0.26px;
  text-align: center;
}

.main_block_raitings_mid_left_p2 {
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.23px;
  text-align: right;
  color: #717182;
}

.main_block_raitings_mid_right {
  display: flex;
  align-items: flex-end;
}

.main_block_raitings_mid_right img {
  margin-right: 110px;
}

.main_block_raitings_mid_right_p1 {
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  color: #717182;
}

.main_block_raitings_mobile_stars {
  display: none;
}

.main_block_raitings_mobile_container {
  display: none;
}

/* Reviews Grid */
.main_block_reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 80px;
  row-gap: 24px;
  padding: 24px 0;
}

.main_block_review {
  padding: 12px;
}

.main_block_review_stars {
  margin-bottom: 12px;
}

.main_block_review_date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 590;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.23px;
  color: #1b1f26b8;
}

.main_block_review_desc {
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  margin-top: 24px;
}

/* =====================
   Footer / App Privacy
   ===================== */
.main_block_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  margin-bottom: 40px;
}

.main_block_bottom_left {
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: 0.38px;
}

.main_block_bottom_right {
  font-weight: 590;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: -0.43px;
  color: #2b7fff;
  cursor: pointer;
}

/* =====================
   Responsive — 768px
   ===================== */
@media (max-width: 768px) {
  .main_block_top {
    margin-top: 24px;
  }

  .main_block_bottom {
    display: none;
  }

  .main_block_raitings_top {
    display: none;
  }

  .main_block_raitings_mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .main_block_raitings_mid_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: auto;
  }

  .main_block_raitings_mid_right img {
    display: none;
  }

  .main_block_raitings_mid_right .main_block_raitings_mobile_container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    width: auto !important;
    gap: 0 !important;
  }

  .main_block_raitings_mid_right .main_block_raitings_mobile_stars {
    display: block !important;
    margin-bottom: 8px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .main_block_raitings_mid_right .main_block_raitings_mid_right_p1 {
    margin: 0 !important;
  }

  .main_block_param {
    display: flex;
    padding: 16px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main_block_param::-webkit-scrollbar {
    display: none;
  }

  .main_block_param_item {
    flex: 0 0 auto;
    width: 33.33vw;
    min-width: 120px;
    text-align: center;
    scroll-snap-align: start;
    padding: 0 8px;
  }

  .vertical_line {
    flex: 0 0 auto;
    width: 1px;
    height: 64px;
    background-color: #e5e5e5;
    align-self: center;
  }

  .main_block_param_item_desc img {
    margin-top: 8px;
  }

  .main_block_preview_images {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 16px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .main_block_preview_images::-webkit-scrollbar {
    display: none;
  }

  .main_block_preview_image {
    flex: 0 0 auto;
    width: 145px;
    height: 257px;
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .main_block_preview_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }

  .main_block_whats_new {
    padding: 16px 0;
  }

  .main_block_whats_new_top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main_block_whats_new_right_title {
    display: none;
  }

  .main_block_whats_new_bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main_block_whats_new_bottom_right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    order: 1;
  }

  .main_block_whats_new_right_p1 {
    margin-bottom: 0;
    font-size: 14px;
    color: #717182;
  }

  .main_block_whats_new_right_p2 {
    font-size: 14px;
    color: #717182;
  }

  .main_block_whats_new_bottom_left {
    order: 2;
    width: 100%;
  }

  .main_block_whats_new_left_p3 {
    text-align: right;
    margin-top: 16px;
    color: #2b7fff;
    cursor: pointer;
  }

  .main_block_reviews {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 16px;
  }
}

/* =====================
   Responsive — 480px
   ===================== */
@media (max-width: 480px) {
  .top_block {
    display: none;
  }
}

/* =====================
   Responsive — 400px
   ===================== */
/* =====================
   Lightbox / Image Viewer
   ===================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  animation: lb-fade-in 0.2s ease;
}

.lightbox-overlay.active {
  display: flex;
}

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Nav arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  transition: background 0.2s;
  z-index: 10001;
  user-select: none;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Image container */
.lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  animation: lb-zoom-in 0.2s ease;
}

@keyframes lb-zoom-in {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Dot indicators */
.lightbox-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* Preview images — clickable cursor */
.main_block_preview_image img {
  cursor: zoom-in;
}

@media (max-width: 400px) {
  .container {
    max-width: 100%;
    padding: 0 12px;
  }

  .top_block {
    display: none;
  }

  .main_block_top_img img {
    width: 96px;
    height: 96px;
  }

  .main_block_top_desc h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .main_block_top_desc h3 {
    font-size: 16px;
    line-height: 20px;
  }

  .main_block_top_desc p {
    font-size: 14px;
    line-height: 18px;
  }

  .main_block_param {
    border-top: solid 1px #e5e5e5;
    border-bottom: solid 1px #e5e5e5;
  }

  .main_block_param_item_desc img {
    margin-top: 8px;
  }

  .main_block_whats_new_left_title {
    font-size: 22px;
    line-height: 28px;
  }

  .main_block_raitings_mid_left_p1 {
    font-size: 40px;
    line-height: 44px;
  }

  .main_block_bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main_block_bottom_left {
    font-size: 22px;
    line-height: 28px;
  }

  .main_block_reviews {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
}
