* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 20px 30px;
}

.header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #ffd700, #ff8c00, #ffd700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 3s linear infinite;
  margin-bottom: 10px;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.header p {
  color: #a0a0b0;
  font-size: 1rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffd700;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  background: rgba(255, 215, 0, 0.05);
}

.back-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateX(-3px);
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 30px 0;
}

.platform-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.platform-card:hover::before {
  left: 100%;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

.platform-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
}

.platform-card h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ffd700;
}

.platform-card p {
  color: #a0a0b0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.version-section {
  margin-bottom: 40px;
}

.version-title {
  font-size: 1.5rem;
  color: #ffd700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #ffd700, #ff8c00);
  border-radius: 2px;
}

.version-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.version-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 25px;
  transition: all 0.3s ease;
}

.version-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-3px);
}

.version-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.version-card .badge {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  font-weight: normal;
}

.screenshot {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.download-btn:active {
  transform: scale(0.98);
}

.game-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.game-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.game-item:hover {
  border-color: rgba(255, 215, 0, 0.4);
  transform: translateY(-2px);
}

.game-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
}

.game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.game-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-info h4 {
  font-size: 0.95rem;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.game-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.game-download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #1a1a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #1a1a2e;
  z-index: 1;
}

.modal-header h3 {
  color: #ffd700;
  font-size: 1.3rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.modal-body {
  padding: 25px;
}

.footer {
  text-align: center;
  padding: 30px 20px;
  color: #606070;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .platform-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

  .platform-card {
    padding: 30px 20px;
  }

  .platform-icon {
    font-size: 3rem;
  }

  .platform-card h2 {
    font-size: 1.4rem;
  }

  .version-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .game-list {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 15px;
  }

  .header {
    padding: 25px 15px 20px;
  }

  .version-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.5rem;
  }

  .version-card {
    padding: 18px;
  }

  .game-item {
    padding: 15px;
  }

  .game-icon {
    width: 56px;
    height: 56px;
    font-size: 2.5rem;
  }

  .modal-header {
    padding: 15px 20px;
  }

  .modal-body {
    padding: 20px;
  }
}
