/* 下载站页面样式 */
body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  color: #333;
}
.welcome {
  text-align: center;
  font-size: 2rem;
  margin-top: 2rem;
  transition: opacity 0.5s ease;
  color: #d32f2f;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h1 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #d32f2f;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #4CAF50;
}

.download-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
}

.file-size {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1.5rem;
}

.download-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.download-button:hover {
  background: #45a049;
}

/* 搜索框样式 */
.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

/* 分类标签样式 */
.category-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.category-tag {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #4CAF50;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

/* 默认标签颜色 */
.category-tag:nth-child(1) {
  color: #666;
  border-color: #666;
}

.category-tag:nth-child(1):hover,
.category-tag:nth-child(1).active {
  background: #666;
  color: white;
}

/* 系统类别颜色 */
.category-tag:nth-child(2) {
  color: #2196F3;
  border-color: #2196F3;
}

.category-tag:nth-child(2):hover,
.category-tag:nth-child(2).active {
  background: #2196F3;
  color: white;
}

/* 网络类别颜色 */
.category-tag:nth-child(3) {
  color: #FF9800;
  border-color: #FF9800;
}

.category-tag:nth-child(3):hover,
.category-tag:nth-child(3).active {
  background: #FF9800;
  color: white;
}

/* 软件类别颜色 */
.category-tag:nth-child(4) {
  color: #9C27B0;
  border-color: #9C27B0;
}

.category-tag:nth-child(4):hover,
.category-tag:nth-child(4).active {
  background: #9C27B0;
  color: white;
}

/* 工具类别颜色 */
.category-tag:nth-child(5) {
  color: #F44336;
  border-color: #F44336;
}

.category-tag:nth-child(5):hover,
.category-tag:nth-child(5).active {
  background: #F44336;
  color: white;
}

/* 媒体类别颜色 */
.category-tag:nth-child(6) {
  color: #4CAF50;
  border-color: #4CAF50;
}

.category-tag:nth-child(6):hover,
.category-tag:nth-child(6).active {
  background: #4CAF50;
  color: white;
}

/* 卡片内的分类标签 */
.category-label {
  position: absolute;
  top: 0;
  left: 0;
  color: white;
  padding: 0.25rem 1rem 0.25rem 0.5rem;
  border-radius: 0 20px 20px 0;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 1;
}

.category-label::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  width: 10px;
  height: 100%;
  border-radius: 0 50% 50% 0;
}

/* 不同分类的颜色 */
.category-label[data-category="system"] {
  background: #2196F3;
}

.category-label[data-category="system"]::before {
  background: #2196F3;
}

.category-label[data-category="network"] {
  background: #FF9800;
}

.category-label[data-category="network"]::before {
  background: #FF9800;
}

.category-label[data-category="software"] {
  background: #9C27B0;
}

.category-label[data-category="software"]::before {
  background: #9C27B0;
}

.category-label[data-category="tool"] {
  background: #F44336;
}

.category-label[data-category="tool"]::before {
  background: #F44336;
}

.category-label[data-category="media"] {
  background: #4CAF50;
}

.category-label[data-category="media"]::before {
  background: #4CAF50;
}

.search-bar input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 300px;
  font-size: 1rem;
}

.search-bar button {
  padding: 0.5rem 1rem;
  margin-left: 0.5rem;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-bar button:hover {
  background: #45a049;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
}

#beian {
  color: #666;
  text-decoration: none;
}