/* 工具集场景目录页（无 iframe，卡片链到正式工具页） */

/* hero 统计 + 定制入口：同一卡片内，右侧为可点击区域 */
.agi-hero-stats--unified,
.cgi-hero-stats--unified,
.mmi-hero-stats--unified,
.comm-hero-stats--unified {
    padding: 0;
    overflow: hidden;
}

.agi-hero-stats--unified .agi-stat,
.cgi-hero-stats--unified .cgi-stat,
.mmi-hero-stats--unified .mmi-stat,
.comm-hero-stats--unified .comm-stat {
    padding: 0.6rem 1.25rem;
}

.agi-hero-custom-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 6.5rem;
    padding: 0.6rem 1.35rem;
    margin: 0;
    border: none;
    border-radius: 0;
    background: rgba(16, 185, 129, 0.08);
    cursor: pointer;
    color: var(--text-primary);
    font: inherit;
    align-self: stretch;
    transition: background 0.18s, color 0.18s;
}

.agi-hero-custom-btn:hover {
    background: rgba(16, 185, 129, 0.16);
}

.agi-hero-custom-btn:active {
    background: rgba(16, 185, 129, 0.22);
}

.agi-hero-custom-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

.agi-hero-custom-btn__text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #059669;
    line-height: 1.2;
    white-space: nowrap;
}

.agi-hero-custom-btn__text i {
    font-size: 1.1rem;
}

.agi-hero-custom-btn__sub {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    font-size: 0.72rem;
    font-weight: 500;
    color: #10b981;
    margin-top: 2px;
}

.agi-hero-custom-btn__sub i {
    font-size: 0.85rem;
    transition: transform 0.18s;
}

.agi-hero-custom-btn:hover .agi-hero-custom-btn__sub i {
    transform: translateX(2px);
}

@media (max-width: 480px) {
    .agi-hero-stats--unified,
    .cgi-hero-stats--unified,
    .mmi-hero-stats--unified,
    .comm-hero-stats--unified {
        flex-direction: column;
        align-items: stretch;
    }

    .agi-hero-stats--unified .agi-stat-sep,
    .cgi-hero-stats--unified .cgi-stat-sep,
    .mmi-hero-stats--unified .mmi-stat-sep,
    .comm-hero-stats--unified .comm-stat-sep {
        width: auto;
        height: 1px;
        margin: 0 1rem;
    }

    .agi-hero-custom-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        border-top: 1px solid var(--border-color);
    }
}

.thd-toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.thd-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.88rem;
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.thd-back:hover {
    text-decoration: underline;
}

.thd-grid .agi-card-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 1.02rem;
}

.thd-badges {
    display: inline-flex;
    gap: 0.25rem;
}

.thd-badge {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    line-height: 1.4;
}

.thd-badge--ai {
    background: #ede9fe;
    color: #6d28d9;
}

.thd-badge--hot {
    background: #fee2e2;
    color: #dc2626;
}

.thd-badge--must {
    background: #d1fae5;
    color: #059669;
}

/* 数据可视化：深度工作台专区 */
.vis-workbench-section {
    margin-bottom: 1.75rem;
}

.vis-tools-section {
    margin-bottom: 0;
}

.vis-workbench-head {
    margin-bottom: 0.85rem;
}

.vis-workbench-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    margin: 0 0 0.25rem;
}

.vis-workbench-title i {
    color: #10b981;
    font-size: 1.2rem;
}

.vis-workbench-title--muted i {
    color: var(--text-muted, #6b7280);
}

.vis-workbench-sub {
    font-size: 0.88rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.5;
}

.vis-workbench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.vis-workbench-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 14px 16px;
    border: 1px solid rgba(var(--action-rgb, 59, 102, 196), 0.28);
    border-radius: var(--radius-lg, 12px);
    background: color-mix(in srgb, var(--bg-card, #fff) 82%, rgba(16, 185, 129, 0.14));
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.06);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.vis-workbench-card:hover {
    border-color: #10b981;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.14);
    transform: translateY(-1px);
}

.vis-workbench-card__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.vis-workbench-card__icon i {
    font-size: 1.3rem;
    color: #fff;
}

.vis-workbench-card__body {
    flex: 1;
    min-width: 0;
}

.vis-workbench-card__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary, #111827);
    line-height: 1.35;
}

.vis-workbench-card:hover .vis-workbench-card__name {
    color: #059669;
}

.vis-workbench-card__desc {
    display: block;
    margin-top: 3px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vis-workbench-card__arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--text-muted, #9ca3af);
    transition: color 0.18s, transform 0.18s;
}

.vis-workbench-card:hover .vis-workbench-card__arrow {
    color: #10b981;
    transform: translateX(2px);
}

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

    .vis-workbench-card {
        min-height: 0;
    }
}
