/* ===== Related Tools Section ===== */
#my-related-tools {
    max-width: 1100px;
    margin: 60px auto;
    padding: 30px 20px;
    background: #f6f7f9;
    border-radius: 12px;
}

/* 主标题 */
#my-related-tools > h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #222;
    text-align: center;
}

#my-related-tools .related-desc {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

/* ===== Category Block ===== */
.related-category {
    background: #fff;
    border-radius: 10px;
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.related-category h3 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #333;
    border-left: 4px solid #4CAF50;
    padding-left: 10px;
}

/* ===== Tool List ===== */
.related-category ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px 14px;
}

.related-category li {
    margin: 0;
}

/* ===== Tool Link ===== */
.related-category a {
    display: block;
    padding: 8px 10px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    background: #fafafa;
    border: 1px solid #eee;
    transition: all 0.15s ease;
}

.related-category a:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
    color: #2e7d32;
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
    #my-related-tools {
        padding: 20px 14px;
    }

    .related-category ul {
        grid-template-columns: 1fr;
    }
}


#my-related-tools a.current-tool {
    background: #e0e0e0;
    border-color: #ccc;
    color: #888;
    cursor: default;
    font-weight: 600;
}

.related-more {
    margin-top: 10px;
    font-size: 13px;
    color: #4CAF50;
    cursor: pointer;
    user-select: none;
}

 
.related-more:hover {
    text-decoration: underline;
}
