/*===========================
    APP下载页面样式
    App Download Page Styles
===========================*/

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 20px;
  color: #333;
  font-size: 14px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}

.box-body {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

h2 {
  color: #2fbbe8;
  text-align: center;
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 600;
}

h3 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 20px;
  border-left: 4px solid #2fbbe8;
  padding-left: 15px;
}

.update-time {
  text-align: right;
  color: #999;
  font-size: 12px;
  margin-bottom: 30px;
}

p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.download-section {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 1px solid #e9ecef;
}

.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2fbbe8, #1e90ff);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  margin: 10px 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 187, 232, 0.3);
  font-weight: 500;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 187, 232, 0.4);
}

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

.qr-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 40px 0;
  gap: 30px;
}

.qr-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.qr-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.qr-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #2fbbe8, #1e90ff, #667eea, #764ba2);
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.qr-item:hover::before {
  opacity: 0.3;
}

.qr-item p {
  margin-top: 15px;
  font-weight: 500;
  color: #333;
  font-size: 16px;
}

#androidQr,
#iosQr {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  position: relative;
}

#androidQr img,
#iosQr img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: qrPulse 2s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 25px rgba(47, 187, 232, 0.3);
  }
}

.scan-hint {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.platform-detect {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #2fbbe8, #1e90ff);
  color: white;
  border-radius: 10px;
  text-align: center;
  display: none;
}

.platform-detect.show {
  display: block;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.link-text {
  word-break: break-all;
  color: #2fbbe8;
  text-decoration: none;
  font-size: 13px;
}

.link-text:hover {
  text-decoration: underline;
}

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    padding: 10px;
    background: white;
  }

  .box-body {
    padding: 20px 15px;
    border-radius: 15px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
    margin-top: 25px;
  }

  .download-section {
    padding: 15px;
  }

  .download-btn {
    display: block;
    text-align: center;
    margin: 10px 0;
    width: 100%;
  }

  .qr-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .qr-item {
    width: 100%;
    max-width: 280px;
  }

  #androidQr img,
  #iosQr img {
    width: 180px;
    height: 180px;
  }

  p {
    font-size: 14px;
    text-indent: 0;
    padding-left: 0;
  }

  .update-time {
    text-align: center;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 20px;
  }

  #androidQr img,
  #iosQr img {
    width: 160px;
    height: 160px;
  }
}

