*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #1a1f2e;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.08), transparent),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px 48px;
}

.download-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 0 64px;
}

.page-title {
  margin: 0 0 36px;
  width: 100%;
  max-width: 960px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: center;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 24px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 16px 40px rgba(59, 130, 246, 0.1);
}

.platform-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  background: #f8fafc;
  border-radius: 18px;
}

.platform-icon img {
  display: block;
}

.platform-name {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.platform-compat {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
  min-height: 2.4em;
}

.platform-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 140px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
  background: #eff6ff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

a.platform-btn:hover {
  background: #dbeafe;
  transform: scale(1.02);
}

.platform-btn.is-unavailable {
  color: #94a3b8;
  background: #f1f5f9;
  cursor: default;
}

.site-footer {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

.icp {
  margin: 0 0 8px;
  font-size: 12px;
  color: #94a3b8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-nav a {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #64748b;
}

@media (max-width: 720px) {
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .platform-card {
    padding: 24px 14px 18px;
  }
}
