/* 下载页面样式 */
.download-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 2rem 0;
}

.download-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

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

.download-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.download-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.download-item:hover {
  border-color: #4D7CFF;
  box-shadow: 0 2px 8px rgba(77, 124, 255, 0.1);
}

.architecture {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #4D7CFF, #6C8EFF);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-width: 100px;
}

.download-btn:hover {
  background: linear-gradient(135deg, #3A6BFF, #5A7EFF);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(77, 124, 255, 0.3);
}

.download-btn.primary {
  background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
}

.download-btn.primary:hover {
  background: linear-gradient(135deg, #FF5252, #FF7B7B);
}

.btn-text {
  font-weight: 600;
  font-size: 0.9rem;
}

.file-size {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.version-info {
  text-align: center;
  margin: 2rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border-radius: 12px;
}

.version-info h3 {
  color: #4D7CFF;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.release-date {
  color: #6c757d;
  font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .download-options {
    grid-template-columns: 1fr;
  }
  
  .download-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .download-btn {
    /* width: 100%; */
  }
  
  /* 移动端图标样式优化 */
  .download-grid h3 {
    font-size: 1.3rem;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .os-icon {
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
  }
  
  .os-text {
    font-size: 1rem;
  }
  
  /* 移动端悬停效果优化 */
  .os-icon:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .download-grid h3 {
    font-size: 1.2rem;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }
  
  .os-icon {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 1rem;
  }
  
  .os-text {
    font-size: 0.95rem;
    margin-left: 0;
  }
  
  .download-card {
    padding: 1rem;
  }
  
  .download-item {
    padding: 0.8rem;
  }
}

/* 操作系统图标样式 */
.download-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #2c3e50;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

/* Windows 图标样式 */
.download-grid h3:has(span.os-icon-windows) {
  color: #0078D7;
}

.download-grid h3:has(span.os-icon-windows)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #0078D7, #00BCF2);
  transition: width 0.3s ease;
}

.download-grid h3:has(span.os-icon-windows):hover::after {
  width: 100%;
}

/* macOS 图标样式 */
.download-grid h3:has(span.os-icon-macos) {
  color: #000000;
}

.download-grid h3:has(span.os-icon-macos)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #000000, #666666);
  transition: width 0.3s ease;
}

.download-grid h3:has(span.os-icon-macos):hover::after {
  width: 100%;
}

/* Linux 图标样式 */
.download-grid h3:has(span.os-icon-linux) {
  color: #1793D1;
}

.download-grid h3:has(span.os-icon-linux)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1793D1, #7AC943);
  transition: width 0.3s ease;
}

.download-grid h3:has(span.os-icon-linux):hover::after {
  width: 100%;
}

/* 操作系统图标通用样式 */
.os-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: normal;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.os-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.os-icon:hover::before {
  left: 100%;
}

/* Windows 图标特定样式 */
.os-icon-windows {
  background: linear-gradient(135deg, #0078D7, #00BCF2);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.os-icon-windows:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 120, 215, 0.3);
}

/* macOS 图标特定样式 */
.os-icon-macos {
  background: linear-gradient(135deg, #000000, #333333);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.os-icon-macos:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Linux 图标特定样式 */
.os-icon-linux {
  background: linear-gradient(135deg, #1793D1, #7AC943);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.os-icon-linux:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(23, 147, 209, 0.3);
}

/* 图标文字样式 */
.os-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* 系统要求表格美化 */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-container th {
  background: linear-gradient(135deg, #4D7CFF, #6C8EFF);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

.table-container td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.table-container tr:hover {
  background: #f8f9fa;
}

div[class*="language-"].line-numbers-mode::after, div[class*="language-"].line-numbers-mode {
  background-color: #333333 !important;
}