/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #2C3143;
  color: #1d202a;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

.page {
  width: 100%;
  background-color: #fff;
  min-height: 100vh;
}

/* Header Navigation */
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e8f1;
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-icon img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  margin-left: 16px;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: #1d202a;
  flex: 1;
  margin-left: 12px;
  padding-left: 16px;
}

.install-btn {
  background-color: #477cff;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  margin-right: 16px;
  animation: breathe 1.5s ease-in-out infinite;
}

.install-btn:hover {
  background-color: #3d6be8;
}

/* 手指引导动画 */
.finger-guide {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  animation: fingerTap 2s infinite;
  display: none;
}

.finger-guide-main {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 40px;
  height: 40px;
  z-index: 10;
  pointer-events: none;
  animation: fingerTapMain 2s infinite;
  display: none;
}

.finger-icon {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes fingerTap {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  20%, 80% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes fingerTapMain {
  0%, 100% {
    opacity: 0;
    transform: scale(0.8);
  }
  20%, 80% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(71, 124, 255, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(71, 124, 255, 0.7);
  }
}

/* Screenshot Section */
.screenshot-section {
  background-color: #17181c;
  position: relative;
}

.screenshot-container {
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.carousel-wrapper {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  width: 33.333%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-slide {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

/* Carousel Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  background-color: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
  overflow: hidden;
  position: relative;
}

.carousel-arrow.left-arrow {
  margin-left: 16px;
}

.carousel-arrow.right-arrow {
  margin-right: 16px;
}

.arrow-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow:hover {
  transform: scale(1.1);
}

.carousel-arrow:hover .arrow-icon {
  transform: scale(1.1);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* Currency Bar */
.currency-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

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

.balance-amount {
  font-size: 18px;
  font-weight: 600;
  color: #1d202a;
}

.coin-icon {
  width: 20px;
  height: 20px;
}

.withdraw-btn {
  background-color: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* Withdraw Section */
.withdraw-section h3 {
  font-size: 14px;
  color: #6e7894;
  margin-bottom: 16px;
}

/* Main Task */
.main-task {
  margin-bottom: 20px;
}

.task-title {
  font-size: 16px;
  font-weight: 600;
  color: #1d202a;
  margin-bottom: 12px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f8f9fa;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.app-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.app-info {
  flex: 1;
}

.rating, .downloads, .reward {
  font-size: 12px;
  color: #6e7894;
  margin-bottom: 2px;
}

.reward {
  color: #ff6b35;
  font-weight: 600;
}

.install-earn-btn {
  background-color: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
  cursor: pointer;
}

/* Navigation Arrows */
.nav-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.arrow {
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #1d202a;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Game Recommendations */
.recommendations {
  margin-bottom: 20px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #1d202a;
  margin-bottom: 12px;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 12px;
}

.game-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.game-info {
  flex: 1;
}

.game-name {
  font-size: 14px;
  font-weight: 500;
  color: #1d202a;
  margin-bottom: 4px;
}

.game-rating {
  font-size: 12px;
  color: #477cff;
}

.play-btn {
  background-color: #477cff;
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* Progress Section */
.progress-section {
  margin-bottom: 20px;
}

/* Extra Banner */
.extra-banner {
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-top: 20px;
}

.banner-content {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* App Info Section */
.app-info-section {
  background-color: #2C3143;
  padding: 24px 0;
  color: #fff;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 16px;
}

.app-icon-large {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.app-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-subtitle {
  font-size: 14px;
  color: #477cff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.app-subtitle:hover {
  color: #3d6be8;
}

.app-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-number {
  font-size: 12px;
  font-weight: 500;
}

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

.star-icon {
  width: 12px;
  height: 12px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.stat-number {
  font-size: 12px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.1);
}

.age-rating {
  background-color: #fff;
  color: #1d202a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.main-install-btn {
  background-color: #477cff;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  width: calc(100% - 32px);
  margin: 0 16px 14px 16px;
  cursor: pointer;
  position: relative;
  animation: breathe 1.5s ease-in-out infinite;
}

.contact-link {
  color: #477cff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: block;
  padding: 0 16px;
}

/* Reviews Section */
.reviews-section {
  background-color: #fff;
  padding: 20px 0;
}

.reviews-title {
  font-size: 15px;
  font-weight: 500;
  color: #1d202a;
  margin-bottom: 30px;
}

/* Device Filter */
.device-filter {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-btn {
  background-color: transparent;
  border: 1px solid #cdd0d8;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  color: #6e7894;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active {
  background-color: rgba(71, 124, 255, 0.16);
  border-color: #477cff;
  color: #477cff;
}

/* Rating Summary */
.rating-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.rating-overview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.overall-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.rating-big {
  font-size: 50px;
  font-weight: 500;
  color: #1d202a;
}

.stars-big {
  color: #477cff;
  font-size: 20px;
}

.total-reviews {
  font-size: 12px;
  color: #6e7894;
  font-weight: 500;
}

.rating-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.star-label {
  font-size: 12px;
  color: #1d202a;
  font-weight: 500;
  width: 12px;
}

.bar-container {
  flex: 1;
  height: 9px;
  background-color: #eef0f8;
  border-radius: 5px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background-color: #477cff;
  border-radius: 5px;
}

/* Review List */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.user-name {
  font-size: 13px;
  font-weight: 500;
  color: #1d202a;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.review-date {
  font-size: 12px;
  color: #6e7894;
}

.review-text {
  font-size: 13px;
  color: #4c5263;
  line-height: 20px;
  margin-bottom: 12px;
}

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

.helpful-count {
  font-size: 13px;
  color: #4c5263;
}

.helpful-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.helpful-label {
  font-size: 13px;
  color: #4c5263;
}

.helpful-btn {
  background-color: #fff;
  border: 1px solid #cdd0d8;
  border-radius: 16px;
  padding: 4px 12px;
  font-size: 14px;
  color: #4c5263;
  cursor: pointer;
  transition: all 0.2s;
}

.helpful-btn:hover {
  background-color: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 360px) {
  .page {
    max-width: 100%;
  }
  
  .screenshot-container {
    margin: 0;
    max-width: none;
  }
  
  .carousel-container {
    height: 500px;
  }
  
  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .nav-bar {
    padding: 12px 16px;
  }
  
  .app-info-section {
    padding: 20px 16px;
  }
  
  .reviews-section {
    padding: 16px;
  }
}
