/* 博客页面特定样式 */

/* 博客页面头部样式 */
.blog-hero {
    background: linear-gradient(135deg, var(--dhl-red) 0%, var(--dhl-dark-red) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.blog-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* 博客容器布局 */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.blog-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* 博客搜索功能 */
.blog-search {
    background: var(--background-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-search h3 {
    color: var(--dhl-red);
    margin-bottom: 15px;
}

.blog-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.blog-search button {
    width: 100%;
    padding: 12px;
    background: var(--dhl-red);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.blog-search button:hover {
    background: var(--dhl-dark-red);
}

/* 博客分类 */
.blog-categories {
    background: var(--background-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.blog-categories h3 {
    color: var(--dhl-red);
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--dhl-red);
}

.category-count {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 博客标签云 */
.blog-tags {
    background: var(--background-light);
    padding: 25px;
    border-radius: 10px;
}

.blog-tags h3 {
    color: var(--dhl-red);
    margin-bottom: 15px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: white;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s;
}

.tag:hover {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    border-color: var(--dhl-yellow);
}

/* 博客文章卡片 */
.blog-post {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-post h2 {
    color: var(--dhl-red);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-post h2 a {
    color: inherit;
    text-decoration: none;
}

.blog-post h2 a:hover {
    text-decoration: underline;
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-read-more {
    display: inline-block;
    color: var(--dhl-red);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--dhl-yellow);
    transition: all 0.3s;
}

.blog-read-more:hover {
    color: var(--dhl-dark-red);
    border-bottom-color: var(--dhl-red);
}

/* 推荐标签 */
.featured-badge {
    background: var(--dhl-yellow);
    color: var(--dhl-red);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

/* 博客分页 */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.page-btn:hover,
.page-btn.active {
    background: var(--dhl-red);
    color: white;
    border-color: var(--dhl-red);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .blog-hero {
        padding: 100px 0 60px;
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-container {
        padding: 40px 15px;
    }
}