/* 全局样式 */
body {
    font-family: 微软雅黑, sans-serif;
    margin: 20px;
    background-color: #f5f5f5;
}

/* 标题栏 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #409EFF; /* 蓝色下划线 */
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 20px; /* 增加顶部间距，和导航区分开 */
}
header h1 {
    margin: 0;
    color: #333;
    font-size: 24px;
}
.more {
    color: #409EFF;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #409EFF;
    border-radius: 4px;
}
.more:hover {
    background-color: #409EFF;
    color: white;
}

/* 软件列表：网格布局（每行4个卡片，响应式更友好） */
.software-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 每行4个卡片 */
    gap: 20px;
    margin-bottom: 30px;
}

/* 软件卡片：核心居中样式，消除内边距冲突 */
.software-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* 核心居中：垂直+水平 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px; /* 统一内边距，避免15px 0的冲突 */
}

/* 软件图标 */
.icon {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    object-fit: contain; /* 防止图标变形 */
}

/* 软件名称/描述 */
.software-card h3 {
    margin: 8px 0;
    color: #333;
    font-size: 16px;
}
.software-card p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

/* 下载按钮：文字完全上下+左右居中（核心修复） */
.download-btn {
    width: 45%; /* 按钮宽度统一 */
    margin-top: 8px; /* 与上方内容的间距 */
    height: 32px; /* 固定按钮高度 */
    line-height: 32px; /* 行高=高度，强制文字垂直居中 */
    background-color: #409EFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center; /* 文字水平居中 */
    padding: 0; /* 取消上下padding，避免高度混乱 */
}

/* 按钮hover效果（只改背景色，保留居中样式） */
.download-btn:hover {
    background-color: #3088E8;
}

/* 响应式适配：屏幕变小时，每行显示2个卡片 */
@media (max-width: 992px) {
    .software-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机端：每行1个卡片 */
@media (max-width: 576px) {
    .software-list {
        grid-template-columns: 1fr;
    }
}