/* 为整个工具卡片添加链接样式 */
.tool-card-link {
    text-decoration: none; /* 去掉链接的下划线 */
}
/* 保证工具卡片正常排列 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 保证工具卡片的顺序 */
.tool-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: left;
    min-height: 180px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* 工具卡片动画完成状态 */
.tool-card.animated {
    opacity: 1;
    transform: translateY(0); /* 恢复到正常位置 */
}

/* 工具卡片悬停效果 */
.tool-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* 工具卡片logo样式 */
.tool-logo {
    margin-left: 30px;
    margin-top: 10px;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    border-radius: 8px;
    object-fit: cover;
    display:block;
}

/* 工具名称的样式 */
.tool-name {
    margin-left: 30px;
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    position: relative;
    display: inline-block;
    text-align: left;
}

/* 工具名称的下划线效果 */
.tool-name::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: width 0.3s ease;
}

.tool-name:hover::after {
    width: 100%;  /* 让下划线横跨整个文字 */
}

/* 分类标签样式 */
.tool-category {
    display: inline-block;
    padding: 4px 16px;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50px;
    margin-left: 30px;
    margin-top: 10px;
}

/* 工具描述样式 */
.card-description {
    font-size: 14px;
    color: #777;
    margin-left: 30px;
    margin-top: 10px;  /* 给描述添加上边距 */
}

/* 悬停效果 */
.tool-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

