:root {
    --primary-color: #ff6b35;
    --primary-dark: #e55a2b;
    --primary-light: #ff8b5c;
    --primary-bg: #fff5f0;
}

.post-category a,
.btn-read-more,
.search-btn,
.page-item.active .page-link,
.page-link:hover,
.tag:hover,
.categories-list li a:hover,
.categories-list li.active a {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.post-title a:hover,
.post-category a:hover,
.btn-read-more:hover,
.tag:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

.widget-title {
    border-bottom-color: var(--primary-color) !important;
}

.widget-title i {
    color: var(--primary-color) !important;
}

.search-form input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1) !important;
}

.post-rank {
    background: var(--primary-color) !important;
}

.blog-breadcrumb .breadcrumb-item a {
    color: var(--primary-color) !important;
}

.search-results-info {
    border-left-color: var(--primary-color) !important;
}

.search-results-info h3 i {
    color: var(--primary-color) !important;
}

.btn-browse {
    background: var(--primary-color) !important;
}

.btn-browse:hover {
    background: var(--primary-dark) !important;
}

.d-md-none{ display:none;}
/* 手机版横向滚动样式 */
@media (max-width: 768px) {
	
	.blog-detail{ margin:0px; width:100%}
	.blog-row{ margin:0px !important;}
	.blog-post-card{ margin-right:0px !important;}
	.d-md-none{ display:block;}
	
    /* 分类菜单水平滚动 */
    .categories-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        margin: 0 -15px;
        padding: 0 15px 15px;
        -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
        scrollbar-width: thin; /* Firefox */
        gap: 8px;
    }
    
    .categories-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .categories-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .categories-list::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 2px;
    }
    
    .categories-list li {
        margin-bottom: 0;
        flex: 0 0 auto;
        white-space: nowrap;
		padding:0px;
    }
	
	.categories-list ul li::before{
		content: unset;
	}
    
    .categories-list li a {
        padding: 8px 15px;
        border-radius: 20px;
        white-space: nowrap;
    }
    
    /* 最新文章水平滚动 */
    .recent-posts-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
        margin: 0 -15px;
        padding: 0 15px 15px;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        scrollbar-width: thin;
    }
    
    .recent-posts-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .recent-posts-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .recent-posts-list::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 2px;
    }
    
    .recent-posts-list li {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex: 0 0 auto;
        width: 280px;
    }
    
    .recent-post {
        display: block;
        background: white;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        height: 100%;
        transition: transform 0.3s ease;
    }
    
    .recent-post:hover {
        transform: translateY(-3px);
    }
    
    .recent-post-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 15px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .recent-post-content h6 {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 42px;
    }
    
    /* 热门文章水平滚动 */
    .sidebar-widget.recent-posts:last-child .recent-posts-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 15px;
        margin: 0 -15px;
        padding: 0 15px 15px;
        -webkit-overflow-scrolling: touch;
        gap: 15px;
        scrollbar-width: thin;
    }
    
    .sidebar-widget.recent-posts:last-child .recent-posts-list::-webkit-scrollbar {
        height: 4px;
    }
    
    .sidebar-widget.recent-posts:last-child .recent-posts-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    .sidebar-widget.recent-posts:last-child .recent-posts-list::-webkit-scrollbar-thumb {
        background: #ff6b35;
        border-radius: 2px;
    }
    
    .sidebar-widget.recent-posts:last-child .recent-posts-list li {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
        flex: 0 0 auto;
        width: 280px;
    }
    
    /* 小工具标题样式 */
    .sidebar-widget {
        overflow: hidden;
    }
    
    .widget-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 10px;
    }
    
    /* 滚动提示 */
    .scroll-hint {
        display: flex;
        align-items: center;
        color: #ff6b35;
        font-size: 12px;
        opacity: 0.7;
    }
    
    .scroll-hint i {
        margin-left: 5px;
        animation: swipe 1.5s infinite;
    }
    
    @keyframes swipe {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }
	
	
}

