:root {
  --main-blue: #5A92F7;
  --main-orange: #ff9900;
  --main-gray: #f5f7fa;
  --main-dark: #333;
  --main-light: #fff;
  --main-red: #ff5c5c;
}

body {
  margin: 0;
  height: 100%;
  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;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 0 24px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-bottom: 100px;
  margin-top: 10px;

}

.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;
  box-sizing: border-box;
}

.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: 100px;
  height: 100px;
  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.2rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #333;
  margin-bottom: 3px;
}

.title-main {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.title-sub {
  font-size: 0.8rem;
  color: var(--main-dark);
  font-weight: 500;
  margin-left: 2px;

}

.header-tags {
  margin: 5px 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.78rem;
  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: 160px;
  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-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.screenshots {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--main-blue) var(--main-gray);
}

/* Custom scrollbar for Webkit browsers */
.screenshots::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

.screenshots::-webkit-scrollbar-track {
  background: var(--main-gray);
  border-radius: 3px;
}

.screenshots::-webkit-scrollbar-thumb {
  background: var(--main-blue);
  border-radius: 3px;
}

.screenshots::-webkit-scrollbar-thumb:hover {
  background: #4a82e6;
}

.screenshots-fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--main-gray));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.screenshots-container:hover .screenshots-fade {
  opacity: 1;
}

.screenshots img {
  flex: 0 0 auto;
  width: 180px;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.screenshots img:hover {
  transform: scale(1.02);
}

/* PC specific styles */
@media (min-width: 768px) {
  .screenshots {
    padding: 12px 4px;
  }
  
  .screenshots img {
    width: 225px;
    height: 400px;
  }
}

.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);
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.856);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 22px 0 16px 0;
}

.bottom-bar-content {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.bottom-bar-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.bottom-bar-info {
  flex: 1;
}

.bottom-bar-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main-dark);
  margin-bottom: 4px;
}

.bottom-bar-subtitle {
  font-size: 0.9rem;
  color: var(--main-blue);
}

.bottom-bar-download {
  text-decoration: none;
}

.bottom-bar-download .download-btn {
  background: linear-gradient(45deg, #ff9900, #ff6b00);
  box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
  animation: pulse-orange 2s infinite;
}

@keyframes pulse-orange {
  0% {
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
  }
  50% {
    box-shadow: 0 2px 12px rgba(255, 153, 0, 0.6);
  }
  100% {
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.4);
  }
}

.bottom-bar-download .download-btn:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(45deg, #ff6b00, #ff9900);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.6);
}

.bottom-bar-download .download-btn:active {
  transform: translateY(1px) scale(0.98);
}

.bottom-bar-download .download-btn::after {
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine-orange 2s infinite;
}

@keyframes shine-orange {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }
  50% {
    transform: translateX(100%) skewX(-15deg);
  }
  100% {
    transform: translateX(-100%) skewX(-15deg);
  }
} 