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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  font-weight: 500;
  background: #7ec0ee;
  min-height: 100vh;
  color: #3a3a3a;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sky-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    #4a90d9 0%,
    #6bb6e3 30%,
    #87ceeb 60%,
    #a8dcf0 100%
  );
  z-index: -2;
}

.sky-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.8) 2px, transparent 2px),
    radial-gradient(circle at 35% 50%, rgba(255,255,255,0.6) 1px, transparent 1px),
    radial-gradient(circle at 65% 15%, rgba(255,255,255,0.7) 2px, transparent 2px),
    radial-gradient(circle at 85% 40%, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.4) 1px, transparent 1px),
    radial-gradient(circle at 25% 70%, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,0.6) 2px, transparent 2px);
  background-size: 300px 200px;
  animation: twinkle 20s linear infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 120px;
  position: relative;
  z-index: 1;
}

/* ============ HERO SECTION ============ */
.hero {
  text-align: center;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
}

.title-cn {
  font-family: 'ZCOOL KuaiLe', 'Microsoft YaHei', sans-serif;
  font-size: clamp(3rem, 10vw, 5rem);
  color: #fff;
  text-shadow:
    3px 3px 0 #2d5a27,
    6px 6px 0 rgba(0,0,0,0.3);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  animation: titleFloat 4s ease-in-out infinite;
  white-space: nowrap;
}

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

.title-en {
  font-family: 'ZCOOL KuaiLe', 'Microsoft YaHei', sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: #e8fff0;
  text-shadow:
    2px 2px 0 #1a3d15,
    4px 4px 0 rgba(0,0,0,0.3);
  letter-spacing: 0.25em;
  font-weight: 700;
  white-space: nowrap;
}

.version {
  font-family: 'Microsoft YaHei', sans-serif;
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  color: #ffffff;
  background: linear-gradient(180deg, #5fa84e 0%, #3d7a35 100%);
  display: inline-block;
  padding: 6px 20px;
  border-radius: 20px;
  margin-top: 14px;
  border: 2px solid #2d5a27;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.3),
    3px 3px 0 rgba(0,0,0,0.2);
  letter-spacing: 0.1em;
  font-weight: 700;
  white-space: nowrap;
}

/* ============ CREEPER SECTION ============ */
.creeper-section {
  display: flex;
  justify-content: center;
  padding: 30px 20px;
}

.creeper-frame {
  position: relative;
  width: min(280px, 75vw);
  aspect-ratio: 1;
  background: linear-gradient(135deg, #5fa84e 0%, #7bc864 50%, #5fa84e 100%);
  border: 6px solid #2d5a27;
  border-radius: 8px;
  padding: 16px;
  box-shadow:
    inset 0 0 0 3px #3d7a35,
    inset 0 0 0 6px #4d9a42,
    8px 8px 0 rgba(0,0,0,0.3),
    0 20px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.creeper-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.15) 3px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(0,0,0,0.1) 2px, transparent 2px),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.1) 2px, transparent 2px);
  background-size: 40px 40px;
  pointer-events: none;
}

.creeper-frame:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    12px 12px 0 rgba(0,0,0,0.3),
    0 30px 60px rgba(0,0,0,0.4);
}

.creeper-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  position: relative;
  z-index: 1;
}

/* ============ DOWNLOADS SECTION ============ */
.downloads {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
}

.download-card {
  background: linear-gradient(180deg, #f8f8f8 0%, #ededed 100%);
  border: 4px solid #5a5a5a;
  border-radius: 8px;
  padding: 26px 24px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.8),
    inset 0 -2px 0 rgba(0,0,0,0.1),
    6px 6px 0 rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(0,0,0,0.25);
}

.card-title {
  font-family: 'ZCOOL KuaiLe', 'Microsoft YaHei', sans-serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  color: #1a3d15;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 3px dashed #7bc864;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.card-title::before {
  content: '▸';
  color: #2d5a27;
  font-size: 0.9em;
}

