/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333333;
  line-height: 1.6;
  min-height: 100vh;
  /* 完全禁用触摸缩放，只允许垂直滚动 */
  touch-action: pan-y;
  overflow-x: hidden; /* 防止横向滚动 */
  max-width: 100vw; /* 限制最大宽度 */
}

/* 顶部导航栏 - 现代设计 */
.top-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo i {
  /* margin-right: 0.8rem; */
  font-size: 1.8rem;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 修复搜索栏在移动端的宽度问题 */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.8rem 1.5rem;
  width: 100%; /* 改为100%而不是固定350px */
  max-width: 350px; /* 添加最大宽度限制 */
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* 确保padding包含在宽度内 */
  overflow: hidden; /* 防止内容溢出 */
}

.search-bar:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.search-icon {
  color: #764ba2;
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #333333;
  font-weight: 500;
}

.search-bar input::placeholder {
  color: #888888;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: #666666;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

/* 头部样式 - 现代设计 */
header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  color: white;
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.header-content {
  position: relative;
  z-index: 2;
}

.header-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content p {
  font-size: 1.3rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* 主要内容区域 */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* 应用列表网格布局 */
.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 修复应用卡片可能的溢出问题 */
.app-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  width: 100%; /* 确保卡片不超过容器宽度 */
  box-sizing: border-box; /* 包含padding在宽度计算内 */
  max-width: 100%; /* 防止超出父容器 */
}

.app-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  /* 修改为多彩渐变条 */
  background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #96ceb4 75%, #ffeaa7 100%);
  /* 添加动画效果 */
  animation: rainbowSlide 3s linear infinite;
}

