/* ============================================
   下载页面 - 简洁优雅版
   ============================================ */

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

body {
  background: #FFFFFF;
  color: #333333;
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  padding: 0;
}

/* 页面容器 */
.download-page-container {
  max-width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================
   顶部APP信息区域
   ============================================ */
.app-header-section {
  background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
  padding: 50px 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.app-logo-container {
  margin-bottom: 20px;
  display: inline-block;
}

.app-logo {
  width: 90px;
  height: 90px;
  border-radius: 20px;
  object-fit: cover;
  border: 4px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #FFFFFF;
}

.app-name {
  font-size: 32px;
  font-weight: 700;
  color: #FFD700;
  margin: 0 0 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
}

.app-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.app-version {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.version-label {
  font-size: 14px;
  color: #FFD700;
  font-weight: 600;
}

.version-time {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* ============================================
   下载卡片区域
   ============================================ */
.download-section {
  flex: 1;
  padding: 24px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.download-card {
  background: #FFFFFF;
  border: 2px solid;
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.download-card:hover::before {
  transform: scaleX(1);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

/* 安卓卡片 */
.android-card {
  border-color: #E8F5E9;
  background: linear-gradient(135deg, #FFFFFF, #F1F8F4);
}

.android-card:hover {
  border-color: #7FB069;
  box-shadow: 0 4px 16px rgba(127, 176, 105, 0.2);
}

/* iOS卡片 */
.ios-card {
  border-color: #FFE5E5;
  background: linear-gradient(135deg, #FFFFFF, #FFF8F8);
}

.ios-card:hover {
  border-color: #DC143C;
  box-shadow: 0 4px 16px rgba(220, 20, 60, 0.2);
}

/* 图标盒子 */
.card-icon-box {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.android-box {
  background: linear-gradient(135deg, #7FB069, #5A9A4A);
}

.ios-box {
  background: linear-gradient(135deg, #666666, #999999);
}

.platform-icon {
  width: 36px;
  height: 36px;
  color: #FFFFFF;
}

/* 卡片内容 */
.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #DC143C;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: #666666;
  margin: 0;
  font-weight: 400;
}

/* 卡片操作区 */
.card-action {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.action-text {
  font-size: 12px;
  color: #DC143C;
  font-weight: 500;
  white-space: nowrap;
}

.action-arrow {
  font-size: 18px;
  color: #DC143C;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.download-card:hover .action-arrow {
  transform: translateX(3px);
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 480px) {
  .app-header-section {
    padding: 40px 16px 32px;
  }
  
  .app-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
  }
  
  .app-name {
    font-size: 28px;
    letter-spacing: 1px;
  }
  
  .app-desc {
    font-size: 14px;
  }
  
  .app-version {
    padding: 10px 16px;
  }
  
  .download-section {
    padding: 20px 12px 32px;
    gap: 12px;
  }
  
  .download-card {
    padding: 18px 16px;
    border-radius: 14px;
  }
  
  .card-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  
  .platform-icon {
    width: 32px;
    height: 32px;
  }
  
  .card-title {
    font-size: 18px;
  }

  .card-desc {
    font-size: 12px;
  }

  .action-text {
    font-size: 11px;
  }

  .card-action {
    padding-left: 10px;
    gap: 6px;
  }
}

@media (min-width: 768px) {
  .app-header-section {
    padding: 60px 24px 50px;
  }
  
  .app-logo {
    width: 110px;
    height: 110px;
    border-radius: 24px;
  }
  
  .app-name {
    font-size: 36px;
    letter-spacing: 3px;
  }
  
  .app-desc {
    font-size: 16px;
  }
  
  .download-section {
    padding: 32px 24px 60px;
    gap: 20px;
  }
  
  .download-card {
    padding: 24px 24px;
    border-radius: 18px;
  }
  
  .card-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  
  .platform-icon {
    width: 40px;
    height: 40px;
  }
  
  .card-title {
    font-size: 22px;
  }
  
  .card-desc {
    font-size: 14px;
  }
}

/* ============================================
   动画效果
   ============================================ */
.app-header-section {
  animation: fadeInDown 0.5s ease-out;
}

.download-card {
  animation: fadeInUp 0.5s ease-out;
}

.download-card:nth-child(1) {
  animation-delay: 0.1s;
}

.download-card:nth-child(2) {
  animation-delay: 0.2s;
}

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

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

/* ============================================
   滚动条样式
   ============================================ */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F5F5F5;
}

::-webkit-scrollbar-thumb {
  background: #DC143C;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #B22222;
}