/* ===== 共享按钮基类 (.download-link / .cloud-link) ===== */
.download-link,
.cloud-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: 3px solid;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.35);
  transition: all 0.2s ease;
  cursor: pointer;
}

.download-link:hover,
.cloud-link:hover {
  transform: translate(-2px, -2px);
}

.download-link:active,
.cloud-link:active {
  transform: translate(1px, 1px);
}

.download-link:active {
  transform: translate(2px, 2px);
}

/* ===== .download-link 专属 ===== */
.download-link {
  gap: 10px;
  padding: 18px 28px;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #7bc864 0%, #5fa84e 100%);
  border-color: #2d5a27;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.2),
    4px 4px 0 rgba(0,0,0,0.2);
}

.download-link:hover {
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.2),
    6px 6px 0 rgba(0,0,0,0.25);
}

.download-link:active {
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.2),
    2px 2px 0 rgba(0,0,0,0.2);
}

.download-link .link-icon {
  font-size: 1.3rem;
}

.download-link.mod {
  background: linear-gradient(180deg, #d4a84e 0%, #b8892e 100%);
  border-color: #7a5a1a;
}

/* ============ CLOUD LINKS ============ */
.cloud-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.cloud-link {
  padding: 16px 14px;
  font-size: 1.05rem;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.15),
    3px 3px 0 rgba(0,0,0,0.15);
}

.cloud-link:hover {
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.15),
    5px 5px 0 rgba(0,0,0,0.2);
}

.cloud-link:active {
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    inset 0 -3px 0 rgba(0,0,0,0.15),
    2px 2px 0 rgba(0,0,0,0.15);
}

.cloud-link.quark {
  background: linear-gradient(180deg, #4ea8d4 0%, #2d7a9e 100%);
  border-color: #1a4a6e;
}

.cloud-link.baidu {
  background: linear-gradient(180deg, #d44e4e 0%, #9e2d2d 100%);
  border-color: #6e1a1a;
}

.cloud-link.lanzou {
  background: linear-gradient(180deg, #a855d4 0%, #7a2d9e 100%);
  border-color: #4a1a6e;
}

/* ============ CREDITS ============ */
.credits {
  margin-top: 40px;
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(50,50,50,0.94) 0%, rgba(30,30,30,0.96) 100%);
  border: 4px solid #3a3a3a;
  border-radius: 8px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.08),
    6px 6px 0 rgba(0,0,0,0.25);
  text-align: center;
}

.credit-item {
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  color: #ffffff;
  line-height: 2.4;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.credit-item strong {
  color: #7bc864;
  font-size: 1.25em;
  font-weight: 700;
}

.credit-item .highlight {
  color: #f5c842;
  font-weight: 700;
}

.credit-item:first-child {
  margin-bottom: 4px;
}

/* ============ GROUND ============ */
.ground {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(
    180deg,
    #5fa84e 0%,
    #4d8a3e 20%,
    #6b4423 20%,
    #5a3a1a 50%,
    #4a2e14 100%
  );
  z-index: -1;
  image-rendering: pixelated;
}

.ground::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 12px;
  background:
    repeating-linear-gradient(
      90deg,
      #6bb854 0px,
      #6bb854 8px,
      #5fa84e 8px,
      #5fa84e 16px
    );
}

.ground::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 60%, rgba(0,0,0,0.15) 3px, transparent 3px),
    radial-gradient(circle at 30% 80%, rgba(0,0,0,0.1) 2px, transparent 2px),
    radial-gradient(circle at 55% 50%, rgba(255,255,255,0.05) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.12) 3px, transparent 3px);
  background-size: 60px 80px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 120px;
  }

  .hero {
    padding: 24px 16px 16px;
  }

  .creeper-frame {
    width: min(240px, 70vw);
  }

  .download-card {
    padding: 20px 16px;
  }

  .cloud-links {
    grid-template-columns: 1fr;
  }

  .ground {
    height: 60px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 800px;
  }
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #3a3a3a;
}

::-webkit-scrollbar-thumb {
  background: #5fa84e;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7bc864;
}

::selection {
  background: #5fa84e;
  color: #fff;
}