@keyframes rainbowSlide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* 为不同类别的应用卡片设置不同的彩色条 */
.app-card[data-category="game"]::before {
  background: linear-gradient(90deg, #ff6b6b 0%, #ff8e8e 25%, #ff6b9d 50%, #c06bff 75%, #8a6bff 100%);
}

.app-card[data-category="tool"]::before {
  background: linear-gradient(90deg, #4ecdc4 0%, #26d0ce 25%, #1abc9c 50%, #1dd1a1 75%, #10ac84 100%);
}

.app-card[data-category="photo"]::before {
  background: linear-gradient(90deg, #feca57 0%, #ff9ff3 25%, #54a0ff 50%, #5f27cd 75%, #341f97 100%);
}

.app-card[data-category="social"]::before {
  background: linear-gradient(90deg, #ff9ff3 0%, #f368e0 25%, #ee5a52 50%, #ff6b6b 75%, #ff7675 100%);
}

.app-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
  /* 限制变换范围，防止溢出 */
  will-change: transform;
}

.app-card-image {
  position: relative;
  margin-bottom: 1.5rem;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.1) rotate(5deg);
}

.app-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

/* 新增：原价展示区域样式 */
.price-display {
  position: absolute;
  top: 45px;
  right: -10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  z-index: 10;
  animation: priceSlideIn 0.5s ease-out;
}

@keyframes priceSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.original-price {
  text-decoration: line-through;
  color: #e74c3c;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  padding: 0.2rem 0.7rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 2px solid #ef9a9a;
  white-space: nowrap;
  animation: pricePulse 2s infinite;
}

@keyframes pricePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.app-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 内购限免样式 */
.app-badge.in-app-free {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

/* 本体限免样式 */
.app-badge.app-free {
  background: linear-gradient(45deg, #4caf50, #45a049);
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.4);
}

/* 免费兑换样式 */
.app-badge.in-buy-free {
  background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.app-info {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.app-info h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #333333;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.category {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: none;
  border: 1px solid rgba(102, 126, 234, 0.3);
}

.category:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: none;
  cursor: default;
}

.rating {
  display: flex;
  align-items: center;
  color: #ffb54d;
  gap: 0.2rem;
}

.rating-gray {
  display: flex;
  align-items: center;
  color: #6c6c6c;
  gap: 0.2rem;
}

.rating .rated {
  color: #ffb54d;
  text-shadow: 0 0 5px rgba(255, 181, 77, 0.5);
}

.rating-text {
  color: #666666;
  font-size: 0.9rem;
  margin-left: 0.3rem;
  font-weight: 500;
}

.rating-text-gray {
  color: #6c6c6c;
  font-size: 0.9rem;
  margin-left: 0.3rem;
  font-weight: 500;
}

.description {
  color: #666666;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* 重新设计发布时间和应用统计样式 */
.app-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* 全新设计的发布时间样式 */
.publish-time {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
}

.publish-time::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.publish-time:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(106, 17, 203, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.publish-time:hover::before {
  left: 100%;
}

/* 优化其他统计信息样式 */
.app-stats span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #555;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 0.5rem 1rem;
  border-radius: 18px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.app-stats span:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* 重新设计价格样式 */
.price-original {
  text-decoration: line-through;
  color: #e74c3c;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  padding: 0.4rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 2px solid #ef9a9a;
  position: relative;
  animation: pricePulse 3s infinite;
  transition: all 0.3s ease;
}

@keyframes pricePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
}

.price-original:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.free {
  color: #27ae60;
  font-weight: 700;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  padding: 0.4rem 1rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(39, 174, 96, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 2px solid #a5d6a7;
  transition: all 0.3s ease;
}

.free:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 优化分类标签样式 */
.category {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1976d2;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid #90caf9;
  transition: all 0.2s ease;
}

.category:hover {
  background: linear-gradient(135deg, #bbdefb 0%, #90caf9 100%);
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: default;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.get-button {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  flex: 1;
  /* 限制变换范围 */
  transform-origin: center;
  will-change: transform;
}

.get-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  /* 移除可能导致横向溢出的scale变换 */
}

.action-buttons {
  display: flex;
  gap: 0.8rem;
}

.favorite-btn,
.share-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(102, 126, 234, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #667eea;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
  transform: scale(1.1) rotate(15deg);
}

.share-btn:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: scale(1.1) rotate(-15deg);
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.load-more-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.load-more-btn i {
  transition: transform 0.3s ease;
}

.load-more-btn:hover i {
  transform: rotate(180deg);
}

/* 模态框 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  margin: 8% auto;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 550px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.close {
  color: #888888;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close:hover {
  color: #333333;
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.modal-icon {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modal-info {
  flex: 1;
}

.modal-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333333;
}

.modal-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  color: #ffb54d;
  font-size: 1.1rem;
}

.modal-rating span {
  color: #666666;
  margin-left: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.modal-description {
  color: #666666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666666;
  font-size: 0.95rem;
  background: rgba(102, 126, 234, 0.1);
  padding: 0.8rem;
  border-radius: 12px;
}

.modal-get-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-get-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

/* 页脚 */
footer {
  background: rgba(255, 255, 255, 0.9);
  color: #666666;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #333333;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-section p {
  line-height: 1.6;
  color: #666666;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #666666;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.3rem 0;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: #667eea;
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.social-icons a:hover {
  transform: translateY(-5px) rotate(10deg);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #666666;
  font-size: 0.9rem;
}

/* 应用详情页样式 - 确保显示 */
.app-detail-page {
  display: none; /* 默认隐藏 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1000;
  overflow-y: auto;
  animation: slideIn 0.3s ease-out;
}

.app-detail-page.show {
  display: block; /* 通过添加show类来显示 */
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* 详情页头部增强样式 */
.detail-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  z-index: 1001;
  backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  max-width: 100vw;
  overflow-x: hidden;
}

.detail-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="90" cy="20" r="1.5" fill="rgba(255,255,255,0.2)"/><circle cx="30" cy="80" r="0.8" fill="rgba(255,255,255,0.2)"/></svg>');
  opacity: 0.3;
  animation: floatElements 15s infinite linear;
}

@keyframes floatElements {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-15px) translateX(10px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

.back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.detail-actions {
  display: flex;
  gap: 1.2rem;
}

.detail-favorite-btn,
.detail-share-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: white;
  font-size: 1.2rem;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.detail-favorite-btn:hover {
  background: #ff6b6b;
  color: white;
  border-color: #ff6b6b;
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.detail-share-btn:hover {
  background: #4ecdc4;
  color: white;
  border-color: #4ecdc4;
  transform: scale(1.1) rotate(-15deg);
  box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.detail-actions {
  display: flex;
  gap: 1rem;
}

.detail-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 8rem 1.5rem;
}

.app-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.detail-app-icon {
  width: 100px;
  height: 100px;
  border-radius: 25px;
  object-fit: cover;
  border: 3px solid #f0f0f0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-basic-info {
  flex: 1;
}

.app-basic-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
  color: #333;
}

.app-developer {
  color: #666;
  margin-bottom: 0.1rem;
  font-size: 1.1rem;
}

.app-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.1rem;
}

.rating-stars {
  display: flex;
  color: #ffb54d;
}

.rating-stars-gray {
  display: flex;
  color: #6c6c6c;
}

.rating-score {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.rating-score-gray {
  font-weight: 600;
  color: #6c6c6c;
  font-size: 1.1rem;
}

/* 详情页限免信息样式 - 统一标签风格 */
.app-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
  align-items: center;
}

.app-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s ease;
  letter-spacing: 0.3px;
}

/* 限免类型标签 - 绿色系 */
.app-tag.tag-free {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

/* 价格标签 - 红色系 */
.app-tag.tag-price {
  text-decoration: line-through;
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  color: #c62828;
  border: 1px solid #ef9a9a;
}

/* 区域标签 - 蓝色系 */
.app-tag.tag-region {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
  border: 1px solid #90caf9;
}

/* 平台标签 - 紫色系 */
.app-tag.tag-platform {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.app-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.app-screenshots {
  margin-bottom: 2rem;
}

.app-screenshots h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.screenshots-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 200px;
  height: 350px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.screenshot-item:hover {
  transform: scale(1.05);
}
.screenshot {
  width: 260px;
  border-radius: 10px;
}

.app-description {
  margin-bottom: 2rem;
}

.app-description h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.app-description p {
  line-height: 1.7;
  color: #666;
  font-size: 1.05rem;
  white-space: pre-line;
  word-break: break-word;
}

/* 添加功能简介样式 */
.feature-intro {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #fff8f0 0%, #ffe0b3 100%);
  border-radius: 15px;
  border-left: 4px solid #ff9800;
  box-shadow: 0 3px 10px rgba(255, 152, 0, 0.15);
}

.feature-intro h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #ff9800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-intro h2::before {
  content: "💡";
  font-size: 1.2rem;
}

.intro-text {
  line-height: 1.6;
  color: #e65100;
  font-size: 1rem;
  font-weight: 500;
}

/* 添加编辑推荐样式 */
.editor-recommendation {
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 4px solid #667eea;
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.editor-recommendation h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #667eea;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}

.editor-recommendation h2::before {
  content: "✍️";
  font-size: 1.4rem;
}

.recommendation-content {
  line-height: 1.8;
  color: #495057;
  font-size: 1.05rem;
  white-space: pre-line;
}

.app-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-item i {
  font-size: 1.2rem;
  color: #667eea;
  width: 24px;
  text-align: center;
}

.detail-label {
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 0.2rem;
}

.detail-value {
  font-weight: 600;
  color: #333;
  font-size: 1.1rem;
}

.app-reviews {
  margin-bottom: 2rem;
}

.app-reviews h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.reviews-summary {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1.5rem;
}

.overall-rating {
  text-align: center;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
}

.review-count {
  display: block;
  color: #666;
  margin-top: 0.5rem;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-item {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reviewer-name {
  font-weight: 600;
  color: #333;
}

.review-date {
  color: #888;
  font-size: 0.9rem;
}

.review-content {
  color: #666;
  line-height: 1.6;
}

.related-apps {
  padding: 2rem 1.5rem;
  background: #f8f9fa;
  margin-top: 2rem;
}

.related-apps h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  text-align: center;
}

.related-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-app-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.related-app-card:hover {
  transform: translateY(-5px);
}

.related-app-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.related-app-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.related-app-category {
  color: #667eea;
  font-size: 0.9rem;
  font-weight: 500;
}

/* 添加限免时效性提醒样式 */
.price-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 2px solid #ffc107;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
  animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
  0% {
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
  }
  50% {
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
  }
  100% {
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.2);
  }
}

.warning-icon {
  color: #ffc107;
  font-size: 1.8rem;
  flex-shrink: 0;
  animation: iconBounce 1s infinite;
}

@keyframes iconBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.warning-content h3 {
  color: #e65100;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
}

.warning-content p {
  color: #5d4037;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* 添加悬浮获取按钮样式 */
.floating-get-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 1.5rem 1rem 1.5rem;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1002;
}

/* 添加双按钮容器样式 */
.floating-buttons-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.floating-get-btn {
  flex: 1;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
}

.floating-get-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.download-btn {
  background: linear-gradient(45deg, #667eea, #764ba2);
}

.redeem-btn {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
}

.floating-get-btn i {
  font-size: 1.2rem;
}

/* 自定义弹窗样式 */
.custom-alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-alert-modal.show {
  opacity: 1;
  visibility: visible;
}

.custom-alert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.custom-alert-content {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
  z-index: 10001;
}

.custom-alert-modal.show .custom-alert-content {
  transform: scale(1) translateY(0);
}

.custom-alert-header {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.custom-alert-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
}

.custom-alert-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.custom-alert-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #333;
  transform: rotate(90deg);
}

.custom-alert-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

.custom-alert-body p {
  margin: 0;
  line-height: 1.6;
  color: #666;
  font-size: 1.05rem;
  white-space: pre-line;
}

.custom-alert-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.custom-alert-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-danger {
  background: linear-gradient(45deg, #ff6b6b, #ee5a52);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

/* 不同类型弹窗的颜色主题 */
.custom-alert-content.info .custom-alert-header {
  border-bottom-color: rgba(102, 126, 234, 0.3);
}

.custom-alert-content.info .custom-alert-header h3 {
  color: #667eea;
}

.custom-alert-content.success .custom-alert-header {
  border-bottom-color: rgba(46, 213, 115, 0.3);
}

.custom-alert-content.success .custom-alert-header h3 {
  color: #2ed573;
}

.custom-alert-content.warning .custom-alert-header {
  border-bottom-color: rgba(255, 152, 0, 0.3);
}

.custom-alert-content.warning .custom-alert-header h3 {
  color: #ff9800;
}

.custom-alert-content.error .custom-alert-header {
  border-bottom-color: rgba(255, 71, 87, 0.3);
}

.custom-alert-content.error .custom-alert-header h3 {
  color: #ff4757;
}

.custom-alert-content.confirm .custom-alert-header {
  border-bottom-color: rgba(102, 126, 234, 0.3);
}

.custom-alert-content.confirm .custom-alert-header h3 {
  color: #667eea;
}

/* 滚动条样式 */
.custom-alert-body::-webkit-scrollbar {
  width: 6px;
}

.custom-alert-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

.custom-alert-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.custom-alert-body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
}

.price-history {
  background: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-history h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

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

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.history-item:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 14px;
  color: #666;
}

.history-type {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent; /* 添加统一的边框 */
}

.history-type.free {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-color: #c8e6c9; /* 添加绿色边框 */
}

.history-type.in-app {
  background-color: #fff8e1;
  color: #f57f17;
  border-color: #ffecb3; /* 添加黄色边框 */
}

.history-type.full {
  background-color: #e3f2fd;
  color: #1976d2;
  border-color: #bbdefb; /* 添加蓝色边框 */
}
/* 添加搜索结果样式 */
.search-results {
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-results p {
  margin: 0;
  font-size: 1.1rem;
}

/* 搜索时卡片的过渡效果 */
.app-card {
  transition: all 0.3s ease;
}

.warning-text {
  color: #555; /* 深灰色 */
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 8px; /* 与下方按钮保持间距 */
}

.domain {
  color: #d5d3d3;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  background: linear-gradient(145deg, #c0c0c0, #d0d0d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 10px;
  margin: 10px 0;
  text-align: center;
  text-shadow: -1px -1px 1px rgba(255, 255, 255, 0.7), 1px 1px 2px rgba(80, 80, 80, 0.3);
}
/* 限免提示气泡样式 - 炫彩升级版 */
.free-tip-bubble {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 300% 300%;
  color: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 10px 50px rgba(102, 126, 234, 0.6), 0 0 30px rgba(118, 75, 162, 0.4), inset 0 0 20px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 90%;
  min-width: 280px;
  animation: gradientShift 4s ease infinite;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.free-tip-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.free-tip-bubble .tip-icon {
  font-size: 28px;
  animation: tipIconPulse 1.5s infinite, iconRotate 3s linear infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes tipIconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

@keyframes iconRotate {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)) hue-rotate(0deg);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) hue-rotate(180deg);
  }
}

.free-tip-bubble .tip-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.free-tip-bubble .tip-close {
  background: rgba(255, 255, 255, 0.25);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.free-tip-bubble .tip-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.4);
}

/* 炫彩光晕效果 - 增强版 */
.free-tip-bubble::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea, #764ba2);
  background-size: 400% 400%;
  border-radius: 16px;
  z-index: -1;
  opacity: 0.7;
  animation: gradientFlow 2s ease infinite, glowPulse 1.5s ease-in-out infinite alternate;
  filter: blur(8px);
}

.free-tip-bubble::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  border-radius: 16px;
  z-index: -1;
  animation: shimmer 3s linear infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes glowPulse {
  0% {
    filter: blur(8px);
    opacity: 0.5;
  }
  100% {
    filter: blur(12px);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  main {
    padding: 1.5rem;
  }
  .header-content h1 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
  }

  .header-content p {
    font-size: 1.1rem;
  }
  .app-card-image {
    margin-bottom: 0;
  }
  .screenshot {
    width: 200px;
    border-radius: 10px;
  }
  .detail-header {
    padding: 0.8rem;
  }
  .back-btn {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }
  .detail-favorite-btn,
  .detail-share-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1rem;
  }
  .custom-alert-content {
    width: 95%;
    margin: 0 2.5%;
  }

  .custom-alert-header {
    padding: 1.2rem 1.2rem 0.8rem;
  }

  .custom-alert-header h3 {
    font-size: 1.1rem;
  }

  .custom-alert-body {
    padding: 1.2rem;
  }

  .custom-alert-body p {
    font-size: 1rem;
  }

  .custom-alert-footer {
    padding: 0.8rem 1.2rem 1.2rem;
    flex-direction: column;
  }

  .custom-alert-btn {
    width: 100%;
  }
  .warning-icon {
    display: none;
  }
  .app-basic-info h1 {
    font-size: 1.3rem;
  }
  .app-developer {
    color: #666;
    margin-bottom: 0.1rem;
    font-size: 1rem;
  }
  .editor-recommendation {
    padding: 1rem;
  }
  .app-screenshots h2,
  .app-description h2,
  .editor-recommendation h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  .feature-intro {
    padding: 1rem;
  }
  .warning-content h3 {
    font-size: 1.1rem;
  }
  .nav-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.2rem;
    width: 100%; /* 确保不超过视口 */
    box-sizing: border-box;
    max-width: 100vw; /* 严格限制最大宽度 */
    overflow-x: hidden; /* 防止横向滚动 */
  }

  .search-bar {
    width: 100%;
    max-width: 100%; /* 移动端允许占满宽度 */
    order: 3;
    box-sizing: border-box;
  }

  .app-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .app-card {
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
  }

  /* 修复移动端按钮动画 */
  .get-button:hover {
    transform: translateY(-2px); /* 减少位移幅度 */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  }

  .favorite-btn:hover,
  .share-btn:hover {
    transform: scale(1.05); /* 减少缩放比例 */
  }

  .detail-favorite-btn:hover,
  .detail-share-btn:hover {
    transform: scale(1.05); /* 减少缩放比例 */
  }

  .price-display {
    top: 40px;
    right: -5px;
  }

  .original-price {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
  }

  .current-price {
    font-size: 0.9rem;
    padding: 0.35rem 0.8rem;
  }

  .detail-content {
    padding: 1.2rem 1.3rem 8rem 1.3rem;
  }

  .detail-price-info {
    gap: 0.5rem;
  }

  .detail-price-info .app-badge {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .detail-price .original-price {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .app-tags-container {
    gap: 0.4rem;
  }

  .app-tag {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }
}
