/* 主标题样式 */
.main-content h2 {
    font-size: 17px;
    font-weight: 400;
    color: var(--text-color);
    font-family: var(--font-family);
    margin: 0 0 20px 3px;
    position: relative;
}

.main-content h2::before {
    content: '';
    display: inline-block;
    width: 2.5px;
    height: 17px;
    background: var(--primary-color);
    margin-right: 8px;
    vertical-align: -2px;
    border-radius: 1px;
}

/* ========================================
   5. TOOLS GRID — 工具卡片网格
======================================== */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.tool-card {
    display: block;
    background-color: #f5f5f7;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.tool-card-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
}

.tool-card-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.tool-card-title span {
    font-size: 16px;
    font-weight: 600;
    font-family: Source Han sans-serif;
}

.tool-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
    width: 100%;
    color: #526172;
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    min-height: 40px;
    margin: 0;
    text-align: left;
    font-family:
            "DeepSeek-CJK-patch",
            Inter,
            system-ui,
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            "Noto Sans",
            Ubuntu,
            Cantarell,
            "Helvetica Neue",
            Oxygen,
            "Open Sans",
            sans-serif;
}

/* 没有数据时的提示样式 */
.no-results{
    width: 100%;
    min-height: 400px;
    text-align: center;
    margin-top: 20px;
    background-color: var(--main-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.no-results p{
    font-size: 15.5px;
    font-weight: 400;
    font-family: var(--font-simple);
}

.no-results p span{
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    margin-left: 1px;
}

.no-results p span:hover{
    text-decoration: underline;
}

@media (max-width: 768px) {
    .main-content h2{
        font-size: 15.5px !important;
    }

    .main-content h2::before{
        height: 15px !important;
        vertical-align: -1px !important;
    }

    .main-content h2 span{
        font-size: 16px !important;
    }
}