/* 全局样式 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* 导航栏 */
.navbar {
    background-color: #333;
    padding: 10px 20px;
}

.nav-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-container nav ul {
    list-style-type: none;
    display: flex;
    gap: 15px;
}

.nav-container nav li a {
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

.nav-container nav li a:hover {
    background-color: #575757;
}

/* 分类按钮 */
.category-list {
    display: flex;
    flex-wrap: wrap;
    /* 减小按钮之间的水平间距 */
    gap: 15px; /* 水平和垂直间距都为15px */
    margin-bottom: 20px;
    padding: 0 5px; /* 保持左右两边的距离感 */
}

.category-button {
    padding: 8px 12px;
    background-color: #2980b9;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.category-button.active {
    background-color: #e74c3c;
}

.category-button:hover {
    background-color: #2c3e50;
}

/* 主容器 */
.container {
    max-width: 1400px; /* 修改点：增加了容器的最大宽度 */
    margin: 20px auto; /* 保持容器居中，同时在顶部和底部留有20px的边距 */
    padding: 20px; /* 内边距确保内容与容器边缘之间有足够的空间 */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* 软件网格 */
.software-grid {
    display: grid;
    /* 增加软件项的最小宽度至320px，并确保它们可以根据可用空间自动调整大小 */
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); /* 修改点：增加了每个项目的最小宽度 */
    gap: 20px;
}

/* 软件项 */
.software-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s; /* 添加box-shadow过渡效果 */
    width: 100%; /* 确保每个项目占据整个网格单元的宽度 */
}

.software-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 255, 0.5); /* 蓝色光效 */
}

.software-image img {
    width: 100%;
    height: 150px; /* 固定高度 */
    object-fit: cover; /* 确保图像覆盖整个区域 */
    margin-top: 5px; /* 向下移动一点 */
    margin-left: 5px; /* 向右移动一点 */
}

.software-details {
    padding: 15px;
}

.software-title { /* 修改 软件标题 字体颜色 */
    font-size: 18px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700, #000000, #B22222);
    -webkit-background-clip: text; /* 确保背景剪裁到文本 */
    -webkit-text-fill-color: transparent; /* 使文本填充为透明，显示背景渐变 */
    color: #FACD89; /* 备用颜色，以防渐变不支持 */
}

.software-version {
    font-size: 14px;
    margin-bottom: 10px;
    background: linear-gradient(135deg,  #191970, #000000);
    -webkit-background-clip: text; /* 确保背景剪裁到文本 */
    -webkit-text-fill-color: transparent; /* 使文本填充为透明，显示背景渐变 */
    color: #374357;     /* 修改 版本号和发布日期 字体颜色 *//* 备用颜色，以防渐变不支持 */
   
}

/*.software-version {
    font-size: 14px;
    color: #374357;     /* 修改 版本号和发布日期 字体颜色 */
  /*  margin-bottom: 10px;
}*/

.software-description {
    color: #0D6E6E;         /* 修改 软件介绍 字体颜色 */
    margin-bottom: 15px;
}

.download-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

/* 链接样式 */
.download-link,
.purchase-link,
.video-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.download-link {
    background: #2980b9;
    color: white;
}

.download-link:hover {
    background: #2c3e50;
}

.purchase-link {
    background: #e74c3c;
    color: white;
}

.purchase-link:hover {
    background: #c0392b;
}

.video-link {
    background: #8FBC8F;
    color: white;
}

.video-link:hover {
    background: #345e37;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-list {
        gap: 10px; /* 在小屏幕上进一步减小间距 */
        padding: 0 5px; /* 保持左右边距 */
    }

    .category-button {
        padding: 6px 10px; /* 减小按钮内边距 */
        font-size: 14px; /* 减小按钮文字大小 */
    }

    /* 当屏幕宽度小于768px时，软件项的最小宽度调整为250px */
    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 修改点：响应式调整软件项宽度 */
    }
}