@font-face {
  /* 自定义字体名称（可任意命名，用于后续引用） */
  font-family: 'canger';
  
  /* 字体文件路径（根据实际存放位置调整） */
  src: url('./fonts/canger.woff2') format('woff2');
       
  /* 可选属性 */
  font-weight: 100; /* 字体粗细（normal/bold/100-900） */
  font-style: normal;  /* 字体样式（normal/italic/oblique） */
  font-display: swap;  /* 优化字体加载体验（加载时先显示系统字体，加载完成后替换） */
}

h6{
    margin: 0.5rem;
}

header{
    background-color: #373736;
    height: 5rem;
    align-items: center;
}

html, body{
    /* height: 100%; */
    background-color: #fff;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

a {
  text-decoration: none;
  color: black;
}

.hover-shadow {
    transition: box-shadow 0.3s ease-in-out; /* 添加过渡效果使变化更平滑 */
}

.hover-shadow:hover{
    box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.3); /* 水平偏移 垂直偏移 模糊半径 颜色 */
}

#main-content{
    height: 100%;
    width: 100%;
}

.remove-float{
    clear: both;
}

.text{
    font-size: 1.5rem;
    color: #ccc;
}

#header-content{
    position: relative;
    height: 100%;
}

#head-icon{
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 8rem;
    width: 5rem;
    height: 3rem;
    object-fit: cover;
}

#head-title{
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 13rem;
    color: #eee;
    font-family: 'canger';
    font-weight: 400;
    margin: 0;
}

#user-data-span{
    display: inline-block;
    text-align: end;
    width: 25rem;
    margin-right: 10rem;
    font-size: 1.2rem;
    font-family: 'canger';
    color: #ccc;
}

#lianzi-span{
    font-size: 1.2rem;
    font-family: 'canger';
    color: #ccc;
}

#header-right{
    float: right;
    height: 100%;
}

#login-signup-icon{
    display: inline-block;
    font-size: 1.5rem;
    margin-top: 1.2rem;
    margin-right: 1rem;
}

#title-div{
    text-align: center;
    padding: 5rem;
    /* vertical-align: middle; */
}

#title-text-div{
    margin: 0 4rem 0 0;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

.title{
    text-align: center;
    display: inline-block
}

#title-logo{
    display: inline-block;
    vertical-align: middle;
    height: 20rem;
    width: 20rem;
    border-radius: 8rem;
    margin: 0 3rem 0 0;
    /* 水平偏移 垂直偏移 模糊半径 颜色 */
    box-shadow: 0 0 1.2rem rgba(0, 0, 0, 0.5); 
}

#main-title{
    font-size: 6rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'canger';
}

#second-title{
    margin-top: 1rem;
    color: #333;
    font-weight: 400;
}

#title-describe{
    color: #333;
    font-weight: 400;
}

#search-bar-div{
    background-color: #eee;
    padding-top: 1rem;
    margin: 0;
    width: 100%;
}

#search-bar{
    display: flex;
    justify-self: end;
    margin-right: 1rem;
}

#search-bar-input{
    padding: 0 1rem;
    margin-right: 0;
    background-color: #fff;
    border-radius: 1.5rem 0 0 1.5rem;
    border: black;
    width: 20rem;
    height: 2rem;
}

#search-bar-submit{
    margin-left: 0;
    background-color: #888;  /* edge: #0078d4 */
    border-radius: 0 1.5rem 1.5rem 0;
    height: 2rem;
    border: 0;
    color: #eee;
}

#tools-div{
    position: relative;
    display: flex;
    background-color: #eee;
    height: 100%;
    width: 100%;
    /* padding: 1.8rem 1.8rem; */
    padding: 1%;
    flex-wrap: wrap;
    gap: 1%;
    vertical-align: middle;
}

.tool-tag{
    display: flex;
    position: relative;
    /* margin: 1rem 1rem; */
    margin-bottom: 1%;
    padding: 3rem;
    width: 25%;
    height: 15rem;
    border-radius: 3rem;
    background-color: #fff;
    flex-wrap: wrap;
}

.tool-tag-first-line{
    position: relative;
    display:flex;
    warp: no-warp;
    height: 50%;
    width: 100%;
    vertical-align: top;
}

.tool-icon{
    display: inline-block;
    height: 100%;
    border-radius: 2rem;
    vertical-align: top;
    object-fit: cover;
}

.tool-tag-text{
    display:flex;
    flex-direction:column;
    padding: 0.2rem 1rem;
    height: 100%;
    flex:1;
    clear: both;
    left: 6rem;
    display: inline-block;
    vertical-align: top;
    overflow:auto;
    scrollbar-width: none;
}

.tool-title{
    width:100%;
    margin: 0.2rem;
    display: inline-block;
    font-size: 2rem;
}

.tool-keywords{
    width:100%;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0.2rem;
}

.tool-describe{
    display: inline-block;
    margin: 5% 0.2rem 0.2rem 0.2rem;
    width: 100%;
    max-height: 35%;
    overflow: auto;
    font-size: 1.2rem;
    overflow-y: auto;
    scrollbar-width: none;
}

.tool-url{
    position: absolute;
    width:100%;
    color: #888;
    bottom: 0;
    padding-bottom:1rem;
    transform: translateY(0%);
}

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #343636;
}

#footer-text{
    color: #888;
}