:root {
  --main-blue: #5A92F7;
  --main-orange: #ff9900;
  --main-gray: #f5f7fa;
  --main-dark: #333;
  --main-light: #fff;
  --main-red: #ff5c5c;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(45deg, 
    #5A92F7, 
    #7AA8FF, 
    #b8d4ff, 
    #7AA8FF, 
    #5A92F7
  );
  background-size: 400% 400%;
  animation: gradientBG 35s ease infinite;
  font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  color: var(--main-dark);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.container {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 24px 0;
}

.card {
  margin: 16px;
  background: var(--main-gray);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 游戏简介部分特殊样式 */
.card:has(.section-title) {
  padding: 20px;
  background: linear-gradient(to bottom right, var(--main-gray), #f0f4f9);
}

/* 横幅大图不需要动画 */
.card[style*="padding: 0"]:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header {
  display: flex;
  align-items: center;
  padding: 8px;
  border-bottom: none;
  position: relative;
  background: rgba(235, 245, 255, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.header img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #eaf6ff;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.header img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 1;
  transition: all 0.3s ease;
}

.header img:hover::after {
  left: 150%;
}

.header img:hover {
  transform: scale(1.02);
}

.header-info {
  flex: 1;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  margin-bottom: 4px;
}

.header-badge {
  font-size: 0.8rem;
  color: var(--main-blue);
  background: rgba(90, 146, 247, 0.1);
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 4px;
  font-weight: 500;
}

.header-tags {
  margin: 8px 0;
  display: flex;
  gap: 8px;
}

.tag-orange, .tag-red {
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.tag-orange {
  background: var(--main-orange);
  color: #fff;
}

.tag-red {
  background: var(--main-red);
  color: #fff;
}

.header-meta {
  color: #666;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 4px;
}

.download-link {
  text-decoration: none;
  display: inline-block;
  margin-left: auto;
  margin-right: 16px;
}

.download-link:hover {
  text-decoration: none;
}

.download-btn {
  background: linear-gradient(45deg, #6ba1ff, #5A92F7);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(107, 161, 255, 0.4);
  animation: pulse 2s infinite;
  min-width: 100px;
  text-align: center;
}

@keyframes pulse {
  0% {
    box-shadow: 0 2px 8px rgba(107, 161, 255, 0.4);
  }
  50% {
    box-shadow: 0 2px 12px rgba(107, 161, 255, 0.6);
  }
  100% {
    box-shadow: 0 2px 8px rgba(107, 161, 255, 0.4);
  }
}

.download-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 161, 255, 0.5);
  animation: none;
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(90, 146, 247, 0.2);
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

.download-btn:hover::before {
  transform: translateX(-100%);
}

.banner-container {
  width: calc(100% - 6px);
  height: 200px;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  margin: 3px;
  background: white;
}

.banner {
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.3s ease;
}

.banner-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 1;
  transition: all 0.3s ease;
}

.banner-container:hover::before {
  left: 150%;
}

.banner-container:hover .banner {
  transform: scale(1.02);
}

.screenshots {
  display: flex;
  gap: 8px;
  margin: 8px;
  overflow-x: auto;
  padding: 2px;
  overflow-y: hidden;
}

.screenshots img {
  width: 32%;
  min-width: 120px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.screenshots img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-25deg);
  z-index: 1;
  transition: all 0.3s ease;
}

.screenshots img:hover::after {
  left: 150%;
}

.screenshots img:hover {
  transform: scale(1.02);
}

.section {
  margin: 16px;
  background: var(--main-gray);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-dark);
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, var(--main-blue), #4a7bd4);
  border-radius: 2px;
}

.section-content {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
  letter-spacing: 0.5px;
  padding: 0 4px;
}

.footer {
  margin: 16px;
  background: linear-gradient(to bottom right, var(--main-gray), #f0f4f9);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: relative;
  z-index: 1;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-dark);
  margin-bottom: 16px;
  position: relative;
  padding-left: 12px;
}

.footer-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  background: linear-gradient(to bottom, var(--main-blue), #4a7bd4);
  border-radius: 2px;
}

.footer-content {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: justify;
  letter-spacing: 0.5px;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.footer .share-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: var(--main-blue);
  border: 1px solid var(--main-blue);
  border-radius: 16px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  text-decoration: none;
  display: inline-block;
  z-index: 2;
  width: auto;
  height: auto;
}

.footer .share-btn:hover {
  background: rgba(90, 146, 247, 0.05);
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.footer-links a {
  color: var(--main-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #4a7bd4;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .container {
    max-width: 100%;
    padding: 0 0 24px 0;
  }
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    background: rgba(235, 245, 255, 0.9);
  }
  .header img {
    margin: 0 0 16px 0;
  }
  .header-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .header-tags {
    justify-content: center;
  }
  .download-link {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 16px 0 0 0;
  }
  .download-btn {
    width: 80%;
    margin: 0;
  }
  .screenshots {
    gap: 8px;
  }
  .screenshots img {
    min-width: 90px;
  }
  .section, .footer {
    margin: 16px 8px 0 8px;
    padding: 12px;
  }
  .footer {
    margin: 16px;
    width: calc(100% - 32px);
    box-sizing: border-box;
  }
  .footer strong {
    font-size: 0.95rem;
  }
  .footer-links {
    font-size: 0.9rem;
    gap: 6px;
  }
}

.preview-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer;
}

.preview-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.preview-image:hover {
  transform: scale(1.02);
}

.preview-close-btn {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  font-weight: 500;
}

.preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #fff;
}

/* 客服弹窗样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 10% auto;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.close-btn {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
}

.close-btn:hover {
  color: #333;
}

.modal-body {
  padding: 20px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-body h3 {
  margin: 0 0 20px 0;
  text-align: center;
  color: #333;
}

.customer-service-content {
  text-align: center;
}

.customer-service-content p {
  margin: 10px 0;
  color: #666;
}

.customer-service-content img {
  margin: 15px 0;
  border-radius: 4px;
}

/* 客服微信按钮样式 */
.customer-service-btn {
  background: linear-gradient(45deg, #07C160, #0aaf56);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
  animation: pulse-green 2s infinite;
  min-width: 100px;
  text-align: center;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
  }
  50% {
    box-shadow: 0 2px 12px rgba(7, 193, 96, 0.6);
  }
  100% {
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.4);
  }
}

.customer-service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.5);
  animation: none;
}

.customer-service-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(7, 193, 96, 0.2);
} 