.article-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.article-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    text-align: left;
}

.article-filters {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

.filter-tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tag:hover, .filter-tag.active {
    background: #5679f8;
    color: #ffffff;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.article-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 5px 10px;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: stretch;
    gap: 20px;
    min-height: 120px;
}

.article-cover {
    width: 300px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    align-self: center;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #d4d4d4;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    text-align: left;
}

.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.article-desc {
    font-size: 16px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 15px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
}

.article-date {
    font-size: 13px;
    color: #95a5a6;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    align-items: center;
}

.article-tag {
    background: #ecf0f1;
    color: #7f8c8d;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
}

.article-views {
    font-size: 13px;
    color: #95a5a6;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

.search-box {
    margin-top: 20px;
    margin-bottom: 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border: 0.3px solid #e0e0e0;
    border-radius: 10px;
    color: #333;
    font-size: 16px;
    outline: none;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles i {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.pagination-container {
    margin-top: 20px;
    padding: 10px;
    background: #ffffff;
    border-radius: 10px;
    border: 0px solid #e0e0e0;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
}

.pagination-info {
    text-align: center;
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 8px 16px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

.pagination-link:hover {
    background: #7f9cfb;
    color: #fff;
    border-color: #7f9cfb;
}

.pagination-link.active {
    background: #7f9cfb;
    color: #fff;
    border-color: #7f9cfb;
    cursor: default;
}

.article-detail-cover {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.article-detail-cover img {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    object-fit: contain;
}

.article-header {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px 20px;
    margin-bottom: 10px;
    border: 0px solid #e0e0e0;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
}

.article-header .article-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.article-header .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    align-items: center;
}

.article-header .article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-header .article-meta .article-tag {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-header .article-meta .article-tag:hover {
    background: #7f9cfb;
    color: #fff;
}

.article-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px 20px;
    margin-bottom: 0px;
    margin: 10px 0;
    border: 0px solid #e0e0e0;
    line-height: 1.8;
    color: #333;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.4);
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 15px 0;
}

.article-content h2 {
    color: #333;
    margin: 25px 0 15px 0;
    font-size: 22px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content a {
    color: #007bff;
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.related-articles {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.related-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.related-item {
    padding: 15px;
    margin: 10px 0;
    background: #f9f9f9;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.related-item-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.related-item-meta {
    font-size: 12px;
    color: #999;
}

.back-link {
    font-size: 12px;
    display: inline-block;
    padding: 5px 10px;
    background: #7f9cfb;
    color: #fffafa;
    text-decoration: none;
    border-radius: 10px;
    margin-top: 20px;
    margin-left: 0;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
    background: #4b5af9;
    transform: translateY(-2px);
}

/* 热门文章模块样式 */
.popular-articles {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.08);
    border: 0px solid #f0f0f0;
}

.popular-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.popular-title i {
    color: #e74c3c;
    font-size: 22px;
}

.popular-articles .article-grid {
    margin-top: 0;
    padding: 0px;
}

/* 热门文章卡片单独样式 */
.popular-article-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.3s ease;
    border: 0.1px solid #f1eded;
    cursor: pointer;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: stretch;
    gap: 20px;
    min-height: 120px;
}

.popular-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #d4d4d4;
}

.popular-article-card .article-cover {
    width: 280px;
    height: 140px;
    flex-shrink: 0;
    padding: 0px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    align-self: center;
}

.popular-article-card .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-article-card .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    text-align: left;
}

.popular-article-card .article-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: left;
}

.popular-article-card .article-desc {
    font-size: 13px;
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0 0 12px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex-grow: 1;
    text-align: left;
}

.popular-article-card .article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #95a5a6;
    margin-top: auto;
}

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

.popular-article-card .article-views i,
.popular-article-card .article-date i {
    font-size: 12px;
}

.popular-article-card .article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.popular-article-card .article-tag {
    font-size: 11px;
    padding: 3px 10px;
    background: #ecf0f1;
    color: #7f8c8d;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.popular-article-card .article-tag:hover {
    background: #bdc3c7;
    color: #2c3e50;
}

/* 响应式设计 - 移动端适配 */
@media (max-width: 768px) {
    .article-header .article-title {
        font-size: 18px;
        line-height: 1.5;
        word-break: break-all;
        overflow: visible;
        text-overflow: clip;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
    }
    
    .article-header {
        padding: 15px;
    }
    
    .article-card {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 10px;
    }
    
    .article-cover {
        width: 100%;
        height: 200px;
        align-self: stretch;
        margin-bottom: 0px;
    }
    
    .article-content {
        align-items: flex-start;
        padding: 10px 10px;
        margin: 10px 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .article-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .article-desc {
        font-size: 13px;
        margin-bottom: 12px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .article-meta {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .article-date,
    .article-views {
        font-size: 12px;
    }
    
    .article-tag {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* 热门文章卡片移动端样式 */
    .popular-article-card {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
        padding: 0px;
    }
    
    .popular-article-card .article-cover {
        width: 100%;
        height: 180px;
        align-self: stretch;
        margin-bottom: 12px;
    }
    
    .popular-article-card .article-content {
        align-items: flex-start;
        padding: 0;
    }
    
    .popular-article-card .article-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .popular-article-card .article-desc {
        font-size: 12px;
        margin-bottom: 10px;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
    
    .popular-article-card .article-meta {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .popular-article-card .article-views,
    .popular-article-card .article-date {
        font-size: 11px;
    }
    
    .popular-article-card .article-tag {
        font-size: 10px;
        padding: 2px 8px;
    }
}
