@import url("../tool-page.css?v=20260628d");

/* ================== 布局 ================== */
.main-three-part-grid-container .content-body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-top: 0;
    background: #fff;
}

.w-collect-tip {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0;
    text-align: center;
    font-size: 14px;
    color: #999;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.main-three-part-grid-container .w-collect-tip.tool-card {
    margin: 0 0 0.75rem !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0.55rem 0 !important;
    width: 100%;
    text-align: center;
}

.main-three-part-grid-container .tool-form-collection {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.main-three-part-grid-container .tool-form ul {
    background-color: #fff;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper {
    width: 100%;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-content {
    margin-bottom: 1rem;
    width: 100%;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(5.5rem, auto));
    gap: 1rem;
    width: 100%;
    padding: 0.25rem 0 0.75rem;
    margin: 0;
    box-sizing: border-box;
    min-height: calc(6 * 5.5rem + 5 * 1rem);
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box:after {
    content: none;
    display: none;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box li {
    display: block;
    float: none;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-card {
    margin: 0;
    height: 100%;
    min-height: 5.5rem;
    padding: 0.85rem 0.95rem;
    box-sizing: border-box;
    border-color: #e8e8e8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box .tool-card:hover {
    border-color: rgba(22, 119, 255, 0.45);
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .collect-slot-empty .tool-card {
    visibility: hidden;
    pointer-events: none;
    border-color: transparent;
    background: transparent;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .collect-slot-inner {
    display: block;
    min-height: 1px;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-card-dt {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-card-dt strong {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: rgba(22, 119, 255, 0.88);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .home-page-img-class {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .home-tool-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    background: linear-gradient(135deg, rgba(64, 158, 255, 0.88), rgba(22, 119, 255, 0.92));
    border-radius: 4px;
    flex-shrink: 0;
    line-height: 1;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .home-tool-icon-svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.main-three-part-grid-container .tool-form-collection #collectWrapper .tool-card-dd {
    padding-top: 0.55rem;
}

.w-collect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* ================== 卡片 ================== */
.w-collect-card {
    border: 1px solid #eee;
    background: #fcfcfc;
    border-radius: 6px;
    padding: 10px 14px;
    height: 90px;
    box-sizing: border-box;
}

.w-collect-card-inner {
    display: grid;
    /* grid-template-columns: 70px 1fr; */
    grid-template-columns: 1fr;
    height: 100%;
}

.w-collect-logo img {
    width: 56px;
    height: 56px;
    margin-top: 10px;
}

.w-collect-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.w-collect-title {
    font-size: 14.5px;
    color: #464646;
    line-height: 20px;
}


/* ================== 操作（链接） ================== */
.w-collect-actions {
    display: flex;
    gap: 6px;
    font-size: 13px;
}

.w-collect-link {
    color: rgba(22, 119, 255, 0.75);
    cursor: pointer;
    text-decoration: none;
}

.w-collect-link:hover {
    color: rgba(22, 119, 255, 0.95);
}

.w-collect-divider {
    color: #bbb;
    margin: 0 2px;
}

.w-collect-font-color {
    color: #666 !important;
}

/* ================== 空状态 ================== */
.w-collect-empty {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* ================== 响应式（关键） ================== */
@media screen and (max-width: 1024px) {
    .main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(8, minmax(5.5rem, auto));
        min-height: calc(8 * 5.5rem + 7 * 1rem);
    }
}

@media screen and (max-width: 768px) {
    .main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(12, minmax(5.5rem, auto));
        min-height: calc(12 * 5.5rem + 11 * 1rem);
    }
}

@media screen and (max-width: 640px) {

    .w-collect-grid {
        grid-template-columns: 1fr;
    }

    .main-three-part-grid-container .tool-form-collection #collectWrapper .tool-box {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(24, minmax(5.5rem, auto));
        gap: 0.75rem;
        min-height: calc(24 * 5.5rem + 23 * 0.75rem);
    }

    .main-three-part-grid-container .tool-form-collection #collectWrapper .tool-card {
        min-height: 0;
    }

    .w-collect-card {
        height: auto;
        padding: 12px;
    }

    .w-collect-card-inner {
        /* grid-template-columns: 48px 1fr; */
        grid-template-columns: 1fr;
    }

    .w-collect-logo img {
        width: 40px;
        height: 40px;
        margin-top: 4px;
    }

    /* ⭐ info 变成一行 */
    .w-collect-info {
        flex-direction: row;
        align-items: center;
    }

    /* 标题占中间 */
    .w-collect-title {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 操作固定在右 */
    .w-collect-actions {
        margin-left: 6px;
        white-space: nowrap;
    }
}

.collect-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.w-collection-img {
    opacity: 1;
    width: 20px;
    height: 20px;
    background: transparent;
}

.w-collect-wrap {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    opacity: 1;
}
