/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #1890ff;
}

ul, li {
    list-style: none;
}

.clear {
    clear: both;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header-navigation {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    height: 60px;
}

.logo a {
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
}

#menu {
    display: flex;
    margin-left: 40px;
    flex: 1;
}

.navbar-item {
    margin-right: 20px;
}

.navbar-item a {
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.navbar-item a:hover {
    background: #f0f7ff;
    color: #1890ff;
}

.m-menu-btn, .search-btn-box, .mask {
    display: none;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    color: #666;
    font-size: 13px;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #1890ff;
}

/* Layout */
.lr-wrap {
    display: flex;
    gap: 20px;
    padding: 20px 0;
}

.left-wrap {
    flex: 1;
    min-width: 0;
}

.right-wrap {
    width: 300px;
    flex-shrink: 0;
}

.main {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

/* Article Box */
.article-box ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-box li {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.article-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.img-box {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.img-box:hover img {
    transform: scale(1.05);
}

.artcile-txt {
    flex: 1;
    min-width: 0;
}

.artcile-txt h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
}

.artcile-txt h2 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta-link {
    margin-bottom: 10px;
}

.article-meta-link a {
    font-size: 12px;
    color: #999;
    margin-right: 10px;
}

.article-meta-link .meta-tag {
    color: #1890ff;
}

.artcile-txt p {
    color: #666;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
}

.article-meta {
    color: #999;
    font-size: 12px;
}

.fa {
    margin-right: 5px;
}

/* Article Detail */
.article-ws {
    padding: 30px;
}

.article-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-info {
    color: #999;
    font-size: 13px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.article-info em {
    margin-right: 20px;
    font-style: normal;
}

.article-content {
    line-height: 1.8;
    font-size: 15px;
    color: #333;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f7ff;
    color: #1890ff;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.tags a:hover {
    background: #1890ff;
    color: #fff;
}

.post-ct {
    margin-top: 30px;
    padding: 15px;
    background: #fafafa;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
}

/* Sidebar */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget:last-child {
    margin-bottom: 0;
}

.author {
    text-align: center;
}

.bloger-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}

.bloger-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bloger-name {
    font-size: 16px;
    margin-bottom: 10px;
}

.bloger-info {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.side-title {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1890ff;
}

.side-title h4 {
    font-size: 16px;
    font-weight: 500;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li a {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.tag-list li a:hover {
    background: #1890ff;
    color: #fff;
}

.keyword-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.keyword-list li:last-child {
    border-bottom: none;
}

.keyword-list li a {
    color: #666;
    font-size: 13px;
}

.keyword-list li a:hover {
    color: #1890ff;
}

/* Pagination */
.pages {
    margin-top: 30px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pages a, .pages span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 4px;
    font-size: 13px;
}

.pages a {
    background: #fff;
    border: 1px solid #ddd;
    color: #666;
}

.pages a:hover {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
}

.pages span.current {
    background: #1890ff;
    color: #fff;
}

.pages .total {
    color: #999;
    border: none;
    background: none;
}

/* Search Page */
.search-title {
    margin-bottom: 20px;
}

.search-title h2 {
    font-size: 20px;
    font-weight: 500;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.keyword-grid li a {
    display: block;
    padding: 12px 15px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.keyword-grid li a:hover {
    background: #1890ff;
    color: #fff;
}

.keyword-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.keyword-header h2 {
    font-size: 22px;
    margin-bottom: 10px;
}

.keyword-desc {
    color: #666;
    font-size: 14px;
}

/* Sitemap */
.sitemap-section {
    margin-bottom: 30px;
}

.sitemap-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.sitemap-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.sitemap-list li a {
    display: block;
    padding: 8px 0;
    color: #666;
    border-bottom: 1px dashed #eee;
}

.sitemap-list li a:hover {
    color: #1890ff;
}

/* Footer */
footer {
    background: #fff;
    padding: 30px 0;
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #666;
    margin: 0 5px;
}

footer a:hover {
    color: #1890ff;
}

/* Responsive */
@media (max-width: 768px) {
    .lr-wrap {
        flex-direction: column;
    }

    .right-wrap {
        width: 100%;
    }

    .article-box li {
        flex-direction: column;
    }

    .img-box {
        width: 100%;
        height: 180px;
    }

    #menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    #menu.show {
        display: flex;
    }

    .navbar-item {
        margin: 5px 0;
    }

    .m-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        margin-left: auto;
    }

    .m-menu-btn span {
        width: 24px;
        height: 2px;
        background: #333;
    }

    .logo a {
        font-size: 14px;
    }

    .keyword-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
