* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    /* 英文自动换行 */
    word-break: break-word;
}
a{
    color: #404e4f;
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    background-color: #f5f7fa;
}
body { background-image: url('https://xn--kwrr8v.top/style/image/bag.png'); 
    background-size: 41%;
}

        .header {
            background-color: #fff;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
        }
.header-content {
    width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    justify-content: flex-start;
}
.logo {
    margin: 0 10px;
    display: flex;
    align-items: center;
}
.logo img {
    width: 40px;
    height: 40px;
}
.logo-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-left: 10px;
}
.nav {
    display: flex;
    gap: 20px;
    margin-left: 20px;
}
        .nav a {
            text-decoration: none;
            color: #606266;
            font-size: 16px;
            padding: 5px 0;
        }
        .nav a:hover {
            color: #409eff;
        }
.main {
    width: 1200px;
    margin: 0 auto;
    padding-top: 78px;
    display: flex;
    gap: 15px;
}
        .content-left {
            width: 800px;
        }
        .content-right {
            width: 380px;
        }
.banner {
    background-image: url('../../style/image/note.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 20px;
    flex-direction: column;
}
.banner-title {
    width: auto;
    letter-spacing: 5px;
    white-space: nowrap;
    font-size: 36px;
    -webkit-text-stroke: 1px rgba(100, 100, 100, .7);
    text-shadow: 2px -2px 5px black;
    color: #fff;
    font-weight: 600;
}
.search-box {
    margin-top: 20px;
    min-width: 50%;
}
.article-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    padding: 20px;
    padding-bottom: 30px;
    margin-bottom: 20px;
    position: relative;
}
        .article-card:hover {
            box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.15);
        }
.article-header {
     display: flex;
    margin-bottom: 10px;
}
.article-cover {
    max-width: 200px;
    max-height: 120px;
    border-radius: 4px;
    margin-left: 20px;
    object-fit: cover;
}
.article-info {
    flex: 1;
    max-height: 200px;
}
.article-title {
    font-size: 22px;
    font-weight: bold;
    color: #303133;
    margin-bottom: 10px;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
        .article-title:hover {
            color: #409eff;
        }
.article-summary {
    color: #606266;
    line-height: 1.6;
    text-overflow: ellipsis;
    /* 最多显示3行 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: justify;
    text-indent: 2em;
    /* 英文自动换行 */
    word-break: break-word;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #909399;
    font-size: 14px;
    position: absolute;
    bottom: 10px;
    left: 20px;
}
.article-author {
    font-size: 16px;
    font-weight: 600;
    color: #909399;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}
.author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.article-type{
    font-size: 14px;
    color: #909399;
    padding: 2px 10px;
    border-radius: 15px;
    color: #fff;
    background-color: #409eff;
}

        .sidebar-card {
            background-color: white;
            border-radius: 2px;
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
            padding:15px  20px;
            margin-bottom: 10px;
        }
        .sidebar-title {
            font-size: 17px;
            font-weight: bold;
            color: #303133;
            margin-bottom: 15px;
            border-left: 4px solid #409eff;
            padding-left: 10px;
        }
        .category-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .category-list li {
            margin-bottom: 10px;
        }
        .category-list a {
            text-decoration: none;
            color: #606266;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .category-list a:hover {
            color: #409eff;
        }
        
        .category-list a.active {
            color: red;
        }
        .hot-article-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        .hot-article-list li {
            margin-bottom: 15px;
        }
.hot-article-title {
    font-size: 14px;
    color: #606266;
    text-decoration: none;
    display: block;
    /* 隐藏超出部分 */
    overflow: hidden;
    text-overflow: hidden;
    /* 英文自动换行 */
    white-space: nowrap;
    word-break: break-word;
    position: relative; 
}
.hot-article-title b {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 14px;
    color: #909399;
    background-color: #fff;
    padding: 2px 5px; 
    padding-right: 0;
}        
        .hot-article-title:hover {
            color: #409eff;
        }
        .hot-article-meta {
            font-size: 12px;
            color: #909399;
            margin-top: 5px;
        }
.footer {
            background-color: #fff;
            padding: 20px 0;
            text-align: center;
            color: #909399;
            font-size: 14px;
            margin-top: 50px;
            border-top: 1px solid #ebeef5;
}

.sidebar-card > div{
    margin-bottom: 10px;
    font-size: 14px;
    color: #606266;
}
.sidebar-card p{
    font-size: 14px;
    color: #606266;
    text-indent: 1em;
}

.article-title .article-type{
    padding: 3px 10px;
    font-weight: 100;
    border-radius: 5px;
}
.article-type-draft{
    background-color: #ff9898;
}
.article-type-top{
    background-color: #3ce645;
}
.article-type-vip{
    background-color: #e9e033;
}
.article-type-restrict{
    background-color: #3ce645;
}
