[hidden] {
  display: none !important;
}

:root {
  --primary: #bf95f7;
  --purple-border: rgba(191, 149, 247, 0.4);
  --btn-gradient: linear-gradient(135deg, #7634ea, #b04ef6);
  --error-red: #ff4d4d;
  --gold: #ffd700;
  --brand-red: #fe4e60;
  --bg: #1a1a1a;
}

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

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding: 15px;
  display: flex;
  flex-direction: column;
}

.header {
  margin-top: 10px;
}

.description {
  color: #ff007f;
  font-size: 24px;
  text-align: center;
  margin-top: 100px;
  font-weight: 500;
}

.main-image-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200vh;
  z-index: -1;
  overflow: hidden;
}

.scrolling-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  animation: scrollBackground 30s linear infinite;
}

.scrolling-image {
  width: 100%;
  height: 50%;
  background-image: url("/assets/changtu.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes scrollBackground {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.left-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: auto;
}

.title-text {
  width: 300px;
  color: var(--brand-red);
  font-style: italic;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0;
}

.left-image-text-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.left-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}

.left-image:hover {
  transform: scale(1.08);
}

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

.text-label {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  flex: 1;
  text-align: left;
  max-width: 300px;
}

.thumbnails {
  position: fixed;
  bottom: 125px;
  left: 0;
  width: 100%;
  display: flex;
  gap: 5px;
  z-index: 5;
  overflow-x: auto;
  scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumbnails-container {
  display: flex;
  gap: 5px;
  animation: scroll 20s linear infinite;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.thumbnail {
  width: 120px;
  height: 200px;
  border-radius: 16px;
  object-fit: cover;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.download-button {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  z-index: 99999 !important;
  background: linear-gradient(145deg, #ff5a70, #fe2f50);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  min-width: 240px;
  height: 75px;
  box-shadow:
    0 8px 30px rgba(254, 78, 96, 0.7),
    0 0 40px rgba(255, 60, 80, 0.8),
    0 0 60px rgba(255, 100, 120, 0.6),
    inset 0 -4px 10px rgba(0, 0, 0, 0.2),
    inset 0 4px 10px rgba(255, 255, 255, 0.2);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform, box-shadow;
  -webkit-font-smoothing: antialiased;
  animation: glowPulse 2.2s infinite ease-in-out;
}

.download-button[aria-disabled="true"] {
  pointer-events: none;
  filter: grayscale(0.15);
}

.download-button span {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0;
  z-index: 2;
}

.download-button:hover {
  transform: translateX(-50%) scale(1.08) translateZ(0);
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 8px 30px rgba(254, 78, 96, 0.7),
      0 0 40px rgba(255, 60, 80, 0.8),
      0 0 60px rgba(255, 100, 120, 0.6),
      inset 0 -4px 10px rgba(0, 0, 0, 0.2),
      inset 0 4px 10px rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 10px 35px rgba(254, 78, 96, 0.9),
      0 0 50px rgba(255, 60, 80, 1),
      0 0 75px rgba(255, 100, 120, 0.8),
      inset 0 -4px 10px rgba(0, 0, 0, 0.2),
      inset 0 4px 10px rgba(255, 255, 255, 0.2);
  }
}

.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  padding: 9px 14px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  text-align: center;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.social-proof {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, -86px);
  z-index: 30;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
}

.backup-buttons {
  position: fixed;
  left: 50%;
  bottom: 126px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  gap: 8px;
}

.backup-buttons a,
.copy-button,
.contact-button {
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.backup-buttons a {
  padding: 8px 12px;
  font-size: 13px;
}

.copy-button {
  position: fixed;
  left: 50%;
  bottom: 136px;
  transform: translateX(-50%);
  z-index: 26;
  padding: 9px 14px;
}

.contact-button {
  position: fixed;
  right: 16px;
  bottom: 132px;
  z-index: 80;
  padding: 10px 12px;
  font-size: 13px;
}

.mask {
  position: fixed;
  inset: 0;
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.mask-panel {
  width: min(360px, 100%);
  border-radius: 8px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px;
  text-align: center;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}

.mask-panel h1 {
  font-size: 21px;
  margin-bottom: 10px;
}

.mask-panel p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.mask-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.main-container,
.modal-overlay,
.loading-overlay {
  display: none;
}

@media (min-width: 768px) {
  .main-image-section {
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
  }

  .container {
    width: 400px;
    margin: 0 auto;
  }

  body {
    display: flex;
    justify-content: center;
  }

  .left-container {
    left: 50%;
    transform: translateX(-50%);
  }

  .title-text {
    font-size: 48px;
  }

  .left-image-text-container {
    width: 400px;
    padding-left: 0;
    padding-right: 0;
  }

  .left-image {
    width: 70px;
    height: 70px;
  }

  .text-label {
    font-size: 13px;
  }

  .thumbnails {
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    bottom: 80px;
  }

  .download-button {
    height: 80px;
    min-width: 350px;
  }

  .download-button span {
    font-size: 36px;
  }

  .backup-buttons,
  .copy-button {
    bottom: 170px;
  }
}
