/* 首页特有样式 - 严格限定在.home-page下 */
.home-page {
    background-color: #f8f9fa;
}

.home-page .main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.home-page .section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-page .section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: #007bff;
}

.home-page .category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.home-page .category-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.home-page .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.home-page .category-header {
    padding: 10px;
    background: #007bff;
    color: white;
    height:45px;
    font-size: 0.9rem;
}

.home-page .category-body {
    padding: 15px;
}

.home-page .category-count {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.home-page .article-list {
    margin-bottom: 30px;
}

.home-page .article-item {
    padding: 20px;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.home-page .article-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.home-page .article-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.home-page .article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.home-page .article-title a:hover {
    color: #007bff;
    text-decoration: none;
}

.home-page .article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.home-page .article-meta span {
    display: flex;
    align-items: center;
}

.home-page .article-meta i {
    margin-right: 5px;
    color: #007bff;
}

.home-page .article-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.home-page .read-more {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.home-page .read-more:hover {
    background: #0069d9;
    color: white;
}

.home-page .two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.home-page .column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-page .category-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.home-page .category-article-link {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .category-article-date {
    font-size: 0.8rem;
    color: #999;
    margin-left: 10px;
    flex-shrink: 0;
}

/* 广告样式（限定在.home-page下） */
.home-page .ad-item {
    display: inline-block;
    white-space: nowrap;
}

.home-page .ad-placeholder {
    display: inline-block;
    padding: 0 10px;
    border: 1px dashed rgba(255,255,255,0.5);
    border-radius: 4px;
    transition: all 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.home-page .ad-placeholder:hover {
    background-color: rgba(255,255,255,0.1);
    text-decoration: none;
}

/* 响应式调整（限定在.home-page下） */
@media (max-width: 992px) {
    .home-page .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .home-page .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .home-page .article-title {
        font-size: 1.2rem;
    }
    
    .home-page .article-item {
        padding: 15px;
    }
    
    .home-page .two-columns {
        grid-template-columns: 1fr;
    }
    
    .home-page .section-title {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .home-page .category-grid {
        grid-template-columns: 1fr;
    }
    
    .home-page .article-meta {
        font-size: 0.8rem;
        gap: 10px;
    }
}

