/* 插件使用页面专用样式 */
.plugin-usage-page {
    padding: 20px 0;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4A90E2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 5px;
    color: #999;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4A90E2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #357ABD;
}

.filter-section {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #666;
}

.category-filter:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.category-filter.active {
    background-color: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    font-size: 14px;
    color: #666;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.main-content {
    flex: 1;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.article-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.article-card .cover-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
}

.article-summary {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-category {
    padding: 4px 10px;
    background-color: #f0f7ff;
    color: #4A90E2;
    border-radius: 12px;
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    color: #666;
}

.page-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
}

.page-btn.active {
    background-color: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-section {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.hot-articles-list {
    list-style: none;
}

.hot-article-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-article-item:hover {
    color: #4A90E2;
}

.hot-article-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-articles {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.promotion-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promotion-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.promotion-link:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 1023px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .page-title {
        font-size: 24px;
    }
    
    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-filters {
        justify-content: center;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sort-container {
        justify-content: center;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4A90E2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 无文章提示 */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.no-articles::before {
    content: '📭';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}
