body {
    padding-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f0f0;
    color: #333;
}

/* Header */
.blog-header {
    background: #fff;
    padding: 30px 0 0;
    text-align: left;
}

.blog-header .site-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 5px;
    color: #333;
}

.blog-header .site-title a {
    color: #333;
    text-decoration: none;
}

.blog-header .site-description {
    color: #999;
    font-size: 14px;
    margin: 0 0 20px;
}

/* Navigation */
.blog-nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #eee;
}

.blog-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.blog-nav ul li {
    position: relative;
}

.blog-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.blog-nav ul li a:hover {
    color: #337ab7;
    background: #f8f8f8;
}

.blog-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none;
    z-index: 100;
    min-width: 150px;
    padding: 5px 0;
    list-style: none;
}

.blog-nav .hover-dropdown:hover .dropdown-menu {
    display: block;
}

.blog-nav .dropdown-menu li a {
    padding: 8px 20px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 25px;
}

.content-wrapper {
    background: #fff;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* Sidebar */
.sidebar-wrapper {
    background: #fff;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.widget {
    margin-bottom: 25px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget h3 {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 12px;
    margin-top: 0;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 4px 0;
    font-size: 13px;
    line-height: 1.8;
}

.widget ul li a {
    color: #337ab7;
    text-decoration: none;
}

.widget ul li a:hover {
    text-decoration: underline;
}

.announcement {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

.announcement p {
    margin: 0 0 8px;
}

/* Search in sidebar */
.widget .input-group {
    width: 100%;
}

.widget .form-control {
    font-size: 13px;
}

/* Tag Cloud */
.tag-cloud {
    line-height: 2.2;
}

.tag-item {
    display: inline-block;
    margin: 2px 5px;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 3px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
}

.tag-item:hover {
    background: #337ab7;
    color: #fff;
    text-decoration: none;
}

/* Article List */
.article-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item h2 {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: bold;
}

.article-item h2 a {
    color: #337ab7;
    text-decoration: none;
}

.article-item h2 a:hover {
    text-decoration: underline;
}

.article-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.article-meta span {
    margin-right: 15px;
}

.article-meta .views-count {
    margin-right: 0;
}

.article-summary {
    color: #555;
    line-height: 1.8;
    font-size: 14px;
}

.article-pinned {
    color: #d9534f;
    font-weight: bold;
}

/* Article Detail */
.article-detail .article-body {
    line-height: 1.9;
    font-size: 15px;
}

.article-detail .article-body img {
    max-width: 100%;
    height: auto;
}

.article-detail .article-body pre {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

.article-detail .article-body code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 90%;
}

.article-detail .article-body pre code {
    background: none;
    padding: 0;
}

.article-detail .article-body blockquote {
    border-left: 4px solid #ddd;
    padding: 10px 20px;
    margin: 15px 0;
    background: #f9f9f9;
    color: #555;
}

/* Article Publish Time */
.article-pub-time {
    text-align: right;
    margin-top: 30px;
    color: #999;
    font-size: 13px;
}

/* Article Nav (Prev/Next) */
.article-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    gap: 15px;
}

.article-nav .nav-prev,
.article-nav .nav-next {
    max-width: 48%;
    font-size: 14px;
    line-height: 1.5;
}

.article-nav .nav-next {
    text-align: right;
    margin-left: auto;
}

/* Pagination */
.pagination-wrapper {
    text-align: center;
}

/* Footer */
.blog-footer {
    margin-top: 30px;
    padding: 20px 0;
    background: #fff;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #337ab7;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 999;
}

.back-to-top:hover {
    background: #286090;
}

/* Breadcrumb */
.breadcrumb-wrapper {
    margin-bottom: 20px;
}

/* Mobile Nav Toggle */
.nav-current {
    display: none;
    float: left;
    padding: 12px 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
    line-height: 22px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px 0;
    float: right;
    line-height: 22px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.blog-nav .container {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
    .blog-header {
        padding: 15px 15px 0;
    }

    .blog-header .site-title {
        font-size: 22px;
    }

    .blog-header .site-description {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .nav-current {
        display: block;
    }

    .nav-toggle {
        display: block;
    }

    .blog-nav ul#mainNav {
        display: none;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .blog-nav ul#mainNav.open {
        display: flex;
    }

    .blog-nav ul li a {
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .blog-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
    }

    .blog-nav .hover-dropdown.open .dropdown-menu {
        display: block;
    }

    .main-content {
        padding-top: 15px;
    }

    .content-wrapper {
        padding: 15px 12px;
        border-left: none;
        border-right: none;
    }

    .sidebar-wrapper {
        padding: 15px 12px;
        border-left: none;
        border-right: none;
    }

    .article-item {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .article-item h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 5px;
    }

    .article-summary {
        font-size: 13px;
    }

    .article-detail .article-body {
        font-size: 14px;
        line-height: 1.8;
    }

    .article-detail .article-body pre {
        padding: 10px;
        font-size: 12px;
    }

    .article-detail .article-body blockquote {
        padding: 8px 12px;
        margin: 10px 0;
    }

    .article-detail h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .article-nav {
        flex-direction: column;
        gap: 10px;
    }

    .article-nav .nav-prev,
    .article-nav .nav-next {
        max-width: 100%;
        font-size: 13px;
    }

    .article-nav .nav-next {
        text-align: left;
    }

    .pagination > li > a,
    .pagination > li > span {
        padding: 6px 10px;
        font-size: 13px;
    }

    .widget h3 {
        font-size: 14px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 16px;
    }

    .article-tags .label {
        display: inline-block;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .blog-header .site-title {
        font-size: 20px;
    }

    .content-wrapper {
        padding: 12px 10px;
    }

    .article-item h2 {
        font-size: 16px;
    }

    .article-detail h1 {
        font-size: 18px;
    }

    .pagination > li > a,
    .pagination > li > span {
        padding: 5px 8px;
        font-size: 12px;
    }
}
