/*标题和副标题*/
.main-header {
    background: url(../images/bg-blog.png) no-repeat center center;
    background-size: 800px;
    width: 100%;
    height: 90px;
    text-align: center;
}

.main-header h1 {
    font-size: 22px;
    font-weight: 600;
    font-family: var(--font-family);
}

.main-header p {
    color: #666670;
    font-size: 15px;
    font-family: var(--font-family);
}

/*搜索模块*/
.main-search {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-bottom: 40px;
}

.main-search .search-input {
    width: 630px;
    padding: 10px 45px;
    border-radius: 24px;
    font-size: 15px;
    outline: none;
    background-color: var(--main-bg);
    border: solid 1px var(--main-bg);
    background-image: url(../images/icon-search.png);
    background-position: 12px;
    background-repeat: no-repeat;
    background-size: 32px;
    transition: background-color 0.2s;
}

.main-search .search-input:focus {
    border-color: #5a4df8;
    background-color: #f8f7fd;
    box-shadow: inset 0 1px 4px rgba(90, 77, 248, 0.2), 0 0 0 2px rgba(90, 77, 248, 0.1);
}

/*分类模块*/
.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.main-menu li {
    list-style: none;
    margin-bottom: 0;
}

.main-menu li a {
    display: block;
    font-size: 14px;
    padding: 0 18px;
    line-height: 28px;
    border-radius: 7px;
    letter-spacing: 0.5px;
    border: solid 1px #ddd;
    font-family: var(--font-family);
}

.main-menu li.active a, .main-menu li:hover a {
    border-color: rgba(90, 77, 248, 0.6);
    color: var(--primary-color);
}

/*文章列表模块*/
.main-grid {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    margin: 24px auto 0;
}

.main-card {
    width: 50%;
}

.main-card a{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 15px;
}

.main-card a:hover{
    border-radius: 12px;
    background-color: var(--main-bg);
}

.main-card a img{
    width: 66px;
    height: 66px;
    display: block;
    border-radius: 8px;
}

.main-card .card-content{
    min-width: 0;
}

.main-card .card-content h3{
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    box-sizing: border-box;
}

.main-card .card-content p{
    display: block;
    font-size: 13px;
    color: rgb(113, 118, 129);
    font-family: var(--font-family);
    width: 100%;
    line-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
    min-width: 0;
    box-sizing: border-box;
}

.main-card .card-content .tool-card-meta{
    font-size: 13px;
    color: rgb(113, 118, 129);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .main-grid{
        gap: 12px;
    }

    .main-card {
        width: 100%;
    }

    .main-card a{
        padding: 0;
    }


}