.category-detail-page {
    padding: 20px 0;
}

.category-detail-header {
    background: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 30px;
}

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

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

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

.breadcrumb .separator {
    margin: 0 10px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: bold;
}

.category-info {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.category-info-main {
    display: flex;
    align-items: center;
    padding: 30px;
    justify-content: space-between;
    min-height: 80px;
}

.category-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 24px;
    margin-right: 20px;
}

.category-info-content {
    flex: 1;
    margin-right: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-info-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-info-name {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    line-height: 1.2;
    white-space: nowrap;
}

.category-info-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    white-space: normal;
    overflow: visible;
    word-wrap: break-word;
    word-break: break-word;
}

.category-info-count {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 8px 16px;
    min-width: auto;
    text-align: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.count-number {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
    margin-right: 4px;
}

.count-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.category-info-subcategories {
    border-top: 1px solid #f0f0f0;
    padding: 20px 30px;
    background: #fafafa;
}

.category-info-subcategories .sub-categories-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.category-info-subcategories .sub-categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}



/* 使用统一的容器类 */
.category-detail-container {
    /* 移除重复的容器设置，使用统一的main-container类 */
}

/* 分类信息和网站列表之间的间距 */
#categoryInfo {
    margin-bottom: 30px;
}

/* 标签信息和网站列表之间的间距 */
#tagInfo {
    margin-bottom: 30px;
}

/* 网站列表容器的间距 */
#sitesContainer {
    margin-top: 20px;
}

/* 网站列表标题和内容的间距 */
#sitesContainer .tools-grid {
    margin-top: 20px;
}

/* 确保网站卡片之间有合适的间距 */
#sitesContainer .tool-card {
    margin-bottom: 0;
}





.sub-category-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.sub-category-tag:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
}

.sub-category-tag-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.sub-category-tag-count {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}



.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

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

.no-sites h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.no-sites p {
    margin-bottom: 25px;
    font-size: 16px;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background: #0056b3;
}

/* 标签相关样式 */
.category-info-tags {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
}

.tag-name {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.tag-count {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.no-tags {
    color: #666;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.category-info-category {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.category-info-category a {
    color: #007bff;
    text-decoration: none;
}

.category-info-category a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .category-info-main {
        padding: 20px;
    }

    .category-info-icon {
        display: none;
    }

    .category-info-content {
        flex: 1;
        min-width: 0;
    }

    .category-info-name {
        font-size: 20px;
        white-space: normal;
    }

    .category-info-description {
        font-size: 14px;
        white-space: normal;
        max-width: 100%;
    }

    .category-info-count {
        padding: 6px 12px;
    }

    .count-number {
        font-size: 18px;
    }

    .count-text {
        font-size: 12px;
    }
    
    .category-info-subcategories {
        padding: 15px 20px;
    }

    .category-info-subcategories .sub-categories-title {
        font-size: 16px;
    }

    /* 设置category-info-tags的padding为0 */
    .category-info-tags {
        padding: 0;
    }

    /* 优化移动端sub-categories-tags样式 */
    .category-info-subcategories .sub-categories-tags {
        gap: 8px;
        padding: 0;
    }

    .sub-category-tag {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border: 1px solid #e1e4e8;
        border-radius: 18px;
        padding: 8px 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }

    .sub-category-tag::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .sub-category-tag:hover::before {
        left: 100%;
    }

    .sub-category-tag:hover {
        background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
        border-color: #007bff;
        box-shadow: 0 4px 16px rgba(0,123,255,0.2);
        transform: translateY(-2px) scale(1.02);
    }

    .sub-category-tag-name {
        font-size: 13px;
        font-weight: 600;
        color: #2c3e50;
        letter-spacing: 0.02em;
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 2px rgba(255,255,255,0.5);
    }

    .sub-category-tag-count {
        background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
        color: white;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 700;
        min-width: 22px;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0,123,255,0.3);
        position: relative;
        z-index: 1;
        text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    }

    /* 优化移动端标签样式 */
    .tags-container {
        gap: 8px;
    }

    .tag-item {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        padding: 6px 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }

    .tag-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, #007bff, #0056b3);
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .tag-item:hover::before {
        opacity: 1;
    }

    .tag-item:hover {
        background: #f8f9ff;
        border-color: #007bff;
        box-shadow: 0 2px 6px rgba(0,123,255,0.15);
        transform: translateY(-1px);
    }

    .tag-name {
        font-size: 10px;
        font-weight: 500;
        color: #333;
        letter-spacing: 0.01em;
        position: relative;
        z-index: 1;
    }

    .tag-count {
        background: linear-gradient(135deg, #007bff, #0056b3);
        color: white;
        padding: 1px 6px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 600;
        min-width: 18px;
        text-align: center;
        box-shadow: 0 1px 2px rgba(0,123,255,0.3);
        position: relative;
        z-index: 1;
    }

    /* 超小屏幕优化 */
    @media (max-width: 480px) {
        .category-info-main {
            padding: 15px;
        }

        .category-info-name {
            font-size: 18px;
        }

        .category-info-description {
            font-size: 13px;
        }

        .category-info-count {
            padding: 4px 8px;
        }

        .count-number {
            font-size: 16px;
        }

        .count-text {
            font-size: 11px;
        }

        /* 超小屏幕sub-categories-tags优化 */
        .category-info-subcategories .sub-categories-tags {
            gap: 6px;
        }

        .sub-category-tag {
            padding: 5px 10px;
            border-radius: 14px;
        }

        .sub-category-tag-name {
            font-size: 12px;
        }

        .sub-category-tag-count {
            padding: 1px 4px;
            border-radius: 6px;
            font-size: 9px;
            min-width: 14px;
        }

        /* 超小屏幕标签优化 */
        .tags-container {
            gap: 6px;
            padding: 2px;
        }

        .tag-item {
            padding: 4px 8px;
            border-radius: 12px;
            box-shadow: 0 1px 2px rgba(0,0,0,0.08);
        }

        .tag-item::before {
            height: 1px;
        }

        .tag-name {
            font-size: 11px;
            font-weight: 500;
        }

        .tag-count {
            padding: 0 4px;
            border-radius: 8px;
            font-size: 9px;
            min-width: 16px;
            font-weight: 700;
        }
    }
} 