:root {
    --primary-black: #111111;
    --secondary-gray: #666666;
    --light-gray: #f8f8f8;
    --accent-teal: #4ECDC4;
    --accent-pink: #FF6B8B;
    --accent-blue: #4A90E2;
    --accent-orange: #FFB347;
}


a{
    color:#212529;
    text-decoration: none;
}
.blog-listing-container {
    padding-top:40px;
    /* 假设你的页头高80px，页脚高60px，可根据实际情况调整 */
    min-height: calc(100vh - 364px) !important; /* !important 确保覆盖其他样式 */
}
.page-container{
    padding-bottom:40px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--primary-black);
}

.page-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--secondary-gray);
    max-width: 600px;
}

/* Blog Listing Controls */
.listing-controls {
    margin-bottom: 40px;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

/* Category Filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-btn {
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    color: var(--secondary-gray);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
    text-decoration: none;
}

/* Sort Dropdown */
.sort-dropdown .custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 180px;
}

.sort-dropdown .custom-select-elegant {
    background: #f8f8f8;
    border: 1px solid #f0f0f0;
    color: var(--secondary-gray);
    padding: 10px 20px;
    padding-right: 45px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.sort-dropdown .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--secondary-gray);
    transition: color 0.3s ease;
}

.sort-dropdown .custom-select-elegant:hover {
    background: var(--primary-black);
    color: white;
    border-color: var(--primary-black);
}

.sort-dropdown .custom-select-elegant:hover + .select-arrow {
    color: white;
}

.sort-dropdown .custom-select-elegant:focus {
    background: #f8f8f8;
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* 下拉选项样式 */
.sort-dropdown .custom-select-elegant option {
    padding: 12px 20px;
    background: white;
    color: #333;
}

.sort-dropdown .custom-select-elegant option:checked {
    background: var(--primary-black);
    color: white;
}

.sort-dropdown .custom-select-elegant option:hover {
    background: #f0f0f0;
}



/* Blog Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Article Card */
.article-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border-color: #e0e0e0;
    text-decoration: none;
    color: inherit;
}

.article-card:hover .article-title {
    color: var(--accent-teal);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* 设置固定高度或使用比例 */
    background: none; /* 移除背景色 */
    border-radius: 8px 8px 0 0; /* 可选：圆角 */
}
/* 图片样式 */
.article-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并填充容器 */
    display: block;
    transition: transform 0.3s ease; /* 可选：悬停效果 */
}

/* 悬停效果 */
.article-card:hover .article-img {
    transform: scale(1.05); /* 可选：悬停时放大 */
}

/* 徽章位置调整 */
.article-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 2; /* 确保在图片上方 */
}


.article-body {
    padding: 25px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-black);
    line-height: 1.3;
    transition: color 0.3s;
}

.article-excerpt {
    color: var(--secondary-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #999999;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: #f8f8f8;
    color: var(--secondary-gray);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Featured Article */
.featured-article {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-article .article-image {
    height: 100%;
    min-height: 300px;
}

.featured-article .article-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-article .article-title {
    font-size: 1.8rem;
}



/* Sidebar */
.sidebar-widget {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    background: #ffffff;
}

.widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-black);
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

/* Popular Articles */
.popular-article {
    display: flex;
    align-items: center; /* 垂直居中 */
    margin-bottom: 20px;

    gap: 15px; /* 图片和内容之间的间距 */
}

.popular-article-img {
    flex-shrink: 0; /* 防止图片被压缩 */
}

.popular-article-content {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直居中 */
    height: 100%; /* 占满父容器高度 */
}

.popular-article-img img {
    width: 80px; /* 固定图片宽度 */
    height: 80px; /* 固定图片高度 */
    object-fit: cover; /* 保持图片比例 */
    border-radius: 4px;
}

/* Color variations for images */
.color-1 { background: linear-gradient(135deg, #FFE8E8 0%, #FFD6D6 100%); }

/* Responsive */
@media (max-width: 992px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article .article-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .controls-row {
        flex-direction: column;
        align-items: flex-start;
    }
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}
.load-div{
    text-align: center;
}

.load-all{
    text-align: center;
}