@font-face {
    font-family: 'myFont';
    src: url('/font/Aa福禄榜书.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    /* font-family: 'myFont', sans-serif; */
    margin: 0;
    padding: 0;
    background-color: #f7f9fa;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: 0px 2px 8px 0px rgba(50, 50, 0, 0.3);
    z-index: 1000;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #06f0fe;
}

.header-content {
    height: 50px;
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: height 0.5s ease;
}

.logo img {
    height: 40px;
    display: block;
    border-radius: 10px;
}

nav {
    display: flex;
}

nav ul {
    list-style-type: none;
    padding: 0 0 2px 20px;
    display: flex;
    margin: 0;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.menu-icon {
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 20px;
}

main {
    display: flex;
    flex-wrap: wrap;
}

.latest-articles {
    flex: 3;
    margin-right: 20px;
}

.latest-articles h2,
.hot-articles h2,
.tags h2 {
    color: #fff;
    padding: 10px;
    margin: 0;
    font-size: 16px;
}

textarea:focus {
    border-color: #2ECC71; /* 淡蓝色 */
    outline: none;
}

@keyframes moveRightText {
    0% {
        left: -2px;
    }

    100% {
        left: 32px;
    }
}


@keyframes moveRightNum {
    0% {
        right: -9px;
        background-color: #0fa7e5;
    }

    100% {
        right: 46px;
        background-color: #06e711;
    }
}

.article {
    display: flex;
    background-color: #fff;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid #ddd;
}

.article .article-img {
    margin: auto;
    margin-right: 15px;
    height: 100px;
    min-width: 266px;
    background-image: url('../image/loading.gif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.article img {
    max-height: 100px;
}

.article-content {
    flex: 1;
}

.article-content .tag {
    display: inline-block;
    background-color: #8391d9;
    color: #fff;
    padding: 3px 8px;
    margin-bottom: 10px;
    font-size: 12px;
    border-radius: 3px;
}

.article-content h3 {
    margin: 0 0 10px;
}

.article-content .article-description {
    margin: 0 0 15px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    font-size: 14px;
}

.article-content .meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 0;
}

aside {
    flex: 1;
}

.hot-articles,
.tags {
    margin-bottom: 20px;
}

.hot-articles ol {
    list-style-type: none;
    padding: 0;
}

.hot-articles ol li {
    position: relative;
    background-color: #fff;
    padding: 4px 10px 4px 32px;
    border-bottom: 1px solid #ddd;
}

.hot-articles ol li .hot-tag {
    height: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: #999;
}


.hot-articles ol li span {
    float: right;
}

.hot-articles ol li .hot-post-widget-item-num {
    position: absolute;
    color: #fff;
    background: #ff6601;
    padding: 0px 6px 0px 13px;
    left: 0px;
    top: 12px;
    border-radius: 0 10px 10px 0;
}

.hot-articles ol li:nth-child(2) .hot-post-widget-item-num {
    background: #ffa41b;
}

.hot-articles ol li:nth-child(3) .hot-post-widget-item-num {
    background: #cd33ff;
}

.hot-articles ol li:nth-child(4) .hot-post-widget-item-num {
    background: #fe0000;
}

.hot-articles ol li:nth-child(5) .hot-post-widget-item-num {
    background: #a4b22c;
}

.loadMore {
    text-align: center;
    margin-top: 20px;
}

.loadMore .load-more-btn {
    font-size: 16px;
    background: #67c23a;
    border-color: #67c23a;
    padding-bottom: 4px;
    color: #fff;
    cursor: pointer;
}

.loadMore .load-more-btn .loadIcon {
    display: inline-block;
    height: 16px;
    padding-right: 6px;
    position: relative;
    top: 2px;
}

.hot-articles ol li a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tags ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    padding: 10px;
    margin-top: 0;
}

.tags ul li {
    margin: 5px;
}

.tags ul li a {
    text-decoration: none;
    background-color: #48ae66;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.footer {
    color: #fff;
    text-align: center;
    padding: 6px 0;
}

@media (max-width: 768px) {

    .container {
        padding: 80px 0px 20px;
    }

    .hot-articles,
    .tags {
        padding: 0 20px;
    }

    .header-content {
        display: block;
        height: auto;
    }

    .logo img {
        padding: 10px 20px;
    }

    nav {
        display: none;
    }

    .nav-open {
        display: block;
    }

    .nav-open ul {
        flex-direction: column;
    }

    .menu-icon {
        display: block;
        position: absolute;
        right: 24px;
        top: 0px;
        font-size: 30px;
    }

    main {
        flex-direction: column;
    }

    .latest-articles {
        margin-right: 0;
    }

    aside {
        margin-top: 20px;
    }

    .article .article-img {
        margin: auto;
        margin-right: 15px;
        height: 50px;
        min-width: 133px;
        background-image: url('../image/loading.gif');
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center;
    }

    .article img {
        max-height: 50px;
    }

    .article-content p {
        display: none;
    }
}
