/* 博客样式 */
.blog-post .post-header {
    background: linear-gradient(135deg, #f8f8f8 0%, #f8f8f8 100%);
    color: rgb(17, 1, 1);
    padding: 30px 0 20px;
    position: relative;
    overflow: hidden;
}

.blog-post .post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.blog-post .post-header .breadcrumb-nav {
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    background: transparent;
    padding: 5px 0;
}

.blog-post .post-header .breadcrumb-nav a {
    color: rgba(122, 112, 112, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.blog-post .post-header .breadcrumb-nav a:hover {
    color: rgb(25, 22, 22);
    text-decoration: underline;
}

.blog-post .post-header .breadcrumb-nav span {
    color: rgb(75, 72, 72);
    font-weight: 500;
}

.blog-post .post-header .post-title {
    font-size: 2.8rem;
    font-weight: 300;
    margin-bottom: 25px;
    line-height: 1.2;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-post .post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.blog-post .post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.blog-post .post-header .post-meta span i {
    font-size: 16px;
}

.blog-post .post-header .post-meta span a {
    color: rgba(27, 26, 26, 0.9);
    text-decoration: none;
}

.blog-post .post-header .post-meta span a:hover {
    color: rgb(9, 1, 1);
}

.blog-post .post-header .post-meta .tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.blog-post .post-header .post-meta .tag:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 文章标签包装器 */
.blog-post .post-header .post-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.blog-post .post-header .post-tags-wrapper .tag {
    background: rgba(255, 255, 255, 0.2);
    color: rgb(13, 1, 1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 9, 9, 0.3);
}

.blog-post .post-header .post-tags-wrapper .tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.post-excerpt {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    /* max-width: 800px; */
}

.blog-post .post-header {
    font-size: 1.2rem;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    /* max-width: 800px; */
    margin: 0 auto;
}

.blog-post .post-content {
    padding: 40px 0;
}

/* 勿覆盖 .col 宽度：与 .offset-l* 同时存在时会把正文整块向右推 */
.blog-post .post-content .col [style*="max-width"] {
    max-width: 100% !important;
}

.blog-post .post-content h1, 
.blog-post .post-content h2, 
.blog-post .post-content h3, 
.blog-post .post-content h4, 
.blog-post .post-content h5, 
.blog-post .post-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.blog-post .post-content h1 { 
    font-size: 2rem; 
}

.blog-post .post-content h2 { 
    font-size: 1.75rem; 
}

.blog-post .post-content h3 { 
    font-size: 1.5rem; 
}

.blog-post .post-content h4 { 
    font-size: 1.25rem; 
}

.blog-post .post-content h5 { 
    font-size: 1.1rem; 
}

.blog-post .post-content h6 { 
    font-size: 1rem; 
}

.blog-post .post-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.blog-post .post-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.blog-post .post-content pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-post .post-content pre code {
    background: none;
    padding: 0;
}

.blog-post .post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-post .post-content ul, 
.blog-post .post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.blog-post .post-content ul li, 
.blog-post .post-content ol li {
    margin-bottom: 0.5rem;
}

.blog-post .post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.blog-post .post-content table th, 
.blog-post .post-content table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

.blog-post .post-content table th {
    background: #f5f5f5;
    font-weight: 500;
}

.blog-post .post-footer {
    background: #f8f9fa;
    padding: 40px 0;
}

.blog-post .post-footer .post-share {
    margin-bottom: 40px;
}

.blog-post .post-footer .post-share h5 {
    margin-bottom: 20px;
    color: #333;
}

.blog-post .post-footer .post-share .share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-post .post-footer .related-posts {
    margin-bottom: 40px;
}

.blog-post .post-footer .related-posts h5 {
    margin-bottom: 20px;
    color: #333;
}

.blog-post .post-footer .related-posts .card {
    height: 100%;
}

.blog-post .post-footer .related-posts .card .card-content {
    padding: 20px;
}

.blog-post .post-footer .related-posts .card .card-content .card-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 10px;
}

.blog-post .post-footer .related-posts .card .card-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.blog-post .post-footer .related-posts .card .card-action {
    padding: 15px 20px;
}

.blog-post .post-footer .related-posts .card .card-action a {
    color: #667eea;
    font-weight: 500;
}

.blog-post .post-footer .related-posts .card .card-action a:hover {
    color: #5a6fd8;
}

.blog-post .post-footer .post-comments h5 {
    margin-bottom: 20px;
    color: #333;
}

/* 博客列表页面样式 */
.blog-post-card {
    margin-bottom: 30px;
}

.blog-post-card .card.horizontal .card-image {
    max-width: 200px;
}

.blog-post-card .card.horizontal .card-image img {
    height: 100%;
    object-fit: cover;
}

.blog-post-card .card.horizontal .card-stacked .card-content .card-title {
    font-size: 1.3rem;
    line-height: 1.4;
    margin-top: 6px;
}

.blog-post-card .card.horizontal .card-stacked .card-content .card-title a {
    color: #333;
    text-decoration: none;
}

.blog-post-card .card.horizontal .card-stacked .card-content .card-title a:hover {
    color: #667eea;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-meta span i {
    font-size: 14px;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-meta span a {
    color: #667eea;
    text-decoration: none;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-meta span a:hover {
    text-decoration: underline;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-tags .tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
}

.blog-post-card .card.horizontal .card-stacked .card-content .post-tags .tag:hover {
    background: #667eea;
    color: white;
}

.blog-post-card .card.horizontal .card-stacked .card-action {
    padding: 15px 20px;
}

.blog-post-card .card.horizontal .card-stacked .card-action .btn {
    background: #667eea;
}

.blog-post-card .card.horizontal .card-stacked .card-action .btn:hover {
    background: #5a6fd8;
}

/* 分页样式 */
.pagination-wrapper {
    margin: 40px 0;
}

.pagination-wrapper .pagination li.active {
    background-color: #667eea;
}

.pagination-wrapper .pagination li.waves-effect a {
    color: #667eea;
}

/* 侧边栏样式 */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #eee;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
}

.category-list li a:hover {
    color: #667eea;
}

.category-list li a .badge {
    background: #667eea;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 0.8rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud .tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.tag-cloud .tag .tag-count {
    font-size: 0.8rem;
    opacity: 0.7;
}

.recent-posts {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.recent-posts li a:hover {
    color: #667eea;
}

.recent-posts li small {
    display: block;
    color: #999;
    font-size: 0.8rem;
    margin-top: 5px;
}

/* 响应式设计 */
@media only screen and (max-width: 992px) {
    .blog-post .post-header .post-title {
        font-size: 2rem;
    }
    
    .blog-post .post-header .post-meta {
        gap: 15px;
    }
    
    .blog-post-card .card.horizontal .card-image {
        max-width: 150px;
    }
}

@media only screen and (max-width: 600px) {
    .blog-post .post-header {
        padding: 40px 0 30px;
    }
    
    .blog-post .post-header .post-title {
        font-size: 1.8rem;
    }
    
    .blog-post .post-header .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-post-card .card.horizontal .card-image {
        max-width: 100px;
    }
    
    .blog-post-card .card.horizontal .card-stacked .card-content .card-title {
        font-size: 1.1rem;
    }
    
    .post-share .share-buttons {
        flex-direction: column;
    }
    
    .post-share .share-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
} 

.back-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  width: auto !important;
  max-width: none !important;
}

.back-btn img,
.back-btn span {
  pointer-events: auto !important;
} 

.related-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 5.6em; /* 4行高度，1.4em*4，可根据实际字体调整 */
  max-height: 5.6em;
  line-height: 1.4em;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 16px;
} 

.share-buttons .btn {
  margin-right: 8px;
  margin-bottom: 8px;
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  font-size: 1rem;
  background: #fff;
  color: #333;
  border: 1px solid #eee;
  box-shadow: none;
  transition: background 0.2s;
}
.share-buttons .btn:hover {
  background: #f5f5f5;
}
.share-icon {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
} 

@media only screen and (max-width: 768px) {
    .share-buttons .btn {
        min-width: 100px;
        font-size: 0.9rem;
        margin-right: 6px;
        margin-bottom: 6px;
    }
    .share-icon {
        width: 18px;
        height: 18px;
        margin-right: 4px;
    }
} 