/* 平板设备调整 */
@media (min-width: 769px) and (max-width: 991px) {
    .recent-posts-list {
        gap: 12px;
    }
    
    .recent-post {
        display: block;
    }
    
    .recent-post-image {
        width: 100%;
        height: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }
}

.blog-posts-grid {
    margin-top: 0px;
}

.blog-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
	margin-right: 20px;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .post-overlay {
    opacity: 1;
}

.read-more-btn {
    color: white;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.post-content {
    padding: 25px;
}

.post-category {
    margin-bottom: 15px;
}

.post-category a {
    display: inline-block;
    padding: 5px 15px;
    background: #ff6b35;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.post-title {
    font-size: 22px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6b35;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-bottom: 20px;
}

.meta-left {
    display: flex;
    gap: 20px;
}

.post-date, .post-reading-time, .post-views {
    font-size: 13px;
    color: #888;
}

.post-date i, .post-reading-time i, .post-views i {
    margin-right: 5px;
}

.btn-read-more {
    display: inline-block;
    padding: 10px 25px;
    background: #ff6b35;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background: #e1e3ed;
    transform: translateX(5px);
}

.btn-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateX(5px);
}

/* Sidebar Styles */
.blog-sidebar {
    padding-right: 30px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ff6b35;
    color: #333;
}

.widget-title i {
    margin-right: 10px;
    color: #ff6b35;
}

/* Categories */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 10px;
}

.categories-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-list li a:hover,
.categories-list li.active a {
    background: #ff6b35;
    color: white;
    transform: translateX(5px);
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 10px;
}

.category-name {
    flex-grow: 1;
}

.post-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Search Form */
.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 12px 20px;
    padding-right: 50px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-form input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b35;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #5a67d8;
    transform: translateY(-50%) scale(1.1);
}

/* Recent Posts */
.recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-posts-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.recent-post:hover {
    transform: translateX(5px);
}

.recent-post-image {
    width: 70px;
    height: 70px;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-post:hover .recent-post-image img {
    transform: scale(1.1);
}

.recent-post-content h6 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
    color: #333;
}

.post-date {
    font-size: 12px;
    color: #888;
}

.post-date i {
    margin-right: 5px;
}

/* Tags */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    background: #f8f9fa;
    color: #555;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tag:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.tag-count {
    background: rgba(255,255,255,0.2);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 5px;
}

/* Popular Posts */
.popular-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-post-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.post-rank {
    width: 30px;
    height: 30px;
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.post-image {
    width: 100%;
    height: auto;
    margin-right: 15px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content h5 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.post-content h5 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h5 a:hover {
    color: #ff6b35;
}

.post-meta {
    font-size: 12px;
    color: #888;
}

.post-meta i {
    margin-right: 5px;
}

/* Pagination */
.blog-pagination-wrapper {
    margin-top: 50px;
}

.pagination {
    gap: 5px;
}

.page-link {
    padding: 10px 20px;
    border: 1px solid #dee2e6;
    color: #ff6b35;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.page-item.active .page-link {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

.page-link i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 991px) {
    .blog-sidebar {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .post-image {
        height: 200px;
    }
}

@media (max-width: 767px) {
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 18px;
    }
    
    .meta-left {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* Loading Animation */
.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.post-image-placeholder i {
    font-size: 48px;
}

/* Breadcrumb */
.blog-breadcrumb {
    margin-bottom: 30px;
}

.blog-breadcrumb .breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.blog-breadcrumb .breadcrumb-item a {
    color: #ff6b35;
    text-decoration: none;
}

.blog-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
}

.blog-breadcrumb .breadcrumb-sep {
    color: #6c757d;
    padding: 0 8px;
}

/* Search Results */
.search-results-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #ff6b35;
}

.search-results-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.search-results-info h3 i {
    color: #ff6b35;
    margin-right: 10px;
}

.results-count {
    color: #6c757d;
    margin: 0;
}

/* No Posts Found */
.no-posts-found {
    padding: 60px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 15px;
}

.empty-state p {
    color: #adb5bd;
    margin-bottom: 25px;
}

.btn-browse {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6b35;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.3);
}