/* 下载页样式 */
.download-page {
  padding: 160px 0 100px;
  background: var(--background-alt);
  min-height: calc(100vh - 72px);
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* 当前版本卡片 */
.current-version {
  background: white;
  border-radius: var(--radius-lg);
  padding: 50px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--primary);
}

.version-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.version-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: center;
}

.version-details h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.version-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.meta-item svg {
  width: 20px;
  height: 20px;
}

.version-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.download-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-download {
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.btn-download:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-download svg {
  width: 24px;
  height: 24px;
}

/* 其他下载方式 */
.alternative-downloads {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.alternative-downloads h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.download-links {
  display: grid;
  gap: 16px;
}

.download-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--background-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.download-link-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.download-link-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.download-link-info svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.download-link-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.download-link-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 下载分组布局 */
.download-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.download-group {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 2px solid var(--primary);
}

.group-title svg {
  color: var(--primary);
}

.group-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.group-links .download-link-item {
  margin: 0;
}

/* 系统要求 */
.system-requirements {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.system-requirements h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.requirement-item {
  padding: 20px;
  background: var(--background-alt);
  border-radius: var(--radius-md);
}

.requirement-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.requirement-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* 校验信息 */
.checksum-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.checksum-section h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
}

.checksum-item {
  margin-bottom: 16px;
}

.checksum-label {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.checksum-value {
  font-family: 'Courier New', monospace;
  background: var(--background-alt);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  word-break: break-all;
}

/* 安装步骤 */
.install-steps {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.install-steps h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -20px;
  top: 40px;
  font-size: 24px;
  color: var(--border);
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-item h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
