/* 九宫格切图 /css/tools/image-grid-split.css
   依赖：home.css（--c-* 设计令牌）、tool-detail.css、tools/calc-common.css、tools/file-tool.css */

/* 切分结果宫格 */
.igs-grid {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.igs-cell {
    position: relative;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--c-bg-soft);
    min-width: 0;
}

.igs-cell img {
    display: block;
    width: 100%;
    height: auto;
}

.igs-no {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: rgba(20, 24, 32, .78);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
}

.igs-dl {
    position: absolute;
    right: 6px;
    bottom: 6px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(20, 24, 32, .72);
    color: #fff;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease;
}

.igs-dl:hover { background: rgba(0, 150, 220, .9); }

.igs-cell-sub {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(20, 24, 32, .72);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
}

/* 自定义行列 */
.igs-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.igs-hint {
    font-size: 12px;
    color: var(--c-text-muted);
    line-height: 1.7;
    margin-top: 8px;
}

@media (max-width: 620px) {
    .igs-grid { gap: 6px; }
    .igs-cell-sub { display: none; }
}
