/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基础样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #54a5eb 0%, #2d7adf 100%);
  min-height: 100vh;
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
.header {
  padding: 60px 0 40px;
  text-align: center;
  color: #fff;
}

.logo {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* 主体样式 */
.main {
  padding: 40px 0 80px;
}

/* 下载区域样式 */
.download-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-bottom: 80px;
}

.download-content {
  flex: 1;
  max-width: 500px;
}

.download-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.device-info {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  min-height: 24px;
}

/* 下载按钮样式 */
.download-btn {
  background: linear-gradient(135deg, #54a5eb 0%, #2d7adf 100%);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 18px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* 加载指示器样式 */
.loading {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.download-btn.loading .loading {
  display: block;
}

.download-tip {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
  min-height: 20px;
}

/* 应用预览样式 */
.app-preview {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.preview-img {
  max-width: 50%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.preview-img:hover {
  transform: scale(1.02);
}

/* 功能介绍区域样式 */
.features-section {
  text-align: center;
  color: #fff;
}

.features-section h2 {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #fff;
}

.feature-item p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.7;
}

/* 页脚样式 */
.footer {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0;
  text-align: center;
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.alternative-download {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.alternative-download h4 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #666;
  font-weight: 600;
}

.alternative-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.alt-download-link {
  color: #333;
  text-decoration: none;
  padding: 12px 24px;
  border: 2px solid #667eea;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.device-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.alt-download-link:hover {
  background: linear-gradient(135deg, #54a5eb 0%, #2d7adf 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.alt-download-link:active {
  transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .download-section {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 40px 30px;
  }

  .download-content {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 40px 0 30px;
  }

  .logo {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .download-content h2 {
    font-size: 2rem;
  }

  .features-section h2 {
    font-size: 2rem;
  }

  .download-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    width: 100%;
    justify-content: center;
  }

  .alternative-links {
    gap: 10px;
  }

  .alt-download-link {
    padding: 10px 20px;
    font-size: 0.9rem;
    gap: 6px;
  }

  .device-icon {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo {
    font-size: 2.5rem;
  }

  .download-section {
    padding: 30px 20px;
    margin-bottom: 60px;
  }

  .download-content h2 {
    font-size: 1.8rem;
  }

  .features-section h2 {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .feature-item {
    padding: 30px 20px;
  }
}
