@charset "UTF-8";

html,body{

    height: 100%;

}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    margin: 0; /* 去掉默认的margin */
    display: flex; /* 使用Flexbox布局 */
    flex-direction: column; /* 垂直方向排列 */
}


.container {
    max-width: 600px;
    margin: 0 auto;
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    flex-direction: column; /* 垂直方向排列 */
    padding: 20px; /* 内边距 */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);


}
.bodys {
    height: 100%;
    margin-top: 50px;

}
h1 {
    text-align: center;
    color: #333;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.tool {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tool svg {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}
.tool-name {
    text-align: center;
    font-size: 14px;
    color: #333;
}


/* 设置链接样式 */
.tool-link {
    text-decoration: none; /* 去除链接下划线 */
}



/* 设置工具的样式 */
.tool {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease; /* 添加平滑过渡效果 */
}
.tool:hover {
    transform: translateY(-5px); /* 鼠标悬停时向上浮动5px */
}
.tool:active {
    transform: translateY(5px); /* 点击时向下浮动5px */
}

/* 设置SVG图标的颜色 */
.tool svg {
    stroke: currentColor; /* 使用当前文本颜色 */
    color: black; /* 设置SVG图标颜色为黑色或你希望的颜色 */
}

/* 设置工具名称的颜色 */
.tool-name {
    margin-left: 8px;
    font-size: 16px;
    color: black; /* 设置文字颜色为黑色或你希望的颜色 */
}

/* 如果需要，可以添加悬停和点击状态的样式 */
.tool-link:hover .tool svg,
.tool-link:focus .tool svg {
    color: black; /* 保持颜色不变 */
}
