body {
    background: linear-gradient(135deg, #f5f3ff 0%, #eef2ff 50%, #f5f3ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 65px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.custome-container {
    flex: 1;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.navbar-custom {
    --bs-navbar-padding-y: 0;
    background: linear-gradient(90deg, #764ba2 0%, #667eea 25%, #764ba2 50%, #667eea 75%, #764ba2 100%);
    border: none;
    border-radius: 0;
    min-height: 65px;
    box-shadow: 0 2px 8px rgba(102,126,234,.3);
}
.navbar-custom .navbar-brand {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    height: 50px;
    line-height: 50px;
    padding: 0 15px;
}
.navbar-custom .navbar-nav > li > a {
    color: rgba(255,255,255,.75);
    font-size: 16px;
    padding: 0 16px;
    line-height: 65px;
    height: 65px;
    transition: color .2s;
}
.navbar-custom .navbar-nav > li > a:hover,
.navbar-custom .navbar-nav > li > a:focus {
    color: #fff;
    background: transparent;
}
.navbar-custom .navbar-nav > .active > a {
    color: #fff;
    background: rgba(255,255,255,.15);
}
.navbar-custom .form-control {
    font-size: 14px;
}
.navbar-custom .btn {
    font-size: 14px;
}
.navbar-custom .navbar-toggle {
    margin-top: 8px;
    border-color: rgba(255,255,255,.4);
}
.navbar-custom .navbar-toggle .icon-bar {
    background: rgba(255,255,255,.7);
}


.blog-main {
    padding: 20px 0;
}

.fade-in {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(102,126,234,.12);
    position: relative;
    overflow: hidden;
    transition: box-shadow .3s;
}
.fade-in:hover {
    box-shadow: 0 2px 12px rgba(102,126,234,.2);
}

.entry-header {
    padding: 20px 20px 0;
}
.entry-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.4;
}
.entry-title a {
    color: #333;
    text-decoration: none;
}
.entry-title a:hover {
    color: #667eea;
}

.entry-content {
    padding: 0 20px 20px;
    position: relative;
}
.archive-content {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    max-height: 50px;
    overflow: hidden;
}
.title-l {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: #667eea;
}
.entry-meta {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 5px;
}

.entry-meta span {
    margin-right: 15px;
}
.entry-more {
    display: block;
    text-align: right;
}
.entry-more a {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
}
.entry-more a:hover {
    text-decoration: underline;
}

.blog-sidebar {
    padding: 20px 0 20px 20px;
}
.blog-sidebar .sidebar-module {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(102,126,234,.12);
}
.custom-title {
    font-size: 14px;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    color: #333;
}


.tag-item {
    display: inline-block;
    margin: 4px;
    padding: 3px 8px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: all .2s;
}
.tag-item:hover {
    color: #667eea;
    border-color: #667eea;
    text-decoration: none;
}
.tag-item.active {
    color: #667eea;
    background: #eef2ff;
    border-color: #667eea;
    font-size: 18px !important;
}

.ul-default {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ul-default li {
    padding: 6px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ul-default li:last-child {
    border-bottom: none;
}
.ul-default li a {
    color: #555;
    text-decoration: none;
}
.ul-default li a:hover {
    color: #667eea;
}

.pagination {
    margin: 0;
}

.footer {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 25%, #764ba2 50%, #667eea 75%, #764ba2 100%);
    color: rgba(255,255,255,.8);
    padding: 2px 0 10px;
    margin-top: 30px;
    font-size: 13px;
    text-align: center;
}
.footer p {
    margin-top: 35px;
}
.footer ul {
    display: inline-block;
    padding: 0;
    margin: 0;
}
.footer ul li {
    display: inline;
    margin: 0 8px;
}
.footer .external-links {
    margin-top: 4px;
}
.footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}

/* Article detail */
.blog-body {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(102,126,234,.12);
}
.blog-info-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #444;
    overflow: hidden;
}
.article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    word-wrap: break-word;
    word-break: break-all;
}
.article-content h1, .article-content h2, .article-content h3, .article-content h4 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}
.article-content p {
    margin-bottom: 12px;
}
.article-content img {
    max-width: 100%;
    height: auto;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.article-content th, .article-content td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}
.article-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}
.article-content pre {
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 3px;
    padding: 12px;
    overflow-x: auto;
    font-size: 13px;
}
.article-content code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 2px;
    font-size: 13px;
}
.article-content pre code {
    background: none;
    padding: 0;
}

.blog-info-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 10px;
}
.blog-info-meta span {
    margin: 0 10px;
}

.praise {
    text-align: center;
    margin: 20px 0;
}
.praise .praise-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #c4cdf7;
    border-radius: 3px;
    overflow: hidden;
}
.praise .praise-count {
    font-size: 20px;
    font-weight: 600;
    color: #999;
    padding: 8px 18px 4px;
    background: #f5f5ff;
    min-width: 80px;
    text-align: center;
}
.praise .praise-count i {
    font-style: normal;
}
.praise .praise-like a {
    display: block;
    padding: 8px 20px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all .2s;
}
.praise .praise-like a:hover {
    background: #667eea;
    color: #fff;
}
.praise .praise-box.liked .praise-like a {
    pointer-events: none;
}

.article-tag .cat ul li {
    font-size: 13px;
    color: #666;
    padding: 4px 0;
}
.article-tag .cat ul li a {
    color: #667eea;
    text-decoration: none;
}
.article-tag .cat ul li a:hover {
    text-decoration: underline;
}

.prev-next {
    padding: 12px 15px;
}
.nav-single a {
    display: block;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 5px 0;
}
.nav-single a:hover {
    color: #667eea;
}
.nav-single .post-nav {
    color: #999;
    font-size: 12px;
}
.nav-single .pull-left {
    float: left;
}
.nav-single .pull-right {
    float: right;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #667eea;
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 3px;
    cursor: pointer;
    display: none;
    opacity: .8;
    transition: opacity .2s;
}
.to-top:hover {
    opacity: 1;
}
.to-top.show {
    display: block;
}
