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

body * {
  cursor: default;
}

a, a *, .download-btn, .download-btn * {
  cursor: pointer;
}

:root {
  --color-text: #1a1a1a;
  --color-secondary: #3a3a3a;
  --color-hint: #8a8a8a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: linear-gradient(160deg, #f7f7f7 0%, #ffffff 40%, #fafafa 70%, #f5f5f5 100%);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  padding-top: env(safe-area-inset-top, 0px);
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 40%),
              radial-gradient(ellipse at 50% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 50%),
              radial-gradient(ellipse at center, transparent 30%, rgba(230, 230, 230, 0.3) 100%);
  pointer-events: none;
  z-index: -1;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.hero {
  text-align: center;
  max-width: 800px;
  width: 100%;
  margin-top: -4rem;
  padding-top: 1rem;
}

.subtitle {
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--color-secondary);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  animation: float 5s ease-in-out infinite;
}

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

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--color-secondary);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 2rem;
}

.features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  margin-top: 3rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--color-secondary);
  font-weight: 400;
  opacity: 0;
  animation: featureFadeIn 0.6s ease-out forwards;
}

.feature-item:nth-child(1) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.4s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes featureFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-keyword {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}

.feature-desc {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
  line-height: 1.6;
  max-width: 120px;
  text-align: center;
}

.download-hint {
  font-size: 0.75rem;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 1.4rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06),
              inset 0 1px 0 rgba(255, 255, 255, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.3);
  min-width: 160px;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.download-btn:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.2);
  outline-offset: 2px;
}

.download-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.macos-btn svg {
  width: 20px;
  height: 20px;
}

.download-btn:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.6);
}

.download-meta {
  font-size: 0.75rem;
  color: var(--color-hint);
}

.download-meta span {
  margin: 0 0.5rem;
}

.download-meta span:last-child {
  margin-right: 0;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 640px) {
  .container {
    padding: 1.5rem;
  }

  .features {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .download-btn {
    padding: 0.75rem 1rem;
    min-width: auto;
  }
}
