/* ============================================================
   配色工具导航页（/color-system/）
   模板：template/pc/lists_tool_index.htm
   ============================================================ */

.ti-hero {
    position: relative;
    padding: 54px 0 46px;
    background: linear-gradient(135deg, #1c2b5c 0%, #2d3f7a 46%, #4a63c8 100%);
    color: #fff;
    overflow: hidden;
}
.ti-hero::before,
.ti-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}
.ti-hero::before {
    width: 340px;
    height: 340px;
    top: -140px;
    right: 8%;
}
.ti-hero::after {
    width: 200px;
    height: 200px;
    bottom: -110px;
    right: 26%;
    background: rgba(255, 255, 255, .05);
}
.ti-hero .container {
    position: relative;
    z-index: 2;
}
.ti-hero-title {
    margin: 0 0 14px;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}
.ti-hero-desc {
    max-width: 660px;
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .82);
}
.ti-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.ti-hero-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    font-size: 12.5px;
    color: #fff;
}

/* 工具网格 */
.ti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 38px 0 56px;
}
.ti-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 18px;
    border: 1px solid #eef1f8;
    border-radius: 14px;
    background: #fff;
    text-decoration: none;
    transition: transform .22s, box-shadow .22s, border-color .22s;
}
.ti-card:hover {
    transform: translateY(-3px);
    border-color: #dfe5f5;
    box-shadow: 0 14px 30px rgba(28, 43, 92, .11);
    text-decoration: none;
}
.ti-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f2f5ff;
    color: #4a63c8;
    font-size: 18px;
    transition: background .22s, color .22s;
}
.ti-card:hover .ti-ico {
    background: #2d3f7a;
    color: #fff;
}
.ti-card b {
    display: block;
    margin-bottom: 8px;
    font-size: 15.5px;
    font-weight: 600;
    color: #1c2b5c;
}
.ti-card small {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 58px;
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8a93ab;
}
.ti-badge {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11.5px;
    line-height: 1.5;
}
.ti-badge.free {
    background: #ecf8f0;
    color: #2f9e52;
}
.ti-badge.paid {
    background: #fdf1ec;
    color: #e2453c;
}

@media (max-width: 1200px) {
    .ti-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .ti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ti-hero {
        padding: 40px 0 34px;
    }
    .ti-hero-title {
        font-size: 27px;
    }
}
@media (max-width: 560px) {
    .ti-grid {
        grid-template-columns: 1fr;
        padding: 26px 0 40px;
    }
    .ti-card small {
        min-height: auto;
    }
}
