/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 栏目容器样式 */
.featured-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
}

/* 工具网格布局 - 与工具集网格样式保持一致 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    
}

/* 工具项样式 - 与工具集样式保持一致 */
.goodtools-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goodtools-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.posts-group {
    display: flex;
    gap: 15px;
}

.tool-icon {
    margin-right: 15px;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
}

.favicon-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

.goodtools-info {
    flex: 1;
}

.post-url {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-url:hover {
    color: #777;
    text-decoration: underline;
}

.post-tagline {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

/* 按钮样式 */
.tool-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-button {
    padding: 6px 12px;
    min-height: 32px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    transition: all 0.3s ease;
}

.tool-button:hover {
    background-color: #e0e0e0;
    color: #555;
}

/* 更多按钮样式 */
.more-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #666;
}

.more-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.more-button i {
    margin-right: 10px;
}

/* 工具集样式 - 与工具样式保持一致 */
.category-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-icon {
    margin-right: 15px;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
}

.category-info {
    flex: 1;
}

.category-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
    display: inline-block;
    text-decoration: none;
}

.category-name:hover {
    color: #777;
    text-decoration: underline;
}

.category-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

.category-count {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

/* 按钮样式 - 与工具按钮样式保持一致 */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-button {
    padding: 6px 12px;
    min-height: 32px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 16px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    transition: all 0.3s ease;
}

.category-button:hover {
    background-color: #e0e0e0;
    color: #555;
}

/* 分类页面特有样式 */
.category-page {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f8f8;
            padding: 20px;
        }
        
.category-container {
            max-width: 1200px;
            margin: 0 auto;
        }

.category-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.category-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.category-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

/* 分类统计 - 分类页面样式 */
.category-header .category-stats {
    display: inline-block;
    background-color: #f0f0f0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #777;
}

/* 无工具提示 */
.no-tools {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-tools i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* 返回按钮 */
.back-button {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: #e0e0e0;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-section {
        padding: 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
}

/* 工具集分类页面特有样式 */
 .categories-page {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
                'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8f8f8;
            padding: 20px;
        }
         .categories-container {
            max-width: 1200px;
            margin: 0 auto;
        }

/* 页面头部样式 */
.page-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.page-header p {
    font-size: 16px;
    color: #666;
}

/* 筛选标签样式 */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-tab {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-tab:hover {
    background-color: #e0e0e0;
    color: #555;
}

.filter-tab.active {
    background-color: #4ECDC4;
    color: white;
    border-color: #4ECDC4;
}

/* 工具集网格样式 */

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

/* 工具集卡片样式 */
.category-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.category-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

/* 分类统计 - 工具集卡片样式 */
.category-card .category-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #999;
}

.category-tool-count {
    display: flex;
    align-items: center;
}

.category-tool-count i {
    margin-right: 5px;
}

/* 间距工具类 */
.mr-1 {
    margin-right: 4px !important;
}

.mr-2 {
    margin-right: 8px !important;
}

/* 查看更多按钮 */
.view-more {
    text-align: center;
    margin-top: 20px;
}

/* 用户网格布局 */
.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 用户卡片样式 */
.user-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 用户头像样式 */
.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4ECDC4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

/* 用户信息样式 */
.user-info {
    flex: 1;
}

.user-info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.user-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* 用户统计信息 */
.user-stats {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #999;
}

/* 用户按钮区域 */
.user-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 分页控件样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover:not(.disabled) {
    background-color: #e0e0e0;
}

/* 工具集分类页面响应式设计 */
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .page-header {
        padding: 20px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}