* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #666;
}

/* header */
.header1 {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #eee;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    background: #fff;
}

.header1 .logo1 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.header1 .search-btn1 {
    cursor: pointer;
    font-size: 16px;
}

/* main layout */
.wrap1 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    gap: 40px;
    box-sizing: border-box;
}

.content1 {
    flex: 1;
    min-width: 0;
}

.content1 .group1 {
    margin-bottom: 30px;
}

.content1 .group-title1 {
    font-size: 17px;
    font-weight: bold;
    color: #333;
    padding-bottom: 8px;
    margin-bottom: 5px;
    border-bottom: 2px solid #ddd;
}

.sidebar1 {
    width: 240px;
    flex-shrink: 0;
}

/* article list */
.post-item1 {
    padding: 12px 0;
    margin-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.post-item1 .title1 {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 6px;
    color: #333;
}

.post-item1 .title1 a {
    color: #333;
}

.post-item1 .excerpt1 {
    color: #666;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.post-item1 .meta1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.post-item1 .meta1 .tag1 {
    margin-left: auto;
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 1px 8px;
    color: #666;
    text-decoration: none;
}

.post-item1 .meta1 .tag1:hover {
    background: #eee;
    color: #333;
}

/* sidebar */
.sidebar1 .search-box1 {
    margin-bottom: 25px;
}

.sidebar1 .search-box1 .s-label1 {
    font-size: 13px;
    color: #333;
    margin-bottom: 8px;
}

.sidebar1 .search-box1 .s-input-wrap1 {
    display: flex;
    align-items: center;
    gap: 0;
}

.sidebar1 .search-box1 input {
    flex: 1;
    height: 30px;
    border: 1px solid #ccc;
    border-right: none;
    padding: 0 8px;
    font-size: 12px;
}

.sidebar1 .search-box1 .s-btn1 {
    height: 30px;
    background: #333;
    color: #fff;
    border: none;
    padding: 0 14px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar1 .tags1 {
    margin-bottom: 25px;
}

.sidebar1 .tags1 h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.sidebar1 .tags1 .tag-list1 {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar1 .tags1 .tag-list1 a {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #ddd;
    font-size: 12px;
    color: #666;
    background: #fafafa;
}

.sidebar1 .tags1 .tag-list1 a:hover {
    color: #333;
    border-color: #999;
}

.sidebar1 .recent1 {
    margin-bottom: 25px;
}

.sidebar1 .recent1 h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.sidebar1 .recent1 ul {
    list-style: none;
}

.sidebar1 .recent1 ul li {
    font-size: 13px;
    line-height: 2;
    color: #555;
}

.sidebar1 .recent1 ul li a {
    color: #555;
}

.sidebar1 .archive1 h3,
.sidebar1 .cate1 h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.sidebar1 .archive1 ul,
.sidebar1 .cate1 ul {
    list-style: none;
}

.sidebar1 .archive1 ul li,
.sidebar1 .cate1 ul li {
    font-size: 13px;
    line-height: 2.2;
    color: #555;
}

/* footer */
.footer1 {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #999;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* article detail */
.breadcrumb1 {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
}

.breadcrumb1 a {
    color: #999;
}

.article-title1 {
    font-size: 22px;
    font-weight: normal;
    text-align: center;
    margin-bottom: 15px;
}

.article-meta1 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: #999;
    margin-bottom: 30px;
}

.article-meta1 .page-num1 {
    margin-left: auto;
}

.article-body1 {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    padding: 0 25px;
}

.article-body1 p {
    margin-bottom: 0;
    text-indent: 2em;
}

/* comment area */
.comment-area1 {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.comment-area1 h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.comment-form1 {
    margin-bottom: 25px;
}

.comment-form1 .form-row1 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.comment-form1 .form-row1 input {
    flex: 1;
    height: 32px;
    border: 1px solid #ddd;
    padding: 0 10px;
    font-size: 12px;
}

.comment-form1 .cm-content1 {
    width: 100%;
    height: 80px;
    border: 1px solid #ddd;
    padding: 8px 10px;
    font-size: 12px;
    resize: vertical;
    font-family: inherit;
    outline: none;
}

.comment-form1 .cm-submit1 {
    margin-top: 10px;
    background: #333;
    color: #fff;
    border: none;
    padding: 6px 18px;
    font-size: 12px;
    cursor: pointer;
}

.comment-list1 .comment-item1 {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment-list1 .comment-item1 .cm-header1 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.comment-list1 .comment-item1 .cm-author1 {
    font-size: 13px;
    font-weight: bold;
    color: #333;
}

.comment-list1 .comment-item1 .cm-date1 {
    font-size: 11px;
    color: #999;
}

.comment-list1 .comment-item1 .cm-text1 {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.comment-list1 .comment-item1 .cm-reply1 {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f9f9f9;
    border-left: 2px solid #ddd;
    font-size: 12px;
    color: #555;
}

.comment-list1 .comment-item1 .cm-reply1 .cm-reply-label1 {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

.comment-list1 .comment-item1 .cm-admin1 {
    margin-top: 6px;
}

.comment-list1 .comment-item1 .cm-action1 {
    margin-top: 6px;
}

.comment-list1 .comment-item1 .cm-children1 {
    margin-top: 10px;
    padding-left: 18px;
}

.comment-list1 .comment-item1 .cm-sub1 {
    border-bottom: none;
    padding: 8px 0;
}

.comment-list1 .comment-item1 .cm-at1 {
    font-size: 12px;
    color: #888;
    margin-left: 6px;
}

.comment-list1 .comment-item1 .cm-reply-form1 .reply-nick1 {
    width: 40%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    margin-bottom: 6px;
    display: block;
}

.comment-list1 .comment-item1 .cm-reply-btn1 {
    font-size: 12px;
    color: #999;
}

.comment-list1 .comment-item1 .cm-reply-btn1:hover {
    color: #333;
}

.comment-list1 .comment-item1 .cm-reply-form1 {
    margin-top: 8px;
}

.comment-list1 .comment-item1 .cm-reply-form1 textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 60px;
    padding: 8px;
    font-size: 13px;
    border: 1px solid #ddd;
    margin-bottom: 6px;
}

.comment-list1 .comment-item1 .cm-reply-form1 button {
    font-size: 12px;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* search overlay */
.search-overlay1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-overlay1 .search-inner1 {
    display: flex;
    align-items: center;
    width: 550px;
}

.search-overlay1 .search-inner1 input {
    flex: 1;
    height: 45px;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
}

.search-overlay1 .search-inner1 .s-icon1 {
    width: 60px;
    height: 45px;
    background: #555;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.search-overlay1 .search-inner1 .s-icon1 svg {
    fill: #fff;
    width: 20px;
    height: 20px;
}

/* category page */
.cate-page-title1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
}

/* header right */
.header-right1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* hamburger */
.hamburger1 {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
}

.hamburger1 span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
}

/* mobile nav */
.mobile-nav1 {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
}

.mobile-nav1.show1 {
    display: flex;
}

.mobile-nav1 a {
    padding: 8px 0;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.mobile-nav1 a:last-child {
    border-bottom: none;
}

/* mobile */
@media screen and (max-width: 768px) {
    .header1 {
        padding: 0 15px;
    }

    .hamburger1 {
        display: flex;
    }

    .wrap1 {
        flex-direction: column;
        padding: 15px 12px;
        gap: 20px;
    }

    .sidebar1 {
        display: none;
    }

    .post-item1 {
        padding: 10px 0;
    }

    .post-item1 .title1 {
        font-size: 16px;
    }

    .post-item1 .meta1 {
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-title1 {
        font-size: 18px;
    }

    .article-meta1 {
        flex-wrap: wrap;
        gap: 8px;
    }

    .article-body1 {
        font-size: 15px;
        padding: 0 10px;
    }

    .comment-form1 .form-row1 {
        display: block;
    }

    .comment-form1 .form-row1 input {
        display: block;
        width: 100%;
        height: 40px;
        font-size: 14px;
        border: 1px solid #ddd;
        padding: 0 10px;
        margin-bottom: 8px;
    }

    .comment-form1 .cm-content1 {
        width: 100%;
        height: 100px;
        font-size: 14px;
        border: 1px solid #ddd;
        padding: 10px;
    }

    .comment-form1 .cm-submit1 {
        padding: 10px 22px;
        font-size: 14px;
    }

    .comment-area1 {
        padding: 0;
    }

    .search-overlay1 .search-inner1 {
        width: 90%;
    }

    .search-overlay1 .search-inner1 input {
        height: 40px;
        font-size: 13px;
    }

    .search-overlay1 .search-inner1 .s-icon1 {
        width: 50px;
        height: 40px;
    }
}
