/* ── AI导航 搜索框 ── */
.ai-search-wrap {
    margin-bottom: 1.2rem;
}

.ai-search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ai-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    background: white;
}

/* ── 分类标签 ── */
.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ai-tag {
    padding: 0.4rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ai-tag:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.ai-tag.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* ── AI工具卡片网格 ── */
.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ai-card {
    display: block;
    padding: 1.2rem;
    background: #fafbfc;
    border: 1px solid #e8eaf0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.ai-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.ai-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.ai-card-icon {
    font-size: 1.5rem;
}

.ai-card-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    background: rgba(37,99,235,0.08);
    color: #2563eb;
    border-radius: 10px;
    font-weight: 500;
}

.ai-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.35rem;
}

.ai-card-desc {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.ai-card-tag {
    font-size: 0.75rem;
    color: #999;
}

/* ── 无结果提示 ── */
.ai-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #999;
    font-size: 0.95rem;
}

/* ── 工具统计 ── */
.ai-count {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #999;
}

.ai-count strong {
    color: #2563eb;
    font-weight: 600;
}

/* ── Mobile ── */
@media (max-width: 900px) {
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .ai-tags {
        gap: 0.4rem;
    }

    .ai-tag {
        padding: 0.35rem 0.8rem;
        font-size: 0.8rem;
    }
}
