/* 下载页面样式 */

/* 下载区域样式 */
.download-hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern.svg') repeat;
  opacity: 0.1;
  z-index: 1;
}

.download-hero .container {
  position: relative;
  z-index: 2;
}

.download-hero .section-title {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-hero .section-subtitle {
  color: var(--text-white);
  font-size: 1.25rem;
  opacity: 0.9;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.download-card {
  flex: 1;
  min-width: 300px;
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.download-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: var(--text-white);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
  position: relative;
  z-index: 1;
}

.download-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  transform: scale(1.2);
  filter: blur(10px);
}

.download-card h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.download-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn i {
  font-size: 1.25rem;
}

.download-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.browser-support {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* 分隔线样式 */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary-light), transparent);
  margin: 4rem auto;
  width: 80%;
  opacity: 0.7;
}

/* 系统要求区域样式 */
.system-requirements {
  padding: 5rem 0;
  background-color: var(--bg-light);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* 下载徽章样式 */
.download-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom-left-radius: var(--radius);
  box-shadow: -2px 2px 10px rgba(var(--primary-rgb), 0.3);
}

.requirement-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.requirement-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement-card h3 i {
  color: var(--primary-color);
}

.requirement-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirement-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.requirement-list li:last-child {
  border-bottom: none;
}

.requirement-list li i {
  color: var(--primary-color);
  font-size: 0.875rem;
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
}

.requirement-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.requirement-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.requirement-card ul {
  list-style: none;
  padding: 0;
}

.requirement-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.requirement-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* 下载页面特定样式 */
.download-features {
  background-color: var(--bg-white);
}

.download-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem; /* Add padding to the grid */
}

.download-features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.download-features .feature-card {
  background-color: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02), rgba(var(--primary-rgb), 0.05));
  min-width: 200px; /* Set a smaller min-width */
}

.download-features .feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.download-features .feature-card:hover::before {
  opacity: 1;
}

.download-features .feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.2);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.1));
}

.download-features .feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: var(--text-white);
  box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.2);
  position: relative;
  z-index: 1;
}

.download-features .feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  transform: scale(1.2);
  filter: blur(8px);
}

.download-schools {
  background-color: var(--bg-light);
}

/* 禁用按钮样式 */
.download-btn.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none; /* Prevents click events and hover effects */
}

.download-btn.btn-disabled::before {
  display: none; /* Hide the hover animation element */
}

/* 响应式样式 */
@media (max-width: 768px) {
  .download-options {
    flex-direction: column;
  }
  
  .download-card {
    width: 100%;
  }
  
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}
